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
5a3ab323657763f05c9953a29cf248e06dfe6f0e
app/assets/javascripts/problems.coffee
app/assets/javascripts/problems.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/ # For dynamic appending test cases. $ -> $('form').on 'click', '.remove_fields', (event) -> $(this).pr...
# 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/ # For dynamic appending test cases. $(document).on 'turbolinks:load', -> # for turbolinks $ -> # Remove F...
Fix to work Remove/Add Fields under turbolinks
Fix to work Remove/Add Fields under turbolinks
CoffeeScript
mit
tac0x2a/WitchCoder,tac0x2a/WitchCoder,tac0x2a/WitchCoder
5da5793d4d782ebc8bfe37abe7538b9bddfbe9b8
app.coffee
app.coffee
express = require 'express' app = express() # Serve static files app.use express.static(__dirname + '/public') # Set cache manifext content-type app.use (req, res, next)-> if req.originalUrl == '/cache.manifest' res.setHeader('Content-Type', 'text/cache-manifest') next() app.get '/', (req, res, next)-> res...
express = require 'express' app = express() # Serve static files app.use express.static(__dirname + '/public') # Set cache manifext content-type app.use (req, res, next)-> if req.originalUrl == '/cache.manifest' res.setHeader('Content-Type', 'text/cache-manifest') next() app.get '/', (req, res, next)-> res...
Fix getting port from env
Fix getting port from env
CoffeeScript
mit
ArnaudWopata/videoappcache
7de6ad10fb347cc858a1e476071a4d30f028dcca
src/ext/components/rdds-output.coffee
src/ext/components/rdds-output.coffee
H2O.RDDsOutput = (_, _rDDs) -> _rDDViews = signal [] createRDDView = (rDD) -> id: rDD.id name: rDD.name partitions: rDD.partitions _rDDViews map _rDDs, createRDDView rDDViews: _rDDViews hasRDDs: _rDDs.length > 0 template: 'flow-rdds-output'
H2O.RDDsOutput = (_, _go, _rDDs) -> _rDDViews = signal [] createRDDView = (rDD) -> id: rDD.id name: rDD.name partitions: rDD.partitions _rDDViews map _rDDs, createRDDView defer _go rDDViews: _rDDViews hasRDDs: _rDDs.length > 0 template: 'flow-rdds-output'
Fix rendering failure in RDDs-output
Fix rendering failure in RDDs-output
CoffeeScript
mit
printedheart/h2o-flow,h2oai/h2o-flow,nilbody/h2o-flow,junwucs/h2o-flow,nilbody/h2o-flow,junwucs/h2o-flow,printedheart/h2o-flow,nilbody/h2o-flow,h2oai/h2o-flow,junwucs/h2o-flow,printedheart/h2o-flow
29230efa548e5aae29fd87a115d45867a147598c
lib/plugins/completer.coffee
lib/plugins/completer.coffee
fs = require 'fs' path = require 'path' module.exports = (settings) -> # Validation throw new Error 'No shell provided' if not settings.shell shell = settings.shell # Plug completer to interface shell.interface.completer = (text) -> suggestions = [] routes = shell.routes fo...
module.exports = (settings) -> # Validation throw new Error 'No shell provided' if not settings.shell shell = settings.shell # Plug completer to interface shell.interface.completer = (text) -> suggestions = [] routes = shell.routes for route in routes command = r...
Fix bug introduced by coffee migration
Fix bug introduced by coffee migration
CoffeeScript
bsd-3-clause
wdavidw/node-shell
7b5a44815c93694d8e13a5b36d2924ae102f71b8
components/logged_out_cta/index.coffee
components/logged_out_cta/index.coffee
Cookies = require 'cookies-js' module.exports = -> $el = $('.lo-cta') unless Cookies.get('lo-cta') $el.addClass 'lo-cta--visible' $el.on 'click', '.lo-cta__close', (e) -> $el.slideToggle "fast" # Cookie expires in 1 day Cookies.set 'lo-cta', true, { expires: 86400000 }
Cookies = require 'cookies-js' module.exports = -> $el = $('.lo-cta') unless Cookies.get('lo-cta') $el.addClass 'lo-cta--visible' $el.on 'click', '.lo-cta__close', (e) -> $el.removeClass 'lo-cta--visible' # Cookie expires in 1 day Cookies.set 'lo-cta', true, { expires: 86400000 }
Remove class instead of animation
Remove class instead of animation
CoffeeScript
mit
aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell
0e4c2df1e105871f3afa9503043a22489822110e
lib/assets/javascripts/channel.js.coffee
lib/assets/javascripts/channel.js.coffee
class @Cable.Channel constructor: (params = {}) -> @channelName ?= @underscore @constructor.name params['channel'] = @channelName @channelIdentifier = JSON.stringify params cable.subscribe(@channelIdentifier, { onConnect: @connected onDisconnect: @disconnected onReceiveData: @recei...
class @Cable.Channel constructor: (params = {}) -> @channelName ?= @underscore @constructor.name params['channel'] = @channelName @channelIdentifier = JSON.stringify params cable.subscribe(@channelIdentifier, { onConnect: @connected onDisconnect: @disconnected onReceiveData: @recei...
Add new convention method for performing channel actions
Add new convention method for performing channel actions
CoffeeScript
mit
MSP-Greg/rails,kmayer/rails,kirs/rails-1,slipstreamstudio/actioncable,bolek/rails,kachick/rails,BlakeWilliams/rails,notapatch/rails,kirs/rails-1,assain/rails,askl56/actioncable,gfvcastro/rails,starknx/rails,flanger001/rails,tjschuck/rails,bradleypriest/rails,matrinox/rails,illacceptanything/illacceptanything,shioyama/r...
cd0b3cbb584cc5316876a70c7b9b339317a0d1b2
spec/keytar-spec.coffee
spec/keytar-spec.coffee
keytar = require '../lib/keytar' describe "keytar", -> service = 'keytar tests' account = 'buster' password = 'secret' beforeEach -> keytar.deletePassword(service, account) describe "addPassword(service, account, password)", -> it "returns true when the service, account, and password are specified"...
keytar = require '../lib/keytar' describe "keytar", -> service = 'keytar tests' account = 'buster' password = 'secret' beforeEach -> keytar.deletePassword(service, account) afterEach -> keytar.deletePassword(service, account) describe "addPassword(service, account, password)", -> it "returns...
Delete password in an afterEach function
Delete password in an afterEach function
CoffeeScript
mit
thesbros/node-keytar,xeno-io/keytar,eHealthAfrica/node-keytar,adelcambre/node-keytar,thesbros/node-keytar,atom/node-keytar,havoc-io/keytar,xeno-io/keytar,atom/node-keytar,atom/node-keytar,adelcambre/node-keytar,ehealthafrica-ci/node-keytar,adelcambre/node-keytar,havoc-io/keytar,adelcambre/node-keytar,xeno-io/keytar,the...
e5f665f00984736f470e58429c40a738b17a4c60
spec/client_spec.coffee
spec/client_spec.coffee
# Use chai assertation library expect = chai.expect before -> @client = new Postie.Client('http://example.org/background.html') describe 'ready', -> it 'should create an iframe', -> @client.ready() expect(@client._frame).to.be.an.instanceof(Window)
describe 'ready', -> it 'should create an iframe', -> @client = new Postie.Client('http://example.org/background.html') @client.ready() expect(@client._frame).not.toBeNull()
Write a test. It passed!
Write a test. It passed!
CoffeeScript
mit
paulspringett/postie.js
523e51af94e751d657f98557dff50b5b5cf1dd06
src/scripts/models/content/node.coffee
src/scripts/models/content/node.coffee
# Representation of individual nodes in a book's tree (table of contents). # A Node can represent both a tree (subcollection), or leaf (page). # Page Nodes also are used to cache a page's content once loaded. define (require) -> Backbone = require('backbone') settings = require('cs!settings') require('backbone-a...
# Representation of individual nodes in a book's tree (table of contents). # A Node can represent both a tree (subcollection), or leaf (page). # Page Nodes also are used to cache a page's content once loaded. define (require) -> Backbone = require('backbone') settings = require('cs!settings') require('backbone-a...
Update api to match cnx-archive
Update api to match cnx-archive
CoffeeScript
agpl-3.0
dak/webview,carolinelane10/webview,katalysteducation/webview,dak/webview,katalysteducation/webview,katalysteducation/webview,katalysteducation/webview,Connexions/webview,Connexions/webview,Connexions/webview,Connexions/webview,dak/webview
88081c7aedfd8c11e5e2c84aaf547c42c495a2e8
test/spec/controllers/contact.coffee
test/spec/controllers/contact.coffee
'use strict' describe 'Controller: ContactCtrl', -> # load the controller's module beforeEach module 'expressoApp' ContactCtrl = {} scope = {} # Initialize the controller and a mock scope beforeEach inject ($controller, $rootScope, $injector) -> scope = $rootScope.$new() AuthService = $injector...
'use strict' describe 'Controller: ContactCtrl', -> # load the controller's module beforeEach module 'expressoApp' beforeEach -> AuthServiceMock = { isAuthenticated: -> , isAuthorized: -> } module ($provide) -> $provide.value 'AuthService', AuthServiceMock null ...
Use to inject mock service
Use to inject mock service
CoffeeScript
mit
calebhskim/expresso,calebhskim/expresso
faa220f26f7c248ea2c140453fbee08154978d17
src/public/app._.coffee
src/public/app._.coffee
define [ 'models/server' 'vendor/underscore' 'vendor/jquery' ], ( Server ) -> # Application base class # class App id: null serverAddress: '' # Constructs a new app. # constructor: ( ) -> @_initTime = performance.now() @server = new Server(@serverAddress) @initialize() # Is called...
define [ 'models/server' 'vendor/underscore' 'vendor/jquery' ], ( Server ) -> # Application base class # class App id: null serverAddress: ':8080/' # Constructs a new app. # constructor: ( ) -> @_initTime = performance.now() @server = new Server(@serverAddress) @initialize() # Is ...
Use a different serverAddress so it works over apache proxied connection
Use a different serverAddress so it works over apache proxied connection
CoffeeScript
bsd-2-clause
joostverdoorn/webrtc
172bba395dc12acc068d632eedb9e0db70bd28c7
tutor/src/helpers/notifications.coffee
tutor/src/helpers/notifications.coffee
{NotificationActions} = require 'shared' Router = require './router' module.exports = start: (bootstrapData) -> NotificationActions.startPolling() for level, message of (bootstrapData.flash or {}) NotificationActions.display({message, level}) buildCallbackHandlers: (comp) -> router = comp.cont...
{NotificationActions} = require 'shared' module.exports = start: (bootstrapData) -> NotificationActions.startPolling() for level, message of (bootstrapData.flash or {}) NotificationActions.display({message, level}) buildCallbackHandlers: (comp) -> # Require router here because requiring it in g...
Move require inside method to fix hot module reloading
Move require inside method to fix hot module reloading helpers/notifications.coffee is required from the main index file so it can call Notifications.start() This was in turn requiring Router outside the HMR <Application> scope, so any file that also used Router would fail to hot reload
CoffeeScript
agpl-3.0
openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js
a4212558a2413cfac83988159a6beff22d4f96f8
packages/rocketchat-ui-sidenav/side-nav/listPrivateGroupsFlex.coffee
packages/rocketchat-ui-sidenav/side-nav/listPrivateGroupsFlex.coffee
Template.listPrivateGroupsFlex.helpers groups: -> return ChatSubscription.find { t: { $in: ['p']}, f: { $ne: true } }, { sort: 't': 1, 'name': 1 } Template.listPrivateGroupsFlex.events 'click header': -> SideNav.closeFlex() 'click .channel-link': -> SideNav.closeFlex() 'click footer .create': -> SideNa...
Template.listPrivateGroupsFlex.helpers groups: -> return ChatSubscription.find { t: { $in: ['p']}, f: { $ne: true } }, { sort: 't': 1, 'name': 1 } Template.listPrivateGroupsFlex.events 'click header': -> SideNav.closeFlex() 'click .channel-link': -> SideNav.closeFlex() 'click footer .create': -> SideNa...
Fix 'create new' in private group list opening 'create channel' flex
Fix 'create new' in private group list opening 'create channel' flex
CoffeeScript
mit
karlprieb/Rocket.Chat,pkgodara/Rocket.Chat,fatihwk/Rocket.Chat,Achaikos/Rocket.Chat,AimenJoe/Rocket.Chat,galrotem1993/Rocket.Chat,acaronmd/Rocket.Chat,LearnersGuild/echo-chat,k0nsl/Rocket.Chat,inoxth/Rocket.Chat,xasx/Rocket.Chat,karlprieb/Rocket.Chat,xboston/Rocket.Chat,TribeMedia/Rocket.Chat,ziedmahdi/Rocket.Chat,Gudi...
ab7627c1a68a57f9325a402ae550b1498974b1f2
app/assets/javascripts/models/page/access_page.js.coffee
app/assets/javascripts/models/page/access_page.js.coffee
#= require models/data/query #= require models/data/project #= require models/data/user #= require models/ui/temporal #= require models/ui/project_list data = @edsc.models.data ui = @edsc.models.ui ns = @edsc.models.page ui = @edsc.models.ui ns.AccessPage = do (ko, setCurrent = ns.setCurrent ...
#= require models/data/query #= require models/data/project #= require models/data/user #= require models/ui/temporal #= require models/ui/project_list data = @edsc.models.data ui = @edsc.models.ui ns = @edsc.models.page ns.AccessPage = do (ko, setCurrent = ns.setCurrent access...
Address duplicate definition from merge and load order issue
EDSC-122: Address duplicate definition from merge and load order issue
CoffeeScript
apache-2.0
bilts/earthdata-search,mightynimble/earthdata-search,bilts/earthdata-search,mightynimble/earthdata-search,mightynimble/earthdata-search,bilts/earthdata-search,bilts/earthdata-search,mightynimble/earthdata-search
62183c8608798f8dd98cd80ddb9b27f64b2554fb
app/assets/javascripts/admin.js.coffee
app/assets/javascripts/admin.js.coffee
$ -> initializeButtons = () -> for metric in gon.metrics repository = gon.repository.name $(".compute-metric.#{metric}").on 'click', (event) => parameter = { "repository": repository, "metric": metric } $.post("/metrics/compute", parameter, (data, status) => console.log dat...
$ -> createRequestCallback = (repository, metric) -> return () -> parameter = {"repository": repository, "metric": metric} $.post("/metrics/compute", parameter) initializeButtons = () -> for metric in gon.metrics repository = gon.repository.name $(".compute-metric.#{metric}").bind...
Fix accidentally created closure inside of a loop
Fix accidentally created closure inside of a loop I accidentally created a closure inside a loop with the result, that the callback was only executed with the last iteration value. I have fixed that by creating a function which then again creates the callback function based on given parameters. Signed-off-by: Konrad ...
CoffeeScript
mit
platzhirsch/metadata-census
43e13b922387d6abe994218049aee955bed52f40
src/null-grammar.coffee
src/null-grammar.coffee
{Emitter} = require 'emissary' module.exports = class NullGrammar Emitter.includeInto(this) name: 'Null Grammar' scopeName: 'text.plain.null-grammar' constructor: -> @scopes = ['null-grammar.text.plain'] getScore: -> 0 tokenizeLine: (line) -> tokens: [{value: line, @scopes}] tokenizeLines: (...
{Emitter} = require 'emissary' module.exports = class NullGrammar Emitter.includeInto(this) name: 'Null Grammar' scopeName: 'text.plain.null-grammar' getScore: -> 0 tokenizeLine: (line) -> tokens: [{value: line, scopes: ['null-grammar.text.plain']}] tokenizeLines: (text) -> lines = text.split('...
Return new scopes array for each line tokenized
Return new scopes array for each line tokenized Downstream consumers may tweak the tokens returned and it shouldn't affect future lines tokenized which would happen if the same array was pushed each time.
CoffeeScript
mit
soldair/first-mate,klorenz/first-mate-manual-fork,hansonw/first-mate,atom/first-mate,wiggzz/first-mate,rameshvarun/first-mate,Talon1024/first-mate,burodepeper/first-mate
ee755985c53de6e4019d5172f9a1c700a5a6bca5
app/assets/javascripts/glimpse.coffee
app/assets/javascripts/glimpse.coffee
#= require glimpse/vendor/jquery.tipsy updatePerformanceBar = -> glimpseResults = $('#glimpse-results') $('#glimpse [data-defer-to]').each -> deferKey = $(this).data 'defer-to' data = glimpseResults.data deferKey $(this).text data initializeTipsy = -> $('#glimpse .tooltip').each -> el = $(this) ...
#= require glimpse/vendor/jquery.tipsy updatePerformanceBar = -> glimpseResults = $('#glimpse-results') $('#glimpse [data-defer-to]').each -> deferKey = $(this).data 'defer-to' data = glimpseResults.data deferKey $(this).text data initializeTipsy = -> $('#glimpse .tooltip').each -> el = $(this) ...
Use the document for the listener target for turbolinks
Use the document for the listener target for turbolinks
CoffeeScript
mit
nidhinnambiar/peek,nidhinnambiar/peek,AHaymond/peek,afeld/peek,AHaymond/peek,elkingtonmcb/peek,AHaymond/peek,warseph/peek,afeld/peek,elkingtonmcb/peek,afeld/peek,peek/peek,nidhinnambiar/peek,peek/peek,elkingtonmcb/peek,warseph/peek,warseph/peek,peek/peek
100cc43479e16a3119e4f7e4f0f9ffbfc22545c5
app/assets/javascripts/events.js.coffee
app/assets/javascripts/events.js.coffee
$ -> $('.jobs_controller.index_action').each -> new Altria.ServerEvent() .on 'build.started build.finished', (attributes) -> $.ajax "/jobs/#{attributes.job_id}", success: (data) -> $("#job#{attributes.job_id}").replaceWith(data) $('.jobs_controller.show_action').each -> event = new ...
$ -> $('.jobs_controller.index_action').each -> new Altria.ServerEvent() .on 'build.started build.finished', (attributes) -> $.ajax "/jobs/#{attributes.job_id}", success: (data) -> $("#job#{attributes.job_id}").replaceWith(data) $('.jobs_controller.show_action').each -> event = new ...
Fix bug that unrelated builds are updated
Fix bug that unrelated builds are updated
CoffeeScript
mit
r7kamura/altria,r7kamura/altria
9cb86589a8e640948a5a38b8e5c11830ac2ac568
app/assets/javascripts/router.js.coffee
app/assets/javascripts/router.js.coffee
#= require app App.Router = Ember.Router.extend enableLogging: true location: 'hash' root: Ember.Route.extend index: Ember.Route.extend route: '/' redirectsTo: 'whatwouldisee.index' whatwouldisee: Ember.Route.extend route: '/whatwouldisee' doLookUp: (router, e) -> if sc...
#= require app App.Router = Ember.Router.extend enableLogging: true location: 'hash' root: Ember.Route.extend index: Ember.Route.extend route: '/' redirectsTo: 'whatwouldisee.index' whatwouldisee: Ember.Route.extend route: '/whatwouldisee' doLookUp: (router, e) -> if sc...
Make Router context not a hash
Make Router context not a hash
CoffeeScript
mit
joliss/better-tweet-feed
9615305219dea764f021a7eebd9879ba1417352e
core/app/backbone/models/opinionaters_evidence.coffee
core/app/backbone/models/opinionaters_evidence.coffee
class window.OpinionatersEvidence extends Backbone.Model opinionaters: -> @_opinionaters ?= new Users @get('users')
class window.OpinionatersEvidence extends Backbone.Model opinionaters: -> unless @_opinionaters? @_opinionaters = new Users @get('users') @on 'change', => @_opinionaters.reset @get('users') @_opinionaters
Update opinionaters when model changes
Update opinionaters when model changes
CoffeeScript
mit
Factlink/factlink-core,daukantas/factlink-core,daukantas/factlink-core,daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core,Factlink/factlink-core
5a53a7e3c20ea70dce58cae7c2335ed2a645155b
atom/config/keymap.cson
atom/config/keymap.cson
'.platform-win32, .platform-linux': 'alt-\\': 'unset!' # tree-view:toggle-focus default 'ctrl-|': 'unset!' # tree-view:reveal-active-file default 'ctrl-0': 'tree-view:reveal-active-file' 'atom-workspace atom-text-editor:not([mini])': 'ctrl-up': 'unset!' # editor:move-line-up default 'ctrl-shift-up': 'editor:...
'.platform-win32, .platform-linux': 'alt-\\': 'unset!' # tree-view:toggle-focus default 'ctrl-|': 'unset!' # tree-view:reveal-active-file default 'ctrl-0': 'tree-view:reveal-active-file' 'ctrl-h': 'find-and-replace:show' 'atom-workspace atom-text-editor:not([mini])': 'ctrl-up': 'unset!' # editor:move-line-up...
Add ctrl+h -> ctrl+f to atom keybindings
Add ctrl+h -> ctrl+f to atom keybindings
CoffeeScript
mit
Tyriar/dotfiles,Tyriar/dotfiles,Tyriar/tyr-tools,Tyriar/tyr-tools,Tyriar/dotfiles
a3422093317bb33b7e6850426970a34ecc8bf4c9
src/qr-generator.coffee
src/qr-generator.coffee
# Description: # Generate QR codes as PNG with size 128x128 pixels # Using service from [QR Code Generator](http://goqr.me/api/doc/create-qr-code/) # # Dependencies: # None # # Configuration: # None # # Commands: # hubot qr gen <data> # # Author: # eelcokoelewijn # http(s)://api.qrserver.com/v1/create-qr-...
# Description: # Generate QR codes as PNG with size 128x128 pixels # Using service from [QR Code Generator](http://goqr.me/api/doc/create-qr-code/) # # Dependencies: # None # # Configuration: # None # # Commands: # hubot qr gen <data> # # Author: # eelcokoelewijn # http(s)://api.qrserver.com/v1/create-qr-...
Add check for maximum data length of 900 characters
Add check for maximum data length of 900 characters
CoffeeScript
mit
eelcokoelewijn/QR-Generator,eelcokoelewijn/QR-Generator
a5748bb5057ec8ae6148de60b6bd8ce3a034793c
packages/rocketchat-internal-hubot/settings.coffee
packages/rocketchat-internal-hubot/settings.coffee
RocketChat.settings.addGroup 'InternalHubot' RocketChat.settings.add 'InternalHubot_Enabled', true, { type: 'boolean', group: 'InternalHubot', i18nLabel: 'Enabled' } RocketChat.settings.add 'InternalHubot_Username', 'Rocket.Cat', { type: 'string', group: 'InternalHubot', i18nLabel: 'Username', i18nDescription: 'Interna...
RocketChat.settings.addGroup 'InternalHubot' RocketChat.settings.add 'InternalHubot_Enabled', false, { type: 'boolean', group: 'InternalHubot', i18nLabel: 'Enabled' } RocketChat.settings.add 'InternalHubot_Username', 'Rocket.Cat', { type: 'string', group: 'InternalHubot', i18nLabel: 'Username', i18nDescription: 'Intern...
Make Internal Hubot disabled by default
Make Internal Hubot disabled by default
CoffeeScript
mit
fatihwk/Rocket.Chat,VoiSmart/Rocket.Chat,trt15-ssci-organization/Rocket.Chat,mrinaldhar/Rocket.Chat,Kiran-Rao/Rocket.Chat,alexbrazier/Rocket.Chat,pachox/Rocket.Chat,mwharrison/Rocket.Chat,NMandapaty/Rocket.Chat,galrotem1993/Rocket.Chat,pitamar/Rocket.Chat,pitamar/Rocket.Chat,cnash/Rocket.Chat,mrinaldhar/Rocket.Chat,Kir...
231480825b454955931a8c155dd76e469b51d73a
packages/rocketchat-lib/server/models/_Base.coffee
packages/rocketchat-lib/server/models/_Base.coffee
RocketChat.models._Base = class find: -> return @model.find.apply @model, arguments findOne: -> return @model.findOne.apply @model, arguments insert: -> return @model.insert.apply @model, arguments update: -> return @model.update.apply @model, arguments upsert: -> return @model.upsert.apply @model, a...
RocketChat.models._Base = class find: -> return @model.find.apply @model, arguments findOne: -> return @model.findOne.apply @model, arguments insert: -> return @model.insert.apply @model, arguments update: -> return @model.update.apply @model, arguments upsert: -> return @model.upsert.apply @model, a...
Implement methods to handle indexes in Models
Implement methods to handle indexes in Models
CoffeeScript
mit
umeshrs/rocket-chat,jonathanhartman/Rocket.Chat,ziedmahdi/Rocket.Chat,timkinnane/Rocket.Chat,steedos/chat,karlprieb/Rocket.Chat,liuliming2008/Rocket.Chat,4thParty/Rocket.Chat,steedos/chat,jonathanhartman/Rocket.Chat,trt15-ssci-organization/Rocket.Chat,trt15-ssci-organization/Rocket.Chat,NMandapaty/Rocket.Chat,mhurwi/Ro...
6a5b7daf48e143884b74168e81c7343b0e2d79d3
app/assets/javascripts/editable.js.coffee
app/assets/javascripts/editable.js.coffee
$ -> enableEditables() enableEditables = -> $('span.editable').editable (value, settings) -> $span = $(this) data = {_method: 'PUT'} data[$span.data('attribute')] = value # TODO: We should handle failures and timeouts in POSTing, and make our own "Saving..." indicator. $.post($span.data('url'),...
$ -> enableEditables() enableEditables = -> $('span.editable').editable (value, settings) -> $span = $(this) data = {_method: 'PUT'} data[$span.data('attribute')] = value # TODO: We should handle failures and timeouts in POSTing, and make our own "Saving..." indicator. $.post($span.data('url'),...
Save cell edits if user clicks outside of the cell.
Save cell edits if user clicks outside of the cell.
CoffeeScript
mit
boochtek/DynamicDB,boochtek/DynamicDB,boochtek/DynamicDB
a6760934caabf39ef0b6e19790bb33d7a92709b2
src/Router.coffee
src/Router.coffee
class Router extends Backbone.Router @go = (path) -> -> @routeDirectly path, arguments #- Routing functions routeToServer: -> window.location.reload(true) routeDirectly: (path, args) -> return document.location.reload() if @currentView?.reloadOnClose leavingMessage = _.result(@currentView, 'onLea...
class Router extends Backbone.Router @go = (path) -> -> @routeDirectly path, arguments #- Routing functions routeToServer: -> window.location.reload(true) routeDirectly: (path, args) -> return document.location.reload() if @view?.reloadOnClose leavingMessage = _.result(@view, 'onLeaveMessage') ...
Refactor router properties currentView, currentPath to view, path
Refactor router properties currentView, currentPath to view, path
CoffeeScript
mit
sderickson/FrimFram,sderickson/FrimFram,sderickson/FrimFram
0ab14391b5f7af4651f26b2d382678cf553582bd
src/coffee/run.coffee
src/coffee/run.coffee
Config = require '../config' argv = require('optimist') .usage('Usage: $0 --projectKey key --clientId id --clientSecret secret') .demand(['projectKey','clientId', 'clientSecret']) .argv OrderDistribution = require('../main').OrderDistribution options = master: Config.config retailer: project_key: argv.pr...
Config = require '../config' argv = require('optimist') .usage('Usage: $0 --projectKey key --clientId id --clientSecret secret') .demand(['projectKey','clientId', 'clientSecret']) .argv OrderDistribution = require('../main').OrderDistribution options = master: Config.config retailer: project_key: argv.pr...
Print msg to stderr in case of problem.
Print msg to stderr in case of problem.
CoffeeScript
mit
sphereio/sphere-order-distribution
7ca74269ac5d908efa42ccc278366b400a8b3e8d
app/scripts/store.coffee
app/scripts/store.coffee
Syrup.ApplicationAdapter = DS.FixtureAdapter
Syrup.ApplicationAdapter = DS.FixtureAdapter.extend queryFixtures: (records, query, type)-> console.log('in queryFixtures') records.filter (record)-> for own key, value of query if record[key] != value return false return true
Add record querying to FixtureAdapter.
Add record querying to FixtureAdapter.
CoffeeScript
bsd-2-clause
wafflesfm/syrup
f57271cc1c7252603275d9f2dca36132c1873d4e
base/makeMetaTags.coffee
base/makeMetaTags.coffee
React = require 'react' module.exports = (tags) -> _tags = [] for name, content of tags if content _tags.push <meta name=name content=content key=name /> return _tags
React = require 'react' module.exports = (meta) -> tags = [] for k,v of meta if k.split(':')[0] is 'og' tags.push(<meta property=k content=v key=k />) else tags.push(<meta name=k content=v key=k />) return tags
Use correct property name for Facebook OG tags.
Use correct property name for Facebook OG tags.
CoffeeScript
unlicense
marquee/static-sdk
9789245eef636de7e1b194dfa65160604e1165ab
app/assets/javascripts/items.js.coffee
app/assets/javascripts/items.js.coffee
jQuery -> $('form').on 'click', '.add_fields', (event) -> time = new Date().getTime() regexp = new RegExp($(this).data('id'), 'g') $(this).before($(this).data('fields').replace(regexp, time)) event.preventDefault() jQuery -> $('#items').dataTable columnDefs: [ ## https://datat...
jQuery -> $('form').on 'click', '.add_fields', (event) -> time = new Date().getTime() regexp = new RegExp($(this).data('id'), 'g') $(this).before($(this).data('fields').replace(regexp, time)) event.preventDefault() jQuery -> $('#items').dataTable columnDefs: [ ## https://datat...
Add a blank option when selecting the location option
Add a blank option when selecting the location option
CoffeeScript
agpl-3.0
pcai/lims,kgf/lims,david135/lims,dusty-wil/ReadyResponder,david135/lims,houhoulis/ReadyResponder,kgf/lims,ReadyResponder/ReadyResponder,kgf/lims,pcai/lims,moritzsternemann/ReadyResponder,moritzsternemann/ReadyResponder,ReadyResponder/ReadyResponder,moritzsternemann/ReadyResponder,houhoulis/ReadyResponder,houhoulis/Read...
b1baf5e8e01f9d279eff53ba0b36cadc17973b2c
app/routes/twilio.coffee
app/routes/twilio.coffee
twilio = require 'twilio' reset = '+16466816260' module.exports = (app) -> Game = app.get 'game' hook = twilio.webhook validate: false app.get '/twilio/voice', hook, (req, res) -> twiml = new twilio.TwimlResponse if req.param('To') == reset return Game.create req.param('To'), (err, game) -> ...
twilio = require 'twilio' reset = '+16466816260' module.exports = (app) -> Game = app.get 'game' hook = twilio.webhook validate: false app.get '/twilio/voice', hook, (req, res) -> twiml = new twilio.TwimlResponse if req.param('To') == reset return Game.create req.param('From'), (err, game) -...
Create game with proper from param
Create game with proper from param
CoffeeScript
mit
dordille/dreamphone,dordille/dreamphone
5965f2989817e04051f402da5028adeba39c74a6
atom.symlink/config.cson
atom.symlink/config.cson
"*": "atom-autocomplete-php": {} "atom-beautify": css: beautify_on_save: true end_with_newline: true indent_size: 2 no_lead_zero: true general: analytics: false beautifyEntireFileOnSave: false html: end_with_newline: true indent_size: 2 js: end_w...
"*": "atom-autocomplete-php": {} "atom-beautify": css: beautify_on_save: true end_with_newline: true indent_size: 2 no_lead_zero: true general: analytics: false beautifyEntireFileOnSave: false html: end_with_newline: true indent_size: 2 js: end_w...
Remove themes and disable telemetry
Remove themes and disable telemetry
CoffeeScript
mit
mlcdf/dotfiles,mlcdf/dotfiles,mlcdf/dotfiles
b82e1bff67aa0de869d47f4ac7689fc6bf9b6bb3
app/models/blogy/post.coffee
app/models/blogy/post.coffee
`import DS from 'ember-data'` BlogyPost = DS.Model.extend { published: DS.attr() draft: DS.attr() ilustration: DS.attr() title: DS.attr() locale: DS.attr() slug: DS.attr() storage: DS.attr() format: DS.attr() document: DS.attr() remote: DS.attr() text: DS.attr() content: DS.attr() plain: DS.a...
`import DS from 'ember-data'` BlogyPost = DS.Model.extend { published: DS.attr() draft: DS.attr() ilustration: DS.attr() title: DS.attr() locale: DS.attr() slug: DS.attr() storage: DS.attr() format: DS.attr() document: DS.attr() remote: DS.attr() text: DS.attr() content: DS.attr() createdAt: ...
Create computed properties checking storage of text
Create computed properties checking storage of text
CoffeeScript
mit
werein/ember-blogy,werein/ember-blogy
cb7d4c8638182e5f448651a6f992c12241fb7216
build/tasks/check-licenses-task.coffee
build/tasks/check-licenses-task.coffee
module.exports = (grunt) -> grunt.registerTask 'check-licenses', 'Report the licenses of all dependencies', -> legalEagle = require 'legal-eagle' {size, keys} = require 'underscore-plus' done = @async() options = path: process.cwd() omitPermissive: true overrides: require './licens...
module.exports = (grunt) -> grunt.registerTask 'check-licenses', 'Report the licenses of all dependencies', -> legalEagle = require 'legal-eagle' {size, keys} = require 'underscore-plus' done = @async() options = path: process.cwd() omitPermissive: true overrides: require './license...
Call exit on process global
Call exit on process global
CoffeeScript
mit
rxkit/atom,basarat/atom,pombredanne/atom,folpindo/atom,tjkr/atom,rsvip/aTom,anuwat121/atom,dannyflax/atom,russlescai/atom,davideg/atom,john-kelly/atom,me-benni/atom,omarhuanca/atom,ashneo76/atom,rlugojr/atom,BogusCurry/atom,Rodjana/atom,vjeux/atom,gzzhanghao/atom,panuchart/atom,FoldingText/atom,rlugojr/atom,Shekharraja...
450b5aeb5e6d1325b5f912fad9e5efb02d2fdb8a
client/lib/cordova/keyboard-fix.coffee
client/lib/cordova/keyboard-fix.coffee
if Meteor.isCordova window.addEventListener 'deviceready', -> cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true); cordova.plugins.Keyboard.disableScroll(true); window.addEventListener 'native.keyboardshow', -> $('.main-content').css 'height', window.innerHeight window.addEventListener 'native.keyboardhi...
if Meteor.isCordova document.addEventListener 'deviceready', -> cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true); cordova.plugins.Keyboard.disableScroll(true); window.addEventListener 'native.keyboardshow', -> $('.main-content').css 'height', window.innerHeight window.addEventListener 'native.keyboard...
Fix view reize based on keyboard
Fix view reize based on keyboard
CoffeeScript
mit
lucasgolino/Rocket.Chat,Sing-Li/Rocket.Chat,TribeMedia/Rocket.Chat,lonbaker/Rocket.Chat,celloudiallo/Rocket.Chat,jonathanhartman/Rocket.Chat,k0nsl/Rocket.Chat,mrinaldhar/Rocket.Chat,lucasgolino/Rocket.Chat,mrinaldhar/Rocket.Chat,capensisma/Rocket.Chat,liuliming2008/Rocket.Chat,Deepakkothandan/Rocket.Chat,ggazzo/Rocket....
d6cf8b441eb9c4de0631af747b3fc82f83d6934d
src/coffee/locale.coffee
src/coffee/locale.coffee
class @Locale constructor: -> # @param dialoguesFilename [String] path of the JSON file containing all the localized dialogue lines loadDialogueLines: (dialoguesFilename) => $.getJSON(dialoguesFilename, @buildDialogueLines) .done(-> console.log "[LOAD] Loaded localized dialogue lines") .fail(-> ...
class @Locale constructor: -> # @param dialoguesFilename [String] path of the JSON file containing all the localized dialogue lines loadDialogueLines: (dialoguesFilename) => $.getJSON(dialoguesFilename, @buildDialogueLines) .done(-> console.log "[LOAD] Loaded localized dialogue lines") .fail(-> ...
Throw error on line not found
[LOCALE] Throw error on line not found
CoffeeScript
mit
hsandt/hacker,hsandt/hacker,hsandt/hacker
d9d1d6c00d95d5431ce41cef465fb31413173ab5
atom.symlink/config.cson
atom.symlink/config.cson
"*": core: disabledPackages: [ "background-tips" "exception-reporting" "metrics" ] followSymlinks: false hideGitIgnoredFiles: true ignoredNames: [ ".bundle" ".git" "log" "repositories" "tmp" "vendor" ] themes: [ "unity-ui" "...
"*": core: disabledPackages: [ "background-tips" "exception-reporting" "metrics" ] followSymlinks: false hideGitIgnoredFiles: true ignoredNames: [ ".bundle" ".git" "log" "repositories" "tmp" "vendor" ] themes: [ "unity-ui" "...
Fix path to my more typical username - aross
Fix path to my more typical username - aross
CoffeeScript
mit
grayside/dotfiles,grayside/dotfiles
13a50f19d4e2a85346b7cd462379390f8fd563a9
lib/go-back-view.coffee
lib/go-back-view.coffee
SymbolsView = require './symbols-view' module.exports = class GoBackView extends SymbolsView toggle: => return if @stack.length is 0 top = @stack.pop() atom.workspaceView.open(top.file).done => @moveToPosition(top.position, false) if top.position
SymbolsView = require './symbols-view' module.exports = class GoBackView extends SymbolsView toggle: -> previousTag = @stack.pop() return unless previousTag? atom.workspaceView.open(previousTag.file).done => @moveToPosition(previousTag.position, false) if previousTag.position
Return early when popped stack is empty
Return early when popped stack is empty
CoffeeScript
mit
atom/symbols-view,kainwinterheart/symbols-view,spencerlyon2/symbols-view,harai/atom-gnu-global,spencerlyon2/symbols-view,rodumani/symbols-view,changjej/symbols-view,harai/atom-gnu-global,rodumani/symbols-view,changjej/symbols-view
96d53ccfb05b23f8fe091d9b4617de4db4df7ade
app/assets/javascripts/e_tahi.js.coffee
app/assets/javascripts/e_tahi.js.coffee
#= require ./element_animations #= require ./store #= require ./event_stream_actions #= require_tree ./mixins #= require_tree ./models # #= require ./controllers/task_controller #= require_tree ./controllers # #= require ./views/overlays/overlay #= require_tree ./views/forms #= require_tree ./views # #= require_tree ./...
#= require ./element_animations #= require ./store #= require ./event_stream_actions #= require_tree ./mixins #= require ./serializers/application_serializer #= require_tree ./serializers #= require_tree ./models # #= require ./controllers/task_controller #= require_tree ./controllers # #= require ./views/overlays/over...
Make sure application_serializer is always required first
Make sure application_serializer is always required first
CoffeeScript
mit
johan--/tahi,johan--/tahi,johan--/tahi,johan--/tahi
7d45b90b81b9d6db3fb8c0d78b1c80c081a55c9d
src/in-state-menu.coffee
src/in-state-menu.coffee
define [ 'phaser' 'underscore' 'app/helpers' ], (Phaser, _, Helpers) -> 'use strict' {Keyboard} = Phaser class InStateMenu constructor: (@textItems, @game, @options) -> @_initialize() _initialize: -> @group = @game.add.group() @overlay = @game.add.graphics 0, 0, @group ...
define [ 'phaser' 'underscore' 'app/helpers' ], (Phaser, _, Helpers) -> 'use strict' {Keyboard} = Phaser class InStateMenu constructor: (@textItems, game, options = {}) -> {@pauseHandler, @layout, @toggleKeyCode} = _.defaults options, layout: { y: 120, baseline: 40 } pauseHandl...
Refactor with destructuring and expand InStateMenu.
Refactor with destructuring and expand InStateMenu. A bit cleaner than storing a reference to the game instance. Adds a pauseHandler, which defaults to pausing the whole game (including menu interactions).
CoffeeScript
artistic-2.0
hlfcoding/morning-stroll
293521d8592c3d486a92a34f86c4852b6af3553e
MeteorNoops.coffee
MeteorNoops.coffee
if not Meteor.server console.log("spacejamio:cli - Meteor.server is not defined, creating noop implementations for all meteor ddp methods") _.each(['publish', 'methods', 'call', 'apply', 'onConnection'], (name) -> Meteor[name] = -> );
if not Meteor.server # Meteor.server is not defined, creating noop implementations for all meteor ddp methods _.each(['publish', 'methods', 'call', 'apply', 'onConnection'], (name) -> Meteor[name] = -> );
Remove console logging to not spam output
Remove console logging to not spam output
CoffeeScript
mit
practicalmeteor/meteor-mcli,practicalmeteor/meteor-mcli,practicalmeteor/meteor-mcli
ead6d3d20030ee659df457877e16b9dd8ff02603
app/assets/javascripts/partystreusel/readmore.js.coffee
app/assets/javascripts/partystreusel/readmore.js.coffee
#= require partystreusel/base class Readmore extends Partystreusel.Base @className = 'Readmore' constructor: (el) -> super @contentDiv = $('<div/>') .append(@$el.contents()) .addClass('hide') @$el.append(@contentDiv) return if @contentDiv.text().trim() == '' @button = @renderBut...
#= require partystreusel/base class Readmore extends Partystreusel.Base @className = 'Readmore' constructor: (el) -> super @contentDiv = $('<div/>') .append(@$el.contents()) .addClass('hide') @$el.append(@contentDiv) return if $.trim(@contentDiv.text()) == '' @button = @renderBu...
Use trim of jquery (trim does not exist in IE8)
Use trim of jquery (trim does not exist in IE8)
CoffeeScript
mit
brandleadership/partystreusel,brandleadership/partystreusel
dc553df358a711da66ddf32b9b56c9e470b45cfd
app/js/modules/tabs/Tabs.coffee
app/js/modules/tabs/Tabs.coffee
angular.module('app.modules.tabs', [ 'app.modules.tabs.items' 'app.modules.tabs.review' 'app.modules.tabs.menus' 'app.modules.tabs.settings' # 'app.components.tabs.share' # 'app.components.tabs.notify' ]) .config ($stateProvider, $urlRouterProvider) -> $stateProvider .state "tab", url: "/tab" ...
angular.module('app.modules.tabs', [ 'app.modules.tabs.items' 'app.modules.tabs.review' 'app.modules.tabs.menus' 'app.modules.tabs.settings' # 'app.components.tabs.share' # 'app.components.tabs.notify' ]) .config ($stateProvider, $urlRouterProvider) -> $stateProvider .state "tab", url: "/tab" ...
Fix typo in route name
Fix typo in route name
CoffeeScript
mit
Plateful/plateful-mobile,Plateful/plateful-mobile
1fee82304c75c28fa0821d3fd3806a1f3bda6260
js-library/app/js/views/prepare.coffee
js-library/app/js/views/prepare.coffee
class Factlink.Prepare constructor: -> @$el = $(Factlink.templates.create) @$el.appendTo Factlink.el @$el.hide() @$el.bind "mouseup", (e) -> e.stopPropagation() @$el.bind "mousedown", (e) -> e.preventDefault() @$el.bind "click", (e) => e.preventDefault() e.stopPropagation() ...
class Factlink.Prepare constructor: -> @$el = $(Factlink.templates.create) @$el.appendTo Factlink.el @$el.hide() @$el.bind "mouseup", (e) -> e.stopPropagation() @$el.bind "mousedown", (e) -> e.preventDefault() @$el.bind "click", (e) => e.preventDefault() e.stopPropagation() ...
Use default empty function per @markijbema's comment
Use default empty function per @markijbema's comment
CoffeeScript
mit
Factlink/factlink-core,daukantas/factlink-core,Factlink/factlink-core,daukantas/factlink-core,daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core
c644bfc29f1b2d21bed02a7c19c5c715439c5984
src/swag.numbers.coffee
src/swag.numbers.coffee
Handlebars.registerHelper 'toFixed', (number, digits) -> number.toFixed if Utils.isUndefined(digits) then digits Handlebars.registerHelper 'toPrecision', (number, precision) -> number.toPrecision if Utils.isUndefined(precision) then precision Handlebars.registerHelper 'toExponential', (number, fractions) -> ...
Handlebars.registerHelper 'toFixed', (number, digits) -> digits = 0 if Utils.isUndefined(digits) number.toFixed digits Handlebars.registerHelper 'toPrecision', (number, precision) -> precision = 1 if Utils.isUndefined(precision) number.toPrecision precision Handlebars.registerHelper 'toExponential', (...
Change default value of toFixed|toExponential|toPrecision methods
Change default value of toFixed|toExponential|toPrecision methods
CoffeeScript
mit
gcollazo/swag,cgvarela/swag,elving/swag,mjumbewu/swag
e62f8ec9e04067d092b9db2d5eb0dca241e1287e
lib/linter/coffeelint.coffee
lib/linter/coffeelint.coffee
{Range, Point} = require 'atom' CheckstyleBase = require './checkstyle-base' Violation = require '../violation' module.exports = class CoffeeLint extends CheckstyleBase buildCommand: -> command = [] userCoffeeLintPath = atom.config.get('atom-lint.coffeelint.path') if userCoffeeLintPath? command.p...
{Range, Point} = require 'atom' CheckstyleBase = require './checkstyle-base' Violation = require '../violation' module.exports = class CoffeeLint extends CheckstyleBase buildCommand: -> command = [] userCoffeeLintPath = atom.config.get('atom-lint.coffeelint.path') if userCoffeeLintPath? command.p...
Remove unnecessary context information in CoffeeLint's message
Remove unnecessary context information in CoffeeLint's message
CoffeeScript
mit
ahmetabdi/atom-lint,yujinakayama/atom-lint
0077aaf25542bf48feb436d93655d20e38157ed3
test/integration/free_trial.coffee
test/integration/free_trial.coffee
should = require 'should' {wd40, browser, base_url, login_url, home_url, prepIntegration} = require './helper' describe 'Free Trial', -> prepIntegration() before (done) -> wd40.fill '#username', 'free-trial-user', -> wd40.fill '#password', 'testing', -> wd40.click '#login', done before (done)...
should = require 'should' {wd40, browser, base_url, login_url, home_url, prepIntegration} = require './helper' describe 'Free Trial', -> prepIntegration() context 'when I log in as a free trial user', -> before (done) -> wd40.fill '#username', 'free-trial-user', -> wd40.fill '#password', 'testin...
Add context section so well-formed test
Add context section so well-formed test
CoffeeScript
agpl-3.0
scraperwiki/custard,scraperwiki/custard,scraperwiki/custard
24676b945ba83bfe4e099888bfc7df4893818d53
client/src/common/config/routes.coffee
client/src/common/config/routes.coffee
angular.module 'Scrumble.common' .config ($stateProvider) -> $stateProvider .state 'tab', abstract: true templateUrl: 'common/states/base.html' controller: 'BaseCtrl' resolve: sprint: ($state, Sprint) -> Sprint.getActiveSprint().catch (err) -> return project: ($state, Project) ->...
angular.module 'Scrumble.common' .config ($stateProvider) -> $stateProvider .state 'tab', abstract: true templateUrl: 'common/states/base.html' controller: 'BaseCtrl' resolve: sprint: ($state, Sprint) -> Sprint.getActiveSprint().catch (err) -> return project: ($state, Project) ->...
Migrate projects from single doing column to array of doing columns
Migrate projects from single doing column to array of doing columns
CoffeeScript
mit
theodo/scrumble,theodo/scrumble,theodo/scrumble
91a2758f6a121ddc8d905cd9c4a75e68cb425940
src/angularD3/services/d3service.coffee
src/angularD3/services/d3service.coffee
angular.module('ad3').provider 'd3Service', () -> defaults = @defaults = {} @$get = ['$cacheFactory', '$rootScope', ($cacheFactory, $rootScope) -> cache = defaults.cache or $cacheFactory('d3Service') csv: (src, columns) -> results = cache.get(src) return results if results cache.put(src,...
angular.module('ad3').provider 'd3Service', () -> defaults = @defaults = {} @$get = ['$cacheFactory', '$rootScope', ($cacheFactory, $rootScope) -> cache = defaults.cache or $cacheFactory('d3Service') csv: (src, columns) -> results = cache.get(src) return results if results cache.put(src,...
Clear data from cache on error
Clear data from cache on error This is similar to what is done for the $http service.
CoffeeScript
mit
WealthBar/angular-d3,WealthBar/angular-d3,xc145214/angular-d3,xc145214/angular-d3
e50d0074a458baef73181a4c02e122cd45593773
SingularityUI/app/initialize.coffee
SingularityUI/app/initialize.coffee
window.env = require 'env' window.utils = require 'utils' window.constants = require 'constants' window.app = require 'application' # Make all string methods available on _ _.mixin _.string.exports() # Set Vex default className vex.defaultOptions.className = 'vex-theme-default' # Patch jQuery ajax to always use xhrF...
window.env = require 'env' window.utils = require 'utils' window.constants = require 'constants' window.app = require 'application' # Make all string methods available on _ _.mixin _.string.exports() # Set Vex default className vex.defaultOptions.className = 'vex-theme-default' # Patch jQuery ajax to always use xhrF...
Configure moment().calender() to be used as an alternative to moment().from()
Configure moment().calender() to be used as an alternative to moment().from()
CoffeeScript
apache-2.0
HubSpot/Singularity,grepsr/Singularity,evertrue/Singularity,calebTomlinson/Singularity,tejasmanohar/Singularity,nvoron23/Singularity,evertrue/Singularity,HubSpot/Singularity,stevenschlansker/Singularity,tejasmanohar/Singularity,hs-jenkins-bot/Singularity,mjball/Singularity,acbellini/Singularity,mjball/Singularity,steve...
72cb28527f5d7adf1995e4c9f52393f51ded9fde
lib/views/pull-branch-list-view.coffee
lib/views/pull-branch-list-view.coffee
git = require '../git' OutputView = require './output-view' BranchListView = require './branch-list-view' module.exports = # Extension of BranchListView # Takes the name of the remote to pull from class PullBranchListView extends BranchListView initialize: (@repo, @data, @remote) -> super confirme...
git = require '../git' OutputView = require './output-view' BranchListView = require './branch-list-view' module.exports = # Extension of BranchListView # Takes the name of the remote to pull from class PullBranchListView extends BranchListView initialize: (@repo, @data, @remote) -> super confirme...
Use `git pull` instead of fetch + merge.
Use `git pull` instead of fetch + merge.
CoffeeScript
mit
akonwi/git-plus,akonwi/git-plus
3fa0b478e6f7a7e94ea472aaf14a364ae925a139
app/assets/javascripts/sharing_tags/share/base.js.coffee
app/assets/javascripts/sharing_tags/share/base.js.coffee
class @SharingTags.BaseShare url: null title: null description: null constructor: ({@url, @title, @description})-> @_assert_vars 'url' _open_popup: (api_url, params)-> share_url = if params then "#{api_url}?#{$.param(params)}" else api_url share_window = window.open share_url, 'Share Dialog', '...
class @SharingTags.BaseShare url: null title: null description: null constructor: ({@url, @title, @description})-> @_assert_vars 'url' _open_popup: (api_url, params)-> share_url = if params then "#{api_url}?#{$.param(params)}" else api_url share_window = window.open share_url, 'Share Dialog', '...
Add before sharing callback for facebook
Add before sharing callback for facebook
CoffeeScript
mit
Kr00lIX/sharing_tags,Kr00lIX/sharing_tags,Kr00lIX/sharing_tags
d187d6688b2cd32344616c3da341beda42882f21
spec/StateToColor.coffee
spec/StateToColor.coffee
noflo = require 'noflo' chai = require 'chai' unless chai StateToColor = require '../components/StateToColor.coffee' fs = require 'fs' path = require 'path' describe 'StateToColor component', -> c = null state = null color = null portalConfig = null beforeEach -> c = StateToColor.getComponent() porta...
noflo = require 'noflo' chai = require 'chai' unless chai StateToColor = require '../components/StateToColor.coffee' fs = require 'fs' path = require 'path' describe 'StateToColor component', -> c = null state = null color = null portalConfig = null beforeEach -> c = StateToColor.getComponent() porta...
Stop blinking after each test
Stop blinking after each test
CoffeeScript
mit
c-base/ingress-table,c-base/ingress-table,c-base/ingress-table,c-base/ingress-table
855f6f4c20f72f69d0f8c47137762de75dfa7699
spec/markdown-preview-view-spec.coffee
spec/markdown-preview-view-spec.coffee
MarkdownPreviewView = require 'markdown-preview/lib/markdown-preview-view' $ = require 'jquery' {$$$} = require 'space-pen' describe "MarkdownPreviewView", -> [buffer, preview] = [] beforeEach -> project.setPath(project.resolve('markdown')) buffer = project.bufferForPath('file.markdown') preview = new...
MarkdownPreviewView = require 'markdown-preview/lib/markdown-preview-view' $ = require 'jquery' {$$$} = require 'space-pen' describe "MarkdownPreviewView", -> [buffer, preview] = [] beforeEach -> project.setPath(project.resolve('markdown')) buffer = project.bufferForPath('file.markdown') preview = new...
Transform specs to something useful
Transform specs to something useful
CoffeeScript
mit
makyo/markdown-preview,danielgtaylor/atom-api-blueprint-preview,tkssharma/markdown-preview,grimmer0125/markdown-preview-kramdown,sctlee/markdown-preview,atom/markdown-preview,ArnaudRinquin/markdown-preview,rugk/markdown-preview,Galadirith/markdown-preview
4b6903b91850cf9a2a056cb68dac014ea0738b03
lib/rubocop-auto-correct.coffee
lib/rubocop-auto-correct.coffee
{BufferedProcess, CompositeDisposable} = require 'atom' path = require 'path' module.exports = class RubocopAutoCorrect constructor: -> @subscriptions = new CompositeDisposable @subscriptions.add atom.commands.add 'atom-workspace', 'rubocop-auto-correct:current-file': => if editor = atom.worksp...
{BufferedProcess, CompositeDisposable} = require 'atom' path = require 'path' module.exports = class RubocopAutoCorrect constructor: -> @subscriptions = new CompositeDisposable @subscriptions.add atom.workspace.observeTextEditors (editor) => if editor.getGrammar().scopeName == "source.ruby" @ha...
Add subscription handleEvent when buffer.onDidSave
Add subscription handleEvent when buffer.onDidSave
CoffeeScript
mit
tomoya/rubocop-auto-correct
625a4ddc840994ded5dd96d3643be8d6da0baeb8
tapestry-core/src/test/coffeescript/org/apache/tapestry5/integration/app1/pages/test-pubsub.coffee
tapestry-core/src/test/coffeescript/org/apache/tapestry5/integration/app1/pages/test-pubsub.coffee
module "PubSub" require ["core/pubsub"], (pubsub) -> test "export aliases", -> ok pubsub.on is pubsub.respondTo, "on and respondTo" ok pubsub.off is pubsub.stopResponding, "off and stopResponding" test "simple on/fire", -> memoValue = null expectedMemo = "expected" pubsub.on "stim", (memo)...
module "PubSub" require ["core/pubsub"], (pubsub) -> test "export aliases", -> ok pubsub.on is pubsub.respondTo, "on and respondTo" ok pubsub.off is pubsub.stopResponding, "off and stopResponding" test "simple on/fire", -> memoValue = null expectedMemo = "expected" pubsub.on "stim", (memo)...
Add test for removing a specific responder
Add test for removing a specific responder
CoffeeScript
apache-2.0
apache/tapestry-5,apache/tapestry-5,apache/tapestry-5,apache/tapestry-5,apache/tapestry-5
de9563a17c7c360929751e5d07f96d09d69e69c6
atom.symlink/config.cson
atom.symlink/config.cson
"*": editor: fontFamily: "Menlo" showIndentGuide: true tabLength: 2 invisibles: {} preferredLineLength: 120 softWrap: true fontSize: 14 core: ignoredNames: [ ".bundle" ".git" "log" "repositories" "tmp" "vendor" ] disabledPackages: [ "...
"*": editor: fontFamily: "Menlo" showIndentGuide: true tabLength: 2 invisibles: {} preferredLineLength: 120 softWrap: true core: ignoredNames: [ ".bundle" ".git" "log" "repositories" "tmp" "vendor" ] disabledPackages: [ "background-tips" ...
Add atom ctags for Ruby.
Add atom ctags for Ruby.
CoffeeScript
mit
shipstar/dotfiles,shipstar/dotfiles
dc0c47ea6e853116d8e6eae225e1c3af593b9b6a
lib/dev-mode-view.coffee
lib/dev-mode-view.coffee
{View} = require 'atom' module.exports = class DevModeView extends View @content: -> @span class: 'inline-block icon icon-color-mode text-error'
{View} = require 'atom' module.exports = class DevModeView extends View @content: -> @span class: 'inline-block icon icon-color-mode text-error' initialize: -> @setTooltip('This window is in dev mode.')
Add tooltip to dev mode view
Add tooltip to dev mode view
CoffeeScript
mit
TShapinsky/status-bar,pombredanne/status-bar,mertkahyaoglu/status-bar,Abdillah/status-bar,devoncarew/status-bar,ali/status-bar
cf4cad4cbd1ccca85202815ead5849525f45d8c6
src/flux/errors.coffee
src/flux/errors.coffee
# This file contains custom Nylas error classes. # # In general I think these should be created as sparingly as possible. # Only add one if you really can't use native `new Error("my msg")` # A wrapper around the three arguments we get back from node's `request` # method. We wrap it in an error object because Promise...
# This file contains custom Nylas error classes. # # In general I think these should be created as sparingly as possible. # Only add one if you really can't use native `new Error("my msg")` # A wrapper around the three arguments we get back from node's `request` # method. We wrap it in an error object because Promise...
Fix retrieval of `error` field, used for endpoint updates
fix(api-error): Fix retrieval of `error` field, used for endpoint updates
CoffeeScript
mit
nylas/nylas-mail,nirmit/nylas-mail,nirmit/nylas-mail,simonft/nylas-mail,nylas/nylas-mail,simonft/nylas-mail,nylas-mail-lives/nylas-mail,nylas-mail-lives/nylas-mail,nylas-mail-lives/nylas-mail,nirmit/nylas-mail,nylas/nylas-mail,nylas/nylas-mail,simonft/nylas-mail,nirmit/nylas-mail,simonft/nylas-mail,nirmit/nylas-mail,ny...
1a7121bfa83a7c4d71b6ac4facd622bf4843dc07
spec/buffer-modifying-provider-spec.coffee
spec/buffer-modifying-provider-spec.coffee
describe 'buffer modifying linters', -> getModuleMain = -> atom.packages.getActivePackage('linter').mainModule.instance beforeEach -> waitsForPromise -> atom.packages.activatePackage('linter') waitsForPromise -> atom.workspace.open('test.txt') it 'is triggered before other linters', -> lin...
describe 'buffer modifying linters', -> getModuleMain = -> atom.packages.getActivePackage('linter').mainModule.instance beforeEach -> waitsForPromise -> atom.packages.activatePackage('linter') waitsForPromise -> atom.workspace.open('test.txt') it 'is triggered before other linters', -> lin...
Add test for multiple bufferModifying linters
:new: Add test for multiple bufferModifying linters
CoffeeScript
mit
kaeluka/linter,iam4x/linter,atom-community/linter,levity/linter,shawninder/linter,blakeembrey/linter,UltCombo/linter,elkeis/linter,DanPurdy/linter,JohnMurga/linter,AsaAyers/linter,mdgriffith/linter,steelbrain/linter,e-jigsaw/Linter,AtomLinter/Linter,Arcanemagus/linter
ae2a547826ed5cf562a7997a4f7f95561a342d70
app/assets/javascripts/multi_shipping_address/same_as_billing/copy_bill_to_ship.js.coffee
app/assets/javascripts/multi_shipping_address/same_as_billing/copy_bill_to_ship.js.coffee
window.MultiShippingAddress ||= {} $.extend(MultiShippingAddress, { SameAsBilling: {} }) class MultiShippingAddress.SameAsBilling.CopyBillToShip constructor: (@$form) -> @findShippingAddresses() @bindForm() @bindCountrySelects() billAddress: null shippingAddresses: [] getName: ($input) -> $in...
window.MultiShippingAddress ||= {} $.extend(MultiShippingAddress, { SameAsBilling: {} }) class MultiShippingAddress.SameAsBilling.CopyBillToShip constructor: (@$form) -> @findShippingAddresses() @bindCountrySelects() @getBillAddress() @copyBillAddress() @bindForm() billAddress: null shipping...
Copy bill address to shipping address when the checkout address page loads
Copy bill address to shipping address when the checkout address page loads
CoffeeScript
bsd-3-clause
crowdint/spree_random_subscriptions,crowdint/spree_random_subscriptions
6941f8e10c5072101d694ca5deec5acea8adbdcd
app/assets/javascripts/events.js.coffee
app/assets/javascripts/events.js.coffee
class window.Event @CLASSES: ['Board', 'Swimlane', 'Column', 'Story'] constructor: (object, type) -> for klass in Event.CLASSES if object instanceof window[klass] or object[klass.toLowerCase()]? window["#{klass}Event"]? && new window["#{klass}Event"](object, type) class window.EventConstructor e...
class window.Event @CLASSES: ['Board', 'Swimlane', 'Column', 'Story'] constructor: (object, type) -> for klass in Event.CLASSES if object instanceof window[klass] or object[klass.toLowerCase()]? window["#{klass}Event"]? && new window["#{klass}Event"](object, type) class window.EventConstructor e...
Add Column.update_quantities to "published" observer
Add Column.update_quantities to "published" observer
CoffeeScript
mit
JohnBernas/flow
a7b09a1959c8ae0c09499fb4aa7495c70b80e23c
models/game_point.coffee
models/game_point.coffee
# modules Sequelize = require 'sequelize' db = require './db' Point = require './point' Game = require './game' # def model GamePoint = db.orm.define 'GamePoint', energy: Sequelize.INTEGER type: Sequelize.STRING 10 side: type: Sequelize.VIRTUAL get: -> return 'NEUTRAL' if this.e...
# modules Sequelize = require 'sequelize' db = require './db' Point = require './point' Game = require './game' constants = require '../config/constants' # def model GamePoint = db.orm.define 'GamePoint', energy: Sequelize.INTEGER type: Sequelize.STRING 10 side: type: Sequelize.VIRTUAL get...
Add remaining time in game point
Add remaining time in game point
CoffeeScript
lgpl-2.1
AlsaceDigitale/straliens-server
35168ae09a19c9f0c3a0c4556e9b7acc2f6ba3b6
app/assets/javascripts/date_picker.coffee
app/assets/javascripts/date_picker.coffee
window.DatePickerView = class DatePickerView extends Uniform @::counter = 0 elements: (add) -> add('select', 'select') events: (add) -> add('.input-date', 'changeDate', (el, e) -> @update_select_values(el)) init: -> super @select.hide() @insert_date_input() date_input = -> $ """ ...
window.DatePickerView = class DatePickerView extends Uniform @::counter = 0 elements: (add) -> add('select', 'select') events: (add) -> add('.input-date', 'changeDate', (el, e) -> @update_select_values(el)) init: -> super @select.hide() @insert_date_input() date_input = -> $ """ ...
Set input value to default rails date
Set input value to default rails date
CoffeeScript
mit
madetech/ydtd-frontend,madetech/ydtd-frontend
150dbda6af9d7678d8baeeca5d1f053fccd14c5c
app/scripts/viewmodels/drawings/node_canvas_element.coffee
app/scripts/viewmodels/drawings/node_canvas_element.coffee
define [ 'viewmodels/drawings/canvas_element' 'viewmodels/drawings/stencils/stencil_factory' 'models/commands/delete_node' 'models/commands/composite_command' 'models/commands/move_node' ], (CanvasElement, StencilFactory, DeleteNode, CompositeCommand, MoveNode) -> class NodeCanvasElement extends CanvasElem...
define [ 'viewmodels/drawings/canvas_element' 'viewmodels/drawings/stencils/stencil_factory' 'models/commands/delete_node' 'models/commands/composite_command' 'models/commands/move_node' ], (CanvasElement, StencilFactory, DeleteNode, CompositeCommand, MoveNode) -> class NodeCanvasElement extends CanvasElem...
Refactor NodeCanvasElement: use brackets for clarity.
Refactor NodeCanvasElement: use brackets for clarity.
CoffeeScript
epl-1.0
louismrose/eugenia-live,louismrose/eugenia-live
a6d657677901829c1c267244c2a0185aad53ee4a
lib/mixins/decoration-management.coffee
lib/mixins/decoration-management.coffee
Mixin = require 'mixto' module.exports = class DecorationManagement extends Mixin decorateMarker: (marker, options={}) ->
Mixin = require 'mixto' Decoration = require atom.config.resourcePath + '/src/decoration' module.exports = class DecorationManagement extends Mixin initializeDecorations: -> @decorationsById = {} @decorationsByMarkerId = {} @decorationMarkerChangedSubscriptions = {} @decorationMarkerDestroyedSubscrip...
Add a mixing to offer the same API for decorations as editors
Add a mixing to offer the same API for decorations as editors
CoffeeScript
mit
xndcn/atom-minimap,atom-minimap/minimap
5c6371289796de641f12d964733b4766cdd29f8c
scripts/crashlytics-notifications.coffee
scripts/crashlytics-notifications.coffee
# Notifies about Crashlytics crashes via a Crashlytics web hook # # Dependencies: # "url": "" # "querystring": "" # # Configuration: # Just put this url <HUBOT_URL>:<PORT>/hubot/jenkins-notify?room=<room> to your Jenkins # Notification config. See here: https://wiki.jenkins-ci.org/display/JENKINS/Notification+P...
# Notifies about Crashlytics crashes via a Crashlytics web hook # # Dependencies: # "url": "" # "querystring": "" # # Configuration: # Just put this url <HUBOT_URL>:<PORT>/hubot/jenkins-notify?room=<room> to your Jenkins # Notification config. See here: https://wiki.jenkins-ci.org/display/JENKINS/Notification+P...
Add more logging since we don't seem to be getting issue events
Add more logging since we don't seem to be getting issue events
CoffeeScript
mit
brandnetworks/our-product-slack-hubot
1335887499d0e09529f248d587c3bb0239e1565a
src/command.coffee
src/command.coffee
child_process = require 'child_process' module.exports = class Command spawn: (command, args, remaining...) -> options = remaining.shift() if remaining.length >= 2 callback = remaining.shift() spawned = child_process.spawn(command, args, options) errorChunks = [] outputChunks = [] spawned.s...
child_process = require 'child_process' module.exports = class Command spawn: (command, args, remaining...) -> options = remaining.shift() if remaining.length >= 2 callback = remaining.shift() spawned = child_process.spawn(command, args, options) errorChunks = [] outputChunks = [] spawned.s...
Revert "Add --atom-child_process-fork if running from Atom Helper"
Revert "Add --atom-child_process-fork if running from Atom Helper" This reverts commit 5729b05df07d7c3de6d95ea65af4c25942c1a286.
CoffeeScript
mit
gutsy/apm,gutsy/apm,ethanp/apm,Nikpolik/apm,bronson/apm,fscherwi/apm,pusateri/apm,bronson/apm,pusateri/apm,ethanp/apm,VandeurenGlenn/apm,atom/apm,ethanp/apm,AtaraxiaEta/apm,atom/apm,VandeurenGlenn/apm,AtaraxiaEta/apm,bronson/apm,bronson/apm,bcoe/apm,gutsy/apm,pusateri/apm,bcoe/apm,AtaraxiaEta/apm,jlord/apm,jlord/apm,bc...
aaad067042855188bf57650e9f8935f0c11d9282
src/cute-me.coffee
src/cute-me.coffee
# Description: # Cute me is a way to get pictures of cute things # # Dependencies: # None # # Configuration: # None # # Commands: # hubot cute me - Receive a cute thing # unicorn chaser - Receieve a cute thing module.exports = (robot) -> robot.respond /cute me/, (msg) -> cuteMe(msg) robot.hear /unico...
# Description: # Cute me is a way to get pictures of cute things # # Dependencies: # None # # Configuration: # None # # Commands: # hubot cute me - Receive a cute thing # unicorn chaser - Receieve a cute thing module.exports = (robot) -> robot.respond /cute me/, (msg) -> cuteMe(msg) robot.hear /unico...
Drop dailycute.net, add reddit /r/aww
Drop dailycute.net, add reddit /r/aww Dailycute was returning malformed urls, hacked in pulling from reddit instead. Tacking .png on the end to force all images to display inline. This does lead to some url weirdness, but it loads fine. ![Example](http://i.imgur.com/MRw2hBj.png)
CoffeeScript
mit
hubot-scripts/hubot-cute-me
578a6c5dde3257061b88ce3e68b614612c2a681e
src/css.coffee
src/css.coffee
exports.addStyle = (css) -> styleSheet = document.createElement "style" styleSheet.innerHTML = css document.head.appendChild styleSheet exports.addStyle " .framer { display: block; visibility: visible; position: absolute; top:auto; right:auto; bottom:auto; left:auto; width:auto; height:auto; overflow: vi...
exports.addStyle = (css) -> styleSheet = document.createElement "style" styleSheet.innerHTML = css document.head.appendChild styleSheet exports.addStyle " .framer { display: block; visibility: visible; position: absolute; top:auto; right:auto; bottom:auto; left:auto; width:auto; height:auto; overflow: vi...
Remove backside visibility by default, it was giving blurry output on Safari
Remove backside visibility by default, it was giving blurry output on Safari
CoffeeScript
mit
koenbok/Framer,DNESS/Framer,qezt/Framer,mattsjohnston/Framer,awt2542/Framer,irwansyahwii/Framer,irwansyahwii/Framer,DNESS/Framer,qezt/Framer,qezt/Framer,tisho/Framer,WestonThayer/Framer,jchavarri/Framer,mattsjohnston/Framer,jchavarri/Framer,calebduren/Framer,koenbok/Framer,WestonThayer/Framer,WestonThayer/Framer,tisho/...
586c47dbe6d712573b749eaf189989118760662b
app/assets/javascripts/tags.js.coffee
app/assets/javascripts/tags.js.coffee
$ -> $("div.tag-form li.cancel a").click -> $("div.tags").show() $("div.tag-form").hide() return $("a[rel='edit-tags']").click -> $("div.tags").hide() $("div.tag-form").show() return $("form.edit-tags").on "ajax:success", (event) -> data = event.detail[0]; $("div.tags-panel").rep...
$ -> setupTags = -> $("div.tag-form").hide() $("div.tag-form li.cancel a").click -> $("div.tags").show() $("div.tag-form").hide() return $("a[rel='edit-tags']").click -> $("div.tags").hide() $("div.tag-form").show() return $("form.edit-tags").on "ajax:success", (e...
Fix updating tags multiple times
Fix updating tags multiple times After replacing the HTML we need to re-add all the click handelers etc.
CoffeeScript
mit
cyclestreets/cyclescape,cyclestreets/cyclescape,cyclestreets/cyclescape
9080b53257f102873af89789229d06ff11fb7511
keymaps/autocomplete.cson
keymaps/autocomplete.cson
'.editor': 'ctrl-space': 'autocomplete:toggle' '.autocomplete .mini.editor': 'enter': 'core:confirm' 'tab': 'core:confirm'
'atom-text-editor': 'ctrl-space': 'autocomplete:toggle' '.autocomplete atom-text-editor[mini]': 'enter': 'core:confirm' 'tab': 'core:confirm'
Fix deprecated selectors in keymap
Fix deprecated selectors in keymap
CoffeeScript
mit
atom-archive/autocomplete,atom/autocomplete
100a5a75d1a6dc8319a85955dc5189553c24058f
index.coffee
index.coffee
fs = require 'fs' path = require 'path' temp = require 'temp' _ = require 'underscore' temp.track() module.exports = (grunt) -> grunt.registerTask 'create-windows-installer', 'Create the Windows installer', -> @requiresConfig("#{@name}.appDirectory") done = @async() {appDirectory, outputDirectory} = @...
fs = require 'fs' path = require 'path' temp = require 'temp' _ = require 'underscore' temp.track() module.exports = (grunt) -> grunt.registerTask 'create-windows-installer', 'Create the Windows installer', -> @requiresConfig("#{@name}.appDirectory") done = @async() {appDirectory, outputDirectory} = g...
Use config for directory paths
Use config for directory paths
CoffeeScript
apache-2.0
coderhaoxin/grunt-electron-installer,mongodb-js/electron-installer-squirrel-windows,electronjs/windows-installer,domderen/atom-shell-installer,domderen/atom-shell-installer
04c8f3d8579d2a71f7354cafec95793edf1590db
app/assets/javascripts/custom.js.coffee
app/assets/javascripts/custom.js.coffee
$ -> # Refresh if a page is loaded directly pageLoad() # Refresh if a page is loaded via turbolinks $(document).on "page:load", pageLoad pageLoad = -> # Steps to do on a page load (with turbolinks) # Refresh all ratings on the current page refreshRatings() # Refresh for the new event divs that...
$ -> # Refresh if a page is loaded directly pageLoad() # Refresh if a page is loaded via turbolinks $(document).on "page:load", pageLoad pageLoad = -> # Steps to do on a page load (with turbolinks) # Refresh all ratings on the current page refreshRatings() # Refresh for the new event divs that...
Refresh all ratings on successful event reaction update.
Refresh all ratings on successful event reaction update. Closes #7
CoffeeScript
mit
matthew-parlette/rak,matthew-parlette/rak
2f07c34a81bf2a59336a79059ff8dedd0b2c130c
src/scripts/models/search-results.coffee
src/scripts/models/search-results.coffee
define (require) -> Backbone = require('backbone') SEARCH_URI = "#{location.protocol}//#{location.hostname}:6543/search" return class SearchResults extends Backbone.Model url: () -> "#{SEARCH_URI}#{@query}" defaults: query: limits: [] sort: [] results: items: [] ...
define (require) -> Backbone = require('backbone') SEARCH_URI = "#{location.protocol}//#{location.hostname}:6543/search" return class SearchResults extends Backbone.Model url: () -> "#{SEARCH_URI}#{@query}" defaults: query: limits: [] sort: [] results: items: [] ...
Set loaded attr to true after fetching results
Set loaded attr to true after fetching results
CoffeeScript
agpl-3.0
Connexions/webview,Connexions/webview,katalysteducation/webview,Connexions/webview,dak/webview,carolinelane10/webview,dak/webview,katalysteducation/webview,dak/webview,katalysteducation/webview,Connexions/webview,katalysteducation/webview
3d6d316f217b9b8a991596031992a0d58f0b7c3a
lib/FreshdeskBinding.coffee
lib/FreshdeskBinding.coffee
_ = require "underscore" errors = require "../helper/errors" Binding = require "../core/lib/Binding" BasicAuthentication = require "../core/lib/Authentication/BasicAuthentication" class FreshdeskBinding extends Binding constructor: (options) -> _.defaults options, api: "Freshdesk" super request: (op...
_ = require "underscore" errors = require "../helper/errors" Binding = require "../core/lib/Binding" BasicAuthentication = require "../core/lib/Authentication/BasicAuthentication" class FreshdeskBinding extends Binding constructor: (options) -> _.defaults options, api: "Freshdesk" super request: (op...
Fix the Unwrap node exception
Fix the Unwrap node exception
CoffeeScript
apache-2.0
spirehq/freshdesk-workflows,fixin-platform/freshdesk-workflows,skgcorp/freshdesk-workflows
18b9894ca7e44cc829c48cc9dec2620c0d2efee0
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 class: 'package-keymap', => @div class: 'section-heading package-keymap-heading icon icon-keyboard', 'Keybindings' @table outlet: 'keymapT...
{$$, $$$, _, View} = require 'atom' # Displays the keybindings for a package namespace module.exports = class PackageKeymapView extends View @content: -> @section class: 'package-keymap', => @div class: 'section-heading package-keymap-heading icon icon-keyboard', 'Keybindings' @table outlet: 'keymapT...
Add native-key-bindings class to table
Add native-key-bindings class to table
CoffeeScript
mit
atom/settings-view
77f58bbfc778730de4055e050fd40d2ce46d0439
lib/langs/perl-beautify.coffee
lib/langs/perl-beautify.coffee
### // Requires [perltidy](http://perltidy.sourceforge.net) ### "use strict" getCmd = (inputPath, outputPath, options) -> # console.debug "[perl-beautify] options: " + JSON.stringify(options) args = [ '"' + options.perltidy_path + '"' '--standard-output' '--standard-error-output' '--quiet' ] i...
### // Requires [perltidy](http://perltidy.sourceforge.net) ### "use strict" getCmd = (inputPath, outputPath, options) -> # console.debug "[perl-beautify] options: " + JSON.stringify(options) if not options.perltidy_path? return new Error("'Perl Perltidy Path' not set!" + " Please set this in the Atom B...
Throw error if trying to beautify Perl without setting Perl Tidy path
Throw error if trying to beautify Perl without setting Perl Tidy path See #138, #33.
CoffeeScript
mit
chrisswk/atom-beautify,thedadams/atom-beautify,basarat/atom-beautify,basarat/atom-beautify,mnquintana/atom-beautify,basarat/atom-beautify,thedadams/atom-beautify,Taylan9/atom-beautify,Asp1d/atom-beautify,fscherwi/atom-beautify,Taylan9/atom-beautify,mnquintana/atom-beautify,danielbayley/atom-beautify,janmolnar/atom-beau...
959c04eb3c4b96b35dcd2c6c8526f23b279ea6d1
app/assets/javascripts/controllers/toolbar.js.coffee
app/assets/javascripts/controllers/toolbar.js.coffee
Wheelmap.ToolbarController = Ember.Controller.extend needs: 'map' statusFilters: ['yes', 'limited', 'no', 'unknown'] map: Ember.computed.alias('controllers.map') _extraFilter: false # Flag for executing special status filter behavior only once actions: toggleFilter: (wheelchair)-> statusFilters = @...
Wheelmap.ToolbarController = Ember.Controller.extend needs: 'map' statusFilters: ['yes', 'limited', 'no', 'unknown'] map: Ember.computed.alias('controllers.map') _extraFilter: false # Flag for executing special status filter behavior only once init: ()-> @_super() if $.cookie('last_status_filters') ...
Add cookie storge for saving status filter over multiple sessions.
Add cookie storge for saving status filter over multiple sessions.
CoffeeScript
agpl-3.0
sozialhelden/wheelmap,sozialhelden/wheelmap,sozialhelden/wheelmap,sozialhelden/wheelmap,sozialhelden/wheelmap
d9f5d0018f3035f2e1c386cbc745a828a45ef022
src/trix/views/image_attachment_view.coffee
src/trix/views/image_attachment_view.coffee
#= require trix/views/attachment_view class Trix.ImageAttachmentView extends Trix.AttachmentView render: -> @image = document.createElement("img") @loadFile() if @attachment.isPending() @updateAttributes() @image loadFile: -> reader = new FileReader reader.onload = (event) => if @att...
#= require trix/views/attachment_view #= require trix/lib/helpers {defer} = Trix.Helpers class Trix.ImageAttachmentView extends Trix.AttachmentView render: -> @image = document.createElement("img") @loadFile() if @attachment.isPending() @updateAttributes() @image loadFile: -> reader = new Fil...
Fix image sizing in FF
Fix image sizing in FF
CoffeeScript
mit
ChenMichael/trix,urossmolnik/trix,basecamp/trix,basecamp/trix,urossmolnik/trix,GabiGrin/trix,basecamp/trix,GabiGrin/trix,ChenMichael/trix,ChenMichael/trix,urossmolnik/trix,GabiGrin/trix,basecamp/trix
86e92c25c988507c8bfa854ba58c3fadb1db42cf
spec/grammars-spec.coffee
spec/grammars-spec.coffee
CodeContext = require '../lib/code-context' grammarMap = require '../lib/grammars' describe 'grammarMap', -> beforeEach -> @codeContext = new CodeContext('test.txt', '/tmp/test.txt', null) # TODO: Test using an actual editor or a selection? @dummyTextSource = {} @dummyTextSource.getText = -> "" it...
CodeContext = require '../lib/code-context' grammarMap = require '../lib/grammars' describe 'grammarMap', -> beforeEach -> @codeContext = new CodeContext('test.txt', '/tmp/test.txt', null) # TODO: Test using an actual editor or a selection? @dummyTextSource = {} @dummyTextSource.getText = -> "" it...
Use @ reference for codeContext
Use @ reference for codeContext
CoffeeScript
mit
anfedorov/atom-script,TomosBlack/atom-script,Calyhre/atom-script,jchannon/atom-script,rodionovd/atom-script,anfedorov/atom-script,jchannon/atom-script,anfedorov/atom-script,efatsi/atom-script,rodionovd/atom-script,jchannon/atom-script,jchannon/atom-script,anfedorov/atom-script,Calyhre/atom-script,jchannon/atom-script,e...
cdf68537202f35f2bb42c33088d33f18820169f0
app/assets/javascripts/lib/router.coffee
app/assets/javascripts/lib/router.coffee
class @Router extends Backbone.Router routes: "demand/:sidebar(/:slide)" : "demand" "costs/:sidebar(/:slide)" : "costs" "overview/:sidebar(/:slide)": "overview" "supply/:sidebar(/:slide)" : "supply" "flexibility/:sidebar(/:slide)" : "flexibility" "data/:sidebar(/:slide)" : "data" "report"...
class @Router extends Backbone.Router routes: "report" : "report" ":tab/:sidebar(/:slide)" : "load_slides" "" : "load_default_slides" report: => # pass load_slides: (tab, sidebar, slide) -> url = "/scenario/#{_.compact([tab, sidebar, slide]).join('/')}" $.ajax url: url da...
Remove redudant routes to support the new "overview" section
Remove redudant routes to support the new "overview" section
CoffeeScript
mit
quintel/etmodel,quintel/etmodel,quintel/etmodel,quintel/etmodel
148f5732bb5009e39508bd2ceb1fadb0e45af3a8
lib/minimap-highlight-selected-view.coffee
lib/minimap-highlight-selected-view.coffee
{View} = require 'atom' module.exports = -> highlightSelectedPackage = atom.packages.getLoadedPackage('highlight-selected') highlightSelected = require (highlightSelectedPackage.path) HighlightedAreaView = require (highlightSelectedPackage.path + '/lib/highlighted-area-view') class FakeEditor constructor...
{View} = require 'atom' module.exports = -> highlightSelectedPackage = atom.packages.getLoadedPackage('highlight-selected') highlightSelected = require (highlightSelectedPackage.path) HighlightedAreaView = require (highlightSelectedPackage.path + '/lib/highlighted-area-view') class FakeEditor constructor...
Fix error raised when minimap is not toggled
:bug: Fix error raised when minimap is not toggled Fixes #4
CoffeeScript
mit
atom-minimap/minimap-highlight-selected
cabfc620466819e77ab73b05c8b8b2ce75d115c6
source/changers/MoveExecution.js.coffee
source/changers/MoveExecution.js.coffee
#= require roofpig/changers/TimedChanger class @MoveExecution extends TimedChanger constructor: (@pieces, @axis, @angle_to_turn, turn_time, animate) -> super(turn_time) unless animate this.finish() do_change: (completion_diff) -> for piece in @pieces this._rotateAroundWorldAxis(piece, com...
#= require roofpig/changers/TimedChanger class @MoveExecution extends TimedChanger constructor: (@pieces, @axis, @angle_to_turn, turn_time, animate) -> super(turn_time) unless animate this.finish() do_change: (completion_diff) -> for piece in @pieces this._rotateAroundWorldAxis(piece, com...
Move pieces to exact position at end of move, to stop rounding error drift.
Move pieces to exact position at end of move, to stop rounding error drift. Solution from; http://stackoverflow.com/questions/24988041/making-an-object3d-snap-to-grid
CoffeeScript
mit
larspetrus/Roofpig,larspetrus/Roofpig,andersonaap/Roofpig,andersonaap/Roofpig,andersonaap/Roofpig
9c5f3ae0954cb730f5a58e5f9f1e58520e575cee
spec/ref-counted-token-list-spec.coffee
spec/ref-counted-token-list-spec.coffee
RefCountedTokenList = require '../lib/ref-counted-token-list' describe 'RefCountedTokenList', -> [list] = [] beforeEach -> list = new RefCountedTokenList describe "when words are added and removed from the list", -> it "maintains the word in the list until there are no more references", -> expect(...
RefCountedTokenList = require '../lib/ref-counted-token-list' describe 'RefCountedTokenList', -> [list] = [] beforeEach -> list = new RefCountedTokenList describe "when tokens are added to and removed from the list", -> it "maintains the token in the list until there are no more references", -> ex...
Add another spec to the reference counter
Add another spec to the reference counter
CoffeeScript
mit
atom/autocomplete-plus,brntbeer/autocomplete-plus,Lyleo/autocomplete-plus,wakermahmud/autocomplete-plus,lestat220255/autocomplete-plus,atom-community/autocomplete-plus
70142c3a27b088afda950859b40b0559f3343965
client/app/lib/activity/sidebar/sidebarownmachineslist.coffee
client/app/lib/activity/sidebar/sidebarownmachineslist.coffee
SidebarMachineList = require './sidebarmachinelist' MoreVMsModal = require 'app/activity/sidebar/morevmsmodal' ComputeHelpers = require '../../providers/computehelpers' Machine = require 'app/providers/machine' module.exports = class SidebarOwnMachinesList extends SidebarMachineList constructor: (options = {}, dat...
SidebarMachineList = require './sidebarmachinelist' MoreVMsModal = require 'app/activity/sidebar/morevmsmodal' ComputeHelpers = require '../../providers/computehelpers' Machine = require 'app/providers/machine' module.exports = class SidebarOwnMachinesList extends SidebarMachineList constructor: (options = {}, dat...
Use `getMachines` to pass MoreVMsModal.
SidebarOwnMachinesList: Use `getMachines` to pass MoreVMsModal.
CoffeeScript
agpl-3.0
drewsetski/koding,cihangir/koding,mertaytore/koding,alex-ionochkin/koding,koding/koding,acbodine/koding,andrewjcasal/koding,usirin/koding,rjeczalik/koding,usirin/koding,sinan/koding,drewsetski/koding,usirin/koding,kwagdy/koding-1,cihangir/koding,cihangir/koding,jack89129/koding,gokmen/koding,mertaytore/koding,kwagdy/ko...
e44ef3f69aa01cd5b72cef1cbbecaa8d066ced76
assets/javascripts/application.js.coffee
assets/javascripts/application.js.coffee
#= require_tree ./vendor #= require lib/license #= require_tree ./lib #= require app/app #= require app/config #= require_tree ./app #= require collections/collection #= require_tree ./collections #= require models/model #= require_tree ./models #= require views/view #= require_tree ./views #= require_tree ./temp...
#= require_tree ./vendor #= require lib/license #= require_tree ./lib #= require app/app #= require app/config #= require_tree ./app #= require collections/collection #= require_tree ./collections #= require models/model #= require_tree ./models #= require views/view #= require_tree ./views #= require_tree ./temp...
Fix app initialization on old browsers
Fix app initialization on old browsers
CoffeeScript
mpl-2.0
yosiat/devdocs,m4h4n/devdocs,mnquintana/devdocs,ReKungPaw/devdocs,isNil/devdocs,seripap/devdocs,seripap/devdocs,hyjk2000/devdocs,Xuaps/devdocs,guiquanz/devdocs,Xuaps/devdocs,1gitGrey/devdocs,alanepontes/devdocs,2947721120/devdocs,m4h4n/devdocs,webcoding/devdocs,1gitGrey/devdocs,sideci-sample/sideci-sample-devdocs,yosia...
6990f8a8464fd579c7152512d3d3b25b60b6f5c9
app/assets/javascripts/commits.js.coffee
app/assets/javascripts/commits.js.coffee
class CommitsList @data = ref: null limit: 0 offset: 0 @disable = false @showProgress: -> $('.loading').show() @hideProgress: -> $('.loading').hide() @init: (ref, limit) -> $(".day-commits-table li.commit").live 'click', (event) -> if event.target.nodeName != "A" locat...
class CommitsList @data = ref: null limit: 0 offset: 0 @disable = false @showProgress: -> $('.loading').show() @hideProgress: -> $('.loading').hide() @init: (ref, limit) -> $("body").on "click", ".day-commits-table li.commit", (event) -> if event.target.nodeName != "A" ...
Replace jquery deprecated .live with .on
Replace jquery deprecated .live with .on
CoffeeScript
mit
vjustov/gitlabhq,nmav/gitlabhq,Keystion/gitlabhq,per-garden/gitlabhq,since2014/gitlabhq,Keystion/gitlabhq,allistera/gitlabhq,mmkassem/gitlabhq,salipro4ever/gitlabhq,yulchitaj/TEST3,gorgee/gitlabhq,salipro4ever/gitlabhq,fantasywind/gitlabhq,zBMNForks/gitlabhq,shinexiao/gitlabhq,H3Chief/gitlabhq,rhels/gitlabhq,nguyen-tie...
d252ed12ba49366ea50d159d71dc43b44da02cc2
lib/get.coffee
lib/get.coffee
module.exports = class Get constructor: (@row) -> @tr = from: null to: null @familyMap = {} @maxVersions = 1 addColumn: (cf, qualifier) => @familyMap[cf] ?= [] @familyMap[cf].push qualifier @ setMaxVersions: (maxVersions) => maxVersions = 1 if maxVersions <= 0 @maxVersions = maxVersions ...
module.exports = class Get constructor: (@row) -> @tr = from: null to: null @familyMap = {} @maxVersions = 1 addColumn: (cf, qualifier) => @familyMap[cf] ?= [] @familyMap[cf].push qualifier if qualifier @ setMaxVersions: (maxVersions) => maxVersions = 1 if maxVersions <= 0 @maxVersions = ...
Allow selecting all columns in a column family
Allow selecting all columns in a column family Allow selecting all columns in a column family
CoffeeScript
apache-2.0
falsecz/hbase-rpc-client
82c0a75a0718d90456f046f63253b61039b28bbb
app/assets/javascripts/application.js.coffee
app/assets/javascripts/application.js.coffee
#= require vendor/modernizr #= require jquery #= require jquery_ujs #= require foundation/foundation #= require foundation #= require turbolinks #= require nprogress #= require nprogress-turbolinks #= require rails.validations #= require rails.validations.simple_form #= require rails.validations.simple_form.fix #= requ...
#= require vendor/modernizr #= require jquery #= require jquery_ujs #= require foundation/foundation #= require foundation #= require turbolinks #= require nprogress #= require nprogress-turbolinks #= require rails.validations #= require rails.validations.simple_form #= require rails.validations.simple_form.fix #= requ...
Remove ajax loader bar when click on submit form
Remove ajax loader bar when click on submit form
CoffeeScript
mit
lr-agenceweb/rails-starter,lr-agenceweb/rails-starter,lr-agenceweb/rails-starter,lr-agenceweb/rails-starter
4141e6282e5e86b095b1eebb421cc36ab4c94aed
src/reactGUI/StrokeWidthPicker.coffee
src/reactGUI/StrokeWidthPicker.coffee
createSetStateOnEventMixin = require '../reactGUI/createSetStateOnEventMixin' {classSet} = require '../core/util' module.exports = React.createClass displayName: 'StrokeWidthPicker' getState: -> {strokeWidth: @props.tool.strokeWidth} getInitialState: -> @getState() mixins: [createSetStateOnEventMixin('toolCha...
createSetStateOnEventMixin = require '../reactGUI/createSetStateOnEventMixin' {classSet} = require '../core/util' module.exports = React.createClass displayName: 'StrokeWidthPicker' getState: -> {strokeWidth: @props.tool.strokeWidth} getInitialState: -> @getState() mixins: [createSetStateOnEventMixin('toolCha...
Use setStrokeWidth to change stroke width from ReactGUI
Use setStrokeWidth to change stroke width from ReactGUI
CoffeeScript
bsd-2-clause
irskep/literallycanvas,literallycanvas/literallycanvas
939ceb88470df4e5f7513c7bf8333a5b6bcdfcb5
lib/data_converter.coffee
lib/data_converter.coffee
CONVERTERS = percentage: decimal: (value) -> parseInt(value, 10) / 100 date: epoch: (value) -> new Date(value).getTime() exports.convert = (fromType, toType, value) -> throw "DataConverter can't convert null or undefined values" unless value? converter = CONVERTERS[fromType]?[toType] unl...
CONVERTERS = percentage: decimal: (value) -> parseFloat(value, 10) / 100 date: epoch: (value) -> new Date(value).getTime() exports.convert = (fromType, toType, value) -> throw "DataConverter can't convert null or undefined values" unless value? converter = CONVERTERS[fromType]?[toType] u...
Make data converter parse floats, not ints
Make data converter parse floats, not ints
CoffeeScript
bsd-3-clause
unepwcmc/NRT,unepwcmc/NRT
d93f4eba399d82902ba90829b06ddee9b902bd6b
src/coffee/cilantro/models/exporter.coffee
src/coffee/cilantro/models/exporter.coffee
define [ '../core' './base' ], (c, base) -> class ExporterModel extends base.Model class ExporterCollection extends base.Collection model: ExporterModel # Versions greater than or equal to this version are considered to # support notification on completion. minSerran...
define [ '../core' './base' ], (c, base) -> class ExporterModel extends base.Model class ExporterCollection extends base.Collection model: ExporterModel # Versions greater than or equal to this version are considered to # support notification on completion. minSerran...
Fix incorrect keyword for exclusion if => when
Fix incorrect keyword for exclusion if => when Fix #252
CoffeeScript
bsd-2-clause
chop-dbhi/cilantro,chop-dbhi/cilantro,chop-dbhi/cilantro
d4da1b22029ae4c0e10705762e0eb506ca26a882
app/assets/javascripts/player/data_unpacker.js.coffee
app/assets/javascripts/player/data_unpacker.js.coffee
class AsciiIo.DataUnpacker unpack: (base64BzippedData, callback) -> data = atob base64BzippedData if data[0] == 'B' and data[1] == 'Z' if window.Worker worker = new Worker(window.unpackWorkerPath) worker.onmessage = (event) => callback event.data worker.postMessage data el...
class AsciiIo.DataUnpacker unpack: (base64BzippedData, callback) -> bzippedData = atob base64BzippedData if window.Worker worker = new Worker(window.unpackWorkerPath) worker.onmessage = (event) => callback event.data worker.postMessage bzippedData else data = ArchUtils.bz2.decode ...
Revert "Handle both bzipped and non-bzipped data in DataUnpacker"
Revert "Handle both bzipped and non-bzipped data in DataUnpacker" This reverts commit 05d3970e399d676fbe856633ffc3ac78fccf6191.
CoffeeScript
apache-2.0
radare/radare.tv,asciinema/asciinema-server,SunDi3yansyah/asciinema.org,SunDi3yansyah/asciinema.org,radare/radare.tv,asciinema/asciinema-server,SunDi3yansyah/asciinema.org,asciinema/asciinema.org,asciinema/asciinema.org,radare/radare.tv,asciinema/asciinema-server,asciinema/asciinema.org,SunDi3yansyah/asciinema.org,rada...
061330541b317dd969312e0f57f4092a5978191b
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() unless file instanceof FSFile throw new TypeError "File must be an...
class EditorPane extends Pane constructor: (options = {}, data) -> options.cssClass = KD.utils.curry "editor-pane", options.cssClass super options, data @createEditor() createEditor: -> {file, content} = @getOptions() unless file instanceof FSFile throw new TypeError "File must be an...
Handle empty string as content.
Handle empty string as content.
CoffeeScript
agpl-3.0
mertaytore/koding,kwagdy/koding-1,acbodine/koding,jack89129/koding,gokmen/koding,acbodine/koding,kwagdy/koding-1,mertaytore/koding,koding/koding,rjeczalik/koding,andrewjcasal/koding,acbodine/koding,cihangir/koding,usirin/koding,drewsetski/koding,rjeczalik/koding,acbodine/koding,alex-ionochkin/koding,andrewjcasal/koding...
fc0068845472cc5a47ba454179023c470b4f57ac
src/app/atom-theme.coffee
src/app/atom-theme.coffee
fsUtils = require 'fs-utils' Theme = require 'theme' CSON = require 'cson' # Internal: Represents a theme that Atom can use. module.exports = class AtomTheme extends Theme # Internal: Given a path, this loads it as a stylesheet. # # stylesheetPath - A {String} to a stylesheet loadStylesheet: (stylesheetPath)-...
fsUtils = require 'fs-utils' Theme = require 'theme' # Internal: Represents a theme that Atom can use. module.exports = class AtomTheme extends Theme # Internal: Given a path, this loads it as a stylesheet. # # stylesheetPath - A {String} to a stylesheet loadStylesheet: (stylesheetPath)-> @stylesheets[sty...
Use fsUtils.readObject() to read theme metadata
Use fsUtils.readObject() to read theme metadata
CoffeeScript
mit
kjav/atom,me-benni/atom,fedorov/atom,FoldingText/atom,mdumrauf/atom,hharchani/atom,stinsonga/atom,constanzaurzua/atom,bolinfest/atom,hagb4rd/atom,paulcbetts/atom,rsvip/aTom,stinsonga/atom,Andrey-Pavlov/atom,lovesnow/atom,targeter21/atom,kaicataldo/atom,execjosh/atom,rxkit/atom,liuxiong332/atom,rjattrill/atom,isghe/atom...
1793aea090b75b7c7f3e782c73856cf3bf3c7708
src/totem/client/totem-simple-auth/app/routes/index.coffee
src/totem/client/totem-simple-auth/app/routes/index.coffee
import ember from 'ember' import config from 'totem-config/config' import m_unauth_route from 'ember-simple-auth/mixins/unauthenticated-route-mixin' export default ember.Route.extend m_unauth_route, # The ember-simple-auth 'unauthenticated-route-mixin' adds a beforeModel hook. # If the session is already authent...
import ember from 'ember' import config from 'totem-config/config' import m_unauth_route from 'ember-simple-auth/mixins/unauthenticated-route-mixin' export default ember.Route.extend m_unauth_route, # The ember-simple-auth 'unauthenticated-route-mixin' adds a beforeModel hook. # If the session is already authent...
Remove puts statement in client code
Remove puts statement in client code
CoffeeScript
mit
sixthedge/cellar,sixthedge/cellar,sixthedge/cellar,sixthedge/cellar
5c1d3a55ebe2048429d16732b3cc005a3a1d531c
apps/inquiry/index.coffee
apps/inquiry/index.coffee
express = require 'express' routes = require './routes' app = module.exports = express() app.set 'views', __dirname + '/templates' app.set 'view engine', 'jade' app.get '/inquiry/development', routes.development app.get '/inquiry/debug/:id', routes.index app.get '/inquiry/debug/:id/*', routes.index app.get '/inquiry/...
express = require 'express' routes = require './routes' app = module.exports = express() app.set 'views', __dirname + '/templates' app.set 'view engine', 'jade' app.get '/inquiry/development', routes.development app.get '/inquiry/debug/:artwork_id', routes.index app.get '/inquiry/debug/:artwork_id/*', routes.index ap...
Fix param name for debugging routes
Fix param name for debugging routes
CoffeeScript
mit
oxaudo/force,izakp/force,erikdstock/force,mzikherman/force,anandaroop/force,joeyAghion/force,xtina-starr/force,damassi/force,cavvia/force-1,joeyAghion/force,erikdstock/force,damassi/force,eessex/force,oxaudo/force,artsy/force,artsy/force,kanaabe/force,kanaabe/force,damassi/force,artsy/force,kanaabe/force,yuki24/force,e...
cc25e5334f77bdee4b8fea34e6e3b396f671c3d0
app/assets/javascripts/problems.js.coffee
app/assets/javascripts/problems.js.coffee
$ -> $(".chzn-select").chosen disable_search_threshold: 25 $("#problem_body").charCount allowed: 250 warning: 20 counterText: " characters remaining" $("#problem_solution_body").charCount allowed: 250 warning: 20 counterText: " characters remaining" charCounter = $("span.counter") ch...
$ -> $(".chzn-select").chosen disable_search_threshold: 25 $("#problem_body").charCount allowed: 250 warning: 20 counterText: " characters remaining" $("#problem_solution_body").charCount allowed: 250 warning: 20 counterText: " characters remaining" charCounter = $("span.counter") ch...
Add mouseout if solution has focus so it's easier to select issue and twitter
Add mouseout if solution has focus so it's easier to select issue and twitter
CoffeeScript
mit
travisvalentine/POP,travisvalentine/POP,travisvalentine/POP
b470855033fd5cd06835ce6ec904c647a90a26e1
app/assets/javascripts/profiles.js.coffee
app/assets/javascripts/profiles.js.coffee
$('.tournament.plot').each (index, element) -> container = $(element) chart_element = container.children('.chart').get(0) y_axis_element = container.children('.y_axis').get(0) legend_element = container.children('.legend').get(0) palette = new Rickshaw.Color.Palette ajax_graph = new Rickshaw.Graph.Ajax({ ...
$('.tournament.plot').each (index, element) -> container = $(element) chart_element = container.children('.chart').get(0) y_axis_element = container.children('.y_axis').get(0) legend_element = container.children('.legend').get(0) palette = new Rickshaw.Color.Palette ajax_graph = new Rickshaw.Graph.Ajax({ ...
Use linear interpolation on history graph
Use linear interpolation on history graph
CoffeeScript
mit
proglottis/ladder,Gigaicon/ladder,Gigaicon/ladder,Gigaicon/ladder,proglottis/ladder,proglottis/ladder