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
3f240dd13e774e6f266d22f26c5416e49635d37b
static-mock.coffee
static-mock.coffee
props = permissions: [] anonymous: true preferredLanguage: 'en' exports.serverConfig = codeNinja: false static: true exports.features = playViewsOnly: false exports.me = isStudent: () -> false isAnonymous: () -> @get('anonymous') isTeacher: () -> false isAdmin: () -> false level: () -> 1 ...
props = permissions: [] anonymous: true preferredLanguage: 'en' exports.serverConfig = codeNinja: false static: true exports.features = playViewsOnly: false exports.me = isStudent: () -> false isAnonymous: () -> @get('anonymous') isTeacher: () -> false isAdmin: () -> false level: () -> 1 ...
Add freeOnly to static mock
Add freeOnly to static mock
CoffeeScript
mit
jeremiahyan/codecombat,codecombat/codecombat,icodegame/codecombat,codecombat/codecombat,icodegame/codecombat,jeremiahyan/codecombat,kidaa/codecombat,codecombat/codecombat,icodegame/codecombat,javatlacati/codecombat,fabichoi/codecombat,javatlacati/codecombat,kidaa/codecombat,jeremiahyan/codecombat,codecombat/codecombat,...
9c637a4392170292639f6c37613751df61a4f270
keymaps/emmet.cson
keymaps/emmet.cson
# language-specific Tab triggers # you can add more triggers by changing `grammar` attribute values 'atom-text-editor[data-grammar="text html basic"]:not([mini]), atom-text-editor[data-grammar~="jade"]:not([mini]), atom-text-editor[data-grammar~="css"]:not([mini]), atom-text-editor[data-grammar~="sass"]:not([mini])': ...
# language-specific Tab triggers # you can add more triggers by changing `grammar` attribute values 'atom-text-editor[data-grammar="text html basic"]:not([mini]), atom-text-editor[data-grammar~="jade"]:not([mini]), atom-text-editor[data-grammar~="css"]:not([mini]), atom-text-editor[data-grammar~="sass"]:not([mini]), at...
Make Emmet work in .php and .phtml files too
Make Emmet work in .php and .phtml files too
CoffeeScript
mit
alexlecco/emmet-atom-simplified,alexlecco/emmet-atom-simplified,alexlecco/emmet-atom-simplified
0b7179fd487c21bc8d4f08b4d6f214b6764e28a3
lib/latexmk.coffee
lib/latexmk.coffee
child_process = require "child_process" module.exports = run: (path, args) -> # TODO: Add support killing the process. proc = child_process.exec(path + " " + args.join " ") proc.on "close", (code, signal) => if code == 0 # TODO: Display a more visible success message. console.info ...
child_process = require "child_process" module.exports = run: (path, args) -> # TODO: Add support killing the process. proc = child_process.exec(path + " " + args.join(" ")) proc.on "close", (code, signal) => if code == 0 # TODO: Display a more visible success message. console.info...
Add brackets to increase code legibility
Add brackets to increase code legibility
CoffeeScript
mit
WoodyWoodsta/atom-latex,thomasjo/atom-latex,WoodyWoodsta/atom-latex,thomasjo/atom-latex,thomasjo/atom-latex
33a177ed479bb1b68d8471a531caef3cc4f20eec
app/assets/javascripts/darkswarm/directives/map_search.js.coffee
app/assets/javascripts/darkswarm/directives/map_search.js.coffee
Darkswarm.directive 'mapSearch', ($timeout)-> # Install a basic search field in a map restrict: 'E' require: '^googleMap' replace: true template: '<input id="pac-input"></input>' link: (scope, elem, attrs, ctrl)-> $timeout => map = ctrl.getMap() input = (document.getElementById("pac-input")...
Darkswarm.directive 'mapSearch', ($timeout)-> # Install a basic search field in a map restrict: 'E' require: '^googleMap' replace: true template: '<input id="pac-input" placeholder="Type in a location..."></input>' link: (scope, elem, attrs, ctrl)-> $timeout => map = ctrl.getMap() input = (...
Make map input placeholder message useful
Make map input placeholder message useful
CoffeeScript
agpl-3.0
Matt-Yorkley/openfoodnetwork,folklabs/openfoodnetwork,openfoodfoundation/openfoodnetwork,ltrls/openfoodnetwork,RohanM/openfoodnetwork,folklabs/openfoodnetwork,mkllnk/openfoodnetwork,oeoeaio/openfoodnetwork,oeoeaio/openfoodnetwork,mkllnk/openfoodnetwork,Matt-Yorkley/openfoodnetwork,Matt-Yorkley/openfoodnetwork,MikeiLL/o...
18b2433a99590a23c71a2f1c702b0b6c9dec5acf
src/browser/squirrel-update.coffee
src/browser/squirrel-update.coffee
app = require 'app' ChildProcess = require 'child_process' fs = require 'fs' path = require 'path' updateDotExe = path.resolve(path.dirname(process.execPath), '..', 'Update.exe') exeName = path.basename(process.execPath) # Spawn the Update.exe with the given arguments and invoke the callback when # the command comple...
app = require 'app' ChildProcess = require 'child_process' fs = require 'fs' path = require 'path' updateDotExe = path.resolve(path.dirname(process.execPath), '..', 'Update.exe') exeName = path.basename(process.execPath) # Spawn the Update.exe with the given arguments and invoke the callback when # the command comple...
Remove call to deleted function
Remove call to deleted function
CoffeeScript
mit
pombredanne/atom,Jdesk/atom,FoldingText/atom,vcarrera/atom,kandros/atom,nrodriguez13/atom,Jandersolutions/atom,russlescai/atom,medovob/atom,niklabh/atom,deepfox/atom,seedtigo/atom,ralphtheninja/atom,hakatashi/atom,woss/atom,constanzaurzua/atom,kittens/atom,Ju2ender/atom,gontadu/atom,dsandstrom/atom,nrodriguez13/atom,Nu...
728b61bbb961d53c8ad5178930231b529d21ca79
src/components/learning-guide.cjsx
src/components/learning-guide.cjsx
React = require 'react' LearningGuide = require '../flux/learning-guide' LoadableItem = require './loadable-item' Teacher = require './learning-guide/teacher' Student = require './learning-guide/student' LearningGuideStudentShell = React.createClass contextTypes: router: React.PropTypes.func render: -> ...
React = require 'react' LearningGuide = require '../flux/learning-guide' LoadableItem = require './loadable-item' TeacherComponent = require './learning-guide/teacher' StudentComponent = require './learning-guide/student' TeacherStudentComponent = require './learning-guide/teacher-student' {PerformanceStore, Performan...
Load performance store and use options for learning guide
Load performance store and use options for learning guide
CoffeeScript
agpl-3.0
openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js
0b49f2650b146815fc8279755f1128546973ad0c
client/admin/lib/views/invitations/acceptedinvitationsview.coffee
client/admin/lib/views/invitations/acceptedinvitationsview.coffee
kd = require 'kd' KDCustomHTMLView = kd.CustomHTMLView PendingInvitationsView = require './pendinginvitationsview' module.exports = class AcceptedInvitationsView extends PendingInvitationsView constructor: (options = {}, data) -> options.statusType = 'accepted' options.l...
kd = require 'kd' KDCustomHTMLView = kd.CustomHTMLView PendingInvitationsView = require './pendinginvitationsview' module.exports = class AcceptedInvitationsView extends PendingInvitationsView constructor: (options = {}, data) -> options.statusType = 'accepted' options.l...
Use noItemFoundText instead of noItemFoundWidget
AcceptedInvitationsView: Use noItemFoundText instead of noItemFoundWidget
CoffeeScript
agpl-3.0
sinan/koding,sinan/koding,jack89129/koding,koding/koding,szkl/koding,mertaytore/koding,koding/koding,cihangir/koding,acbodine/koding,koding/koding,jack89129/koding,kwagdy/koding-1,andrewjcasal/koding,cihangir/koding,mertaytore/koding,usirin/koding,rjeczalik/koding,rjeczalik/koding,acbodine/koding,jack89129/koding,sinan...
b9447188f07649e4d38ee968dd2ccbb48ab6f3f2
src/cli/zog.coffee
src/cli/zog.coffee
### Running copy of myself in background ### # Magic cookie magic = "<#{PACKAGE.version}>" find = (cmd)-> require('./zogi')[cmd] # Run background process module.exports = exports = (cmd, args...)-> return unless find cmd run.apply @, [0, argv0, "version", magic, cmd].concat args return # See whether we ar...
### Running copy of myself in background ### hash = (s)-> n = 0 i = s.length while i-- n = ~(n + (i & 0xFF ^ s.charCodeAt i)) n & 0xFFFF # Magic cookie magic = "<#{hash do argv0.load}>" find = (cmd)-> require('./zogi')[cmd] # Run background process module.exports = exports = (cmd, args...)-> retur...
Use simple hash as magic ZOG cookie
Use simple hash as magic ZOG cookie
CoffeeScript
isc
ukoloff/nvms
4380d65dc75d2fabd1c926431442e9b659a231cb
app/javascripts/imageSequence.coffee
app/javascripts/imageSequence.coffee
define ['angular', 'lodash', 'timeSeries', 'volume'], (ng, _) -> imageSequence = ng.module('qiprofile.imagesequence', ['qiprofile.timeseries', 'qiprofile.volume']) imageSequence.factory 'ImageSequence', ['TimeSeries', 'Volume', (TimeSeries, Volume) -> # @param imageSequence the sc...
define ['angular', 'lodash', 'timeSeries', 'volume'], (ng, _) -> imageSequence = ng.module('qiprofile.imagesequence', ['qiprofile.timeseries', 'qiprofile.volume']) imageSequence.factory 'ImageSequence', ['TimeSeries', 'Volume', (TimeSeries, Volume) -> # @param imageSequence the sc...
Check for a volumes object.
Check for a volumes object.
CoffeeScript
bsd-2-clause
ohsu-qin/qiprofile,ohsu-qin/qiprofile,ohsu-qin/qiprofile,ohsu-qin/qiprofile
271d881e64bc7412907421956ca655c49851b4ec
client/router.coffee
client/router.coffee
parse_pararms = (querystring) -> params = {} querystring = querystring.split('&') for qs in querystring continue if not qs pair = qs.split('=') params[decodeURIComponent pair[0]] = decodeURIComponent pair[1] params Meteor.Router.add '/': -> Session.set('params', parse_pararms @querystring) ...
parse_pararms = (querystring) -> params = {} querystring = querystring.split('&') for qs in querystring continue if not qs pair = qs.split('=') params[decodeURIComponent pair[0]] = decodeURIComponent pair[1] params Meteor.Router.add '/': -> Session.set('params', parse_pararms @querystring) ...
Add backwards compatibility to semantic URLs for events Assume that if title_id is invalid then it is a deprecated event_id URL
Add backwards compatibility to semantic URLs for events Assume that if title_id is invalid then it is a deprecated event_id URL
CoffeeScript
mit
pennlabs/eventsatpenn-meteor
3785c7268616462d0fdf30ff3505779190f22d80
client/app/lib/kite/klienteventmanager.coffee
client/app/lib/kite/klienteventmanager.coffee
kd = require 'kd' ###* * The KlientEventManager is a wrapper over Klient events (from * `client.Subscribe`) that have repeating callbacks. It serves to * provide a cleaner pubsub interface for methods of Klient * that make sense using this style. ### module.exports = class KlientEventManager extends kd.Object #...
kd = require 'kd' ###* * The KlientEventManager is a wrapper over Klient events (from * `client.Subscribe`) that have repeating callbacks. It serves to * provide a cleaner pubsub interface for methods of Klient * that make sense using this style. ### module.exports = class KlientEventManager extends kd.Object #...
Add unsubscribe and return promise.
KlientEventManager: Add unsubscribe and return promise.
CoffeeScript
agpl-3.0
mertaytore/koding,rjeczalik/koding,jack89129/koding,usirin/koding,gokmen/koding,gokmen/koding,cihangir/koding,andrewjcasal/koding,acbodine/koding,rjeczalik/koding,alex-ionochkin/koding,drewsetski/koding,mertaytore/koding,cihangir/koding,sinan/koding,sinan/koding,szkl/koding,koding/koding,rjeczalik/koding,usirin/koding,...
5538149fba314a06a02ff61fdcd3a3ac002df5ae
apps/apply/client/models/form.coffee
apps/apply/client/models/form.coffee
_ = require 'underscore' { APP_URL, REFERRER, MEDIUM, SESSION_ID } = require('sharify').data Backbone = require 'backbone' Cookies = require '../../../../components/cookies/index.coffee' module.exports = class Form extends Backbone.Model url: "#{APP_URL}/apply/form" defaults: oid: '00DC0000000PWQJ' '00NC0...
_ = require 'underscore' { APP_URL, REFERRER, MEDIUM, SESSION_ID } = require('sharify').data Backbone = require 'backbone' Cookies = require '../../../../components/cookies/index.coffee' module.exports = class Form extends Backbone.Model url: "#{APP_URL}/apply/form" defaults: oid: '00DC0000000PWQJ' '00NC0...
Remove proxy_to_reflection middleware to test serving Force directly
Remove proxy_to_reflection middleware to test serving Force directly
CoffeeScript
mit
kanaabe/force,kanaabe/force,yuki24/force,yuki24/force,erikdstock/force,cavvia/force-1,joeyAghion/force,artsy/force,oxaudo/force,anandaroop/force,oxaudo/force,artsy/force-public,yuki24/force,mzikherman/force,izakp/force,mzikherman/force,artsy/force,joeyAghion/force,xtina-starr/force,oxaudo/force,damassi/force,anandaroop...
a116eb04f46aafd162dcd767f0912c2332984842
app/client/js/validationerror.coffee
app/client/js/validationerror.coffee
goog.provide 'app.ValidationError' class app.ValidationError ###* @param {string} prop @param {string} message @constructor ### constructor: (@prop, @message) ->
goog.provide 'app.ValidationError' class app.ValidationError ###* @param {?string} prop @param {string} message @constructor ### constructor: (@prop, @message) ->
Allow null for app.ValidationError prop.
Allow null for app.ValidationError prop.
CoffeeScript
mit
steida/songary
5fdb5000b059ad8abb2e5addf2dda20c332509ec
lib/component.coffee
lib/component.coffee
# React = require 'react' assign = require 'object-assign' excludeMethods = componentDidMount: true, componentWillUnmount: true, componentDidUpdate: true, included: true class Component extends React.Component @include = (mixin, config = {}) -> if typeof mixin == 'function' mixin = mixin config ...
# React = require 'react' excludeMethods = componentDidMount: true, componentWillUnmount: true, componentDidUpdate: true, included: true class Component extends React.Component @include = (mixin, config = {}) -> if typeof mixin == 'function' mixin = mixin config for name, _ of mixin when not ...
Remove useless (and missing) require
Remove useless (and missing) require
CoffeeScript
mit
jgraichen/molecule,jgraichen/molecule
61dc61f059da1d4d337b3c1ed09ddf9390dae4f7
lib/analytics_hooks.coffee
lib/analytics_hooks.coffee
# # A simple meditor specifically for providing custom analytics hooks in app code, # leaving the tracking code inside /analytics. # _ = require 'underscore' Backbone = require 'backbone' module.exports = window.analyticsHooks ?= _.extend({}, Backbone.Events)
# # A simple meditor specifically for providing custom analytics hooks in app code, # leaving the tracking code inside /analytics. # _ = require 'underscore' Backbone = require 'backbone' analyticsHooks = _.extend {}, Backbone.Events module.exports = (window?.analyticsHooks ?= analyticsHooks) or analyticsHooks
Fix for analytics hooks specs
Fix for analytics hooks specs
CoffeeScript
mit
yuki24/force,dblock/force,cavvia/force-1,xtina-starr/force,joeyAghion/force,izakp/force,damassi/force,mzikherman/force,artsy/force,artsy/force,izakp/force,kanaabe/force,erikdstock/force,kanaabe/force,artsy/force,izakp/force,yuki24/force,anandaroop/force,xtina-starr/force,anandaroop/force,yuki24/force,cavvia/force-1,cav...
613b394e4c91d1aa4c722d1506e2d87a0b8b237f
app/assets/javascripts/app/tabs.js.coffee
app/assets/javascripts/app/tabs.js.coffee
show_tab = -> if location.hash.match(/^#tab-/) $(".nav-tabs a[href=##{location.hash.replace('#tab-', '')}]").tab('show') show_default_tab = -> if $('.nav-tabs').length > 0 default_hash = $('.nav-tabs .active a')[0].hash.replace('#', '') window.history.replaceState({}, '', ("#tab-" + default_hash)) sho...
show_tab = -> if location.hash.match(/^#tab-/) $(".wrapper .nav-tabs a[href=##{location.hash.replace('#tab-', '')}]").tab('show') show_default_tab = -> if $('.wrapper .nav-tabs').length > 0 default_hash = $('.wrapper .nav-tabs .active a')[0].hash.replace('#', '') window.history.replaceState({}, '', ("#...
Fix tabs script to work with new AdminLTE template
Fix tabs script to work with new AdminLTE template
CoffeeScript
agpl-3.0
ferdinandrosario/onebody,fadiwissa/onebody,hschin/onebody,kevinjqiu/onebody,mattraykowski/onebody,ferdinandrosario/onebody,nerdnorth/remote-workers-app,davidleach/onebody,davidleach/onebody,hschin/onebody,nerdnorth/remote-workers-app,mattraykowski/onebody,nerdnorth/remote-workers-app,nerdnorth/remote-workers-app,fadiwi...
741264a4de143bed60344e99c84dcf2303403402
src/aliasify.coffee
src/aliasify.coffee
path = require 'path' transformTools = require 'browserify-transform-tools' module.exports = transformTools.makeRequireTransform "aliasify", (args, opts, cb) -> aliases = opts.config?.aliases verbose = opts.config?.verbose if (args.length > 0) and aliases? and aliases[args[0]]? replacement = aliase...
path = require 'path' transformTools = require 'browserify-transform-tools' getReplacement = (file, aliases)-> if aliases[file] return aliases[file] else fileParts = /^([^\/]*)(\/.*)$/.exec(file) pkg = aliases[fileParts?[1]] if pkg? return pkg+fileParts[2] return...
Support for aliases that are folders of packages
Support for aliases that are folders of packages It is possible to require a file that is path of a package that is installed via npm like require("jade/lib/filters") this patch should make that possible.
CoffeeScript
mit
benbria/aliasify
28b0e5153c5db023aa7420700e366e13c01de956
app/classifier/mini-course-button.cjsx
app/classifier/mini-course-button.cjsx
React = require 'react' MiniCourse = require '../lib/mini-course' module.exports = React.createClass displayName: 'MiniCourseButton' getDefaultProps: -> user: null project: null getInitialState: -> minicourse: null componentDidMount: -> @fetchMiniCourseFor @props.workflow componentWillR...
React = require 'react' MiniCourse = require '../lib/mini-course' module.exports = React.createClass displayName: 'MiniCourseButton' getDefaultProps: -> user: null project: null getInitialState: -> minicourse: null componentDidMount: -> @fetchMiniCourseFor @props.workflow componentWillR...
Fix unknown props on MiniCourseButton
Fix unknown props on MiniCourseButton
CoffeeScript
apache-2.0
parrish/Panoptes-Front-End,parrish/Panoptes-Front-End,jelliotartz/Panoptes-Front-End,zooniverse/Panoptes-Front-End,jelliotartz/Panoptes-Front-End,amyrebecca/Panoptes-Front-End,parrish/Panoptes-Front-End,jelliotartz/Panoptes-Front-End,amyrebecca/Panoptes-Front-End,amyrebecca/Panoptes-Front-End
5d981e417bab348e45ef19d793679a88c8a35b9a
lib/services/TrafficSituation.coffee
lib/services/TrafficSituation.coffee
Base = require './Base' class TrafficSituation extends Base constructor: (config) -> @key = config.keys.trafficSituation @service = 'trafficSituation (SL Trafikläget 2)' super parseResponse: (body) -> body = JSON.parse body err = if body.StatusCode isnt 0 "#{body.StatusCode} - #{body.Me...
Base = require './Base' class TrafficSituation extends Base constructor: (config) -> @key = config.keys.trafficSituation @service = 'trafficSituation (SL Trafikläget 2)' super parseResponse: (body) -> body = JSON.parse body err = if body.StatusCode isnt 0 "#{body.StatusCode} - #{body.Me...
Fix for empty resonses from API
Fix for empty resonses from API Does not throw an error if response from TrafficSituation does not include ResponseData attribute
CoffeeScript
mit
simon-johansson/SL-api,simon-johansson/SL-api
d97349085fc372a70ae74162df5b46d1cdaafbd1
lib/provider.coffee
lib/provider.coffee
module.exports = selector: ['.source.ruby', '.source.ruby.rails'] id: 'aligner-ruby' # package name config: '=>-alignment': title: 'Padding for =>' description: 'Pad left or right of the character' type: 'string' enum: ['left', 'right'] default: 'left' '=>-leftSpace': t...
module.exports = selector: ['.source.ruby', '.source.ruby.rails'] id: 'aligner-ruby' # package name config: '=>-alignment': title: 'Padding for =>' description: 'Pad left or right of the character' type: 'string' enum: ['left', 'right'] default: 'left' '=>-leftSpace': t...
Add `:` support for 1.9 syntax
Add `:` support for 1.9 syntax Fixes adrianlee44/atom-aligner#16
CoffeeScript
mit
adrianlee44/atom-aligner-ruby
374d3a59ba0de998f50b23cda3eacc75bc2a9a48
src/app/projects/states/dashboard/directives/task-dashboard/directives/task-assessment-card/task-assessment-card.coffee
src/app/projects/states/dashboard/directives/task-dashboard/directives/task-assessment-card/task-assessment-card.coffee
angular.module('doubtfire.projects.states.dashboard.directives.task-dashboard.directives.task-assessment-card', []) # # Shows quality stars and graded task information # .directive('taskAssessmentCard', -> restrict: 'E' templateUrl: 'projects/states/dashboard/directives/task-dashboard/directives/task-assessment-car...
angular.module('doubtfire.projects.states.dashboard.directives.task-dashboard.directives.task-assessment-card', []) # # Shows quality stars and graded task information # .directive('taskAssessmentCard', -> restrict: 'E' templateUrl: 'projects/states/dashboard/directives/task-dashboard/directives/task-assessment-car...
Correct error in inbox when null task
FIX: Correct error in inbox when null task An error was being raised as a result of the task being null when accessing the grade and quality star data.
CoffeeScript
agpl-3.0
doubtfire-lms/doubtfire-web,doubtfire-lms/doubtfire-web,doubtfire-lms/doubtfire-web,alexcu/doubtfire-web,doubtfire-lms/doubtfire-web,alexcu/doubtfire-web
055db018275e13eccfcfecf438a1919764e1ecdc
src/cleaner.coffee
src/cleaner.coffee
{ attemptShell, isBinaryExecutable } = require './utils' logger = require './logger' styler = require './styler' _ = require 'lodash' @clean = ({ recursive = no, deep = no } = {}) -> hasFileTool = attemptShell('which', 'file')? unless hasFileTool if process.platform is "win32" logger.e "To...
{ attemptShell, isBinaryExecutable } = require './utils' logger = require './logger' styler = require './styler' _ = require 'lodash' @clean = ({ recursive = no, deep = no } = {}) -> hasFileTool = attemptShell('which', 'file')? unless hasFileTool if process.platform is "win32" logger.e "To...
Fix non-exiting on clean win32 error, improve efficiency
Fix non-exiting on clean win32 error, improve efficiency
CoffeeScript
mit
albertsgrc/optim
c968ade7ee7adea88699cdd1f7af1906aba881f4
index.coffee
index.coffee
surveyor = require './lib/surveyor.coffee' websocket = require './lib/websocket.coffee' webserver = require './lib/webserver.coffee' webserver.listen 4001 util = require './lib/util.coffee' lock = false check = -> return if lock lock = true surveyor.getManifest (err) -> console.error err if err? throw ne...
surveyor = require './lib/surveyor.coffee' websocket = require './lib/websocket.coffee' webserver = require './lib/webserver.coffee' webserver.listen 4001 util = require './lib/util.coffee' lock = false check = -> return if lock lock = true surveyor.getManifest (err) -> console.error err if err? throw ne...
Store routing table hash in model
Store routing table hash in model
CoffeeScript
bsd-3-clause
davidbanham/field-marshal
84706adf6bf9dc2e255c9975860f8deda4815f63
index.coffee
index.coffee
fs = require 'fs' path = require 'path' temp = require 'temp' _ = require 'underscore' temp.track() module.exports = (grunt) -> grunt.registerTask 'create-windows-installer', 'Create the Windows installer', -> @requiresConfig("#{@name}.appDirectory") done = @async() {appDirectory, outputDirectory} = g...
fs = require 'fs' path = require 'path' temp = require 'temp' _ = require 'underscore' temp.track() module.exports = (grunt) -> grunt.registerTask 'create-windows-installer', 'Create the Windows installer', -> @requiresConfig("#{@name}.appDirectory") done = @async() {appDirectory, outputDirectory} = g...
Call function returned from _.template
Call function returned from _.template
CoffeeScript
mit
electronjs/windows-installer,domderen/atom-shell-installer,mongodb-js/electron-installer-squirrel-windows,domderen/atom-shell-installer,coderhaoxin/grunt-electron-installer
1ab4133d0d6557ab99b0cac922bcda9b34213d09
atom/packages.cson
atom/packages.cson
packages: [ "advanced-open-file" "atom-alignment" "auto-update-packages" "docblockr" "editorconfig" "emmet" "expand-region" "language-apache" "language-applescript" "language-awk" "language-env" "language-gitattributes" "language-gitignore" "language-hosts" "language-ini" "language-latex...
packages: [ "advanced-open-file" "atom-alignment" "auto-update-packages" "docblockr" "editorconfig" "emmet" "expand-region" "language-apache" "language-applescript" "language-awk" "language-env" "language-gitattributes" "language-gitignore" "language-hosts" "language-ini" "language-latex...
Add language-sca to atom package list
Add language-sca to atom package list
CoffeeScript
mit
caleb531/dotfiles,caleb531/dotfiles,caleb531/dotfiles,caleb531/dotfiles
556e536c8c7546896d288fa9bb68af35450e1596
lib/projects.coffee
lib/projects.coffee
DB = require './db' Project = require './project' module.exports = class Projects properties: _id: null title: null icon: null paths: [] settings: {} group: null devMode: false template: null db: null initialize: () -> @db = new DB() getAll: -> projectSettings = @db.f...
DB = require './db' Project = require './project' module.exports = class Projects db: null constructor: -> @db = new DB() getAll: (callback) -> @db.findAll (projectSettings) -> projects = [] for setting in projectSettings if setting.paths? project = new Project(setting) ...
Add callback to get all
Add callback to get all
CoffeeScript
mit
UltCombo/atom-project-manager,danielbrodin/atom-project-manager,douggr/atom-project-manager
ce7522bd0922a6de2ce61421b8b2f8a63b550e1d
src/key-handling.coffee
src/key-handling.coffee
_ = require 'lodash' direction = require 'rl-directions' bindings = require '../key-bindings.json' eventBus = require './event-bus' module.exports = exports = -> eventBus.on 'key.*', (ch, key) -> action = bindings[key.full] ? bindings[key.name] if action? parts = action.split('.') if parts[0] is 'direct...
_ = require 'lodash' direction = require 'rl-directions' bindings = require '../key-bindings.json' eventBus = require './event-bus' eventBus.on 'key.*', (ch, key) -> action = bindings[key.full] ? bindings[key.name] if action? parts = action.split('.') if parts[0] is 'direction' parts[1] = direction.normal...
Fix key handling so it registers its handler
Fix key handling so it registers its handler
CoffeeScript
mit
raymond-h/krogue
8f0058b73094ef3a69a341dc5162441cca61361e
tests/session/user.factory.spec.coffee
tests/session/user.factory.spec.coffee
describe 'User factory', -> scope = undefined __User__ = undefined httpBackend = undefined beforeEach -> module 'trackaKeepa' inject ($httpBackend, User, $rootScope) -> scope = $rootScope __User__ = User httpBackend = $httpBackend it 'createUser should create and log in a user', ->...
describe 'User factory', -> scope = undefined __User__ = undefined __Socket__ = undefined httpBackend = undefined window = undefined state = undefined username = undefined password = undefined beforeEach -> module 'trackaKeepa' inject ($httpBackend, User, Socket, $rootScope, $window, $state) ...
Add tests for the user factory
Add tests for the user factory
CoffeeScript
mit
johnapost/tracka-keepa,johnapost/tracka-keepa
628dd91ce02584f49115e1140a925efcd5ac7cd3
app/scripts/components/Enemy.coffee
app/scripts/components/Enemy.coffee
Crafty.c 'Enemy', init: -> @requires '2D, Canvas, Collision, Choreography, ViewportFixed' enemy: -> Crafty.trigger('EnemySpawned', this) @onHit 'Bullet', (e) -> return if @hidden bullet = e[0].obj bullet.trigger 'HitTarget', target: this @trigger('Hit', this) @health -= bu...
Crafty.c 'Enemy', init: -> @requires '2D, Canvas, Collision, Choreography, ViewportFixed' enemy: -> Crafty.trigger('EnemySpawned', this) @onHit 'Bullet', (e) -> return if @hidden bullet = e[0].obj bullet.trigger 'HitTarget', target: this @trigger('Hit', this) @health -= bu...
Clean up hideMarker on removal
Clean up hideMarker on removal
CoffeeScript
mit
matthijsgroen/game-play,matthijsgroen/game-play,matthijsgroen/game-play
7c3b553fb9fef3334a20531ffed439049b439329
keymaps/code-links.cson
keymaps/code-links.cson
# I realize polluting body with .code-links-{ctrl,alt} is not ideal, but I don't # see a better solution. I couldn't extract which key is being pressed in the # event handler to match against the config. 'body.code-links-ctrl atom-text-editor': { 'ctrl': 'code-links:tmp-show-links' } 'body.code-links-alt atom-te...
# I realize polluting body with .code-links-{ctrl,alt} is not ideal, but I don't # see a better solution. I couldn't extract which key is being pressed in the # event handler to match against the config. 'body.code-links-ctrl atom-text-editor': { 'ctrl': 'code-links:tmp-show-links' } 'body.code-links-alt atom-text-...
Normalize all the line endings
Normalize all the line endings
CoffeeScript
mit
Autarc/code-links,AsaAyers/code-links,dragly/code-links
56ea5ca106c96df732f45b74f008a162d44699c1
lib/minimap-selection.coffee
lib/minimap-selection.coffee
MinimapSelectionView = require './minimap-selection-view' module.exports = active: false views: {} activate: (state) -> try atom.packages.activatePackage('minimap').then (minimapPackage) => @minimap = minimapPackage.mainModule return @deactivate() unless @minimap.versionMatch('>= 3.5....
MinimapSelectionView = require './minimap-selection-view' module.exports = active: false views: {} activate: (state) -> try atom.packages.activatePackage('minimap').then (minimapPackage) => @minimap = minimapPackage.mainModule return @deactivate() unless @minimap.versionMatch('4.x') ...
Update minimal minimap version to 4.x
:arrow_up: Update minimal minimap version to 4.x
CoffeeScript
mit
atom-minimap/minimap-selection
27fd1a0159f2af4772ae0f35e60d2f7edae69c7a
grammars/runoff.cson
grammars/runoff.cson
name: "RUNOFF" scopeName: "text.runoff" fileTypes: [ "rnb" "rnc" "rnd" "rne" "rnh" "rnl" "rnm" "rno" "rnp" "rns" "rnt" "rnx" "run" ] patterns: [include: "#main"] repository: # Common patterns main: patterns: [ {include: "#comment"} {include: "#underline"} {include: "#commands"} ] # ...
name: "RUNOFF" scopeName: "text.runoff" fileTypes: [ "rnb" "rnc" "rnd" "rne" "rnh" "rnl" "rnm" "rno" "rnp" "rns" "rnt" "rnx" "run" ] patterns: [include: "#main"] repository: # Common patterns main: patterns: [ {include: "#comment"} {include: "#underline"} {include: "#commands"} ] # ...
Add generic highlighting for RUNOFF control-lines
Add generic highlighting for RUNOFF control-lines
CoffeeScript
isc
Alhadis/language-roff,Alhadis/language-roff
683a47180f73e8c510e7805f7193ffc1992085a6
src/components/published-modal.cjsx
src/components/published-modal.cjsx
React = require 'react' BS = require 'react-bootstrap' _ = require 'underscore' {ExerciseStore} = require 'stores/exercise' PublishedModal = React.createClass getInitialState: -> {} componentWillMount: -> ExerciseStore.on('published', @onPublished) componentWillUnmount: -> ExerciseStore.off('publishe...
React = require 'react' BS = require 'react-bootstrap' _ = require 'underscore' {ExerciseStore} = require 'stores/exercise' PublishedModal = React.createClass getInitialState: -> {} componentWillMount: -> ExerciseStore.on('published', @onPublished) componentWillUnmount: -> ExerciseStore.off('publishe...
Add show prop (needed for updated RB)
Add show prop (needed for updated RB)
CoffeeScript
agpl-3.0
openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js
2e9c5128be8aede6b3e4c9887f1883790808a6bd
server/config.coffee
server/config.coffee
americano = require 'americano' fs = require 'fs' path = require 'path' clientPath = path.resolve(__dirname, '..', 'client', 'public') useBuildView = fs.existsSync path.resolve(__dirname, 'views', 'index.js') config = common: set: 'view engine': if useBuildView then 'js' else 'j...
americano = require 'americano' fs = require 'fs' path = require 'path' clientPath = path.resolve(__dirname, '..', 'client', 'public') useBuildView = fs.existsSync path.resolve(__dirname, 'views', 'index.js') config = common: set: 'view engine': if useBuildView then 'js' else 'j...
Use cozydb plugin for americano
Use cozydb plugin for americano
CoffeeScript
agpl-3.0
lemelon/cozy-home,babolivier/cozy-home,babolivier/cozy-home,lemelon/cozy-home,frankrousseau/cozy-home,jsilvestre/cozy-home,clochix/cozy-home,frankrousseau/cozy-home,clochix/cozy-home,jsilvestre/cozy-home
872acbf3f06cd10549d109bc352e5da92f7f769a
lib/calculator.coffee
lib/calculator.coffee
class Calculator presetNames: ['full', 'half', 'noSalad'] weekdays: ['mon', 'tue', 'wed', 'thu', 'fri', 'sat', 'sun'] weekTotalFor: (preset, target) -> total = 0 week = target[preset] for weekday, countServings of week continue if @weekdays.indexOf(weekday) == -1 total += countServings...
class Calculator presetNames: ['full', 'half', 'noSalad'] weekdays: ['mon', 'tue', 'wed', 'thu', 'fri', 'sat', 'sun'] weekTotalFor: (preset, target) -> total = 0 week = target[preset] for weekday, countServings of week continue if @weekdays.indexOf(weekday) == -1 total += countServings...
Use coffee feature to pass the context
Use coffee feature to pass the context
CoffeeScript
mit
dezoxel/small-food-business-accounting,dezoxel/small-food-business-accounting,dezoxel/sfba
3dd11c6c0f2d435d4406cbcba2f4df967923d067
src/stdlib/task-shell.coffee
src/stdlib/task-shell.coffee
eval("window = {};") eval("attachEvent = function(){};") eval("console = {};") console.warn = -> self.postMessage type: 'warn' details: arguments console.log = -> self.postMessage type: 'warn' details: arguments self.addEventListener 'message', (event) -> switch event.data.type when 'start' ...
eval("window = {};") eval("attachEvent = function(){};") eval("console = {};") console.warn = -> self.postMessage type: 'warn' details: arguments console.log = -> self.postMessage type: 'log' details: arguments self.addEventListener 'message', (event) -> switch event.data.type when 'start' ...
Set type to log for console.log forwarding
Set type to log for console.log forwarding
CoffeeScript
mit
mnquintana/atom,devoncarew/atom,qskycolor/atom,champagnez/atom,kjav/atom,daxlab/atom,yangchenghu/atom,execjosh/atom,lisonma/atom,jacekkopecky/atom,jlord/atom,AlexxNica/atom,nucked/atom,russlescai/atom,Jandersolutions/atom,bryonwinger/atom,execjosh/atom,davideg/atom,abe33/atom,kdheepak89/atom,ralphtheninja/atom,nvoron23...
cf4fb562d00bf29b801b7f6dc841b455e3c51d3f
src/docs.coffee
src/docs.coffee
_ = require 'underscore-plus' optimist = require 'optimist' request = require 'request' View = require './view' config = require './config' tree = require './tree' module.exports = class Docs extends View @commandNames: ['docs', 'home', 'open'] open: require 'open' parseOptions: (argv) -> options = optimis...
_ = require 'underscore-plus' optimist = require 'optimist' request = require 'request' open = require 'open' View = require './view' config = require './config' tree = require './tree' module.exports = class Docs extends View @commandNames: ['docs', 'home', 'open'] open: open parseOptions: (argv) -> optio...
Move module require to top
Move module require to top
CoffeeScript
mit
VandeurenGlenn/apm,jlord/apm,pusateri/apm,pusateri/apm,atom/apm,bcoe/apm,Nikpolik/apm,ethanp/apm,AtaraxiaEta/apm,atom/apm,VandeurenGlenn/apm,bcoe/apm,VandeurenGlenn/apm,bcoe/apm,fscherwi/apm,gutsy/apm,pusateri/apm,atom/apm,gutsy/apm,AtaraxiaEta/apm,fscherwi/apm,jlord/apm,bcoe/apm,ethanp/apm,ethanp/apm,Nikpolik/apm,Atar...
b108b0e1fcfc7512e4e7ef1bad94d8de10d10e91
menus/tree-view.cson
menus/tree-view.cson
'menu': [ { 'label': 'View' 'submenu': [ { 'label': 'Toggle Tree View', 'command': 'tree-view:toggle' } { 'label': 'Toggle Tree Side', 'command': 'tree-view:toggle-side' } ] } { 'label': 'Packages' 'submenu': [ 'label': 'Tree View' 'submenu': [ { 'label': 'Focus...
'menu': [ { 'label': 'View' 'submenu': [ { 'label': 'Toggle Tree View', 'command': 'tree-view:toggle' } { 'label': 'Toggle Tree Side', 'command': 'tree-view:toggle-side' } ] } { 'label': 'Packages' 'submenu': [ 'label': 'Tree View' 'submenu': [ { 'label': 'Focus...
Add the 'Reveal in Tree View' context menu to the file tab.
Add the 'Reveal in Tree View' context menu to the file tab.
CoffeeScript
mit
laituan245/tree-view,learn-co/learn-ide-tree,matthewbauer/tree-view,atom/tree-view,benjaminRomano/tree-view,cgrabowski/webgl-studio-tree-view,thgaskell/tree-view,pombredanne/tree-view-1,ALEXGUOQ/tree-view,tbryant/tree-view,samu/tree-view,Galactix/tree-view,tomekwi/tree-view,ayumi/tree-view,jasonhinkle/tree-view,rajendr...
34103cbdb182fa5e98b59551af5cb795bbbd153b
client/lib/cordova/user-state.coffee
client/lib/cordova/user-state.coffee
if Meteor.isCordova document.addEventListener 'pause', -> Meteor.disconnect() document.addEventListener 'resume', -> Meteor.reconnect()
if Meteor.isCordova document.addEventListener 'pause', -> UserPresence.setAway() document.addEventListener 'resume', -> UserPresence.setOnline()
Set user as away when app goes to background and online when back to foreground
Set user as away when app goes to background and online when back to foreground
CoffeeScript
mit
pachox/Rocket.Chat,HeapCity/Heap.City,KyawNaingTun/Rocket.Chat,wicked539/Rocket.Chat,AlecTroemel/Rocket.Chat,snaiperskaya96/Rocket.Chat,litewhatever/Rocket.Chat,I-am-Gabi/Rocket.Chat,marzieh312/Rocket.Chat,JisuPark/Rocket.Chat,Deepakkothandan/Rocket.Chat,biomassives/Rocket.Chat,glnarayanan/Rocket.Chat,mohamedhagag/Rock...
e0855066b6469d846f987a0a8fba160b434f265f
build/tasks/shell.coffee
build/tasks/shell.coffee
module.exports = -> @loadNpmTasks 'grunt-shell' # Find Chrome binary here... @config 'shell', 'chrome-extension': command: 'google-chrome ' + [ '--pack-extension=chrome-extension/dist/tipsy' '--pack-extension-key=chrome-extension/key.pem' '--no-message-box' ].join(' ')
module.exports = -> @loadNpmTasks 'grunt-shell' # https://code.google.com/p/selenium/wiki/ChromeDriver#Requirements if process.platform is 'linux' chrome = '/usr/bin/google-chrome ' else if process.platform is 'darwin' chrome = '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome ' @config ...
Support OSX for Chrome extension build
Support OSX for Chrome extension build
CoffeeScript
mit
haystack/tipsy,haystack/tipsy,haystack/tipsy
33fd1d3cdb88629a732153261c1d9196c7ff49c7
core/app/backbone/factlink/cross_fade_region.coffee
core/app/backbone/factlink/cross_fade_region.coffee
Backbone.Factlink ||= {} class Backbone.Factlink.CrossFadeRegion extends Backbone.Marionette.Region defaultFadeTime = 560 initialize: -> @on 'close', -> @$el?.stop() crossFade: (newView) -> if @currentView @$el.stop().fadeOut(@_fadeTime(), => @show newView) else @show(newView) open: (vi...
Backbone.Factlink ||= {} class Backbone.Factlink.CrossFadeRegion extends Backbone.Marionette.Region defaultFadeTime = 560 initialize: -> @on 'close', -> @$el?.stop() crossFade: (newView) -> if @currentView @$el.stop().fadeOut(@_fadeTime(), => @show newView) else @show(newView) open: (vi...
Simplify by using coffeescript syntax.
Simplify by using coffeescript syntax.
CoffeeScript
mit
Factlink/factlink-core,daukantas/factlink-core,Factlink/factlink-core,daukantas/factlink-core,Factlink/factlink-core,daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core
b2f18455cc6d761da4f088853ab793bddea3c508
packages/rocketchat-cors/cors.coffee
packages/rocketchat-cors/cors.coffee
# Adding CORS headers so we can use CDNs for static content WebApp.rawConnectHandlers.use (req, res, next) -> res.setHeader("Access-Control-Allow-Origin", "*") res.setHeader("X-Rocket-Chat-Version", VERSION) res.setHeader("Access-Control-Expose-Headers", "X-Rocket-Chat-Version") return next() _staticFilesMiddlew...
# Adding CORS headers so we can use CDNs for static content WebApp.rawConnectHandlers.use (req, res, next) -> res.setHeader("Access-Control-Allow-Origin", "*") res.setHeader("X-Rocket-Chat-Version", VERSION) res.setHeader("Access-Control-Expose-Headers", "X-Rocket-Chat-Version") # Block next handlers to override...
Fix language loading from cordova
Fix language loading from cordova
CoffeeScript
mit
org100h1/Rocket.Panda,haoyixin/Rocket.Chat,JamesHGreen/Rocket.Chat,ziedmahdi/Rocket.Chat,Gyubin/Rocket.Chat,Sing-Li/Rocket.Chat,Achaikos/Rocket.Chat,bt/Rocket.Chat,fduraibi/Rocket.Chat,ut7/Rocket.Chat,k0nsl/Rocket.Chat,mwharrison/Rocket.Chat,TribeMedia/Rocket.Chat,wicked539/Rocket.Chat,mccambridge/Rocket.Chat,TribeMedi...
037ca5fb8e5ad7ce93a07b5e351ef940ba50baaa
tests/setup.coffee
tests/setup.coffee
_ = require('lodash') IS_BROWSER = window? { fetchMock, mockedFetch } = require('resin-fetch-mock') dataDirectoryPath = null if not IS_BROWSER temp = require('temp').track() dataDirectoryPath = temp.mkdirSync() ResinAuth = require('resin-auth')['default'] auth = new ResinAuth({ dataDirectory: dataDirectoryPath,...
_ = require('lodash') IS_BROWSER = window? { fetchMock, mockedFetch } = require('resin-fetch-mock') dataDirectoryPath = null if not IS_BROWSER temp = require('temp').track() dataDirectoryPath = temp.mkdirSync() ResinAuth = require('resin-auth')['default'] auth = new ResinAuth({ dataDirectory: dataDirectoryPath,...
Make sure tests are always run without any preexisting tokens from the environment
Make sure tests are always run without any preexisting tokens from the environment
CoffeeScript
apache-2.0
resin-io/resin-request,resin-io-modules/resin-request
a6ed83d4d551c25c649a810d4420bc77305d3113
webpack/autoload.coffee
webpack/autoload.coffee
### Inject some [pseudo-]local variables ### fs = require 'fs' path = require 'path' ini = require '../package' for f of ini.devDependencies when /^[$\w]+$/.test f exports[f] = f for lib in fs.readdirSync src = path.join __dirname, '../src' continue unless fs.statSync lib = path.join src, lib .isDirectory() ...
### Inject some [pseudo-]local variables ### fs = require 'fs' path = require 'path' ini = require '../package' for f of ini.devDependencies when /^[$\w]+$/.test f exports[f] = f for libname in fs.readdirSync src = path.join __dirname, '../src' continue unless fs.statSync lib = path.join src, libname .isDirec...
Add optional prefix to globals
Add optional prefix to globals
CoffeeScript
isc
ukoloff/nvms
b57b5306304a91b0fc268232cac4a2b64f22178a
keymaps/spell-check.cson
keymaps/spell-check.cson
'.platform-darwin .editor': 'cmd-:': 'spell-check:correct-misspelling' '.platform-darwin .corrections .editor': 'cmd-:': 'core:cancel' '.platform-win32 .editor': 'ctrl-:': 'spell-check:correct-misspelling' '.platform-win32 .corrections .editor': 'ctrl-:': 'core:cancel' '.platform-linux .editor': 'ctrl-:...
'.platform-darwin atom-text-editor': 'cmd-:': 'spell-check:correct-misspelling' '.platform-darwin .corrections atom-text-editor': 'cmd-:': 'core:cancel' '.platform-win32 atom-text-editor': 'ctrl-:': 'spell-check:correct-misspelling' '.platform-win32 .corrections atom-text-editor': 'ctrl-:': 'core:cancel' '....
Update deprecated selectors in keymap
Update deprecated selectors in keymap
CoffeeScript
mit
atom/spell-check
db61b2896dd2898022f12099fda94e6dda2f9f6e
lib/tag-generator.coffee
lib/tag-generator.coffee
Point = require 'point' ChildProcess = nodeRequire 'child_process' $ = require 'jquery' module.exports = class TagGenerator constructor: (@path) -> parseTagLine: (line) -> sections = line.split('\t') if sections.length > 3 position: new Point(parseInt(sections[2]) - 1) name: sections[0] el...
Point = require 'point' ChildProcess = nodeRequire 'child_process' $ = require 'jquery' BufferedProcess = require 'buffered-process' module.exports = class TagGenerator constructor: (@path) -> parseTagLine: (line) -> sections = line.split('\t') if sections.length > 3 position: new Point(parseInt(sec...
Create helper to buffer process lines
Create helper to buffer process lines
CoffeeScript
mit
rodumani/symbols-view,atom/symbols-view,changjej/symbols-view,changjej/symbols-view,spencerlyon2/symbols-view,harai/atom-gnu-global,spencerlyon2/symbols-view,rodumani/symbols-view,harai/atom-gnu-global,kainwinterheart/symbols-view
ca48b4ce1424f5ac50c48b7ee68edc76dd3b6372
static/js/feed.coffee
static/js/feed.coffee
ACTIVITIES = TW: action: 'lähetti Tweetin' icon: 'twitter' FB: action: 'teki Facebook-päivityksen' icon: 'facebook' ST: action: 'käytti täysistuntopuheenvuoron' icon: 'comment-alt' SI: action: 'allekirjoitti aloitteen' icon: 'pencil' IN...
ACTIVITIES = TW: action: 'lähetti Tweetin' icon: 'twitter' FB: action: 'teki Facebook-päivityksen' icon: 'facebook' ST: action: 'käytti täysistuntopuheenvuoron' icon: 'comment-alt' SI: action: 'allekirjoitti aloitteen' icon: 'pencil' IN...
Implement <p> tags in activity summaries
Implement <p> tags in activity summaries
CoffeeScript
agpl-3.0
kansanmuisti/kamu,kansanmuisti/kamu,kansanmuisti/kamu,kansanmuisti/kamu,kansanmuisti/kamu
0e7806bf052c4b7ba81d3c88d5a1824e051884ca
lib/script-view.coffee
lib/script-view.coffee
{ScrollView, BufferedProcess} = require 'atom' # Runs a portion of a script through an interpreter and displays it line by line module.exports = class ScriptView extends ScrollView @content: -> @div class: 'script', tabindex: -1, => @div class: 'output' constructor: (interpreter, make_args) -> sup...
{ScrollView, BufferedProcess} = require 'atom' # Runs a portion of a script through an interpreter and displays it line by line module.exports = class ScriptView extends ScrollView @content: -> @div class: 'script', tabindex: -1, => @div class: 'output', outlet: 'output' constructor: (interpreter, mak...
Use spacepen's outlet to append to the output div
Use spacepen's outlet to append to the output div
CoffeeScript
mit
rodionovd/atom-script,rodionovd/atom-script,rgbkrk/atom-script,MichaelSp/atom-script,rodionovd/atom-script,efatsi/atom-script,idleberg/atom-script,anfedorov/atom-script,jchannon/atom-script,efatsi/atom-script,Calyhre/atom-script,rodionovd/atom-script,jchannon/atom-script,Calyhre/atom-script,efatsi/atom-script,anfedorov...
ae9744ed7c9540ce7adafc3456ac27a8aa22ab74
app/assets/javascripts/router.js.coffee
app/assets/javascripts/router.js.coffee
# For more information see: http://emberjs.com/guides/routing/ @Wheelmap.Router.map ()-> @resource 'index', path: '/', queryParams: ['lat', 'lon', 'zoom', 'node_id', 'status'] # index route showing map (no map route because, we need it more than once) # route returns models filtered by bounding box of map view ... ...
# For more information see: http://emberjs.com/guides/routing/ @Wheelmap.Router.map ()-> @resource 'index', path: '/', queryParams: ['lat', 'lon', 'zoom', 'node_id', 'status', 'q'] # index route showing map (no map route because, we need it more than once) # route returns models filtered by bounding box of map view...
Add q param to allowed url parts.
Add q param to allowed url parts.
CoffeeScript
agpl-3.0
sozialhelden/wheelmap,sozialhelden/wheelmap,sozialhelden/wheelmap,sozialhelden/wheelmap,sozialhelden/wheelmap
a7f50484cb3e7afbb41a6372d2b533816d94c350
src/models/Screen.coffee
src/models/Screen.coffee
class Screen extends NativeObject freeze: (options={}, callbacks={})-> @nativeCall method: "freeze" parameters: options successCallbacks: [callbacks.onSuccess] failureCallbacks: [callbacks.onFailure] unfreeze: (options={}, callbacks={})-> @nativeCall method: "unfreeze" p...
class Screen freeze: (options={}, callbacks={})-> steroids.nativeBridge.nativeCall method: "freeze" parameters: options successCallbacks: [callbacks.onSuccess] failureCallbacks: [callbacks.onFailure] unfreeze: (options={}, callbacks={})-> steroids.nativeBridge.nativeCall metho...
Use steroids.nativeBridge.nativeCall instead of supers nativecall
Use steroids.nativeBridge.nativeCall instead of supers nativecall
CoffeeScript
mit
pentateu/steroids-js,AppGyver/steroids-js,AppGyver/steroids-js,pentateu/steroids-js,AppGyver/steroids-js,AppGyver/steroids-js,pentateu/steroids-js
04918a627cacef786712b3a830ef8e3520bd967b
src/base58.coffee
src/base58.coffee
class Base58 constructor: -> @alphabet = "123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ" @base = @alphabet.length encode: (num) -> throw new Error('Value passed is not a number.') if typeof num != 'number' str = '' while num >= @base mod = num % @base str = @alphabet[mo...
class Base58Builder constructor: -> @alphabet = "123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ" @base = @alphabet.length encode: (num) -> throw new Error('Value passed is not a number.') if typeof num != 'number' str = '' while num >= @base mod = num % @base str = @alph...
Rename internal Base58 class to Base58Builder
Rename internal Base58 class to Base58Builder
CoffeeScript
mit
jimeh/node-base58
7ed7672a40914be02ade3a9d5065076f77f5f18a
lib/collector.coffee
lib/collector.coffee
_ = require 'underscore' module.exports = class Collector constructor: -> @sessionId = new Date().getTime() # Private getPath: -> global.project.getPath() # Private getUser: -> process.env.USER # Private getSessionId: -> @sessionId # Private getUserAgen...
_ = require 'underscore' module.exports = class Collector constructor: -> @sessionId = new Date().getTime() # Private getPath: -> global.project.getPath() # Private getUser: -> process.env.USER # Private getSessionId: -> @sessionId # Private getUserAgen...
Use atom.getActivePackages() API for package names
Use atom.getActivePackages() API for package names
CoffeeScript
mit
atom/metrics
0533b9d9daad06e6c4a79f17c5a9d11a0e3aea73
spec/checkout-spec.coffee
spec/checkout-spec.coffee
expect = chai.expect mocha.setup 'bdd' describe 'VTEX JS Checkout Module', -> before -> $.mockjax url: mock.API_URL responseText: mock.orderform.empty it 'should have basic properties', -> expect(vtexjs.checkout).to.be.ok expect(vtexjs.checkout.getOrderForm).to.be.a('function') expect...
expect = chai.expect mocha.setup 'bdd' describe 'VTEX JS Checkout Module', -> before -> $.mockjax url: mock.API_URL responseText: mock.orderform.empty it 'should have basic properties', -> expect(vtexjs.checkout).to.be.ok expect(vtexjs.checkout.getOrderForm).to.be.a('function') expect...
Verify that vtexjs.checkout.orderForm object is created
Verify that vtexjs.checkout.orderForm object is created
CoffeeScript
mit
vtex/vtex.js
a0fd5c9adff80e057e53f4788531fe8fe9027317
app/assets/javascripts/posts.js.coffee
app/assets/javascripts/posts.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/ $ -> $('time').each (index, elem) -> $elem = $(elem) datetime = $elem.attr 'datetime' $elem.te...
# 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/ $ -> $('time').each (index, elem) -> $elem = $(elem) datetime = $elem.attr 'datetime' moment.l...
Initialize moment to english or swedish
Initialize moment to english or swedish Fixes #104
CoffeeScript
mit
cthit/chalmersit-rails,cthit/chalmersit-rails,cthit/chalmersit-rails,cthit/chalmersit-rails
18fc31376ae42894fec0b0ea99d8557efa4d6383
gulpfile.coffee
gulpfile.coffee
coffee = require 'gulp-coffee' gulp = require 'gulp' gutil = require 'gulp-util' mocha = require 'gulp-mocha' rimraf = require 'rimraf' handleError = (err) -> gutil.log err @emit 'end' gulp.task 'clean', (done) -> rimraf './lib', done gulp.task 'build', ['clean'], -> gulp.src './lib-src/**/*.coffee' .pip...
coffee = require 'gulp-coffee' gulp = require 'gulp' gutil = require 'gulp-util' mocha = require 'gulp-mocha' rimraf = require 'rimraf' errorOccurred = no process.once 'exit', (code) -> if errorOccurred and code == 0 process.exit 1 handleError = (err) -> errorOccurred = yes gutil.log err @emit 'end' gulp...
Implement exit codes != 0
Implement exit codes != 0 For more details: https://groups.google.com/forum/#!topic/nodejs/zF7GEoPccqw
CoffeeScript
mit
felixrabe/gulp-setup
e221cf83d48a85451b646fab108bef5c43255763
gulpfile.coffee
gulpfile.coffee
# Load all requirements. gulp = require 'gulp' GulpTaskLoader = require 'gulp-task-loader' require 'require-yaml' # Load configuration. config = require './config.yml' # Configure gulp-task-loader opts = root: config.root, dir: config.tasks, exts: config.ext, config: config gulpTaskLoader = GulpTaskLoader opt...
# Load all requirements. gulp = require 'gulp' GulpTaskLoader = require 'gulp-task-loader' require 'require-yaml' relpath = require 'relative-path' # Load configuration. config = require './config.yml' # Convert config.root to absolute path absroot = relpath config.root console.log absroot # Configure gulp-task-load...
Use absolute root path for opts.config.root
Use absolute root path for opts.config.root
CoffeeScript
mit
ericmdev/gulp.tasks,ericmdev/gulp.tasks
c2b06d1ba109525ae95daf7855f985ee14aa7184
server/cron/sendMetrics.coffee
server/cron/sendMetrics.coffee
import {mongoCallbacksCount} from '../mongo/MongooseCallbackManager' import {GROUPS} from '../../client/lib/informaticsGroups' import {START_SUBMITS_DATE} from '../api/dashboard' import send from '../metrics/graphite' import notify from '../metrics/notify' import Result from "../models/result" sendGraphite = () -> ...
import {GROUPS} from '../../client/lib/informaticsGroups' import {START_SUBMITS_DATE} from '../api/dashboard' import send from '../metrics/graphite' import notify from '../metrics/notify' import FindMistake from '../models/FindMistake' import Result from "../models/result" import {mongoCallbacksCount} from '../mong...
Send pending find mistakes metric to graphite
Send pending find mistakes metric to graphite
CoffeeScript
agpl-3.0
petr-kalinin/algoprog,petr-kalinin/algoprog,petr-kalinin/algoprog,petr-kalinin/algoprog
44128d882a7861a1e7b46721535044b164e218fc
lib/main.coffee
lib/main.coffee
EnterDialog = require './enter-dialog' {Stacktrace} = require './stacktrace' {StacktraceView} = require './stacktrace-view' {NavigationView} = require './navigation-view' editorDecorator = require './editor-decorator' module.exports = activate: (state) -> atom.workspaceView.command 'stacktrace:paste', -> ...
EnterDialog = require './enter-dialog' {Stacktrace} = require './stacktrace' {StacktraceView} = require './stacktrace-view' {NavigationView} = require './navigation-view' editorDecorator = require './editor-decorator' module.exports = activate: (state) -> atom.workspaceView.command 'stacktrace:paste', -> ...
Rename the `caller` command `to-caller`.
Rename the `caller` command `to-caller`.
CoffeeScript
mit
smashwilson/stacktrace
d7def3e352271af4ce4490925950d86097a5d060
spec/javascripts/foobar_spec.js.coffee
spec/javascripts/foobar_spec.js.coffee
# spec/javascripts/foobar_spec.js.coffee describe "foobar", -> it 'works', -> expect(1 + 1).toEqual(2);
# spec/javascripts/foobar_spec.js.coffee describe "foobar", -> it 'works', -> expect(1 + 1).toEqual(2); describe "wanted failure", -> it 'fails', -> expect(1 + 1).toEqual(42);
Add failing test to verify Travis works.
Add failing test to verify Travis works.
CoffeeScript
agpl-3.0
teikei/teikei,sjockers/teikei,teikei/teikei,sjockers/teikei,sjockers/teikei,teikei/teikei
2baf48a5a4360247156400a29fdee25141ceb328
app/assets/javascripts/rich_editable_element.js.coffee
app/assets/javascripts/rich_editable_element.js.coffee
window.Tahi ||= {} class Tahi.RichEditableElement constructor: (@element) -> @instance = CKEDITOR.inline @element, extraPlugins: 'sharedspace' removePlugins: 'floatingspace,resize' sharedSpaces: top: 'toolbar' toolbar: [ [ 'Styles', 'Format', 'FontSize' ] [ 'Bold',...
window.Tahi ||= {} class Tahi.RichEditableElement constructor: (@element) -> @instance = CKEDITOR.inline @element, extraPlugins: 'sharedspace' removePlugins: 'floatingspace,resize' sharedSpaces: top: 'toolbar' toolbar: [ [ 'Format' ] [ 'Bold', 'Italic', 'Underline'...
Remove items from the CKEDITOR toolbar
Remove items from the CKEDITOR toolbar [Finishes #61435398]
CoffeeScript
mit
johan--/tahi,johan--/tahi,johan--/tahi,johan--/tahi
64102476dcadd4ff943dfb27adedea6497456c71
app/assets/javascripts/labels.js.coffee
app/assets/javascripts/labels.js.coffee
class Labels constructor: -> form = $('.label-form') @setupLabelForm(form) @cleanBinding() @addBinding() @updateColorPreview addBinding: -> $(document).on 'click', '.suggest-colors a', @setSuggestedColor $(document).on 'input', 'input#label_color', @updateColorPreview cleanBinding: -...
class Labels constructor: -> form = $('.label-form') @setupLabelForm(form) @cleanBinding() @addBinding() @updateColorPreview() addBinding: -> $(document).on 'click', '.suggest-colors a', @setSuggestedColor $(document).on 'input', 'input#label_color', @updateColorPreview cleanBinding:...
Call updateColorPreview in Labels constructor
Call updateColorPreview in Labels constructor
CoffeeScript
mit
hacsoc/gitlabhq,fscherwi/gitlabhq,bladealslayer/gitlabhq,julianengel/gitlabhq,OlegGirko/gitlab-ce,cncodog/gitlab,dukex/gitlabhq,Telekom-PD/gitlabhq,H3Chief/gitlabhq,xuvw/gitlabhq,DanielZhangQingLong/gitlabhq,mr-dxdy/gitlabhq,hacsoc/gitlabhq,yatish27/gitlabhq,ttasanen/gitlabhq,fgbreel/gitlabhq,mrb/gitlabhq,phinfonet/mob...
d4a6af3f3e171578b6d868044e5e22cc1f8c2e74
keymaps/markdown-preview.cson
keymaps/markdown-preview.cson
'.workspace': 'ctrl-M': 'markdown-preview:toggle' '.platform-darwin .markdown-preview': 'cmd-+': 'markdown-preview:zoom-in' 'cmd-=': 'markdown-preview:zoom-in' 'cmd--': 'markdown-preview:zoom-out' 'cmd-_': 'markdown-preview:zoom-out' 'cmd-0': 'markdown-preview:reset-zoom' '.platform-win32 .markdown-previe...
'.workspace .editor': 'ctrl-M': 'markdown-preview:toggle' '.platform-darwin .markdown-preview': 'cmd-+': 'markdown-preview:zoom-in' 'cmd-=': 'markdown-preview:zoom-in' 'cmd--': 'markdown-preview:zoom-out' 'cmd-_': 'markdown-preview:zoom-out' 'cmd-0': 'markdown-preview:reset-zoom' '.platform-win32 .markdow...
Support preview toggle when focus is on editor
Support preview toggle when focus is on editor
CoffeeScript
mit
atom/markdown-preview,Galadirith/markdown-preview,rugk/markdown-preview,makyo/markdown-preview,sctlee/markdown-preview,ArnaudRinquin/markdown-preview,grimmer0125/markdown-preview-kramdown,tkssharma/markdown-preview
838e179117dceb04c028633b45db7365b763eac0
atom/config.cson
atom/config.cson
"*": core: disabledPackages: [ "wrap-guide" "activate-power-mode" ] editor: {} "exception-reporting": userId: "79967b20-c933-87c9-85b8-ea6b20c3a648" "linter-puppet-lint": oldVersion: false skip140Chars: true skip80Chars: true minimap: plugins: cursorline: true ...
"*": core: disabledPackages: [ "wrap-guide" "activate-power-mode" ] themes: [ "one-light-ui" "one-light-syntax" ] editor: {} "exception-reporting": userId: "79967b20-c933-87c9-85b8-ea6b20c3a648" "linter-puppet-lint": oldVersion: false skip140Chars: true sk...
Change time for atom dark theme
Change time for atom dark theme
CoffeeScript
mit
domingusj/dotfiles
443d591de8ff77a8bfd11d07bd4bba028f6d1283
src/scripts/result.coffee
src/scripts/result.coffee
class ResultViewModel constructor: (@htmlArray) -> @html = ko.computed () => @htmlArray().join("") afterListviewRender: (element, data) -> # サムネイル表示時のレンダリングがうまくいかないので # 自前でクラスを設定する。 $(element).addClass("ui-li-has-thumb") $(element).find("img").addClass("ui-li-thumb") # refresh しないと説明文...
class ResultViewModel constructor: (@htmlArray) -> @html = ko.computed () => @htmlArray().join("") afterListviewRender: (element, data) -> # サムネイル表示時のレンダリングがうまくいかないので # 自前でクラスを設定する。 $(element).addClass("ui-li-has-thumb") $(element).find("img").addClass("ui-li-thumb") # refresh しないと説明文...
Fix can't insert text to TextWell
Fix can't insert text to TextWell
CoffeeScript
mit
toshiya240/PicasaHtml,toshiya240/PicasaHtml
4b42c28bd5d4ff8877729fd795e2755129b04959
app/assets/javascripts/admin/enterprises/controllers/enterprise_controller.js.coffee
app/assets/javascripts/admin/enterprises/controllers/enterprise_controller.js.coffee
angular.module("admin.enterprises") .controller "enterpriseCtrl", ($scope, Enterprise, PaymentMethods, ShippingMethods) -> $scope.Enterprise = Enterprise.enterprise $scope.PaymentMethods = PaymentMethods.paymentMethods $scope.ShippingMethods = ShippingMethods.shippingMethods for PaymentMethod in $sco...
angular.module("admin.enterprises") .controller "enterpriseCtrl", ($scope, Enterprise, PaymentMethods, ShippingMethods) -> $scope.Enterprise = Enterprise.enterprise $scope.PaymentMethods = PaymentMethods.paymentMethods $scope.ShippingMethods = ShippingMethods.shippingMethods for payment_method in $sc...
Refactor admin enterpriseCtrl - variable naming, if x then true else false antipattern
Refactor admin enterpriseCtrl - variable naming, if x then true else false antipattern
CoffeeScript
agpl-3.0
MikeiLL/openfoodnetwork,Matt-Yorkley/openfoodnetwork,RohanM/openfoodnetwork,mkllnk/openfoodnetwork,KosenkoDmitriy/openfoodnetwork,Em-AK/openfoodnetwork,lin-d-hop/openfoodnetwork,levent/openfoodnetwork,ecocitycore/openfoodnetwork,openfoodfoundation/openfoodnetwork,Em-AK/openfoodnetwork,ecocitycore/openfoodnetwork,oeoeai...
9866379f978cb9d50c9031f38efcd52cc912c818
src/publisher.coffee
src/publisher.coffee
path = require 'path' colors = require 'colors' CSON = require 'season' config = require './config' Command = require './command' module.exports = class Publisher extends Command userConfigPath: null atomNpmPath: null constructor: -> @userConfigPath = config.getUserConfigPath() @atomNpmPath = require.re...
path = require 'path' colors = require 'colors' CSON = require 'season' config = require './config' Command = require './command' module.exports = class Publisher extends Command userConfigPath: null atomNpmPath: null constructor: -> @userConfigPath = config.getUserConfigPath() @atomNpmPath = require.re...
Support bumping version from apm publish
Support bumping version from apm publish Now you can just do `apm publish minor` to bump and tag a minor release and then publish it.
CoffeeScript
mit
VandeurenGlenn/apm,ethanp/apm,ethanp/apm,gutsy/apm,bronson/apm,gutsy/apm,gutsy/apm,pusateri/apm,bcoe/apm,bcoe/apm,AtaraxiaEta/apm,fscherwi/apm,pusateri/apm,bcoe/apm,jlord/apm,VandeurenGlenn/apm,AtaraxiaEta/apm,bronson/apm,pusateri/apm,atom/apm,AtaraxiaEta/apm,jlord/apm,AtaraxiaEta/apm,pusateri/apm,Nikpolik/apm,bronson/...
4736527952b8552f50bac790af5e4219c29d9db8
cms/static/coffee/spec/main_spec.coffee
cms/static/coffee/spec/main_spec.coffee
describe "CMS", -> beforeEach -> CMS.unbind() it "should initialize Models", -> expect(CMS.Models).toBeDefined() it "should initialize Views", -> expect(CMS.Views).toBeDefined() describe "main helper", -> beforeEach -> @previousAjaxSettings = $.extend(true, {}, $.ajaxSettings) window.stub...
describe "CMS", -> beforeEach -> CMS.unbind() it "should initialize Models", -> expect(CMS.Models).toBeDefined() it "should initialize Views", -> expect(CMS.Views).toBeDefined() describe "main helper", -> beforeEach -> @previousAjaxSettings = $.extend(true, {}, $.ajaxSettings) window.stub...
Add Jasmine tests to cover AJAX error notifications
Add Jasmine tests to cover AJAX error notifications
CoffeeScript
agpl-3.0
antonve/s4-project-mooc,rue89-tech/edx-platform,dcosentino/edx-platform,BehavioralInsightsTeam/edx-platform,gsehub/edx-platform,OmarIthawi/edx-platform,cyanna/edx-platform,nttks/jenkins-test,synergeticsedx/deployment-wipro,appsembler/edx-platform,adoosii/edx-platform,DNFcode/edx-platform,torchingloom/edx-platform,mtlch...
4b77c84854e5fbe575b7d8cf9370a8121382e267
coffeescripts/app.coffee
coffeescripts/app.coffee
routes = require './routes.js' bodyParser = require 'body-parser' path = require 'path' express = require 'express' app = express() models = require('mongoose').models outline = require '../outline.js' utils = require './utils.js' # Default parsers app.use express.static(path.resolve(outline.dist)) app.use bodyParser...
routes = require './routes.js' bodyParser = require 'body-parser' path = require 'path' express = require 'express' app = express() models = require('mongoose').models outline = require '../outline.js' utils = require './utils.js' # Default parsers app.use express.static(path.resolve(outline.dist)) app.use bodyParser...
Fix list of routes on startup
Fix list of routes on startup
CoffeeScript
mit
flicsl/monk-seed,flicsl/monk-seed
f3088ab120250223ecd2161a32a7ef906ff8814c
app/assets/javascripts/components/users/base.js.coffee
app/assets/javascripts/components/users/base.js.coffee
window.UsersComponent = class UsersComponent @initialize: -> @addEventListeners() @addEventListeners: -> @userDetailsTooltip() @userDetailsTooltip: -> tooltipClass = '.information-tooltip' $("#{tooltipClass}-trigger").toggle( (ev) -> ev.preventDefault() $("#{tooltipClass}-trigger").n...
window.UsersComponent = class UsersComponent @initialize: -> @addEventListeners() @addEventListeners: -> @userDetailsTooltip() @userDetailsTooltip: -> tooltipClass = '.information-tooltip' $(document).on('click', "#{tooltipClass}-trigger", (ev) -> ev.preventDefault() if ($(@).find('....
Make the details link for info working dynamically
Make the details link for info working dynamically
CoffeeScript
bsd-3-clause
unepwcmc/ORS,unepwcmc/ORS,unepwcmc/ORS,unepwcmc/ORS,unepwcmc/ORS
9eac4c338aa2385e7552a474f0040651780367de
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() des...
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() it...
Add specs for Results Validation.
Add specs for Results Validation.
CoffeeScript
mit
atom-community/linter,steelbrain/linter,levity/linter,JohnMurga/linter,AtomLinter/Linter,AsaAyers/linter,iam4x/linter,DanPurdy/linter,kaeluka/linter,mdgriffith/linter,shawninder/linter,Arcanemagus/linter,elkeis/linter,blakeembrey/linter,UltCombo/linter,e-jigsaw/Linter
6e64361bd90499e652f78b01e642e04fc2eaefe3
server/database.coffee
server/database.coffee
Bookshelf = require('bookshelf') config = require('../knex_config').database Bookshelf.PG = PG = Bookshelf.initialize(config) Team = PG.Model.extend tableName: 'teams' hasTimestamps: ['created_at', 'updated_at'] toJSON: -> { id: @id name: @get('name') generation: @get('generation') poke...
Bookshelf = require('bookshelf') {_} = require('underscore') config = require('../knex_config').database Bookshelf.PG = PG = Bookshelf.initialize(config) Team = PG.Model.extend tableName: 'teams' hasTimestamps: ['created_at', 'updated_at'] toJSON: -> contents = @get('contents') { id: @id na...
Support JSON datatype a bit better.
Sim: Support JSON datatype a bit better.
CoffeeScript
mit
sarenji/pokebattle-sim,sarenji/pokebattle-sim,sarenji/pokebattle-sim
8b200cf5c228624e0fb3b9af05a2fc17e5abc682
core/app/backbone/views/subchannel_item_view.coffee
core/app/backbone/views/subchannel_item_view.coffee
class window.SubchannelItemView extends Backbone.Marionette.ItemView tagName: "li" events: click: "clickHandler" "click .close": "destroySubchannel" template: "subchannels/_subchannel_item" initialize: -> @model.bind "destroy", @close, this destroySubchannel: (e) -> @model.destroy() if conf...
class window.SubchannelItemView extends Backbone.Marionette.ItemView tagName: "li" events: click: "clickHandler" "click .close": "destroySubchannel" template: "subchannels/_subchannel_item" initialize: -> @model.bind "destroy", @close, this destroySubchannel: (e) -> @model.destroy() if conf...
Use defaultClickHandler to navigate to subChannel
Use defaultClickHandler to navigate to subChannel
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
57fece75ce55165d1eff3200bab316fa0de5a22a
app/models/fan_mark.coffee
app/models/fan_mark.coffee
Mark = require './mark' class FanMark extends Mark type: 'fan' source: null distance: 0 angle: 0 spread: 0 constructor: -> super @set source: @source || {x: 0, y: 0} distance: @distance angle: @angle spread: @spread 'set distance': (value) -> Math.max value, 10 'set ...
Mark = require './mark' class FanMark extends Mark type: 'fan' source: null distance: 0 angle: 0 spread: 0 constructor: -> super @set source: @source || {x: 0, y: 0} distance: @distance angle: @angle spread: @spread 'set distance': (value) -> Math.max value, 10 'set ...
Remove 90 degree limit from fan tool
Remove 90 degree limit from fan tool
CoffeeScript
apache-2.0
zooniverse/MarsZoo,zooniverse/MarsZoo,zooniverse/MarsZoo,zooniverse/MarsZoo
3ae739fd7b6367aac24fb9f540364e11c93c4e4b
controllers/app.coffee
controllers/app.coffee
# For some odd reason, this isn't working. There's no reason why it shouldn't. I # think either Heroku is messing up my config, or I need to flip a setting in # Heroku somewhere. # # Instead, I'm requiring HTTPS through CloudFlare page rules, a hacky but # effective solution #config = require '../config' # #exports.for...
# For some odd reason, this isn't working. There's no reason why it shouldn't. I # think either Heroku is messing up my config, or I need to flip a setting in # Heroku somewhere. # # Instead, I'm requiring HTTPS through CloudFlare page rules, a hacky but # effective solution #config = require '../config' # #exports.for...
Handle 404's better for queues
Handle 404's better for queues
CoffeeScript
mit
jez/cmd-queue,jez/cmd-queue,jez/cmd-queue
4e6cc09560bd03cf8025544201756168315269dd
app/assets/javascripts/votes.js.coffee
app/assets/javascripts/votes.js.coffee
App.Votes = hoverize: (selector, delegateTo) -> $(selector).on "mouseenter", delegateTo, -> $(this).find("div.anonymous-votes").show() $(this).find("div.organizations-votes").show() $(this).find("div.not-logged").show() $(selector).on "mouseleave", delegateTo, -> $(this).find("div.ano...
App.Votes = hoverize: (selector, delegateTo) -> $(selector).on "mouseenter", delegateTo, -> $(this).find("div.anonymous-votes").show() $(this).find("div.organizations-votes").show() $(this).find("div.not-logged").show() $(selector).on "mouseleave", delegateTo, -> $(this).find("div.ano...
Fix broken tests for resources show
Fix broken tests for resources show
CoffeeScript
agpl-3.0
AjuntamentdeBarcelona/barcelona-participa,AjuntamentdeBarcelona/barcelona-participa,AjuntamentdeBarcelona/decidim.barcelona,AjuntamentdeBarcelona/decidim.barcelona,AjuntamentdeBarcelona/decidimbcn,AjuntamentdeBarcelona/decidim.barcelona,AjuntamentdeBarcelona/decidimbcn,AjuntamentdeBarcelona/decidim.barcelona-legacy,Aju...
69b3366310609c2f4014f50145d1983e8c0950d8
assets/js/share.coffee
assets/js/share.coffee
#= require ../../node_modules/share/node_modules/browserchannel/dist/bcsocket-uncompressed #= require ../../node_modules/share/webclient/share.uncompressed #= require ../../node_modules/share/webclient/json.uncompressed module = angular.module "plunker.share", [] module.service "share", [ () -> ]
#= require ./../../node_modules/share/node_modules/browserchannel/dist/bcsocket-uncompressed #= require ./../../node_modules/share/webclient/share.uncompressed #= require ./../../node_modules/share/webclient/json.uncompressed
Remove angular service not used
Remove angular service not used
CoffeeScript
mit
filearts/plunker_collab
ba11bd76675db35c0c567a2876cae85eda575705
lib/init.coffee
lib/init.coffee
module.exports = configDefaults: executableDir: null activate: -> console.log 'activate linter-python-flake8'
module.exports = configDefaults: executableDir: null maxLineLength: 79 ignoreErrorCodes: [] activate: -> console.log 'activate linter-python-flake8'
Set defaults for maxLineLength, ignoreErrorCodes
Set defaults for maxLineLength, ignoreErrorCodes Specified a default max line length of 79 chars (PEP8 default) and report all error codes by default
CoffeeScript
mit
keras/linter-flake8,AtomLinter/linter-flake8,patrys/linter-flake8
2eb1da3f478e25d2298959de25e21b470da34618
lib/main.coffee
lib/main.coffee
module.exports = config: jshintExecutablePath: default: '' type: 'string' description: 'Leave empty to use bundled' provideLinter: -> jshintPath = require('path').join(__dirname, '..', 'node_modules', '.bin', 'jshint') helpers = require('atom-linter') reporter = require('jshint-js...
module.exports = config: jshintExecutablePath: default: '' type: 'string' description: 'Leave empty to use bundled' provideLinter: -> jshintPath = require('path').join(__dirname, '..', 'node_modules', '.bin', 'jshint') helpers = require('atom-linter') reporter = require('jshint-js...
Use || instead of or
:art: Use || instead of or
CoffeeScript
mit
jlsalvador/linter-jslint
b9a9c612740de4dc871c2f68d59388d3acadaf1d
lib/main.coffee
lib/main.coffee
{CompositeDisposable} = require 'atom' module.exports = config: require './config' activate: (state) -> @transpiler ?= new (require './transpiler') # track any file save ( buffer save) events and transpile if babel @disposable = new CompositeDisposable @disposable.add atom.project.onDidChangePaths...
{CompositeDisposable} = require 'atom' module.exports = config: require './config' activate: (state) -> @transpiler ?= new (require './transpiler') # track any file save events and transpile if babel @disposable = new CompositeDisposable @textEditors = {} @disposable.add atom.project.onDidCha...
Improve handling of TextEditor subscriptions and only save on ActiveTextEditors.
Improve handling of TextEditor subscriptions and only save on ActiveTextEditors.
CoffeeScript
mit
gandm/language-babel
7377d8a5ea015c92b5aebdafa2ee5f707ad3c9f0
lib/action.coffee
lib/action.coffee
connect = require('connect') utils = connect.utils forbiddenURLChars= /\/([._][^/]*)|_$/ ### todo: // detect if URL is of a directory and, if so, bring up the _index if (stat.isDirectory()) if (!redirect) return @next(); @res.statusCode = 301; @res.setHeader('Location', url.pathname + '/'); @res.end('Redirecti...
connect = require('connect') utils = connect.utils forbiddenURLChars= /\/([._][^/]*)|_$/ ### todo: // detect if URL is of a directory and, if so, bring up the _index if (stat.isDirectory()) if (!redirect) return @next(); @res.statusCode = 301; @res.setHeader('Location', url.pathname + '/'); @res.end('Redirecti...
Test for allowed extensions by converting list to regexp and testing.
Test for allowed extensions by converting list to regexp and testing.
CoffeeScript
mit
randymized/malifi
389586bb41f655921edd48f3df4ebea97bcced3b
src/browser/atom-protocol-handler.coffee
src/browser/atom-protocol-handler.coffee
app = require 'app' fs = require 'fs' path = require 'path' protocol = require 'protocol' # Private: Handles requests with 'atom' protocol. # # It's created by {AtomApplication} upon instantiation, and is used to create a # custom resource loader by adding the 'atom' custom protocol. module.exports = class AtomProtoco...
app = require 'app' fs = require 'fs' path = require 'path' protocol = require 'protocol' # Private: Handles requests with 'atom' protocol. # # It's created by {AtomApplication} upon instantiation, and is used to create a # custom resource loader by adding the 'atom' custom protocol. module.exports = class AtomProtoco...
Add ~/.atom/dev/packages to load paths
Add ~/.atom/dev/packages to load paths
CoffeeScript
mit
vcarrera/atom,vjeux/atom,bryonwinger/atom,nucked/atom,Abdillah/atom,john-kelly/atom,MjAbuz/atom,pengshp/atom,h0dgep0dge/atom,charleswhchan/atom,tmunro/atom,0x73/atom,johnrizzo1/atom,gisenberg/atom,davideg/atom,ObviouslyGreen/atom,vjeux/atom,brettle/atom,scv119/atom,ilovezy/atom,qiujuer/atom,bj7/atom,chengky/atom,Jander...
2978f8320da218ac74c8444c2aedd7c69df53eda
src/i18n.coffee
src/i18n.coffee
I18n = (id, args...) -> m = chrome.i18n.getMessage(id, [args...]) return escapeHtml(m) if m != "" m = id.replace(/(.)([A-Z][a-z])/g, (m, p1, p2) -> "#{p1} #{p2.toLowerCase()}") m = m.replace(/_/g, ' ') escapeHtml(m) $(-> pat = /__MSG_([A-Za-z0-9]+)__/ $("a,button").each((i, v) -> e = $(v) title =...
I18n = (id_or_object, args...) -> switch typeof id_or_object when "string" m = chrome.i18n.getMessage(id_or_object, [args...]) return escapeHtml(m) if m != "" m = id_or_object.replace( /(.)([A-Z][a-z])/g, (m, p1, p2) -> "#{p1} #{p2.toLowerCase()}" ) m = m.replace(/_/g...
Add multi-language object ({en: "hoge"}) support
Add multi-language object ({en: "hoge"}) support
CoffeeScript
mit
kimushu/rubic,kimushu/rubic
e5fd9acca5920d376bd0978ac935e12917575b2b
manager.coffee
manager.coffee
httpProxy = require 'http-proxy' http = require 'http' service = require './service' DEFAULT_CONFIG = dir: "/Users/adam/.wow" timeout: 20000 class ServiceManager constructor: (config) -> @config = config or DEFAULT_CONFIG @services = {} getService: (name) => if @services[name]?...
httpProxy = require 'http-proxy' http = require 'http' path = require 'path' service = require './service' HOME = process.env.HOME or process.env.HOMEPATH or process.env.USERPROFILE DEFAULT_CONFIG = dir: path.join HOME, ".wow" timeout: 20000 class ServiceManager constructor: (config) -> @config =...
Remove hardcoded home directory path
Remove hardcoded home directory path
CoffeeScript
mit
adambrenecki/poxy
3b87c5d84bac18b23fa8840969cb29fd2f1e1c57
src/main.coffee
src/main.coffee
app = require 'app' delegate = require 'atom_delegate' path = require 'path' Window = require 'window' # All opened windows. windows = [] # Quit when all windows are closed. app.on 'window-all-closed', -> app.quit() delegate.browserMainParts.preMainMessageLoopRun = -> win = new Window width: 800, height: 600, sh...
app = require 'app' delegate = require 'atom_delegate' path = require 'path' Window = require 'window' resourcePath = path.dirname(__dirname) # All opened windows. windows = [] # Quit when all windows are closed. app.on 'window-all-closed', -> app.quit() openWindowWithParams = (pairs) -> win = new Window width:...
Set bootstrapScript and resourcePath params in URL.
Set bootstrapScript and resourcePath params in URL.
CoffeeScript
mit
gabrielPeart/atom,kc8wxm/atom,vinodpanicker/atom,Shekharrajak/atom,ralphtheninja/atom,001szymon/atom,efatsi/atom,charleswhchan/atom,acontreras89/atom,yamhon/atom,bcoe/atom,Jonekee/atom,SlimeQ/atom,sillvan/atom,prembasumatary/atom,bryonwinger/atom,constanzaurzua/atom,devmario/atom,boomwaiza/atom,sotayamashita/atom,Foldi...
cdd6f2f5f630b1571a4f13b7064970d6108e1309
server/lib/presenters/indicator.coffee
server/lib/presenters/indicator.coffee
Q = require 'q' moment = require('moment') HeadlineService = require('../services/headline') TYPE_SOURCE_MAP = esri: name: 'Environment Agency - Abu Dhabi' url: 'http://www.ead.ae' worldBank: name: 'World Bank Database' url: 'http://data.worldbank.org' DATE_FORMAT = 'D MMM YYYY' module.exports =...
Q = require 'q' moment = require('moment') HeadlineService = require('../services/headline') DATE_FORMAT = 'D MMM YYYY' module.exports = class IndicatorPresenter constructor: (@indicator) -> populateHeadlineRangesFromHeadlines: (headlines) -> @indicator.headlineRanges = {} xAxis = @indicator.indicatorD...
Remove unused type -> source map
Remove unused type -> source map
CoffeeScript
bsd-3-clause
unepwcmc/NRT,unepwcmc/NRT
501ec5e6979c988ef91173bd902e32e15488da4b
widgets/list/list.coffee
widgets/list/list.coffee
Batman.mixin Batman.Filters, timeText: (str_time)-> str_time = str_time.split('+') moment.locale('de') now = moment.utc() start = moment(str_time[0], "HH-mm").add(str_time[1], 'minutes') "#{start.from(now)} (+#{str_time[1]})" class Dashing.List extends Dashing.Widget ready: -> if @get('uno...
Batman.mixin Batman.Filters, timeText: (str_time)-> str_time = str_time.split('+') moment.locale('de') now = moment.utc() start = moment(str_time[0], "HH-mm").add(str_time[1], 'minutes') if str_time[1] "#{start.from(now)} (+#{str_time[1]})" else "#{start.from(now)} (+?)" class Da...
Hide rnv delay if undefined
Hide rnv delay if undefined
CoffeeScript
mit
silsha/infoscreen-v6,silsha/infoscreen-v6,silsha/infoscreen-v6
b351121a2b23d2ac8a32826f7d9a58e4222ec894
server/router.coffee
server/router.coffee
mkdirp = Meteor.npmRequire 'mkdirp' Busboy = Meteor.npmRequire "busboy" fs = Npm.require 'fs' os = Npm.require 'os' path = Npm.require 'path' Router.route '/image/:roomId', name: 'image' where: 'server' onBeforeAction: (req, res, next) -> {roomId} = @params filenames = [] if req.method is 'POST' ...
mkdirp = Meteor.npmRequire 'mkdirp' Busboy = Meteor.npmRequire "busboy" fs = Npm.require 'fs' os = Npm.require 'os' path = Npm.require 'path' Router.route '/image/:roomId', name: 'image' where: 'server' onBeforeAction: (req, res, next) -> {roomId} = @params filenames = [] if req.method is 'POST' ...
Fix variable names since changing parameter names.
Fix variable names since changing parameter names.
CoffeeScript
mit
SussexLearningSystems/peakaboo,SussexLearningSystems/peakaboo,SussexLearningSystems/peakaboo
bf7ad73096ce59253f7ca62503dcd6000ec37854
app/collections/get-favorites-name.cjsx
app/collections/get-favorites-name.cjsx
# Get the name of the favorites collection for a project module?.exports = (project) -> #--> Naming Convention: "Favorites for #{project_id}" # Prevents global uniqueness validation conflict under project scope name = "Favorites" name += " (#{project.id})" if project? name
# Get the name of the favorites collection for a project module?.exports = (project) -> #--> Naming Convention: "Favorites for #{project_id}" # Prevents global uniqueness validation conflict under project scope name = "Favorites" name += " (#{project.slug})" if project? name
Use slug for favorites naming
Use slug for favorites naming - Keeps collection name unique, but is more descriptive - Closes #1357
CoffeeScript
apache-2.0
mrniaboc/Panoptes-Front-End,parrish/Panoptes-Front-End,fmnhExhibits/Panoptes-Front-End,fmnhExhibits/Panoptes-Front-End,edpaget/Panoptes-Front-End,CKrawczyk/Panoptes-Front-End,amyrebecca/Panoptes-Front-End,zooniverse/Panoptes-Front-End,fmnhExhibits/Panoptes-Front-End,mrniaboc/Panoptes-Front-End,CKrawczyk/Panoptes-Front-...
117870068ee6e372a712b108804367ae047c7823
src/config/initializers/tasks/package.coffee
src/config/initializers/tasks/package.coffee
op = require '../../../tasks/package/operators' module.exports = (config) -> config.tasks.package.merge operatorsMap: 'annotate:class': op.annotateClass 'annotate:file': op.annotateFile 'join': op.join 'compile': op.compile 'uglify': op.uglify 'create:directory': op.createDire...
op = require '../../../tasks/package/operators' module.exports = (config) -> config.tasks.package.merge operatorsMap: 'annotate:class': op.annotateClass 'annotate:file': op.annotateFile 'compile': op.compile 'create:directory': op.createDirectory 'create:file': op.saveToFile '...
Rename saveToFile operator as create:file
Rename saveToFile operator as create:file
CoffeeScript
mit
abe33/neat,abe33/neat,abe33/neat,abe33/neat
844fccc177791dc206e247bacc14604e2a1a415c
common/api/lib/callbacks-registry.coffee
common/api/lib/callbacks-registry.coffee
module.exports = class CallbacksRegistry constructor: -> @nextId = 0 @callbacks = {} add: (callback) -> @callbacks[++@nextId] = callback @nextId get: (id) -> @callbacks[id] call: (id, args...) -> @get(id).call global, args... apply: (id, args...) -> @get(id).apply global, args....
module.exports = class CallbacksRegistry constructor: -> @emptyFunc = -> throw new Error "Browser trying to call a non-exist callback in renderer, this usually happens when renderer code forgot to release a callback installed on objects in browser when renderer was going to be unloaded or releas...
Use random number as id in CallbacksRegistry.
Use random number as id in CallbacksRegistry. It's very possible that the callbacks got GCed before the render view is closed (like page getting refreshed), so we should not let browser call the wrong callback, instead we should throw error whenever a callback is not found.
CoffeeScript
mit
thompsonemerson/electron,sky7sea/electron,mrwizard82d1/electron,JesselJohn/electron,vaginessa/electron,abhishekgahlot/electron,howmuchcomputer/electron,lzpfmh/electron,davazp/electron,medixdev/electron,jaanus/electron,nicholasess/electron,aecca/electron,Andrey-Pavlov/electron,vHanda/electron,simonfork/electron,JussMee1...
a431f80f3acf38c6e7b44e07fc3e2e1c5a06dfd1
assets/scripts/app/controllers/profile.coffee
assets/scripts/app/controllers/profile.coffee
Controller = Ember.Controller.extend name: 'profile' needs: ['currentUser', 'accounts', 'account'] userBinding: 'controllers.currentUser' accountBinding: 'controllers.account' activate: (action, params) -> this["view#{$.camelize(action)}"]() viewHooks: -> @connectTab('hooks') @get('controller...
Controller = Ember.Controller.extend name: 'profile' needs: ['currentUser', 'accounts', 'account'] userBinding: 'controllers.currentUser' accountBinding: 'controllers.account' activate: (action, params) -> this["view_#{action}".camelize()]() viewHooks: -> @connectTab('hooks') @get('controller...
Use String.camelize instead of $.camelize
Use String.camelize instead of $.camelize
CoffeeScript
mit
Tiger66639/travis-web,jlrigau/travis-web,fauxton/travis-web,mjlambert/travis-web,Tiger66639/travis-web,jlrigau/travis-web,2947721120/travis-web,jlrigau/travis-web,fauxton/travis-web,travis-ci/travis-web,fauxton/travis-web,travis-ci/travis-web,Tiger66639/travis-web,2947721120/travis-web,travis-ci/travis-web,2947721120/t...
bbf5cfb96a25c47037d7b4033ddbe9ac86d7a0b6
lib/twitter.coffee
lib/twitter.coffee
Twitter = require 'twitter' client = new Twitter consumer_key: process.env.HUBOT_TWITTER_CONSUMER_KEY, consumer_secret: process.env.HUBOT_TWITTER_CONSUMER_SECRET, access_token_key: process.env.HUBOT_TWITTER_ACCESS_TOKEN_KEY, access_token_secret: process.env.HUBOT_TWITTER_ACCESS_TOKEN_SECRET, # I give you, a p...
Twitter = require 'twitter' client = new Twitter consumer_key: process.env.HUBOT_TWITTER_CONSUMER_KEY, consumer_secret: process.env.HUBOT_TWITTER_CONSUMER_SECRET, access_token_key: process.env.HUBOT_TWITTER_ACCESS_TOKEN_KEY, access_token_secret: process.env.HUBOT_TWITTER_ACCESS_TOKEN_SECRET, # I give you, a p...
Fix the header and success path
Fix the header and success path
CoffeeScript
mit
Drewzar/arrakis-hubot,n1ckn4m3/hayt,sbryant/arrakis-hubot,websages/hayt,desert-planet/hayt,pmn/hayt,skalnik/hayt,drobati/hayt,thecodercody/hayt
7394ab0852be1c90cb3116b565635e9cbf83661e
assets/javascripts/views/pages/base.coffee
assets/javascripts/views/pages/base.coffee
class app.views.BasePage extends app.View constructor: (@el, @entry) -> super deactivate: -> if super @highlightNodes = [] render: (content, fromCache = false) -> @highlightNodes = [] @previousTiming = null @addClass "_#{@entry.doc.type}" unless @constructor.className @html content ...
class app.views.BasePage extends app.View constructor: (@el, @entry) -> super deactivate: -> if super @highlightNodes = [] render: (content, fromCache = false) -> @highlightNodes = [] @previousTiming = null @addClass "_#{@entry.doc.type}" unless @constructor.className @html content ...
Fix copy-to-clipboard links in highlighted code blocks
Fix copy-to-clipboard links in highlighted code blocks
CoffeeScript
mpl-2.0
yosiat/devdocs,rlugojr/devdocs,webcoding/devdocs,webcoding/devdocs,webcoding/devdocs,rlugojr/devdocs,yosiat/devdocs,rlugojr/devdocs,yosiat/devdocs
00f120ec610c3d210b7ec8053ac8070f3d3d4208
app/assets/javascripts/helpers.js.coffee
app/assets/javascripts/helpers.js.coffee
$.fn.equalHeights = () -> max = -1 $(this).each -> h = $(this).height() max = (if h > max then h else max) $(this).css "min-height": max
$.fn.equalHeights = () -> max = -1 $(this).each -> h = $(this).outerHeight() max = (if h > max then h else max) $(this).css "min-height": max
Use calculated outerHeight for equalHeight plugin
Use calculated outerHeight for equalHeight plugin
CoffeeScript
mit
SoPR/sopr-platform,SoPR/sopr-platform
51e511c72ec284c6896cd1a48b2b8e9ad5454c05
Gruntfile.coffee
Gruntfile.coffee
module.exports = -> # Project configuration @initConfig pkg: @file.readJSON 'package.json' # BDD tests on Node.js mochaTest: nodejs: src: ['spec/*.coffee'] options: reporter: 'spec' # Coding standards coffeelint: components: files: src: [...
module.exports = -> # Project configuration @initConfig pkg: @file.readJSON 'package.json' # BDD tests on Node.js mochaTest: nodejs: src: ['spec/*.coffee'] options: reporter: 'spec' # Coding standards coffeelint: components: files: src: [...
Bump line length limit to 100
Grunt: Bump line length limit to 100
CoffeeScript
mit
msgflo/msgflo,msgflo/msgflo-nodejs,msgflo/msgflo,msgflo/msgflo
0b2031eab4ae5632272748cd2173b515334a1ef3
.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) -> #...
Add a crude debugging method for Atom package development
Add a crude debugging method for Atom package development
CoffeeScript
isc
Alhadis/Atom-PhoenixTheme
b7f10d70d605adf058ceab60d990c5931d6726d0
app/assets/javascripts/static.js.coffee
app/assets/javascripts/static.js.coffee
# Place all the behaviors and hooks related to the matching controller here. # All this logic will automatically be available in application.js. # You can use CoffeeScript in this file: http://coffeescript.org/ roundUpBy = (value, round_to) -> return round_to * Math.ceil(value / round_to) formatNumber = (number) ->...
# Place all the behaviors and hooks related to the matching controller here. # All this logic will automatically be available in application.js. # You can use CoffeeScript in this file: http://coffeescript.org/ roundUpBy = (value, round_to) -> return round_to * Math.ceil(value / round_to) formatNumber = (number) ->...
Make the final count the original number
Make the final count the original number
CoffeeScript
agpl-3.0
openaustralia/morph,otherchirps/morph,openaustralia/morph,otherchirps/morph,openaustralia/morph,openaustralia/morph,otherchirps/morph,openaustralia/morph,openaustralia/morph,otherchirps/morph,otherchirps/morph,openaustralia/morph,otherchirps/morph,otherchirps/morph
11d24e939bdb984f21048b6740e736b55ab6ac52
app/views/SalesView.coffee
app/views/SalesView.coffee
app = require 'core/application' AuthModal = require 'views/core/AuthModal' RootView = require 'views/core/RootView' template = require 'templates/sales-view' module.exports = class SalesView extends RootView id: 'sales-view' template: template events: 'click .btn-contact-us': 'onClickContactUs' 'click ...
app = require 'core/application' AuthModal = require 'views/core/AuthModal' RootView = require 'views/core/RootView' template = require 'templates/sales-view' module.exports = class SalesView extends RootView id: 'sales-view' template: template events: 'click .btn-contact-us': 'onClickContactUs' 'click ...
Add smooth down arrow navigation to /schools
Add smooth down arrow navigation to /schools
CoffeeScript
mit
probil/codecombat,icodegame/codecombat,kidaa/codecombat,codecombat/codecombat,duybkict/codecombat,weevilgenius/codecombat,jeremyprice/codecombat,fabichoi/codecombat,tpai/codecombat,zhangxiuquan/codecombat,duybkict/codecombat,differentmatt/codecombat,zhangxiuquan/codecombat,khoa102/codecombat,Zerrien/codecombat,Zerrien/...
ec4e472f8c21f587827278a4a042871c767876b1
widgets/lecturelist/lecturelist.coffee
widgets/lecturelist/lecturelist.coffee
class Dashing.Lecturelist extends Dashing.Widget ready: -> onData: (data) -> i = 0 node = $(@get('node')) if data.items.length == 0 @set 'empty', true while i < data.items.length capacity = data.items[i].capacity tickets = data.items[i].tickets people = "" x = capac...
class Dashing.Lecturelist extends Dashing.Widget ready: -> @currentIndex = 0 @items = $(@node).find('li') @nextItem() @startCarousel() onData: (data) -> @currentIndex = 0 i = 0 if data.items.length == 0 @set 'empty', true while i < data.items.length capacity = data.it...
Make upcoming lectures into a scrolly fadey inny outy carousel
Make upcoming lectures into a scrolly fadey inny outy carousel
CoffeeScript
mit
theodi/dashboards,theodi/dashboards,theodi/dashboards
ad36b2c6a662cac9f4254c6b1056c25917d73a36
spec/spec-suite.coffee
spec/spec-suite.coffee
fs = require 'fs' require 'window' measure 'spec suite require time', -> fsUtils = require 'fs-utils' path = require 'path' require 'spec-helper' requireSpecs = (directoryPath, specType) -> for specPath in fsUtils.listTreeSync(path.join(directoryPath, 'spec')) when /-spec\.coffee$/.test specPath re...
require 'window' measure 'spec suite require time', -> fs = require 'fs' fsUtils = require 'fs-utils' path = require 'path' _ = require 'underscore' require 'spec-helper' requireSpecs = (directoryPath, specType) -> for specPath in fsUtils.listTreeSync(path.join(directoryPath, 'spec')) when /-spec\.cof...
Allow user package specs to override bundled package specs
Allow user package specs to override bundled package specs
CoffeeScript
mit
FIT-CSE2410-A-Bombs/atom,hpham04/atom,avdg/atom,mostafaeweda/atom,devmario/atom,yomybaby/atom,dkfiresky/atom,Andrey-Pavlov/atom,toqz/atom,basarat/atom,elkingtonmcb/atom,john-kelly/atom,isghe/atom,matthewclendening/atom,batjko/atom,jlord/atom,fredericksilva/atom,paulcbetts/atom,toqz/atom,bsmr-x-script/atom,yangchenghu/a...