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
711afa55a28232774605e1788caafdf5aaf95be5
src/events.register.coffee
src/events.register.coffee
# Eventful code comes here # Program state should not be manipulated outside events files # Please note the following conventions: # # * Use jquery delegate in place of live # http://jupiterjs.com/news/why-you-should-never-use-jquery-live # # Register document events registerDOMEvents = () -> state.viewport.do...
# Eventful code comes here # Program state should not be manipulated outside events files # Please note the following conventions: # # * Use jquery delegate in place of live # http://jupiterjs.com/news/why-you-should-never-use-jquery-live # # Register document events registerDOMEvents = () -> state.viewport.do...
Fix the hook for the source compile button
Fix the hook for the source compile button
CoffeeScript
mit
circuithub/morpheus,circuithub/morpheus
36da00bb2afe707e0c6a95dc43c198350f52df0f
app/lib/get_tutorial_subject.coffee
app/lib/get_tutorial_subject.coffee
Subject = require 'models/subject' module.exports = -> Subject.create id: '5077375154558fabd7000003' zooniverseId: 'TUTORIAL_SUBJECT' location: standard: [ 'images/tutorial-subject/PICT0500.JPG' 'images/tutorial-subject/PICT0501.JPG' 'images/tutorial-subject/PICT0502.JPG' ] co...
Subject = require 'models/subject' module.exports = -> Subject.create id: '5077375154558fabd7000003' zooniverseId: 'TUTORIAL_SUBJECT' workflowId: '5077375154558fabd7000002' location: standard: [ 'images/tutorial-subject/PICT0500.JPG' 'images/tutorial-subject/PICT0501.JPG' 'images/t...
Add workflow ID to tutorial subject
Add workflow ID to tutorial subject
CoffeeScript
apache-2.0
zooniverse/Serengeti,zooniverse/Wisconsin-Zoo,zooniverse/Serengeti,alexbfree/Serengeti,zooniverse/gorongosa,zooniverse/Snapshot-Chicago,zooniverse/Serengeti,zooniverse/Snapshot-Chicago,zooniverse/gorongosa,alexbfree/Serengeti,zooniverse/Wisconsin-Zoo,alexbfree/Serengeti
3152f6a40b4e1f79148aa461f188365407fd7a20
spec/spec-helper.coffee
spec/spec-helper.coffee
require 'coffee-cache' beforeEach -> document.querySelector('#jasmine-content').innerHTML = "" exports.keydownEvent = (keyIdentifier, {ctrl, shift, alt, cmd, which, target}={}) -> event = document.createEvent('KeyboardEvent') bubbles = true cancelable = true view = null keyIdentifier = keyIdentifier.toUpp...
require 'coffee-cache' beforeEach -> document.querySelector('#jasmine-content').innerHTML = "" exports.keydownEvent = (key, {ctrl, shift, alt, cmd, which, target}={}) -> event = document.createEvent('KeyboardEvent') bubbles = true cancelable = true view = null key = key.toUpperCase() if /^[a-z]$/.test(key...
Make keydownEvent helper method more realistic and add some :lipstick:
Make keydownEvent helper method more realistic and add some :lipstick: The name of keyIdentifier should be captialized
CoffeeScript
mit
atom/atom-keymap
b5ee88ff4af5c536f637b118399d3119385dfa5c
components/mixins/transition.coffee
components/mixins/transition.coffee
# This mess is probably going to get replaced with something like: # http://ricostacruz.com/jquery.transit/ module.exports = fade: ($el, options) -> $el. attr('data-state', 'fade-out'). one($.support.transition.end, -> options.out() if options?.out? $el. attr('data-state', 'f...
module.exports = fade: ($el, options = {}) -> $el. attr('data-state', 'fade-out'). one($.support.transition.end, -> options.out() if options.out? $el. attr('data-state', 'fade-in'). one($.support.transition.end, -> options.in() if options.in? )...
Allow duration to be configured
Allow duration to be configured
CoffeeScript
mit
artsy/force,dblock/force,yuki24/force,mzikherman/force,mzikherman/force,artsy/force,kanaabe/force,dblock/force,xtina-starr/force,xtina-starr/force,mzikherman/force,damassi/force,xtina-starr/force,kanaabe/force,joeyAghion/force,erikdstock/force,eessex/force,anandaroop/force,joeyAghion/force,artsy/force-public,izakp/forc...
f992b54745dbeac9b3a15d999e3d9b3849086186
test/unit/widget.coffee
test/unit/widget.coffee
ROOT = {} sinon = require("sinon") assert = require("assert") require("../../src/environment").call(ROOT) require("../../src/support/Widget").call(ROOT) describe "widgets", -> describe "el should be overideable", -> before -> this.OptionWidget = new ROOT.Widget( el: "div" ) this...
ROOT = {} sinon = require("sinon") assert = require("assert") require("../../src/environment").call(ROOT) require("../../src/support/Widget").call(ROOT) describe "widgets", -> describe "root should be overideable", -> before -> this.OptionWidget = new ROOT.Widget( root: "div" ) ...
Rename unit test to update confusing test
Rename unit test to update confusing test
CoffeeScript
mit
bluespeckfinancial/pioneer,bruz/pioneer,bluespeckfinancial/pioneer,mojotech/pioneer,mAiNiNfEcTiOn/pioneer,bruz/pioneer,mojotech/pioneer,bruz/pioneer,mojotech/pioneer,mAiNiNfEcTiOn/pioneer,bluespeckfinancial/pioneer,mAiNiNfEcTiOn/pioneer
42b0802e17dd5a493b39b5071b5b2401d2ea0e7b
spec/participant.coffee
spec/participant.coffee
msgflo = require 'msgflo' path = require 'path' chai = require 'chai' unless chai heterogenous = require '../node_modules/msgflo/spec/heterogenous.coffee' python = process.env.PYTHON or 'python' participants = 'PythonRepeat': [python, path.join __dirname, '..', 'examples', 'repeat.py'] # Note: most require running ...
msgflo = require 'msgflo' path = require 'path' chai = require 'chai' unless chai heterogenous = require '../node_modules/msgflo/spec/heterogenous.coffee' python = process.env.PYTHON or 'python' participants = 'PythonRepeat': [python, path.join __dirname, '..', 'examples', 'repeat.py'] # Note: most require running ...
Fix not passing broker address
tests: Fix not passing broker address
CoffeeScript
mit
msgflo/msgflo-python
63ee3e4524b37edc15a7547002d5dafb6f2b4517
lib/zombie/sizzle.coffee
lib/zombie/sizzle.coffee
# Select document elements using Sizzle.js. fs = require("fs") sizzle = fs.readFileSync(__dirname + "/../../dep/sizzle.js", "utf8") core = require("jsdom").dom.level3.core close = core.HTMLDocument.prototype.close core.HTMLDocument.prototype.close = -> close.call this window = @parentWindow # Load Sizzle and ad...
# Select document elements using Sizzle.js. fs = require("fs") vm = process.binding("evals") sizzle = new vm.Script(fs.readFileSync(__dirname + "/../../dep/sizzle.js", "utf8"), "sizzle.js") core = require("jsdom").dom.level3.core close = core.HTMLDocument.prototype.close core.HTMLDocument.prototype.close = -> close....
Use Script to load Sizzle.js
Use Script to load Sizzle.js
CoffeeScript
mit
jashmenn/zombie,cgvarela/zombie,cgvarela/zombie,scoky/zombie,vivanvish/zombie,educostachaves/zombie,j1mr10rd4n/zombie,jagoda/zombie,aslakhellesoy/zombie,aaerox/zombie,aaerox/zombie,audreyt/zombie,mdlavin/zombie,vivanvish/zombie,cgvarela/zombie,scraperwiki-archive/zombie,aslakhellesoy/zombie,assaf/zombie,vcarel/zombie,D...
9d08988d0a029b59fd9384f1f4688cf7749479b4
workers/social/lib/social/models/workspace.coffee
workers/social/lib/social/models/workspace.coffee
{ Model } = require 'bongo' { Module } = require 'jraphical' module.exports = class JWorkspace extends Module {signature, secure} = require 'bongo' @share() @set schema : name : String machineUId : String rootPath : String owner : String ...
{ Model } = require 'bongo' { Module } = require 'jraphical' module.exports = class JWorkspace extends Module {signature, secure} = require 'bongo' @share() @set schema : name : String machineUId : String rootPath : String owner : String ...
Remove unused methods and signatures.
Workspace: Remove unused methods and signatures.
CoffeeScript
agpl-3.0
koding/koding,kwagdy/koding-1,cihangir/koding,rjeczalik/koding,gokmen/koding,acbodine/koding,kwagdy/koding-1,cihangir/koding,andrewjcasal/koding,jack89129/koding,sinan/koding,sinan/koding,usirin/koding,cihangir/koding,kwagdy/koding-1,alex-ionochkin/koding,szkl/koding,sinan/koding,szkl/koding,szkl/koding,andrewjcasal/ko...
1ea00f29efe9c458d0abf6bbfeb9865dc6095b43
atom.symlink/config.cson
atom.symlink/config.cson
"*": Zen: {} "atom-material-ui": fonts: {} "autocomplete-plus": {} core: disabledPackages: [ "markdown-preview" ] themes: [ "atom-material-ui" "solarized-dark-syntax" ] editor: invisibles: {} softWrap: true softWrapAtPreferredLineLength: true tabLength: 4 ...
"*": Zen: {} "atom-material-ui": fonts: {} "autocomplete-plus": {} core: customFileTypes: "source.cpp": [ "h" ] disabledPackages: [ "markdown-preview" ] themes: [ "atom-material-ui" "solarized-dark-syntax" ] editor: invisibles: {} softWrap:...
Update C++ custom header file type
Update C++ custom header file type
CoffeeScript
mit
chiragraman/dotfiles,chiragraman/dotfiles
b2b7139a37c7c55bc16cd79de0429c329c7a53d6
app/scripts/route.coffee
app/scripts/route.coffee
'use strict' class Route ROUTES: root: title: 'Root' url: '/' partial: '#partial-home' init: [Account] notes: title: 'Notes' url: '/notes' partial: '#partial-note' init: [Note] about: title: 'About' url: '/about' partial: '#partial-home' ...
'use strict' class Route ROUTES: root: title: 'Root' url: '/' partial: '#partial-home' init: [Account] notes: title: 'Notes' url: '/notes' partial: '#partial-note' init: [Note] about: title: 'About' url: '/about' partial: '#partial-home' ...
Add constructed instances to array
Add constructed instances to array
CoffeeScript
apache-2.0
wiz-note/note-app
54e57983ee80c06a201e9ccf0a718c1baeee2ec9
static/script.coffee
static/script.coffee
define ['jquery', 'semantic', 'utils', 'charts'], ($, semantic, utils, charts) -> currentCity = utils.getCookie('city') availableCity = ['Guangzhou', 'Beijing', 'Shanghai', 'Chengdu', 'Shenyang'] currentCity = 'Guangzhou' if currentCity not in availableCity charts.renderChart currentCity # listen city click...
define ['jquery', 'semantic', 'utils', 'charts'], ($, semantic, utils, charts) -> currentCity = utils.getCookie('city') availableCity = ['Guangzhou', 'Beijing', 'Shanghai', 'Chengdu', 'Shenyang'] currentCity = 'Guangzhou' if currentCity not in availableCity charts.renderChart currentCity # listen city click...
Clean up dropdown binding click event code
Clean up dropdown binding click event code
CoffeeScript
mit
banbanchs/leda,banbanchs/leda,banbanchs/leda
099f879bef445f2f348862ede9586221ef33a140
client/app/MainApp/sidebar/virtualizationcontrols.coffee
client/app/MainApp/sidebar/virtualizationcontrols.coffee
class VirtualizationControls extends KDButtonGroupView constructor:-> options = cssClass : "virt-controls" buttons : "Start" : callback : -> log "Start machine" "Stop" : callback : -> log "Stop machine" "Turn Off" : callback...
class VirtualizationControls extends KDButtonGroupView constructor:-> options = cssClass : "virt-controls" buttons : "Start" : callback : -> KD.singletons.kiteController.run kiteName: 'os', method: 'vm.start' "Stop" ...
Call os kite from VM buttons.
Call os kite from VM buttons.
CoffeeScript
agpl-3.0
gokmen/koding,rjeczalik/koding,andrewjcasal/koding,andrewjcasal/koding,sinan/koding,cihangir/koding,rjeczalik/koding,jack89129/koding,cihangir/koding,koding/koding,acbodine/koding,rjeczalik/koding,drewsetski/koding,andrewjcasal/koding,drewsetski/koding,usirin/koding,sinan/koding,koding/koding,usirin/koding,szkl/koding,...
762c885ee3efccd737f125ea536533ea16e99e2c
config/atom_config.cson
config/atom_config.cson
"*": core: telemetryConsent: "limited" editor: fontFamily: "Menlo" invisibles: {} softWrap: true "exception-reporting": userId: "0f9c4bca-c1e4-c885-1374-c2dd26290ade" "spell-check": {} tabs: addNewTabsAtEnd: true welcome: showOnStartup: false
"*": core: telemetryConsent: "limited" themes: [ "one-light-ui" "one-light-syntax" ] editor: fontFamily: "Menlo" invisibles: {} softWrap: true "exception-reporting": userId: "0f9c4bca-c1e4-c885-1374-c2dd26290ade" "spell-check": {} tabs: addNewTabsAtEnd: true welco...
Switch Atom to light theme
Switch Atom to light theme
CoffeeScript
mit
fredym/workenv
58d41296b395ca69faa0f4baa2d002a84dd099fa
app/js/jail_iframe/classes/control_iframe.coffee
app/js/jail_iframe/classes/control_iframe.coffee
class ControlIframe constructor: -> @el = document.createElement('iframe') #need to append to outer document before we can access frame document. FactlinkJailRoot.$factlinkCoreContainer.append(@el) @$el = $(@el) @doc = @el.contentWindow.document; @doc.open() #need doctype to avoid quirks ...
class ControlIframe constructor: -> @el = document.createElement('iframe') #need to append to outer document before we can access frame document. FactlinkJailRoot.$factlinkCoreContainer.append(@el) @$el = $(@el) @doc = @el.contentWindow.document; @doc.open() #need doctype to avoid quirks ...
Implement content-setter for the control iframe
Implement content-setter for the control iframe
CoffeeScript
mit
Factlink/js-library,Factlink/js-library,Factlink/js-library
95feb84a6b8a54ce0376c2ab17c6ddb65b970595
routes/time_entries/index.coffee
routes/time_entries/index.coffee
TimeEntriesController = require "#{__dirname}/../../controllers/time_entries" TimeEntry = require "#{__dirname}/../../models/time_entry" _ = require 'underscore' handler = (app) -> app.get '/time_entries', (req, res) -> if typeof req.query.projectId isnt 'undefined' TimeEntriesController.getForProject re...
TimeEntriesController = require "#{__dirname}/../../controllers/time_entries" TimeEntry = require "#{__dirname}/../../models/time_entry" _ = require 'underscore' handler = (app) -> app.get '/time_entries', (req, res) -> if typeof req.query.projectId isnt 'undefined' TimeEntriesController.getForProject re...
Use the req.user.id when making time entries
Use the req.user.id when making time entries
CoffeeScript
bsd-3-clause
t3mpus/tempus-api
cf09c285247f5adeaea55d35338769ee91ef98f9
app/assets/javascripts/routes/flow_manager_route.js.coffee
app/assets/javascripts/routes/flow_manager_route.js.coffee
ETahi.FlowManagerRoute = Ember.Route.extend model: -> @store.find("flow") actions: chooseNewFlowMangerColumn: -> @render('chooseNewFlowManagerColumnOverlay', into: 'application' outlet: 'overlay' controller: 'chooseNewFlowManagerColumnOverlay') removeFlow: (flow) -> ...
ETahi.FlowManagerRoute = Ember.Route.extend model: -> @store.find("flow") actions: chooseNewFlowMangerColumn: -> @render('chooseNewFlowManagerColumnOverlay', into: 'application' outlet: 'overlay' controller: 'chooseNewFlowManagerColumnOverlay') removeFlow: (flow) -> ...
Change urls for task view in FlowManager
Change urls for task view in FlowManager
CoffeeScript
mit
johan--/tahi,johan--/tahi,johan--/tahi,johan--/tahi
81303a3a8ae756997e40923119b776be4b3dec52
components/inquiry_questionnaire/views/step.coffee
components/inquiry_questionnaire/views/step.coffee
_ = require 'underscore' Backbone = require 'backbone' form = require '../../form/utilities.coffee' module.exports = class StepView extends Backbone.View __events__: null events: -> _.extend @__events__, 'click .js-nevermind': 'dismiss' initialize: ({ @user, @state, @artwork }) -> # template: -> ...
_ = require 'underscore' Backbone = require 'backbone' form = require '../../form/utilities.coffee' module.exports = class StepView extends Backbone.View __events__: null events: -> _.extend @__events__, 'click .js-nevermind': 'dismiss' initialize: ({ @user, @state, @artwork }) -> @__setup__() ...
Include a setup method that only runs once on initialization
Include a setup method that only runs once on initialization
CoffeeScript
mit
mzikherman/force,kanaabe/force,yuki24/force,artsy/force,damassi/force,mzikherman/force,anandaroop/force,joeyAghion/force,xtina-starr/force,dblock/force,xtina-starr/force,izakp/force,erikdstock/force,izakp/force,oxaudo/force,joeyAghion/force,kanaabe/force,oxaudo/force,erikdstock/force,oxaudo/force,artsy/force-public,kan...
dfe7a8fd46ec0e400551ff5d48faef4faee51cab
src/app/projects/states/tutorials/tutorials.coffee
src/app/projects/states/tutorials/tutorials.coffee
angular.module('doubtfire.projects.states.tutorials', []) # # Tasks state for projects # .config(($stateProvider) -> $stateProvider.state 'projects/tutorials', { parent: 'projects/index' url: '/tutorials' controller: 'ProjectsTutorialsStateCtrl' templateUrl: 'projects/states/tutorials/tutorials.tpl.h...
angular.module('doubtfire.projects.states.tutorials', []) # # Tasks state for projects # .config(($stateProvider) -> $stateProvider.state 'projects/tutorials', { parent: 'projects/index' url: '/tutorials' controller: 'ProjectsTutorialsStateCtrl' templateUrl: 'projects/states/tutorials/tutorials.tpl.h...
Add success alert messages on changing tutorial
ENHANCE: Add success alert messages on changing tutorial
CoffeeScript
agpl-3.0
alexcu/doubtfire-web,alexcu/doubtfire-web,doubtfire-lms/doubtfire-web,doubtfire-lms/doubtfire-web,doubtfire-lms/doubtfire-web,doubtfire-lms/doubtfire-web
ce3255fb1a36a602b62adfc803a459a7554403aa
lib/generators/templates/app.js.coffee
lib/generators/templates/app.js.coffee
#= require ./store #= require_tree ./models #= require_tree ./controllers #= require_tree ./views #= require_tree ./helpers #= require_tree ./templates #= require_tree ./routes #= require ./router #= require_self <%= application_name.camelize %>.initialize()
#= require ./store #= require_tree ./models #= require_tree ./controllers #= require_tree ./views #= require_tree ./helpers #= require_tree ./templates #= require_tree ./routes #= require ./router #= require_self
Remove App.initialize from coffeescript template
Remove App.initialize from coffeescript template
CoffeeScript
mit
tricknotes/ember-rails,bterkuile/ember-rails,emberjs/ember-rails,kongregate/ember-rails,kongregate/ember-rails,emberjs/ember-rails,tricknotes/ember-rails,bcavileer/ember-rails,emberjs/ember-rails,tricknotes/ember-rails,ipmobiletech/ember-rails,maschwenk/ember-rails,bterkuile/ember-rails,bcavileer/ember-rails,maschwenk/...
3700466347b4b6ce5e20ae662fa0dfdef1d1b113
app/assets/javascripts/views/search_results_grid.coffee
app/assets/javascripts/views/search_results_grid.coffee
#= require slickgrid #= require SlickGrid/slick.dataview #= require SlickGrid/slick.groupitemmetadataprovider Pancakes.SearchResultsGrid = Ember.View.extend columns: [] classNames: ['grid'] options: {} # Build up the SlickGrid elements. # # The grid is the only visual element here; the rest are for groupi...
#= require slickgrid #= require SlickGrid/slick.dataview #= require SlickGrid/slick.groupitemmetadataprovider Pancakes.SearchResultsGrid = Ember.View.extend columns: [] classNames: ['grid'] options: {} # Build up the SlickGrid elements. # # The grid is the only visual element here; the rest are for groupi...
Fix an initialization order goof.
Fix an initialization order goof.
CoffeeScript
mit
NUBIC/ncs_navigator_pancakes,NUBIC/ncs_navigator_pancakes,NUBIC/ncs_navigator_pancakes
62cf880a08f02b4f7a34cc14cbc755467df3a0eb
src/lib/middleware/locals.coffee
src/lib/middleware/locals.coffee
# Inject common project-wide [view locals](http://expressjs.com/api.html#app.locals). { parse, format } = require 'url' _ = require 'underscore' { NODE_ENV } = require '../../config' module.exports = (req, res, next) -> res.locals.sd.CURRENT_URL = req.url res.locals.sd.CURRENT_PATH = parse(req.url).pathname res...
# Inject common project-wide [view locals](http://expressjs.com/api.html#app.locals). { parse, format } = require 'url' _ = require 'underscore' { NODE_ENV } = require '../../config' module.exports = (req, res, next) -> res.locals.sd.CURRENT_URL = req.url res.locals.sd.CURRENT_PATH = parse(req.url).pathname res...
Set do not track to false if it doesn't exist
Set do not track to false if it doesn't exist
CoffeeScript
mit
aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell
787dd69847756b8950d478f556b622a5ce57f099
snippets/handlebars.cson
snippets/handlebars.cson
# ///////////////////////////////////// # handlebars # ///////////////////////////////////// '.text.handlebars': 'Ember: get': 'prefix': 'get' 'body': "{{get '${1}'}}" 'Ember: helper': 'prefix': 'helper' 'body': "{{${1:get} '${2}'}}" 'Ember: closure helper': 'prefix': 'chelper' 'body'...
# ///////////////////////////////////// # handlebars # ///////////////////////////////////// '.text.html.handlebars': 'Ember: get': 'prefix': 'get' 'body': "{{get '${1}'}}" 'Ember: helper': 'prefix': 'helper' 'body': "{{${1:get} '${2}'}}" 'Ember: closure helper': 'prefix': 'chelper' '...
Update handlebar snippets file type group
Update handlebar snippets file type group
CoffeeScript
mit
mattmcmanus/atom-ember-snippets
27515484378643f0a6238275aeba3ccbe873f7a6
assets/javascripts/controllers/index_controller.js.coffee
assets/javascripts/controllers/index_controller.js.coffee
App.IndexController = Ember.ArrayController.extend needs: ["application"] currentUser: Ember.computed.alias("controllers.application.currentUser") itemController: "RoomUserStateItem" detectMessageType: (msgTxt)-> if msgTxt.match("\n") "paste" else "text" actions: postMessage: (msgT...
App.IndexController = Ember.ArrayController.extend needs: ["application"] currentUser: Ember.computed.alias("controllers.application.currentUser") itemController: "RoomUserStateItem" detectMessageType: (msgTxt)-> if msgTxt.match("\n") "paste" else "text" actions: postMessage: (msgT...
Send room instead of roomId
Send room instead of roomId
CoffeeScript
mit
sashafklein/bloc-mogo,louishawkins/mogo-chat,sashafklein/bloc-mogo,di-stars/mogo-chat,di-stars/mogo-chat,louishawkins/mogo-chat,HashNuke/mogo-chat,di-stars/mogo-chat,HashNuke/mogo-chat,sashafklein/bloc-mogo,HashNuke/mogo-chat,louishawkins/mogo-chat
1bb875ef10ba743494688eaf3d8ad0285a380917
atom.symlink/config.cson
atom.symlink/config.cson
"*": core: disabledPackages: [ "preview-tabs" "script" ] ignoredNames: [ ".DS_Store" ".bundle" ".git" ] projectHome: "/Users/justas/Projects" editor: fontFamily: "Menlo" fontSize: 15 invisibles: {} showIndentGuide: true "exception-reporting": u...
"*": core: disabledPackages: [ "preview-tabs" "script" ] ignoredNames: [ ".DS_Store" ".bundle" ".git" ] projectHome: "/Users/justas/Projects" editor: backUpBeforeSaving: true fontFamily: "Menlo" fontSize: 15 invisibles: {} showIndentGuide: true ...
Add backUpBeforeSaving for Atom editor
Add backUpBeforeSaving for Atom editor
CoffeeScript
mit
jpalumickas/dotfiles,jpalumickas/dotfiles
490f285a87ab66088a8e3fe2edd1ae5bb763c868
src/plugins/eowcs.coffee
src/plugins/eowcs.coffee
class TimeSlider.Plugin.EOWCS constructor: (@options = {})-> @formatDate = (date) -> date = date.toISOString() date = date.substring(0, date.length - 5) date + "Z" callback = (start, end, callback) => request = d3.xhr(WCS.EO.KVP.describeEOCoverageSet...
class TimeSlider.Plugin.EOWCS constructor: (@options = {})-> @formatDate = (date) -> date = date.toISOString() date = date.substring(0, date.length - 5) date + "Z" callback = (start, end, callback) => request = d3.xhr(WCS.EO.KVP.describeEOCoverageSet...
Return an empty list of datasets if the xhr receives an error
Return an empty list of datasets if the xhr receives an error Signed-off-by: Marko Locher <9efe9a5a1da5f41a4eb7599f2715dc24abf5bbc8@locher.at>
CoffeeScript
mit
EOX-A/d3.TimeSlider
9ef7df1768ae496307ffcd75c4398957d69ac94b
app/assets/javascripts/photo_overlay.js.coffee
app/assets/javascripts/photo_overlay.js.coffee
$ -> overlay = new Overlay('.js-open-overlay') setCommentPaneHeight = (el) -> overlay = $(el) topRightHeight = overlay.find('.js-overlay-top-right').height() commentPaneHeight = overlay.find('.js-overlay-right').innerHeight() - topRightHeight commentList = overlay.find('.js-overlay-comments-container') com...
$ -> overlay = new Overlay('.js-open-overlay') setCommentPaneHeight = (el) -> overlay = $(el) topRightHeight = overlay.find('.js-overlay-top-right').height() commentPaneHeight = overlay.find('.js-overlay-right').innerHeight() - topRightHeight commentList = overlay.find('.js-overlay-comments-container') com...
Fix overlay next / prev button positiono
Fix overlay next / prev button positiono On tablet resolution devices, the arrows will be vertically centered within the image.
CoffeeScript
mit
RobinClowers/photo-album,RobinClowers/photo-album,RobinClowers/photo-album,RobinClowers/photo-album
7735d8fbfd2a678a5a501af0cb86d0358a01bcf7
common/api/lib/crash-reporter.coffee
common/api/lib/crash-reporter.coffee
binding = process.atomBinding 'crash_reporter' class CrashReporter start: (options={}) -> {productName, companyName, submitUrl, autoSubmit, ignoreSystemCrashHandler, extra} = options productName ?= 'Atom-Shell' companyName ?= 'GitHub, Inc' submitUrl ?= 'http://54.249.141.25' autoSubmit ?= true ...
binding = process.atomBinding 'crash_reporter' class CrashReporter start: (options={}) -> {productName, companyName, submitUrl, autoSubmit, ignoreSystemCrashHandler, extra} = options productName ?= 'atom-shell' companyName ?= 'GitHub, Inc' submitUrl ?= 'http://54.249.141.25:1127/post' autoSubmit...
Update default crash report submission URL.
Update default crash report submission URL.
CoffeeScript
mit
saronwei/electron,MaxGraey/electron,cos2004/electron,subblue/electron,jcblw/electron,tonyganch/electron,ianscrivener/electron,aliib/electron,pirafrank/electron,gerhardberger/electron,tonyganch/electron,leftstick/electron,tylergibson/electron,egoist/electron,xfstudio/electron,JussMee15/electron,kenmozi/electron,vaginess...
cebd711eb76e6158a24c65cf0e3389644220ff91
index.coffee
index.coffee
requirejs.config({ paths: { fabric: [ 'lib/fabric'] } }) define ['game', 'synchronizedtime', 'position', 'lib/fabric', 'lib/jquery'], (Game, SynchronizedTime, Position) -> # Fabric is deliberately not set as an argument console.log "Fabric: ", fabric console.log "Position: ", new Position([1,2], 0, 5...
requirejs.config({ paths: { fabric: [ 'lib/fabric'] } }) define ['game', 'synchronizedtime', 'position', 'lib/fabric', 'lib/jquery'], (Game, SynchronizedTime, Position) -> # Fabric is deliberately not set as an argument canvas = $("#canvas") canvas.width = document.body.clientWidth canvas.height =...
Set canvas dimensions to the document dimensions
Set canvas dimensions to the document dimensions
CoffeeScript
agpl-3.0
Aaron1011/beamwars
837ce4a64d38debded4f52df379217b492e97bb3
app/assets/javascripts/peek/views/resque.coffee
app/assets/javascripts/peek/views/resque.coffee
$(document).on 'peek:update', -> resqueContext = $('#peek-context-resque') if resqueContext.size() context = resqueContext.data('context') failures = context.jobs.failures $('#resque-jobs-tooltip').attr('title', "Failures: #{failures}").tipsy()
$(document).on 'peek:render', (event, data) -> $('#resque-jobs-tooltip').attr('title', "Failures: #{data.context.resque.jobs.failures}").tipsy()
Use provided context payload to render tooltip
Use provided context payload to render tooltip
CoffeeScript
mit
peek/peek-resque
c55a1a9fafe0a51231cb3360bb3a990ab785388a
app/assets/javascripts/table_sortable.js.coffee
app/assets/javascripts/table_sortable.js.coffee
App.TableSortable = getCellValue: (row, index) -> $(row).children("td").eq(index).text() comparer: (index) -> (a, b) -> valA = App.TableSortable.getCellValue(a, index) valB = App.TableSortable.getCellValue(b, index) return if $.isNumeric(valA) and $.isNumeric(valB) then valA - valB else v...
App.TableSortable = getCellValue: (row, index) -> $(row).children("td").eq(index).text() comparer: (index) -> (a, b) -> valA = App.TableSortable.getCellValue(a, index) valB = App.TableSortable.getCellValue(b, index) return if $.isNumeric(valA) and $.isNumeric(valB) then valA - valB else v...
Simplify finding rows for sortable tables
Simplify finding rows for sortable tables Including the table body is more intuitive than excluding the first row and the table foot.
CoffeeScript
agpl-3.0
consul/consul,usabi/consul_san_borondon,consul/consul,consul/consul,usabi/consul_san_borondon,usabi/consul_san_borondon,consul/consul,consul/consul,usabi/consul_san_borondon
9414600ddc0e3731cdd29665be57a5a3dc8d7b9b
app/assets/javascripts/sprangular/controllers/header.coffee
app/assets/javascripts/sprangular/controllers/header.coffee
Sprangular.controller "HeaderCtrl", ( $scope, $location, Cart, Account, Catalog, Env, Flash, Status, Angularytics, $translate ) -> $scope.cart = Cart Catalog.taxonomies().then (taxonomies) -> $scope.taxonomies = taxonomies $scope.account = Account $scope.env = Env $scope.search = {tex...
Sprangular.controller "HeaderCtrl", ( $scope, $location, Cart, Account, Catalog, Env, Flash, Status, Angularytics, $translate ) -> $scope.cart = Cart Catalog.taxonomies().then (taxonomies) -> $scope.taxonomies = taxonomies $scope.account = Account $scope.env = Env $scope.search = {tex...
Reduce auto-complete to 3 results
Reduce auto-complete to 3 results
CoffeeScript
mit
sprangular/sprangular,sprangular/sprangular,sprangular/sprangular
ccfaeffbfc54ad35011768ce52df20d38d7bbc6a
client/app/views/config_application_list.coffee
client/app/views/config_application_list.coffee
ViewCollection = require 'lib/view_collection' ApplicationRow = require 'views/config_application' PopoverDescriptionView = require 'views/popover_description' ApplicationsList = require '../collections/application' module.exports = class ApplicationsListView extends ViewCollection id: 'config-application-list' ...
ViewCollection = require 'lib/view_collection' ApplicationRow = require 'views/config_application' PopoverDescriptionView = require 'views/popover_description' ApplicationsList = require '../collections/application' module.exports = class ApplicationsListView extends ViewCollection id: 'config-application-list' ...
Fix sorting for apps in "manage your apps" view
Fix sorting for apps in "manage your apps" view Apps in _manage your apps_ views is correctly sorted at first, but addded apps are push to the bottom of the list. This commit fix sorting when appending new sub-view to the list.
CoffeeScript
agpl-3.0
mycozycloud/cozy-home,nledez/cozy-home,neophylon/cozy-home,kelukelu/cozy-home,Kloadut/cozy-home,babolivier/cozy-home,cozy/cozy-home-backup,mycozycloud/cozy-home,Gara64/cozy-home,neophylon/cozy-home,cozy/cozy-home-backup,nicofrand/cozy-home,poupotte/cozy-home,jsilvestre/cozy-home,babolivier/cozy-home,Gara64/cozy-home,fr...
5068b90abecada287d540b073be6d75970aa8f86
atom/packages.cson
atom/packages.cson
packages: [ "atom-beautify" "atom-elixir" "atom-wrap-in-tag" "atomic-chrome" "auto-update-packages" "busy-signal" "close-tags" "date" "elmjutsu" "file-icons" "git-history" "git-plus" "git-time-machine" "highlight-selected" "language-elixir" "language-elm" "language-erlang" "language-...
packages: [ "atom-beautify" "atom-elixir" "atom-wrap-in-tag" "atomic-chrome" "auto-update-packages" "busy-signal" "close-tags" "date" "elmjutsu" "file-icons" "git-plus" "highlight-selected" "language-elixir" "language-elm" "language-erlang" "language-haml" "language-pug" "language-rs...
Remove git-history and git-time-machine from Atom
Remove git-history and git-time-machine from Atom
CoffeeScript
mit
jeffcole/dotfiles-local
d02aba88bd01916025be03eca2f31ac05b2872cc
app/src/controllers/common/dialogs/common_dialogs_qrcode_dialog_view_controller.coffee
app/src/controllers/common/dialogs/common_dialogs_qrcode_dialog_view_controller.coffee
class @CommonDialogsQrcodeDialogViewController extends @DialogViewController view: videoCaptureContainer: '#video_capture_container' qrcodeCheckBlock: null onAfterRender: -> super @_startScanner() show: -> ledger.managers.permissions.request 'videoCapture', (granted) => _.defer => super...
class @CommonDialogsQrcodeDialogViewController extends @DialogViewController view: videoCaptureContainer: '#video_capture_container' qrcodeCheckBlock: null onAfterRender: -> super _.defer => @_startScanner() show: -> ledger.managers.permissions.request 'videoCapture', (granted) => _.def...
Fix scanner delay that prevented video from appearing
Fix scanner delay that prevented video from appearing
CoffeeScript
mit
LedgerHQ/ledger-wallet-chrome,LedgerHQ/ledger-wallet-chrome
dac528896ce7cece74ecb5a6a047dd824dc0df10
lib/tests_finder.coffee
lib/tests_finder.coffee
fs = require 'fs' path = require 'path' # Finds all test files in the given directory. class TestsFinder constructor: (@directory) -> # Returns the name of all files within the given directory that contain tests. files: -> files = [] @_search_directory @directory, files files _search_director...
fs = require 'fs' path = require 'path' # Finds all test files in the given directory. class TestsFinder constructor: (@directory) -> # Returns the name of all files within the given directory that contain tests. files: -> @_search_directory @directory, [] # Adds all test files in the current directo...
Simplify recursive file search interface
Simplify recursive file search interface
CoffeeScript
mit
Originate/mycha
42d5edf83e4f76a89463aa11258cff102510d1ed
src/scripts/wowser/ui/screens/authentication.coffee
src/scripts/wowser/ui/screens/authentication.coffee
class Wowser.ui.screens.Authentication constructor: (@$scope, @$rootScope) -> @session = new Wowser(Wowser.expansions.wotlk) @host = 'localhost' @username = '' @password = '' @session.auth.on 'connect', => @authenticate() @session.auth.on 'authenticate', => @$rootScope.state = '...
class Wowser.ui.screens.Authentication constructor: (@$scope) -> @session = @$scope.session @host = 'localhost' @username = '' @password = '' @session.auth.on 'connect', => @authenticate() @session.auth.on 'authenticate', => @$scope.$apply => @session.screen = 'realm-sel...
Use session stored in scope
Use session stored in scope
CoffeeScript
mit
eoy/wowser,wowserhq/wowser,eoy/wowser,timkurvers/wowser,wowserhq/wowser,timkurvers/wowser
bfdf5af06be3db9f88275763b82ecc9165d8488a
index.coffee
index.coffee
document.write 'i dunno why i have to write or something to get body working T____T' Grid = require './lib/javascripts/grid' columns = new Backbone.Collection [ label: 'hello' , label: 'world' ] grid = new Grid { columns } grid.render() document.querySelector('body').appendChild(grid.el)
document.write 'i dunno why i have to write or something to get body working T____T' Grid = require './lib/javascripts/grid' columns = new Backbone.Collection [ { label: 'hello', name: 'greeting' } { label: 'world', name: 'everyone' } ] collection = new Backbone.Collection [ { greeting: 'hola', everyone: 'todo...
Add more dummy data to example
Add more dummy data to example
CoffeeScript
mit
juanca/marionette-tree,juanca/marionette-tree
f6acd252b3d3eeb1946ec483e12cac0b1998001c
config.coffee-dist.coffee
config.coffee-dist.coffee
# Facebook config exports.facebook = appId: null secretKey: null # Meetup config exports.meetup = null # API key as string
# Facebook config exports.facebook = appId: null secretKey: null # Meetup config exports.meetup = null # API key as string #Eventbrite config exports.eventbrite = appKey: null
Add eventbrite to config example
Add eventbrite to config example
CoffeeScript
mit
pilsprog/paraply2,pilsprog/paraply2
6e2780fc1f109faf50f86997e831c1e77d7b46e3
lib/love-provider.coffee
lib/love-provider.coffee
fs = require 'fs' path = require 'path' module.exports = selector: '.source.lua' disableForSelector: '.source.lua .comment, .source.lua .string' inclusionPriority: 10 excludeLowerPriority: true getSuggestions: ( { editor, bufferPosition, scopeDescriptor, prefix, activatedManually } ) -> i...
fs = require 'fs' path = require 'path' module.exports = selector: '.source.lua' disableForSelector: '.source.lua .comment, .source.lua .string' inclusionPriority: 10 excludeLowerPriority: true filterSuggestions: true getSuggestions: ( { editor, bufferPosition, scopeDescriptor, prefix, activa...
Enable fuzzy filter for suggestions
Enable fuzzy filter for suggestions
CoffeeScript
mit
rm-code/love-atom,rm-code/love-atom
6a17c18934540cdd531af875d88fa5514dcdbde5
app/assets/javascripts/modules/country/base.js.coffee
app/assets/javascripts/modules/country/base.js.coffee
require(['annular_sector'], (annularSector)-> $vizContainer = $('#protected-coverage-viz') return false if $vizContainer.length == 0 $vizContainer.find('.viz').each (idx, el) -> value = $(el).attr('data-value') return if typeof +value isnt 'number' or +value is isNaN data = [ { value: v...
$(document).ready( -> require(['annular_sector'], (annularSector)-> $vizContainer = $('#protected-coverage-viz') return false if $vizContainer.length == 0 $vizContainer.find('.viz').each (idx, el) -> value = $(el).attr('data-value') return if typeof +value isnt 'number' or +value is isNaN ...
Load JS on country page correctly
Load JS on country page correctly
CoffeeScript
bsd-3-clause
unepwcmc/ProtectedPlanet,unepwcmc/ProtectedPlanet,unepwcmc/ProtectedPlanet,unepwcmc/ProtectedPlanet,unepwcmc/ProtectedPlanet
6618f4337a4e64091193ad0a419fd0db5c5972d4
spec/participant.coffee
spec/participant.coffee
msgflo = require 'msgflo' path = require 'path' chai = require 'chai' unless chai heterogenous = require '../node_modules/msgflo/spec/heterogenous.coffee' participants = 'C++Repeat': [path.join __dirname, '..', 'build', './repeat-cpp'] describe 'Participants', -> address = 'amqp://localhost' g = broker: nul...
msgflo = require 'msgflo' path = require 'path' chai = require 'chai' unless chai heterogenous = require '../node_modules/msgflo/spec/heterogenous.coffee' participants = 'C++Repeat': [path.join __dirname, '..', 'build', './repeat-cpp'] # Note: most require running an external broker service transports = #'MQTT': ...
Prepare support for MQTT, uncomment to enable
tests: Prepare support for MQTT, uncomment to enable
CoffeeScript
mit
msgflo/msgflo-cpp,msgflo/msgflo-cpp
99bd24f6296a25dcfe5c0d501a101b05f092942f
packages/rocketchat-ui/views/404/roomNotFound.coffee
packages/rocketchat-ui/views/404/roomNotFound.coffee
Template.roomNotFound.helpers data: -> return Session.get 'roomNotFound'
Template.roomNotFound.helpers data: -> return Session.get 'roomNotFound' name: -> return Blaze._escape(this.name)
Fix XSS vulnerability in room not found name.
Fix XSS vulnerability in room not found name.
CoffeeScript
mit
Sing-Li/Rocket.Chat,mrsimpson/Rocket.Chat,timkinnane/Rocket.Chat,Movile/Rocket.Chat,4thParty/Rocket.Chat,snaiperskaya96/Rocket.Chat,LearnersGuild/Rocket.Chat,galrotem1993/Rocket.Chat,Gyubin/Rocket.Chat,matthewshirley/Rocket.Chat,trt15-ssci-organization/Rocket.Chat,LearnersGuild/echo-chat,igorstajic/Rocket.Chat,nishimak...
10ff6256a569fee457150e3a168e00159ec9a909
lineman/app/components/lmo_href/lmo_href.coffee
lineman/app/components/lmo_href/lmo_href.coffee
angular.module('loomioApp').directive 'lmoHref', ($window, $router, LmoUrlService) -> restrict: 'A' scope: path: '@lmoHref' model: '=lmoHrefModel' link: (scope, elem, attrs) -> LmoUrlService.route(path: scope.path, model: scope.model, params: scope.params) elem.attr 'href', '' elem.bind 'click...
angular.module('loomioApp').directive 'lmoHref', ($window, $router, LmoUrlService) -> restrict: 'A' scope: path: '@lmoHref' model: '=lmoHrefModel' link: (scope, elem, attrs) -> route = LmoUrlService.route(path: scope.path, model: scope.model, params: scope.params) elem.attr 'href', '' elem.bin...
Fix lmo href link function
Fix lmo href link function
CoffeeScript
agpl-3.0
piratas-ar/loomio,juliagra/loomio,FSFTN/Loomio,doomergithub/loomio,annewchen/loomio,FSFTN/Loomio,juliagra/loomio,loomio/loomio,codingnutty/loomio,loomio/loomio,juliagra/DBCloomio,mhjb/loomio,piratas-ar/loomio,sicambria/loomio,codingnutty/loomio,mlarghydracept/loomio,piratas-ar/loomio,mhjb/loomio,gvalerin/loomio,doomerg...
e2be87eba6849d7f446a77ab2313d9964f0e3a6e
src/course/model.coffee
src/course/model.coffee
_ = require 'underscore' React = require 'react' EventEmitter2 = require 'eventemitter2' api = require '../api' channel = new EventEmitter2 wildcard: true class Course constructor: (@collectionUUID) -> api.channel.on "course.#{@collectionUUID}.registration.complete", ({data}) => _.extend(this, data) ...
_ = require 'underscore' React = require 'react' EventEmitter2 = require 'eventemitter2' api = require '../api' channel = new EventEmitter2 wildcard: true class Course constructor: (attributes) -> _.extend(@, attributes) api.channel.on "course.#{@ecosystem_book_uuid}.registration.complete", ({data}) => ...
Set uuid for course and register using an invite
Set uuid for course and register using an invite
CoffeeScript
agpl-3.0
openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js
fe1c61a4045e7663e48aae187c3cf21a76ae6d5e
app/components/tag-search.cjsx
app/components/tag-search.cjsx
React = require 'react' Select = require 'react-select' apiClient = require '../api/client' debounce = require 'debounce' module.exports = React.createClass displayName: 'TagSearch' getDefaultProps: -> multi: true searchTags: (value, callback) -> if value is '' callback null, { options: [] } ...
React = require 'react' Select = require 'react-select' apiClient = require '../api/client' debounce = require 'debounce' module.exports = React.createClass displayName: 'TagSearch' getDefaultProps: -> multi: true searchTags: (value, callback) -> if value is '' callback null, { options: [] } ...
Add current tag value to search field value on blur
Add current tag value to search field value on blur
CoffeeScript
apache-2.0
amyrebecca/Panoptes-Front-End,parrish/Panoptes-Front-End,mrniaboc/Panoptes-Front-End,camallen/Panoptes-Front-End,CKrawczyk/Panoptes-Front-End,aliburchard/Panoptes-Front-End,fmnhExhibits/Panoptes-Front-End,tfmorris/Panoptes-Front-End,CKrawczyk/Panoptes-Front-End,edpaget/Panoptes-Front-End,aliburchard/Panoptes-Front-End,...
18cc3147d735b4c0dfec8941c7f22dd6f5d107f6
app/controllers/connect.coffee
app/controllers/connect.coffee
Q = require 'kew' nodeRedis = require 'redis' mysql = require 'mysql' config = require '../config' connect = ready: Q.defer() ### * - type (string) : 'production', 'development', 'testing' ### init: () -> # Connect to MySQL @mysql = mysql.createConnection config.mysql # Conne...
Q = require 'kew' url = require 'url' redis = require 'redis' mysql = require 'mysql' config = require '../config' connect = ready: Q.defer() ### * - type (string) : 'production', 'development', 'testing' ### init: () -> # Connect to MySQL @mysql = mysql.createConnection config.mysql ...
Add support for Heroku Redis-To-Go
Add support for Heroku Redis-To-Go
CoffeeScript
unknown
nitrotasks/nitro-server,nitrotasks/nitro-server,CaffeinatedCode/nitro-server
59a08397cd15d9ff4e8db7dd7d3d7fe30bbbf6df
scripts/magnum-ci.coffee
scripts/magnum-ci.coffee
# Description: # Find the build status of an open-source project on Travis # Can also notify about builds, just enable the webhook notification on travis http://about.travis-ci.org/docs/user/build-configuration/ -> 'Webhook notification' # # Dependencies: # # Configuration: # None # # Commands: # hubot travis m...
# Description: # Find the build status of an open-source project on Travis # Can also notify about builds, just enable the webhook notification on travis http://about.travis-ci.org/docs/user/build-configuration/ -> 'Webhook notification' # # Dependencies: # # Configuration: # None # # Commands: # hubot travis m...
Refactor the magnum ci script
Refactor the magnum ci script
CoffeeScript
mit
ballyhooit/jarvis
dbf7e9406194f7d4bd2ddd91d1c1806ad204fb3e
gulpfile.coffee
gulpfile.coffee
gulp = require 'gulp' connect = require 'connect' httpProxy = require 'http-proxy' harp = require 'harp' http = require 'http' url = require 'url' livereload = require 'gulp-livereload' server = livereload() laerehost = if gulp.env.local then 'laeredev.co' else 'laere.co' target = host: laerehost port: 80 proxy = h...
gulp = require 'gulp' connect = require 'connect' httpProxy = require 'http-proxy' harp = require 'harp' http = require 'http' livereload = require 'gulp-livereload' server = livereload() proxy = httpProxy.createProxyServer() LAERE_PORT = 1337 proxyMiddleware = (req, res) -> # We wish to proxy to the production API...
Fix proxy for production api
Fix proxy for production api
CoffeeScript
mit
moongate/laere-ui,moongate/laere-ui
102888676a0bd573ef98fb2b31ea4317e9a1f223
app/assets/javascripts/components/inline_edit_checkbox.js.coffee
app/assets/javascripts/components/inline_edit_checkbox.js.coffee
ETahi.InlineEditCheckboxComponent = Em.Component.extend editing: false isNew: false hasContent: Em.computed.notEmpty('bodyPart.value') hasNoContent: Em.computed.not('hasContent') checked: ((key, value, oldValue) -> if arguments.length > 1 #setter @set('bodyPart.answer', value) else ...
ETahi.InlineEditCheckboxComponent = Em.Component.extend editing: false isNew: false snapshot: {} createSnapshot: (-> @set('snapshot', Em.copy(@get('bodyPart'), true)) ).observes('editing') hasContent: Em.computed.notEmpty('bodyPart.value') hasNoContent: Em.computed.not('hasContent') checked: ((k...
Rollback checkbox labels on cancel
Rollback checkbox labels on cancel
CoffeeScript
mit
johan--/tahi,johan--/tahi,johan--/tahi,johan--/tahi
13c3b472dc1d30a1e071cd9cb2deb551c95c2332
coffees/src/request_middleware.coffee
coffees/src/request_middleware.coffee
errors = require './errors' bodyParser = require 'body-parser' defaultHeaders = (request, response, next) -> response.header 'Content-Type', 'application/json; charset=utf-8' next() serverErrorHandling = (err, request, response, next) -> if err if err instanceof errors.HttpError response.status(err.st...
bodyParser = require 'body-parser' defaultHeaders = (request, response, next) -> response.header 'Content-Type', 'application/json; charset=utf-8' next() serverErrorHandling = (err, request, response, next) -> if err console.error err response.sendStatus 500 jsonParser = (request, response, next) -> bo...
Refactor not to use own error classes
Refactor not to use own error classes
CoffeeScript
mit
RedBulli/LiveSnooker-Server,RedBulli/LiveSnooker-Server
7f35c15a52c20f3e9d975667ce6ddfead84b94f6
player.coffee
player.coffee
# BeamWars - A multiplayer in-browser remake of the Mac game of the same name # Copyright (C) 2013 Aaron Hill # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either vers...
# BeamWars - A multiplayer in-browser remake of the Mac game of the same name # Copyright (C) 2013 Aaron Hill # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either vers...
Set top and left to 0
Set top and left to 0
CoffeeScript
agpl-3.0
Aaron1011/beamwars
1f828bf4d486118d698efd420f99b78a3b888fbd
app/assets/javascripts/watch_form_changes.js.coffee
app/assets/javascripts/watch_form_changes.js.coffee
App.WatchFormChanges = forms: -> return $("form[data-watch-changes]") msg: -> if($("[data-watch-form-message]").length) return $("[data-watch-form-message]").data("watch-form-message") checkChanges: -> changes = false App.WatchFormChanges.forms().each -> form = $(this) if form....
App.WatchFormChanges = forms: -> return $("form[data-watch-changes]") msg: -> if($("[data-watch-form-message]").length) return $("[data-watch-form-message]").data("watch-form-message") hasChanged: -> App.WatchFormChanges.forms().is -> $(this).serialize() != $(this).data("watchChanges") ...
Simplify code to check form changes
Simplify code to check form changes
CoffeeScript
agpl-3.0
consul/consul,usabi/consul_san_borondon,usabi/consul_san_borondon,consul/consul,consul/consul,consul/consul,usabi/consul_san_borondon,consul/consul,usabi/consul_san_borondon
c3c7f3de24913b368726d25df1e5aa9189dc4f71
client/app/MainApp/sidebar/groupavatar.coffee
client/app/MainApp/sidebar/groupavatar.coffee
class GroupAvatar extends JView constructor:(options = {}, data)-> options.cssClass = 'group-avatar-drop' groupsController = KD.getSingleton 'groupsController' super options, groupsController.getCurrentGroupData() groupsController.on 'GroupChanged', @bound 'render' render:(slug, group)-> if ...
class GroupAvatar extends JView constructor:(options = {}, data)-> options.cssClass = 'group-avatar-drop hidden' groupsController = KD.getSingleton 'groupsController' super options, groupsController.getCurrentGroupData() groupsController.on 'GroupChanged', @bound 'render' render:(slug, group)-> ...
Hide if slug is koding
Hide if slug is koding
CoffeeScript
agpl-3.0
mertaytore/koding,acbodine/koding,jack89129/koding,kwagdy/koding-1,jack89129/koding,usirin/koding,mertaytore/koding,mertaytore/koding,koding/koding,gokmen/koding,koding/koding,szkl/koding,andrewjcasal/koding,usirin/koding,alex-ionochkin/koding,cihangir/koding,gokmen/koding,cihangir/koding,usirin/koding,alex-ionochkin/k...
a2841db6ef89efc423c49b273abf39f298dc5068
client/lanes/components/shared/FormGroup.cjsx
client/lanes/components/shared/FormGroup.cjsx
class Lanes.Components.FormGroup extends Lanes.React.Component mixins: [ Lanes.React.Mixins.ReadEditingState Lanes.React.Mixins.FieldErrors ] propTypes: align: React.PropTypes.oneOf([ 'right', 'left', 'center' ]) bindDataEvents: -> model: "invalid-f...
class Lanes.Components.FormGroup extends Lanes.React.Component mixins: [ Lanes.React.Mixins.ReadEditingState Lanes.React.Mixins.FieldErrors ] propTypes: align: React.PropTypes.oneOf([ 'right', 'left', 'center' ]) bindDataEvents: -> model: "invalid-f...
Set alignment class on wrapper
Set alignment class on wrapper
CoffeeScript
mit
argosity/hippo,argosity/lanes,argosity/lanes,argosity/lanes,argosity/hippo,argosity/hippo
b33c71d70497fcdd3bd754e4e8994e496513c9d1
test/javascripts/unit/relative_date_test.js.coffee
test/javascripts/unit/relative_date_test.js.coffee
module "relative date" test "this year", -> now = moment() el = addTimeEl type: "date", datetime: now.toISOString() run() equal getText(el), now.format("MMM D") test "last year", -> before = moment().subtract("years", 1).subtract("days", 1) el = addTimeEl type: "date", datetime: before.toISOString() r...
module "relative date" test "this year", -> now = moment() el = addTimeEl type: "date", datetime: now.toISOString() run() equal getText(el), now.format("MMM D") test "last year", -> before = moment().subtract("years", 1).subtract("days", 1) el = addTimeEl type: "date", datetime: before.toISOString() ru...
Test relative time or date
Test relative time or date
CoffeeScript
mit
lazyatom/local_time,basecamp/local_time,c080609a/local_time,c080609a/local_time,lazyatom/local_time,basecamp/local_time
45432daf6875fda52f9f4f08c5795a7ea9380b62
atom.symlink/config.cson
atom.symlink/config.cson
"*": "exception-reporting": userId: "da976a4b-6a5d-3f34-7d9b-6bfdb74474ed" welcome: showOnStartup: false "one-dark-ui": {} core: themes: [ "native-ui" "base16-tomorrow-dark-theme" ] disabledPackages: [ "ex-mode" "vim-mode" ] editor: invisibles: {} tabLen...
"*": "exception-reporting": userId: "da976a4b-6a5d-3f34-7d9b-6bfdb74474ed" welcome: showOnStartup: false "one-dark-ui": {} core: themes: [ "native-ui" "base16-tomorrow-dark-theme" ] disabledPackages: [ ] editor: invisibles: {} tabLength: 4 fontSize: 12 "vim-mo...
Make some changes to atom packages
Make some changes to atom packages
CoffeeScript
mit
jamesnoble/dotfiles,jamesnoble/dotfiles,jamesnoble/dotfiles
3ae913d57b3b808e4b4667e98afb236c1239d440
lib/php-debug-panel-view.coffee
lib/php-debug-panel-view.coffee
{View} = require 'atom' module.exports = class PhpDebugPanel extends View @content: -> @div class: "php-debug panel", => @div class: "panel-heading", "Node Debugger" @div class: "panel-body padded"
{View} = require 'atom' module.exports = class PhpDebugPanel extends View @content: -> @div class: "php-debug panel", => @div class: "panel-heading", "PHP Debugger" @div class: "panel-body padded"
Update module heading to reflect package's purpose.
Update module heading to reflect package's purpose.
CoffeeScript
mit
cchamplin/php-debug,cchamplin/php-debug,gwomacks/php-debug,gwomacks/php-debug
8e79119c790b984126eb0021d3b40390eb350154
lib/autocomplete-emojis.coffee
lib/autocomplete-emojis.coffee
provider = require('./emojis-provider') module.exports = configDefaults: enableUnicodeEmojis: true enableMarkdownEmojis: true activate: -> provider.loadProperties() atom.commands.add 'atom-workspace', 'autocomplete-emojis:show-cheat-sheet': -> require('./emoji-cheat-sheet').show() ...
provider = require('./emojis-provider') module.exports = config: enableUnicodeEmojis: type: 'boolean' default: true enableMarkdownEmojis: type: 'boolean' default: true activate: -> provider.loadProperties() atom.commands.add 'atom-workspace', 'autocomplete-emojis:sho...
Change code for configuration to use config schema
Change code for configuration to use config schema
CoffeeScript
mit
atom/autocomplete-emojis,atom/autocomplete-emojis
7a4f811c9d685aa38ca780f7df32f25cd6990fe7
app/assets/javascripts/components/cookies.coffee
app/assets/javascripts/components/cookies.coffee
@createCookie = (name, value, days) -> expires = undefined if days date = new Date() date.setTime date.getTime() + (days * 24 * 60 * 60 * 1000) expires = "; expires=#{date.toGMTString()}" else expires = '' document.cookie = "#{encodeURIComponent(name)}=#{encodeURIComponent(value)}#{expires}; pat...
@createCookie = (name, value, days) -> expires = undefined if days date = new Date() date.setTime date.getTime() + (days * 24 * 60 * 60 * 1000) expires = "; expires=#{date.toGMTString()}" else expires = '' document.cookie = "#{encodeURIComponent(name)}=#{encodeURIComponent(value)}#{expires}; pat...
Validate cookie for 30 days
Validate cookie for 30 days
CoffeeScript
mit
myapnea/www.myapnea.org,myapnea/www.myapnea.org,myapnea/www.myapnea.org
2c974e2437f19d54c1a076b3b7a0402f4a818061
src/command.coffee
src/command.coffee
numeral = require("numeral") balance = require("./crypto-balance") module.exports.run = -> addr = process.argv[2] unless addr console.log "Usage: balance <address>" process.exit 1 balance addr, (error, items) -> if error console.error error process.exit 1 else for item in ite...
numeral = require("numeral") balance = require("./crypto-balance") module.exports.run = -> addr = process.argv[2] unless addr console.log "Usage: balance <address>" process.exit 1 balance addr .then (items) -> for item in items if item.status == 'success' console.log "#{num...
Use Promises for cli tool
Use Promises for cli tool
CoffeeScript
mit
larskluge/crypto-balance
9de1977e1d7a805a5b81ae91cb9e7958f3d1394c
tests/batman/view/partial_rendering_test.coffee
tests/batman/view/partial_rendering_test.coffee
helpers = if typeof require is 'undefined' then window.viewHelpers else require './view_helper' class MockRequest extends MockClass @chainedCallback 'success' @chainedCallback 'error' oldRequest = Batman.Request QUnit.module 'Batman.View partial rendering' setup: -> MockRequest.reset() Batman.Request = M...
helpers = if typeof require is 'undefined' then window.viewHelpers else require './view_helper' class MockRequest extends MockClass @chainedCallback 'success' @chainedCallback 'error' oldRequest = Batman.Request QUnit.module 'Batman.View partial rendering' setup: -> MockRequest.reset() Batman.Request = M...
Fix test for IE8; don't match exact html, because .html() has upper cased HTML tags
Fix test for IE8; don't match exact html, because .html() has upper cased HTML tags
CoffeeScript
mit
getshuvo/batman,getshuvo/batman
4248a7dba33f8a6177bd540c34a52736fe0f1e57
spec_app/spec/javascripts/helpers/to_match_list.coffee
spec_app/spec/javascripts/helpers/to_match_list.coffee
u = up.util beforeEach -> jasmine.addMatchers toMatchList: (util, customEqualityTesters) -> compare: (actualList, expectedList) -> actualList = u.toArray(actualList) if actualList expectedList = u.toArray(expectedList) if expectedList pass: actualList && expec...
u = up.util beforeEach -> jasmine.addMatchers toMatchList: (util, customEqualityTesters) -> compare: (actualList, expectedList) -> actualList = u.toArray(actualList) if actualList expectedList = u.toArray(expectedList) if expectedList pass: actualList && expec...
Fix spec helper still using up.util.all
Fix spec helper still using up.util.all
CoffeeScript
mit
unpoly/unpoly,unpoly/unpoly,unpoly/unpoly
528cd209fd3fd2f0b5cc59bc444ef2c208096c69
src/util/xhrpromise.coffee
src/util/xhrpromise.coffee
# Pre dependencies # (none) ###* @class XhrPromise Promise-based XMLHttpRequest ### module.exports = class XhrPromise null @get: (url, options) -> return _get("text", url, options) @getAsText: (url, options) -> return _get("text", url, options) @getAsArrayBuffer: (url, options) -> return _get(...
# Pre dependencies # (none) ###* @class XhrPromise Promise-based XMLHttpRequest ### module.exports = class XhrPromise null @get: (url, options) -> return _get("text", url, options) @getAsText: (url, options) -> return _get("text", url, options) @getAsArrayBuffer: (url, options) -> return _get(...
Fix error object when XHR failed
Fix error object when XHR failed
CoffeeScript
mit
kimushu/rubic,kimushu/rubic
59a8fc74701b62a5b9291a899e93ef1358eb19bd
server/materials/data/topics/greedy_advanced.coffee
server/materials/data/topics/greedy_advanced.coffee
import contest from "../../lib/contest" import label from "../../lib/label" import link from "../../lib/link" import page from "../../lib/page" import problem from "../../lib/problem" import topic from "../../lib/topic" export default greedy_2 = () -> return { topic: topic("Жадные алгоритмы", "Задачи на жа...
import contest from "../../lib/contest" import label from "../../lib/label" import link from "../../lib/link" import page from "../../lib/page" import problem from "../../lib/problem" import topic from "../../lib/topic" export default greedy_2 = () -> return { topic: topic("Жадные алгоритмы", "Задачи на жа...
Change text in advanced greedy theory
Change text in advanced greedy theory
CoffeeScript
agpl-3.0
petr-kalinin/algoprog,petr-kalinin/algoprog,petr-kalinin/algoprog,petr-kalinin/algoprog
54a435d0e802ad378340440f94bb43e7a874e7e6
scripts/poo-tracker.coffee
scripts/poo-tracker.coffee
Redis = require 'redis' Url = require 'url' info = Url.parse process.env.POO_REDIS_URL or "redis://localhost:6379/0" redis_client = Redis.createClient(info.port, info.hostname) redis_client.auth info.auth.split(":")[1] if info.auth module.exports = (robot) -> POO_TRACKER_KEY = "poops" POO_LATEST_KEY = "poops:late...
Redis = require 'redis' Url = require 'url' info = Url.parse process.env.POO_REDIS_URL or "redis://localhost:6379/0" redis_client = Redis.createClient(info.port, info.hostname) redis_client.auth info.auth.split(":")[1] if info.auth module.exports = (robot) -> POO_TRACKER_KEY = "poops" POO_LATEST_KEY = "poops:late...
Move to the connected event
Move to the connected event
CoffeeScript
mit
desert-planet/hayt,drobati/hayt,n1ckn4m3/hayt,skalnik/hayt,pmn/hayt
4f905af0782bbfbcb6967e27fd9443ab5096c4ce
services/web/app/coffee/infrastructure/Features.coffee
services/web/app/coffee/infrastructure/Features.coffee
Settings = require 'settings-sharelatex' module.exports = Features = externalAuthenticationSystemUsed: -> Settings.ldap? or Settings.saml? or Settings.overleaf?.oauth? hasFeature: (feature) -> switch feature when 'registration' return not Features.externalAuthenticationSystemUsed() else throw new ...
Settings = require 'settings-sharelatex' module.exports = Features = externalAuthenticationSystemUsed: -> Settings.ldap? or Settings.saml? or Settings.overleaf?.oauth? hasFeature: (feature) -> switch feature when 'registration' return not Features.externalAuthenticationSystemUsed() when 'github-sync' ...
Add feature flag for github sync
Add feature flag for github sync
CoffeeScript
agpl-3.0
sharelatex/sharelatex
6d78080292e7b8cc5c5e98b5975c2cac10121378
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) ...
Clarify wording on actual functionality of backwards compatibility
Clarify wording on actual functionality of backwards compatibility
CoffeeScript
mit
pennlabs/eventsatpenn-meteor
502819b9c609165931a2decbf2c16fbafaee07d5
SingularityUI/app/collections/TaskLogFiles.coffee
SingularityUI/app/collections/TaskLogFiles.coffee
Collection = require './collection' class TaskLogFiles extends Collection url: => fullPath = "#{ @directory }/#{ @path ? ''}" "http://#{ @offerHostname }:#{ constants.mesosLogsPort }/files/browse.json?path=#{ escape fullPath }&jsonp=?" initialize: (models, { @taskId, @offerHostname, @director...
Collection = require './collection' class TaskLogFiles extends Collection url: => fullPath = "#{ @directory }/#{ @path ? ''}" "http://#{ @offerHostname }:#{ constants.mesosLogsPort }/files/browse.json?path=#{ escape fullPath }&jsonp=?" initialize: (models, { @taskId, @offerHostname, @director...
Sort files by size but with directories on top
Sort files by size but with directories on top
CoffeeScript
apache-2.0
stevenschlansker/Singularity,stevenschlansker/Singularity,calebTomlinson/Singularity,acbellini/Singularity,calebTomlinson/Singularity,andrhamm/Singularity,HubSpot/Singularity,mjball/Singularity,nvoron23/Singularity,grepsr/Singularity,stevenschlansker/Singularity,nvoron23/Singularity,andrhamm/Singularity,nvoron23/Singul...
914a839f1d709004a76d3fac8798817eff56e1a7
src/application-delegate.coffee
src/application-delegate.coffee
ipc = require 'ipc' remote = require 'remote' shell = require 'shell' {Emitter} = require 'event-kit' got = require 'got' module.exports = emitter: new Emitter showWindow: -> ipc.send('call-window-method', 'show') closeWindow: -> ipc.send("call-window-method", "close") focusWindow: -> ipc.send("...
ipc = require 'ipc' remote = require 'remote' shell = require 'shell' {Emitter} = require 'event-kit' got = require 'got' module.exports = emitter: new Emitter showWindow: -> ipc.send('call-window-method', 'show') closeWindow: -> ipc.send("call-window-method", "close") focusWindow: -> ipc.send("...
Use process.env.ZENIT_SERVICE when making requests
Use process.env.ZENIT_SERVICE when making requests
CoffeeScript
mit
zenit/zenit,zenit/zenit,iiegor/zenit,iiegor/zenit
094208599a1d25f9b7ad81adb1ad4a77be04202a
src/views/exporting.coffee
src/views/exporting.coffee
define ['URI', 'app/views/base', 'app/p13n'], (URI, base, p13n) -> class ExportingView extends base.SMLayout template: 'exporting' events: 'click .exporting-button': 'exportEmbed' exportEmbed: (ev) -> EXPORT_PREVIEW_HOST = 'localhost' url = URI window.loc...
define ['URI', 'app/views/base', 'app/p13n'], (URI, base, p13n) -> class ExportingView extends base.SMLayout template: 'exporting' events: 'click .exporting-button': 'exportEmbed' exportEmbed: (ev) -> EXPORT_PREVIEW_HOST = 'localhost' url = URI window.loc...
Use percentages as ratios and full map bounds.
Use percentages as ratios and full map bounds.
CoffeeScript
agpl-3.0
vaaralav/servicemap,City-of-Helsinki/servicemap,vaaralav/servicemap,vaaralav/servicemap,City-of-Helsinki/servicemap,City-of-Helsinki/servicemap
f97c3ed7c3bb9b03024b7729d1f0417961b381b3
lib/adwaita-pro-ui.coffee
lib/adwaita-pro-ui.coffee
module.exports = config: fontFamily: description: 'Experimental: set to gtk-3 to load the font settings from ~/.config/gtk-3.0/settings.ini' type: 'string' default: 'Cantarell' enum: [ 'Cantarell', 'Sans Serif', 'DejaVu Sans', 'Oxygen-Sans', 'gtk-3'...
module.exports = config: fontFamily: description: 'Experimental: set to gtk-3 to load the font settings from ~/.config/gtk-3.0/settings.ini' type: 'string' default: 'Cantarell' enum: [ 'Cantarell', 'Sans Serif', 'DejaVu Sans', 'Oxygen-Sans', 'Droid ...
Add droid sans to font list
Add droid sans to font list
CoffeeScript
mit
tsbarnes/ambiance-pro-ui,forivall/adwaita-pro-ui
567ea3a64ba20c67170ef5b704fec0c14f2112bb
packages/rocketchat-statistics/server/models/Statistics.coffee
packages/rocketchat-statistics/server/models/Statistics.coffee
RocketChat.models.Statistics = new class extends RocketChat.models._Base constructor: -> @_initModel 'statistics' # FIND ONE findOneById: (_id, options) -> query = _id: _id return @findOne query, options findLast: -> query = {} options = sort: createdAt: -1 return @find(query, options).fetch()?[0...
RocketChat.models.Statistics = new class extends RocketChat.models._Base constructor: -> @_initModel 'statistics' @tryEnsureIndex { 'createdAt': 1 } # FIND ONE findOneById: (_id, options) -> query = _id: _id return @findOne query, options findLast: -> options = sort: createdAt: -1 limit: ...
Improve query and add index to statistics collection
Improve query and add index to statistics collection Fixes #2747
CoffeeScript
mit
org100h1/Rocket.Panda,ahmadassaf/Rocket.Chat,Gudii/Rocket.Chat,linnovate/hi,xboston/Rocket.Chat,liuliming2008/Rocket.Chat,yuyixg/Rocket.Chat,pkgodara/Rocket.Chat,mrinaldhar/Rocket.Chat,inoxth/Rocket.Chat,jbsavoy18/rocketchat-1,cnash/Rocket.Chat,wicked539/Rocket.Chat,danielbressan/Rocket.Chat,snaiperskaya96/Rocket.Chat,...
1f85881a7fc429a247f58e6f795c9e164b38066d
lib/assets/javascripts/views/navigation_active.js.coffee
lib/assets/javascripts/views/navigation_active.js.coffee
Marbles.Views.NavigationActive = class NavigationActiveView extends Marbles.View @view_name: 'navigation_active' @buildMappingRegexp: (mapping) -> new RegExp("#{mapping.replace("*", ".*?")}") initialize: -> @active_class = Marbles.DOM.attr(@el, 'data-active-class') @active_selector = Marbles.DOM.att...
Marbles.Views.NavigationActive = class NavigationActiveView extends Marbles.View @view_name: 'navigation_active' @buildMappingRegexp: (mapping) -> new RegExp("^#{mapping.replace("*", ".*?")}$") initialize: -> @active_class = Marbles.DOM.attr(@el, 'data-active-class') @active_selector = Marbles.DOM.a...
Fix nav item route matching
Fix nav item route matching
CoffeeScript
bsd-3-clause
tent/tent-status,tent/tent-status
7888213f4afe176df5f75f358fd93f44d1e09e70
js/outer.coffee
js/outer.coffee
# Navigation (($) -> circle = $.sammy("body", -> # Page class Page constructor: (@name, @title) -> render: -> document.title = "Circle - " + @title $("body").attr("id",@name).html HAML['header'](renderContext) $("body").append HAML[@name](renderContext) $("body")....
# Navigation (($) -> circle = $.sammy("body", -> # Page class Page constructor: (@name, @title) -> render: -> document.title = "Circle - " + @title $("body").attr("id",@name).html HAML['header'](renderContext) $("body").append HAML[@name](renderContext) $("body")....
Use polyfill method for specific pages
Use polyfill method for specific pages
CoffeeScript
epl-1.0
prathamesh-sonpatki/frontend,circleci/frontend,circleci/frontend,prathamesh-sonpatki/frontend,circleci/frontend,RayRutjes/frontend,RayRutjes/frontend
c4b26ac87045741d08839508c9b943c6b30c505b
spec_app/spec/javascripts/helpers/to_have_opacity.coffee
spec_app/spec/javascripts/helpers/to_have_opacity.coffee
u = up.util e = up.element $ = jQuery beforeEach -> jasmine.addMatchers toHaveOpacity: (util, customEqualityTesters) -> compare: (element, expectedOpacity, tolerance = 0.0) -> element = e.get(element) actualOpacity = e.styleNumber(element, 'opacity') result = {} result.pass ...
u = up.util e = up.element $ = jQuery beforeEach -> jasmine.addMatchers toHaveOpacity: (util, customEqualityTesters) -> compare: (element, expectedOpacity, tolerance = 0.0) -> element = e.get(element) actualOpacity = e.styleNumber(element, 'opacity') result = {} result.pass ...
Fix typo in haveOpacity() matcher (thanks @foobear)
Fix typo in haveOpacity() matcher (thanks @foobear)
CoffeeScript
mit
unpoly/unpoly,unpoly/unpoly,unpoly/unpoly
a4075082e9d9bb62149adcc8b480c4737b426208
app/assets/javascripts/views/circles/admin.coffee
app/assets/javascripts/views/circles/admin.coffee
$(document).on 'page:load ready', -> $('#circle_role_role_type').on 'change', (e)-> $type = $(e.target) $name = $type.siblings('#circle_role_name') console.log(e) console.log($type.val()) if $type.val() == "circle.custom" $name.removeClass("hidden") else $name.addClass("hidden") ...
$(document).on 'page:load ready', -> $('#circle_role_role_type').on 'change', (e)-> $type = $(e.target) $name = $type.siblings('#circle_role_name') console.log(e) console.log($type.val()) if $type.val() == "circle.custom" $name.removeClass("hidden") else $name.addClass("hidden") ...
Fix jQuery wrap because poltergeist/phantomJS choked (got a JS error).
Fix jQuery wrap because poltergeist/phantomJS choked (got a JS error).
CoffeeScript
mit
lale-help/lale-help,lale-help/lale-help,jprokay/lale-help,diegoaad/lale-help,lale-help/lale-help,jprokay/lale-help,lale-help/lale-help,jprokay/lale-help,jprokay/lale-help,diegoaad/lale-help,diegoaad/lale-help,diegoaad/lale-help
38fccbf3b370ef1df2b0931af2cb043504fa7376
src/tests/components/inputs/test_toggleSwitch.coffee
src/tests/components/inputs/test_toggleSwitch.coffee
goog = goog or goog = require: -> goog.require 'spark.components.ToggleSwitch' describe 'spark.components.ToggleSwitch', -> toggle = null element = null beforeEach -> toggle = new spark.components.ToggleSwitch name: 'agreed' element = toggle.getElement() it 'should extend spark.components.Labe...
goog = goog or goog = require: -> goog.require 'spark.components.ToggleSwitch' describe 'spark.components.ToggleSwitch', -> toggle = null element = null beforeEach -> toggle = new spark.components.ToggleSwitch name: 'agreed' element = toggle.getElement() it 'should extend spark.components.Labe...
Use getInput getter in tests.
ToggleSwitch: Use getInput getter in tests.
CoffeeScript
mit
fatihacet/spark,fatihacet/spark
d415ec9a00960b9b116b502450c0ba0963a20242
src/theme-package.coffee
src/theme-package.coffee
AtomPackage = require './atom-package' module.exports = class ThemePackage extends AtomPackage getType: -> 'theme' getStylesheetType: -> 'theme' enable: -> atom.config.unshiftAtKeyPath('core.themes', @metadata.name) disable: -> atom.config.removeAtKeyPath('core.themes', @metadata.name)
Q = require 'q' AtomPackage = require './atom-package' module.exports = class ThemePackage extends AtomPackage getType: -> 'theme' getStylesheetType: -> 'theme' enable: -> atom.config.unshiftAtKeyPath('core.themes', @metadata.name) disable: -> atom.config.removeAtKeyPath('core.themes', @metadata.nam...
Add custom load and activate method to Theme Package
Add custom load and activate method to Theme Package
CoffeeScript
mit
ali/atom,brettle/atom,beni55/atom,erikhakansson/atom,Arcanemagus/atom,Neron-X5/atom,sekcheong/atom,jtrose2/atom,Shekharrajak/atom,fscherwi/atom,Andrey-Pavlov/atom,isghe/atom,gzzhanghao/atom,synaptek/atom,fang-yufeng/atom,prembasumatary/atom,matthewclendening/atom,jordanbtucker/atom,tony612/atom,palita01/atom,basarat/at...
484702dc98a2cf2c01fad57c2e582fe82dd4f23d
lib/router/main.coffee
lib/router/main.coffee
Router.map -> @route "home", path: "/" layoutTemplate: "homeLayout" @route "dashboard", path: "/dashboard" waitOn: -> [ subs.subscribe 'events' ] data: -> events: Events.find().fetch() @route "eventsplan", path: "/events/plan" waitOn: -> [ Mete...
Router.map -> @route "home", path: "/" layoutTemplate: "homeLayout" @route "dashboard", path: "/dashboard" waitOn: -> [ subs.subscribe 'events' ] data: -> events: Events.find().fetch() @route "eventsplan", path: "/events/plan" waitOn: -> [ Mete...
Fix User Listing on Import User Page
Fix User Listing on Import User Page
CoffeeScript
mit
meip/vmt,meip/vmt
bf461b7fb3f65ae1683f9a0f5beaf4da453cad3d
grunt/config/watch.coffee
grunt/config/watch.coffee
module.exports = (grunt) -> return { express: files: [ 'Gruntfile.coffee' 'server-src/*.coffee' 'config/*.yml' ] options: spawn: false tasks: ['copy:app', 'coffee:server', 'express:dev'] client: files: [ '<%= src %>/*.coffee' '<%= s...
module.exports = (grunt) -> return { express: files: [ 'Gruntfile.coffee' 'server-src/*.coffee' 'config/*.yml' ] options: spawn: false tasks: ['copy:app', 'coffee:server', 'express:dev'] client: files: [ '<%= src %>/*.coffee' '<%= s...
Handle css live reloading correctly.
Handle css live reloading correctly.
CoffeeScript
agpl-3.0
City-of-Helsinki/servicemap,vaaralav/servicemap,City-of-Helsinki/servicemap,vaaralav/servicemap,City-of-Helsinki/servicemap,vaaralav/servicemap
635bbbb07005be82f03f85c48864132670af265a
keymaps/simple-align.cson
keymaps/simple-align.cson
# Keybindings require three things to be fully defined: A selector that is # matched against the focused element, the keystroke and the command to # execute. # # Below is a basic keybinding which registers on all platforms by applying to # the root workspace element. # For more detailed documentation see # https://ato...
# Keybindings require three things to be fully defined: A selector that is # matched against the focused element, the keystroke and the command to # execute. # # Below is a basic keybinding which registers on all platforms by applying to # the root workspace element. # For more detailed documentation see # https://ato...
Add keymaps supported by Linux and Windows
Add keymaps supported by Linux and Windows
CoffeeScript
mit
stevenhauser/atom-simple-align
3df7888019dd133a91556c979a9f759dc52849a0
app/assets/javascripts/pants.js.coffee
app/assets/javascripts/pants.js.coffee
initPage = -> # Fix stupid Chrome bug. # See https://code.google.com/p/chromium/issues/detail?id=388664 # $('form').each -> $(this).attr('action', this.action); # Autofocus form fields with autofocus. We need to do this even though # browsers do it natively because (due to Turbolinks), we're always jus...
initPage = -> # Fix stupid Chrome bug. # See https://code.google.com/p/chromium/issues/detail?id=388664 # $('form').each -> $(this).attr('action', this.action); # Autofocus form fields with autofocus. We need to do this even though # browsers do it natively because (due to Turbolinks), we're always jus...
Add support for data-expand links.
Add support for data-expand links.
CoffeeScript
mit
hmans/pants,spacetraveler/pants,KlausTrainer/pants,spacetraveler/pants,hmans/pants,KlausTrainer/pants,KlausTrainer/pants,hmans/pants,spacetraveler/pants
98859e7a85df295488a0b8d124d1131f6234c17c
app/talk/search-result.cjsx
app/talk/search-result.cjsx
React = require 'react' DiscussionPreview = require './discussion-preview' CommentLink = require './comment-link' CommentPreview = require './comment-preview' PromiseRenderer = require '../components/promise-renderer' parseSection = require './lib/parse-section' apiClient = require '../api/client' # This isn't very re...
React = require 'react' DiscussionPreview = require './discussion-preview' CommentLink = require './comment-link' CommentPreview = require './comment-preview' PromiseRenderer = require '../components/promise-renderer' parseSection = require './lib/parse-section' apiClient = require '../api/client' # This isn't very re...
Fix discussion prop-name in search result
Fix discussion prop-name in search result
CoffeeScript
apache-2.0
parrish/Panoptes-Front-End,amyrebecca/Panoptes-Front-End,CKrawczyk/Panoptes-Front-End,jelliotartz/Panoptes-Front-End,CKrawczyk/Panoptes-Front-End,edpaget/Panoptes-Front-End,alexbfree/Panoptes-Front-End,parrish/Panoptes-Front-End,mrniaboc/Panoptes-Front-End,camallen/Panoptes-Front-End,parrish/Panoptes-Front-End,fmnhExhi...
afee3ae7c09a2422d6f4ee1ff918c58e927224ca
apps/personalize/client/mixins/gene_artists.coffee
apps/personalize/client/mixins/gene_artists.coffee
_ = require 'underscore' Backbone = require 'backbone' Genes = require '../../../../collections/genes.coffee' { Following } = require '../../../../components/follow_button/index.coffee' priceBuckets = require '../mixins/price_buckets.coffee' module.exports = initializeGeneArtists:...
_ = require 'underscore' Backbone = require 'backbone' Genes = require '../../../../collections/genes.coffee' { Following } = require '../../../../components/follow_button/index.coffee' priceBuckets = require '../mixins/price_buckets.coffee' module.exports = initializeGeneArtists:...
Include price_range when hitting trending endpoints
Include price_range when hitting trending endpoints
CoffeeScript
mit
oxaudo/force,joeyAghion/force,anandaroop/force,kanaabe/force,anandaroop/force,cavvia/force-1,dblock/force,izakp/force,dblock/force,xtina-starr/force,xtina-starr/force,anandaroop/force,eessex/force,cavvia/force-1,oxaudo/force,kanaabe/force,kanaabe/force,yuki24/force,eessex/force,artsy/force-public,erikdstock/force,dbloc...
4a76fcd13b42b2a6163c383313a45d3870a53903
services/web/app/coffee/Features/Subscription/SubscriptionLocator.coffee
services/web/app/coffee/Features/Subscription/SubscriptionLocator.coffee
Subscription = require('../../models/Subscription').Subscription logger = require("logger-sharelatex") ObjectId = require('mongoose').Types.ObjectId module.exports = getUsersSubscription: (user_or_id, callback)-> if user_or_id? and user_or_id._id? user_id = user_or_id._id else if user_or_id? user_id = user...
Subscription = require('../../models/Subscription').Subscription logger = require("logger-sharelatex") ObjectId = require('mongoose').Types.ObjectId module.exports = getUsersSubscription: (user_or_id, callback)-> if user_or_id? and user_or_id._id? user_id = user_or_id._id else if user_or_id? user_id = user...
Change first param of `getMemberSubscriptions` to `user_or_id`, to match semantics of usage.
Change first param of `getMemberSubscriptions` to `user_or_id`, to match semantics of usage. This function works whether a user object, or an ObjectId is passed, but the `user_id` param name is confusing.
CoffeeScript
agpl-3.0
sharelatex/sharelatex
d58300f46482e3d38e4de790a23ea726d9ede0c7
components/SWTDetect.coffee
components/SWTDetect.coffee
noflo = require 'noflo' path = require 'path' utils = require '../utils' # @runtime noflo-nodejs # @name SWTDetect exports.getComponent = -> c = new noflo.Component c.icon = 'font' c.description = 'Stroke Width Transform text detector' c.inPorts.add 'canvas', datatype: 'object' description: 'Canvas o...
noflo = require 'noflo' path = require 'path' utils = require '../utils' # @runtime noflo-nodejs # @name SWTDetect exports.getComponent = -> c = new noflo.Component c.icon = 'font' c.description = 'Stroke Width Transform text detector' c.inPorts.add 'canvas', datatype: 'object' description: 'Canvas o...
Add safe checks for image dimensions
Add safe checks for image dimensions
CoffeeScript
mit
noflo/noflo-ccv,noflo/noflo-ccv,noflo/noflo-ccv,noflo/noflo-ccv
1e5930c49a1a310a6a4ac8d7d0a954c6bacb5235
src/liquid/engine.coffee
src/liquid/engine.coffee
Liquid = require "../liquid" Promise = require "bluebird" module.exports = class Liquid.Engine constructor: -> @tags = {} @registerFilter Liquid.StandardFilters isSubclassOf = (klass, ofKlass) -> unless typeof klass is 'function' false else if klass == ofKlass true ...
Liquid = require "../liquid" Promise = require "bluebird" module.exports = class Liquid.Engine constructor: -> @tags = {} @registerFilters Liquid.StandardFilters isSubclassOf = (klass, ofKlass) -> unless typeof klass is 'function' false else if klass == ofKlass true ...
Improve API of registerFilter (added registerFilters for clarification)
Improve API of registerFilter (added registerFilters for clarification)
CoffeeScript
mit
sirlantis/liquid-node,kmctown/liquid-node
623ca126a21676d19243738580b92e42061d2d09
app/assets/javascripts/pages/project_wizard.coffee
app/assets/javascripts/pages/project_wizard.coffee
Testributor.Pages ||= {} class Testributor.Pages.ProjectWizard show: ()-> $(".multi-select").select2() $fetchRepos = $('.js-fetch-repos') $fetchingRepos = $('.js-fetching-repos') currentPath = $fetchRepos.data('current-path') Pace.ignore(-> jqxhr = $.get(currentPath, (data, xhr)-> ...
Testributor.Pages ||= {} class Testributor.Pages.ProjectWizard show: ()-> $(".multi-select").select2() $fetchRepos = $('.js-fetch-repos') $fetchingRepos = $('.js-fetching-repos') currentPath = $fetchRepos.data('current-path') if currentPath Pace.ignore(-> jqxhr = $.get(currentPath,...
Fix github fetching code running everywhere
Fix github fetching code running everywhere
CoffeeScript
mit
testributor/katana,testributor/katana,testributor/katana,testributor/katana
f0158d2b8b8ada4a158565890e1bf2bceb525cf1
app/assets/javascripts/sprangular/directives/shippingRatesSelection.coffee
app/assets/javascripts/sprangular/directives/shippingRatesSelection.coffee
Sprangular.directive 'shippingRateSelection', -> restrict: 'E' templateUrl: 'shipping/rates.html' scope: order: '=' controller: ($scope, Cart) -> $scope.loading = false $scope.rates = [] $scope.$watch 'order.shipping_method_id', (shippingMethodId) -> rate = _.find($scope.rates, (rate) -> ...
Sprangular.directive 'shippingRateSelection', -> restrict: 'E' templateUrl: 'shipping/rates.html' scope: order: '=' controller: ($scope, Cart) -> $scope.loading = false $scope.rates = [] $scope.$watch 'order.shipping_method_id', (shippingMethodId) -> rate = _.find($scope.rates, (rate) -> ...
Initialize shipping method when empty
Initialize shipping method when empty
CoffeeScript
mit
sprangular/sprangular,sprangular/sprangular,sprangular/sprangular
e024a60ece1dbe452da755147bdda9a087908475
menus/atom-solidity.cson
menus/atom-solidity.cson
# See https://atom.io/docs/latest/hacking-atom-package-word-count#menus for more details 'context-menu': 'atom-text-editor': [ { 'label': 'Toggle atom-ethereum-interface' 'command': 'eth-interface:toggle' } ] 'menu': [ { 'label': 'Packages' 'submenu': [ 'label': 'Atom Ethereum In...
# See https://atom.io/docs/latest/hacking-atom-package-word-count#menus for more details 'context-menu': 'atom-text-editor': [ { 'label': 'Toggle atom-ethereum-interface' 'command': 'eth-interface:toggle' } ] 'menu': [ { 'label': 'Packages' 'submenu': [ 'label': 'Atom Ethereum In...
Fix typo in menu bar
Fix typo in menu bar `Togggle` should be `Toggle`
CoffeeScript
mit
gmtDevs/atom-ethereum-interface
dc17cd652794640d07c0f0684c96898055a251e0
app/assets/javascripts/showboat/plugins/page_title.coffee
app/assets/javascripts/showboat/plugins/page_title.coffee
class window.PageTitle constructor: (@reveal, @prefix) -> @title = document.querySelector 'title' @prefix ?= @title.innerHTML @total = document.querySelectorAll(".reveal .slides > section:not(.stack)").length + 1 @reveal.addEventListener 'slidechanged', => @render arguments... @render(indexh: @re...
class window.PageTitle constructor: (@reveal, @prefix) -> @title = document.querySelector 'title' @prefix ?= @title.innerHTML @total = document.querySelectorAll(".reveal .slides > section:not(.stack)").length @reveal.addEventListener 'slidechanged', => @render arguments... @render(indexh: @reveal...
Fix the numbering for total slides
Fix the numbering for total slides
CoffeeScript
mit
modeset/showboat,modeset/showboat
5c62ac4f8aed26112aafbbbb8ee5ac9816dbb4a3
services/web/app/coffee/Features/Errors/Errors.coffee
services/web/app/coffee/Features/Errors/Errors.coffee
NotFoundError = (message) -> error = new Error(message) error.name = "NotFoundError" error.__proto__ = NotFoundError.prototype return error NotFoundError.prototype.__proto__ = Error.prototype ServiceNotConfiguredError = (message) -> error = new Error(message) error.name = "ServiceNotConfiguredError" error.__pro...
NotFoundError = (message) -> error = new Error(message) error.name = "NotFoundError" error.__proto__ = NotFoundError.prototype return error NotFoundError.prototype.__proto__ = Error.prototype ServiceNotConfiguredError = (message) -> error = new Error(message) error.name = "ServiceNotConfiguredError" error.__pro...
Change error type for consistency
Change error type for consistency
CoffeeScript
agpl-3.0
sharelatex/sharelatex
5c13c3f82227188606137a28ea40b57789249ae8
app/assets/javascripts/services/session_service.coffee
app/assets/javascripts/services/session_service.coffee
angular.module('kassa').service('SessionService',[ '$http' '$q' '$window' ($http, $q, $window)-> currentUser = null equal = angular.equals setAuthenticated = (promise)-> promise.then (resp)-> currentUser = resp.data.user checkStatus = -> setAuthenticated $http.get('/users/me') signIn = (...
angular.module('kassa').service('SessionService',[ '$http' '$q' '$window' 'UserService' ($http, $q, $window, User)-> currentUser = null equal = angular.equals setUser = (user)-> currentUser = user checkStatus = -> User.find('me').then(setUser) signIn = (email, password, rememberMe=true...
Use UserService inside session to ensure identical conversions
Use UserService inside session to ensure identical conversions
CoffeeScript
mit
flipflops/kassa,flipflops/kassa
91669cb45f6107e9e27996b800d386bcb179f320
frontend-admin/src/app/components/mnoe-api/api.svc.coffee
frontend-admin/src/app/components/mnoe-api/api.svc.coffee
angular.module 'frontendAdmin' .factory 'MnoeApiSvc', ($log, Restangular, inflector) -> return Restangular.withConfig((RestangularProvider) -> RestangularProvider.setBaseUrl('/mnoe/jpi/v1') RestangularProvider.setDefaultHeaders({Accept: "application/json"}) # Unwrap api response Restangul...
@App.factory 'MnoeApiSvc', ($log, Restangular, inflector) -> return Restangular.withConfig((RestangularProvider) -> RestangularProvider.setBaseUrl('/mnoe/jpi/v1') RestangularProvider.setDefaultHeaders({Accept: "application/json"}) # Unwrap api response RestangularProvider.addResponseInterceptor( ...
Change module declaration on MnoeApiSvc
Change module declaration on MnoeApiSvc
CoffeeScript
apache-2.0
hedudelgado/mno-enterprise,hedudelgado/mno-enterprise,maestrano/mno-enterprise,hedudelgado/mno-enterprise,maestrano/mno-enterprise,hedudelgado/mno-enterprise,maestrano/mno-enterprise,maestrano/mno-enterprise
f71268935181e98e84aa9dc74ad5fdac526f96ff
backend/app/assets/javascripts/spree/backend/variant_autocomplete.js.coffee
backend/app/assets/javascripts/spree/backend/variant_autocomplete.js.coffee
# variant autocompletion $(document).ready -> if $("#variant_autocomplete_template").length > 0 window.variantTemplate = Handlebars.compile($("#variant_autocomplete_template").text()) window.variantStockTemplate = Handlebars.compile($("#variant_autocomplete_stock_template").text()) window.variantLineItemT...
# variant autocompletion $(document).ready -> if $("#variant_autocomplete_template").length > 0 window.variantTemplate = Handlebars.compile($("#variant_autocomplete_template").text()) window.variantStockTemplate = Handlebars.compile($("#variant_autocomplete_stock_template").text()) window.variantLineItemT...
Fix initSelection of variant autocomplete
Fix initSelection of variant autocomplete
CoffeeScript
bsd-3-clause
azclick/spree,azclick/spree,keatonrow/spree,azclick/spree,keatonrow/spree,keatonrow/spree,azclick/spree,keatonrow/spree
1a9a0f6295d00c5d9d06ac94510cb58ca0e14ca0
app/assets/javascripts/models/data/granules.js.coffee
app/assets/javascripts/models/data/granules.js.coffee
#= require models/data/xhr_model ns = @edsc.models.data ns.Granules = do (ko, getJSON=jQuery.getJSON, XhrModel=ns.XhrModel, extend=$.extend) -> class GranulesModel extends XhrModel constructor: (query, @parentQuery) -> super('/granules.json', query) _toResults: (data) -> results = data.feed.en...
#= require models/data/xhr_model ns = @edsc.models.data ns.Granules = do (ko, getJSON=jQuery.getJSON, XhrModel=ns.XhrModel, extend=$.extend) -> class GranulesModel extends XhrModel constructor: (query, @parentQuery) -> super('/granules.json', query) _toResults: (data) -> results = data.feed.en...
Fix merging of parameters for granule queries
Fix merging of parameters for granule queries
CoffeeScript
apache-2.0
bilts/earthdata-search,bilts/earthdata-search,mightynimble/earthdata-search,mightynimble/earthdata-search,bilts/earthdata-search,mightynimble/earthdata-search,mightynimble/earthdata-search,bilts/earthdata-search
f9582de93e58938bd17d91d2ae4562bb7ee3df6d
lib/gutter-component.coffee
lib/gutter-component.coffee
React = require 'react-atom-fork' {div} = require 'reactionary-atom-fork' module.exports = React.createClass render: -> {firstRow, lastRow, totalRows, gutter, height, parentView} = @props rows = for row in [firstRow...lastRow] classes = ['table-edit-row-number'] classes.push 'active-row' if pare...
React = require 'react-atom-fork' {div} = require 'reactionary-atom-fork' module.exports = React.createClass render: -> {firstRow, lastRow, totalRows, gutter, height, parentView} = @props rows = for row in [firstRow...lastRow] classes = ['table-edit-row-number'] classes.push 'active-row' if pare...
Fix gutter rendering when sorted
:bug: Fix gutter rendering when sorted
CoffeeScript
mit
abe33/atom-tablr
14460e4928353287b8133b86b5868798ea0812d0
application/chrome/content/wesabe/ofx/Status.coffee
application/chrome/content/wesabe/ofx/Status.coffee
# Helper class to contain status messages from the OFX response. type = require 'lang/type' class Status constructor: (@code, @status, @message) -> isSuccess: -> @code in ["0", "1"] isError: -> not @isSuccess() isGeneralError: -> @code is '2000' isAuthenticationError: -> @code is '15500'...
# Helper class to contain status messages from the OFX response. type = require 'lang/type' privacy = require 'util/privacy' class Status constructor: (@code, @status, @message) -> isSuccess: -> @code in ["0", "1"] isError: -> not @isSuccess() isGeneralError: -> @code is '2000' isAuthenticat...
Stop referencing the old style naming for util/privacy.
Stop referencing the old style naming for util/privacy.
CoffeeScript
apache-2.0
wesabe/ssu,wesabe/ssu,wesabe/ssu,wesabe/ssu,wesabe/ssu
05c559921e63052571ed0473b0c5168b5aa358f3
lib/markdown-preview.coffee
lib/markdown-preview.coffee
MarkdownPreviewView = require './markdown-preview-view' module.exports = activate: -> atom.workspaceView.command 'markdown-preview:show', => @show() atom.workspace.registerOpener (uriToOpen) -> fs = require 'fs-plus' url = require 'url' {protocol, pathname} = url.parse(uriToOpen) ...
MarkdownPreviewView = require './markdown-preview-view' module.exports = activate: -> atom.workspaceView.command 'markdown-preview:show', => @show() atom.workspace.registerOpener (uriToOpen) -> fs = require 'fs-plus' url = require 'url' {protocol, pathname} = url.parse(uriToOpen) ...
Use Pane::activate instead of PaneView::focus
Use Pane::activate instead of PaneView::focus
CoffeeScript
mit
ArnaudRinquin/markdown-preview,atom/markdown-preview,tkssharma/markdown-preview,grimmer0125/markdown-preview-kramdown,Galadirith/markdown-preview,rugk/markdown-preview,sctlee/markdown-preview,makyo/markdown-preview,danielgtaylor/atom-api-blueprint-preview
20193c74f5df5b961b4dfc0acec4de1e125f3f32
t/compiler/harness.coffee
t/compiler/harness.coffee
{Client} = require "mysql" fs = require "fs" context = compiler: require "../../lib/compiler" object: { id: 1, rgt: 1, lft: 2, permalink: "home" } reflector: (callback) -> configuration = JSON.parse fs.readFileSync("#{__dirname}/../../configuration.json", "utf8") mysql = configuration.databases.mysql ...
{Client} = require "mysql" fs = require "fs" context = compiler: require "../../lib/compiler" object: { id: 1, rgt: 1, lft: 2, permalink: "home" } reflector: (callback) -> configuration = JSON.parse fs.readFileSync("#{__dirname}/../../configuration.json", "utf8") mysql = configuration.databases.mysql ...
Add results of schema query to debug output.
Add results of schema query to debug output. Adding the results of the query for a schema in the compiler tests to the debugging output of the Travis CI build.
CoffeeScript
mit
bigeasy/relatable,bigeasy/relatable