commit
stringlengths
40
40
old_file
stringlengths
9
134
new_file
stringlengths
9
134
old_contents
stringlengths
0
2.21k
new_contents
stringlengths
34
3.19k
subject
stringlengths
14
340
message
stringlengths
15
1.43k
lang
stringclasses
1 value
license
stringclasses
13 values
repos
stringlengths
9
29k
3a09c56aff51c5f233e48044161921790b666019
lib/layervault/nodes/folder.coffee
lib/layervault/nodes/folder.coffee
Node = require '../node' module.exports = class Folder extends Node get: (cb) -> @api.get(@nodePath, {}, cb.bind(@)) create: (cb) -> @api.post(@nodePath, {}, cb.bind(@)) delete: (cb) -> @api.delete(@nodePath, {}, cb.bind(@)) move: (to, cb) -> @api.post("#{@nodePath}/move", { to: to }, cb.bind(@)) rename: @mo...
Node = require '../node' module.exports = class Folder extends Node get: (cb) -> @api.get(@nodePath, {}, cb.bind(@)) create: (cb) -> @api.post(@nodePath, {}, cb.bind(@)) delete: (cb) -> @api.delete(@nodePath, {}, cb.bind(@)) move: (to, cb) -> @api.post("#{@nodePath}/move", { to: to }, cb.bind(@)) rename: @mo...
Change to changeColor to avoid property conflict
Change to changeColor to avoid property conflict
CoffeeScript
mit
layervault/layervault_js_client
0a3e85a4caddce270f2735ee66af24849c3fc295
core/app/backbone/models/fact_relation.coffee
core/app/backbone/models/fact_relation.coffee
class window.FactRelation extends Backbone.Model defaults: evidence_type: 'FactRelation' setOpinion: (type) -> $.ajax url: @url() + "/opinion/" + type success: (data) => mp_track "Evidence: opinionate", type: type evidence_id: @id @set data type: "po...
class window.FactRelation extends Backbone.Model defaults: evidence_type: 'FactRelation' opinions: formatted_relevance: "?" setOpinion: (type) -> $.ajax url: @url() + "/opinion/" + type success: (data) => mp_track "Evidence: opinionate", type: type evidenc...
Set also placeholder when adding a fact relation
Set also placeholder when adding a fact relation
CoffeeScript
mit
Factlink/factlink-core,daukantas/factlink-core,Factlink/factlink-core,daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core,daukantas/factlink-core
9a21ffd69114e7adb17fb4bf88da550213a42ff7
client.coffee
client.coffee
reloadStylesheets = -> queryString = '?reload=' + new Date().getTime() el.href = el.href.replace(/\?.*|$/, queryString) for el in document.querySelectorAll('link[rel="stylesheet"]') connect = (opts={}) -> # if user is running mozilla then use it's built-in WebSocket window.WebSocket ||= window.MozWebSocket ...
reloadStylesheets = -> queryString = '?reload=' + new Date().getTime() el.href = el.href.replace(/\?.*|$/, queryString) for el in document.querySelectorAll('link[rel="stylesheet"]') connect = (opts={}) -> # if user is running mozilla then use it's built-in WebSocket WebSocket = window.WebSocket || window.MozWe...
Return silently if no WebSockets support
Return silently if no WebSockets support
CoffeeScript
mit
bjoerge/quickreload,bjoerge/quickreload
d92903f838c1a2b9b770107ad221ef5d06204418
src/app/config/restangular.coffee
src/app/config/restangular.coffee
`// @ngInject` angular.module('cobudget').config (RestangularProvider, config) -> RestangularProvider.setBaseUrl(config.apiEndpoint) RestangularProvider.setDefaultHttpFields withCredentials: true RestangularProvider.setDefaultHeaders Accept: "application/json" RestangularProvider.setResponseInterceptor...
`// @ngInject` angular.module('cobudget').config (RestangularProvider, config) -> RestangularProvider.setBaseUrl(config.apiEndpoint) RestangularProvider.setDefaultHttpFields withCredentials: true RestangularProvider.setDefaultHeaders Accept: "application/json" RestangularProvider.setResponseInterceptor...
Revert "Revert "Add root node to POST contributions/""
Revert "Revert "Add root node to POST contributions/"" This reverts commit cffb43d652f57fa64f7bfc630d214f33206ddae0.
CoffeeScript
agpl-3.0
cobudget/cobudget-ui,cobudget/cobudget-ui,euglazer/co-pay-ui,data-doge/co-pay-ui,data-doge/co-pay-ui,euglazer/co-pay-ui
cf4db0c16058ad3ac598d5369200863ae889bf8c
app/assets/javascripts/event_stream_actions.js.coffee
app/assets/javascripts/event_stream_actions.js.coffee
ETahi.EventStreamActions = { created: (esData) -> Ember.run => if esData.task phaseId = esData.task.phase_id taskId = esData.task.id @store.pushPayload('task', esData) task = @store.findTask(taskId) phase = @store.getById('phase', phaseId) phase.get('tasks').a...
ETahi.EventStreamActions = { created: (esData) -> Ember.run => if esData.task phaseId = esData.task.phase_id taskId = esData.task.id @store.pushPayload('task', esData) task = @store.findTask(taskId) phase = @store.getById('phase', phaseId) phase.get('tasks').a...
Remove unused local var in event stream actions
Remove unused local var in event stream actions
CoffeeScript
mit
johan--/tahi,johan--/tahi,johan--/tahi,johan--/tahi
6270572dce6452363f528ed4731d16a196bf6422
webpack/src/index.coffee
webpack/src/index.coffee
require('./styles/index.scss') require('leaflet/dist/leaflet.css') require('leaflet') findClosestTo = (origin, parsed) -> minDistance = 1000 found = null for element in parsed.elements elemLatLng = new L.LatLng(element.lat, element.lon) if origin.distanceTo(elemLatLng) < minDistance found = elemLa...
require('./styles/index.scss') require('leaflet/dist/leaflet.css') require('leaflet') overpass_query = (latlng) -> lat = latlng.lat lng = latlng.lng """ [out:json]; way(around:100,#{lat},#{lng})->.ways; node(around:100,#{lat},#{lng})->.nodes; .ways >->.way_nodes; node.nodes.way_nodes; out; """ fi...
Include only nodes being part of ways
Include only nodes being part of ways
CoffeeScript
mit
DawidJanczak/elevation_profiler,DawidJanczak/elevation_profiler
bed570dd4a0feb4121b7cd9785912541c3bf672e
site/modules/media/media.module.coffee
site/modules/media/media.module.coffee
angular.module 'module.media', [ 'restangular' 'ui.router' 'service.auth' 'service.overlay' 'module.common' ] .config [ '$stateProvider', ($stateProvider) -> $stateProvider .state 'media', url: '/m/:hash' templateUrl: 'modules/media/media.tpl.html' ...
angular.module 'module.media', [ 'restangular' 'ui.router' 'service.auth' 'service.overlay' 'module.common' ] .config [ '$stateProvider', ($stateProvider) -> $stateProvider .state 'media', url: '/m/:hash' templateUrl: 'modules/media/media.tpl.html' ...
Fix broken media view when not logged in
Fix broken media view when not logged in
CoffeeScript
isc
soulweaver91/gw2hub
e85031f4c4376e4203adf155de6d276029b870e6
client/app/lib/util/trackEvent.coffee
client/app/lib/util/trackEvent.coffee
kd = require 'kd' globals = require 'globals' isLoggedIn = require './isLoggedIn' trackEligible = -> return analytics? and globals.config.logToExternal # Access control wrapper around segmentio object. module.exports = exports = (args...) -> return unless trackEligible() # send event#action as event for GA ...
globals = require 'globals' isLoggedIn = require './isLoggedIn' trackEligible = -> return analytics? and globals.config.logToExternal # Access control wrapper around segmentio object. module.exports = exports = (args...) -> return unless trackEligible() # send event#action as event for GA if args.length >...
Remove obsolete module require statement
Remove obsolete module require statement
CoffeeScript
agpl-3.0
szkl/koding,acbodine/koding,gokmen/koding,drewsetski/koding,mertaytore/koding,sinan/koding,drewsetski/koding,jack89129/koding,szkl/koding,sinan/koding,andrewjcasal/koding,koding/koding,cihangir/koding,rjeczalik/koding,usirin/koding,koding/koding,koding/koding,szkl/koding,cihangir/koding,jack89129/koding,jack89129/kodin...
12c180d53d9a0c974466ee8970f33d63558f99a6
src/api/settings.coffee
src/api/settings.coffee
settings = # # set/comment in to use actual BE # baseUrl: 'http://localhost:3001' endpoints: 'exercise.*.send.save': url: 'api/steps/{id}' method: 'PATCH' completedEvent: 'exercise.{id}.receive.save' 'exercise.*.send.complete': url: 'api/steps/{id}/completed' method: 'PUT' ...
settings = # to customize, set environmental var BASE_URL when building or running webpack-dev-server # Currently is set on an endpoint by endpoint basis until all are implemented by BE # baseUrl: process?.env?.BASE_URL endpoints: 'exercise.*.send.save': url: 'api/steps/{id}' method: 'PATCH' ...
Document baseURL and set it for tasks
Document baseURL and set it for tasks
CoffeeScript
agpl-3.0
openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js
83a488737d75b68bc61a93843cab5ae6531cc6bd
index.coffee
index.coffee
async = require 'async' {Boutique} = require './lib/boutique' {serializers} = require './lib/serializers' {selectFormat} = require './lib/formatselection' formats = 'application/json': lib: require './lib/formats/json' serialize: serializers.json represent = (ast, contentType, options, cb) -> key = se...
async = require 'async' {Boutique} = require './lib/boutique' {serializers} = require './lib/serializers' {selectFormat} = require './lib/formatselection' formats = 'application/json': lib: require './lib/formats/json' serialize: serializers.json represent = (ast, contentType, options, cb) -> if typeo...
Support for optional number of arguments.
Support for optional number of arguments.
CoffeeScript
mit
apiaryio/boutique.js
b363ea10f6855a22681a7174f6cb79a88fab6d93
app/assets/javascripts/web/controllers/message_controller.js.coffee
app/assets/javascripts/web/controllers/message_controller.js.coffee
Cloudsdale.MessageController = Ember.Controller.extend content: null text: ( () -> text = @content.get('content') || "" text = text.replace(/\s/g, '&nbsp;') text = text.replace(/(\\r\\n|\\n|\\r)/g, '<br/>') return text ).property('content.content') avatar: ( () -> @content.get('author').g...
Cloudsdale.MessageController = Ember.Controller.extend content: null text: ( () -> text = @content.get('content') || "" text = text.replace(/\s(?=\s)/g, '&nbsp;') text = text.replace(/(\\r\\n|\\n|\\r)/g, '<br/>') return text ).property('content.content') avatar: ( () -> @content.get('auth...
Use regex lookahead to sort out the issue with breaking words.
Use regex lookahead to sort out the issue with breaking words.
CoffeeScript
mit
cloudsdaleapp/cloudsdale-web,cloudsdaleapp/cloudsdale-web,cloudsdaleapp/cloudsdale-web,cloudsdaleapp/cloudsdale-web
7c0d44450413296db773e9be3d211b2c6015ba03
app/packages/surveys/imports/activation.coffee
app/packages/surveys/imports/activation.coffee
### Toggles the activation state of a survey based on the 'active' ReactiveVar on the instance @param [Object] instance, Blaze instance ### activate = (instance) -> activeState = instance.active activeState.set not activeState.get() props = active: activeState.get() instance.data.survey.save(props) ...
### Toggles the activation state of a survey based on the 'active' ReactiveVar on the instance @param [Object] instance, Blaze instance ### activate = (instance) -> activeState = instance.active activeState.set not activeState.get() props = active: activeState.get() instance.activating.set true inst...
Remove call to setACL method when survey is activated
Remove call to setACL method when survey is activated
CoffeeScript
apache-2.0
ecohealthalliance/mobile-survey,ecohealthalliance/mobile-survey,ecohealthalliance/mobile-survey
78c57fb10387eb34d01020e603aff7e27abf5314
app/assets/javascripts/application.coffee
app/assets/javascripts/application.coffee
# ************************************* # # Application # -> Compendium # # ************************************* # ------------------------------------- # Vendor # ------------------------------------- #= require jquery #= require jquery.tokeninput #= require jquery_ujs #= require moment # -------------------...
# ************************************* # # Application # -> Compendium # # ************************************* # ------------------------------------- # Vendor # ------------------------------------- #= require jquery #= require jquery.tokeninput #= require jquery_ujs #= require moment # -------------------...
Improve Table of Contents nested list handling
Improve Table of Contents nested list handling
CoffeeScript
mit
orientation/orientation,splicers/orientation,friism/orientation,LogicalBricks/orientation,codeschool/orientation,twinn/orientation,hashrocket/orientation,Scripted/orientation,orientation/orientation,smashingboxes/orientation,IZEA/orientation,liufffan/orientation,IZEA/orientation,codio/orientation,ferdinandrosario/orien...
9cd9cc45bf17e62a2c9d39d4980847c0b6e3063f
src/kissmetrics-batch.coffee
src/kissmetrics-batch.coffee
# # Kissmetrics Batch class BatchKissmetricsClient @HOST: 'api.kissmetrics.com' constructor: (@queue) -> @_validate_queue @queue add: (timestamp, data) -> data.timestamp = timestamp @_transformData data @queue.add data get: -> @queue.get() process: -> queue = @get() _transform...
# # Kissmetrics Batch class BatchKissmetricsClient @HOST: 'api.kissmetrics.com' constructor: (@queue) -> @_validate_queue @queue add: (timestamp, data) -> data.timestamp = timestamp @_transformData data @queue.add data get: -> @queue.get() process: -> queue = @get() _transform...
Delete data.type once it's used to transform batch data
Delete data.type once it's used to transform batch data
CoffeeScript
mit
evansolomon/kissmetrics-js,evansolomon/kissmetrics-js
a476c70249d86acc4afd896167dd38aef3eadc48
atom/packages.cson
atom/packages.cson
packages: [ "atom-beautify" "atomic-chrome" "close-tags" "date" "file-icons" "git-history" "git-plus" "git-time-machine" "language-eco" "language-elixir" "language-haml" "language-rspec" "linter" "linter-write-good" "merge-conflicts" "package-sync" "rails-snippets" "rails-transporter...
packages: [ "atom-beautify" "atomic-chrome" "close-tags" "date" "file-icons" "git-history" "git-plus" "git-time-machine" "language-eco" "language-elixir" "language-haml" "language-rspec" "linter" "linter-write-good" "merge-conflicts" "package-sync" "pane-layout-plus" "rails-snippets"...
Add back Atom `pane-layout-plus` package
Add back Atom `pane-layout-plus` package To get keyboard navigation among panes with CTRL + <number>
CoffeeScript
mit
jeffcole/dotfiles-local
adc13e07d8310821ab7f5dca75cc2bfd5913f128
core/app/backbone/views/users/user_statistics_view.coffee
core/app/backbone/views/users/user_statistics_view.coffee
class window.UserStatisticsView extends Backbone.Marionette.ItemView className: 'statistics' template: 'users/statistics'
class window.UserStatisticsView extends Backbone.Marionette.ItemView className: 'statistics' template: 'users/statistics' initialize: -> @listenTo @model, 'change', @render
Update statistics when model changes
Update statistics when model changes
CoffeeScript
mit
Factlink/factlink-core,daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core,Factlink/factlink-core,daukantas/factlink-core
fb78b2870dbf20208cb342ed77371c5298cbad97
client/controllers/reactiveTable.coffee
client/controllers/reactiveTable.coffee
Template.reactiveTable.onRendered -> if @data.settings.keyboardFocus attrs = tabindex: '0' @$('tbody > tr').attr(attrs) Template.reactiveTable.events 'click tbody > tr': (event, instance) -> instance.$(event.currentTarget).blur()
Template.reactiveTable.onRendered -> if @data.settings.keyboardFocus @autorun => if @context.ready.get() Meteor.defer => @$('tbody > tr').attr(tabindex: '0') Template.reactiveTable.events 'click tbody > tr': (event, instance) -> instance.$(event.currentTarget).blur()
Add tabindex attr to table rows after table is loaded
Add tabindex attr to table rows after table is loaded
CoffeeScript
apache-2.0
ecohealthalliance/eidr-connect,ecohealthalliance/eidr-connect,ecohealthalliance/eidr-connect,ecohealthalliance/eidr-connect
261ff288c5a853ad08753746abbd66ddb50930c4
packages/rocketchat-slashcommands-invite/server.coffee
packages/rocketchat-slashcommands-invite/server.coffee
### # Invite is a named function that will replace /invite commands # @param {Object} message - The message object ### class Invite constructor: (command, params, item) -> if command isnt 'invite' or not Match.test params, String return username = params.trim() if username is '' return username = user...
### # Invite is a named function that will replace /invite commands # @param {Object} message - The message object ### class Invite constructor: (command, params, item) -> if command isnt 'invite' or not Match.test params, String return username = params.trim() if username is '' return username = user...
Change /invite to use addUserToRoom instead joinRoom
Change /invite to use addUserToRoom instead joinRoom
CoffeeScript
mit
liuliming2008/Rocket.Chat,tntobias/Rocket.Chat,acaronmd/Rocket.Chat,abhishekshukla0302/trico,org100h1/Rocket.Panda,karlprieb/Rocket.Chat,subesokun/Rocket.Chat,subesokun/Rocket.Chat,flaviogrossi/Rocket.Chat,danielbressan/Rocket.Chat,Dianoga/Rocket.Chat,timkinnane/Rocket.Chat,AimenJoe/Rocket.Chat,Movile/Rocket.Chat,linno...
de5fbc728583df0e0915b64073bad7ce4806305e
lib/request.coffee
lib/request.coffee
_ = require 'lodash' request = require 'request' deepPluck = require 'deep-pluck' isError = (errorCode) -> if errorCode? and errorCode.toString() isnt '0' then true else false createErrorMsg = (body, codeKey, msgKey) -> [code, msg] = [deepPluck(body, codeKey)[0], deepPluck(body, msgKey)[0]] if isError(co...
_ = require 'lodash' request = require 'request' keyfinder = require 'keyfinder' isError = (errorCode) -> if errorCode? and errorCode.toString() isnt '0' then true else false createErrorMsg = (body, codeKey, msgKey) -> [code, msg] = [keyfinder(body, codeKey)[0], keyfinder(body, msgKey)[0]] if isError...
Replace deep-pluck with keyfinder module
Replace deep-pluck with keyfinder module
CoffeeScript
mit
simon-johansson/SL-api,simon-johansson/SL-api
01a0e48179b2b4ddc0df5364c2c5beb040fa2b75
app/controllers/Toolbox.coffee
app/controllers/Toolbox.coffee
class Toolbox extends Spine.Controller events: 'click .tool' : 'selection' 'click .remove-tools': 'clearDashboard' constructor: -> super render: => @html require('views/toolbox')(@) if @el.html clearDashboard: (e) => @trigger 'remove-all-tools' selection: (e) => e.preventDef...
Spine = require 'spine' class Toolbox extends Spine.Controller events: 'click .tool' : 'selection' 'click .remove-tools': 'clearDashboard' constructor: -> super render: => @html require('views/toolbox')(@) if @el.html clearDashboard: (e) => @trigger 'remove-all-tools' selection:...
Add spine require to toolbox to make it pass tests on linux
Add spine require to toolbox to make it pass tests on linux
CoffeeScript
apache-2.0
zooniverse/Ubret-Dashboard
b75c9cc7a46619a8ea8d4834e1f01923683f35be
app/assets/javascripts/angular/controllers/form_ctrl.js.coffee
app/assets/javascripts/angular/controllers/form_ctrl.js.coffee
angular.module("grumbles") .controller "FormCtrl", ($http, Output) -> @submit = -> return unless @command split_command = @command.split " " verb = split_command[0] entity = split_command[1] other_entity = split_command[2] path = "/#{verb}/#{entity}" pat...
angular.module("grumbles") .controller "FormCtrl", ($http, Output) -> @submit = -> return unless @command split_command = @command.split " " verb = split_command[0] entity = split_command[1] other_entity = split_command[2] path = "/#{verb}/#{entity}" pat...
Reset command input on successful commands
Reset command input on successful commands
CoffeeScript
mit
hyperoslo/grumbles,railsrumble/r14-team-354,hyperoslo/grumbles
37e429e5ce995208c8dd29f55151bd0db7da9312
app/assets/javascripts/ab_admin/inputs/datetime_input.js.coffee
app/assets/javascripts/ab_admin/inputs/datetime_input.js.coffee
$ -> window.initPickers = -> base_options = format: "yyyy-mm-dd hh:ii" autoclose: true todayBtn: true viewSelect: 'month' minView: 'day' language: I18n.locale search_form_options = _.defaults({pickerPosition: "bottom-left datetimepicker-bottom-left-custom"}, base_options) ...
$ -> window.initPickers = -> base_options = format: "yyyy-mm-dd hh:ii" autoclose: true todayBtn: true viewSelect: 'month' minView: 'day' language: I18n.locale weekStart: 1 search_form_options = _.defaults({pickerPosition: "bottom-left datetimepicker-bottom-left-custo...
Set datepicker start weekday to Monday
Set datepicker start weekday to Monday
CoffeeScript
mit
leschenko/ab_admin,leschenko/ab_admin,leschenko/ab_admin
3de654d067bb00cba219b2b7920faebcc9049641
js-library/app/js/jail_iframe/initializers/scrollbarSuppressor.coffee
js-library/app/js/jail_iframe/initializers/scrollbarSuppressor.coffee
FactlinkJailRoot.on 'modalOpened', -> document.documentElement.setAttribute('data-factlink-suppress-scrolling', '') FactlinkJailRoot.on 'modalClosed', -> document.documentElement.removeAttribute('data-factlink-suppress-scrolling')
scrollbarWidth = 0 FactlinkJailRoot.loaded_promise.then -> # Create the measurement nod; see http://davidwalsh.name/detect-scrollbar-width scrollDiv = document.createElement("div"); $(scrollDiv).css( width: "100px" height: "100px" overflow: "scroll" position: "absolute" top: "-9999px" ) do...
Implement a scrollbar width detector
Implement a scrollbar width detector
CoffeeScript
mit
daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core
d0f21ff7b72659f9d0ac58f17839784540fcc711
app/client/js/react/pages/home.coffee
app/client/js/react/pages/home.coffee
goog.provide 'app.react.pages.Home' class app.react.pages.Home ###* @param {app.Routes} routes @param {app.songs.Store} songsStore @param {app.react.Touch} touch @constructor ### constructor: (routes, songsStore, touch) -> {div,ul,li} = React.DOM {a} = touch.scroll 'a' @create = Rea...
goog.provide 'app.react.pages.Home' class app.react.pages.Home ###* @param {app.Routes} routes @param {app.songs.Store} songsStore @param {app.react.Touch} touch @constructor ### constructor: (routes, songsStore, touch) -> {div,ul,li,br} = React.DOM {a,button} = touch.scroll 'a', 'button...
Add dev reset storage button.
Add dev reset storage button.
CoffeeScript
mit
steida/songary
f136d3aeaf4b3ca1746c2d8652d6e087214222ee
projects.cson
projects.cson
[ { title: ".atom" icon: "atom-icon" paths: [ "~/.atom" ] devMode: true } { title: ".files" icon: "terminal-icon" paths: [ "~/.files" ] devMode: true } { title: "language-roff" icon: "manpage-icon" paths: [ "~/Labs/language-roff" ] devMode: true } { title: "file-icons" ...
[ { title: ".atom" icon: "atom-icon" paths: [ "~/.atom" ] devMode: true } { title: ".files" icon: "terminal-icon" paths: [ "~/.files" ] devMode: true } { title: "language-roff" icon: "manpage-icon" paths: [ "~/Labs/language-roff" ] devMode: true } { title: "file-icons" ...
Update project paths for File-Icons
Update project paths for File-Icons
CoffeeScript
isc
Alhadis/Atom-PhoenixTheme
a57342ab095b251cdf0c56e74bd43700d8867184
src/main.coffee
src/main.coffee
# # main.coffee # # Role: start the app # # Responsibility: # * load top-level modules # * initalize game based on query string # * render and append to body of HTML # * run tests if local # # Preamble # TODO: server-side include underscore, underscore.string, jquery {my} = require './my' sys = require 'sys' if not ...
# # main.coffee # # Role: start the app # # Responsibility: # * load top-level modules # * initalize game based on query string # * render and append to body of HTML # * run tests if local # # Preamble # TODO: server-side include underscore, underscore.string, jquery {my} = require './my' sys = require 'sys' queryStr...
Use query string to select game
Use query string to select game
CoffeeScript
isc
TheSwanFactory/hourofnode,TheSwanFactory/hourofnode
d04c8e752b59fc1bc72779ac02d7ca736560d70e
coffee/system.coffee
coffee/system.coffee
"use strict" os = require 'os' exports.info = (req, res, next) -> return res.status(403).end() if req.usr not in ['DNT', 'Pingdom'] res.json 200, app: uptime: process.uptime() memory: process.memoryUsage() os: uptime: os.uptime() loadavg: os.loadavg() totalmem: os.totalmem()...
"use strict" os = require 'os' exports.info = (req, res, next) -> return res.status(403).end() if req.usr isnt 'DNT' res.json 200, app: uptime: process.uptime() memory: process.memoryUsage() os: uptime: os.uptime() loadavg: os.loadavg() totalmem: os.totalmem() freemem:...
Remove access for pingdom for normal sys info call
Remove access for pingdom for normal sys info call
CoffeeScript
mit
Turistforeningen/Turbasen,Turbasen/Turbasen
b4cb5b1b9bf091681f33e3d219f6fdd8576e7a3d
atom.symlink/config.cson
atom.symlink/config.cson
"*": editor: showIndentGuide: true fontFamily: "Inconsolata" invisibles: {} scrollPastEnd: true softWrap: true softWrapAtPreferredLineLength: true preferredLineLength: 100 core: ignoredNames: [ ".bundle" ".git" "log" "repositories" "tmp" "vendor" ...
"*": editor: showIndentGuide: true fontFamily: "Inconsolata" invisibles: {} scrollPastEnd: true softWrap: true softWrapAtPreferredLineLength: true preferredLineLength: 100 core: ignoredNames: [ ".bundle" ".git" "log" "repositories" "tmp" "vendor" ...
Add make-runner package to Atom
Add make-runner package to Atom
CoffeeScript
mit
briandk/dotfiles,briandk/dotfiles
ad80aba1171882576d7dd32e0dced0dc25067ba1
collections/recent_connections.coffee
collections/recent_connections.coffee
Base = require './base.coffee' Backbone = require 'backbone' Backbone.LocalStorage = require 'backbone.localstorage' Block = require '../models/block.coffee' module.exports = class RecentConnections extends Backbone.Collection model: Block localStorage: new Backbone.LocalStorage RecentConnections shove: (model...
Base = require './base.coffee' Backbone = require 'backbone' Backbone.LocalStorage = require 'backbone.localstorage' Block = require '../models/block.coffee' module.exports = class RecentConnections extends Backbone.Collection model: Block localStorage: new Backbone.LocalStorage RecentConnections shove: (model...
Move created record to the top of the stack
Move created record to the top of the stack
CoffeeScript
mit
aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell
283c719184006297b408420996b3b9c852c96c1c
web/js/router.coffee
web/js/router.coffee
define ['backbone', 'utils', 'backboneAnalytics'], (Backbone, Utils) -> Backbone.Router.extend initialize: () -> @route '', 'homeView' @route /([^\/]+)\/([^\/]+)\/([^\/]+)\/([^\/]+)\/([^\/]+)(?:\/([^\/]+))?(?:\/([^\/]+))?\/?/, 'routesView' homeView: () => Reitti.Event.trigger 'home' r...
define ['backbone', 'utils', 'backboneAnalytics'], (Backbone, Utils) -> Backbone.Router.extend initialize: () -> @route '', 'homeView' @route /([^\/]+)\/([^\/]+)\/([^\/]+)\/([^\/]+)\/([^\/]+)(?:\/([^\/]+))?(?:\/([^\/]+))?\/?/, 'routesView' homeView: () => Reitti.Event.trigger 'home' r...
Check that legIndex isn't empty.
Check that legIndex isn't empty.
CoffeeScript
mit
reitti/reittiopas,reitti/reittiopas
da08d3823673f59aa5749eec8347ecf6c49c36a6
Gruntfile.coffee
Gruntfile.coffee
module.exports = (grunt) -> grunt.initConfig pkg: grunt.file.readJSON('package.json') coffee: glob_to_multiple: expand: true cwd: 'src' src: ['*.coffee'] dest: 'lib' ext: '.js' coffeelint: options: max_line_length: level: 'ignore' ...
module.exports = (grunt) -> grunt.initConfig pkg: grunt.file.readJSON('package.json') coffee: glob_to_multiple: expand: true cwd: 'src' src: ['*.coffee'] dest: 'lib' ext: '.js' coffeelint: options: max_line_length: level: 'ignore' ...
Tweak test command for Windows
Tweak test command for Windows
CoffeeScript
mit
atom/keyboard-layout,atom/keyboard-layout,atom/keyboard-layout
c7a84dfc38025a25a2f991ec9847a32b9fd3cd5a
app/assets/javascripts/cartas.js.coffee
app/assets/javascripts/cartas.js.coffee
# Hay que bindear tanto cuando se carga la página como cuando turbolinks la # pide (el page:change) bindearTodo = -> # mejora el estilo default de los file uploaders $("form.carta :file").filestyle( buttonText: 'Subir', classText: 'span9 filestyle', classButton: 'span3 filestyle' ) $(document) .on ...
# Hay que bindear tanto cuando se carga la página como cuando turbolinks la # pide (el page:change) bindearTodo = -> # mejora el estilo default de los file uploaders $("form.carta :file").filestyle( buttonText: 'Subir', classText: 'span9 filestyle', classButton: 'span3 filestyle' ) $(document) .on ...
Fix conflicto con alt + cursor
Fix conflicto con alt + cursor
CoffeeScript
agpl-3.0
mauriciopasquier/bibliotecadeleter,mauriciopasquier/bibliotecadeleter,mauriciopasquier/bibliotecadeleter
49b5ebedd7678720e7a159cd61823890e76337da
app/assets/javascripts/static.js.coffee
app/assets/javascripts/static.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/ roundUpBy = (value, round_to) -> return round_to * Math.ceil(value / round_to) $ -> animateMetric = $("...
# 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/ roundUpBy = (value, round_to) -> return round_to * Math.ceil(value / round_to) $ -> animateMetric = $("...
Make the stepped animation finish closer together
Make the stepped animation finish closer together
CoffeeScript
agpl-3.0
openaustralia/morph,openaustralia/morph,otherchirps/morph,openaustralia/morph,otherchirps/morph,openaustralia/morph,otherchirps/morph,openaustralia/morph,otherchirps/morph,otherchirps/morph,openaustralia/morph,otherchirps/morph,otherchirps/morph,openaustralia/morph
3a0037922f9506c7464eaa1e34e29e2883dfb2ed
slide/index.coffee
slide/index.coffee
fs = require 'fs' path = require 'path' yeoman = require 'yeoman-generator' semver = require 'semver' module.exports = class SlideGenerator extends yeoman.generators.NamedBase files: -> appPath = process.cwd() fullPath = path.join appPath, '/slides/list.json' list = require fullPath ...
fs = require 'fs' path = require 'path' yeoman = require 'yeoman-generator' semver = require 'semver' module.exports = class SlideGenerator extends yeoman.generators.NamedBase constructor: (args, options, config) -> super args, options, config @option 'notes', desc: 'Include speaker not...
Declare options for --help usage.
Declare options for --help usage.
CoffeeScript
mit
cbourgois/generator-reveal,slara/generator-reveal,janraasch/generator-reveal,ericmann/generator-reveal,riezebosch/generator-reveal-infosupport,slara/generator-reveal,ericmann/generator-reveal,riezebosch/generator-reveal-infosupport,janraasch/generator-reveal,cbourgois/generator-reveal
846a56e500b230fa1c46318afe5f17241dd56dc2
keymaps/encoding-selector.cson
keymaps/encoding-selector.cson
'.platform-darwin .editor': 'ctrl-shift-u': 'encoding-selector:show' '.platform-win32 .editor': 'ctrl-shift-u': 'encoding-selector:show' '.platform-linux .editor': 'ctrl-u': 'encoding-selector:show'
'.platform-darwin atom-text-editor': 'ctrl-shift-u': 'encoding-selector:show' '.platform-win32 atom-text-editor': 'ctrl-shift-u': 'encoding-selector:show' '.platform-linux atom-text-editor': 'ctrl-u': 'encoding-selector:show'
Fix deprecated selectors in keymap
Fix deprecated selectors in keymap
CoffeeScript
mit
pombredanne/encoding-selector,atom/encoding-selector
5706db1b990d4ff00666ad42cca129f20fa19f0d
atom/config.cson
atom/config.cson
"*": "atom-ctags": {} "autocomplete-plus": enableAutoActivation: false core: audioBeep: false disabledPackages: [ "exception-reporting" ] ignoredNames: [ ".bundle" ".git" "log" "repositories" "tmp" ] themes: [ "atom-dark-ui" "solarized-da...
"*": "atom-ctags": {} "autocomplete-plus": enableAutoActivation: false core: audioBeep: false disabledPackages: [ "exception-reporting" ] ignoredNames: [ ".bundle" ".git" "log" "repositories" "tmp" ] themes: [ "atom-dark-ui" "solarized-da...
Add Atom ruby-test preferred spec framework
Add Atom ruby-test preferred spec framework
CoffeeScript
mit
jeffcole/dotfiles-local
cbbb8cbf5b45d3cbf0b2f202f9ed663c2a149f08
spec/linter/rubocop-spec.coffee
spec/linter/rubocop-spec.coffee
Rubocop = require '../../lib/linter/rubocop' describe 'Rubocop', -> rubocop = null beforeEach -> rubocop = new Rubocop('/path/to/target.rb') describe 'buildCommand', -> originalRubocopPath = atom.config.get('atom-lint.rubocop.path') afterEach -> atom.config.set('atom-lint.rubocop.path', orig...
Rubocop = require '../../lib/linter/rubocop' describe 'Rubocop', -> rubocop = null beforeEach -> rubocop = new Rubocop('/path/to/target.rb') describe 'buildCommand', -> originalRubocopPath = atom.config.get('atom-lint.rubocop.path') afterEach -> atom.config.set('atom-lint.rubocop.path', orig...
Fix spec file to enable --force-exclusion option in RuboCop
Fix spec file to enable --force-exclusion option in RuboCop
CoffeeScript
mit
ahmetabdi/atom-lint,yujinakayama/atom-lint
35e96acbbb9ad79270f3cc2dd85c80d379c5cffe
server/prerender/index.coffee
server/prerender/index.coffee
{fork} = require('child_process') prerenderUrl = 'http://127.0.0.1:' + (process.env.PORT or 3000) module.exports = (app) -> # Start up prerender server child = fork('server/prerender/server') process.on 'exit', -> child.kill() # Set up Prerender middleware and link to server middleware = require('preren...
{fork} = require('child_process') prerenderUrl = 'http://127.0.0.1:' + (process.env.PORT or 3000) module.exports = (app) -> # Check if Prerender is available try require.resolve('prerender') require.resolve('prerender-node') catch return # Start up prerender server child = fork('server/prerender...
Check if pretender is available
Check if pretender is available
CoffeeScript
mit
jupl/btc-chaplin,jackhung/wokchap
bdd86bc7dd035520c3b3f1075da24e1b2fa1ee8d
tests/setup.coffee
tests/setup.coffee
_ = require('lodash') Promise = require('bluebird') IS_BROWSER = window? if (IS_BROWSER) # The browser mock assumes global fetch prototypes exist realFetchModule = require('fetch-ponyfill')({ Promise }) global.Promise = Promise global.Headers = realFetchModule.Headers global.Request = realFetchModule.Request gl...
_ = require('lodash') Promise = require('bluebird') IS_BROWSER = window? if (IS_BROWSER) # The browser mock assumes global fetch prototypes exist realFetchModule = require('fetch-ponyfill')({ Promise }) global.Promise = Promise global.Headers = realFetchModule.Headers global.Request = realFetchModule.Request gl...
Fix bug in fetch-mock that breaks custom Promise usage
Fix bug in fetch-mock that breaks custom Promise usage
CoffeeScript
apache-2.0
resin-io/resin-request,resin-io-modules/resin-request
2f8e6dd48f9f9ca5eedd5cd446e20e62765db778
app/routes.coffee
app/routes.coffee
passport = require 'passport' debug = require('debug')('meshblu-google-authenticator:routes') url = require 'url' class Router constructor: (@app) -> register: => @app.get '/', (request, response) => response.status(200).send status: 'online' @app.get '/login', @storeCallbackUrl, passport.authenticate '...
passport = require 'passport' debug = require('debug')('meshblu-google-authenticator:routes') url = require 'url' class Router constructor: (@app) -> register: => @app.get '/', (request, response) => response.status(200).send status: 'online' @app.get '/login', @storeCallbackUrl, passport.authenticate '...
Use the undocumented cookies api
Use the undocumented cookies api
CoffeeScript
mit
octoblu/meshblu-google-authenticator,octoblu/meshblu-authenticator-google
6ce80cda92d1b7a1040fa3fadb483f1c0d626b22
lib/merge-conflicts.coffee
lib/merge-conflicts.coffee
MergeConflictsView = require './merge-conflicts-view' SideView = require './side-view' NavigationView = require './navigation-view' Conflict = require './conflict' module.exports = activate: (state) -> atom.workspaceView.command "merge-conflicts:detect", -> MergeConflictsView.detect() atom.workspaceV...
MergeConflictsView = require './merge-conflicts-view' SideView = require './side-view' NavigationView = require './navigation-view' Conflict = require './conflict' module.exports = activate: (state) -> atom.workspaceView.command "merge-conflicts:detect", -> MergeConflictsView.detect() atom.workspaceV...
Use the new CoveringView API in MergeConflict.
Use the new CoveringView API in MergeConflict.
CoffeeScript
mit
smashwilson/merge-conflicts,smashwilson/merge-conflicts,antcodd/merge-conflicts
fffabed39e3e6c1efefee7e9bd8906efaca059bb
app/assets/javascripts/account.coffee
app/assets/javascripts/account.coffee
$ -> $('.reminder_active').on 'change', -> $('.reminder_days_before').prop "disabled", !@.checked select2_options = theme: 'bootstrap' placeholder: 'Selecione os usuários' maximumSelectionLength: 7 $('.select_users').select2 select2_options $('.js-account').click (e)-> path = '/main_accou...
$ -> $('.reminder_active').on 'change', -> $('.reminder_days_before').prop "disabled", !@.checked $('.public').on 'change', -> $('.select_users').prop "disabled", !@.checked select2_options = theme: 'bootstrap' placeholder: 'Selecione os usuários' maximumSelectionLength: 7 $('.select_user...
Add disable select_users when public is false
Add disable select_users when public is false
CoffeeScript
mit
samuelreichert/projII,samuelreichert/projII,samuelreichert/projII
c30f0328bff6e294af320b18de16baa28e229157
client/ide/lib/views/statusbar/idechatheadwatchitemview.coffee
client/ide/lib/views/statusbar/idechatheadwatchitemview.coffee
kd = require 'kd' KDCustomHTMLView = kd.CustomHTMLView KodingSwitch = require 'app/commonviews/kodingswitch' CustomLinkView = require 'app/customlinkview' module.exports = class IDEChatHeadWatchItemView extends KDCustomHTMLView constructor: (options = {}, data) -> options.partial ?= 'Watch' super options, ...
kd = require 'kd' KDCustomHTMLView = kd.CustomHTMLView KodingSwitch = require 'app/commonviews/kodingswitch' CustomLinkView = require 'app/customlinkview' module.exports = class IDEChatHeadWatchItemView extends KDCustomHTMLView constructor: (options = {}, data) -> options.partial ?= 'Watch' super options, ...
Delete white spaces at end of file
Delete white spaces at end of file
CoffeeScript
agpl-3.0
cihangir/koding,drewsetski/koding,cihangir/koding,alex-ionochkin/koding,sinan/koding,koding/koding,rjeczalik/koding,alex-ionochkin/koding,alex-ionochkin/koding,sinan/koding,andrewjcasal/koding,kwagdy/koding-1,cihangir/koding,gokmen/koding,mertaytore/koding,usirin/koding,acbodine/koding,usirin/koding,jack89129/koding,ci...
875187b3e8e8f524dd8053f2c2e60cbea5b776bf
assets/javascripts/timer.coffee
assets/javascripts/timer.coffee
'use strict' @start = (limit) -> window.startDate = new Date().getTime() window.elapsedSeconds = 0 window.seconds = 0 window.minutes = 0 window.limit = limit window.timerID = setInterval(timeCounter, 1000) return @stop = -> clearInterval timerID return timeCounter = -> if elapsedSeconds >= limit ...
'use strict' @start = (limit) -> window.startDate = new Date().getTime() window.elapsedSeconds = 0 window.seconds = 0 window.minutes = 0 window.limit = limit window.timerID = setInterval(timeCounter, 1000) return @stop = -> clearInterval timerID return timeCounter = -> if elapsedSeconds >= limit ...
Adjust minutes and seconds counters to have a zero on the left when they are less than 10.
Adjust minutes and seconds counters to have a zero on the left when they are less than 10.
CoffeeScript
mit
aasare/panadora
6fd43999f78dbb33ff7728307744c62ba282cdb7
app/assets/javascripts/accounts.js.coffee
app/assets/javascripts/accounts.js.coffee
jQuery -> ($ '#account-next-step').on 'click', (e) -> do e.preventDefault do ($ '#account-form').submit if ($ '#user_qae_info_source_other').length toggleOther = (checkbox) -> if checkbox.is(':checked') ($ '#qae_info_source_other').removeClass('visuallyhidden') else ($ '#qae...
jQuery -> ($ '#account-next-step').on 'click', (e) -> do e.preventDefault do ($ '#account-form').submit if $('#user_qae_info_source').size() > 0 toggleOther = (select) -> if select.val() == 'other' ($ '#qae_info_source_other').removeClass('visuallyhidden') else ($ '#qae_info...
Fix "How did you hear about The Queen's Awards?" conditional JS
Fix "How did you hear about The Queen's Awards?" conditional JS
CoffeeScript
mit
bitzesty/qae,bitzesty/qae,bitzesty/qae,bitzesty/qae
a1fca3e5a6dabf9314e148c20d399de2274dda32
app/assets/javascripts/realtime.js.coffee
app/assets/javascripts/realtime.js.coffee
class window.DP.Realtime init: -> if typeof Pusher == 'function' @pusher = new Pusher(DP.PUSHER_KEY) @channel = @pusher.subscribe DP.Round.url @channel.bind('new:charge', _.bind(@newCharge, this)) console.log(["Subscribing to real-time", @pusher, @channel]) newCharge: -> console.log...
class window.DP.Realtime constructor: -> if typeof Pusher == 'function' @pusher = new Pusher(DP.PUSHER_KEY) @channel = @pusher.subscribe DP.Round.url @channel.bind('new:charge', _.bind(@newCharge, this)) console.log(["Subscribing to real-time", @pusher, @channel]) newCharge: -> cons...
Use constructor instead of init
Use constructor instead of init
CoffeeScript
mit
orangejulius/donationparty,orangejulius/donationparty,orangejulius/donationparty
83007a63b90eeb0b24a89c14a9d2ae782784276e
app/assets/javascripts/sequence.js.coffee
app/assets/javascripts/sequence.js.coffee
$ -> saveSequence = (sequence) -> if sequence? localStorage.setItem('sequence', sequence) true loadSequence = -> localStorage.getItem('sequence') input = $("input#fragment") button = $("#methods button") sequence = loadSequence() if sequence? input.val(sequence) unless win...
$ -> saveSequence = (sequence) -> if sequence? localStorage.setItem('sequence', sequence) true loadSequence = -> localStorage.getItem('sequence') button = $("#methods button") input = $("input#fragment") $(window).on "load", (e) -> search = window.location.search if search ...
Save sequence if location.search exists
Save sequence if location.search exists ブラウザで直接アドレス(URL)を指定した場合も、 次からはその画面を開けるようにするために、location.search を見て検索条件を保持するようにした
CoffeeScript
mit
togogenome/togogenome,togogenome/togogenome,togogenome/togogenome
6566062d6c8060b03453c00794c8c522976f682e
lib/wp-phptidy.coffee
lib/wp-phptidy.coffee
child_process = require 'child_process' module.exports = activate: (state) -> atom.commands.add 'atom-workspace', 'wp-phptidy:run': => @run() run: -> editor = atom.workspace.getActivePaneItem() editor.save() file = editor?.buffer.file filepath = file?.path if filepath.length child_process.exec(__...
child_process = require 'child_process' module.exports = activate: (state) -> atom.commands.add 'atom-workspace', 'wp-phptidy:run': => @run() run: -> editor = atom.workspace.getActivePaneItem() editor.save() file = editor?.buffer.file filepath = file?.path if filepath.length child_process.exec('p...
Fix for executing PHP on Windows
Fix for executing PHP on Windows
CoffeeScript
mit
frozzare/atom-wp-phptidy
4f5eb903243d9bb4366989fe124864ae1ad20dc2
app/scripts/components/entities/Mine.coffee
app/scripts/components/entities/Mine.coffee
Crafty.c 'Mine', init: -> @requires 'Color, Enemy' mine: (attr = {}) -> @attr _.defaults(attr, w: 25, h: 25, health: 200) @origin 'center' @color '#555555' @enemy() this
Crafty.c 'Mine', init: -> @requires 'Color, Enemy' mine: (attr = {}) -> @attr _.defaults(attr, w: 25, h: 25, health: 200) @origin 'center' @color '#111111' @enemy() this
Increase contrast of mine agains background
Increase contrast of mine agains background
CoffeeScript
mit
matthijsgroen/game-play,matthijsgroen/game-play,matthijsgroen/game-play
0f6532e95126973f88c94e2d4b8d1574a09bc2b4
app/assets/javascripts/c4_game.js.coffee
app/assets/javascripts/c4_game.js.coffee
window.Game = class Game constructor: (grid, moves, status, winner) -> console.log 'Game ctor' @gameBoard = new GameBoard($('#canvas'), $('#canvasOverlay'), { grid: grid, moves: moves, winner: winner, afterMoveAnimation: $.proxy(this.afterMove, this) }) @setFinished(winner) if ...
window.Game = class Game constructor: (grid, moves, status, winner) -> console.log 'Game ctor' @gameBoard = new GameBoard($('#canvas'), $('#canvasOverlay'), { grid: grid, moves: moves, winner: winner, afterMoveAnimation: $.proxy(this.afterMove, this) }) @setFinished(winner) if ...
Fix bug - yellows last move not displayed when he wins
Fix bug - yellows last move not displayed when he wins
CoffeeScript
mit
stevehook/c4,stevehook/c4
7294f367a585088990826b5da602cef32294ef5f
app/scripts/game.coffee
app/scripts/game.coffee
'use strict' class Game constructor: -> peer = new Peer 'server', {host: 'localhost', port: 9999} conn = peer.connect 'device' conn.on 'open', => conn.send 'Conneced.' conn.on 'data', (id) => console.log id @resizeWindow() $(window).resize ...
'use strict' class Game constructor: -> peer = new Peer 'server', {host: 'localhost', port: 9999} conn = peer.connect 'device' conn.on 'open', => conn.send 'Conneced.' conn.on 'data', (id) => console.log id @resizeWindow() $(window).resize ...
Change darts-ui size to fit screen
Change darts-ui size to fit screen
CoffeeScript
mit
wiz4u/dartsduino
9ce84bb0f53f92a39e5ccf27fef01820c99845b4
js/echo.coffee
js/echo.coffee
window.Echotron ||= {} Echotron.Echoes ||= {} Echotron.Echoes.foreground ||= [] Echotron.Echoes.midground ||= [] Echotron.Echoes.background ||= [] class Echotron.Echo extends THREE.Object3D uniformAttrs: {} # Override, calling super. Setup your Echo however you need. constructor: -> super @active = yes...
window.Echotron ||= {} Echotron.Echoes ||= {} Echotron.Echoes.foreground ||= [] Echotron.Echoes.midground ||= [] Echotron.Echoes.background ||= [] class Echotron.Echo extends THREE.Object3D uniformAttrs: {} # Override, calling super. Setup your Echo however you need. constructor: -> super @active = yes...
Initialize can be implemented instead of implementing the constructor on a layer. Meaning super isn't required.
Initialize can be implemented instead of implementing the constructor on a layer. Meaning super isn't required.
CoffeeScript
mit
Squeegy/Lysertron,Squeegy/Lysertron
f78cfea6e0a75d4eaa10fee0f62e8328a8bd6b81
src/cli.coffee
src/cli.coffee
program = require 'commander' program .command('new [name]') .description('create a new app and/or extension') .usage('[name] [options]') .option('-t, --template [name]', 'template to use') .option('-c, --config [config file]', 'config file to use') .action (name, opts={}) -> if not name return c...
program = require('commander') .version(require('../package.json').version) help = -> console.log program.helpInformation() program .command('new [name]') .description('create a new app and/or extension') .usage('[name] [options]') .option('-t, --template [name]', 'template to use') .option('-c, --config ...
Add command to automatically install extensions.
Add command to automatically install extensions.
CoffeeScript
mit
activeuser/au
38f443acb5d543f77514153d8fffadc93aebed64
project.coffee
project.coffee
Rectangle = require './drawing-tools/rectangle' Details = require './tasks/details' module.exports = id: 'bhl' background: 'background.jpg' producer: 'Missouri Botanical Garden & Zooniverse' title: 'Illustrated Life' summary: 'Help catalogue scientific illustrations' description: 'Short description' pa...
Rectangle = require './drawing-tools/rectangle' Details = require './tasks/details' module.exports = id: 'bhl' background: 'background.jpg' producer: 'Missouri Botanical Garden & Zooniverse' title: 'Illustrated Life' summary: 'Help catalogue scientific illustrations' description: 'Short description' pa...
Add 'Are there any illustrations?' question
Add 'Are there any illustrations?' question
CoffeeScript
apache-2.0
zooniverse/BHL
3821152b57704095efea077db3d039bd90ceb8be
coffees/src/application.coffee
coffees/src/application.coffee
module.exports.listen = (port) -> createApp().listen port createApp = () -> express = require 'express' bodyParser = require 'body-parser' errors = require './errors' allowCrossDomain = (request, response, next) -> response.header 'Access-Control-Allow-Origin', '*' response.header( 'Access-Con...
module.exports.listen = (port) -> createApp().listen port createApp = () -> express = require 'express' bodyParser = require 'body-parser' errors = require './errors' allowCrossDomain = (request, response, next) -> response.header 'Access-Control-Allow-Origin', '*' response.header( 'Access-Con...
Fix the console logging from invalid json
Fix the console logging from invalid json
CoffeeScript
mit
RedBulli/LiveSnooker-Server,RedBulli/LiveSnooker-Server
61f52cf15479d9c52e529648b97bc7f679afe89f
src/languages/jsx.coffee
src/languages/jsx.coffee
module.exports = { name: "JSX" namespace: "jsx" fallback: ['js'] ### Supported Grammars ### grammars: [ "JSX" "JavaScript (JSX)" "Babel ES6 JavaScript" "JavaScript with JSX" ] ### Supported extensions ### extensions: [ "jsx", "js" ] defaultBeautifier: "JS Beautify...
module.exports = { name: "JSX" namespace: "jsx" fallback: ['js'] ### Supported Grammars ### grammars: [ "JSX" "JavaScript (JSX)" "Babel ES6 JavaScript" "JavaScript with JSX" ] ### Supported extensions ### extensions: [ "jsx", "js" ] defaultBeautifier: "Pretty Diff...
Change JSX default beautifier back to Pretty Diff
Change JSX default beautifier back to Pretty Diff
CoffeeScript
mit
prettydiff/atom-beautify,prettydiff/atom-beautify,Glavin001/atom-beautify,prettydiff/atom-beautify,Glavin001/atom-beautify,Glavin001/atom-beautify,prettydiff/atom-beautify,Glavin001/atom-beautify,Glavin001/atom-beautify
a37b029ad9132740295562fc56aaa771a2ed1875
src/theme-package.coffee
src/theme-package.coffee
AtomPackage = require './atom-package' Package = require './package' ### Internal: Loads and resolves packages. ### module.exports = class ThemePackage extends AtomPackage getType: -> 'theme' getStylesheetType: -> 'theme' enable: -> atom.config.pushAtKeyPath('core.themes', @metadata.name) disable: -> ...
AtomPackage = require './atom-package' Package = require './package' ### Internal: Loads and resolves packages. ### module.exports = class ThemePackage extends AtomPackage getType: -> 'theme' getStylesheetType: -> 'theme' enable: -> themes = atom.config.get('core.themes') themes = [@metadata.name].co...
Prepend newly enabled themes, not append
Prepend newly enabled themes, not append
CoffeeScript
mit
sebmck/atom,gabrielPeart/atom,oggy/atom,vinodpanicker/atom,sxgao3001/atom,kc8wxm/atom,hellendag/atom,stinsonga/atom,hagb4rd/atom,qskycolor/atom,dkfiresky/atom,FIT-CSE2410-A-Bombs/atom,dannyflax/atom,panuchart/atom,folpindo/atom,qiujuer/atom,splodingsocks/atom,fscherwi/atom,synaptek/atom,kandros/atom,abe33/atom,ilovezy/...
df30d2f5de60b5a32a1c22a3fa2dffabedd9d173
public/app/common/components/icon/icon.cjsx
public/app/common/components/icon/icon.cjsx
React = require 'react' {PureRenderMixin} = require('react/addons').addons cx = require 'classname' styleMixin = require 'mixins/style-mixin' module.exports = React.createClass mixins: [ styleMixin require('./style.scss') PureRenderMixin ] getIconTypeClass: -> i...
React = require 'react' {PureRenderMixin} = require('react/addons').addons cx = require 'classname' styleMixin = require 'mixins/style-mixin' module.exports = React.createClass mixins: [ styleMixin require('./style.scss') PureRenderMixin ] getIconTypeClass: -> i...
Add an empty line to separate methods
Add an empty line to separate methods
CoffeeScript
mit
yetu/controlcenter,yetu/controlcenter,yetu/controlcenter
aa7100597e3ab239d43bb1015b02f1dd26118aa2
gulpfile.coffee
gulpfile.coffee
gulp = require 'gulp' coffee = require 'gulp-coffee' concat = require 'gulp-concat' gutil = require 'gulp-util' uglify = require 'gulp-uglify' wrap = require 'gulp-wrap-umd' gulp.task 'build', -> sink = concat('main.js') gulp.src('lib/base64-binary.js') .pipe(sink, end: false) gulp.src('src/validateSSH.coffee'...
gulp = require 'gulp' coffee = require 'gulp-coffee' concat = require 'gulp-concat' gutil = require 'gulp-util' uglify = require 'gulp-uglify' wrap = require 'gulp-wrap-umd' gulp.task 'caffeinate', -> gulp.src('src/*.coffee') .pipe(coffee(bare: true)).on('error', gutil.log) .pipe(gulp.dest('./tmp/build')) gulp...
Enforce order of build tasks.
Enforce order of build tasks. Fixes issue with race condition on build.
CoffeeScript
mit
resin-io/validateSSHjs
12cb8fe299278af20f4a4e380e4a58624c41a778
snippets/language-restructuredtext.cson
snippets/language-restructuredtext.cson
'.text.restructuredtext': 'image': 'prefix': 'image' 'body': '.. image:: ${1:path}\n$0' 'link': 'prefix': 'link' 'body': '\\`${1:Title} <${2:http://link}>\\`_$0' 'section 1': 'prefix': 'sec' 'body': '${1:subsection name}\n================$0\n' 'section 2': 'prefix': 'subs' 'body'...
'.text.restructuredtext': 'image': 'prefix': 'image' 'body': '.. image:: ${1:path}\n$0' 'link': 'prefix': 'link' 'body': '\\`${1:Title} <${2:http://link}>\\`_$0' 'section 1': 'prefix': 'sec' 'body': '${1:subsection name}\n================$0\n' 'section 2': 'prefix': 'subs' 'body'...
Add snippet for inserting a vanilla code-block
Add snippet for inserting a vanilla code-block
CoffeeScript
mit
Lukasa/language-restructuredtext
6686b4df711b729058c830186b3f8b5d271c60bc
app/assets/javascripts/legend.js.coffee
app/assets/javascripts/legend.js.coffee
class PG.Legend defaults: className: "legend" constructor: (container, @graphs, options) -> @container = $(container) @options = $.extend @defaults, options @element = $("<div></div>").addClass(@options.className) @container.append @element @legend = new Rickshaw.Graph.Legend graph:...
class PG.Legend defaults: className: "legend" constructor: (container, @graphs, options) -> @container = $(container) @options = $.extend @defaults, options @element = $("<div></div>").addClass(@options.className) @container.append @element @legend = new Rickshaw.Graph.Legend graph:...
Make graphs <-> series mapping use naturalOrder too
Make graphs <-> series mapping use naturalOrder too
CoffeeScript
bsd-3-clause
pganalyze/pgdatagraph,pganalyze/pgdatagraph
dca7a2928d30da3831d059b983e19935dfab2a64
app/assets/javascripts/static.js.coffee
app/assets/javascripts/static.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/ roundUpBy = (value, round_to) -> return round_to * Math.ceil(value / round_to) $ -> metricsInview = new...
# 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/ roundUpBy = (value, round_to) -> return round_to * Math.ceil(value / round_to) $ -> metricsInview = new...
Make the easing smoother at the end
Make the easing smoother at the end
CoffeeScript
agpl-3.0
otherchirps/morph,otherchirps/morph,otherchirps/morph,openaustralia/morph,otherchirps/morph,openaustralia/morph,openaustralia/morph,otherchirps/morph,otherchirps/morph,openaustralia/morph,openaustralia/morph,otherchirps/morph,openaustralia/morph,openaustralia/morph
2edae253d9ffe3b85ab40a866786dc2f0d77a497
app/frontend/javascripts/app.js.coffee
app/frontend/javascripts/app.js.coffee
window.App ||= {} App.Visualization = require './visualization.js' App.Story = require './story.js' App.Trix = require 'script!trix' $(document).ready -> # Activate tooltips $('[data-toggle="tooltip"]').tooltip() $body = $('body') # visualizations if $body.hasClass 'visualizations' #...
window.App ||= {} App.Visualization = require './visualization.js' App.Story = require './story.js' App.Trix = require 'script!trix' $(document).ready -> $body = $('body') # visualizations if $body.hasClass 'visualizations' # /visualizations/:id # /visualizations/:id/edit appVisua...
Implement global selection in relations table from New Chapter
Implement global selection in relations table from New Chapter Closes #136
CoffeeScript
agpl-3.0
civio/onodo,civio/onodo,civio/onodo,civio/onodo
c08897651984380c941a503370f700deec966ec5
src/components/DuplicateProperty.coffee
src/components/DuplicateProperty.coffee
noflo = require "noflo" class DuplicateProperty extends noflo.Component constructor: -> @properties = {} @inPorts = property: new noflo.ArrayPort() in: new noflo.Port() @outPorts = out: new noflo.Port() @inPorts.property.on "data", (data) => ...
noflo = require "noflo" class DuplicateProperty extends noflo.Component constructor: -> @properties = {} @separator = '/' @inPorts = property: new noflo.ArrayPort() separator: new noflo.Port() in: new noflo.Port() @outPorts = out: new...
Support for merging multiple properties into one
Support for merging multiple properties into one
CoffeeScript
mit
npmcomponent/noflo-noflo,trustmaster/noflo,lxfschr/noflo,saurabhsood91/noflo,jonnor/noflo,lxfschr/noflo,saurabhsood91/noflo,jonnor/noflo,trustmaster/noflo,noflo/noflo
0b2b869136ba7d881caec9647e3f4e949f7eedda
src/lib/Port.coffee
src/lib/Port.coffee
events = require "events" class Port extends events.EventEmitter constructor: (name) -> @name = name @socket = null @from = null attach: (socket) -> throw new Error "#{@name}: Socket already attached #{@socket.getId()} - #{socket.getId()}" if @socket @socket = socket ...
events = require "events" class Port extends events.EventEmitter constructor: (name) -> @name = name @socket = null @from = null attach: (socket) -> throw new Error "#{@name}: Socket already attached #{@socket.getId()} - #{socket.getId()}" if @socket @socket = socket ...
Throw an error if sending to an unattached port
Throw an error if sending to an unattached port
CoffeeScript
mit
jonnor/noflo,jonnor/noflo,trustmaster/noflo,npmcomponent/noflo-noflo,saurabhsood91/noflo,noflo/noflo,lxfschr/noflo,saurabhsood91/noflo,lxfschr/noflo,trustmaster/noflo
1ae4722dc73d68124bf2c406bdb08376110d69dc
src/phalange.coffee
src/phalange.coffee
$.fn.edit = -> form = new Phalange( el: @ ) @ class Phalange extends Backbone.View initialize: -> @text = @$el.text() events: "click": "append" "submit": "submit" "blur": "submit" submit: -> @text = @_input().val() @$el.trigger 'phalange:submit', @text @hideForm() @setText()...
$.fn.edit = -> form = new Phalange( el: @ ) @ class Phalange extends Backbone.View initialize: -> @text = @$el.text() events: "click": "append" "submit": "submit" "blur input": "submit" submit: -> @text = @_input().val() @$el.trigger 'phalange:submit', @text @hideForm() @set...
Add to window when in the browser, listen for blur
Add to window when in the browser, listen for blur
CoffeeScript
mit
acumenbrands/phalange
ad59a7208ede1097bf3a9127e5c7c0d3d6fdbaa1
client/ide/workspace/panes/editorpane.coffee
client/ide/workspace/panes/editorpane.coffee
class EditorPane extends Pane constructor: (options = {}, data) -> options.cssClass = KD.utils.curry "editor-pane", options.cssClass super options, data @createEditor() createEditor: -> {file, content} = @getOptions() isLocalFile = no unless file instanceof FSFile return new ...
class EditorPane extends Pane constructor: (options = {}, data) -> options.cssClass = KD.utils.curry "editor-pane", options.cssClass super options, data @createEditor() createEditor: -> {file, content} = @getOptions() isLocalFile = no unless file instanceof FSFile return new ...
Use AceView which is bundled editor of Koding for EditorPane.
Use AceView which is bundled editor of Koding for EditorPane.
CoffeeScript
agpl-3.0
jack89129/koding,drewsetski/koding,drewsetski/koding,gokmen/koding,szkl/koding,acbodine/koding,cihangir/koding,acbodine/koding,kwagdy/koding-1,alex-ionochkin/koding,kwagdy/koding-1,alex-ionochkin/koding,acbodine/koding,usirin/koding,jack89129/koding,kwagdy/koding-1,alex-ionochkin/koding,usirin/koding,mertaytore/koding,...
000fc141cf307dc0d20879944b7fa6b63884dd01
app/assets/javascripts/photographs.js.coffee
app/assets/javascripts/photographs.js.coffee
$(document).ready -> # Photo grid photoGrid = $(".photo-grid") photoGrid.on "reload:grid", -> opts = wookmarkOptions(calculateGridWidth()) photoGrid.find(".photo, .user-block").wookmark(opts) photoGrid.trigger "reload:grid" $(window).resize -> photoGrid.trigger "reload:grid" # Description siz...
$(document).ready -> # Photo grid photoGrid = $(".photo-grid") photoGrid.on "reload:grid", -> opts = wookmarkOptions(calculateGridWidth()) photoGrid.find(".photo, .user-block").wookmark(opts) photoGrid.imagesLoaded -> photoGrid.trigger "reload:grid" $(window).resize -> photoGrid.trigger "rel...
Fix for photo grid overlap
Fix for photo grid overlap
CoffeeScript
mit
laputaer/photographer-io,arnkorty/photographer-io,wangjun/photographer-io,damoguyan8844/photographer-io,arnkorty/photographer-io,xuewenfei/photographer-io,damoguyan8844/photographer-io,robotmay/photographer-io,robotmay/photographer-io,xuewenfei/photographer-io,wangjun/photographer-io,wangjun/photographer-io,damoguyan88...
1d89173a1e33973e74e5ae96ffe3bfcee247c39b
src/coffee/run.coffee
src/coffee/run.coffee
CSV = require('csv') Q = require('q') argv = require('optimist') .usage('Usage: $0 --types product-types.csv --attributes product-types-attributes.csv') .demand(['types', 'attributes']) .argv ProductTypeGenerator = require('../main').ProductTypeGenerator ### Reads a CSV file by given path and returns a promise...
CSV = require('csv') Q = require('q') argv = require('optimist') .usage('Usage: $0 --types product-types.csv --attributes product-types-attributes.csv') .demand(['types', 'attributes']) .argv ProductTypeGenerator = require('../main').ProductTypeGenerator ### Reads a CSV file by given path and returns a promise...
Use instance method instead static method.
Use instance method instead static method.
CoffeeScript
mit
sphereio/sphere-product-type-json-generator,sphereio/sphere-product-type-json-generator,sphereio/sphere-product-type-json-generator
5cd8d499839ea7266dab9dad0629b7f8182a7bab
client/lib/callApi.coffee
client/lib/callApi.coffee
import fetch from 'isomorphic-fetch'; port = (process.env.OPENSHIFT_NODEJS_PORT || process.env.PORT || '3000') ip = (process.env.OPENSHIFT_NODEJS_IP || '127.0.0.1') export API_URL = (if (typeof window == 'undefined') then ('http://' + ip + ':' + port) else '') + '/api/' export callApiWithBody = (endpoint, method, hea...
import fetch from 'isomorphic-fetch'; port = (process.env.OPENSHIFT_NODEJS_PORT || process.env.PORT || '3000') ip = (process.env.OPENSHIFT_NODEJS_IP || '127.0.0.1') protocol = (if process.env.FORCE_HTTPS then 'https' else 'http') export API_URL = (if (typeof window == 'undefined') then (protocol + '://' + ip + ':' + p...
Call https api if we are on https
Call https api if we are on https
CoffeeScript
agpl-3.0
petr-kalinin/algoprog,petr-kalinin/algoprog,petr-kalinin/algoprog,petr-kalinin/algoprog
3c378eeb7eed2c99675f03cbfcef2aa108c2aeab
webserver/static/js/main.coffee
webserver/static/js/main.coffee
$ -> console.log "Document ready." startRenderer() startNetworking() startInput()
# Export Google WebFont Config window.WebFontConfig = # Load some fonts from google google: families: [] # ... you can do something here if you'd like active: () -> # Create script tag matching protocol s = document.createElement 'script' s.src = "#{if document.location.protocol is 'https:' th...
Bring in code to load google fonts
Bring in code to load google fonts
CoffeeScript
mit
quintenpalmer/attempt,quintenpalmer/attempt,quintenpalmer/attempt,quintenpalmer/attempt
8b6f6631d4d92702f26d4895ca272a411b6d01b4
client/app/Applications/Viewer.kdapplication/AppController.coffee
client/app/Applications/Viewer.kdapplication/AppController.coffee
class ViewerAppController extends KDViewController KD.registerAppClass this, name : "Viewer" route : "/Develop" multiple : yes openWith : "forceNew" behavior : "application" preCondition : condition : (options, cb)-> {path, vmName} = options ...
class ViewerAppController extends KDViewController KD.registerAppClass this, name : "Viewer" route : "/Develop" multiple : yes openWith : "forceNew" behavior : "application" preCondition : condition : (options, cb)-> {path, vmName} = options ...
Change folder to match new osKite default
Change folder to match new osKite default
CoffeeScript
agpl-3.0
koding/koding,koding/koding,alex-ionochkin/koding,gokmen/koding,acbodine/koding,alex-ionochkin/koding,koding/koding,rjeczalik/koding,sinan/koding,acbodine/koding,kwagdy/koding-1,sinan/koding,gokmen/koding,kwagdy/koding-1,usirin/koding,jack89129/koding,mertaytore/koding,mertaytore/koding,cihangir/koding,usirin/koding,ja...
91c8c09749a034b9da82fb39a602962f9c99a565
app/client/js/react/pages/notfound.coffee
app/client/js/react/pages/notfound.coffee
goog.provide 'app.react.pages.NotFound' class app.react.pages.NotFound ###* @constructor ### constructor: -> {div,h1,p} = React.DOM @create = React.createClass render: -> div className: 'notfound', h1 null, "This page isn't available" p null, "The link may be brok...
goog.provide 'app.react.pages.NotFound' class app.react.pages.NotFound ###* @param {app.Routes} routes @param {app.react.Touch} touch @constructor ### constructor: (routes, touch) -> {div,h1,p} = React.DOM {a} = touch.none 'a' @create = React.createClass render: -> div cl...
Add link to home for 404 page.
Add link to home for 404 page.
CoffeeScript
mit
steida/songary
3e86f2f171e5e4d984e926cbe184a58d03928b95
apps/contact/client/index.coffee
apps/contact/client/index.coffee
openMultiPageModal = require '../../../components/multi_page_modal/index.coffee' SpecialistView = require '../../../components/contact/general_specialist.coffee' module.exports.init = -> $('.js-contact-specialist').click (e) -> e.preventDefault() new SpecialistView $('.js-multi-page-modal').click (e) -> ...
openMultiPageModal = require '../../../components/multi_page_modal/index.coffee' SpecialistView = require '../../../components/contact/general_specialist.coffee' FeebackView = require '../../../components/contact/feedback.coffee' module.exports.init = -> $('.js-contact-specialist').click (e) -> e.preventDefault(...
Add handler to invoke feedback modal
Add handler to invoke feedback modal
CoffeeScript
mit
yuki24/force,joeyAghion/force,anandaroop/force,oxaudo/force,yuki24/force,oxaudo/force,anandaroop/force,joeyAghion/force,mzikherman/force,eessex/force,kanaabe/force,damassi/force,kanaabe/force,dblock/force,cavvia/force-1,damassi/force,yuki24/force,artsy/force,mzikherman/force,oxaudo/force,oxaudo/force,kanaabe/force,mzik...
85978b3b54429193c07a3506d6091d88b97cf807
tapestry-core/src/main/coffeescript/META-INF/modules/core/zone.coffee
tapestry-core/src/main/coffeescript/META-INF/modules/core/zone.coffee
# Copyright 2012 The Apache Software Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http:#www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
# Copyright 2012 The Apache Software Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http:#www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
Adjust initialization for this being the matched element's ElementWrapper
Adjust initialization for this being the matched element's ElementWrapper
CoffeeScript
apache-2.0
apache/tapestry-5,apache/tapestry-5,apache/tapestry-5,apache/tapestry-5,apache/tapestry-5
b140046250d3f54902ae84e5534448236cfd2058
app/assets/javascripts/spree/frontend/spree_multi_currency.js.coffee
app/assets/javascripts/spree/frontend/spree_multi_currency.js.coffee
$ -> $('#currency').change -> $.ajax( type: 'POST' url: $(this).data('href') data: currency: $(this).val() ).done -> window.location.reload()
$ -> $('#currency').on 'change', -> $.ajax( type: 'POST' url: $(this).data('href') data: currency: $(this).val() ).done -> window.location.reload()
Use jQuery "on" for event hook.
Use jQuery "on" for event hook.
CoffeeScript
bsd-3-clause
raulpopadineti/spree_multi_currency,dgross881/spree_multi_currency,sspinc/spree_multi_currency,sspinc/spree_multi_currency,dgross881/spree_multi_currency,sspinc/spree_multi_currency,raulpopadineti/spree_multi_currency,spree-contrib/spree_multi_currency,spree-contrib/spree_multi_currency,spree-contrib/spree_multi_curren...
0f8fe572866d7900d174196ed50c11e319609071
src/controls/mixins/Validation.coffee
src/controls/mixins/Validation.coffee
ValidationMixin = getInitialState: -> validationErrors: [] hasErrors: false componentDidMount: -> if @props.validators @loadValidators() loadValidators: -> @validators = _.map @props.validators, (options, name) => new window.validators[name].constructor(options) validate: (value, ...
ValidationMixin = getInitialState: -> validationErrors: [] hasErrors: false validate: (value, callback) -> if @props.validators newErrors = _.map @props.validators, (validator) => validator.validate value, @props.displayName # There is probably a better way to do this newErro...
Update Validators to pass Instances instead of references
Update Validators to pass Instances instead of references
CoffeeScript
mit
quri/react-form-builder
3597a10304e3c5a340b6e210b8effd6fffa0a8a0
src/view/bindings/view_binding.coffee
src/view/bindings/view_binding.coffee
#= require ./abstract_binding class Batman.DOM.ViewBinding extends Batman.DOM.AbstractBinding skipChildren: true onlyObserve: Batman.BindingDefinitionOnlyObserve.Data constructor: (definition) -> @superview = definition.view super dataChange: (viewClassOrInstance) -> return unless viewClassOrIns...
#= require ./abstract_binding class Batman.DOM.ViewBinding extends Batman.DOM.AbstractBinding skipChildren: true onlyObserve: Batman.BindingDefinitionOnlyObserve.Data constructor: (definition) -> @superview = definition.view super dataChange: (viewClassOrInstance) -> return unless viewClassOrIns...
Handle constructor.name being undefined in ViewBinding.
Handle constructor.name being undefined in ViewBinding.
CoffeeScript
mit
getshuvo/batman,getshuvo/batman
ec837a17ffa32668ea98e2c8d0f67283aa87bc3d
scripts/test-instance/instance-ami.coffee
scripts/test-instance/instance-ami.coffee
module.exports = current: 'ami-bf235ad5' # Ordered by creation date list: [ 'ami-5dd50436' 'ami-bf235ad5' ]
module.exports = current: 'ami-4d552d27' # Ordered by creation date list: [ 'ami-5dd50436' 'ami-bf235ad5' 'ami-4d552d27' ]
Update test instance AMI identifier
Update test instance AMI identifier
CoffeeScript
agpl-3.0
sinan/koding,szkl/koding,sinan/koding,koding/koding,koding/koding,usirin/koding,acbodine/koding,koding/koding,gokmen/koding,szkl/koding,andrewjcasal/koding,sinan/koding,rjeczalik/koding,usirin/koding,sinan/koding,kwagdy/koding-1,drewsetski/koding,usirin/koding,sinan/koding,alex-ionochkin/koding,szkl/koding,cihangir/kod...
9660938f976c7461f28dad8ae69189f3db1d10b9
Gruntfile.coffee
Gruntfile.coffee
microflo = (target) -> build = [ "make -f ./node_modules/microflo-emscripten/Makefile" target "BUILD_DIR=build" "MICROFLO=./node_modules/.bin/microflo" "GRAPH=graph.fbp" "MICROFLO_SOURCE_DIR=`pwd`/node_modules/microflo/microflo" "LIBRARY=`pwd`/components/ardu...
microflo = (target) -> build = [ "make -f ./node_modules/microflo-emscripten/Makefile" target "BUILD_DIR=build" "MICROFLO=./node_modules/.bin/microflo" "GRAPH=graph.fbp" "MICROFLO_SOURCE_DIR=`pwd`/node_modules/microflo/microflo" "PROJECT_DIR=`pwd`/node_module...
Fix options passed to microflo-emscripten
Grunt: Fix options passed to microflo-emscripten
CoffeeScript
mit
microflo/microflo-core,microflo/microflo-core
810ae2dc82aafdb092e2fdc34fe5a2b6e8b869e6
spec/lanes/models/CollectionSpec.coffee
spec/lanes/models/CollectionSpec.coffee
describe "Lanes.Models.Collection", -> it "it triggers promise on loading", (done) -> Model = Lanes.Test.defineModel props: { id: 'integer', title: 'string' } LT.syncSucceedWith([ { id: 1, title: 'first value' } { id: 2, title: 'second value' } ]) ...
describe "Lanes.Models.Collection", -> it "it triggers promise on loading", (done) -> Model = Lanes.Test.defineModel props: { id: 'integer', title: 'string' } LT.syncSucceedWith([ { id: 1, title: 'first value' } { id: 2, title: 'second value' } ]) ...
Test duplicate prevention when copying
Test duplicate prevention when copying
CoffeeScript
mit
argosity/hippo,argosity/lanes,argosity/hippo,argosity/lanes,argosity/lanes,argosity/hippo
063750f6eb62717b1ec7cd53522f3720b30f0a1c
lib/main.coffee
lib/main.coffee
module.exports = configDefaults: showOnRightSideOfStatusBar: false activate: -> atom.workspaceView.command('grammar-selector:show', createGrammarListView) atom.packages.once('activated', createGrammarStatusView) createGrammarListView = -> editor = atom.workspace.getActiveEditor() if editor? Gr...
module.exports = configDefaults: showOnRightSideOfStatusBar: true activate: -> atom.workspaceView.command('grammar-selector:show', createGrammarListView) atom.packages.once('activated', createGrammarStatusView) createGrammarListView = -> editor = atom.workspace.getActiveEditor() if editor? Gra...
Put grammar selector on the right side by default
Put grammar selector on the right side by default This will make it play nicer with showing more information after the character position on the left side such as the character count. Refs atom/status-bar#31
CoffeeScript
mit
atom/grammar-selector
a71facac9415baa6c1a77f1e775b6600e105a837
client/app/lib/util/trackInitialTurnOn.coffee
client/app/lib/util/trackInitialTurnOn.coffee
kd = require 'kd' nick = require 'app/util/nick' Tracker = require 'app/util/tracker' module.exports = (machine) -> return unless analytics return unless typeof analytics.user is 'function' { initialTurnOn } = analytics.user().traits() return if initialTurnOn initialTurnOn = yes analytics.iden...
kd = require 'kd' nick = require 'app/util/nick' Tracker = require 'app/util/tracker' module.exports = (machine) -> fetchStorage (storage) -> turnedOnMachine = storage.getValue 'TurnedOnMachine' return if turnedOnMachine storage.setValue 'TurnedOnMachine', yes execute machine fetchStora...
Store initial machine turn on state in AppStorage
Store initial machine turn on state in AppStorage
CoffeeScript
agpl-3.0
sinan/koding,drewsetski/koding,cihangir/koding,szkl/koding,kwagdy/koding-1,jack89129/koding,cihangir/koding,mertaytore/koding,cihangir/koding,sinan/koding,andrewjcasal/koding,usirin/koding,koding/koding,usirin/koding,mertaytore/koding,gokmen/koding,koding/koding,koding/koding,gokmen/koding,sinan/koding,acbodine/koding,...
748ff51b784cb7cf2b7e9b3e06d6331d82f55f1b
api.coffee
api.coffee
Q = require 'q' # Provides a set of methods for voting data CRUD operations class API constructor: (@db) -> throw "must provide db connection" unless @db createUser: (name) -> # Q.nfcall( # @db.models.User.create, # name: name # ) # @db.models.User.create({ # name: name # },...
Q = require 'q' # Provides a set of methods for voting data CRUD operations class API constructor: (@db) -> throw "must provide db connection" unless @db @models = @db.models createUser: (name) -> create = Q.nbind( @models.User.create, @models.User ) create name: name incrementV...
Use Q nbind to make this cleaner
Use Q nbind to make this cleaner
CoffeeScript
mit
bosgood/votewithme-server
2ae23c583dd77148340a06176c4e351fc76dc242
lib/main.coffee
lib/main.coffee
{toggleQuotes} = require 'toggle-quotes' {CompositeDisposable} = require 'atom' module.exports = config: quoteCharacters: type: 'string' default: '"\'' activate: -> @subscriptions.add atom.commands.add 'atom-text-editor', 'toggle-quotes:toggle', -> if editor = atom.workspace.getActiveTex...
{toggleQuotes} = require 'toggle-quotes' module.exports = config: quoteCharacters: type: 'string' default: '"\'' activate: -> @subscription = atom.commands.add 'atom-text-editor', 'toggle-quotes:toggle', -> if editor = atom.workspace.getActiveTextEditor() toggleQuotes(editor) ...
Use disposable returned from atom.commands.add
Use disposable returned from atom.commands.add
CoffeeScript
mit
atom/toggle-quotes
02a0454b4811362f745f3f7dbfd284e7285f4949
src/tooltips.coffee
src/tooltips.coffee
# tool tips d3panels.tooltip_create = (selection, options) -> selection.append("div") .attr("class", "d3panels-tooltip") .style("opacity", 0) d3panels.tooltip_activate = (objects, tipdiv, options) -> objects.on("mouseover", (d) -> tipdiv.html(d.tooltip) h = tipd...
# tool tips d3panels.tooltip_create = (selection, options) -> d3.select("body").append("div") .attr("class", "d3panels-tooltip #{options.tipclass}") .style("opacity", 1) d3panels.tooltip_activate = (objects, tipdiv, options, tooltip_func) -> objects.on("mouseover.d3panels-tooltip", ...
Fix problems with initial tooltip code
Fix problems with initial tooltip code
CoffeeScript
mit
kbroman/d3panels,kbroman/d3panels
8c179268aa1d96f49286c54ef2b17938224ae34a
people/default/scripts/main.coffee
people/default/scripts/main.coffee
avatarResponder = require('./avatar_responder') Campfire.Transcript.messageTemplates = require('./message_templates') window.Chicisimo = Responders: [] Campfire.USER_ACTIONS = ['enter','leave','kick','conference_created','lock','unlock','topic_change','allow_guests','disallow_guests'] swizzle(Campfire.Message, { ...
avatarResponder = require('./avatar_responder') Campfire.Transcript.messageTemplates = require('./message_templates') window.Chicisimo = Responders: [] Campfire.USER_ACTIONS = ['enter','leave','kick','conference_created','lock','unlock','topic_change','allow_guests','disallow_guests'] swizzle(Campfire.Message, { ...
Remove whitespace and unnecessary parens
Remove whitespace and unnecessary parens
CoffeeScript
mit
chicisimo/propane-theme,chicisimo/propane-theme,chicisimo/propane-theme
59eb91c7c88200e9e5cb3b7628637cc90a632398
app/assets/javascripts/admin/payments/directives/stripe_elements.js.coffee
app/assets/javascripts/admin/payments/directives/stripe_elements.js.coffee
angular.module('admin.payments').directive "stripeElements", ($injector, AdminStripeElements) -> restrict: 'E' template: "<label for='card-element'>\ <div id='card-element' class='card-element'></div>\ <div class='error card-errors'></div>\ </label>" scope: selected: "="...
angular.module('admin.payments').directive "stripeElements", ($injector, AdminStripeElements) -> restrict: 'E' template: "<div >\ <div class='card-element'></div>\ <div class='error card-errors'></div>\ </div>" scope: selected: "=" link: (scope, elem, attr)-> if...
Remove id "card-element" as well
Remove id "card-element" as well
CoffeeScript
agpl-3.0
lin-d-hop/openfoodnetwork,Matt-Yorkley/openfoodnetwork,mkllnk/openfoodnetwork,openfoodfoundation/openfoodnetwork,lin-d-hop/openfoodnetwork,mkllnk/openfoodnetwork,openfoodfoundation/openfoodnetwork,lin-d-hop/openfoodnetwork,lin-d-hop/openfoodnetwork,mkllnk/openfoodnetwork,openfoodfoundation/openfoodnetwork,Matt-Yorkley/...
5730f84ef4446f3faab393ac89bc00182c12268d
grammars/weave_md.cson
grammars/weave_md.cson
'name': 'Weave.jl markdown' scopeName: 'source.weave.md' 'fileTypes': [ 'jmd' 'jmdw' 'mdw' ] patterns: [ { 'include' : 'source.weave.noweb' } { 'begin': '^([`~]{3,})(\\{|\\{\\.|)(julia)(;|)\\s*(.*?)(\\}|)\\s*$' 'beginCaptures': '1': 'name': 'markup.heading.weave.md' '...
'name': 'Weave.jl markdown' 'scopeName' : 'source.weave.md' 'fileTypes': [ 'jmd' 'jmdw' 'mdw' ] 'patterns': [ { 'include' : 'source.weave.noweb' } { 'begin': '^([`~]{3,})(\\{|\\{\\.|)(julia)(;|)\\s*(.*?)(\\}|)\\s*$' 'beginCaptures': '1': 'name': 'markup.heading.weave.md' ...
Add support for new inline code format
Add support for new inline code format
CoffeeScript
mit
mpastell/language-weave
806a19cad3c73023b623ddfdef1467e06fdfd612
lib/react_components/hello_world.cjsx
lib/react_components/hello_world.cjsx
Link = require('react-router').Link module.exports = React.createClass displayName: 'HelloWorld' render: -> <div> <h1>Hello world!</h1> <p>You're looking at the <a href="https://github.com/KyleAMathews/coffee-react-quickstart">Coffeescript React Quickstart</a> project by <a href="https://twitter.co...
Link = require('react-router').Link module.exports = React.createClass displayName: 'HelloWorld' render: -> <div> <h1>Hello world!</h1> <p>You're looking at the <a href="https://github.com/KyleAMathews/coffee-react-quickstart">Coffeescript React Quickstart</a> project by <a href="https://twitter.co...
Add list of 'batteries included' for demo page
Add list of 'batteries included' for demo page
CoffeeScript
mit
VinSpee/webpacker,KyleAMathews/coffee-react-quickstart,duncanchen/coffee-react-quickstart,w01fgang/coffee-react-quickstart,mariopeixoto/todo-flux,methyl/react-typeahead-example,locomote/tycoon,ZECTBynmo/coffee-react-quickstart,josesanch/coffee-react-quickstart,ZECTBynmo/coffee-react-quickstart,KyleAMathews/coffee-react...
fba6797af04a6f7cff612bb23fd7cf9186b6b3e7
app/assets/javascripts/species/routes/taxon_concept_documents_route.js.coffee
app/assets/javascripts/species/routes/taxon_concept_documents_route.js.coffee
Species.TaxonConceptDocumentsRoute = Ember.Route.extend renderTemplate: -> @getDocuments() @render('taxon_concept/documents') getDocuments: -> model = this.modelFor("taxonConcept") $.ajax( url: "/api/v1/documents?taxon_concept_id=" + model.get('id'), success: (data) -> model.set...
Species.TaxonConceptDocumentsRoute = Ember.Route.extend renderTemplate: -> @getDocuments() @render('taxon_concept/documents') getDocuments: -> model = this.modelFor("taxonConcept") $.ajax( url: "/api/v1/documents?taxon-concepts-ids=" + model.get('id'), success: (data) -> model.s...
Update document search usage in taxon concept's page
Update document search usage in taxon concept's page
CoffeeScript
bsd-3-clause
unepwcmc/SAPI,unepwcmc/SAPI,unepwcmc/SAPI,unepwcmc/SAPI
33b490b29160071b5bf59a1f3dd8f134aaed48fe
src/scripts/workbench/views/sensor/map_view.js.coffee
src/scripts/workbench/views/sensor/map_view.js.coffee
class Workbench.Views.SensorMapView extends Backbone.Marionette.ItemView template: false initialize: -> @zoom = 13 onDestroy: -> @map.remove() if @map onShow: -> if @el.id is "" console.warn "No Map Element" else @location = [@model.get("latitude"), @model.get("longitude")] ...
class Workbench.Views.SensorMapView extends Backbone.Marionette.ItemView template: false initialize: -> @zoom = 13 onDestroy: -> @map.remove() if @map onShow: -> if @el.id is "" console.warn "No Map Element" else @location = [@model.get("latitude"), @model.get("longitude")] ...
Use master map tile selection for sensor map
Use master map tile selection for sensor map
CoffeeScript
mit
GeoSensorWebLab/Arctic-Scholar-Portal,GeoSensorWebLab/asw-workbench,GeoSensorWebLab/asw-workbench,GeoSensorWebLab/Arctic-Scholar-Portal,GeoSensorWebLab/asw-workbench
80ee4ba882f8c27d612b77ebb4f9a1ae83ed2551
lib/broadcast-target.coffee
lib/broadcast-target.coffee
module.exports = class BroadcastTarget editor: null listener: null isMarkdownPreview: false constructor: -> @editor = atom.workspace.activePaneItem @isMarkdownPreview = @editor[0]? @editor.on 'markdown-preview:markdown-changed', => @listener?() setListener: (listener) -> @listener = ...
module.exports = class BroadcastTarget editor: null listener: null isMarkdownPreview: false constructor: -> @editor = atom.workspace.activePaneItem @isMarkdownPreview = @editor[0]? @editor.on 'markdown-preview:markdown-changed', => @listener?() setListener: (listener) -> @listener = ...
Fix an issue that '<' and '>' were not shown correctly
Fix an issue that '<' and '>' were not shown correctly
CoffeeScript
mit
eqot/atom-broadcast,eqot/atom-broadcast
808a11eb1abbb84e80bb0f7449207922badb8bb9
atom/config.cson
atom/config.cson
'exception-reporting': 'userId': 'ee24cf00-f793-9081-be2a-2cdae5536b7f' 'release-notes': 'viewedVersion': '0.64.0' 'welcome': 'showOnStartup': false 'metrics': 'userId': '51eeb6113c1ae801c9aade9b6d679aa5189ced25' 'editor': 'fontFamily': 'Source Code Pro' 'fontSize': 14 'preferredLineLength': 100 'showIn...
'exception-reporting': 'userId': 'ee24cf00-f793-9081-be2a-2cdae5536b7f' 'release-notes': 'viewedVersion': '0.64.0' 'welcome': 'showOnStartup': false 'metrics': 'userId': '51eeb6113c1ae801c9aade9b6d679aa5189ced25' 'editor': 'fontFamily': 'Source Code Pro' 'fontSize': 14 'preferredLineLength': 100 'showIn...
Add selectors for spell checking.
Add selectors for spell checking.
CoffeeScript
mit
lee-dohm/dotfiles,lee-dohm/dotfiles,lee-dohm/dotfiles,lee-dohm/dotfiles
8f134727a42f4a10a3c72896305fdfaacfe040b6
atom/config.cson
atom/config.cson
"*": core: telemetryConsent: "limited" themes: [ "one-light-ui" "one-light-syntax" ] editor: fontFamily: "'SF Mono', Menlo, Consolas, DejaVu Sans Mono, monospace" fontSize: 12 lineHeight: 1.7 "one-dark-ui": tabCloseButton: "Left" "one-light-ui": tabCloseButton: "Left"...
"*": core: disabledPackages: [ "exception-reporting" ] telemetryConsent: "limited" themes: [ "one-light-ui" "one-light-syntax" ] editor: fontFamily: "'SF Mono', Menlo, Consolas, DejaVu Sans Mono, monospace" fontSize: 12 lineHeight: 1.7 "one-dark-ui": tabCloseB...
Disable 'exceptino-reporting' so userId GUID isn’t checked in
Disable 'exceptino-reporting' so userId GUID isn’t checked in
CoffeeScript
mit
smockle/dotfiles,smockle/dotfiles
8a8b0831c8ddd3c3f971692488014e3d73ef36b0
client/app/lib/payment/paymentconstants.coffee
client/app/lib/payment/paymentconstants.coffee
globals = require 'globals' module.exports = getOperation : (current, selected) -> arr = [ @planTitle.FREE @planTitle.HOBBYIST @planTitle.DEVELOPER @planTitle.PROFESSIONAL ] current = arr.indexOf current selected = arr.indexOf selected return switch when selecte...
globals = require 'globals' module.exports = getOperation : (current, selected) -> arr = [ @planTitle.FREE @planTitle.HOBBYIST @planTitle.DEVELOPER @planTitle.PROFESSIONAL ] current = arr.indexOf current selected = arr.indexOf selected return switch when selecte...
Change camel case event names.
Change camel case event names.
CoffeeScript
agpl-3.0
mertaytore/koding,rjeczalik/koding,cihangir/koding,gokmen/koding,cihangir/koding,cihangir/koding,cihangir/koding,usirin/koding,jack89129/koding,usirin/koding,szkl/koding,acbodine/koding,szkl/koding,usirin/koding,koding/koding,usirin/koding,acbodine/koding,drewsetski/koding,szkl/koding,alex-ionochkin/koding,sinan/koding...
eaeecc00e132384730b06dd55136514bc11e4dd2
atom/config.cson
atom/config.cson
"*": "exception-reporting": userId: "30e6f2d0-42d3-ab77-4984-dde4c431f019" welcome: showOnStartup: false core: {} editor: invisibles: {} fontFamily: "Hack" autosave: enabled: true "git-diff": showIconsInEditorGutter: true "ruby-test": testFramework: "minitest" rspecAllComma...
"*": "exception-reporting": userId: "30e6f2d0-42d3-ab77-4984-dde4c431f019" welcome: showOnStartup: false core: projectHome: "/Users/randy/src" audioBeep: false editor: invisibles: {} fontFamily: "Hack" preferredLineLength: 100 showIndentGuide: true autosave: enabled: true ...
Tweak a few Atom settings
Tweak a few Atom settings
CoffeeScript
mit
randycoulman/dotfiles
e20b636d49bc3a7616d04cf425db8fed25326be0
app/main.cjsx
app/main.cjsx
React = require 'react' ReactDOM = {render} = require 'react-dom' {Router, Route, Link} = require 'react-router' createBrowserHistory = require 'history/lib/createBrowserHistory' routes = require './router' routes = require './router' history = createBrowserHistory() if process.env.NON_ROOT isnt 'true' and window.loc...
React = require 'react' ReactDOM = {render} = require 'react-dom' {Router, Route, Link} = require 'react-router' {useBasename} = require 'history' createBrowserHistory = require 'history/lib/createBrowserHistory' routes = require './router' routes = require './router' basename = if process.env.DEPLOY_SUBDIR? then "/p...
Add basename to history for subdirectory deploys
Add basename to history for subdirectory deploys
CoffeeScript
apache-2.0
amyrebecca/Panoptes-Front-End,jelliotartz/Panoptes-Front-End,alexbfree/Panoptes-Front-End,alexbfree/Panoptes-Front-End,mrniaboc/Panoptes-Front-End,fmnhExhibits/Panoptes-Front-End,amyrebecca/Panoptes-Front-End,zooniverse/Panoptes-Front-End,jelliotartz/Panoptes-Front-End,mrniaboc/Panoptes-Front-End,fmnhExhibits/Panoptes-...
1be243cbfc71ce283f4ef0dc15048860a8fc60ca
src/command-palette-view.coffee
src/command-palette-view.coffee
{$$} = require 'space-pen' SelectList = require 'select-list' $ = require 'jquery' _ = require 'underscore' module.exports = class CommandPaletteView extends SelectList @activate: (rootView) -> @instance = new CommandPaletteView(rootView) @viewClass: -> "#{super} command-palette" filterKey: 'eventDescr...
{$$} = require 'space-pen' SelectList = require 'select-list' $ = require 'jquery' _ = require 'underscore' module.exports = class CommandPaletteView extends SelectList @activate: (rootView) -> @instance = new CommandPaletteView(rootView) @viewClass: -> "#{super} command-palette" filterKey: 'eventDescr...
Clear mini editor base select list cancelled()
Clear mini editor base select list cancelled() Clearing the mini editor when closing is something all sub-classes were already doing so it makes sense to pull it up to the base class as the default cancelled() implementation that can still be overridden if needed.
CoffeeScript
mit
atom/command-palette
cc4b743b02e0eb17c013e555d8a86cee61cf8a2e
Gruntfile.coffee
Gruntfile.coffee
module.exports = (grunt) -> grunt.initConfig pkg: grunt.file.readJSON('package.json') coffee: glob_to_multiple: expand: true cwd: 'src' src: ['*.coffee'] dest: 'lib' ext: '.js' coffeelint: options: max_line_length: level: 'ignore' ...
module.exports = (grunt) -> grunt.initConfig pkg: grunt.file.readJSON('package.json') coffee: glob_to_multiple: expand: true cwd: 'src' src: ['*.coffee'] dest: 'lib' ext: '.js' coffeelint: options: max_line_length: level: 'ignore' ...
Fix running specs on Windows.
Fix running specs on Windows.
CoffeeScript
mit
adelcambre/node-keytar,atom/node-keytar,atom/node-keytar,thesbros/node-keytar,xeno-io/keytar,havoc-io/keytar,eHealthAfrica/node-keytar,atom/node-keytar,havoc-io/keytar,xeno-io/keytar,thesbros/node-keytar,ehealthafrica-ci/node-keytar,ehealthafrica-ci/node-keytar,adelcambre/node-keytar,eHealthAfrica/node-keytar,havoc-io/...