commit stringlengths 40 40 | old_file stringlengths 4 264 | new_file stringlengths 4 264 | old_contents stringlengths 0 4.24k | new_contents stringlengths 1 5.44k | subject stringlengths 14 778 | message stringlengths 15 9.92k | lang stringclasses 277
values | license stringclasses 13
values | repos stringlengths 5 127k |
|---|---|---|---|---|---|---|---|---|---|
36f580c0533ffbe4516e49bca40f23ad2833ee9f | lib/chat_channel.coffee | lib/chat_channel.coffee | builder = require('xmlbuilder')
class ChatChannel
constructor: (@reflector) ->
sendMessage: (player, message) ->
xml = builder.create('root')
.ele('chat', { from : player.name, message : message })
.toString({ pretty: false })
console.log(xml)
@reflector.sendAll "<chat from='#{player.nam... | # builder = require('xmlbuilder')
class ChatChannel
constructor: (@reflector) ->
sendMessage: (player, message) ->
return
xml = builder.create('root')
.ele('chat', { from : player.name, message : message })
.toString({ pretty: false })
console.log(xml)
@reflector.sendAll "<chat from... | Fix for broken chat channel stuff. | Fix for broken chat channel stuff.
| CoffeeScript | bsd-3-clause | elekezem/server,scenevr/server,Flet/scenevr,scenevr/server |
96ca6d751b222df0b9bd833c413f4defecd2e11b | src/Timer.coffee | src/Timer.coffee | class Timer
constructor: (@id, @elapsed) ->
@seconds = 0
@minutes = 0
@hours = 0
@interval = undefined
if @elapsed
time = parseSeconds(@elapsed)
@seconds = time.seconds
@minutes = time.minutes
@hours = time.hours
parseSeconds = (seconds) ->
hours = Math.floor(second... | class Timer
constructor: (@id, @elapsed) ->
@seconds = 0
@minutes = 0
@hours = 0
@startTime = null
@interval = undefined
if @elapsed
time = parseSeconds(@elapsed)
@seconds = time.seconds
@minutes = time.minutes
@hours = time.hours
parseSeconds = (seconds) ->
hou... | Set timer based on time, not setInterval calls | Set timer based on time, not setInterval calls
- timer was drifting like crazy
| CoffeeScript | mit | CMS611-snap/snap-frontend,CMS611-snap/snap-frontend,CMS611-snap/snap-frontend |
e7154cea5c9be70347be88f76f1b7e94f17a5550 | app/assets/javascripts/controllers/activities.coffee | app/assets/javascripts/controllers/activities.coffee | scrollHandler = ->
url = $(".actvty-pagination .next_page a").attr("href")
if url and $(window).scrollTop() > $(document).height() - $(window).height() - 300
$(".actvty-pagination").text "Nicht so schnell..."
showSpinner()
$.getScript url
return
if $(".actvty-pagination").length
$(window).scroll(sc... | scrollHandler = ->
url = $(".actvty-pagination .next_page a").attr("href")
if url and $(window).scrollTop() > $(document).height() - $(window).height() - 300
$(".actvty-pagination").text "Nicht so schnell..."
showSpinner()
$.getScript url
return
if $(".actvty-pagination").length
$(window).scroll(sc... | Fix adding of unread astericks | Fix adding of unread astericks
| CoffeeScript | unlicense | caffeineshock/dysnomia,caffeineshock/dysnomia,caffeineshock/dysnomia |
bb7adfab522b918e86bc7af9c6e6e4ce90dd6c92 | lib/getThrottles.coffee | lib/getThrottles.coffee | debug = require('debug')('meshblu:getThrottles')
Limitus = require 'limitus'
limiter = new Limitus()
config = require '../config'
config.rateLimits ?= {};
windowRate = 1000
createThrottle = (name, rate) ->
debug 'createThrottle', name, rate
limiter.rule name, max: rate, interval: windowRate
rateLimit: (id="", ... | debug = require('debug')('meshblu:getThrottles')
Limitus = require 'limitus'
limiter = new Limitus()
config = require '../config'
config.rateLimits ?= {};
windowRate = 1000
createThrottle = (name, rate) ->
debug 'createThrottle', name, rate
limiter.rule name, max: rate, interval: windowRate, mode: 'interval'
r... | Switch to interval rate limiting | Switch to interval rate limiting
| CoffeeScript | mit | masato/meshblu-dev,masato/meshblu-dev,ChemTics/meshblu,octoblu/meshblu,jaambee/meshblu,masato/meshblu,osokay/IotServerCore,osokay/IotServerCore,ChemTics/meshblu,masato/meshblu-dev,dommert/meshblu,masato/meshblu,jaambee/meshblu,jaambee/meshblu,osokay/IotServerCore,dommert/meshblu,masato/meshblu,dommert/meshblu,octoblu/m... |
a406fe603ff9348c90b04638786fe214fcc09167 | spec/javascripts/foobar_spec.js.coffee | spec/javascripts/foobar_spec.js.coffee | # spec/javascripts/foobar_spec.js.coffee
describe "foobar", ->
it 'works', -> expect(1 + 1).toEqual(2);
describe "wanted failure", ->
it 'fails', -> expect(1 + 1).toEqual(42);
| # spec/javascripts/foobar_spec.js.coffee
describe "foobar", ->
it 'works', -> expect(1 + 1).toEqual(2);
| Remove failing test since Travis works. | Remove failing test since Travis works.
| CoffeeScript | agpl-3.0 | sjockers/teikei,sjockers/teikei,teikei/teikei,teikei/teikei,sjockers/teikei,teikei/teikei |
a260977da934624b8ad212f09f7b04e3cde2d778 | js-library/app/js/jail_iframe/classes/content_box.coffee | js-library/app/js/jail_iframe/classes/content_box.coffee | FactlinkJailRoot.contentBox = (element) ->
$element = $(element)
offset = $element.offset()
top: offset.top + parseInt window.getComputedStyle(element)['padding-top']
left: offset.left + parseInt window.getComputedStyle(element)['padding-left']
width: $element.width()
height: $element.height()
| FactlinkJailRoot.contentBox = (element) ->
$element = $(element)
offset = $element.offset()
top: offset.top + parseInt window.getComputedStyle(element).paddingTop
left: offset.left + parseInt window.getComputedStyle(element).paddingLeft
width: $element.width()
height: $element.height()
| Use paddingTop/Left, as this also works in firefox | Use paddingTop/Left, as this also works in firefox
| CoffeeScript | mit | daukantas/factlink-core,daukantas/factlink-core,daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core,Factlink/factlink-core,Factlink/factlink-core |
6fa0c05f00140eb62d86c963b2eeb16aa035d9ff | apps/block/routes.coffee | apps/block/routes.coffee | Q = require 'bluebird-q'
Channel = require "../../models/channel"
Block = require "../../models/block"
Comments = require "../../collections/comments"
User = require "../../models/user"
markdown = require '../../lib/markdown'
sd = require("sharify").data
_ = require 'underscore'
@block = (req, res, next) ->
block = ... | Q = require 'bluebird-q'
Channel = require "../../models/channel"
Block = require "../../models/block"
Comments = require "../../collections/comments"
User = require "../../models/user"
markdown = require '../../lib/markdown'
sd = require("sharify").data
_ = require 'underscore'
@block = (req, res, next) ->
block = ... | Check for can_index on the user, not the connection | Check for can_index on the user, not the connection
| CoffeeScript | mit | aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell |
2bb708153d67765f3d34b8cdbf455aa43fe2a7bf | src/cli/argv.coffee | src/cli/argv.coffee | parser = require 'nomnom'
braveMouse = require '../brave-mouse'
module.exports = (argv) ->
parser
.script 'brave-mouse'
.parse argv.slice 2
| parser = require 'nomnom'
braveMouse = require '../brave-mouse'
braveMousePackageJson = require '../../package.json'
module.exports = (argv) ->
opts = parser
.script 'brave-mouse'
.options
version:
abbr: 'v'
flag: true
help: 'Print brave-mouse’s version'
.parse argv.slice 2
if opts.version
return c... | Print version on ‘brave-mouse -v’ | Print version on ‘brave-mouse -v’
| CoffeeScript | bsd-2-clause | SonicHedgehog/brave-mouse |
207923f1615ef8fe5ac59def2537f16edf856f1d | backend/app/assets/javascripts/spree/backend/variant_autocomplete.js.coffee | backend/app/assets/javascripts/spree/backend/variant_autocomplete.js.coffee | # variant autocompletion
$(document).ready ->
if $("#variant_autocomplete_template").length > 0
window.variantTemplate = Handlebars.compile($("#variant_autocomplete_template").text())
window.variantStockTemplate = Handlebars.compile($("#variant_autocomplete_stock_template").text())
window.variantLineItemT... | # variant autocompletion
$(document).ready ->
if $("#variant_autocomplete_template").length > 0
window.variantTemplate = Handlebars.compile($("#variant_autocomplete_template").text())
window.variantStockTemplate = Handlebars.compile($("#variant_autocomplete_stock_template").text())
window.variantLineItemT... | Fix initSelection of variant autocomplete. | Fix initSelection of variant autocomplete.
Fixes #6631
| CoffeeScript | bsd-3-clause | yushine/spree,yushine/spree,yushine/spree,yushine/spree |
9b8f7cdac58af24b823fbdcbbd3a1d87c3d0dc4a | atom/.atom/config.cson | atom/.atom/config.cson | "*":
"autocomplete-plus": {}
core:
autoHideMenuBar: true
editor:
fontFamily: "Hasklig"
invisibles:
eol: " "
space: " "
scrollPastEnd: true
showIndentGuide: true
showInvisibles: true
softWrap: true
zoomFontWhenCtrlScrolling: false
"exception-reporting":
userId: "01... | "*":
"atom-beautify":
_analyticsUserId: "a2516150-332e-464a-9a4d-531203fa7735"
"autocomplete-plus": {}
"autohide-tree-view":
hideDelay: 0
showDelay: 0
core:
autoHideMenuBar: true
editor:
fontFamily: "Hasklig"
invisibles:
eol: " "
space: " "
scrollPastEnd: true
showI... | Add hide tree view plugin | Add hide tree view plugin
| CoffeeScript | mit | Alexendoo/dotfiles |
29718d47af0afd4c6fbcefdc5cf092e702e0455c | app/assets/javascripts/shipit.js.coffee | app/assets/javascripts/shipit.js.coffee | # This is a manifest file that'll be compiled into application.js, which will include all the files
# listed below.
#
# Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
# or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
#
... | # This is a manifest file that'll be compiled into application.js, which will include all the files
# listed below.
#
# Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
# or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
#
... | Revert "Revert "Add jQuery notify back in"" | Revert "Revert "Add jQuery notify back in""
This reverts commit b62a0177c8e3c89a0b1f86e600e20461796f7a81.
Sorry for the mess. This was working already on master. My mistake
| CoffeeScript | mit | Shopify/shipit-engine,Shopify/shipit-engine,ershad/shipit-engine,Shopify/shipit-engine,ershad/shipit-engine,ershad/shipit-engine,ershad/shipit-engine,perobertson/shipit-engine,Shopify/shipit-engine,perobertson/shipit-engine,perobertson/shipit-engine,perobertson/shipit-engine,perobertson/shipit-engine,Shopify/shipit-eng... |
b28a35e4281ea1d4b88864ac441523133ad63949 | src/scripts/helpers/handlers/analytics.coffee | src/scripts/helpers/handlers/analytics.coffee | define (require) ->
Backbone = require('backbone')
settings = require('settings')
# Class to handle loading analytics scripts and wrapping
# handlers around them so that modules don't have to
# interact with global variables directly
return new class AnalyticsHandler
constructor: () ->
# Setup te... | define (require) ->
Backbone = require('backbone')
settings = require('settings')
# Class to handle loading analytics scripts and wrapping
# handlers around them so that modules don't have to
# interact with global variables directly
return new class AnalyticsHandler
constructor: () ->
# Setup te... | Add support for tracking multiple GA accounts | Add support for tracking multiple GA accounts
| CoffeeScript | agpl-3.0 | Connexions/webview,dak/webview,Connexions/webview,katalysteducation/webview,katalysteducation/webview,dak/webview,Connexions/webview,carolinelane10/webview,katalysteducation/webview,katalysteducation/webview,Connexions/webview,dak/webview |
7042782f8779ce9558c9d0314f1156f11a0fabe7 | components/inquiry_questionnaire/views/step.coffee | components/inquiry_questionnaire/views/step.coffee | _ = require 'underscore'
Backbone = require 'backbone'
form = require '../../form/utilities.coffee'
module.exports = class StepView extends Backbone.View
__events__: null
events: ->
_.extend @__events__,
'click .js-nevermind': 'dismiss'
initialize: ({ @user, @inquiry, @artwork, @state }) ->
@__se... | _ = require 'underscore'
Backbone = require 'backbone'
form = require '../../form/utilities.coffee'
module.exports = class StepView extends Backbone.View
__events__: null
events: ->
_.extend @__events__,
'click .js-nevermind': 'dismiss'
initialize: ({ @user, @inquiry, @artwork, @state }) ->
@__se... | Allow for turning off autofocusing; use defer option | Allow for turning off autofocusing; use defer option
| CoffeeScript | mit | yuki24/force,mzikherman/force,erikdstock/force,kanaabe/force,erikdstock/force,yuki24/force,joeyAghion/force,mzikherman/force,kanaabe/force,xtina-starr/force,izakp/force,oxaudo/force,joeyAghion/force,oxaudo/force,artsy/force,kanaabe/force,erikdstock/force,oxaudo/force,eessex/force,yuki24/force,artsy/force-public,anandar... |
fed74f75a51763b55c7766b04a7dd2860e0cc42e | app/assets/javascripts/views/journal_index_view.js.coffee | app/assets/javascripts/views/journal_index_view.js.coffee | ETahi.JournalIndexView = Ember.View.extend
toggleSpinner: (->
if @get('controller.epubCoverUploading')
@spinnerDiv = @$('#epub-cover-spinner')[0]
@spinner ||= new Spinner(color: "#aaa").spin(@spinnerDiv)
$(@spinnerDiv).show()
else
$(@spinnerDiv).hide()
).observes('controller.epubCove... | ETahi.JournalIndexView = Ember.View.extend ETahi.SpinnerMixin,
toggleSpinner: (->
@createSpinner('controller.epubCoverUploading', '#epub-cover-spinner', color: '#aaa')
).observes('controller.epubCoverUploading').on('didInsertElement')
| Use createSpinner on journal index. | Use createSpinner on journal index.
| CoffeeScript | mit | johan--/tahi,johan--/tahi,johan--/tahi,johan--/tahi |
7b1484bde227911145acad81e092aac5154c7e84 | app/assets/javascripts/replace_self_on_load.js.coffee | app/assets/javascripts/replace_self_on_load.js.coffee | RunLoop.register ->
for el in $('[data-replace-self-on-load]')
url = $(el).data('replace-self-on-load')
$(el).removeAttr('data-replace-self-on-load').trigger('replace:success')
window.fetchAndReplace(el, url)
| RunLoop.register ->
for el in $('[data-replace-self-on-load]')
url = $(el).data('replace-self-on-load')
window.fetchAndReplace el, url, (newEl) =>
$(newEl).trigger('replace:success')
| Fix replace self on load function | Fix replace self on load function
It will now trigger the replace:success event only after the new
new content is loaded.
| CoffeeScript | mit | RobinClowers/photo-album,RobinClowers/photo-album,RobinClowers/photo-album,RobinClowers/photo-album |
c533835365c9186559f302d1ee59e6a15f202efd | test/integration/setup_teardown.coffee | test/integration/setup_teardown.coffee | require './setup_teardown'
cleaner = require '../cleaner'
{wd40, browser} = require 'wd40'
base_url = process.env.CU_TEST_URL ? 'http://localhost:3001'
login_url = "#{base_url}/login"
logout_url = "#{base_url}/logout"
before (done) ->
console.log "[scraperwiki global before]"
cleaner.clear_and_set_fixtures ->... | require './setup_teardown'
{parallel} = require 'async'
cleaner = require '../cleaner'
{wd40, browser} = require 'wd40'
base_url = process.env.CU_TEST_URL ? 'http://localhost:3001'
login_url = "#{base_url}/login"
logout_url = "#{base_url}/logout"
before (done) ->
console.log "[scraperwiki global before]"
par... | Initialize browser and database in parallel | Initialize browser and database in parallel
| CoffeeScript | agpl-3.0 | scraperwiki/custard,scraperwiki/custard,scraperwiki/custard |
f96a9b25b7d9077ab8cda34e47fc5a4de132bfef | scripts/boomtown.coffee | scripts/boomtown.coffee | # Description
# Trys to crash Hubot on purpose
#
# Commands:
# hubot boom [other text]- try to crash Hubot
# hubot boom emit with msg - try to crash Hubot by emitting an error with a msg
# hubot boom emit without msg - try to crash Hubot by emitting an error without a msg
boomError = (boom, string) ->
new Er... | # Description
# Trys to crash Hubot on purpose
#
# Commands:
# hubot boom [other text]- try to crash Hubot
# hubot boom emit with msg - try to crash Hubot by emitting an error with a msg
# hubot boom emit without msg - try to crash Hubot by emitting an error without a msg
boomError = (boom, string) ->
new Er... | Add an error handler for testing | Add an error handler for testing
| CoffeeScript | mit | chadfurman/hubot,edorsey/hubot,github/hubot,hotrannam/hubot,voltsdigital/hubot,geoffreyanderson/hubot,jianchen2580/hubot,alex-zhang/hubot,keyvanakbary/hubot,cameronmcefee/hubot,rlugojr/hubot,ouadie-lahdioui/hubot,lisb/hubot,Hartmarken/hubot,PropertyUX/nubot,mjurczyk/hubot,scboucher/hubot,lukw00/hubot,msound/hubot,ddmng... |
c8b34ffe6f40e8334fff5b82cd68a8be1b213a50 | components/LoggingMiddleware.coffee | components/LoggingMiddleware.coffee | noflo = require 'noflo'
debugAction = require('debug') 'noflo-ui:action'
debugActionFull = require('debug') 'noflo-ui:action:full'
sendEvent = (label, action = 'click', category = 'menu') ->
return unless typeof window.ga is 'function'
window.ga 'send', 'event', category, action, label
exports.getComponent = ->
... | noflo = require 'noflo'
debugAction = require('debug') 'noflo-ui:action'
debugActionFull = require('debug') 'noflo-ui:action:full'
sendEvent = (label, action = 'click', category = 'menu') ->
return unless typeof window.ga is 'function'
window.ga 'send', 'event', category, action, label
exports.getComponent = ->
... | Read action from correct location | Read action from correct location
| CoffeeScript | mit | noflo/noflo-ui,noflo/noflo-ui |
46f71c858138c40daf4b4a9848f5104d7b6d0f4b | app/src/controllers/onboarding/device/onboarding_device_pin_view_controller.coffee | app/src/controllers/onboarding/device/onboarding_device_pin_view_controller.coffee | class @OnboardingDevicePinViewController extends @OnboardingViewController
onAfterRender: ->
super
do @_insertPinCode
_insertPinCode: ->
@view.pinCode = new ledger.pin_codes.PinCode()
@view.pinCode.insertIn(@select('div#pin_container')[0])
@view.pinCode.setStealsFocus(yes)
@view.pinCode.on... | class @OnboardingDevicePinViewController extends @OnboardingViewController
onAfterRender: ->
super
do @_insertPinCode
_insertPinCode: ->
@view.pinCode = new ledger.pin_codes.PinCode()
@view.pinCode.insertIn(@select('div#pin_container')[0])
@view.pinCode.setStealsFocus(yes)
@view.pinCode.on... | Add NotSupportedDongle in error case of pin view controller | Add NotSupportedDongle in error case of pin view controller
| CoffeeScript | mit | Morveus/ledger-wallet-doge-chrome,LedgerHQ/ledger-wallet-chrome,Morveus/ledger-wallet-doge-chrome,LedgerHQ/ledger-wallet-chrome |
e9f7043b83bb1e1640b36d79a6e37ee793193aae | app/assets/javascripts/langtrainer_frontend_backbone/views/navbar_control.js.coffee | app/assets/javascripts/langtrainer_frontend_backbone/views/navbar_control.js.coffee | class Langtrainer.LangtrainerApp.Views.NavbarControl extends Backbone.View
template: JST['langtrainer_frontend_backbone/templates/navbar_control']
className: 'navbar-user-controls'
events:
'click .sign-in-btn': 'onSignInBtnClick'
'click .sign-up-btn': 'onSignUpBtnClick'
'click .sign-out-btn': 'onSign... | class Langtrainer.LangtrainerApp.Views.NavbarControl extends Backbone.View
template: JST['langtrainer_frontend_backbone/templates/navbar_control']
className: 'navbar-user-controls'
events:
'click .sign-in-btn': 'onSignInBtnClick'
'click .sign-up-btn': 'onSignUpBtnClick'
'click .sign-out-btn': 'onSign... | Remove fade in of navbar control | Remove fade in of navbar control
| CoffeeScript | mit | langtrainer/langtrainer_frontend_backbone,langtrainer/langtrainer_frontend_backbone,langtrainer/langtrainer_frontend_backbone |
b19a24681362dc3ebc15d9da18ed3b097b70e21b | core/app/backbone/collections/followers.coffee | core/app/backbone/collections/followers.coffee | class window.Followers extends Backbone.Collection
model: User
initialize: (models, opts) ->
@user = opts.user
url: -> "/#{@user.get('username')}/followers"
followed_by_me: ->
!! @find (model) ->
model.get('username') == currentUser.get('username')
class window.Following extends Backbone.Colle... | class window.Followers extends Backbone.Collection
model: User
initialize: (models, opts) ->
@user = opts.user
url: -> "/#{@user.get('username')}/followers"
followed_by_me: ->
@some (model) ->
model.get('username') == currentUser.get('username')
class window.Following extends Backbone.Collecti... | Use @some instead of @find | Use @some instead of @find
| CoffeeScript | mit | daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core,Factlink/factlink-core,daukantas/factlink-core,Factlink/factlink-core,daukantas/factlink-core |
c3c19c46e4f10abcfdb1c272651b2d7f2729ff80 | app/scripts/main.coffee | app/scripts/main.coffee | L.mapbox.accessToken = 'pk.eyJ1Ijoia25vY2siLCJhIjoiRVdjRFVjRSJ9.nIZeVnR6dJZ0hwNnKAiAlQ'
map = L.mapbox.map('map', 'examples.map-i86nkdio').
setView([40, -74.50], 9)
console.log('I did stuff')
| L.mapbox.accessToken = 'pk.eyJ1Ijoia25vY2siLCJhIjoiRVdjRFVjRSJ9.nIZeVnR6dJZ0hwNnKAiAlQ'
map = L.mapbox.map('map', 'knock.l5dpakki').
setView([47.61, -122.33], 13)
featureLayer = L.mapbox.featureLayer().addTo(map)
featureLayer.loadURL('http://zillowhack.hud.opendata.arcgis.com/datasets/2a462f6b548e4ab8bfd9b2523a3db4... | Move map loading into app. | Move map loading into app.
| CoffeeScript | mit | harleyholt/hackhousing.knockX2,harleyholt/hackhousing.knockX2 |
21c2b0a43c6cf5d58a53895b46c2516c14f65a39 | app/assets/javascripts/home.js.coffee | app/assets/javascripts/home.js.coffee | # Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/
$("[data-toggle=tab]").click ->
$($(this).attr("href")).toggleClass "active" if $(this).parent().hasClass... | # Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/
$("[data-toggle=tab]").click ->
$($(this).attr("href")).toggleClass "active" if $(this).parent().hasClass... | Update UI behavior on User's profile card to update color using selected role | Update UI behavior on User's profile card to update color using selected role
| CoffeeScript | mit | SoPR/sopr-platform,SoPR/sopr-platform |
4846adf04969911185f04c7df276c75b159a3188 | backend/app/assets/javascripts/spree/backend/variant_autocomplete.js.coffee | backend/app/assets/javascripts/spree/backend/variant_autocomplete.js.coffee | # variant autocompletion
$(document).ready ->
if $("#variant_autocomplete_template").length > 0
window.variantTemplate = Handlebars.compile($("#variant_autocomplete_template").text())
window.variantStockTemplate = Handlebars.compile($("#variant_autocomplete_stock_template").text())
window.variantLineItemT... | # variant autocompletion
$(document).ready ->
if $("#variant_autocomplete_template").length > 0
window.variantTemplate = Handlebars.compile($("#variant_autocomplete_template").text())
window.variantStockTemplate = Handlebars.compile($("#variant_autocomplete_stock_template").text())
window.variantLineItemT... | Reduce number of AJAX calls in variant autocomplete. | Reduce number of AJAX calls in variant autocomplete.
Fixes #6338
Fixes #5667
| CoffeeScript | bsd-3-clause | keatonrow/spree,keatonrow/spree,keatonrow/spree,azclick/spree,azclick/spree,azclick/spree,azclick/spree,keatonrow/spree |
cace8f191cd191ae7408d8583e98cd6611aaab0f | src/models/claim.coffee | src/models/claim.coffee | {log, p, pjson} = require 'lightsaber'
Promise = require 'bluebird'
trustExchange = require './trustExchange'
class Claim
@put: (trustAtom) ->
results = for adaptor in trustExchange.adaptors()
adaptor.putClaim trustAtom
Promise.all results
module.exports = Claim
| {log, p, pjson} = require 'lightsaber'
Promise = require 'bluebird'
trustExchange = require './trustExchange'
class Claim
@put: (trustAtom, options) ->
results = for adaptor in trustExchange.adaptors()
adaptor.putClaim trustAtom, options
Promise.all results
module.exports = Claim
| Fix Claim.put to allow options | Fix Claim.put to allow options
| CoffeeScript | mit | citizencode/trust-exchange |
5ec2dda235129db97a50428f738caf816f81c06f | app/src/controllers/onboarding/device/onboarding_device_pin_view_controller.coffee | app/src/controllers/onboarding/device/onboarding_device_pin_view_controller.coffee | class @OnboardingDevicePinViewController extends @OnboardingViewController
onAfterRender: ->
super
do @_insertPinCode
_insertPinCode: ->
@_pinCode = new ledger.pin_codes.PinCode()
@_pinCode.insertIn(@select('div.greyed-container')[0])
@_pinCode.setStealsFocus(yes)
@_pinCode.on 'complete', ... | class @OnboardingDevicePinViewController extends @OnboardingViewController
onAfterRender: ->
super
do @_insertPinCode
_insertPinCode: ->
@_pinCode = new ledger.pin_codes.PinCode()
@_pinCode.insertIn(@select('div.greyed-container')[0])
@_pinCode.setStealsFocus(yes)
@_pinCode.on 'complete', ... | Remove old card pin verification | Remove old card pin verification
| CoffeeScript | mit | LedgerHQ/ledger-wallet-chrome,Morveus/ledger-wallet-doge-chrome,LedgerHQ/ledger-wallet-chrome,Morveus/ledger-wallet-doge-chrome |
2fa2ea533b5595b3062077b6f0501078f1642b10 | assets/scripts/app/controllers/account_index.coffee | assets/scripts/app/controllers/account_index.coffee | Travis.AccountIndexController = Em.Controller.extend
needs: ['profile', 'currentUser']
hooksBinding: 'controllers.profile.hooks'
allHooksBinding: 'controllers.profile.allHooks'
hooksWithoutAdminBinding: 'controllers.profile.hooksWithoutAdmin'
userBinding: 'controllers.currentUser'
sync: ->
@get('user')... | Travis.AccountIndexController = Em.Controller.extend
needs: ['profile', 'currentUser']
hooksBinding: 'controllers.profile.hooks'
allHooksBinding: 'controllers.profile.allHooks'
hooksWithoutAdminBinding: 'controllers.profile.hooksWithoutAdmin'
userBinding: 'controllers.currentUser'
sync: ->
@get('user')... | Fix repository hint on accounts pages. | Fix repository hint on accounts pages.
Accounts and the profile are currently separate controllers, so
whenever you switched the account, the message would be hidden.
| CoffeeScript | mit | fotinakis/travis-web,2947721120/travis-web,jlrigau/travis-web,jlrigau/travis-web,mjlambert/travis-web,2947721120/travis-web,jlrigau/travis-web,travis-ci/travis-web,Tiger66639/travis-web,travis-ci/travis-web,Tiger66639/travis-web,mjlambert/travis-web,Tiger66639/travis-web,jlrigau/travis-web,fotinakis/travis-web,29477211... |
86f1d6120b96bb8f2531bf006cbc5080ff313c22 | test/remind-test.coffee | test/remind-test.coffee | chai = require "chai"
sinon = require "sinon"
chai.use require "sinon-chai"
expect = chai.expect
describe "remind", ->
beforeEach ->
@robot =
respond: sinon.spy()
hear: sinon.spy()
require("../src/remind")(@robot)
it "registers a respond listener", ->
expect(@... | chai = require "chai"
sinon = require "sinon"
chai.use require "sinon-chai"
expect = chai.expect
describe "remind", ->
before ->
@robot =
brain:
on: sinon.spy()
respond: sinon.spy()
hear: sinon.spy()
require("../src/remind")(@robot)
it "reg... | Fix tests, and add test for brain event | Fix tests, and add test for brain event
| CoffeeScript | mit | ClaudeBot/hubot-remind-advanced,ClaudeBot/hubot-remind-advanced |
3343eca5456da80a855a8ab749558c7305299b44 | lib/views/analysis_status_view.coffee | lib/views/analysis_status_view.coffee | {View} = require 'atom'
React = require 'react-atom-fork'
{_} = require 'lodash'
{a, div, span} = require 'reactionary-atom-fork'
module.exports =
class AnalysisStatusView extends View
Object.defineProperty @::, 'analysisCount', get: -> @items.length
items: []
@content: ->
@div class: 'inline-block'
ini... | {View} = require 'atom'
{_} = require 'lodash'
module.exports =
class AnalysisStatusView extends View
Object.defineProperty @::, 'analysisCount', get: -> @items.length
items: []
@content: ->
@div class: 'inline-block', =>
@a href: '#', click: 'showAnalysis', =>
@span class: 'dart-tools-status ... | Clean up implementation of status view. | [REFACTOR] Clean up implementation of status view.
The previous status view was based on React and unnecessarily complex.
I've replaced it with Spacepen.
| CoffeeScript | mit | radicaled/dart-tools |
f174026d7780fed8192c4e7f66f7c987471492d4 | server/initializers/authentication.coffee | server/initializers/authentication.coffee | passport = require('passport')
BasicStrategy = require('passport-http').BasicStrategy
passport.serializeUser (user, done) ->
done(null, user._id)
passport.deserializeUser (id, done) ->
User = require('../models/user').model
User
.find(id)
.exec( (err, user) ->
if err?
console.error err
... | passport = require('passport')
BasicStrategy = require('passport-http').BasicStrategy
passport.serializeUser (user, done) ->
done(null, user._id)
passport.deserializeUser (id, done) ->
User = require('../models/user').model
unless id?
console.error 'No user ID supplied'
return done(err, false)
User
... | Fix bug where all users are returned when not authenticated | Fix bug where all users are returned when not authenticated
| CoffeeScript | bsd-3-clause | unepwcmc/NRT,unepwcmc/NRT |
f6a3b3822c7eb626ef97b5a4c83d282e23fc3f32 | client/account/lib/views/leavegroupmodal.coffee | client/account/lib/views/leavegroupmodal.coffee | kd = require 'kd'
nick = require 'app/util/nick'
kookies = require 'kookies'
DeleteModalView = require '../deletemodalview'
module.exports = class LeaveGroupModal extends DeleteModalView
constructor: (options = {}, data) ->
data = nick()
options.title = 'Please conf... | kd = require 'kd'
nick = require 'app/util/nick'
kookies = require 'kookies'
DeleteModalView = require '../deletemodalview'
module.exports = class LeaveGroupModal extends DeleteModalView
constructor: (options = {}, data) ->
data = nick()
options.title = 'Please conf... | Fix require and hide loader in err case. | LeaveGroupModal: Fix require and hide loader in err case.
| CoffeeScript | agpl-3.0 | szkl/koding,alex-ionochkin/koding,acbodine/koding,drewsetski/koding,alex-ionochkin/koding,kwagdy/koding-1,jack89129/koding,kwagdy/koding-1,rjeczalik/koding,jack89129/koding,sinan/koding,usirin/koding,kwagdy/koding-1,drewsetski/koding,jack89129/koding,drewsetski/koding,gokmen/koding,alex-ionochkin/koding,kwagdy/koding-1... |
765ed37a65d84548a57111eea674cde6da5b98aa | client/lanes/components/record-finder/RecordFinder.cjsx | client/lanes/components/record-finder/RecordFinder.cjsx | class Lanes.Components.RecordFinder extends Lanes.React.Component
propTypes:
query: Lanes.PropTypes.State.isRequired
model: Lanes.PropTypes.State.isRequired
commands: React.PropTypes.object.isRequired
contextTypes:
uistate: Lanes.PropTypes.State.isRequired
showFinde... | class Lanes.Components.RecordFinder extends Lanes.React.Component
propTypes:
query: Lanes.PropTypes.State.isRequired
model: Lanes.PropTypes.State.isRequired
commands: React.PropTypes.object.isRequired
contextTypes:
viewport: Lanes.PropTypes.State.isRequired
showFind... | Set both viewport and uistate context | Set both viewport and uistate context
| CoffeeScript | mit | argosity/hippo,argosity/hippo,argosity/lanes,argosity/lanes,argosity/lanes,argosity/hippo |
e85721f71049ce180f00a79e4ab1a7c0a2f6ea55 | frontend/config/application.coffee | frontend/config/application.coffee | # Exports an object that defines
# all of the configuration needed by the projects'
# depended-on grunt tasks.
#
# You can familiarize yourself with all of Lineman's defaults by checking out the parent file:
# https://github.com/testdouble/lineman/blob/master/config/application.coffee
#
module.exports = require(proc... | # Exports an object that defines
# all of the configuration needed by the projects'
# depended-on grunt tasks.
#
# You can familiarize yourself with all of Lineman's defaults by checking out the parent file:
# https://github.com/testdouble/lineman/blob/master/config/application.coffee
#
module.exports = require(proc... | Copy JS files to public dir when building assets | Copy JS files to public dir when building assets
By default this copies to the /frontend/dist directory which meant the
uglified JS was not being served.
By default lineman runs copy:dev as part of it's common tasks
(confusingly really given it's *:dev name) which copies the non
minified version over which is how thi... | CoffeeScript | agpl-3.0 | treiff/exercism.io,tejasbubane/exercism.io,treiff/exercism.io,treiff/exercism.io,tejasbubane/exercism.io,RaptorRCX/exercism.io,RaptorRCX/exercism.io,RaptorRCX/exercism.io,tejasbubane/exercism.io,RaptorRCX/exercism.io,treiff/exercism.io,tejasbubane/exercism.io |
c6ff23f33f261e7b8490b904adb142be97635d47 | src/components/buttons/back-button.cjsx | src/components/buttons/back-button.cjsx | React = require 'react'
BS = require 'react-bootstrap'
_ = require 'underscore'
{History, Link} = require 'react-router'
{TransitionActions, TransitionStore} = require '../../flux/transition'
BackButton = React.createClass
displayName: 'BackButton'
propTypes:
fallbackLink: React.PropTypes.shape(
to: Re... | React = require 'react'
BS = require 'react-bootstrap'
_ = require 'underscore'
{History, Link} = require 'react-router'
{TransitionActions, TransitionStore} = require '../../flux/transition'
BackButton = React.createClass
displayName: 'BackButton'
propTypes:
fallbackLink: React.PropTypes.shape(
to: Re... | Use anchor link form of button | Use anchor link form of button
This way it's a real link and can be opened in new tab
| CoffeeScript | agpl-3.0 | openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js |
23c3b18cf45fac20d7118addf758804b128353ba | src/packages/spell-check/lib/spell-check-handler.coffee | src/packages/spell-check/lib/spell-check-handler.coffee | module.exports =
findMisspellings: (text) ->
wordRegex = /(?:^|\s)([a-zA-Z']+)(?=\s|\.|$)/g
row = 0
misspellings = []
for line in text.split('\n')
while matches = wordRegex.exec(line)
word = matches[1]
continue unless $native.isMisspelled(word)
startColumn = matches.index... | module.exports =
findMisspellings: (text) ->
wordRegex = /(?:^|[\s\[\]])([a-zA-Z']+)(?=[\s\.\[\]]|$)/g
row = 0
misspellings = []
for line in text.split('\n')
while matches = wordRegex.exec(line)
word = matches[1]
continue unless $native.isMisspelled(word)
startColumn = ma... | Add [] as word boundaries | Add [] as word boundaries
This is a common boundary used in markdown link text
| CoffeeScript | mit | Rodjana/atom,pengshp/atom,RobinTec/atom,Klozz/atom,nrodriguez13/atom,basarat/atom,Jandersoft/atom,bryonwinger/atom,mdumrauf/atom,mertkahyaoglu/atom,fedorov/atom,Shekharrajak/atom,chfritz/atom,pombredanne/atom,Sangaroonaom/atom,fscherwi/atom,davideg/atom,prembasumatary/atom,AdrianVovk/substance-ide,toqz/atom,jjz/atom,rl... |
659ed2b5e77eedaaac12f8e061786b0d010b16ab | src/cache/instance.coffee | src/cache/instance.coffee | Impromptu = require '../impromptu'
class Instance extends Impromptu.Cache
run: (fn) ->
return get fn if @_cached
@set (err, results) =>
if err then fn err else @get fn
get: (fn) ->
fn null, @_cached ? @options.fallback
set: (fn) ->
@options.update.call @options.context, (err, value) =>... | Impromptu = require '../impromptu'
class Instance extends Impromptu.Cache
run: (fn) ->
return @get fn if @_cached
@set (err, results) =>
if err then fn err else @get fn
get: (fn) ->
fn null, @_cached ? @options.fallback
set: (fn) ->
@options.update.call @options.context, (err, value) =... | Add missing reference to this. | Add missing reference to this.
| CoffeeScript | mit | impromptu/impromptu,impromptu/impromptu |
e49d54c701fb597351a866f58b58a02ad641b82f | lib/update.coffee | lib/update.coffee | Promise = require 'bluebird'
async = Promise.coroutine
request = Promise.promisifyAll require 'request'
requestAsync = Promise.promisify request, multiArgs: true
{SERVER_HOSTNAME, POI_VERSION, ROOT} = global
{log, warn, error} = require './utils'
module.exports =
checkUpdate: async (callback) ->
try
[resp... | Promise = require 'bluebird'
async = Promise.coroutine
request = Promise.promisifyAll require 'request'
requestAsync = Promise.promisify request, multiArgs: true
{POI_VERSION, ROOT} = global
{log, warn, error} = require './utils'
module.exports =
checkUpdate: async (callback) ->
try
[response, body] = yie... | Fix an error that may lead to [ERROR] Error: getaddrinfo ENOTFOUND undefined undefined:80 | Fix an error that may lead to [ERROR] Error: getaddrinfo ENOTFOUND undefined undefined:80
| CoffeeScript | mit | PHELiOX/poi,yudachi/poi,PHELiOX/poi,dushi792/poi,syncsyncsynchalt/poi,KagamiChan/poi,KagamiChan/poi,dushi792/poi,yudachi/poi,syncsyncsynchalt/poi,poooi/poi,syncsyncsynchalt/poi,poooi/poi,poooi/poi,dushi792/poi,nagatoyk/poi,yudachi/poi,gnattu/poi,gnattu/poi,nagatoyk/poi,syncsyncsynchalt/poi,poooi/poi |
9b84cffb1f772c159cc30c3c38f30643a1a39b5d | spec/core/core_spec.coffee | spec/core/core_spec.coffee | describe 'Test of core.coffee', ->
| describe 'Test of core.coffee', ->
elements = null
beforeEach ->
elements = [null, null, null]
for i,_ of elements
elements[i] = window.document.createElement('section')
elements[i].innerHTML = '''
<animation>
<keyframe target='h1'>
<keyframe target='h2'>
</animati... | Append a test of the core.coffee | Append a test of the core.coffee
| CoffeeScript | mit | iBenza/Libretto.js,iBenza/Libretto.js,ueokande/Libretto.js,ueokande/Libretto.js |
2e5bc46563a46e978a2a754cd4b273d44ae97497 | src/coffee/cilantro/ui/workflows/workspace.coffee | src/coffee/cilantro/ui/workflows/workspace.coffee | define [
'underscore'
'marionette'
'../core'
'../base'
'../query'
'tpl!templates/workflows/workspace.html'
], (_, Marionette, c, base, query, templates...) ->
templates = _.object ['workspace'], templates
class WorkspaceWorkflow extends Marionette.Layout
className: 'workspace-w... | define [
'underscore'
'marionette'
'../core'
'../base'
'../query'
'tpl!templates/workflows/workspace.html'
], (_, Marionette, c, base, query, templates...) ->
templates = _.object ['workspace'], templates
class WorkspaceWorkflow extends Marionette.Layout
className: 'workspace-w... | Add missing negation to data assertion in WorkspaceWorkflow | Add missing negation to data assertion in WorkspaceWorkflow | CoffeeScript | bsd-2-clause | chop-dbhi/cilantro,chop-dbhi/cilantro,chop-dbhi/cilantro |
b7f8ed53d3094ca2ac0e51f86d80986bdf3fca3c | lib/d-struct.coffee | lib/d-struct.coffee | # Grab a few objects that we'll need
popen = require('child_process').exec
path = require('path')
platform = require('os').platform
# Open a terminal and run dub
dub_build = ->
# Run the terminal app
cmdline = "osascript -e \'tell application \"Terminal\" to do script \"cd #{atom.project.path}; dub build\"\'"
po... | # Grab a few objects that we'll need
popen = require('child_process').exec
platform = require('os').platform
# TODO: linux support still needs to be added
commands =
build:
win32: "start cmd /k \"cd #{atom.project.getPaths().shift()} && dub run\""
darwin: "osascript -e \'tell application \"Terminal... | Make the dub commands play nice with Windows. | Make the dub commands play nice with Windows.
* The dub build/run commands are now compatible with Windows as well as OS X.
* Fix code to get project path.
* Remove the path import since it's not needed. | CoffeeScript | mit | ysgard/d-struct |
f41797110e84d74512e61419e00885db9613fe22 | menus/symbols-view.cson | menus/symbols-view.cson | 'menu': [
{
'label': 'Packages'
'submenu': [
'label': 'Symbols'
'submenu': [
{ 'label': 'File Symbols', 'command': 'symbols-view:toggle-file-symbols' }
{ 'label': 'Project Symbols', 'command': 'symbols-view:toggle-project-symbols' }
]
]
}
]
'context-menu':
'.overlaye... | 'menu': [
{
'label': 'Packages'
'submenu': [
'label': 'Symbols'
'submenu': [
{ 'label': 'File Symbols', 'command': 'symbols-view:toggle-file-symbols' }
{ 'label': 'Project Symbols', 'command': 'symbols-view:toggle-project-symbols' }
]
]
}
]
'context-menu':
'atom-text... | Add context menu to atom-text-editor selector | Add context menu to atom-text-editor selector
| CoffeeScript | mit | changjej/symbols-view,rodumani/symbols-view,atom/symbols-view,harai/atom-gnu-global,spencerlyon2/symbols-view,harai/atom-gnu-global,changjej/symbols-view,kainwinterheart/symbols-view,spencerlyon2/symbols-view,rodumani/symbols-view |
cf58703c5ba336ae484eabcba7a6847320f2f3eb | client/app/lib/util/sortEnvironmentStacks.coffee | client/app/lib/util/sortEnvironmentStacks.coffee | MANAGED_VMS = 'Managed VMs'
module.exports = (stacks = []) ->
stacks.sort (a, b) ->
return 1 if a.title is MANAGED_VMS
return -1 if b.title is MANAGED_VMS
return new Date(a.meta.createdAt) - new Date(b.meta.createdAt)
| isManagedVMStack = require './isManagedVMStack'
module.exports = (stacks = []) ->
stacks.sort (a, b) ->
return 1 if isManagedVMStack a
return -1 if isManagedVMStack b
return new Date(a.meta.createdAt) - new Date(b.meta.createdAt)
| Refactor sort environment stacks utility | Refactor sort environment stacks utility
| CoffeeScript | agpl-3.0 | rjeczalik/koding,jack89129/koding,mertaytore/koding,drewsetski/koding,acbodine/koding,rjeczalik/koding,mertaytore/koding,szkl/koding,mertaytore/koding,andrewjcasal/koding,drewsetski/koding,kwagdy/koding-1,acbodine/koding,sinan/koding,andrewjcasal/koding,drewsetski/koding,gokmen/koding,acbodine/koding,koding/koding,ciha... |
27184ec776930553b5d9e319b8f3f89071ed8767 | lib/tracker.coffee | lib/tracker.coffee | ua = require('universal-analytics')
visitor = ua('UA-49535937-3')
module.exports = (req, res, next) ->
eventParams =
ec: 'API Request' # category
ea: req.get('Referrer') || 'no referrer' # action
el: req.ip # label
dp: req.url ... | ua = require('universal-analytics')
module.exports = (req, res, next) ->
visitor = ua('UA-49535937-3')
eventParams =
ec: 'API Request' # category
ea: req.get('Referrer') || 'no referrer' # action
el: req.ip # label
dp: req.url ... | Use different visitor per event | Use different visitor per event
Instantiate a 'visitor' on every API request, since GA only tracks 500 events per visitor/session per day.
| CoffeeScript | mit | adorableio/avatars-api,mojects/avatars-api,gitblit/avatars-api,gitblit/avatars-api,mojects/avatars-api |
ff1f9b98d2eb5f4554dcd7ed92c72272bf282b42 | src/app/package.coffee | src/app/package.coffee | fsUtils = require 'fs-utils'
### Internal ###
module.exports =
class Package
@build: (path) ->
TextMatePackage = require 'text-mate-package'
AtomPackage = require 'atom-package'
if TextMatePackage.testName(path)
new TextMatePackage(path)
else
new AtomPackage(path)
@load: (path, option... | {basename} = require 'path'
### Internal ###
module.exports =
class Package
@build: (path) ->
TextMatePackage = require 'text-mate-package'
AtomPackage = require 'atom-package'
if TextMatePackage.testName(path)
new TextMatePackage(path)
else
new AtomPackage(path)
@load: (path, options... | Use path.basename() instead of fsUtils.base() | Use path.basename() instead of fsUtils.base()
| CoffeeScript | mit | batjko/atom,bolinfest/atom,bsmr-x-script/atom,helber/atom,ObviouslyGreen/atom,einarmagnus/atom,G-Baby/atom,SlimeQ/atom,yangchenghu/atom,dannyflax/atom,yangchenghu/atom,liuderchi/atom,Jdesk/atom,jeremyramin/atom,ppamorim/atom,rmartin/atom,sebmck/atom,dkfiresky/atom,acontreras89/atom,wiggzz/atom,qskycolor/atom,ironbox360... |
0751f501525a5afa424fbdd00f7780f8ade48fdf | coffee/controllers/posts_controller.coffee | coffee/controllers/posts_controller.coffee | define [
"chaplin"
"models/posts"
"views/posts"
], (Chaplin, Posts, PostsView) ->
"use strict"
class PostsController extends Chaplin.Controller
show: (params) ->
# Unescape matched parts of url.
# Why the hell chaplin doesn't do it by himself?
# XXX: Seems like what we should use encod... | define [
"chaplin"
"models/posts"
"views/posts"
], (Chaplin, Posts, PostsView) ->
"use strict"
class PostsController extends Chaplin.Controller
show: (params) ->
# Unescape matched parts of url.
# Why the hell chaplin doesn't do it by himself?
# XXX: Seems like what we should use encod... | Disable use_bl for /top request | Disable use_bl for /top request
| CoffeeScript | cc0-1.0 | Kagami/bnw-meow,border-radius/meow-anon,border-radius/meow-anon |
e0701dc26a7e5e244d0a4ddbdba548a8a19dc00c | test/configfile.coffee | test/configfile.coffee | should = require 'should'
environment = require './shared/environment'
Impromptu = require '../lib/impromptu'
path = require 'path'
exec = require('child_process').exec
describe 'Config File', ->
impromptu = new Impromptu
after (done) ->
tempDir = path.dirname Impromptu::compiledPrompt
exec "rm -rf #{tem... | should = require 'should'
environment = require './shared/environment'
Impromptu = require '../lib/impromptu'
path = require 'path'
exec = require('child_process').exec
describe 'Config File', ->
impromptu = new Impromptu
after (done) ->
tempDir = path.dirname impromptu.path.compiled
exec "rm -rf #{tempD... | Update compiled prompt path to use new variable name. | Update compiled prompt path to use new variable name.
| CoffeeScript | mit | impromptu/impromptu,impromptu/impromptu |
136ebacf7d2c05aa3b2d37ae59cbb404115fe9f7 | test/test_thing.coffee | test/test_thing.coffee | should = chai.should()
describe 'MyThing', ->
it 'should do stuff', ->
'this thing'.should.not.equal('this thing')
| should = chai.should()
describe 'MyThing', ->
it 'should do stuff', ->
'this thing'.should.equal('this thing')
| Revert "Purposefully fail test - TravisCI integration test" | Revert "Purposefully fail test - TravisCI integration test"
This reverts commit c0d68c398d40c19d2dee9fb7aa50626ee2d79545.
| CoffeeScript | mit | sroze/ngInfiniteScroll,maksimr/ngInfiniteScroll,hlsolutions/ngInfiniteScroll,uzen/angular-infinitescroll,itkin/ngInfiniteScroll,timesqueezer/ngInfiniteScroll,emmafaye/ngInfiniteScroll-PureJS,aisharagheb/ngInfiniteScroll,msbit/ngInfiniteScroll,seawenzhu/ngInfiniteScroll,Tradiio/ngInfiniteScroll,maxamillion32/ngInfiniteS... |
b68ea2fa4705687be9d83030a741a80b0eefe467 | index.coffee | index.coffee | _ = require 'underscore'
module.exports = class BunyanMongo
queue: []
collection: null
options:
collection_name: 'logs'
capped: true
size: 32 * 1024 * 1024
constructor: (options = {}) ->
_.extend @, options
setDB: (db) ->
options = _.pick @options, 'capped', 'size'
db.createColle... | _ = require 'underscore'
module.exports = class BunyanMongo
queue: []
collection: null
options:
collection_name: 'logs'
capped: true
size: 32 * 1024 * 1024
constructor: (options = {}) ->
_.extend @options, options
setDB: (db) ->
options = _.pick @options, 'capped', 'size'
db.crea... | Use options passed in constructor | Use options passed in constructor
| CoffeeScript | mit | BlackPearSw/bunyan-mongo |
d7204b2246e3c6c2d07bd8d32e16532586e2ab7a | atom/keymaps/import-js.cson | atom/keymaps/import-js.cson | # Keybindings require three things to be fully defined: A selector that is
# matched against the focused element, the keystroke and the command to
# execute.
#
# Below is a basic keybinding which registers on all platforms by applying to
# the root workspace element.
# For more detailed documentation see
# https://ato... | # https://atom.io/docs/latest/behind-atom-keymaps-in-depth
'atom-workspace':
'cmd-shift-j': 'import-js:import'
'cmd-shift-k': 'import-js:goto'
'cmd-shift-i': 'import-js:fix-imports'
| Clean up atom keymaps file | Clean up atom keymaps file
This had a bunch of comments in it that are no longer needed.
| CoffeeScript | mit | trotzig/import-js,trotzig/import-js,Galooshi/import-js,trotzig/import-js |
94092345fa635dac6680a5f490b5bdc0c29eac14 | app/assets/javascripts/application-coffee.js.coffee | app/assets/javascripts/application-coffee.js.coffee | jQuery ->
$('.modal .validate').on 'click', ->
$modal = $(this).closest('.modal')
$form = $modal.find('form')
if $form.length > 0
$form.first().submit()
else
$modal.modal('hide')
#display 'loading...' before some data-remote=true links
$('#top-menu [data-remote="true"], .postit-link ... | jQuery ->
$('.modal .validate').on 'click', ->
$modal = $(this).closest('.modal')
$form = $modal.find('form')
if $form.length > 0
$form.first().submit()
else
$modal.modal('hide')
#display 'loading...' before some data-remote=true links
$('#top-menu [data-remote="true"], .postit-link[... | Fix typo in previous commit | Fix typo in previous commit
| CoffeeScript | mit | cartoque/cartoque,skylost/cartoque,cartoque/cartoque,jbbarth/cartoque,jbbarth/cartoque,jbbarth/cartoque,skylost/cartoque,cartoque/cartoque |
28b8407db4ae03d93a8e5bf3707cd9792d8c30e4 | src/rate_limiter.coffee | src/rate_limiter.coffee |
class RateLimiter
constructor: (@expiry=10*60)->
@data = {}
okay: (key)=>
check_time = Math.round(new Date().getTime() / 1000)
@clearExpiredKeys(check_time) # Calling here so we don't leak ram by holding expired keys forever
check = @data[key]
if @data[key]
return false
else
... |
class RateLimiter
constructor: (@expiry=10*60)->
@data = {}
okay: (key)=>
check_time = Math.round(new Date().getTime() / 1000)
@clearExpiredKeys(check_time) # Calling here so we don't leak ram by holding expired keys forever
check = @data[key]
if @data[key]
return false
else
... | Fix bug with rate limiter not clearing keys properly. | Fix bug with rate limiter not clearing keys properly. | CoffeeScript | bsd-3-clause | epochwolf/pious-plum |
1c18aac57cade291198556cea8ac74d017911273 | server/redis.coffee | server/redis.coffee | redis = require 'redis'
# Connect to redis
if process.env.REDIS_DB_URL
parts = require("url").parse(process.env.REDIS_DB_URL)
db = redis.createClient(parts.port, parts.hostname)
db.auth(parts.auth.split(":")[1]) if parts.auth
else
db = redis.createClient()
if process.env.NODE_ENV == 'test'
# Select test da... | redis = require 'redis'
# Connect to redis
if process.env.REDIS_DB_URL
parts = require("url").parse(process.env.REDIS_DB_URL)
db = redis.createClient(parts.port, parts.hostname)
db.auth(parts.auth.split(":")[1]) if parts.auth
else
db = redis.createClient()
if process.env.NODE_ENV == 'test'
# Select test da... | Use hardcoded number for shards. | Use hardcoded number for shards.
| CoffeeScript | mit | sarenji/pokebattle-sim,sarenji/pokebattle-sim,sarenji/pokebattle-sim |
d8c0de748508723c10e3e01e9ac5f1a200364e92 | atom/snippets.cson | atom/snippets.cson | # Your snippets
#
# Atom snippets allow you to enter a simple prefix in the editor and hit tab to
# expand the prefix into a larger code block with templated values.
#
# You can create a new snippet in this file by typing "snip" and then hitting
# tab.
#
# An example CoffeeScript snippet to expand log to console.log:
#... | # Your snippets
#
# Atom snippets allow you to enter a simple prefix in the editor and hit tab to
# expand the prefix into a larger code block with templated values.
#
# You can create a new snippet in this file by typing "snip" and then hitting
# tab.
#
# An example CoffeeScript snippet to expand log to console.log:
#... | Add Elm Doc Comment Snippet | Add Elm Doc Comment Snippet
| CoffeeScript | unlicense | mattdb/dotfiles,mattdb/dotfiles |
44bb81ddf5b22c98787f51974f8c2e303979c2cf | Gulpfile.coffee | Gulpfile.coffee | gulp = require('gulp')
gutil = require('gulp-util')
coffee = require('gulp-coffee')
gulp.task 'coffee', ->
gulp.src('src/*.coffee')
.pipe(coffee({bare: true}).on('error', gutil.log))
.pipe(gulp.dest('./dist/'))
webserver = require('gulp-webserver')
gulp.task 'serve', ->
gulp.src([
'bower_components'
... | gulp = require('gulp')
gutil = require('gulp-util')
coffee = require('gulp-coffee')
gulp.task 'coffee', ->
gulp.src('src/*.coffee')
.pipe(coffee({bare: true}).on('error', gutil.log))
.pipe(gulp.dest('./dist/'))
webserver = require('gulp-webserver')
gulp.task 'serve', ->
gulp.src([
'bower_components'
... | Add source file watch task | Add source file watch task
| CoffeeScript | mit | Sinetheta/angular-multiselect |
320730f712f9fb9b639712f932188f4099a09d6e | assets/js/client.coffee | assets/js/client.coffee | #= require templates/index
#= require_tree templates
#= require_tree models
#= require_tree collections
#= require_tree views
socket = io.connect('http://localhost')
socket.on 'connect', ->
socket.emit 'adduser', prompt("What's your name?"), ->
socket.on 'updatechat', (username, data) ->
$("#messages").app... | #= require templates/index
#= require_tree templates
#= require_tree models
#= require_tree collections
#= require_tree views
socket = io.connect(window.location.origin)
socket.on 'connect', ->
socket.emit 'adduser', prompt("What's your name?"), ->
socket.on 'updatechat', (username, data) ->
$("#messages")... | Use window's origin for connecting socket.io. | Use window's origin for connecting socket.io.
| CoffeeScript | mit | sarenji/pokebattle-sim,sarenji/pokebattle-sim,askii93/battletower,6/battletower,pepijndevos/battletower,sarenji/pokebattle-sim |
f31c102c3cb51e2411d57793f8f52b9786df8f9b | app/assets/javascripts/components/team-table.js.coffee | app/assets/javascripts/components/team-table.js.coffee | {div, table, thead, tbody, tr, th, td} = React.DOM
table_headers = [
"Team"
"Win %"
"Wins"
"Losses"
"Ties"
]
@TeamTable = React.createClass
propTypes:
teams: React.PropTypes.array
calculateWinPercentage: (team) ->
"#{Math.round((team.wins.value / (team.wins.value + team.losses.value + team.ties.value)) * ... | {div, table, thead, tbody, tr, th, td, p} = React.DOM
table_headers = [
"Team"
"Win %"
"Wins"
"Losses"
"Ties"
]
@TeamTable = React.createClass
propTypes:
teams: React.PropTypes.array
calculateWinPercentage: (team) ->
"#{Math.round((team.wins.value / (team.wins.value + team.losses.value + team.ties.value))... | Add seasons accounted for disclaimer above team table | Add seasons accounted for disclaimer above team table
| CoffeeScript | mit | maxkohl88/fantasy_tracker,maxkohl88/fantasy_tracker,maxkohl88/fantasy_tracker |
59dd05b9cc55525c1901d2c414ca1dab40400521 | src/projects.coffee | src/projects.coffee | exports.findMainGraph = (project) ->
return null unless project.graphs.length
if project.main
# Ensure currently set main graph exists
for graph in project.graphs
return project.main if graph.properties.id is project.main
# No 'main' graph sent, see if we can make a smart choice
for graph in proje... | exports.findMainGraph = (project) ->
return null unless project.graphs.length
if project.main
# Ensure currently set main graph exists
for graph in project.graphs
return project.main if graph.properties.id is project.main
# No 'main' graph sent, see if we can make a smart choice
for graph in proje... | Set first graph as main if no other suitable is found | Set first graph as main if no other suitable is found
| CoffeeScript | mit | noflo/noflo-ui,noflo/noflo-ui |
44b8550d04e6de43004f2951c455f6567c61e3d4 | app/static/coffee/index.coffee | app/static/coffee/index.coffee | window.coviolations ?=
views: {}
models: {}
$ ->
NProgress.start()
NProgress.inc()
app = window.coviolations
waitRendering = 2
renderFinished = =>
NProgress.inc()
waitRendering -= 1
if waitRendering == 0
NProgress.done()
renderProjects = =>
... | window.coviolations ?=
views: {}
models: {}
$ ->
NProgress.start()
NProgress.inc()
app = window.coviolations
waitRendering = 2
renderFinished = =>
NProgress.inc()
waitRendering -= 1
if waitRendering <= 0
NProgress.done()
renderProjects = =>
... | Fix progress bar with push | Fix progress bar with push
| CoffeeScript | mit | nvbn/coviolations_web,nvbn/coviolations_web |
909421129238a996e56e7c6ddff23ef00e4a9821 | src/tools/Eraser.coffee | src/tools/Eraser.coffee | Pencil = require './pencil'
{createShape} = require '../core/shapes'
module.exports = class Eraser extends Pencil
name: 'Eraser'
iconName: 'eraser'
constructor: () ->
@strokeWidth = 10
makePoint: (x, y, lc) ->
createShape('Point', {x, y, size: @strokeWidth, color: '#000'})
makeShape: -> createSha... | Pencil = require './Pencil'
{createShape} = require '../core/shapes'
module.exports = class Eraser extends Pencil
name: 'Eraser'
iconName: 'eraser'
constructor: () ->
@strokeWidth = 10
makePoint: (x, y, lc) ->
createShape('Point', {x, y, size: @strokeWidth, color: '#000'})
makeShape: -> createSha... | Fix Pencil import on case sensitive filesystems | Fix Pencil import on case sensitive filesystems
| CoffeeScript | bsd-2-clause | ivanisidrowu/literallycanvas,irskep/literallycanvas,ivanisidrowu/literallycanvas,irskep/lc-demo,shawinder/literallycanvas,irskep/lc-demo,178620086/literallycanvas,aiwenlg007/literallycanvas,178620086/literallycanvas,shawinder/literallycanvas,bartuspan/literallycanvas,literallycanvas/literallycanvas,bartuspan/literallyc... |
0fb417b86cae0fae5e63de00857c57acb5815f2c | src/main/webapp/coffeescripts-hidden/landing.coffee | src/main/webapp/coffeescripts-hidden/landing.coffee | # use the first element that is "scrollable"
# http://css-tricks.com/snippets/jquery/smooth-scrolling/
scrollableElement = (els) ->
for el in arguments
$scrollElement = $(el)
if $scrollElement.scrollTop() > 0
return el
else
$scrollElement.scrollTop(1)
isScrollable = $scrollElement.scrol... | # use the first element that is "scrollable"
# http://css-tricks.com/snippets/jquery/smooth-scrolling/
scrollableElement = (els) ->
for el in arguments
$scrollElement = $(el)
if $scrollElement.scrollTop() > 0
return el
else
$scrollElement.scrollTop(1)
isScrollable = $scrollElement.scrol... | Disable footer links that don't work. | Disable footer links that don't work.
| CoffeeScript | apache-2.0 | farmdawgnation/anchortab,farmdawgnation/anchortab,farmdawgnation/anchortab,farmdawgnation/anchortab |
14676dfb9c0278eef82942c74dcd20d093650c7a | core/app/backbone/factlink/local_storage_text_model.coffee | core/app/backbone/factlink/local_storage_text_model.coffee | Backbone.Factlink ||= {}
class Backbone.Factlink.LocalStorageTextModel extends Backbone.Model
constructor: (attributes, options) ->
super
@set 'text', localStorage?[options.key] ? ''
@on 'change:text', (model, value) ->
localStorage[options.key] = value if localStorage?
| Backbone.Factlink ||= {}
class Backbone.Factlink.LocalStorageTextModel extends Backbone.Model
constructor: (attributes, options) ->
super
@set 'text', sessionStorage?[options.key] ? ''
@on 'change:text', (model, value) ->
sessionStorage[options.key] = value if sessionStorage?
| Use session storage instead of local storage | Use session storage instead of local storage
untested
| CoffeeScript | mit | Factlink/factlink-core,daukantas/factlink-core,Factlink/factlink-core,daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core |
d07f52c5211166e9eb6eb3583bd87b61ea72f051 | client/app/lib/datadogmetrics.coffee | client/app/lib/datadogmetrics.coffee | kd = require 'kd'
KDObject = kd.Object
remote = require('app/remote').getInstance()
module.exports = class DatadogMetrics extends KDObject
@buffer = kd.utils.dict()
@collect = (name, state, count = 1) ->
key = "#{name}:#{state}"
@buffer[key] ?= 0
@buffer[key] += count
@send = ->
return if... | kd = require 'kd'
KDObject = kd.Object
remote = require('app/remote').getInstance()
module.exports = class DatadogMetrics extends KDObject
@buffer = kd.utils.dict()
@collect = (name, state, count = 1) ->
key = "#{name}:#{state}"
@buffer[key] ?= 0
@buffer[key] += count
@send = ->
return if... | Send metric data once client is logged in | Send metric data once client is logged in
| CoffeeScript | agpl-3.0 | gokmen/koding,szkl/koding,acbodine/koding,drewsetski/koding,cihangir/koding,mertaytore/koding,gokmen/koding,gokmen/koding,acbodine/koding,koding/koding,jack89129/koding,usirin/koding,acbodine/koding,usirin/koding,drewsetski/koding,gokmen/koding,andrewjcasal/koding,rjeczalik/koding,cihangir/koding,sinan/koding,sinan/kod... |
32a6e865f6dfb6f269ab8511d64bc5b77c7e50d3 | client/src/scripts/frame-view.coffee | client/src/scripts/frame-view.coffee | Steam.FrameView = (_, _frame) ->
createCompatibleModelItem = (model) ->
key: model.key
algorithm: model.model_algorithm
category: model.model_category
responseColumnName: model.response_column_name
createColumnItem = (name) -> name: name
loadCompatibleModels = ->
_.switchToModels type: 'comp... | Steam.FrameView = (_, _frame) ->
createCompatibleModelItem = (model) ->
key: model.key
algorithm: model.model_algorithm
category: model.model_category
responseColumnName: model.response_column_name
createColumnItem = (name) -> name: name
loadCompatibleModels = ->
_.switchToModels type: 'comp... | Add parens for model counts | Add parens for model counts
| CoffeeScript | apache-2.0 | h2oai/h2o-2,eg-zhang/h2o-2,111t8e/h2o-2,111t8e/h2o-2,eg-zhang/h2o-2,111t8e/h2o-2,eg-zhang/h2o-2,calvingit21/h2o-2,eg-zhang/h2o-2,100star/h2o,100star/h2o,111t8e/h2o-2,rowhit/h2o-2,vbelakov/h2o,calvingit21/h2o-2,rowhit/h2o-2,111t8e/h2o-2,vbelakov/h2o,h2oai/h2o-2,111t8e/h2o-2,h2oai/h2o-2,100star/h2o,h2oai/h2o,h2oai/h2o,vb... |
3e3d70b3129a6f68cda773d033be746523e2a33e | ansible/roles/atom/config_files/config.cson | ansible/roles/atom/config_files/config.cson | "*":
"exception-reporting":
userId: "41cbedc9-3477-568d-cd05-8df535ad8564"
welcome:
showOnStartup: false
core:
projectHome: "/Users/joseangel/Workspace"
themes: [
"one-dark-ui"
"monokai"
]
editor:
invisibles: {}
tabLength: 4
"one-dark-ui": {}
"atom-beautify":
_ana... | "*":
"exception-reporting":
userId: "41cbedc9-3477-568d-cd05-8df535ad8564"
welcome:
showOnStartup: false
core:
projectHome: "/Users/joseangel/Workspace"
themes: [
"one-dark-ui"
"monokai"
]
editor:
invisibles: {}
tabLength: 4
"one-dark-ui": {}
"atom-beautify":
_ana... | Add ignore files to tree view | Add ignore files to tree view
| CoffeeScript | mit | rrequero/dotfiles |
f92b584f7b3782976398000fd05913aff79f05c0 | app/assets/javascripts/download-menu.coffee | app/assets/javascripts/download-menu.coffee | show_download_menu = ->
$("#download-menu").slideDown duration: 200
setTimeout hide_download_menu, 20000
$("#download-link").html "cancel"
return
hide_download_menu = ->
$("#download-menu").slideUp duration: 200
$("#download-link").html "download"
return
toggle_download_menu = ->
if $("#download-link").... | @show_download_menu = ->
$("#download-menu").slideDown duration: 200
setTimeout hide_download_menu, 20000
$("#download-link").html "cancel"
return
@hide_download_menu = ->
$("#download-menu").slideUp duration: 200
$("#download-link").html "download"
return
@toggle_download_menu = ->
if $("#download-link... | Fix a bug where the download menu wouldn't appear | Fix a bug where the download menu wouldn't appear
| CoffeeScript | agpl-3.0 | BatedUrGonnaDie/splits-io,glacials/splits-io,BatedUrGonnaDie/splits-io,glacials/splits-io,BatedUrGonnaDie/splits-io,BatedUrGonnaDie/splits-io,glacials/splits-io,glacials/splits-io |
0c91fa2fa7d92ad996211a71650167cab445a6e5 | plugins/pivotal-tracker/index.coffee | plugins/pivotal-tracker/index.coffee | NotificationPlugin = require "../../notification-plugin"
class PivotalTracker extends NotificationPlugin
stacktraceLines = (stacktrace) ->
("#{line.file}:#{line.lineNumber} - #{line.method}" for line in stacktrace when line.inProject)
@receiveEvent: (config, event) ->
# Build the request
params =
... | NotificationPlugin = require "../../notification-plugin"
class PivotalTracker extends NotificationPlugin
stacktraceLines = (stacktrace) ->
("#{line.file}:#{line.lineNumber} - #{line.method}" for line in stacktrace when line.inProject)
@receiveEvent: (config, event) ->
# Build the request
params =
... | Use https for pivotal plugin | Use https for pivotal plugin
| CoffeeScript | mit | cagedata/bugsnag-notification-plugins,jacobmarshall/bugsnag-notification-plugins,pushed/bugsnag-notification-plugins,6wunderkinder/bugsnag-notification-plugins,korealert/bugsnag-notification-plugins,korealert/bugsnag-notification-plugins,sharesight/bugsnag-notification-plugins,indirect/bugsnag-notification-plugins,6wun... |
b817fc4785afae05f8a4e336eedcc3397c121143 | src/kissmetrics-batch.coffee | src/kissmetrics-batch.coffee | # # Kissmetrics Batch
class BatchKissmetricsClient
@HOST: 'api.kissmetrics.com'
@HTTP_METHOD: 'POST'
constructor: (@options) ->
@queue = options.queue
@_validate_queue @queue
add: (timestamp, data) ->
data.timestamp = timestamp
@_transformData data
@queue.add data
get: ->
@queue.g... | # # Kissmetrics Batch
class BatchKissmetricsClient
@HOST: 'api.kissmetrics.com'
@HTTP_METHOD: 'POST'
@process: (apiKey) ->
queue = @get()
constructor: (@options) ->
@queue = options.queue
@_validate_queue @queue
add: (timestamp, data) ->
data.timestamp = timestamp
@_transformData data
... | Make process() a static method on batch client | Make process() a static method on batch client
Accept api key argument
| CoffeeScript | mit | evansolomon/kissmetrics-js,evansolomon/kissmetrics-js |
5174f3b3e68ff6a19efade57d543b9c2038840b3 | bokehjs/test/models/transforms/jitter_transform.coffee | bokehjs/test/models/transforms/jitter_transform.coffee | {expect} = require "chai"
utils = require "../../utils"
{Collections} = utils.require "base"
describe "step_interpolator_transform module", ->
source = {start: 0, end: 10}
target = {start: 20, end: 80}
generate_jitter = ->
Collections("Jitter").create
width: 1
center: 0
distribution: 'uni... | {expect} = require "chai"
utils = require "../../utils"
{Collections} = utils.require "base"
describe "step_interpolator_transform module", ->
source = {start: 0, end: 10}
target = {start: 20, end: 80}
generate_jitter = ->
Collections("Jitter").create
width: 1
center: 0
distribution: 'uni... | Put in correct form for the CoffeeScript to make JS | Put in correct form for the CoffeeScript to make JS
| CoffeeScript | bsd-3-clause | quasiben/bokeh,azjps/bokeh,ericmjl/bokeh,percyfal/bokeh,ericmjl/bokeh,ericmjl/bokeh,justacec/bokeh,quasiben/bokeh,clairetang6/bokeh,bokeh/bokeh,ptitjano/bokeh,DuCorey/bokeh,mindriot101/bokeh,timsnyder/bokeh,clairetang6/bokeh,mindriot101/bokeh,rs2/bokeh,timsnyder/bokeh,azjps/bokeh,aiguofer/bokeh,rs2/bokeh,philippjfr/bok... |
e45c901b2b759e77ab01207bb45f8c86847dc029 | lib/models/git-checkout-current-file.coffee | lib/models/git-checkout-current-file.coffee | git = require '../git'
StatusView = require '../views/status-view'
Path = require 'path'
gitCheckoutCurrentFile = ->
currentFile = atom.project.getRepo().relativize atom.workspace.getActiveEditor()?.getPath()
git(
['checkout', currentFile],
(data) -> new StatusView(type: 'success', message: data.toString()... | git = require '../git'
StatusView = require '../views/status-view'
Path = require 'path'
gitCheckoutCurrentFile = ->
currentFile = atom.project.getRepo().relativize atom.workspace.getActiveEditor()?.getPath()
git(
['checkout', '--', currentFile],
(data) -> new StatusView(type: 'success', message: data.toSt... | Fix error if filename matches an existing branch | Fix error if filename matches an existing branch
| CoffeeScript | mit | akonwi/git-plus,akonwi/git-plus |
d741e1464703caefcd9aa46654ee5fa6c71f884c | cake/lib/scaffold.coffee | cake/lib/scaffold.coffee | scaffolt = require 'scaffolt'
_s = require 'underscore.string'
module.exports = class Scaffold
@generate: ->
scaffold = new Scaffold
scaffold.generate arguments...
@destroy: ->
scaffold = new Scaffold
scaffold.destroy arguments...
generate: (name = '', callback = ->) ->
scaffolt @className... | scaffolt = require 'scaffolt'
_s = require 'underscore.string'
module.exports = class Scaffold
@generate: ->
scaffold = new @constructor
scaffold.generate arguments...
@destroy: ->
scaffold = new @constructor
scaffold.destroy arguments...
generate: (name = '', callback = ->) ->
scaffolt @c... | Fix issue in class methods for Scaffold | Fix issue in class methods for Scaffold
| CoffeeScript | mit | jupl/btc-cordova,jupl/btc-angular,jackhung/wokchap,jupl/btc-chaplin,jupl/btc,jupl/btc-ember,jupl/btc-serverpack |
f93d1d03fc85cabfd9a4a7ae8eb08f05c3be8f41 | src/app/admin/states/teachingperiods/teachingperiods.coffee | src/app/admin/states/teachingperiods/teachingperiods.coffee | angular.module('doubtfire.admin.states.teachingperiods', [])
#
# Convenors of a unit(s) can see a list of all the units they convene
# in this view and make changes to those units.
#
# Users with an Administrator system role can create new units.
#
.config((headerServiceProvider) ->
teachingPeriodsAdminViewStateData... | angular.module('doubtfire.admin.states.teachingperiods', [])
#
# Users with an Administrator system role can create new Teaching Periods.
#
.config((headerServiceProvider) ->
teachingPeriodsAdminViewStateData =
url: "/admin/teachingperiods"
views:
main:
controller: "AdministerTeachingPeriodsSta... | Comment explaining teaching period state | FIX: Comment explaining teaching period state
| CoffeeScript | agpl-3.0 | doubtfire-lms/doubtfire-web,doubtfire-lms/doubtfire-web,doubtfire-lms/doubtfire-web,doubtfire-lms/doubtfire-web |
0c472ff8cf7a714ba9e3c4f99b64d5d5e0db952f | lib/package-keymap-view.coffee | lib/package-keymap-view.coffee | {$$$, View} = require 'atom'
# Displays the keybindings for a package namespace
module.exports =
class PackageKeymapView extends View
@content: ->
@section =>
@div class: 'section-heading icon icon-keyboard', 'Keybindings'
@table outlet: 'keymapTable', class: 'package-keymap-table table native-key-bi... | {$$$, View} = require 'atom'
# Displays the keybindings for a package namespace
module.exports =
class PackageKeymapView extends View
@content: ->
@section =>
@div class: 'section-heading icon icon-keyboard', 'Keybindings'
@table class: 'package-keymap-table table native-key-bindings text', tabindex:... | Remove unused classes and outlets | Remove unused classes and outlets
| CoffeeScript | mit | atom/settings-view |
4bc6442073e08cb68748028a55a9692aa9b06ae1 | projects.cson | projects.cson | [
{
title: ".atom"
paths: [
"~/.atom"
]
devMode: true
}
{
title: ".files"
paths: [
"~/.files"
]
devMode: true
}
{
title: "language-roff"
paths: [
"~/Labs/language-roff"
]
devMode: true
}
{
title: "file-icons"
paths: [
"~/Labs/file-icons"
]
devMode: true
}
{
title: ... | [
{
title: ".atom"
paths: [
"~/.atom"
]
devMode: true
}
{
title: ".files"
paths: [
"~/.files"
]
devMode: true
}
{
title: "language-roff"
paths: [
"~/Labs/language-roff"
]
devMode: true
}
{
title: "file-icons"
paths: [
"~/Labs/file-icons"
]
devMode: true
}
{
title: ... | Remove `~/Labs/Utils` from Atom-FS's project entry | Remove `~/Labs/Utils` from Atom-FS's project entry
| CoffeeScript | isc | Alhadis/Atom-PhoenixTheme |
b70bba1e254f95480f315d65e21d327852e6860b | coffee/views/menu.coffee | coffee/views/menu.coffee | define [
"jquery"
"chaplin"
"views/base/view"
"lib/utils"
"templates/menu"
], ($, Chaplin, View, utils, template) ->
"use strict"
class MenuView extends View
el: "#menu"
template: template
autoRender: true
events:
"click #common_menu a": "navigate"
"click #logout": "logout"
... | define [
"jquery"
"chaplin"
"views/base/view"
"lib/utils"
"templates/menu"
], ($, Chaplin, View, utils, template) ->
"use strict"
class MenuView extends View
el: "#menu"
template: template
autoRender: true
events:
"click #common_menu a": "navigate"
"click #logout": "logout"
... | Use View's native subscribeEvent method | Use View's native subscribeEvent method
I will always read documentation
I will always read documentation
I will always read documentation
| CoffeeScript | cc0-1.0 | border-radius/meow-anon,border-radius/meow-anon,Kagami/bnw-meow |
69bb48c7794e1e86d5fc0ca285e298c06e8ea9a0 | test/exercise/collection.spec.coffee | test/exercise/collection.spec.coffee | _ = require 'underscore'
Collection = require 'exercise/collection'
step = require '../../api/steps/4571/GET'
describe 'Exercise Collection', ->
beforeEach ->
@stepId = 4571
@step = _.clone(step)
Collection.quickLoad(@stepId, @step)
describe 'getCurrentPanel', ->
it 'returns free-response by defa... | _ = require 'underscore'
Collection = require 'exercise/collection'
step = require '../../api/steps/4571/GET'
describe 'Exercise Collection', ->
beforeEach ->
@stepId = 4571
@step = _.clone(step)
Collection.quickLoad(@stepId, @step)
describe 'getCurrentPanel', ->
it 'returns free-response by defa... | Fix testing for different states | Fix testing for different states
| CoffeeScript | agpl-3.0 | openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js |
1b569b33c0af8ba6ea81b92000c1831773225e3b | menus/atom-sys-angular.cson | menus/atom-sys-angular.cson | # See https://atom.io/docs/latest/hacking-atom-package-word-count#menus for more details
'context-menu':
'.tree-view .directory > .header': [
{
label: 'SysAngular',
submenu: [
{
label: 'Create Module',
command: 'atom-sys-angular:generate-module'
},
{
... | # See https://atom.io/docs/latest/hacking-atom-package-word-count#menus for more details
'context-menu':
'.tree-view .directory > .header': [
{
label: 'SysAngular',
submenu: [
{
label: 'Create Module',
command: 'atom-sys-angular:generate-module'
},
{
... | Add 'Create Route' to menu | Add 'Create Route' to menu
| CoffeeScript | mit | sysgarage/atom-sys-angular |
b4cb26d754255168f7cc204223c9098fc04c09f0 | src/components/icon.cjsx | src/components/icon.cjsx | React = require 'react'
BS = require 'react-bootstrap'
module.exports = React.createClass
displayName: 'Icon'
propTypes:
type: React.PropTypes.string
className: React.PropTypes.string
tooltip: React.PropTypes.string
render: ->
classes = ['tutor-icon', 'fa', "fa-#{@props.type}"]
cla... | React = require 'react'
BS = require 'react-bootstrap'
module.exports = React.createClass
displayName: 'Icon'
propTypes:
type: React.PropTypes.string
className: React.PropTypes.string
tooltip: React.PropTypes.string
tooltipProps: React.PropTypes.object
getDefaultProps: ->
tooltipPro... | Fix so tooltip property is actually displayed | Fix so tooltip property is actually displayed
| CoffeeScript | agpl-3.0 | openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js |
7e94024adbdb5d5dfa3507144ce76003006db971 | keymaps.cson | keymaps.cson | 'atom-text-editor':
'ctrl-y': 'editor:delete-line'
| 'atom-text-editor':
'ctrl-y': 'editor:delete-line'
'alt-j': 'find-and-replace:select-next'
'alt-shift-J': 'find-and-replace:select-all'
| Add some shortcuts to atom | Add some shortcuts to atom
| CoffeeScript | mit | felipeguilhermefs/dotfiles |
9e9feb8d69ce15b5cfb0449c56758efaa183b0fe | lib/general-panel.coffee | lib/general-panel.coffee | {View} = require 'atom-space-pen-views'
SettingsPanel = require './settings-panel'
module.exports =
class GeneralPanel extends View
@content: ->
@div =>
@form class: 'general-panel section', =>
@div outlet: "loadingElement", class: 'alert alert-info loading-area icon icon-hourglass', "Loading setti... | {View} = require 'atom-space-pen-views'
SettingsPanel = require './settings-panel'
module.exports =
class GeneralPanel extends View
@content: ->
@div =>
@form class: 'general-panel section', =>
@div outlet: "loadingElement", class: 'alert alert-info loading-area icon icon-hourglass', "Loading setti... | Use text note instead of alert | Use text note instead of alert
| CoffeeScript | mit | atom/settings-view |
6e034c6319bcfe68bddc8a98d9b0fb6e30bb452e | src/panel-element.coffee | src/panel-element.coffee | {CompositeDisposable} = require 'event-kit'
class PanelElement extends HTMLElement
createdCallback: ->
@subscriptions = new CompositeDisposable
getModel: -> @model
setModel: (@model) ->
@appendChild(@model.getItemView())
@subscriptions.add @model.onDidChangeVisible(@visibleChanged.bind(this))
@... | {CompositeDisposable} = require 'event-kit'
{callAttachHooks} = require './space-pen-extensions'
class PanelElement extends HTMLElement
createdCallback: ->
@subscriptions = new CompositeDisposable
getModel: -> @model
setModel: (@model) ->
view = @model.getItemView()
@appendChild(view)
callAttac... | Call the attach hooks after adding a view to a panel. | Call the attach hooks after adding a view to a panel. | CoffeeScript | mit | Shekharrajak/atom,elkingtonmcb/atom,0x73/atom,fedorov/atom,AlbertoBarrago/atom,tisu2tisu/atom,abcP9110/atom,elkingtonmcb/atom,mrodalgaard/atom,anuwat121/atom,SlimeQ/atom,bencolon/atom,mostafaeweda/atom,bryonwinger/atom,hagb4rd/atom,liuderchi/atom,001szymon/atom,Mokolea/atom,jacekkopecky/atom,AdrianVovk/substance-ide,po... |
d0eadf3fd9bf9d2d7af63796a44946cbd52c5f84 | test/parser.coffee | test/parser.coffee | expect = require('chai').expect
parser = require '../dist/parser'
describe 'TagDataParser', ->
describe '#parse()', ->
it 'returns a tag data object', ->
expect(parser.parse('ruby:2.1.2 rails:3.x,4.x')).to.deep.equal([
{
name: 'ruby'
versions: ['2.1.2']
}
{
... | expect = require('chai').expect
parser = require '../dist/parser'
describe 'TagDataParser', ->
describe '#parse()', ->
it 'returns a tag data object', ->
expect(parser.parse('ruby:2.1.2 rails:3.x,4.x')).to.deep.equal([
{
name: 'ruby'
versions: ['2.1.2']
}
{
... | Add test case for multi bytes chars | Add test case for multi bytes chars
| CoffeeScript | mit | increments/tag-data-parser |
70bd7a7e321e74e5362a3ce7971d3d8e254887a5 | utils.coffee | utils.coffee | fs = Npm.require 'fs'
path = Npm.require 'path'
sass = Npm.require 'node-sass'
share.MailerUtils =
joinUrl: (base, path) ->
# Remove any trailing slashes
base = base.replace(/\/$/, '')
# Add front slash if not exist already
unless /^\//.test(path)
path = '/' + path
return base + path
... | fs = Npm.require 'fs'
path = Npm.require 'path'
sass = Npm.require 'node-sass'
if process.env.BUNDLE_PATH
# BUNDLE_PATH = /var/www/app/bundle
ROOT = path.join(process.env.BUNDLE_PATH, 'programs', 'server', 'assets', 'app')
else
# PWD = /lookback-emailjobs/app
ROOT = path.join(process.env.PWD, 'private')
share... | Add support for reading BUNDLE_PATH env var, for Meteor app bundles | Add support for reading BUNDLE_PATH env var, for Meteor app bundles
| CoffeeScript | mit | lookback/meteor-emails,satyavh/meteor-emails,satyavh/meteor-emails,mccormjt/meteor-emails,lookback/meteor-emails,satyavh/meteor-emails,mccormjt/meteor-emails,lookback/meteor-emails,mccormjt/meteor-emails |
630652e13fe3459979b1c35268f2f1a3188c5ed5 | client/app/MainApp/fs/fsfolder.coffee | client/app/MainApp/fs/fsfolder.coffee | class FSFolder extends FSFile
fetchContents:(callback)->
# @emit "fs.fetchContents.started"
# @kiteController.run
# toDo : "ls"
# withArgs :
# command : @path
# , (err, response)=>
# if err
# warn err
# @emit "fs.fetchContents.finished", err
# else
... | class FSFolder extends FSFile
fetchContents:(callback)->
# @emit "fs.fetchContents.started"
# @kiteController.run
# toDo : "ls"
# withArgs :
# command : @path
# , (err, response)=>
# if err
# warn err
# @emit "fs.fetchContents.finished", err
# else
... | Revert "Add -H option to fix broken symbolic links error" | Revert "Add -H option to fix broken symbolic links error"
This reverts commit 6b5b68deb6cebff22cbbcef16819ca8c71620bdd.
| CoffeeScript | agpl-3.0 | cihangir/koding,sinan/koding,drewsetski/koding,cihangir/koding,cihangir/koding,andrewjcasal/koding,szkl/koding,rjeczalik/koding,gokmen/koding,mertaytore/koding,kwagdy/koding-1,andrewjcasal/koding,cihangir/koding,drewsetski/koding,kwagdy/koding-1,jack89129/koding,gokmen/koding,mertaytore/koding,gokmen/koding,sinan/kodin... |
8c0e5f6cfa3af9394b7fca3a378777b6f0ff0810 | app/assets/javascripts/lib/util/flexibility_order.coffee | app/assets/javascripts/lib/util/flexibility_order.coffee | class @FlexibilityOrder
constructor: (@element) ->
# pass
url: (path) ->
"#{ App.scenario.url_path() }/flexibility_order/#{ path }"
update: (order) =>
$.ajax
url: @url('set'),
type: 'POST',
data:
flexibility_order:
order: order,
scenario_id: App.scenario... | class @FlexibilityOrder
constructor: (@element) ->
@lastGood = null
url: (path) ->
"#{ App.scenario.url_path() }/flexibility_order/#{ path }"
update: (sortable) =>
options = sortable.toArray()
$.ajax
url: @url('set'),
type: 'POST',
data:
flexibility_order:
or... | Improve error handling in FlexibilityOrder | Improve error handling in FlexibilityOrder
Restores the order to the last known good settings when an error is
returned by ETEngine. The user is most likely not able to correct the
error.
| CoffeeScript | mit | quintel/etmodel,quintel/etmodel,quintel/etmodel,quintel/etmodel |
e1cff04080a30ffa369b159930ecf381a7261cfd | modules/atom/settings/config.cson | modules/atom/settings/config.cson | "*":
"atom-beautify":
css:
indent_size: 2
general:
_analyticsUserId: "8bfc3dc2-e55f-4b45-93b6-8b516d108dab"
html:
indent_size: 2
js:
indent_size: 2
"atom-package-deps":
ignored: []
core:
disabledPackages: [
"metrics"
"welcome"
"language-javascript"... | "*":
"atom-beautify":
css:
indent_size: 2
general:
_analyticsUserId: "8bfc3dc2-e55f-4b45-93b6-8b516d108dab"
html:
indent_size: 2
js:
indent_size: 2
"atom-package-deps":
ignored: []
core:
disabledPackages: [
"metrics"
"welcome"
"language-javascript"... | Increase font size in Atom | Increase font size in Atom
| CoffeeScript | unlicense | guerrero/dotfiles |
0bf9b5ae3b628fc865a48ae7595774cb531b5675 | core/app/backbone/contrib/monkey_backbone_history.coffee | core/app/backbone/contrib/monkey_backbone_history.coffee | window.addBackboneHistoryCallbacksForDiscussionModal = ->
old_navigate = Backbone.History.prototype.navigate
Backbone.History.prototype.navigate = (fragment) ->
fragment = @getFragment(fragment || '') # copied from Backbone
FactlinkApp.DiscussionModalOnFrontend.setBackgroundPageUrl(fragment)
old_navig... | window.addBackboneHistoryCallbacksForDiscussionModal = ->
old_navigate = Backbone.History.prototype.navigate
Backbone.History.prototype.navigate = (fragment) ->
fragment = @getFragment(fragment || '') # copied from Backbone
FactlinkApp.DiscussionModalOnFrontend.setBackgroundPageUrl(fragment)
old_navig... | Return true when aborting, since we are pretending that we loaded a route. | Return true when aborting, since we are pretending that we loaded a route.
Set the fragment, because earlier that was being set by a behaviour in checkUrl that wasn't intended
| CoffeeScript | mit | Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core,Factlink/factlink-core,daukantas/factlink-core,Factlink/factlink-core,daukantas/factlink-core,daukantas/factlink-core |
42a668bd0332ab54f20f35ed13d7aea113849699 | apps/authentication/routes.coffee | apps/authentication/routes.coffee | Organization = require '../../models/organization'
crypto = require 'crypto'
hexDigest = (string)->
sha = crypto.createHash('sha256');
sha.update('awesome')
sha.digest('hex')
routes = (app) ->
app.get '/login', (req, res) ->
res.render "#{__dirname}/views/login",
title: 'Login',
stylesheet: 'l... | Organization = require '../../models/organization'
crypto = require 'crypto'
hexDigest = (string)->
sha = crypto.createHash('sha256');
sha.update('awesome')
sha.digest('hex')
routes = (app) ->
app.get '/login', (req, res) ->
res.render "#{__dirname}/views/login",
title: 'Login',
stylesheet: 'l... | Fix the flash when logging in | Fix the flash when logging in
| CoffeeScript | mit | EverFi/Sash,EverFi/Sash,EverFi/Sash |
d2b67e5e1916955ef811619d86626bc8ada5f96e | gulpfile.coffee | gulpfile.coffee | gulp = require 'gulp'
babel = require 'gulp-babel'
uglify = require 'gulp-uglify'
gulp.task 'build', (done)->
gulp.src 'src/dfa.js'
.pipe babel({presets:['env']})
.pipe uglify()
.pipe gulp.dest('.')
| gulp = require 'gulp'
babel = require 'gulp-babel'
uglify = require 'gulp-uglify'
gulp.task 'build', (done)->
gulp.src 'src/dfa.js'
.pipe babel({presets:['env']})
.pipe uglify({ keep_fnames: true })
.pipe gulp.dest('.')
| Set uglify option 'keep_fname' true | Set uglify option 'keep_fname' true
| CoffeeScript | mit | fxfan/dfa.js |
eed1fda9cc8f95e5355b3af8ca12d45eaca2df3f | packages/rocketchat-lib/lib/startup/settingsOnLoadSiteUrl.coffee | packages/rocketchat-lib/lib/startup/settingsOnLoadSiteUrl.coffee | if Meteor.isServer
url = Npm.require('url')
RocketChat.settings.get 'Site_Url', (key, value) ->
if value?.trim() isnt ''
__meteor_runtime_config__.ROOT_URL = value
__meteor_runtime_config__.DDP_DEFAULT_CONNECTION_URL = value
if Meteor.absoluteUrl.defaultOptions?.rootUrl?
Meteor.absoluteUrl.defaultOptions.ro... | if Meteor.isServer
url = Npm.require('url')
RocketChat.settings.get 'Site_Url', (key, value) ->
if value?.trim() isnt ''
__meteor_runtime_config__.ROOT_URL = value
if Meteor.absoluteUrl.defaultOptions?.rootUrl?
Meteor.absoluteUrl.defaultOptions.rootUrl = value
if Meteor.isServer
RocketChat.hostname = u... | Fix problem with ddp connection from some urls | Fix problem with ddp connection from some urls
| CoffeeScript | mit | pitamar/Rocket.Chat,yuyixg/Rocket.Chat,nishimaki10/Rocket.Chat,inoxth/Rocket.Chat,tntobias/Rocket.Chat,AlecTroemel/Rocket.Chat,inoxth/Rocket.Chat,k0nsl/Rocket.Chat,capensisma/Rocket.Chat,haoyixin/Rocket.Chat,xboston/Rocket.Chat,snaiperskaya96/Rocket.Chat,mrinaldhar/Rocket.Chat,Deepakkothandan/Rocket.Chat,ziedmahdi/Rock... |
93f8bfb80f950c7b7b8e830a8fe32fda1849cf52 | hubot-dotnet/index.coffee | hubot-dotnet/index.coffee | {Robot, Adapter, TextMessage, EnterMessage, LeaveMessage, Response} = require 'hubot'
DotNetServer = require './dotnet'
class DotNet extends Adapter
send: (envelope, strings...) ->
@server.sendChat envelope.message.client, str for str in strings
emote: (envelope, strings...) ->
@server.sendEmote envelo... | {Robot, Adapter, TextMessage, EnterMessage, LeaveMessage, Response} = require 'hubot'
DotNetServer = require './server'
class DotNet extends Adapter
constructor: ->
@port = process.env.HUBOT_DOTNET_PORT || 8880
send: (envelope, strings...) ->
@server.sendChat envelope.message.client, str for str in s... | Fix a few adapter issues. | Fix a few adapter issues.
| CoffeeScript | mit | VoiDeD/hubot-dotnet |
3f920991cdc385a0e55adb7078807b712f4b899a | scripts/programmer-excuses.coffee | scripts/programmer-excuses.coffee | # Description:
# Hubot will handle your bug reports now
#
# Dependencies:
# "scraper": "0.0.9"
#
# Configuration:
# None
#
# Commands:
#
# Author:
# capoferro (shamelessly copied from rrix's archer.coffee)
scraper = require 'scraper'
action = (msg) ->
options = {
'uri': 'http://programmerexcuses.com'... | # Description:
# Hubot will handle your bug reports now
#
# Dependencies:
# "scraper": "0.0.9"
#
# Configuration:
# None
#
# Commands:
#
# Author:
# capoferro (shamelessly copied from rrix's archer.coffee)
scraper = require 'scraper'
action = (msg) ->
options = {
'uri': 'http://programmerexcuses.com'... | Reduce verbosity of programmer excuses | Reduce verbosity of programmer excuses
| CoffeeScript | mit | RiotGamesMinions/lefay,RiotGamesMinions/lefay |
00271280eb0d5febb9adb46636230c1ce9eb7139 | app/models/DialogManager.coffee | app/models/DialogManager.coffee | mediator = require 'mediator'
module.exports = class DialogManager
constructor: ->
@source = document.getElementById 'dialog-template'
@template = Handlebars.compile(@source.innerText)
mediator.dialogManager = @
showDialog: (data, callback) =>
result = $ @template(data)
that = this
result... | mediator = require 'mediator'
module.exports = class DialogManager
constructor: ->
@source = document.getElementById 'dialog-template'
@template = Handlebars.compile(@source.innerText)
@canvas = document.getElementById 'game-canvas'
mediator.dialogManager = @
showDialog: (data, callback) =>
re... | Fix dialogmanager only working in debug mode | Fix dialogmanager only working in debug mode | CoffeeScript | apache-2.0 | despairblue/shiny-wight |
43f8b185db3ff3bc176d5e1676261bf60d35c127 | api/index.coffee | api/index.coffee |
# dom.d.ts: https://github.com/Microsoft/TypeScript/blob/master/src/lib/dom.generated.d.ts
# this fix is needed because these definitions are absent from typescript's official lib.d.ts and are used in dom.d.ts.
fix =
"""
interface ArrayBufferView {}
declare var ArrayBufferView: {}
interface ArrayBuffer {}
declare v... |
# dom.d.ts: https://github.com/Microsoft/TypeScript/blob/master/src/lib/dom.generated.d.ts
# This fix is needed because these definitions are absent from typescript's official lib.d.ts and are used in dom.d.ts.
# 06 march 2015: these definitions can actually be found in :
# https://github.com/Microsoft/TypeScript/bl... | Add comments on missing definitions. | Add comments on missing definitions.
| CoffeeScript | mit | florentpoujol/superpowers-dom-plugin |
086d19ef6c30d6bbd43e03d6d802e89b000cb66e | keymaps/find-and-replace.cson | keymaps/find-and-replace.cson | 'body':
'meta-F': 'project-find:show'
'meta-f': 'find-and-replace:show'
'.editor':
'alt-meta-f': 'find-and-replace:show-replace'
'meta-g': 'find-and-replace:find-next'
'meta-G': 'find-and-replace:find-previous'
'meta-e': 'find-and-replace:use-selection-as-find-pattern'
'.find-and-replace':
'meta-enter... | 'body':
'meta-F': 'project-find:show'
'meta-f': 'find-and-replace:show'
'alt-meta-f': 'find-and-replace:show-replace'
'.editor':
'meta-g': 'find-and-replace:find-next'
'meta-G': 'find-and-replace:find-previous'
'meta-e': 'find-and-replace:use-selection-as-find-pattern'
'.find-and-replace':
'meta-enter'... | Make replace keymap work in all contexts | Make replace keymap work in all contexts
| CoffeeScript | mit | harai/find-and-replace,atom/find-and-replace,bmperrea/find-and-replace,trevdor/find-and-replace |
a184116b42792de88285e322dbbf7c4c21e01898 | config.coffee | config.coffee | exports.config =
# See http://brunch.io/#documentation for docs.
files:
javascripts:
joinTo:
'javascripts/app.js': /^app/
'javascripts/vendor.js': /^vendor/
'test/javascripts/test.js': /^test[\\/](?!vendor)/
'test/javascripts/test-vendor.js': /^test[\\/](?=vendor)/
or... | exports.config =
# See http://brunch.io/#documentation for docs.
files:
javascripts:
joinTo:
'javascripts/app.js': /^app/
'javascripts/vendor.js': /^vendor/
'test/javascripts/test.js': /^test[\\/](?!vendor)/
'test/javascripts/test-vendor.js': /^test[\\/](?=vendor)/
or... | Switch source urls on again | Switch source urls on again
Fixed with:
https://github.com/despairblue/brunch-with-chaplin/commit/a8bf36c7ac6736324b6821351f9d1a562c0f3c33
and
https://github.com/despairblue/handlebars-brunch/commit/5220e5e6a95fe1a9c6e3bd4d6a3d7dfad9cd4c3f
| CoffeeScript | apache-2.0 | despairblue/scegratoo |
04fce8067ff911c7d89924568184e64ad922c615 | src/atom/app.coffee | src/atom/app.coffee | Keymap = require 'keymap'
$ = require 'jquery'
_ = require 'underscore'
require 'underscore-extensions'
module.exports =
class App
keymap: null
windows: null
tabText: null
constructor: (@loadPath, nativeMethods)->
@windows = []
@setUpKeymap()
@tabText = " "
setUpKeymap: ->
@keymap = new Ke... | Keymap = require 'keymap'
$ = require 'jquery'
_ = require 'underscore'
require 'underscore-extensions'
module.exports =
class App
keymap: null
windows: null
tabText: null
constructor: (@loadPath, nativeMethods)->
@windows = []
@setUpKeymap()
@tabText = " "
setUpKeymap: ->
@keymap = new Ke... | Add some temporary logging to debug intermittent spec failure. | Add some temporary logging to debug intermittent spec failure. | CoffeeScript | mit | tisu2tisu/atom,RobinTec/atom,jtrose2/atom,toqz/atom,ppamorim/atom,sebmck/atom,matthewclendening/atom,devoncarew/atom,Mokolea/atom,yalexx/atom,hagb4rd/atom,G-Baby/atom,stuartquin/atom,deepfox/atom,codex8/atom,bradgearon/atom,deepfox/atom,githubteacher/atom,bryonwinger/atom,Abdillah/atom,acontreras89/atom,sekcheong/atom,... |
c9e7cfc02ce454ff678463a136d3110835478b2e | src/panel-element.coffee | src/panel-element.coffee | {CompositeDisposable} = require 'event-kit'
{callAttachHooks} = require './space-pen-extensions'
class PanelElement extends HTMLElement
createdCallback: ->
@subscriptions = new CompositeDisposable
initialize: (@model) ->
@appendChild(@getItemView())
@classList.add(@model.getClassName().split(' ')...)... | {CompositeDisposable} = require 'event-kit'
{callAttachHooks} = require './space-pen-extensions'
Panel = require './panel'
class PanelElement extends HTMLElement
createdCallback: ->
@subscriptions = new CompositeDisposable
initialize: (@model) ->
@appendChild(@getItemView())
@classList.add(@model.get... | Allow PanelElements to be instantiated with markup | Allow PanelElements to be instantiated with markup
| CoffeeScript | mit | ali/atom,fang-yufeng/atom,hakatashi/atom,Hasimir/atom,dkfiresky/atom,alfredxing/atom,jordanbtucker/atom,bryonwinger/atom,davideg/atom,Neron-X5/atom,jordanbtucker/atom,woss/atom,me6iaton/atom,kjav/atom,scippio/atom,rsvip/aTom,KENJU/atom,vjeux/atom,crazyquark/atom,SlimeQ/atom,yamhon/atom,hellendag/atom,deepfox/atom,yalex... |
7457c93746c324dabe064da046fdefcdcd8842b4 | src/flux/stores/database.coffee | src/flux/stores/database.coffee | Reflux = require 'reflux'
Actions = require '../actions/database'
Common = require '../common/application'
Executor = new (require('remote').require('../browser/application-executor.coffee'))
cache =
loading: false
connections: []
Store = Reflux.createStore(
init: ->
@listenToMany(Actions)
onCreateConnec... | Reflux = require 'reflux'
Actions = require '../actions/database'
Common = require '../common/application'
Executor = new (require('remote').require('../browser/application-executor'))
cache =
loading: false
connections: []
Store = Reflux.createStore(
init: ->
@listenToMany(Actions)
onCreateConnection: (... | Fix error when calling application executor from packaged app | Fix error when calling application executor from packaged app
| CoffeeScript | mit | iiegor/zenit,zenit/zenit,iiegor/zenit,zenit/zenit |
3844295135302f001379157e8982762d41f99a5b | src/coffee/controller/SyllabusItemsController.coffee | src/coffee/controller/SyllabusItemsController.coffee | mainModule = angular.module 'meducationFrontEnd'
syllabusItemsControllerFunction = ($scope, syllabusItemsService) ->
levels = [0 ,1, 2, 3, 4]
$scope.init = ->
$scope.items = syllabusItemsService.query()
$scope.showSelect = (level) ->
level?.children?.length > 0
$scope.updateMeshHeadingIds = ->
... | mainModule = angular.module 'meducationFrontEnd'
syllabusItemsControllerFunction = ($scope, syllabusItemsService) ->
levels = [0..4]
$scope.init = ->
$scope.items = syllabusItemsService.query()
$scope.showSelect = (level) ->
level?.children?.length > 0
$scope.updateMeshHeadingIds = ->
$scope.me... | Use shorthand array creation for levels | Use shorthand array creation for levels
| CoffeeScript | agpl-3.0 | meducation/front-end,meducation/front-end |
f4d8c84a8e76eacb9e9cab7a735c0bcb6c91803e | src/task-bootstrap.coffee | src/task-bootstrap.coffee | {userAgent, taskPath} = process.env
handler = null
setupGlobals = ->
global.attachEvent = ->
console =
warn: -> emit 'task:warn', arguments...
log: -> emit 'task:log', arguments...
error: -> emit 'task:error', arguments...
trace: ->
global.__defineGetter__ 'console', -> console
global.document... | {userAgent, taskPath} = process.env
handler = null
setupGlobals = ->
global.attachEvent = ->
console =
warn: -> emit 'task:warn', arguments...
log: -> emit 'task:log', arguments...
error: -> emit 'task:error', arguments...
trace: ->
global.__defineGetter__ 'console', -> console
global.document... | Include stack for uncaught exceptions | Include stack for uncaught exceptions
| CoffeeScript | mit | omarhuanca/atom,bencolon/atom,bj7/atom,lovesnow/atom,targeter21/atom,rmartin/atom,jeremyramin/atom,rlugojr/atom,dsandstrom/atom,Jandersolutions/atom,mnquintana/atom,dsandstrom/atom,ilovezy/atom,medovob/atom,helber/atom,florianb/atom,tony612/atom,erikhakansson/atom,beni55/atom,ralphtheninja/atom,AlbertoBarrago/atom,fedo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.