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
3a5d84a8e65fc841c0c17a6b25e99bab51a7db7b
server/startup/cron.coffee
server/startup/cron.coffee
# Config and Start SyncedCron logger = new Logger 'SyncedCron' SyncedCron.config logger: (opts) -> logger[opts.level].call(logger, opts.message) collectionName: 'rocketchat_cron_history' generateStatistics = -> statistics = RocketChat.statistics.save() statistics.host = Meteor.absoluteUrl() if RocketChat.setti...
# Config and Start SyncedCron logger = new Logger 'SyncedCron' SyncedCron.config logger: (opts) -> logger[opts.level].call(logger, opts.message) collectionName: 'rocketchat_cron_history' generateStatistics = -> statistics = RocketChat.statistics.save() statistics.host = Meteor.absoluteUrl() if RocketChat.setti...
Add error handling for stat server request
Add error handling for stat server request
CoffeeScript
mit
ealbers/Rocket.Chat,mwharrison/Rocket.Chat,abduljanjua/TheHub,trt15-ssci-organization/Rocket.Chat,LearnersGuild/Rocket.Chat,danielbressan/Rocket.Chat,alexbrazier/Rocket.Chat,galrotem1993/Rocket.Chat,inoio/Rocket.Chat,Gyubin/Rocket.Chat,JamesHGreen/Rocket.Chat,NMandapaty/Rocket.Chat,mrinaldhar/Rocket.Chat,wtsarchive/Roc...
b55e62f2ab0a87e7f827b74045f8d21c262828d8
src/packages/collaboration/lib/buddy-list.coffee
src/packages/collaboration/lib/buddy-list.coffee
url = require 'url' {$$} = require 'space-pen' ScrollView = require 'scroll-view' BuddyView = require './buddy-view' module.exports = class BuddyList extends ScrollView @content: -> @div class: 'buddy-list', tabindex: -1 initialize: (@presence) -> super @presence.on 'person-added', -> @updateBuddies(...
url = require 'url' {$$} = require 'space-pen' ScrollView = require 'scroll-view' BuddyView = require './buddy-view' module.exports = class BuddyList extends ScrollView @content: -> @div class: 'buddy-list', tabindex: -1 initialize: (@presence) -> super @presence.on 'person-added', => @updateBuddies(...
Use fat arrow for callbacks
Use fat arrow for callbacks
CoffeeScript
mit
vcarrera/atom,vinodpanicker/atom,cyzn/atom,acontreras89/atom,pombredanne/atom,liuxiong332/atom,johnrizzo1/atom,t9md/atom,chfritz/atom,nucked/atom,davideg/atom,me6iaton/atom,Klozz/atom,constanzaurzua/atom,sxgao3001/atom,YunchengLiao/atom,SlimeQ/atom,rmartin/atom,gabrielPeart/atom,Neron-X5/atom,prembasumatary/atom,fang-y...
8aeee8ea6727bb38babbca8dd4c82bb01b6a9359
app/assets/javascripts/strut_builder.js.coffee
app/assets/javascripts/strut_builder.js.coffee
window.StrutBuilder ||= {} # [ # { #slide 1 # start: 0, # end: 2.5, # texts: [ # {text: 'Hum', position: 1.2}, # {text: 'bewafaa', position: 1.7} # ] # }, # { #slide 2 # start: 2.5, # end: 4.3, # texts: [ # {text: 'Hargiz', position: 3.3},...
window.StrutBuilder ||= {} # [ # { #slide 1 # start: 0, # end: 2.5, # texts: [ # {text: 'Hum', position: 1.2}, # {text: 'bewafaa', position: 1.7} # ] # }, # { #slide 2 # start: 2.5, # end: 4.3, # texts: [ # {text: 'Hargiz', position: 3.3},...
Convert segments and their text to words in the PPT slides
Convert segments and their text to words in the PPT slides
CoffeeScript
mit
shirshendu/kine_type,shirshendu/kine_type,shirshendu/kine_type,shirshendu/kine_type
885a88779b231c2e1ec43252120c5f9d26f9cefb
server/routes/admin.coffee
server/routes/admin.coffee
express = require 'express' compress = require 'compression' hbs = require 'hbs' config = require '../config' passport = require '../lib/auth' User = require '../models/user' module.exports = app = express() hbs.registerHelper 'json', (context) -> new hbs.handlebars.SafeString JSON.stringify(context) app.set 'vie...
express = require 'express' compress = require 'compression' hbs = require 'hbs' config = require '../config' passport = require '../lib/auth' User = require '../models/user' module.exports = app = express() hbs.registerHelper 'json', (context) -> new hbs.handlebars.SafeString JSON.stringify(context) app.set 'vie...
Set cache headers for statics
Set cache headers for statics
CoffeeScript
agpl-3.0
edolyne/buckets,dut3062796s/buckets,mamute/buckets,edolyne/buckets,asm-products/buckets,edolyne/hive,asm-products/buckets,bucketsio/buckets,dut3062796s/buckets,nishant8BITS/buckets,artelse/buckets,edolyne/hive,mikesmithmsm/buckets,artelse/buckets,bucketsio/buckets,mamute/buckets,nishant8BITS/buckets,mikesmithmsm/bucket...
1630f7e03360ac37e46767d8208895fcb0a22f81
app/views/play/level/tome/ProblemAlertView.coffee
app/views/play/level/tome/ProblemAlertView.coffee
CocoView = require 'views/kinds/CocoView' template = require 'templates/play/level/tome/problem_alert' {me} = require 'lib/auth' module.exports = class ProblemAlertView extends CocoView className: 'problem-alert' template: template subscriptions: {} events: 'click .close': 'onRemoveClicked' constructo...
CocoView = require 'views/kinds/CocoView' template = require 'templates/play/level/tome/problem_alert' {me} = require 'lib/auth' module.exports = class ProblemAlertView extends CocoView className: 'problem-alert' template: template subscriptions: {} events: 'click .close': 'onRemoveClicked' constructo...
Remove time from problem alert message
Remove time from problem alert message
CoffeeScript
mit
wgsu/codecombat,kumabotz/codecombat,edtrist/codecombat,amit2103/codecombat,codecombat/codecombat,Diprm77/codecombat,The-Alchemist/codecombat,bsmr-x-script/codecombat,codecombat/codecombat,javatlacati/codecombat,jhoon/codecombat,anirudhnr2015/codecombat,amit2103/codecombat,s2prod/codecombat,wgsu/codecombat,probil/codeco...
333bec690b98db32dff389396423a6827562d7cc
app/assets/javascripts/rails_admin/ra.i18n.coffee
app/assets/javascripts/rails_admin/ra.i18n.coffee
@RailsAdmin ||= {} @RailsAdmin.I18n = class Locale @init: (@locale, @translations)-> moment.locale(@locale) @t:(key) -> humanize = key.charAt(0).toUpperCase() + key.replace(/_/g, " ").slice(1) @translations[key] || humanize
@RailsAdmin ||= {} @RailsAdmin.I18n = class Locale @init: (@locale, @translations)-> moment.locale(@locale) if typeof(@translations) == "string" @translations = JSON.parse(@translations) @t:(key) -> humanize = key.charAt(0).toUpperCase() + key.replace(/_/g, " ").slice(1) @translations[key] ||...
Fix JS translations not be object but string
Fix JS translations not be object but string
CoffeeScript
mit
engel/rails_admin,allori/rails_admin,jasnow/rails_admin,widgetworks/rails_admin,widgetworks/rails_admin,jasnow/rails_admin,vincentwoo/rails_admin,soupmatt/rails_admin,sferik/rails_admin,soupmatt/rails_admin,engel/rails_admin,engel/rails_admin,sferik/rails_admin,zambot/rails_admin,vincentwoo/rails_admin,vincentwoo/rails...
ac8aa8ce9f77ddb0d3e30ad4ab8a1d7e1ae49f2c
app/assets/javascripts/controllers/overlays/message_overlay_controller.js.coffee
app/assets/javascripts/controllers/overlays/message_overlay_controller.js.coffee
ETahi.MessageOverlayController = ETahi.TaskController.extend ETahi.ControllerParticipants, newCommentBody: "" message: true _clearNewMessage: -> @set('newCommentBody', "") commentSort: ['createdAt:asc'] sortedComments: Ember.computed.sort('comments', 'commentSort') actions: clearMessageContent: ...
ETahi.MessageOverlayController = ETahi.TaskController.extend ETahi.ControllerParticipants, newCommentBody: "" message: true _clearNewMessage: -> @set('newCommentBody', "") commentSort: ['createdAt:asc'] sortedComments: Ember.computed.sort('comments', 'commentSort') actions: clearMessageContent: ...
Add initial createdAt date when saving comment.
Add initial createdAt date when saving comment. Null dates sort differently than real ones.
CoffeeScript
mit
johan--/tahi,johan--/tahi,johan--/tahi,johan--/tahi
916f689ecab701e5519f1daaece8017af9a1cc1b
spec/hashparamsSpec.coffee
spec/hashparamsSpec.coffee
describe 'HashParams', -> describe 'given foreground and background', -> params = null beforeEach -> params = new HashParams( new HashParams.scalar('foreground'), new HashParams.scalar('background')) it 'initializes values.foreground and .backgroun...
describe 'HashParams', -> describe 'initial state', -> describe 'given foreground and background', -> params = null beforeEach -> params = new HashParams( new HashParams.scalar('foreground'), new HashParams.scalar('background'))...
Reorganize specs by public method.
Reorganize specs by public method.
CoffeeScript
mit
joewhite/HashParams
8b401042e4069339abd1d219151f924bcc557d83
assignments/coffeescript/binary/binary_test.spec.coffee
assignments/coffeescript/binary/binary_test.spec.coffee
Binary = require('./example'); describe 'binary', -> it '1 is decimal 1', -> expect(1).toEqual new Binary('1').toDecimal() xit '10 is decimal 2', -> expect(2).toEqual new Binary('10').toDecimal() xit '11 is decimal 3', -> expect(3).toEqual new Binary('11').toDecimal() xit '100 is decimal 4', ->...
Binary = require('./binary'); describe 'binary', -> it '1 is decimal 1', -> expect(1).toEqual new Binary('1').toDecimal() xit '10 is decimal 2', -> expect(2).toEqual new Binary('10').toDecimal() xit '11 is decimal 3', -> expect(3).toEqual new Binary('11').toDecimal() xit '100 is decimal 4', -> ...
Fix require in binary test for coffeescript
Fix require in binary test for coffeescript
CoffeeScript
agpl-3.0
mhelmetag/exercism.io,kangkyu/exercism.io,praveenpuglia/exercism.io,alexclarkofficial/exercism.io,exercistas/exercism.io,treiff/exercism.io,mhelmetag/exercism.io,tejasbubane/exercism.io,tejasbubane/exercism.io,kizerxl/exercism.io,exercistas/exercism.io,exercistas/exercism.io,praveenpuglia/exercism.io,bmulvihill/exercis...
00e0610e96aa362bc2d5798d7078973fddc775e8
client/controllers/incidentReports/incidentTable.coffee
client/controllers/incidentReports/incidentTable.coffee
Template.incidentTable.events 'mouseover .incident-table tbody tr': (event, instance) -> if not instance.data.scrollToAnnotations return $annotation = $("span[data-incident-id=#{@_id}]") $("span[data-incident-id]").removeClass('viewing') appHeaderHeight = $('header nav.navbar').outerHeight() ...
SCROLL_WAIT_TIME = 500 Template.incidentTable.onCreated -> @scrollToAnnotation = (id) => intervalTime = 0 @interval = setInterval => if intervalTime >= SCROLL_WAIT_TIME @stopScrollingInterval() $annotation = $("span[data-incident-id=#{id}]") $("span[data-incident-id]").removeCla...
Add wait time for scrolling to annotations on hover
Add wait time for scrolling to annotations on hover
CoffeeScript
apache-2.0
ecohealthalliance/eidr-connect,ecohealthalliance/eidr-connect,ecohealthalliance/eidr-connect,ecohealthalliance/eidr-connect
4921a0ad962c2562f2400824192c1b49cdc5b173
src/index.coffee
src/index.coffee
_ = require 'lodash' typeOf = require 'type-of' err = require './errors' { availableKeys, availableFormats } = require './api_config' RealtimeInformation = require './services/realtime' LocationLookup = require './services/location' TripPlanner = require './services/trip' TrafficSituation ...
_ = require 'lodash' typeOf = require 'type-of' err = require './errors' { availableKeys, availableFormats } = require './api_config' RealtimeInformation = require './services/realtime' LocationLookup = require './services/location' TripPlanner = require './services/trip' TrafficSituation ...
Throw error if format option is not string
Throw error if format option is not string Throws InvalidResponseFormatSuppliedError if the supplied format option is not a string of either 'json' or 'xml'
CoffeeScript
mit
simon-johansson/SL-api,simon-johansson/SL-api
e969361c88c98e3f7d0331f1307c19533111fbcd
src/index.coffee
src/index.coffee
# react-controllables # =================== invariant = require 'react/lib/invariant' getControllableValue = (name, state, props) -> props[name] ? state[name] capFirst = (str) -> "#{ str[...1].toUpperCase() }#{ str[1...] }" callbackName = (prop) -> "on#{ capFirst prop }Change" ControllablesMixin = getInitialStat...
# react-controllables # =================== invariant = require 'react/lib/invariant' getControllableValue = (name, state, props) -> props[name] ? state[name] capFirst = (str) -> "#{ str[...1].toUpperCase() }#{ str[1...] }" callbackName = (prop) -> "on#{ capFirst prop }Change" ControllablesMixin = getInitialStat...
Remove invariant check for callbacks on controlled components
Remove invariant check for callbacks on controlled components I don’t remember why I added this. React’s form components don’t do this /:
CoffeeScript
mit
CBIConsulting/react-controllables,matthewwithanm/react-controllables,CBIConsulting/react-controllables,matthewwithanm/react-controllables
0d53118abfd3d7dd0b3a5372a5b8812c73cd4349
app/src/controllers/wallet/send/wallet_send_preparing_dialog_view_controller.coffee
app/src/controllers/wallet/send/wallet_send_preparing_dialog_view_controller.coffee
class @WalletSendPreparingDialogViewController extends @DialogViewController view: spinnerContainer: '#spinner_container' onAfterRender: -> super @view.spinner = ledger.spinners.createLargeSpinner(@view.spinnerContainer[0]) account = Account.find(index: 0).first() # fetch amount ledger.wa...
class @WalletSendPreparingDialogViewController extends @DialogViewController view: spinnerContainer: '#spinner_container' onAfterRender: -> super @view.spinner = ledger.spinners.createLargeSpinner(@view.spinnerContainer[0]) account = Account.find(index: 0).first() # fetch amount ledger.wa...
Modify dialogs when waiting for secure screen validation
Modify dialogs when waiting for secure screen validation
CoffeeScript
mit
LedgerHQ/ledger-wallet-chrome,LedgerHQ/ledger-wallet-chrome,Morveus/ledger-wallet-doge-chrome,Morveus/ledger-wallet-doge-chrome
adec87f0f84b861f72259a1189f59f19201ef4bb
spec/helpers-spec.coffee
spec/helpers-spec.coffee
Helpers = require '../lib/helpers' describe "The Results Validation Helper", -> it "should throw an exception when nothing is passed.", -> expect( -> Helpers.validateResults()).toThrow() it "should throw an exception when a String is passed.", -> expect( -> Helpers.validateResults('String')).toThrow()
Helpers = require '../lib/helpers' describe "The Results Validation Helper", -> it "should throw an exception when nothing is passed.", -> expect( -> Helpers.validateResults()).toThrow() it "should throw an exception when a String is passed.", -> expect( -> Helpers.validateResults('String')).toThrow() des...
Add the same test for Linter validation.
Add the same test for Linter validation.
CoffeeScript
mit
elkeis/linter,JohnMurga/linter,kaeluka/linter,shawninder/linter,blakeembrey/linter,levity/linter,Arcanemagus/linter,steelbrain/linter,iam4x/linter,AtomLinter/Linter,e-jigsaw/Linter,AsaAyers/linter,UltCombo/linter,atom-community/linter,DanPurdy/linter,mdgriffith/linter
7861e462bece67e4965c996b65d8b879ebd34f70
src/model.coffee
src/model.coffee
Grim = require 'grim' if Grim.includeDeprecations module.exports = require('theorist').Model return PropertyAccessors = require 'property-accessors' nextInstanceId = 1 module.exports = class Model PropertyAccessors.includeInto(this) @resetNextInstanceId: -> nextInstanceId = 1 constructor: (params) -> ...
Grim = require 'grim' if Grim.includeDeprecations module.exports = require('theorist').Model return PropertyAccessors = require 'property-accessors' nextInstanceId = 1 module.exports = class Model PropertyAccessors.includeInto(this) @resetNextInstanceId: -> nextInstanceId = 1 alive: true constructor: ...
Add alive ivar to light Model
Add alive ivar to light Model
CoffeeScript
mit
vjeux/atom,ppamorim/atom,YunchengLiao/atom,gisenberg/atom,me6iaton/atom,qskycolor/atom,nvoron23/atom,Andrey-Pavlov/atom,panuchart/atom,Neron-X5/atom,constanzaurzua/atom,dsandstrom/atom,Dennis1978/atom,SlimeQ/atom,GHackAnonymous/atom,anuwat121/atom,sxgao3001/atom,ali/atom,florianb/atom,chengky/atom,ilovezy/atom,nrodrigu...
706bc262dec5b524699ff64ee5df89862edee583
lib/spell-check-handler.coffee
lib/spell-check-handler.coffee
SpellChecker = require 'spellchecker' wordRegex = /(?:^|[\s\[\]"'])([a-zA-Z]+([a-zA-Z']+[a-zA-Z])?)(?=[\s\.\[\]:,"']|$)/g module.exports = ({id, text}) -> row = 0 misspellings = [] for line in text.split('\n') while matches = wordRegex.exec(line) word = matches[1] continue if word in ['GitHub', ...
SpellChecker = require 'spellchecker' module.exports = ({id, text}) -> misspelledCharacterRanges = SpellChecker.checkSpelling(text) row = 0 rangeIndex = 0 characterIndex = 0 misspellings = [] while characterIndex < text.length and rangeIndex < misspelledCharacterRanges.length lineBreakIndex = text.ind...
Use new bulk spell-checking method in task handler
Use new bulk spell-checking method in task handler
CoffeeScript
mit
atom/spell-check
96c475cc6f3b349b115d804141d9bdbd283caa5d
support/spec_helpers.coffee
support/spec_helpers.coffee
# a number of jasmine-jquery helpers / extensions # it totally used to do this natively, but now doesn't... jasmine.getFixtures().findContainer = -> $(document.body).find("##{@containerId}") jasmine.getFixtures().getContainer = -> cont = @findContainer() if cont.length == 0 @createContainer_("") cont = ...
# a number of jasmine-jquery helpers / extensions # it totally used to do this natively, but now doesn't... jasmine.getFixtures().findContainer = -> $(document.body).find("##{@containerId}") jasmine.getFixtures().getContainer = -> cont = @findContainer() if cont.length == 0 @createContainer_("") cont = ...
Refactor of most of the math library pulling components out
Refactor of most of the math library pulling components out
CoffeeScript
mit
thinkthroughmath/ttm-coffeescript-utilities
e2554c9c7046c9f26e2197ac57eccc9d5f645699
lib/table-edit.coffee
lib/table-edit.coffee
module.exports = config: undefinedDisplay: type: 'string' default: '' activate: (state) -> atom.workspaceView.command 'table-edit:demo', => @openDemo() @openDemo() deactivate: -> serialize: -> openDemo: -> Table = require './table' TableView = require './table-view' ...
module.exports = config: undefinedDisplay: type: 'string' default: '' activate: (state) -> atom.workspaceView.command 'table-edit:demo', => @openDemo() @openDemo() deactivate: -> serialize: -> openDemo: -> Table = require './table' TableView = require './table-view' ...
Clear undo stack of the demo after creation
Clear undo stack of the demo after creation
CoffeeScript
mit
abe33/atom-tablr
ac0f65a684a63cf0a3cfd9228b32284575980a57
src/scripts/modules/media/footer/metadata/metadata.coffee
src/scripts/modules/media/footer/metadata/metadata.coffee
define (require) -> settings = require('settings') FooterTabView = require('cs!../inherits/tab/tab') template = require('hbs!./metadata-template') require('less!./metadata') return class MetadataView extends FooterTabView template: template templateHelpers: () -> model = super() model.lan...
define (require) -> settings = require('settings') FooterTabView = require('cs!../inherits/tab/tab') template = require('hbs!./metadata-template') require('less!./metadata') return class MetadataView extends FooterTabView template: template templateHelpers: () -> model = super() model.lan...
Update language select class name
Update language select class name
CoffeeScript
agpl-3.0
katalysteducation/webview,katalysteducation/webview,Connexions/webview,katalysteducation/webview,dak/webview,carolinelane10/webview,Connexions/webview,katalysteducation/webview,dak/webview,Connexions/webview,Connexions/webview,dak/webview
1c87c38678eb920df57fbea5cfc2f4cfd1a7a8bc
lib/gocov/gocov-parser.coffee
lib/gocov/gocov-parser.coffee
{Range} = require 'atom' _ = require 'underscore-plus' fs = require 'fs-plus' module.exports = class GocovParser constructor: (dispatch) -> @dispatch = dispatch setDataFile: (file) -> @dataFile = file # TODO disgusting - fix this parsing, regex rangesForFile: (file) -> # TODO Ensure we have a dat...
{Range} = require 'atom' _ = require 'underscore-plus' fs = require 'fs-plus' module.exports = class GocovParser constructor: (dispatch) -> @dispatch = dispatch setDataFile: (file) -> @dataFile = file # TODO disgusting - fix this parsing, regex rangesForFile: (file) -> try data = fs.readFil...
Handle the error when the coverage report is not generated
Handle the error when the coverage report is not generated
CoffeeScript
apache-2.0
ma314smith/go-plus,rodumani/go-plus,alex/go-plus,rengawm/go-plus,Gurpartap/go-plus,alex/go-plus,akutz/go-plus,crispinb/go-plus,greensnark/go-plus,danielchatfield/go-plus,crispinb/go-plus,alecthomas/go-plus,timesking/go-plus
7376e22b30e23a5320a7c55ee4f4adee8c4d8d00
app.coffee
app.coffee
express = require 'express' passport = require 'passport' _ = require 'underscore' authentication = require './authentication' info = require './package' http = require 'http' require 'express-namespace' users = require './routes/users' projects = require './routes/projects' time_entries = require './routes/time_entr...
express = require 'express' passport = require 'passport' _ = require 'underscore' authentication = require './authentication' info = require './package' http = require 'http' require 'express-namespace' users = require './routes/users' projects = require './routes/projects' time_entries = require './routes/time_entr...
Disable hawk auth for now
Disable hawk auth for now
CoffeeScript
bsd-3-clause
t3mpus/tempus-api
5314d6baa5564d3fd87f52bd33fe90c2c48f8189
app/assets/javascripts/player/brush.js.coffee
app/assets/javascripts/player/brush.js.coffee
class AsciiIo.Brush @cache: {} @clearCache: -> @cache = {} @hash: (brush) -> "#{brush.fg}_#{brush.bg}_#{brush.bright}_#{brush.underline}_#{brush.italic}_#{brush.blink}" @create: (options = {}) -> key = @hash(options) brush = @cache[key] if not brush brush = new AsciiIo.Brush(option...
class AsciiIo.Brush @cache: {} @clearCache: -> @cache = {} @hash: (brush) -> "#{brush.fg}_#{brush.bg}_#{brush.bright}_#{brush.underline}_#{brush.italic}_#{brush.blink}" @create: (options = {}) -> key = @hash(options) brush = @cache[key] if not brush brush = new AsciiIo.Brush(option...
Use color 0 as default fg color
Use color 0 as default fg color
CoffeeScript
apache-2.0
SunDi3yansyah/asciinema.org,radare/radare.tv,asciinema/asciinema.org,asciinema/asciinema.org,SunDi3yansyah/asciinema.org,SunDi3yansyah/asciinema.org,radare/radare.tv,asciinema/asciinema-server,SunDi3yansyah/asciinema.org,SunDi3yansyah/asciinema.org,radare/radare.tv,asciinema/asciinema-server,asciinema/asciinema-server,...
ed347a01b1125fe509cb891214ee72a7e7281250
app/assets/javascripts/services/file_upload.coffee
app/assets/javascripts/services/file_upload.coffee
@app.factory 'fileUpload', [ '$q', '$rootScope', '$http', 'formData', ($q, $rootScope, $http, formData) -> fileUpload = (options) -> xhr = null deferred = $q.defer() lastProgressApply = 0 progressHandler = (event) -> return unless event.lengthComputable now = Date...
@app.factory 'fileUpload', [ '$q', '$rootScope', '$http', 'formData', ($q, $rootScope, $http, formData) -> (options) -> deferred = $q.defer() timeout = $q.defer() options.method ?= options.type ? 'POST' options.data = formData.build(options.data) options.headers ?= {} ...
Use $http for file upload
Use $http for file upload
CoffeeScript
mit
mthorn/photo-store,mthorn/photo-store
1d91b4b52ab52d5e68edaa37183f7137c163db5e
lib/main.coffee
lib/main.coffee
validator = require "./validator" module.exports = HtmlValidation = config: validateOnSave: type: "boolean" default: no title: "Validate on save" description: "Make a validation each time you save an HTML file." validateOnChange: type: "bo...
validator = require "./validator" module.exports = HtmlValidation = config: validateOnSave: type: "boolean" default: yes title: "Validate on save" description: "Make a validation each time you save an HTML file." validateOnChange: type: "b...
Change default value for validateOnSave
Change default value for validateOnSave
CoffeeScript
mit
leny/atom-w3c-validation
dbcb9bf10e9169d1a9464ca4aeda0d3a212398ea
src/coffee/csv/importer.coffee
src/coffee/csv/importer.coffee
_ = require 'underscore' __ = require 'highland' fs = require 'fs' csv = require 'csv' transform = require 'stream-transform' ImportMapping = require './importmapping' Streaming = require '../streaming' Promise = require 'bluebird' class Importer constructor: (@logger, options = {}) -> @streaming = new Streamin...
_ = require 'underscore' __ = require 'highland' fs = require 'fs' csv = require 'csv' transform = require 'stream-transform' ImportMapping = require './importmapping' Streaming = require '../streaming' Promise = require 'bluebird' class Importer constructor: (@logger, options = {}) -> @streaming = new Streamin...
Adjust row counter to also work with bigger chunks.
Adjust row counter to also work with bigger chunks.
CoffeeScript
mit
sphereio/sphere-category-sync,sphereio/sphere-category-sync,sphereio/sphere-category-sync
0dfe4b9a4926b94a7e474b5cc9b475eb443a6f3a
lib/main.coffee
lib/main.coffee
{CompositeDisposable} = require 'atom' module.exports = config: executablePath: type: 'string' title: 'PHP Executable Path' default: 'php' # Let OS's $PATH handle the rest activate: -> @subscriptions = new CompositeDisposable @subscriptions.add atom.config.observe 'linter-php.executa...
{CompositeDisposable} = require 'atom' module.exports = config: executablePath: type: 'string' title: 'PHP Executable Path' default: 'php' # Let OS's $PATH handle the rest activate: -> @subscriptions = new CompositeDisposable @subscriptions.add atom.config.observe 'linter-php.executa...
Use new helper method for generating range
:new: Use new helper method for generating range
CoffeeScript
mit
AtomLinter/linter-php,AtomLinter/linter-php
4f8820409ed98fc2676d1ec3556e0f69f0d1a31d
src/coffee/product-component.coffee
src/coffee/product-component.coffee
class ProductComponent bindProductEvent: (name, handler, productIdIndex = 0) => $(window).on name, (evt, args...) => return unless @productId is args[productIdIndex] handler(evt, args...) root = window || exports root.ProductComponent = ProductComponent
class ProductComponent bindProductEvent: (name, handler, productIdIndex = 0) => $(window).on name, (evt, args...) => return unless @productId is args[productIdIndex] handler(evt, args...) generateSelectors: (selectors) => for k, v of selectors @["find#{k}"] = do(v) => => @element.find(v) @["show#{k}"...
Add selector generation to Product Component
Add selector generation to Product Component
CoffeeScript
mit
vtex/front.portal-plugins,vtex/front.portal-plugins
e87db22b34fe7ba374f23652ed573fae5628f2fe
js/test.coffee
js/test.coffee
--- --- dl = require('datalib') evalexpr = require('expr-eval') {% include coffee/essential.coffee %} {% include coffee/main.coffee %} {% include coffee/vega_extra.coffee %} {% include coffee/simulation.coffee %} {% include coffee/uploads.coffee %} {% include coffee/benchmark_table.coffee %} {% include coffee/result_...
--- --- # dl = require('datalib') # evalexpr = require('expr-eval') {% include coffee/essential.coffee %} {% include coffee/main.coffee %} {% include coffee/vega_extra.coffee %} {% include coffee/simulation.coffee %} {% include coffee/uploads.coffee %} {% include coffee/benchmark_table.coffee %} {% include coffee/res...
Comment imports for broken backend libs on Travis
Comment imports for broken backend libs on Travis Address #709 Libraries commented out are broken on Travis CI so can't use them
CoffeeScript
mit
wd15/chimad-phase-field,wd15/chimad-phase-field,wd15/chimad-phase-field
da161c1bb6f614672250794778b39f34ef2555db
test/pending_test.coffee
test/pending_test.coffee
describe 'Pending', -> it 'Should test skipHeader option' it 'Should test initWith option' it 'Should embed plain JS files' it 'Should allow setting the source path'
describe 'Pending', -> it 'Should test skipHeader option' it 'Should test initWith option' it 'Should embed plain JS files' it 'Should allow setting the source path' it 'Should allow setting the lib path' it 'Should allow setting the tmp path' it 'Should allow setting the out path'
Add three more pending tests.
Add three more pending tests.
CoffeeScript
mit
rubenv/node-client-compiler
7631fb087b9cc3808255a5b42b88b351ebb62d87
test/src/system/installation_process_test.coffee
test/src/system/installation_process_test.coffee
editorModule "Installation process", template: "editor_html" editorTest "element.editorController", -> ok getEditorController() instanceof Trix.EditorController editorTest "creates a contenteditable element", -> ok getDocumentElement() editorTest "loads the initial document", -> equal getDocumentElement().text...
editorModule "Installation process", template: "editor_html" editorTest "element.editorController", -> ok getEditorController() instanceof Trix.EditorController editorTest "creates a contenteditable element", -> ok getDocumentElement() editorTest "loads the initial document", -> equal getDocumentElement().text...
Remove expected block comment from test
Remove expected block comment from test
CoffeeScript
mit
basecamp/trix,ChenMichael/trix,basecamp/trix,urossmolnik/trix,urossmolnik/trix,urossmolnik/trix,basecamp/trix,ChenMichael/trix,GabiGrin/trix,GabiGrin/trix,ChenMichael/trix,GabiGrin/trix,basecamp/trix
2aec7577fff720c2392621873acedaf0181d0c76
app/assets/javascripts/papers.js.coffee
app/assets/javascripts/papers.js.coffee
window.Tahi = {} Tahi.papers = init: -> $('#add_author').on 'click', (e) -> e.preventDefault() $('<li class="author">').appendTo $('ul.authors') $(document).ready -> if $("[contenteditable]").length > 0 for elementId in ['body_editable', 'abstract_editable'] CKEDITOR.inline elementId, ...
window.Tahi = {} Tahi.papers = init: -> $('#add_author').on 'click', (e) -> e.preventDefault() $('<li class="author">').appendTo $('ul.authors') $(document).ready -> if $("[contenteditable]").length > 0 for elementId in ['body_editable', 'abstract_editable'] CKEDITOR.inline elementId, ...
Add tables to CKEditor toolbar
Add tables to CKEditor toolbar We want the editor to support tables.
CoffeeScript
mit
johan--/tahi,johan--/tahi,johan--/tahi,johan--/tahi
2b8524f9c71cd42a78b92787fdb8ea58e7ca2b70
packages/rocketchat-lib/server/functions/setUsername.coffee
packages/rocketchat-lib/server/functions/setUsername.coffee
RocketChat.setUsername = (user, username) -> username = s.trim username if not user or not username return false if not /^[0-9a-zA-Z-_.]+$/.test username return false # User already has desired username, return if user.username is username return user # Check username availability unless RocketChat.chec...
RocketChat.setUsername = (user, username) -> username = s.trim username if not user or not username return false if not /^[0-9a-zA-Z-_.]+$/.test username return false # User already has desired username, return if user.username is username return user # Check username availability unless RocketChat.chec...
Send e-mail on first username set
Send e-mail on first username set
CoffeeScript
mit
cnash/Rocket.Chat,fatihwk/Rocket.Chat,ealbers/Rocket.Chat,acaronmd/Rocket.Chat,litewhatever/Rocket.Chat,fatihwk/Rocket.Chat,TribeMedia/Rocket.Chat,JamesHGreen/Rocket.Chat,Gudii/Rocket.Chat,flaviogrossi/Rocket.Chat,xasx/Rocket.Chat,linnovate/hi,abhishekshukla0302/trico,BorntraegerMarc/Rocket.Chat,AlecTroemel/Rocket.Chat...
270e558cab582692f19405f12efb1519a8724153
packages/rocketchat-lib/server/methods/restartServer.coffee
packages/rocketchat-lib/server/methods/restartServer.coffee
Meteor.methods restart_server: -> if not Meteor.userId() throw new Meteor.Error 'invalid-user', "[methods] restart_server -> Invalid user" unless RocketChat.authz.hasRole( Meteor.userId(), 'admin') is true throw new Meteor.Error 'not-authorized', '[methods] restart_server -> Not authorized' Meteor.setTim...
Meteor.methods restart_server: -> if not Meteor.userId() throw new Meteor.Error 'invalid-user', "[methods] restart_server -> Invalid user" unless RocketChat.authz.hasRole( Meteor.userId(), 'admin') is true throw new Meteor.Error 'not-authorized', '[methods] restart_server -> Not authorized' Meteor.setTim...
Change to process.exit(1) to restart server
Change to process.exit(1) to restart server
CoffeeScript
mit
Gudii/Rocket.Chat,Movile/Rocket.Chat,liuliming2008/Rocket.Chat,timkinnane/Rocket.Chat,trt15-ssci-organization/Rocket.Chat,snaiperskaya96/Rocket.Chat,BorntraegerMarc/Rocket.Chat,inoxth/Rocket.Chat,Flitterkill/Rocket.Chat,ggazzo/Rocket.Chat,xboston/Rocket.Chat,BorntraegerMarc/Rocket.Chat,Sing-Li/Rocket.Chat,flaviogrossi/...
c95f67a480e12424198cf4b4ad69af6054c125b9
app/assets/javascripts/modules/filter_form.coffee
app/assets/javascripts/modules/filter_form.coffee
# @todo: build main switch/accordeon for filter-form initFilterForm = -> filterExpand = -> $filterForm = $('.filter-form') startHeight = $('.col-form-inner:first').find('.radio_buttons').height() * 3.5 expandLabel = 'Mehr Filter anzeigen' collapseLabel = 'Weniger Filter anzeigen' $filterForm ...
# @todo: build main switch/accordeon for filter-form initFilterForm = -> filterExpand = -> $filterForm = $('.filter-form') startHeight = $('.col-form-inner:first').find('.radio_buttons').height() * 3.5 expandLabel = 'Mehr Filter anzeigen' collapseLabel = 'Weniger Filter anzeigen' $filterForm ...
Add WAI/ARIA states for filter accordeon
Add WAI/ARIA states for filter accordeon
CoffeeScript
mit
clarat-org/clarat,clarat-org/clarat,clarat-org/clarat,clarat-org/clarat
9b236358d44aece4c04b07d76aa01a262da4b5c7
npm2nix.coffee
npm2nix.coffee
#!/usr/bin/env coffee http = require 'http' util = require 'util' crypto = require 'crypto' name = process.argv[2] version = process.argv[3] ? "latest" deps = [] hash = crypto.createHash 'sha256' http.get "http://registry.npmjs.org/#{name}", (res) -> res.setEncoding() val = "" res.on 'data', (chunk) -> v...
#!/usr/bin/env coffee http = require 'http' util = require 'util' crypto = require 'crypto' name = process.argv[2] version = process.argv[3] ? "latest" deps = [] hash = crypto.createHash 'sha256' http.get "http://registry.npmjs.org/#{name}", (res) -> res.setEncoding() val = "" res.on 'data', (chunk) -> v...
Put versions in to generated attribute names, indent generated code
Put versions in to generated attribute names, indent generated code
CoffeeScript
mit
bobvanderlinden/npm2nix,NixOS/npm2nix
7838f3741fa381f6ef1b781ca3f9a8ec2ddd7cac
src/packages/fuzzy-finder/keymaps/fuzzy-finder.cson
src/packages/fuzzy-finder/keymaps/fuzzy-finder.cson
'body': 'meta-t': 'fuzzy-finder:toggle-file-finder' 'meta-b': 'fuzzy-finder:toggle-buffer-finder' 'ctrl-.': 'fuzzy-finder:find-under-cursor' 'meta-T': 'fuzzy-finder:toggle-git-status-finder'
'body': 'meta-t': 'fuzzy-finder:toggle-file-finder' 'meta-b': 'fuzzy-finder:toggle-buffer-finder' 'ctrl-.': 'fuzzy-finder:find-under-cursor' 'meta-B': 'fuzzy-finder:toggle-git-status-finder'
Update status finder keybinding to meta-B
Update status finder keybinding to meta-B
CoffeeScript
mit
Jandersolutions/atom,kc8wxm/atom,Mokolea/atom,SlimeQ/atom,prembasumatary/atom,einarmagnus/atom,Galactix/atom,paulcbetts/atom,harshdattani/atom,charleswhchan/atom,chengky/atom,g2p/atom,Arcanemagus/atom,AlisaKiatkongkumthon/atom,Neron-X5/atom,FIT-CSE2410-A-Bombs/atom,synaptek/atom,me6iaton/atom,darwin/atom,lisonma/atom,d...
893055c95e2a2fd106aa70c3b35963031e85cf4c
js-library/app/js/jail_iframe/classes/proxy_message.coffee
js-library/app/js/jail_iframe/classes/proxy_message.coffee
FactlinkJailRoot.showProxyMessage = -> content = """ <div class="proxy-message"> <strong>Factlink demo page</strong> <ul> <li>Get the <a href="https://factlink.com">extension</a> to add discussions on every site <li>Or <a href="https://factlink.com/p/on-your-site">install</a> Factlink ...
FactlinkJailRoot.showProxyMessage = -> content = """ <div class="proxy-message"> <strong>Factlink demo page</strong> <ul> <li>Get the <a href="https://factlink.com">extension</a> to add discussions on every site <li>Or <a href="https://factlink.com/p/on-your-site">install</a> Factlink ...
Put notice on the left, on the right didn't *feel* right (pun intended).
Put notice on the left, on the right didn't *feel* right (pun intended). If someone who owns a site opens Factlink in the proxy and is all like, what the heck is this doing on my site, they should always see some kind of explanation. Hiding away the explanation under the sidebar seems therefore not a good idea.
CoffeeScript
mit
daukantas/factlink-core,daukantas/factlink-core,daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core,Factlink/factlink-core,Factlink/factlink-core
0436dc17f35f1b0d6be80d8f1a4b94541b099110
lib/hashingFunctions.coffee
lib/hashingFunctions.coffee
module.exports = class @_addition: (a, b) -> (a + b) @_multiplication: (a, b) -> (a * b) @sum: (array) => array.reduce(@_addition, 0) @product: (array) => array.reduce(@_multiplication, 0)
module.exports = class @_addition: (a, b) -> (a + b) @_multiplication: (a, b) -> (a * b) @sum: (array) => array.reduce(@_addition, 0) @reverseSum: (array) => array.reverse().reduce(@_addition, 0) @product: (array) => array.reduce(@_multiplication, 0) @reverseProduct: (array) => array.rev...
Add some more hashing functions
Add some more hashing functions
CoffeeScript
mit
mojects/avatars-api,mojects/avatars-api,adorableio/avatars-api,gitblit/avatars-api,gitblit/avatars-api
794b77798f3c4d417d569c272cc4757c1fa46a79
resources/assets/lib/components/notification-banner.coffee
resources/assets/lib/components/notification-banner.coffee
# Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0. # See the LICENCE file in the repository root for full licence text. import * as React from 'react' import { div } from 'react-dom-factories' import { nextVal } from 'utils/seq' el = React.createElement bn = 'noti...
# Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0. # See the LICENCE file in the repository root for full licence text. import * as React from 'react' import { div } from 'react-dom-factories' import { nextVal } from 'utils/seq' el = React.createElement bn = 'noti...
Use newBody for attaching portals
Use newBody for attaching portals
CoffeeScript
agpl-3.0
LiquidPL/osu-web,nanaya/osu-web,notbakaneko/osu-web,ppy/osu-web,nanaya/osu-web,notbakaneko/osu-web,notbakaneko/osu-web,LiquidPL/osu-web,notbakaneko/osu-web,ppy/osu-web,LiquidPL/osu-web,ppy/osu-web,ppy/osu-web,LiquidPL/osu-web,nanaya/osu-web,nanaya/osu-web,LiquidPL/osu-web,notbakaneko/osu-web,nanaya/osu-web,ppy/osu-web
94ef3a2c90ff95a6fa231783ae95692a50538d24
src/main.coffee
src/main.coffee
# Preamble _.mixin(_.str.exports()) #rx = require('../../reactive-coffee/src/reactive') rx = require 'reactive-coffee' # Dependencies {my} = require('./my') {god} = require('./god') {config} = require('./config') {draw} = require('./draw') {test} = require('./test') if my.test world = god(rx, config) main = -> $...
# Preamble _.mixin(_.str.exports()) #rx = require('../../reactive-coffee/src/reactive') rx = require 'reactive-coffee' # Dependencies {my} = require('./my') {god} = require('./god') {config} = require('./config') {draw} = require('./draw') {test} = require('./test') if my.test world = god(rx, config) div = rx.rxt....
Create divs for each section"
Create divs for each section"
CoffeeScript
isc
TheSwanFactory/hourofnode,TheSwanFactory/hourofnode
bf69521cbe6be9b1ec3ab4337e2d4cba62308056
spec/lint-spec.coffee
spec/lint-spec.coffee
Lint = require '../lib/lint' # Use the command `window:run-package-specs` (cmd-alt-ctrl-p) to run specs. # # To run a specific `it` or `describe` block add an `f` to the front (e.g. `fit` # or `fdescribe`). Remove the `f` to unfocus the block. describe 'Lint', -> it 'MUST have specs :)'
Lint = require '../lib/atom-lint' # Use the command `window:run-package-specs` (cmd-alt-ctrl-p) to run specs. # # To run a specific `it` or `describe` block add an `f` to the front (e.g. `fit` # or `fdescribe`). Remove the `f` to unfocus the block. describe 'atom-lint', -> it 'MUST have specs :)'
Fix forgotten renaming in spec
Fix forgotten renaming in spec
CoffeeScript
mit
ahmetabdi/atom-lint,yujinakayama/atom-lint
c39273d9397879bd629d64a7765717b42813c4a1
core/app/backbone/views/evidence/top_fact_evidence_view.coffee
core/app/backbone/views/evidence/top_fact_evidence_view.coffee
class TopFactEvidenceLayoutView extends Backbone.Marionette.Layout template: 'evidence/top_fact_evidence_layout' regions: contentRegion: '.js-content-region' templateHelpers: type_css: -> switch @type when 'believe' then 'supporting' when 'disbelieve' then 'weakening' when ...
class TopFactEvidenceLayoutView extends Backbone.Marionette.Layout template: 'evidence/top_fact_evidence_layout' regions: contentRegion: '.js-content-region' templateHelpers: type_css: -> switch @type when 'believe' then 'supporting' when 'disbelieve' then 'weakening' when ...
Update when impact changes and hide ones without impact
Update when impact changes and hide ones without impact
CoffeeScript
mit
Factlink/factlink-core,daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core,daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core
3cc623bdd5f46319f1393b8f05795342d173af38
app/assets/asset/display.coffee
app/assets/asset/display.coffee
'use strict' app.directive 'assetDisplay', [ 'constantService', '$timeout', (constants, $timeout) -> restrict: 'E' templateUrl: 'asset/display.html' scope: assetFn: '&asset' link: ($scope) -> asset = $scope.assetFn() $scope.asset = asset.inContext() $scope.readable = $scope....
'use strict' app.directive 'assetDisplay', [ 'constantService', (constants) -> restrict: 'E' templateUrl: 'asset/display.html' scope: assetFn: '&asset' link: ($scope) -> asset = $scope.assetFn() $scope.asset = asset.inContext() $scope.readable = $scope.asset.checkPermission(...
Remove unused service dependency from assetDisplay
Remove unused service dependency from assetDisplay
CoffeeScript
agpl-3.0
databrary/databrary,databrary/databrary,databrary/databrary,databrary/databrary
e3a2d3db99c207d1f4a815b82838b1ad7ccebc8c
client/source/models/template.coffee
client/source/models/template.coffee
Model = require 'lib/model' module.exports = class Template extends Model urlRoot: '/api/templates' idAttribute: 'filename'
Model = require 'lib/model' module.exports = class Template extends Model urlRoot: '/api/templates' idAttribute: 'filename' defaults: filename: '' contents: ''
Add defaults to File client model
Add defaults to File client model
CoffeeScript
agpl-3.0
dut3062796s/buckets,edolyne/hive,artelse/buckets,mamute/buckets,nishant8BITS/buckets,asm-products/buckets,edolyne/buckets,edolyne/hive,mamute/buckets,mikesmithmsm/buckets,nishant8BITS/buckets,bucketsio/buckets,dut3062796s/buckets,asm-products/buckets,mikesmithmsm/buckets,bucketsio/buckets,artelse/buckets,edolyne/bucket...
f88bfc1ab0d911c197d757e177804e464fe9ad3a
src/atom/app.coffee
src/atom/app.coffee
Keymap = require 'keymap' $ = require 'jquery' _ = require 'underscore' module.exports = class App keymap: null windows: null tabText: null constructor: (@loadPath, nativeMethods)-> @windows = [] @setUpKeymap() @tabText = " " setUpKeymap: -> @keymap = new Keymap() $(document).on 'keydo...
Keymap = require 'keymap' $ = require 'jquery' _ = require 'underscore' require 'underscore-extensions' module.exports = class App keymap: null windows: null tabText: null constructor: (@loadPath, nativeMethods)-> @windows = [] @setUpKeymap() @tabText = " " setUpKeymap: -> @keymap = new Ke...
Use _.remove to remove windows from atom.windows array
Use _.remove to remove windows from atom.windows array
CoffeeScript
mit
NunoEdgarGub1/atom,RuiDGoncalves/atom,yalexx/atom,ReddTea/atom,deepfox/atom,jjz/atom,ppamorim/atom,beni55/atom,cyzn/atom,fang-yufeng/atom,ppamorim/atom,ilovezy/atom,ali/atom,FoldingText/atom,rxkit/atom,yamhon/atom,johnrizzo1/atom,githubteacher/atom,chengky/atom,Klozz/atom,liuxiong332/atom,dannyflax/atom,dannyflax/atom,...
b47424d5ed26d7ea8fcea3da8f84e9666f63431e
.config/init.coffee
.config/init.coffee
# I love this program. # # Atom will evaluate this file each time a new window is opened. It is run # after packages are loaded/activated and after the previous editor state # has been restored. # # An example hack to log to the console when each text editor is saved. # # atom.workspace.observeTextEditors (editor) -> #...
# I love this program. # # Atom will evaluate this file each time a new window is opened. It is run # after packages are loaded/activated and after the previous editor state # has been restored. # # An example hack to log to the console when each text editor is saved. # # atom.workspace.observeTextEditors (editor) -> #...
Store a global reference to File-Icons package
Store a global reference to File-Icons package
CoffeeScript
isc
Alhadis/Atom-PhoenixTheme
01dc8159c306846b39fae2079fbcc3e6c3ae0c89
test/all-tests.coffee
test/all-tests.coffee
{expect} = require 'chai' # For some reason, this navbar component test will have warnings about setting # state when component is unmounted if it's after some of the other specs. # The tests still run and progress just fine despite the warnings, but for now, # I'm leaving this test here. # TODO figure out why. requir...
{expect} = require 'chai' # For some reason, this navbar component test will have warnings about setting # state when component is unmounted if it's after some of the other specs. # The tests still run and progress just fine despite the warnings, but for now, # I'm leaving this test here. # TODO figure out why. requir...
Revert "adding in footer tests"
Revert "adding in footer tests" This reverts commit 1fb940d58d5d73703317828d3ec70b2fb5af6813.
CoffeeScript
agpl-3.0
openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js
8618c5a7bddac65739474dc3d886fd95f3a8e9ca
app/assets/javascripts/channels/page_update.coffee
app/assets/javascripts/channels/page_update.coffee
$(document).on 'turbolinks:load', -> page_id = $('.content').data('page-id') if page_id App.updates = App.cable.subscriptions.create { channel: "PageUpdateChannel", page_id: page_id }, connected: -> # Called when the subscription is ready for use on the server console.log "Connected to " ...
$(document).on 'turbolinks:load', -> page_id = $('.content').data('page-id') if page_id App.updates = App.cable.subscriptions.create { channel: "PageUpdateChannel", page_id: page_id }, connected: -> # Called when the subscription is ready for use on the server console.log "Connected to " ...
Fix missing time formatting on receiving update
ActionCable: Fix missing time formatting on receiving update
CoffeeScript
mit
ledermann/docker-rails,ledermann/docker-rails,ledermann/docker-rails,ledermann/docker-rails
beb793f4c8a46d8695902d23f14ab88a11018d9b
lib/validators/format.coffee
lib/validators/format.coffee
Q = require 'q' v = require 'validator' m = require '../messages' u = require '../utils' exports.format = (model, property, options) -> d = Q.defer() if options.constructor is RegExp options = "with": options if !options.message? options.message = m.messages.invalid if u.i...
Q = require 'q' v = require 'validator' m = require '../messages' u = require '../utils' exports.format = (model, property, options) -> d = Q.defer() if options.constructor is RegExp options = "with": options if !options.message? options.message = m.messages.invalid #Ensur...
Format Validator: Throw exception if regexp is invalid.
Format Validator: Throw exception if regexp is invalid.
CoffeeScript
apache-2.0
asaf/nodejs-model
fb07ecae52bc4980ee8e6add3051939661339110
menus/encoding-selector.cson
menus/encoding-selector.cson
'menu': [ 'label': 'Edit' 'submenu': [ 'label': 'Select Encoding' 'command': 'encoding-selector:show' ] ] 'context-menu': 'atom-text-editor': [ 'label': 'Change Encoding' 'command': 'encoding-selector:show' ]
'menu': [ 'label': 'Edit' 'submenu': [ 'label': 'Select Encoding' 'command': 'encoding-selector:show' ] ] 'context-menu': 'atom-text-editor:not([mini])': [ 'label': 'Change Encoding' 'command': 'encoding-selector:show' ]
Remove Change Encoding from mini editors
Remove Change Encoding from mini editors
CoffeeScript
mit
pombredanne/encoding-selector,atom/encoding-selector
64a786d901f417f8a59b91f48009204192fe9dc2
src/tub.coffee
src/tub.coffee
# Tub class YAML = require 'yamljs' class TubConfig constructor: (tub, appdir, yml) -> # body... @dir = appdir @tub = tub @file = "#{@dir}/.jakhu/#{@tub}tub_config.yml" @yml = yml @yaml = {} fs.openSync @file create: (args) -> # body... @yaml.name = @tub @yaml.language = @yml...
# Tub class YAML = require 'yamljs' class TubConfig constructor: (tub, appdir, yml) -> # body... @dir = appdir @tub = tub @file = "#{@dir}/.jakhu/#{@tub}tub_config.yml" @yml = yml @yaml = {} fs.openSync @file create: (args) -> # body... @yaml.name = @tub @yaml.language = @yml...
Fix bug to use correct constructor
Fix bug to use correct constructor
CoffeeScript
mit
Gum-Joe/Web-OS-container,Gum-Joe/boss-container,Gum-Joe/jakhu-container
4e5b32c7762ca8bd9b59eac0998fe0b5ac4c5e7c
src/coffee/cilantro/ui/query/loader.coffee
src/coffee/cilantro/ui/query/loader.coffee
define [ 'underscore' 'marionette' '../core' 'tpl!templates/query/loader.html' ], (_, Marionette, c, templates...) -> templates = _.object ['loader'], templates class QueryLoader extends Marionette.ItemView className: 'query-loader' template: templates.loader ui: ...
define [ 'underscore' 'marionette' '../core' 'tpl!templates/query/loader.html' ], (_, Marionette, c, templates...) -> templates = _.object ['loader'], templates class QueryLoader extends Marionette.ItemView className: 'query-loader' template: templates.loader ui: ...
Use simpler method for retrieving the requested query ID
Use simpler method for retrieving the requested query ID
CoffeeScript
bsd-2-clause
chop-dbhi/cilantro,chop-dbhi/cilantro,chop-dbhi/cilantro
9d521329b37d602387a028760813021774546326
Gruntfile.coffee
Gruntfile.coffee
module.exports = (grunt) -> # Task definitions grunt.initConfig({ less: dist: files: "playing-cards.css": "playing-cards.less" cssmin: dist: src: "playing-cards.css" expand: true ext: ".min.css" ...
module.exports = (grunt) -> # Task definitions grunt.initConfig({ less: dist: files: "playing-cards.css": "playing-cards.less" cssmin: dist: src: "playing-cards.css" expand: true ext: ".min.css" ...
Make watch monitor for svg changes too
Make watch monitor for svg changes too
CoffeeScript
mit
MattCain/svg-playing-cards
a2d156e97b7ab51fca5f36c0838a9a808416dfe8
event_loop.coffee
event_loop.coffee
seconds = 1000 module.exports = EventLoopMonitor = monitor: (logger) -> interval = setInterval () -> EventLoopMonitor.Delay() , 1 * seconds Metrics = require "./metrics" Metrics.registerDestructor () -> clearInterval(interval) Delay: () -> Metrics = require "./metrics" t1 = process.hrtime() setI...
module.exports = EventLoopMonitor = monitor: (logger, interval = 1000, log_threshold = 100) -> Metrics = require "./metrics" previous = Date.now() intervalId = setInterval () -> now = Date.now() offset = now - previous - interval if offset > log_threshold logger.warn {offset: offset}, "slow event...
Monitor event loop by looking for skew
Monitor event loop by looking for skew If we monitor with setImmediate, we miss big blocking loops. For example, suppose we have 1000 1ms loops then a single bad 1000ms loop. setImmediate will only be called at the right time 1/1000 of the time (it has to be the loop just before the bad one). So this monitoring method...
CoffeeScript
mit
sharelatex/metrics-sharelatex
6c26131d42576ee974f25029357d8b8be2c6e55d
config/generateShellEnv.coffee
config/generateShellEnv.coffee
traverse = require 'traverse' module.exports.create = (KONFIG, options = {}) -> env = '' add = (name, value) -> env += "export #{name}=${#{name}:-#{value}}\n" traverse.paths(KONFIG).forEach (path) -> node = traverse.get KONFIG, path return if typeof node is 'object' add "KONFIG_#{path.join('_...
traverse = require 'traverse' module.exports.create = (KONFIG, options = {}) -> env = '' add = (name, value) -> env += "export #{name}=${#{name}:-#{value}}\n" traverse.paths(KONFIG).forEach (path) -> node = traverse.get KONFIG, path return if typeof node is 'object' add "KONFIG_#{path.join('_...
Read JSON environment file into KONFIG_JSON environment variable
Read JSON environment file into KONFIG_JSON environment variable Signed-off-by: Sonmez Kartal <d2d15c3d37396a5f2a09f8b42cf5f27d43a3fbde@koding.com>
CoffeeScript
agpl-3.0
sinan/koding,mertaytore/koding,andrewjcasal/koding,acbodine/koding,szkl/koding,gokmen/koding,sinan/koding,alex-ionochkin/koding,rjeczalik/koding,usirin/koding,sinan/koding,andrewjcasal/koding,koding/koding,cihangir/koding,gokmen/koding,usirin/koding,jack89129/koding,mertaytore/koding,szkl/koding,acbodine/koding,gokmen/...
2131a4b4dc6556c6c0b629bc28bb37125e26de6c
lib/directory-view.coffee
lib/directory-view.coffee
{View} = require 'space-pen' FileView = require './file-view' module.exports = class DirectoryView extends View @content: (archivePath, entry) -> @li class: 'list-nested-item entry', => @span class: 'list-item', => @span entry.getName(), class: 'icon icon-file-directory' @ol class: 'list-tree...
{View} = require 'space-pen' FileView = require './file-view' module.exports = class DirectoryView extends View @content: (archivePath, entry) -> @li class: 'list-nested-item entry', => @span class: 'list-item', => @span entry.getName(), class: 'directory icon icon-file-directory' @ol class: ...
Add back directory class to directory view
Add back directory class to directory view
CoffeeScript
mit
atom/archive-view
09e4bc9e294d9252d6124597c3fe65765331458e
server/lib/token_authentication.coffee
server/lib/token_authentication.coffee
authenticateToken = (token) -> env_token = process.env.AUTH_TOKEN if env_token? && token? return env_token == token return false module.exports = (req, res, next) -> if _.contains(["POST", "DELETE"], req.method) unless authenticateToken(req.query.token || null) return res.send(401, 'Unauthorise...
authenticateToken = (token) -> env_token = process.env.AUTH_TOKEN if env_token? && token? return env_token == token return false module.exports = (req, res, next) -> unless authenticateToken(req.query.token || null) return res.send(401, 'Unauthorised') next()
Remove unnecessary method check for token auth
Remove unnecessary method check for token auth Since we're not using express-resource for uses anymore, we can just apply the token auth middleware directly to the routes we want
CoffeeScript
bsd-3-clause
unepwcmc/NRT,unepwcmc/NRT
cc27d23adc083ec8dcec682c439cc0e03f9cbefa
app/scripts/app.coffee
app/scripts/app.coffee
'use strict' ###* # @ngdoc overview # @name blogarashikecomApp # @description # # blogarashikecomApp # # Main module of the application. ### angular .module 'arashike-blog', [ 'ngAnimate' 'ngAria' 'ngCookies' 'ngMessages' 'ngResource' 'ngRoute' 'ngSanitize' 'ngTouch' 'ngMate...
'use strict' ###* # @ngdoc overview # @name blogarashikecomApp # @description # # blogarashikecomApp # # Main module of the application. ### angular .module 'arashike-blog', [ 'ngAnimate' 'ngAria' 'ngCookies' 'ngMessages' 'ngResource' 'ngRoute' 'ngSanitize' 'ngTouch' 'ngMate...
Change gist user to JumpeiArashi-blog
Change gist user to JumpeiArashi-blog
CoffeeScript
mit
JumpeiArashi/blog.arashike.com,JumpeiArashi/blog.arashike.com
05e3bad3f8cdff23f36d5ac76f024daa3542be50
workers/social/lib/social/models/sharedmachine.coffee
workers/social/lib/social/models/sharedmachine.coffee
bongo = require 'bongo' {secure} = bongo JMachine = require './computeproviders/machine' module.exports = class SharedMachine extends bongo.Base @share() setUsers = (client, uid, options, callback) -> options.permanent = yes JMachine.shareByUId client, uid, options, callback
bongo = require 'bongo' {secure} = bongo JMachine = require './computeproviders/machine' module.exports = class SharedMachine extends bongo.Base @share() @add = secure (client, uid, target, callback) -> asUser = yes options = {target, asUser} setUsers client, uid, options, callback setUsers...
Define shared machine user add method
Define shared machine user add method
CoffeeScript
agpl-3.0
cihangir/koding,acbodine/koding,usirin/koding,sinan/koding,kwagdy/koding-1,alex-ionochkin/koding,jack89129/koding,gokmen/koding,koding/koding,koding/koding,koding/koding,mertaytore/koding,usirin/koding,alex-ionochkin/koding,mertaytore/koding,cihangir/koding,kwagdy/koding-1,rjeczalik/koding,andrewjcasal/koding,jack89129...
359cb51263ad1ebff047e292e2336970cf51cf64
client/admin/lib/views/stacks/editors/variableseditorview.coffee
client/admin/lib/views/stacks/editors/variableseditorview.coffee
BaseStackEditorView = require './basestackeditorview' module.exports = class VariablesEditorView extends BaseStackEditorView constructor: (options = {}, data) -> unless options.content options.content = """ # This is a YAML file which you can define # key-value pairs like; # ...
BaseStackEditorView = require './basestackeditorview' module.exports = class VariablesEditorView extends BaseStackEditorView constructor: (options = {}, data) -> unless options.content options.content = """ # Define custom variables here # You can define your custom variables, and use the...
Update yaml content with information.
VariablesEditorView: Update yaml content with information.
CoffeeScript
agpl-3.0
koding/koding,mertaytore/koding,acbodine/koding,sinan/koding,jack89129/koding,koding/koding,szkl/koding,kwagdy/koding-1,kwagdy/koding-1,kwagdy/koding-1,kwagdy/koding-1,mertaytore/koding,rjeczalik/koding,usirin/koding,jack89129/koding,rjeczalik/koding,cihangir/koding,drewsetski/koding,usirin/koding,andrewjcasal/koding,d...
9c18f3fb6a1aade4aaf3a5148b047e729bbd5b26
LoggerFactory.coffee
LoggerFactory.coffee
class LoggerFactory instance = null @get: -> instance ?= new LoggerFactory createLogger: (namespace, defaultLevel = 'info')-> log.debug 'LoggerFactory.createLogger()', arguments expect(namespace).to.be.a('string').that.is.ok prefix = namespace + ':' expect(Loglevel).to.be.a 'functi...
class LoggerFactory instance = null @get: -> instance ?= new LoggerFactory createLogger: (namespace, defaultLevel = 'info')-> log.debug 'LoggerFactory.createLogger()', arguments if namespace? expect(namespace).to.be.a('string') prefix = namespace + ':' expect(Loglevel).to....
Make namespace optional in log factory
Make namespace optional in log factory
CoffeeScript
mit
practicalmeteor/meteor-loglevel,solderzzc/meteor-loglevel
e363773e3cda2498c20044dc76409339311ef00c
keymaps/symbols-view.cson
keymaps/symbols-view.cson
'.editor': 'meta-j': 'symbols-view:toggle-file-symbols' 'meta-.': 'symbols-view:go-to-declaration' 'body': 'meta-J': 'symbols-view:toggle-project-symbols'
'.editor': 'ctrl-j': 'symbols-view:toggle-file-symbols' 'meta-.': 'symbols-view:go-to-declaration' 'body': 'ctrl-J': 'symbols-view:toggle-project-symbols'
Resolve keybinding conflict with joining lines
Resolve keybinding conflict with joining lines
CoffeeScript
mit
atom/symbols-view,kainwinterheart/symbols-view,rodumani/symbols-view,spencerlyon2/symbols-view,spencerlyon2/symbols-view,changjej/symbols-view,harai/atom-gnu-global,harai/atom-gnu-global,changjej/symbols-view,rodumani/symbols-view
1dbe4433d61456f646393307d849dd33e3ed7a3f
src/scripts/modules/media/latest/latest.coffee
src/scripts/modules/media/latest/latest.coffee
define (require) -> settings = require('cs!settings') BaseView = require('cs!helpers/backbone/views/base') template = require('hbs!./latest-template') require('less!./latest') return class LatestView extends BaseView template: template templateHelpers: url: () -> id = @model.get('id').s...
define (require) -> settings = require('cs!settings') BaseView = require('cs!helpers/backbone/views/base') template = require('hbs!./latest-template') require('less!./latest') return class LatestView extends BaseView template: template templateHelpers: url: () -> id = @model.get('id').s...
Convert urls from /content to /contents
Convert urls from /content to /contents
CoffeeScript
agpl-3.0
Connexions/webview,katalysteducation/webview,dak/webview,dak/webview,carolinelane10/webview,Connexions/webview,dak/webview,katalysteducation/webview,Connexions/webview,Connexions/webview,katalysteducation/webview,katalysteducation/webview
46f539706265bd3802105ee1a5b012bcf917aa00
src/scripts/modules/media/tabs/contents/leaf.coffee
src/scripts/modules/media/tabs/contents/leaf.coffee
define (require) -> $ = require('jquery') router = require('cs!router') analytics = require('cs!helpers/handlers/analytics') BaseView = require('cs!helpers/backbone/views/base') template = require('hbs!./leaf-template') require('less!./leaf') return class TocNodeView extends BaseView template: templa...
define (require) -> $ = require('jquery') router = require('cs!router') analytics = require('cs!helpers/handlers/analytics') BaseView = require('cs!helpers/backbone/views/base') template = require('hbs!./leaf-template') require('less!./leaf') return class TocNodeView extends BaseView template: templa...
Include version numbers in ToC links
Include version numbers in ToC links
CoffeeScript
agpl-3.0
dak/webview,katalysteducation/webview,Connexions/webview,Connexions/webview,katalysteducation/webview,Connexions/webview,dak/webview,dak/webview,Connexions/webview,katalysteducation/webview,carolinelane10/webview,katalysteducation/webview
a27eb0aa9fda63ccf443b4c62e6d26a11a3b341a
scripts/lockstep-cron.coffee
scripts/lockstep-cron.coffee
CronJob = require('cron').CronJob module.exports = (robot) -> jobList = [ { time: '30 10 * * 1-5', msg: '@channel Tea Time!' } { time: '00 17 * * 5', msg: '@channel Beer & Pokdeng Time!' } ] # for job in jobList # cronJob = new CronJob job.time, => # robot.messageRoom '#general', job.msg # ...
CronJob = require('cron').CronJob module.exports = (robot) -> jobList = [ { time: '30 10 * * 1-5', msg: '@channel Tea Time!' } { time: '00 17 * * 5', msg: '@channel Beer & Pokdeng Time!' } ] # for job in jobList # cronJob = new CronJob job.time, => # robot.messageRoom '#general', job.msg # ...
Add turn off air filter
Add turn off air filter
CoffeeScript
mit
lockstep/lockbot
772742a73148d3a716cc8e85468b084bf06ee534
server/server_timeout.coffee
server/server_timeout.coffee
if Meteor.isServer @Sessions = new Meteor.Collection("session_timeouts") Meteor.methods( { session_heartbeat: -> user_id = Meteor.userId() return unless user_id old_session = Sessions.findOne({user_id: user_id}) if old_session? Sessions.update({user_id: user_i...
if Meteor.isServer @Sessions = new Meteor.Collection("session_timeouts") Meteor.methods( { session_heartbeat: -> user_id = Meteor.userId() return unless user_id old_session = Sessions.findOne({user_id: user_id}) if old_session? Sessions.update({user_id: user_i...
Increase timeouts to decrease server resources consumption
Increase timeouts to decrease server resources consumption
CoffeeScript
mit
recursivefaults/meteor-session-timeout
65c1a62cb70ab139d528c9381dc27ab01e12d1ee
services/web/public/coffee/ide/chat/controllers/ChatMessageController.coffee
services/web/public/coffee/ide/chat/controllers/ChatMessageController.coffee
define [ "base" "ide/colors/ColorManager" ], (App, ColorManager) -> App.controller "ChatMessageController", ["$scope", "ide", ($scope, ide) -> $scope.hue = (user) -> ColorManager.getHueForUserId(user.id) ]
define [ "base" "ide/colors/ColorManager" ], (App, ColorManager) -> App.controller "ChatMessageController", ["$scope", "ide", ($scope, ide) -> $scope.hue = (user) -> if !user? return 0 else return ColorManager.getHueForUserId(user.id) ]
Add in null check for user when getting hue in chat
Add in null check for user when getting hue in chat
CoffeeScript
agpl-3.0
sharelatex/sharelatex
71c0663f82d2ed18992c819ad946b14fd33eb504
lib/views/select-stage-hunk-file-view.coffee
lib/views/select-stage-hunk-file-view.coffee
{$$, BufferedProcess, SelectListView} = require 'atom' SelectStageHunks = require './select-stage-hunks-view' git = require '../git' module.exports = class SelectStageHunkFile extends SelectListView initialize: (items) -> super @addClass 'overlay from-top' @setItems items atom.workspaceView.append ...
{BufferedProcess} = require 'atom' {$$, SelectListView} = require 'atom-space-pen-views' SelectStageHunks = require './select-stage-hunks-view' git = require '../git' module.exports = class SelectStageHunkFile extends SelectListView initialize: (items) -> super @show() @setItems items @focusFilterE...
Upgrade stage hunk file view
Upgrade stage hunk file view
CoffeeScript
mit
akonwi/git-plus,akonwi/git-plus
27785c9d44244173781394055aa2590cab772d11
src/coffee/cilantro/changelog.coffee
src/coffee/cilantro/changelog.coffee
# The changelog not only lists the significant changes in the interface, # but provides a mechanism to hook into the tour or display a help menu. # The changelog is an array of _version_ objects. Each version has a summary # and an array of changes. define -> return [ version: '2.0.0' changes: [ ...
# The changelog not only lists the significant changes in the interface, # but provides a mechanism to hook into the tour or display a help menu. # The changelog is an array of _version_ objects. Each version has a summary # and an array of changes. define -> return [ version: '2.0.1' changes: [] ...
Add change log entry for 2.0.1
Add change log entry for 2.0.1
CoffeeScript
bsd-2-clause
chop-dbhi/cilantro,chop-dbhi/cilantro,chop-dbhi/cilantro
c7e3d66d6aa1ddd5aa8fae9e255a322fb735af7d
app/assets/javascripts/strut_builder/textbox.js.coffee
app/assets/javascripts/strut_builder/textbox.js.coffee
window.StrutBuilder ||= {} StrutBuilder.Textbox = {} StrutBuilder.Textbox.build = (data, i) -> { TextBox: {}, x: 341, y: 65 * (i+1), scale: {"x":1, "y":1}, type: "TextBox", text: "<font data-position=\"" + data.position + "\" data-animation=\"" + data.animation + "\" data-duration=\"" + dat...
window.StrutBuilder ||= {} StrutBuilder.Textbox = {} faces = [ 'Lato', 'League Gothic, sans-serif', 'Droid Sans Mono, monospace', 'Ubuntu, sans-serif', 'Abril Fatface, cursive', 'Hammersmith One, sans-serif', 'Fredoka One, cursive', 'Gorditas, cursive', 'Press Start 2P, cursive' ] randomFace = -> faces[Math.floor(Ma...
Add font face, bold/italic randomization
Add font face, bold/italic randomization
CoffeeScript
mit
shirshendu/kine_type,shirshendu/kine_type,shirshendu/kine_type,shirshendu/kine_type
746d530a34873d8e3e882bfe8d58122ea4aecfe4
gulpfile.coffee
gulpfile.coffee
gulp = require 'gulp' del = require 'del' haml = require 'gulp-haml' sourcemaps = require 'gulp-sourcemaps' coffee = require 'gulp-coffee' serve = require './serve.coffee' bower = require 'main-bower-files' SRC = 'src' DEST = 'out' gulp.task 'default', ['haml', 'coffee', 'bower'] gul...
gulp = require 'gulp' del = require 'del' haml = require 'gulp-haml' sourcemaps = require 'gulp-sourcemaps' coffee = require 'gulp-coffee' serve = require './serve.coffee' bower = require 'main-bower-files' SRC = 'src' DEST = 'out' gulp.task 'default', ['haml', 'coffee', 'bower'] gul...
Move Bower Dependencies Out of scripts/
Move Bower Dependencies Out of scripts/ Since they're not all scripts.
CoffeeScript
unlicense
arashikou/exper3-2015
00c4d96acc417b3b1d13854bc324b9eefd47aa00
client/app/lib/util/formatQuotes.coffee
client/app/lib/util/formatQuotes.coffee
Encoder = require 'htmlencode' module.exports = (text = '') -> input = Encoder.htmlDecode text return text unless (/^>/gm).test input val = '' for line in input.split '\n' line += '\n' if line[0] is '>' val += "#{line}\n" return val
Encoder = require 'htmlencode' module.exports = (text = '') -> input = Encoder.htmlDecode text return text unless (/^>/gm).test input val = '' for line in input.split '\n' line = if line[0] is '>' then ">#{Encoder.XSSEncode line.substring 1}" else Encoder.XSSEncode line val += "#{line}\n...
Apply XSS encoding in format quotes utility function
Apply XSS encoding in format quotes utility function
CoffeeScript
agpl-3.0
alex-ionochkin/koding,koding/koding,szkl/koding,drewsetski/koding,usirin/koding,andrewjcasal/koding,koding/koding,drewsetski/koding,mertaytore/koding,gokmen/koding,kwagdy/koding-1,rjeczalik/koding,alex-ionochkin/koding,usirin/koding,cihangir/koding,szkl/koding,cihangir/koding,cihangir/koding,kwagdy/koding-1,drewsetski/...
3b281f3abaae30ca4028f361e0322c8aa38b258e
client/lanes/components/shared/ToggleField.cjsx
client/lanes/components/shared/ToggleField.cjsx
class Lanes.Components.ToggleField extends Lanes.React.Component mixins: [ Lanes.Components.Form.FieldMixin ] formGroupClass: 'toggle' renderDisplayValue: -> <Lanes.Vendor.ReactToggle defaultChecked={!!@props.model[@props.name]} disabled={true} /> handleToggle...
class Lanes.Components.ToggleField extends Lanes.React.Component mixins: [ Lanes.Components.Form.FieldMixin ] formGroupClass: 'toggle' renderDisplayValue: -> <Lanes.Vendor.ReactToggle defaultChecked={!!@props.model[@props.name]} checked={!!@props.model[@props.name]} ...
Set checked property on togglefield
Set checked property on togglefield
CoffeeScript
mit
argosity/lanes,argosity/lanes,argosity/hippo,argosity/hippo,argosity/lanes,argosity/hippo
f696dccc96fa6c6b39221e62627a4828c3d2de5e
router.coffee
router.coffee
Router.map -> @route "entrySignIn", path: "/sign-in" onBeforeRun: -> Session.set('entryError', undefined) Session.set('buttonText', 'in') @route "entrySignUp", path: "/sign-up" onBeforeRun: -> Session.set('entryError', undefined) Session.set('buttonText', 'up') @route "e...
Router.map -> @route "entrySignIn", path: "/sign-in" onBeforeRun: -> Session.set('entryError', undefined) Session.set('buttonText', 'in') @route "entrySignUp", path: "/sign-up" onBeforeRun: -> Session.set('entryError', undefined) Session.set('buttonText', 'up') @route "e...
Fix undefined error in sign-out route
Fix undefined error in sign-out route
CoffeeScript
mit
valedaemon/accounts-entry,mike623/accounts-entry,vhmh2005/accounts-entry,Noamyoungerm/accounts-entry,mauriciovieira/accounts-entry,RiffynInc/meteor-accounts-entry,vhmh2005/accounts-entry,txs/meteor-wecare-accounts-entry-flow-blaze,selaias/accounts-entry,mike623/accounts-entry,Noamyoungerm/accounts-entry,txs/meteor-weca...
45e57a437e50d922cf3ed2b2d85e3d829e19523a
router.coffee
router.coffee
Router.map -> @route 'blogIndex', path: '/blog' before: -> if Blog.settings.blogIndexTemplate @template = Blog.settings.blogIndexTemplate waitOn: -> Meteor.subscribe 'posts' data: -> posts: Post.where published: true @route 'blogShow', path: '/blog/:slug' notFound...
Router.map -> @route 'blogIndex', path: '/blog' before: -> if Blog.settings.blogIndexTemplate @template = Blog.settings.blogIndexTemplate waitOn: -> [ Meteor.subscribe 'posts' Meteor.subscribe 'users' ] data: -> posts: Post.where published: true @route 'blogShow',...
Fix bug where every blog author was 'Mystery author' on blog index page
Fix bug where every blog author was 'Mystery author' on blog index page
CoffeeScript
mit
hwillson/meteor-blog,meteor-blog/meteor-blog,SierraGolf/meteor-blog,waitingkuo/meteor-blog,Differential/meteor-blog,parkeasz/meteor-blog,DavidSichau/meteor-blog,waitingkuo/meteor-blog,discdiver/meteor-blog,dj0nes/meteor-blog,tranc99/meteor-blog-1,arunoda/meteor-blog,NIKKTTO/meteor-blog,dubvfan87/meteor-blog,Differentia...
93ba1d147042de7da5a88f84b486da9e8048c284
gulp/webpack_config.coffee
gulp/webpack_config.coffee
class WebpackConfig getDefaultConfiguration: -> module: loaders: [ {test: /\.coffee$/i, loader: 'coffee-loader'} ] resolve: extensions: ['', '.js', '.coffee'] module.exports = new WebpackConfig
webpackStream = require 'webpack-stream' NormalModuleReplacementPlugin = webpackStream.webpack.NormalModuleReplacementPlugin class WebpackConfig getDefaultConfiguration: -> module: loaders: [ {test: /\.coffee$/i, loader: 'coffee-loader'} ] noParse: [ /node_modules\/sinon\/pkg\...
Use current stable version of Sinon.JS, require browser packaged version when using webpack, fix usage of sinon-chai
Use current stable version of Sinon.JS, require browser packaged version when using webpack, fix usage of sinon-chai
CoffeeScript
mit
efacilitation/eventric
70a8001b58cd26707cc3ca602c54029e26714ae7
lib/spell-check.coffee
lib/spell-check.coffee
SpellCheckView = null module.exports = configDefaults: grammars: [ 'text.plain' 'source.gfm' 'text.git-commit' ] createView: (editorView) -> SpellCheckView ?= require './spell-check-view' new SpellCheckView(editorView) activate: -> atom.workspaceView.eachEditorView (editor...
SpellCheckView = null module.exports = configDefaults: grammars: [ 'text.plain' 'source.gfm' 'text.git-commit' ] activate: -> @editorSubscription = atom.workspaceView.eachEditorView(addViewToEditor) deactivate: -> @editorSubscription?.off() addViewToEditor = (editorView) -> ...
Implement deactivate that offs subscription
Implement deactivate that offs subscription
CoffeeScript
mit
atom/spell-check
b410445ce9ac996ee58f6564b2bb0525d65a951b
static/js/party-list.coffee
static/js/party-list.coffee
class PartyListView extends Backbone.View el: $('div.party-list') el_gov: $('ul.party-list-government') el_oppo: $('ul.party-list-opposition') render: -> @collection.forEach @render_one, @ return @ render_one: (party) -> if party.get "governing_party" el = @el_g...
class PartyListView extends Backbone.View el: $('div.party-list') el_gov: $('ul.party-list-government') el_oppo: $('ul.party-list-opposition') render: -> @collection.forEach @render_one, @ return @ render_one: (party) -> if party.get "governing_party" el = @el_g...
Sort party list in descending order
Sort party list in descending order
CoffeeScript
agpl-3.0
kansanmuisti/kamu,kansanmuisti/kamu,kansanmuisti/kamu,kansanmuisti/kamu,kansanmuisti/kamu
bcf6b344136539710835f6968962fe9b3ae60ea7
lib/file.coffee
lib/file.coffee
store = new FS.Store.FileSystem "images", path: "~/uploads" fileKeyMaker: (fileObj) -> filename = fileObj.name() filenameInStore = fileObj.name({store: 'images'}) return filenameInStore || filename @Images = new FS.Collection "images", stores: [store] @Images.allow insert: -> return true update: -> re...
uploadPath = "~/uploads" store = new FS.Store.FileSystem "images", path: uploadPath fileKeyMaker: (fileObj) -> filename = fileObj.name() filenameInStore = fileObj.name({store: 'images'}) return filenameInStore || filename @Images = new FS.Collection "images", stores: [store] @Images.allow insert: -> ret...
Create url for avatar download
Create url for avatar download
CoffeeScript
mit
williamfortunademoraes/Rocket.Chat,phlkchan/Rocket.Chat,fduraibi/Rocket.Chat,florinnichifiriuc/Rocket.Chat,christmo/Rocket.Chat,Movile/Rocket.Chat,cnash/Rocket.Chat,coreyaus/Rocket.Chat,celloudiallo/Rocket.Chat,soonahn/Rocket.Chat,Sing-Li/Rocket.Chat,sscpac/chat-locker,bt/Rocket.Chat,webcoding/Rocket.Chat,mrsimpson/Roc...
3233bc40b86a95ef6ec53498afb3cb55abe6938d
lib/main.coffee
lib/main.coffee
GitHubFile = require './github-file' module.exports = configDefaults: includeLineNumbersInUrls: true activate: -> return unless atom.project.getRepo()? atom.workspaceView.eachPaneView (pane) -> pane.command 'open-on-github:file', -> if itemPath = getActivePath() GitHubFile.fr...
GitHubFile = require './github-file' module.exports = configDefaults: includeLineNumbersInUrls: true activate: -> return unless atom.project.getRepo()? atom.workspace.observePanes (pane) -> atom.commands.add atom.views.getView(pane), 'open-on-github:file': -> if itemPath = ge...
Use atom.commands to register commands
Use atom.commands to register commands
CoffeeScript
mit
atom/open-on-github
d51f8d7413a254d819041c24499d23e292407976
app/assets/javascripts/static.js.coffee
app/assets/javascripts/static.js.coffee
# Place all the behaviors and hooks related to the matching controller here. # All this logic will automatically be available in application.js. # You can use CoffeeScript in this file: http://coffeescript.org/ $ -> animateMetric = $(".metric-box strong").each -> $this = $(this) starting_point = 0 $targe...
# 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/ $ -> animateMetric = $(".metric-box strong").each -> $this = $(this) starting_point = 0 $targe...
Remove setting count to zero, it makes it cluncky
Remove setting count to zero, it makes it cluncky
CoffeeScript
agpl-3.0
openaustralia/morph,otherchirps/morph,otherchirps/morph,otherchirps/morph,openaustralia/morph,otherchirps/morph,otherchirps/morph,openaustralia/morph,openaustralia/morph,otherchirps/morph,openaustralia/morph,openaustralia/morph,otherchirps/morph,openaustralia/morph
1ef4831e14a5cc1a8c01390b13a6f52419f283ae
js/outer.coffee
js/outer.coffee
# Placeholder Polyfill # https://github.com/mathiasbynens/jquery-placeholder $(window).load -> $("input, textarea").placeholder() # Sammy (($) -> circle = $.sammy("body", -> # Page class Page constructor: (@name, @title) -> render: -> document.title = "Circle - " + @title $("b...
# Placeholder Polyfill # https://github.com/mathiasbynens/jquery-placeholder $(window).load -> $("input, textarea").placeholder() # Sammy (($) -> circle = $.sammy("body", -> # Page class Page constructor: (@name, @title) -> render: -> document.title = "Circle - " + @title $("b...
Load method for future preloading
Load method for future preloading
CoffeeScript
epl-1.0
RayRutjes/frontend,circleci/frontend,circleci/frontend,prathamesh-sonpatki/frontend,circleci/frontend,prathamesh-sonpatki/frontend,RayRutjes/frontend
f1f2cb6b41d2c261013d656c96da74ba9d213485
src/ls-archive-cli.coffee
src/ls-archive-cli.coffee
path = require 'path' optimist = require 'optimist' async = require 'async' archive = require './ls-archive' module.exports = -> files = optimist.usage('Usage: lsa [file ...]') .demand(1).argv._ queue = async.queue (archivePath, callback) -> do (archivePath) -> archive.list archivePath, (error, files) ->...
path = require 'path' optimist = require 'optimist' async = require 'async' archive = require './ls-archive' module.exports = -> files = optimist.usage('Usage: lsa [file ...]') .demand(1).argv._ queue = async.queue (archivePath, callback) -> do (archivePath) -> archive.list archivePath, (error, files) ->...
Use correct path in error message
Use correct path in error message
CoffeeScript
mit
atom/node-ls-archive,jogleasonjr/node-ls-archive
0efc0e275a66dc8846262e4afd9324cd2f3f68de
core/app/backbone/views/channels/favourite_topic_button_view.coffee
core/app/backbone/views/channels/favourite_topic_button_view.coffee
class window.FavouriteTopicButtonView extends ActionButtonView mini: true onRender: -> @updateButton() initialize: -> @bindTo @model, 'change', @updateButton, @ @user = currentUser templateHelpers: => disabled_label: Factlink.Global.t.follow.capitalize() disable_label: Factlink.Global.t.unfo...
class window.FavouriteTopicButtonView extends ActionButtonView mini: true onRender: -> @updateButton() initialize: -> @bindTo @model, 'change', @updateButton, @ @user = currentUser templateHelpers: => disabled_label: Factlink.Global.t.favourite.capitalize() disable_label: Factlink.Global.t.u...
Use correct labels for 'Favourite' button
Use correct labels for 'Favourite' button
CoffeeScript
mit
daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core,daukantas/factlink-core
0f9fa45076d9b4bb4b64f9dcc6195d84f3138def
src/scripts/httpd.coffee
src/scripts/httpd.coffee
# Description: # A simple interaction with the built in HTTP Daemon # # Dependencies: # None # # Configuration: # None # # Commands: # None # # URLS: # /hubot/version # /hubot/ping # /hubot/time # /hubot/info # /hubot/ip spawn = require('child_process').spawn module.exports = (robot) -> robot.rou...
# Description: # A simple interaction with the built in HTTP Daemon # # Dependencies: # None # # Configuration: # None # # Commands: # None # # URLS: # /hubot/version # /hubot/ping # /hubot/time # /hubot/info # /hubot/ip spawn = require('child_process').spawn module.exports = (robot) -> robot.rou...
Change url for ip route
Change url for ip route
CoffeeScript
mit
gojee/gojee-hubot-deprecated,gojee/gojee-hubot-deprecated,gojee/gojee-hubot-deprecated
d4d5d3b5ba87451ac30b0f277f627434127a84f4
src/helpers.coffee
src/helpers.coffee
Point = require './point' SpliceArrayChunkSize = 100000 MULTI_LINE_REGEX_REGEX = /[\r\n\[]/ module.exports = spliceArray: (originalArray, start, length, insertedArray=[]) -> if insertedArray.length < SpliceArrayChunkSize originalArray.splice(start, length, insertedArray...) else removedValues =...
Point = require './point' SpliceArrayChunkSize = 100000 MULTI_LINE_REGEX_REGEX = /\r|\n|^\[\^|[^\\]\[\^/ module.exports = spliceArray: (originalArray, start, length, insertedArray=[]) -> if insertedArray.length < SpliceArrayChunkSize originalArray.splice(start, length, insertedArray...) else re...
Make multi-line regex test more strict
Make multi-line regex test more strict Regex patterns can only match across line boundaries if they contain a carriage return, a newline, or a negated character class.
CoffeeScript
mit
atom/text-buffer,atom/text-buffer
8fba77841756b9ed21184f1b99bb5909537bf67b
static/src/scripts/app/views/IssuesListView.coffee
static/src/scripts/app/views/IssuesListView.coffee
define [ 'jquery' 'underscore' 'backbone' 'jade.templates' 'mixen' 'mixens/BaseViewMixen' 'mixens/CollectionViewMixen' ], ($, _, Backbone, jade, Mixen, BaseView, CollectionView) -> class IssuesListView extends Mixen(CollectionView, BaseView) template: jade.issues initialize: (options) -> ...
define [ 'jquery' 'underscore' 'backbone' 'jade.templates' 'mixen' 'mixens/BaseViewMixen' 'mixens/CollectionViewMixen' ], ($, _, Backbone, jade, Mixen, BaseView, CollectionView) -> class IssuesListView extends Mixen(CollectionView, BaseView) template: jade.issues initialize: (options) -> ...
Remove rouge console.log file from the issues list view
Remove rouge console.log file from the issues list view
CoffeeScript
mit
Specialkbyte/boilerplate-single-page-app,Specialkbyte/boilerplate-single-page-app
388535b1acd0442afc104c45604b21ca0a0c1d5f
lib/util.coffee
lib/util.coffee
exports.Util = last: (arr) -> arr[arr.length - 1] isString: (s) -> typeof s == 'string' || s instanceof String defineNonEnumerable: (obj, k, v) -> Object.defineProperty obj, k, value: v writable: true enumerable: false configurable: true # polyfill if Map? if not Map.prototype.it...
exports.Util = last: (arr) -> arr[arr.length - 1] isString: (s) -> typeof s == 'string' || s instanceof String defineNonEnumerable: (obj, k, v) -> Object.defineProperty obj, k, value: v writable: true enumerable: false configurable: true class exports.Map constructor: -> @cach...
Stop trying to make Map a polyfill.
Stop trying to make Map a polyfill. ES6's map does provide items(), but it returns an iterator. It only really makes sense to use it if we have `for-of` loops, so there's little point in trying to fill in that behavior at the moment.
CoffeeScript
mit
int3/metajs
3221a86cccb7237e4f383ffa81e3ea84d153ff29
snippets/promises.cson
snippets/promises.cson
".source.js": "Promise": prefix: "promise", body: """ new Promise((resolve, reject) => { \t${0} }); """ "Promise.then": prefix: "then" body: """ then((${2:value}) => { \t${0} }); """ "Promise.catch": prefix: "catch" body: """ catch(${2:(err)} => { \t...
".source.js": "Promise": prefix: "promise", body: """ new Promise((resolve, reject) => { \t${0} }); """ "Promise.ptorotype.then": prefix: "then" body: """ then(${1:(${2:value}) => { \t${0} \\}}) """ "Promise.ptorotype.catch": prefix: "catch" body: """ ca...
Add Promise.all/race/resolve/reject & improve then/catch
Add Promise.all/race/resolve/reject & improve then/catch
CoffeeScript
mit
kswedberg/atom-js-extras
ce145727acc219b227730ce5b3800b938a63ccd6
menus/tree-view.cson
menus/tree-view.cson
menu: [ { label: 'View' submenu: [ { label: 'Toggle Treeview' command: 'tree-view:toggle' } ] } ] 'context-menu': '.tree-view': 'Add File': 'tree-view:add' 'Rename': 'tree-view:move' 'Delete': 'tree-view:remove'
'menu': [ { 'label': 'View' 'submenu': [ { 'label': 'Toggle Treeview' 'command': 'tree-view:toggle' } ] } ] 'context-menu': '.tree-view': 'Add File': 'tree-view:add' 'Rename': 'tree-view:move' 'Delete': 'tree-view:remove'
Switch cson keys to be single quoted
Switch cson keys to be single quoted
CoffeeScript
mit
matthewbauer/tree-view,atom/tree-view,benjaminRomano/tree-view,learn-co/learn-ide-tree,pombredanne/tree-view-1,jasonhinkle/tree-view,ALEXGUOQ/tree-view,Galactix/tree-view,thgaskell/tree-view,rajendrant/tree-view-remote,ayumi/tree-view,samu/tree-view,cgrabowski/webgl-studio-tree-view,tomekwi/tree-view,jarig/tree-view,la...
5e078296df29efd5c29caa5ba6c8a7cf80dc15ba
core/app/assets/javascripts/base/feedback_button.coffee
core/app/assets/javascripts/base/feedback_button.coffee
$( -> $modal = $('.js-feedback-modal') $iframe = $('.js-feedback-modal iframe') iframeIsLoaded = false openFeedbackFrame = -> iframeIsLoaded = true $modal.fadeIn('fast') $iframe[0].contentWindow.updateHeight() $(".js-feedback-modal-link").on('click', -> if !$iframe.attr('src') $iframe....
$ -> $modal = $('.js-feedback-modal') $iframe = $('.js-feedback-modal iframe') iframeIsLoaded = false openFeedbackFrame = -> iframeIsLoaded = true $modal.fadeIn('fast') $iframe[0].contentWindow.updateHeight() $(".js-feedback-modal-link").on 'click', -> if !$iframe.attr('src') $iframe.a...
Remove some parens per @markijbema's suggestion.
Remove some parens per @markijbema's suggestion.
CoffeeScript
mit
daukantas/factlink-core,Factlink/factlink-core,daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core,daukantas/factlink-core
8173bc3258f752f68ec0d071c970deb623a1a1a8
core/app/backbone/factlink/make_tooltip_for_view.coffee
core/app/backbone/factlink/make_tooltip_for_view.coffee
Backbone.Factlink ||= {} class TooltipCreator constructor: (@_$offsetParent, @_positioning, @_tooltipViewFactory)-> createTooltip: ($target) -> @_positionedRegion().bindToElement $target, @_$offsetParent @_positionedRegion().show @_tooltipView() @_positionedRegion().updatePosition() @_positionedR...
Backbone.Factlink ||= {} class TooltipCreator constructor: (@_$offsetParent, @_positioning, @_tooltipViewFactory)-> createTooltip: ($target) -> @_ensureRegion() @_positionedRegion.bindToElement $target, @_$offsetParent @_positionedRegion.show @_tooltipView() @_positionedRegion.updatePosition() ...
Fix multiple tooltips in stream; don't clean up positionedRegion if it wasn't created.
Fix multiple tooltips in stream; don't clean up positionedRegion if it wasn't created.
CoffeeScript
mit
daukantas/factlink-core,Factlink/factlink-core,daukantas/factlink-core,Factlink/factlink-core,daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core
f1077e102a2036275e26aa158b0466ac82b8a8e8
Gruntfile.coffee
Gruntfile.coffee
module.exports = (grunt) -> grunt.initConfig pkgFile: 'package.json' files: adapter: ['src/adapter.js'] build: adapter: '<%= files.adapter %>' # JSHint options # http://www.jshint.com/options/ jshint: adapter: files: src: '<%= files.adapter %>' op...
module.exports = (grunt) -> grunt.initConfig pkgFile: 'package.json' files: adapter: ['src/adapter.js'] build: adapter: '<%= files.adapter %>' # JSHint options # http://www.jshint.com/options/ jshint: adapter: files: src: '<%= files.adapter %>' op...
Comment out my local tasks
Comment out my local tasks
CoffeeScript
mit
karma-runner/karma-jasmine,WalkMe/karma-jasmine,aln787/karma-jasmine,booktrack/karma-jasmine,booktrack/karma-jasmine,aln787/karma-jasmine,Tester3233/tester,karma-runner/karma-jasmine,Tester3233/tester,mastertheblaster/karma-jasmine,remy/karma-jasmine,WalkMe/karma-jasmine,remy/karma-jasmine,mastertheblaster/karma-jasmin...
37542f8db5b7554ee76cd536001fbd7f8c9ee67b
app/assets/javascripts/application.js.coffee
app/assets/javascripts/application.js.coffee
# These includes mimic the includes in the phonegap app. Everything # else is loaded in application_extra.js.coffee #= require jquery #= require myplaceonline #= require jquery.mobile #= require handlebars-v2.0.0 #= require ember-1.9.0 #= require forge.min $ -> $('body').on('change', 'select.region', -> select_...
# These includes mimic the includes in the phonegap app. Everything # else is loaded in application_extra.js.coffee #= require jquery #= require myplaceonline #= require jquery.mobile #= require handlebars-v2.0.0 #= require ember-1.9.0 #= require forge.min $ -> $('body').on('change', 'select.region', -> select_...
Save collapsibles state so that changing countries for a new location keeps the collapsible expanded
Save collapsibles state so that changing countries for a new location keeps the collapsible expanded
CoffeeScript
agpl-3.0
myplaceonline/myplaceonline_rails,myplaceonline/myplaceonline_rails,myplaceonline/myplaceonline_rails
4b1ee8092e82e2c05d72c7d807a6433c42cebee6
app/assets/javascripts/instruments.js.coffee
app/assets/javascripts/instruments.js.coffee
jQuery -> $('form').on 'click', '.remove_fields', (event) -> $(this).prev('input[type=hidden]').val('1') $(this).closest('div.question').hide() $(this).closest('fieldset').hide() event.preventDefault() $('form').on 'click', '.add_fields', (event) -> time = new Date().getTime() regexp = new ...
jQuery -> $('form').on 'click', '.remove_fields', (event) -> $(this).prev('input[type=hidden]').val('1') $(this).closest('div.question').remove() event.preventDefault() $('form').on 'click', '.add_fields', (event) -> time = new Date().getTime() regexp = new RegExp($(this).data('id'), 'g') $...
Fix question wont remove bug
Fix question wont remove bug
CoffeeScript
mit
mnipper/rails_survey,mnipper/rails_survey,DukeMobileTech/rails_survey,mnipper/rails_survey,DukeMobileTech/rails_survey,DukeMobileTech/rails_survey
d631f7b674c9e661301ed5bd708f1b16bf014989
src/size.coffee
src/size.coffee
# module.exports = class Size @create: (width, height) -> return width if width instanceof Size if Array.isArray(width) new Size(width[0], width[1]) else new Size(width, height) constructor: (width, height) -> @set(width, height) set: (@width, @height) -> [@width, @height] = @wi...
Point = require './point' # module.exports = class Size @create: (width, height) -> return width if width instanceof Size if Array.isArray(width) new Size(width[0], width[1]) else new Size(width, height) constructor: (width, height) -> @set(width, height) set: (@width, @height) -> ...
Add add method to Size
Add add method to Size
CoffeeScript
mit
benogle/curve,benogle/curve
ca84ad3c0e93fc3a84fa787477e1e853936dce3a
atom/keymap.cson
atom/keymap.cson
'atom-workspace': 'ctrl-cmd-r': 'tree-view:reveal-active-file' 'ctrl-cmd-t': 'window:run-package-specs' 'ctrl-shift-alt-t': 'custom:open-todo-list' 'atom-text-editor': 'ctrl-shift-a': 'asciidoc-preview:toggle' '.platform-darwin atom-workspace': 'ctrl-"': 'toggle-quotes:toggle' 'alt-cmd-n': 'advanced-open-fi...
'atom-workspace': 'ctrl-cmd-r': 'tree-view:reveal-active-file' 'ctrl-cmd-t': 'window:run-package-specs' 'ctrl-shift-alt-t': 'custom:open-todo-list' 'atom-text-editor': 'ctrl-shift-a': 'asciidoc-preview:toggle' 'alt-up': 'block-travel:move-up' 'alt-down': 'block-travel:move-down' '.platform-darwin atom-works...
Add key bindings for block travel
Add key bindings for block travel
CoffeeScript
mit
lee-dohm/dotfiles,lee-dohm/dotfiles,lee-dohm/dotfiles,lee-dohm/dotfiles
f3d43051320f9a3ad69f66a1c5ef8894f5ef1691
assets/javascripts/react/components/build_area.coffee
assets/javascripts/react/components/build_area.coffee
React = require 'react' R = require 'ramda' serialize = require '../../builder/serializer' SimulationHeader = require './simulation_header' Observable = require './observable' PersistencyArea = require './persistency' ResultControl = require './result_control' module.exports = React.createClass getInitialState: ->...
React = require 'react' R = require 'ramda' serialize = require '../../builder/serializer' SimulationHeader = require './simulation_header' Observable = require './observable' PersistencyArea = require './persistency' ResultControl = require './result_control' module.exports = React.createClass getInitialState: ->...
Move persistency area to the bottom
Move persistency area to the bottom
CoffeeScript
mit
urmastalimaa/reactive-visualizer,urmastalimaa/reactive-visualizer,urmastalimaa/reactive-visualizer,urmastalimaa/reactive-visualizer
5c98fe855ee75737de107726fb7a3367b866e8ec
client/lanes/lib/Templates.coffee
client/lanes/lib/Templates.coffee
ns2path = (ns)-> ns.replace(".","/").toLowerCase() Lanes.Templates.find = (name, namespace) -> return Lanes.Templates[name] if Lanes.Templates[name] if namespace? Lanes.Templates[ ns2path(namespace) + "/" + name] else null Lanes.Templates.render = (view, name)-> template_fn = Lanes...
ns2path = (ns)-> ns.replace(".","/").toLowerCase() Lanes.Templates.find = (name, namespace) -> return Lanes.Templates[name] if Lanes.Templates[name] if namespace? Lanes.Templates[ ns2path(namespace) + "/" + name] else null Lanes.Templates.render = (view, name, data)-> template_fn =...
Add option to pass data into render fn
Add option to pass data into render fn
CoffeeScript
mit
argosity/lanes,argosity/lanes,argosity/hippo,argosity/hippo,argosity/lanes,argosity/hippo
f8c129c25347d52d5aa6100e8ce6d38ecc91fc0d
src/app/config/privacy-policy/privacy-policy.coffee
src/app/config/privacy-policy/privacy-policy.coffee
angular.module("doubtfire.config.privacy-policy", []) .factory('PrivacyPolicy', ($http, api) -> privacyPolicy = { privacy: '', plagiarism: '', loaded: false, } $http.get("#{api}/settings/privacy").then ((response) -> console.log(response.data) privacyPolicy.privacy = response.data.privacy ...
angular.module("doubtfire.config.privacy-policy", []) .factory('PrivacyPolicy', ($http, api) -> privacyPolicy = { privacy: '', plagiarism: '', loaded: false, } $http.get("#{api}/settings/privacy").then ((response) -> privacyPolicy.privacy = response.data.privacy privacyPolicy.plagiarism = re...
Remove console log from privacy policy page
FIX: Remove console log from privacy policy page
CoffeeScript
agpl-3.0
doubtfire-lms/doubtfire-web,doubtfire-lms/doubtfire-web,doubtfire-lms/doubtfire-web,doubtfire-lms/doubtfire-web