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
d981b97d83db320808fe497539d0ed65f78e2451
spec/db-spec.coffee
spec/db-spec.coffee
DB = require '../lib/db' describe "DB", -> db = null test1 = off test2 = off data = testproject1: title: "Test project 1" group: "Test" paths: [ "/Users/project-1" ] testproject2: title: "Test project 2" paths: [ "/Users/project-2" ] before...
DB = require '../lib/db' describe "DB", -> db = null data = null beforeEach -> db = new DB() data = testproject1: title: "Test project 1" group: "Test" paths: [ "/Users/project-1" ] testproject2: title: "Test project 2" paths: [ ...
Reset data for each test
Reset data for each test
CoffeeScript
mit
danielbrodin/atom-project-manager,douggr/atom-project-manager,UltCombo/atom-project-manager
a1bbce3a6fbbb93835c20fa1697124de515bf94e
src/mobile/components/filter2/index.coffee
src/mobile/components/filter2/index.coffee
_ = require 'underscore' Backbone = require 'backbone' qs = require 'qs' FilterArtworks = require '../../collections/filter_artworks.coffee' FilterView = require './view.coffee' { FILTER_ROOT } = require('sharify').data module.exports = setupFilter: (options) -> defaults = startHistory: yes { aggrega...
_ = require 'underscore' Backbone = require 'backbone' qs = require 'qs' FilterArtworks = require '../../collections/filter_artworks.coffee' FilterView = require './view.coffee' { FILTER_ROOT } = require('sharify').data module.exports = setupFilter: (options) -> defaults = startHistory: yes { aggrega...
Remove the explicit for_sale filter and instead sort works by -decayed_merch on mobile web
Remove the explicit for_sale filter and instead sort works by -decayed_merch on mobile web
CoffeeScript
mit
artsy/force-public,oxaudo/force,yuki24/force,joeyAghion/force,eessex/force,artsy/force,eessex/force,joeyAghion/force,joeyAghion/force,artsy/force,artsy/force,eessex/force,oxaudo/force,yuki24/force,yuki24/force,artsy/force,artsy/force-public,eessex/force,joeyAghion/force,yuki24/force,oxaudo/force,oxaudo/force
46cf83c72cc494a8cd5a3455cc4b2a62247a06bb
src/programmer.coffee
src/programmer.coffee
"use strict" # Pre dependencies # (none) ###* @class Programmer Firmware updater class ### module.exports = class Programmer null #-------------------------------------------------------------------------------- # Public methods # #-------------------------------------------------------------------------...
Add Programmer class (for updating firmware)
Add Programmer class (for updating firmware)
CoffeeScript
mit
kimushu/rubic,kimushu/rubic
b0b30b25c8a795aa1a3bee57a440bd4a1a2c6ec4
test/node-test.coffee
test/node-test.coffee
global.window = { location: '' } chai = require('chai') chai.config.includeStack = true expect = chai.expect should = chai.should() Sinon = require('sinon') requireModel = (name) -> require "#{__dirname}/../src/code/models/#{name}" Node = requireModel 'node' GraphStore = requir...
Add tests for changing node properties
Add tests for changing node properties [#99423710]
CoffeeScript
mit
concord-consortium/building-models,concord-consortium/building-models,concord-consortium/building-models,concord-consortium/building-models,concord-consortium/building-models
e9de6552c2a1f35dc0aebfe3c9ede70a8a483322
source/javascripts/tests/simple_cors_spdy.coffee
source/javascripts/tests/simple_cors_spdy.coffee
class SimpleCorsSpdyTest constructor: ($http) -> @result = "pending" @display_name = "Simple CORS over SPDY" @$http = $http run: -> a = Math.floor((Math.random() * 100000) + 1) b = Math.floor((Math.random() * 100000) + 1) @$http( method: "GET" url: "https://corstest-api.coshx.co...
Add test for simple cors over spdy
Add test for simple cors over spdy
CoffeeScript
mit
gkop/corstest-client,gkop/corstest-client
b95a30e0d6f5ea0ba068c09f4a0e7486445fd46c
stylesheets/__tests__/layout-test.coffee
stylesheets/__tests__/layout-test.coffee
jest.autoMockOff() fs = require 'fs' path = require 'path' sass = require 'node-sass' css = require 'css' renderSass = (sass_source) -> output = sass.renderSync data: """ @import "marquee" #{ sass_source } """ ...
Add tests for layout mixins.
Add tests for layout mixins.
CoffeeScript
unlicense
marquee/static-sdk
cac3c79e9c94424716015c6e46bd3fd02fb7a9da
spec/spec-helper.coffee
spec/spec-helper.coffee
_ = require 'underscore' beforeEach -> @addMatchers toEqualJson: (expected) -> failures = {} class Failure constructor: (@path, @actual, @expected) -> getMessage: -> """ #{@path}: actual: #{@actual} expected: #{@expected} """ ...
Add rad json matcher with legit output on failure
Add rad json matcher with legit output on failure
CoffeeScript
mit
atom/tello
3faa0556e8a4fbd7f1e26d1c4880c7d1a31c567b
services/web/test/unit_frontend/coffee/ide/editor/directives/cmEditorTests.coffee
services/web/test/unit_frontend/coffee/ide/editor/directives/cmEditorTests.coffee
define ['ide/editor/directives/cmEditor'], () -> describe 'cmEditor', () -> beforeEach(module('SharelatexApp')) beforeEach () -> @richTextInit = sinon.stub() window.Frontend = { richText: { init: @richTextInit } } it 'inits Rich Text', () -> inject ($com...
Add test for cmEditor directive
Add test for cmEditor directive
CoffeeScript
agpl-3.0
sharelatex/sharelatex
73c58d70f0647ec9965f39ecffe410e1d95f9976
js-library/app/js/jail_iframe/classes/ready_promise.coffee
js-library/app/js/jail_iframe/classes/ready_promise.coffee
ready = $.Deferred() complete = $.Deferred() if /^(interactive|complete)$/.test(document.readyState) ready.resolve() else document.addEventListener('DOMContentLoaded', -> ready.resolve()) if 'complete' == document.readyState complete.resolve() else console.log "queuing handler since we're in state #{document....
Add promises marking when the containing body is in various stages of completion
Add promises marking when the containing body is in various stages of completion
CoffeeScript
mit
Factlink/factlink-core,Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core,daukantas/factlink-core,daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core
6362c48ae221f2ddbc6f162a65d547b30a536820
util/places2yaml.coffee
util/places2yaml.coffee
#!/usr/bin/env coffee # # Copyright (C) 2015 by EatOutBerlin # fs = require 'fs' yaml = require 'js-yaml' colors = require 'colors/safe' path = require 'path' diff = require 'diff' mkdirp = require 'mkdirp' INPUT_FILE = path.join 'data', 'places.json' OUTPUT_DIR = path.join 'data', 'places' OUTPUT_FILE = 'place.yaml'...
Add script to convert the data to multiple yaml files
Add script to convert the data to multiple yaml files
CoffeeScript
agpl-3.0
kostspielig/eatout,kostspielig/eatout,kostspielig/eatout,kostspielig/eatout,kostspielig/eatout,kostspielig/eatout
aee2c33f2ba2948ba34074ea8010ef81fae5758a
scripts/xcode-server.coffee
scripts/xcode-server.coffee
# Description # Notifies based on the results of xcode builds and controls xcode builds # # Dependencies # None # # Configuration # None # # Commands: # hubot build <bot name> - Start a build for bot named <bot name> UNIMPLEMENTED # # Author: # bmnick url = require('url') querystring = require('querystring')...
Add a basic build success/failure notifier endpoint
Add a basic build success/failure notifier endpoint
CoffeeScript
mit
brandnetworks/our-product-slack-hubot
0a4aa3f949a4709af220a7eb3fb5c0add5a38252
menus/autosave-delay.cson
menus/autosave-delay.cson
'menu': [ { 'label': 'Packages' 'submenu': [ 'label': 'Autosave Onchange' 'submenu': [ { 'label': 'Toggle' 'command': 'autosave-delay:toggle' } ] ] } ]
Add menu item for package
Add menu item for package
CoffeeScript
mit
ChexWarrior/atom-autosave-onchange
9330276ae97c923f8fe8fa8b2472644787b1ab08
src/packages/fuzzy-finder/lib/fuzzy-finder.coffee
src/packages/fuzzy-finder/lib/fuzzy-finder.coffee
_ = require 'underscore' module.exports = projectPaths: null fuzzyFinderView: null loadPathsTask: null activate: (state) -> rootView.command 'fuzzy-finder:toggle-file-finder', => @createView().toggleFileFinder() rootView.command 'fuzzy-finder:toggle-buffer-finder', => @createView().toggleB...
_ = require 'underscore' module.exports = projectPaths: null fuzzyFinderView: null loadPathsTask: null activate: (state) -> rootView.command 'fuzzy-finder:toggle-file-finder', => @createView().toggleFileFinder() rootView.command 'fuzzy-finder:toggle-buffer-finder', => @createView().toggleB...
Abort task when view is created
Abort task when view is created
CoffeeScript
mit
matthewclendening/atom,Jandersoft/atom,ezeoleaf/atom,kittens/atom,Jonekee/atom,jjz/atom,svanharmelen/atom,RobinTec/atom,bsmr-x-script/atom,yangchenghu/atom,lisonma/atom,Abdillah/atom,hharchani/atom,pengshp/atom,russlescai/atom,Andrey-Pavlov/atom,batjko/atom,qiujuer/atom,florianb/atom,jacekkopecky/atom,dannyflax/atom,ke...
de36d3a4c9d20771ab860e8632615d93d69e22d7
plugins/i18n.coffee
plugins/i18n.coffee
module.exports = (env, callback) -> lang_FR = [ 'LAB_KEYWORDS' : 'Mots clés', 'LAB_DEMOS' : 'Démos & Projets', 'LAB_MORE' : 'Voir plus', 'LAB_HOME' : 'Accueil', 'LAB_EXPERIENCES' : 'Expériences', 'LAB_COMPETENCES' : 'Compétences', 'LAB_FORMATI...
Create an internationalization module which uses associative array and manage language from url
Create an internationalization module which uses associative array and manage language from url
CoffeeScript
mit
jbouny/jbouny,jbouny/jbouny
f7e643b8c3d870a5f2c34afba8b469bf812c1020
app/src/utils/object.coffee
app/src/utils/object.coffee
_.mixin # Tests if the instance of an object is a subtype of a given class. (Note that this only works for coffeescript classes) # @param [Object] An instance of an object # @param [Function] The class to test # @return [Boolean] true if the object is a subtype of class otherwise false isKindOf: (object, cl...
Extend _ with utility functions for type checking
Extend _ with utility functions for type checking
CoffeeScript
mit
Morveus/ledger-wallet-doge-chrome,LedgerHQ/ledger-wallet-chrome,Morveus/ledger-wallet-doge-chrome,LedgerHQ/ledger-wallet-chrome
1d1b6016d0c3c5ed25303163224a71bb69f58d94
js-library/app/js/publisher_poc/publisher_plugin.user.coffee
js-library/app/js/publisher_poc/publisher_plugin.user.coffee
### // ==UserScript== // @name Factlink Publisher Pluging for Nu.nl // @description Enable Factlink on Nu.nl // @include http*://*.nu.nl/* // @version 0.0.1 // @grant unsafeWindow // ==/UserScript== ### # Compile this file using: coffee -c <filename> # Drag the compiled file (<name>.user.js) to chrome://extensions to...
Add publisher script for Nu.nl
Add publisher script for Nu.nl This can be compiled locally using coffee -c <filename>. No need to compile this in Grunt, since the script will only be installed locally into Chrome.
CoffeeScript
mit
daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core,Factlink/factlink-core,daukantas/factlink-core
124b3ed0e81ef4a9f74af4bde97e0dd57231769c
client/admin/lib/views/invitations/invitationslistcontroller.coffee
client/admin/lib/views/invitations/invitationslistcontroller.coffee
kd = require 'kd' remote = require('app/remote').getInstance() InvitedItemView = require './inviteditemview' KDNotificationView = kd.NotificationView KodingListController = require 'app/kodinglist/kodinglistcontroller' module.exports = class InvitationsListController extend...
Create a new KodingListController instance for InvitationsListController
Create a new KodingListController instance for InvitationsListController
CoffeeScript
agpl-3.0
kwagdy/koding-1,alex-ionochkin/koding,cihangir/koding,andrewjcasal/koding,gokmen/koding,alex-ionochkin/koding,usirin/koding,rjeczalik/koding,alex-ionochkin/koding,mertaytore/koding,acbodine/koding,cihangir/koding,rjeczalik/koding,gokmen/koding,cihangir/koding,sinan/koding,drewsetski/koding,acbodine/koding,sinan/koding,...
54bf45e326ba9346d8220e6f36b327776a9953ed
js-library/app/js/publisher_poc/publisher_plugin.user.coffee
js-library/app/js/publisher_poc/publisher_plugin.user.coffee
### // ==UserScript== // @name Factlink Publisher Pluging for Nu.nl // @description Enable Factlink on Nu.nl // @include http*://*.nu.nl/* // @version 0.0.1 // @grant unsafeWindow // ==/UserScript== ### # Compile this file using: coffee -c <filename> # Drag the compiled file (<name>.user.js) to chrome://extensions to...
Add publisher script for Nu.nl
Add publisher script for Nu.nl This can be compiled locally using coffee -c <filename>. No need to compile this in Grunt, since the script will only be installed locally into Chrome.
CoffeeScript
mit
daukantas/factlink-core,Factlink/factlink-core,daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core,daukantas/factlink-core
48e4f32745d1b10240ae2e09ae46238fbb43cd52
server-ce/migrations/6_add_track_changes_feature.coffee
server-ce/migrations/6_add_track_changes_feature.coffee
Settings = require "settings-sharelatex" fs = require("fs") mongojs = require("mongojs") ObjectId = mongojs.ObjectId db = mongojs(Settings.mongo.url, ['users']) _ = require("underscore") BSON = db.bson.BSON handleExit = () -> console.log('Got signal. Shutting down.') process.on 'SIGINT', handleExit process.on 'SI...
Add migration to enable trackChanges for all users
Add migration to enable trackChanges for all users
CoffeeScript
agpl-3.0
sharelatex/sharelatex
a781b8792ce109c65f04875f04fd5a1ca5789c7f
src/desktop/components/auth_modal/test/templates.coffee
src/desktop/components/auth_modal/test/templates.coffee
jade = require 'jade' path = require 'path' fs = require 'fs' cheerio = require 'cheerio' render = (templateName) -> filename = path.resolve __dirname, "../templates/#{templateName}.jade" jade.compile( fs.readFileSync(filename), { filename: filename } ) describe "Auth Templates", -> describe "forgot",...
Add some view specs for set password flow
Add some view specs for set password flow Also improved some coverage for the forgot flow by default.
CoffeeScript
mit
cavvia/force-1,kanaabe/force,artsy/force,erikdstock/force,eessex/force,kanaabe/force,izakp/force,kanaabe/force,xtina-starr/force,cavvia/force-1,yuki24/force,anandaroop/force,izakp/force,joeyAghion/force,eessex/force,izakp/force,xtina-starr/force,kanaabe/force,oxaudo/force,damassi/force,mzikherman/force,anandaroop/force...
63663c37c83318db8e9da6f3865b07444c0c4462
apps/artwork/test/routes.coffee
apps/artwork/test/routes.coffee
_ = require 'underscore' Q = require 'bluebird-q' sinon = require 'sinon' Backbone = require 'backbone' request = require 'superagent' { fabricate } = require 'antigravity' routes = require '../routes' CurrentUser = require '../../../models/current_user' Artwork = require '../../../models/artwork' describe 'Artwork ro...
Add spec for download image route
Add spec for download image route
CoffeeScript
mit
cavvia/force-1,anandaroop/force,yuki24/force,dblock/force,erikdstock/force,kanaabe/force,damassi/force,oxaudo/force,artsy/force,izakp/force,dblock/force,erikdstock/force,anandaroop/force,kanaabe/force,mzikherman/force,yuki24/force,artsy/force,xtina-starr/force,mzikherman/force,cavvia/force-1,eessex/force,anandaroop/for...
7e771959ad0b6fa34218eb617a9193d6c3fc68b9
menus/open-on-github.cson
menus/open-on-github.cson
'menu': [ { 'label': 'Packages' 'submenu': [ 'label': 'Open On GitHub' 'submenu': [ { 'label': 'Blame', 'command': 'open-on-github:blame' } { 'label': 'Copy Url', 'command': 'open-on-github:copy-url' } { 'label': 'File', 'command': 'open-on-github:file' } { 'label':...
Add Packages > Open On GitHub menu
Add Packages > Open On GitHub menu
CoffeeScript
mit
atom/open-on-github
05fdfdc9a29cd9d53d1c0bc1dd1f1ec8389b3f09
packages/rocketchat-livechat/app/client/methods/sendMessageExternal.coffee
packages/rocketchat-livechat/app/client/methods/sendMessageExternal.coffee
Meteor.methods sendMessageLivechat: (message) -> if s.trim(message.msg) isnt '' if isNaN(TimeSync.serverOffset()) message.ts = new Date() else message.ts = new Date(Date.now() + TimeSync.serverOffset()) message.u = _id: Meteor.userId() username: 'visitor' message.temp = true # mess...
Meteor.methods sendMessageLivechat: (message) -> if s.trim(message.msg) isnt '' if isNaN(TimeSync.serverOffset()) message.ts = new Date() else message.ts = new Date(Date.now() + TimeSync.serverOffset()) message.u = _id: Meteor.userId() username: Meteor.user()?.username || 'visitor' mes...
Use guest user name if already registered
Use guest user name if already registered
CoffeeScript
mit
BorntraegerMarc/Rocket.Chat,galrotem1993/Rocket.Chat,tntobias/Rocket.Chat,Gyubin/Rocket.Chat,BorntraegerMarc/Rocket.Chat,AimenJoe/Rocket.Chat,linnovate/hi,subesokun/Rocket.Chat,marzieh312/Rocket.Chat,alexbrazier/Rocket.Chat,Gyubin/Rocket.Chat,liuliming2008/Rocket.Chat,ggazzo/Rocket.Chat,intelradoux/Rocket.Chat,Learners...
68c711b7e561682e794ed348f44bf7ab038f5a91
client/Environments/views/scene/environmentruleitem.coffee
client/Environments/views/scene/environmentruleitem.coffee
class EnvironmentRuleItem extends EnvironmentItem constructor: (options = {}, data) -> options.cssClass = 'rule' options.joints = ['right'] options.allowedConnections = EnvironmentDomainItem : ['left'] super options, data contextMenuItems: -> colorSelection = n...
class EnvironmentRuleItem extends EnvironmentItem constructor: (options = {}, data) -> options.cssClass = 'rule' options.joints = ['right'] options.allowedConnections = EnvironmentDomainItem : ['left'] super options, data contextMenuItems: -> colorSelection = n...
Update rule item view when rule is updated.
Firewall: Update rule item view when rule is updated.
CoffeeScript
agpl-3.0
jack89129/koding,acbodine/koding,mertaytore/koding,mertaytore/koding,kwagdy/koding-1,kwagdy/koding-1,cihangir/koding,jack89129/koding,drewsetski/koding,usirin/koding,alex-ionochkin/koding,andrewjcasal/koding,cihangir/koding,mertaytore/koding,szkl/koding,andrewjcasal/koding,drewsetski/koding,jack89129/koding,sinan/kodin...
8a9675c7eb7ec3d0f5485fc9d171a73807d7d9fd
keymaps/vertical-align.cson
keymaps/vertical-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 keybindings for win32 and linux
Add keybindings for win32 and linux
CoffeeScript
mit
adrianlee44/atom-aligner
2dac57cea9a5e760f6fcd52c50b1897a3e76cd19
helper/stamp.coffee
helper/stamp.coffee
_ = require "underscore" module.exports = (target, source) -> _.extend {}, target, _.pick(source, [ "commandId" "stepId" "userId" "avatarId" ])
_ = require "underscore" module.exports = (target, source) -> _.defaults {}, target, _.pick(source, [ "commandId" "stepId" "userId" "avatarId" ])
Update settings, add Command testing
Update settings, add Command testing
CoffeeScript
agpl-3.0
fixin-platform/backend-core,spirehq/backend-core,fixin-platform/backend-core,skgcorp/core,skgcorp/core,spirehq/backend-core
ae5fdf1d9dde38c67ce98370bca68065668de0fb
spec/installer-spec.coffee
spec/installer-spec.coffee
fs = require 'fs' path = require 'path' grunt = require 'grunt' temp = require 'temp' describe 'create-windows-installer task', -> it 'creates a nuget package', -> outputDirectory = temp.mkdirSync('grunt-atom-shell-installer-') grunt.config.init pkg: grunt.file.readJSON(path.join(__dirname, 'fixtures...
fs = require 'fs' path = require 'path' grunt = require 'grunt' temp = require 'temp' describe 'create-windows-installer task', -> it 'creates a nuget package', -> outputDirectory = temp.mkdirSync('grunt-atom-shell-installer-') grunt.config.init pkg: grunt.file.readJSON(path.join(__dirname, 'fixtures...
Use app package.json file in spec
Use app package.json file in spec
CoffeeScript
mit
electronjs/windows-installer,mongodb-js/electron-installer-squirrel-windows,domderen/atom-shell-installer,coderhaoxin/grunt-electron-installer,domderen/atom-shell-installer
7baf49c2f3340087505bb8a8c1ea6c7b3c9253ba
spec/specs/doerror.coffee
spec/specs/doerror.coffee
# build-dependencies: bus describe "EventStream.doError", -> it "calls function before sending error to listeners", -> called = [] bus = new Bacon.Bus() s = bus.flatMap((x) -> new Bacon.Error(1)).doError((x) -> called.push(x)) s.onValue(->) s.onError(->) bus.push(1) expect(called).to.deep....
# build-dependencies: bus describe "EventStream.doError", -> it "calls function before sending error to listeners", -> called = [] bus = new Bacon.Bus() s = bus.flatMap((x) -> new Bacon.Error(1)).doError((x) -> called.push(x)) s.onValue(->) s.onError((x) -> called.push(x+1)) bus.push(1) ex...
Test also that error is passed to onError handler
Test also that error is passed to onError handler
CoffeeScript
mit
liang42hao/bacon.js,rpominov/bacon.js,roppa/bacon.js,voxlol/bacon.js,kaiyusung/bacon.js,baconjs/bacon.js,rpominov/bacon.js,ansered/bacon.js,luiseduardohdbackup/bacon.js,phadej/bacon.js,IveWong/bacon.js,ansered/bacon.js,kaiyusung/bacon.js,erpframework/bacon.js,baconjs/bacon.js,joshfrench/bacon.js,IveWong/bacon.js,roppa/...
3e9bba84de237a03a82942f2b4c06aabcaf02767
dev/tests/angular-database-model.coffee
dev/tests/angular-database-model.coffee
'use strict' describe 'ngDatabase model', -> $model = null beforeEach -> module 'ngDatabase' return beforeEach -> inject ($injector) -> $model = $injector.get '$model' return return it 'Should have findAll method', -> expect(typeof $mod...
Create a model factory fot angular js
Create a model factory fot angular js
CoffeeScript
mit
nickleus73/angular-database
863fb53f7212c2431534ac3e0fb696903852ab72
lib/shared/lib/stats.coffee
lib/shared/lib/stats.coffee
### This class's function parameters are inspired by Segment.io. It's a light wrapper for it in case I decide to switch analytics providers. ### class @SpendflowStats analyticsEnabled = false Meteor.startup => if analytics? and Meteor.isClient then analyticsEnabled = true SpendflowStats.isEnabled = -> analyti...
Add wrapper class for analytics.
Add wrapper class for analytics. [#51845303]
CoffeeScript
agpl-3.0
hamidsardar/spendflow,hamidsardar/spendflow,spendflow/spendflow
adf6c424cd597abfc133bf84c6a6d1f9978be18d
lib/actions/textfile.coffee
lib/actions/textfile.coffee
staticHandler= require('../static_handler') mimeWrapper= require('../mime_wrapper') hasAnExtension = require('../utilities').hasAnExtension extensions= ['.txt'] # if adding .txt to the end of the path finds a file, serve the contents of that file module.exports= implicitTextFileAction= (req,res,next) -> try ful...
Add an action that implies '.txt' at the end of a URL.
Add an action that implies '.txt' at the end of a URL.
CoffeeScript
mit
randymized/malifi
1255f23196839a80bcdacaeb01ef773e24db9155
app/assets/javascripts/courses.js.coffee
app/assets/javascripts/courses.js.coffee
$ -> # handle updating the width for scrolling through courses width = 0 $(".courses-listing .course").each -> width += $(this).outerWidth(true) width += $(".courses-listing .course").outerWidth(true) / 3 $(".courses-listing").css "width", width + "px"
Add JavaScript for Courses Listing Scroll
Add JavaScript for Courses Listing Scroll Add JavaScript code to handle setting the width of the Courses listing so that if there are more courses than fit on the page, the container scrolls.
CoffeeScript
mit
jekhokie/IfSimply,jekhokie/IfSimply,jekhokie/IfSimply
69a756dfc8e3af553fd6e18959da48992d5db9de
menus/bracket-matcher.cson
menus/bracket-matcher.cson
'menu': [ { 'label': 'Packages' 'submenu': [ 'label': 'Bracket Matcher' 'submenu': [ { 'label': 'Go To Matching Bracket', 'command': 'bracket-matcher:go-to-matching-bracket' } ] ] } ]
Add menu item to jump to matching bracket
Add menu item to jump to matching bracket
CoffeeScript
mit
adamCoGithub/Bracket-Matcher-no-autoclose,bwinton/bracket-matcher,adamCoGithub/Bracket-Matcher-no-autoclose,jacekkopecky/bracket-matcher,lpommers/bracket-matcher,jacekkopecky/bracket-matcher,adamCoGithub/Bracket-Matcher-no-smart-quotes,adamCoGithub/Bracket-Matcher-no-smart-quotes,lpommers/bracket-matcher,bwinton/bracke...
298c0f5f036780a41c46b5bfa5f2a12a645190b7
js-library/app/js/jail_iframe/classes/performance_measurement.coffee
js-library/app/js/jail_iframe/classes/performance_measurement.coffee
load_moments = [] last_sorted = 0 add_timing_event = (name) -> add_existing_timing_event name, new Date().getTime() add_existing_timing_event = (name, time) -> load_moments.push(Object.freeze(name:name, time: time, idx: load_moments.length)) get_sorted_moments = -> if(load_moments.length > last_sorted) loa...
Add pluggable performance measurement logger
Add pluggable performance measurement logger
CoffeeScript
mit
Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core,daukantas/factlink-core,Factlink/factlink-core,daukantas/factlink-core
4885af9216c40f2bccd0a0db0b1a3daf8fbf242f
plugins/github-issues/index.coffee
plugins/github-issues/index.coffee
NotificationPlugin = require "../../notification-plugin" class GithubIssue extends NotificationPlugin BASE_URL = "https://api.github.com" stacktraceLines = (stacktrace) -> ("#{line.file}:#{line.lineNumber} - #{line.method}" for line in stacktrace when line.inProject) markdownBody = (event) -> """ #...
NotificationPlugin = require "../../notification-plugin" class GithubIssue extends NotificationPlugin BASE_URL = "https://api.github.com" stacktraceLines = (stacktrace) -> ("#{line.file}:#{line.lineNumber} - #{line.method}" for line in stacktrace when line.inProject) markdownBody = (event) -> """ #...
Set useragent on api requests to github
Set useragent on api requests to github
CoffeeScript
mit
6wunderkinder/bugsnag-notification-plugins,pushed/bugsnag-notification-plugins,korealert/bugsnag-notification-plugins,kstream001/bugsnag-notification-plugins,cagedata/bugsnag-notification-plugins,6wunderkinder/bugsnag-notification-plugins,korealert/bugsnag-notification-plugins,indirect/bugsnag-notification-plugins,jaco...
cf2f25ca970d047ac8028bc3c2c7b70632308d71
scripts/name-expander.coffee
scripts/name-expander.coffee
# Expands a message to a named group of people into their individual names # # merlin: <your message> merlin_remote_members = [ "Cliff Dickerson", "michael.ivey", ] merlin_lax_members = [ "Jesse Howarth", "Josiah Kiehl", "mmatsumura", "Jamie Winsor" ] merlin_members = merlin_remote_members.concat merlin_...
Expand things like merlin: and merlin-lax: to message the correct people.
Expand things like merlin: and merlin-lax: to message the correct people.
CoffeeScript
mit
RiotGamesMinions/lefay,RiotGamesMinions/lefay
1bb7fed3a710daf1d5769ed84c6bdc09ed4a652d
test/unit/metadataTest.coffee
test/unit/metadataTest.coffee
should = require "should" metadata = require "../../lib/api/metadata" describe "Metadata Functions", -> describe ".removeProperties", -> it "should return an object with _id and __v removed from all objects in the object", (done) -> object = { _id: "11111", __v: "test", someProp: ...
Add unit tests for metadata functions
Add unit tests for metadata functions
CoffeeScript
mpl-2.0
jembi/openhim-core-js,jembi/openhim-core-js
0398e160ae059c2fd361c614d5580af44930517f
src/packages/spell-check/lib/spell-check-handler.coffee
src/packages/spell-check/lib/spell-check-handler.coffee
module.exports = findMisspellings: (text) -> wordRegex = /(?:^|\s)([a-zA-Z]+)(?=\s|\.|$)/g row = 0 misspellings = [] for line in text.split('\n') while matches = wordRegex.exec(line) word = matches[1] continue unless $native.isMisspelled(word) startColumn = matches.index ...
module.exports = findMisspellings: (text) -> wordRegex = /(?:^|\s)([a-zA-Z']+)(?=\s|\.|$)/g row = 0 misspellings = [] for line in text.split('\n') while matches = wordRegex.exec(line) word = matches[1] continue unless $native.isMisspelled(word) startColumn = matches.index...
Include apostrophe in word regex
Include apostrophe in word regex
CoffeeScript
mit
jacekkopecky/atom,woss/atom,darwin/atom,Andrey-Pavlov/atom,kjav/atom,daxlab/atom,sxgao3001/atom,Huaraz2/atom,KENJU/atom,charleswhchan/atom,avdg/atom,lovesnow/atom,qiujuer/atom,vhutheesing/atom,Andrey-Pavlov/atom,rmartin/atom,kaicataldo/atom,PKRoma/atom,bj7/atom,vinodpanicker/atom,oggy/atom,qskycolor/atom,targeter21/ato...
4e0a01d5f3e4a9dedf8f08334b330a7d7e92e984
src/scripts/whos-turn.coffee
src/scripts/whos-turn.coffee
# Who's turn to do something ? # # who <does something> : <someone>, <someone>, <someone> ? - Returns who does ! # module.exports = (robot) -> robot.respond /(who|qui) (.+) : (.+) \?/i, (msg) -> action = msg.match[2] member = msg.random msg.match[3].split /[\s]*,[\s]*/ msg.send membe...
Add initial 'who's turn' script
Add initial 'who's turn' script
CoffeeScript
mit
github/hubot-scripts,chauffer/hubot-scripts,alexhouse/hubot-scripts,azimman/hubot-scripts,arcaartem/hubot-scripts,1000hz/hubot-scripts,DataDog/hubot-scripts,gregburek/emojibot,justinwoo/hubot-scripts,zecahnin/hubot-scripts,jhubert/hubot-scripts,DataDog/hubot-scripts,contolini/hubot-scripts,flores/hubot-scripts,terryjba...
39d5a4878fea8aa631c6b614bdebb9be7b975e79
spec/javascripts/extensions/array_spec.js.coffee
spec/javascripts/extensions/array_spec.js.coffee
#= require extensions/array describe 'Array extensions', -> describe 'first', -> it 'returns the first item', -> arr = [0, 1, 2, 3, 4, 5] expect(arr.first()).toBe(0) describe 'last', -> it 'returns the last item', -> arr = [0, 1, 2, 3, 4, 5] expect(arr.last()).toBe(5)
Add JS specs for Array extensions
Add JS specs for Array extensions
CoffeeScript
mit
ngpestelos/gitlabhq,ksoichiro/gitlabhq,ikappas/gitlabhq,julianengel/gitlabhq,ikappas/gitlabhq,k4zzk/gitlabhq,jirutka/gitlabhq,since2014/gitlabhq,sonalkr132/gitlabhq,hzy001/gitlabhq,yonglehou/gitlabhq,icedwater/gitlabhq,hacsoc/gitlabhq,ayufan/gitlabhq,mente/gitlabhq,flashbuckets/gitlabhq,youprofit/gitlabhq,TheWatcher/gi...
5c5e76d535573b82edaebe151db95ff7ad05a103
lib/workspace-utils.coffee
lib/workspace-utils.coffee
{Point} = require('atom') path = require('path') languageRegistry = require('./language-registry').getInstance() # ------------------------------------------------------------------------------ module.exports = ## Constants ----------------------------------------------------------------- ...
Move language information deducing functionality to workspace utils
Move language information deducing functionality to workspace utils
CoffeeScript
mit
lakrme/atom-levels
fbde081fbb002fcfba6741cd728d0a50b572576e
src/desktop/apps/artwork/components/metadata/test/templates/index.coffee
src/desktop/apps/artwork/components/metadata/test/templates/index.coffee
_ = require 'underscore' jade = require 'jade' cheerio = require 'cheerio' path = require 'path' fs = require 'fs' { fabricate } = require 'antigravity' sinon = require 'sinon' render = -> filename = path.resolve __dirname, "../../index.jade" jade.compile( fs.readFileSync(filename), { filename: filename } ...
Add a test for display of attribution_class on desktop
Add a test for display of attribution_class on desktop
CoffeeScript
mit
xtina-starr/force,artsy/force-public,anandaroop/force,joeyAghion/force,kanaabe/force,izakp/force,artsy/force-public,cavvia/force-1,mzikherman/force,damassi/force,cavvia/force-1,eessex/force,kanaabe/force,erikdstock/force,damassi/force,artsy/force,damassi/force,anandaroop/force,artsy/force,anandaroop/force,izakp/force,x...
2ac9552b4b00066f9e53ef7d54b61fdef7201a58
client/src/views/indicator_selector_view.coffee
client/src/views/indicator_selector_view.coffee
window.Backbone ||= {} window.Backbone.Views ||= {} class Backbone.Views.IndicatorSelectorView extends Backbone.Diorama.NestingView template: Handlebars.templates['indicator_selector.hbs'] className: 'modal indicator-selector' events: "click .close": "close" "click .indicators li .info": "selectIndicato...
window.Backbone ||= {} window.Backbone.Views ||= {} class Backbone.Views.IndicatorSelectorView extends Backbone.Diorama.NestingView template: Handlebars.templates['indicator_selector.hbs'] className: 'modal indicator-selector' events: "click .close": "close" "click .indicators li .info": "selectIndicato...
Upgrade indicator selector to diorama 0.2.0
Upgrade indicator selector to diorama 0.2.0
CoffeeScript
bsd-3-clause
unepwcmc/NRT,unepwcmc/NRT
36411756f9d26d68353bc09cad3b5cdacd2538a9
spec/Subtree.coffee
spec/Subtree.coffee
chai = require 'chai' unless chai Choice = require '../lib/Choice' Root = require '../lib/Root' describe 'Subtrees', -> describe 'non-existent attribute lookup in tree', -> it 'should return null', (done) -> direct = (orig, data) -> subtree = orig.tree 'directcalc' subtree.deliver data ...
Add failing test getting non-existant attribute in continue tree
Tests: Add failing test getting non-existant attribute in continue tree
CoffeeScript
mit
the-grid/Flowerflip,the-grid/Flowerflip
828f28e576259b00f8981b2d03c0431019f0481e
lib/git-status-view.coffee
lib/git-status-view.coffee
path = require 'path' fs = require 'fs-plus' FuzzyFinderView = require './fuzzy-finder-view' module.exports = class GitStatusView extends FuzzyFinderView toggle: -> if @hasParent() @cancel() else if atom.project.getRepo()? @populate() @attach() getEmptyMessage: (itemCount) -> if item...
path = require 'path' fs = require 'fs-plus' FuzzyFinderView = require './fuzzy-finder-view' module.exports = class GitStatusView extends FuzzyFinderView toggle: -> if @hasParent() @cancel() else if atom.project.getRepo()? @populate() @attach() getEmptyMessage: (itemCount) -> if item...
Use working directory instead of project path
Use working directory instead of project path Project path might be a sub directory of the repository
CoffeeScript
mit
Spy-Seth/fuzzy-finder,pombredanne/fuzzy-finder,pombredanne/fuzzy-finder,Kerruba/fuzzy-finder,nielsAD/fuzzy-finder,toshi-saito/fuzzy-finder,segiddins/fuzzy-finder,nielsAD/fuzzy-finder,atom/fuzzy-finder,segiddins/fuzzy-finder,gvanderest/fuzzy-finder,viddo/fuzzy-finder,viddo/fuzzy-finder,Kerruba/fuzzy-finder,gvanderest/fu...
9d7285d04a64976823c0c3c81a07b65a07735c7b
src/overlay-manager.coffee
src/overlay-manager.coffee
module.exports = class OverlayManager constructor: (@container) -> @overlays = {} render: (props) -> {presenter, editor, overlayDecorations} = props lineHeight = presenter.getLineHeight() existingDecorations = null for markerId, {headPixelPosition, tailPixelPosition, decorations} of overlayDec...
module.exports = class OverlayManager constructor: (@container) -> @overlayNodesById = {} render: (props) -> {presenter} = props for decorationId, {pixelPosition, item} of presenter.state.content.overlays @renderOverlay(presenter, decorationId, item, pixelPosition) for id, overlayNode of @o...
Use presenter for rendering overlay decorations
Use presenter for rendering overlay decorations We’re still doing some sync DOM reads and computation in the view that should eventually be made async and moved into the presenter, but I’m going to leave it alone for now.
CoffeeScript
mit
jacekkopecky/atom,stuartquin/atom,MjAbuz/atom,scippio/atom,mrodalgaard/atom,AlisaKiatkongkumthon/atom,boomwaiza/atom,liuderchi/atom,mertkahyaoglu/atom,synaptek/atom,amine7536/atom,ReddTea/atom,targeter21/atom,vcarrera/atom,kevinrenaers/atom,bryonwinger/atom,jtrose2/atom,yalexx/atom,ivoadf/atom,deepfox/atom,xream/atom,k...
59c7206e27381e3720a427abfebc80bc1b91c6f7
server/controllers/filters.coffee
server/controllers/filters.coffee
checkToken = require('../lib/token').checkToken errors = require '../middlewares/errors' module.exports.checkDevice = (req, res, next) -> auth = req.header('authorization') [err, isAuthenticated, name] = checkToken auth if err or not isAuthenticated or not name next errors.notAuthorized() else ...
checkToken = require('../lib/token').checkToken errors = require '../middlewares/errors' module.exports.checkDevice = (req, res, next) -> auth = req.header('authorization') [err, isAuthenticated, name] = checkToken auth # Device authorization is not necessary because filter name ensure # permissions fo...
Add comment about filter permission
Add comment about filter permission
CoffeeScript
agpl-3.0
nono/cozy-data-system,clochix/cozy-data-system,cozy/cozy-data-system,frankrousseau/cozy-data-system
6915c2764bb38da5927e39f022978cd35a13592f
scripts/captain-quail.coffee
scripts/captain-quail.coffee
# Description: # The Adventures of Captain Quail, now in you chat! # # Dependencies: # "htmlparser": "1.7.6" # "soupselect": "0.2.0" # # Configuration: # None # # Commands: # hubot cq - The latest Adventures of Captain Quail # # Author: # phildini htmlparser = require "htmlparser" Select = require("soupsel...
Add a script for getting Captain Quail from Hubot.
Add a script for getting Captain Quail from Hubot.
CoffeeScript
mit
ImmaculateObsession/angel
af3ca5709409b9bf2d0b5db1ff6adaee7010e7b9
src/focusable.coffee
src/focusable.coffee
Mixin = require 'mixto' module.exports = class Focusable extends Mixin @included: -> @property 'focusContext' @behavior 'focused', -> @$focusContext .flatMapLatest((context) -> context?.$focusedObject) .map((focusedObject) => focusedObject is this) focus: -> throw new Error("Obje...
Mixin = require 'mixto' module.exports = class Focusable extends Mixin @included: -> @property 'focusContext' @behavior 'focused', -> @$focusContext .flatMapLatest((context) -> context?.$focusedObject) .map((focusedObject) => focusedObject is this) .distinctUntilChanged() foc...
Make focus state distinct until changed on Focusable objects
Make focus state distinct until changed on Focusable objects
CoffeeScript
mit
seedtigo/atom,mrodalgaard/atom,g2p/atom,NunoEdgarGub1/atom,tony612/atom,devmario/atom,russlescai/atom,prembasumatary/atom,matthewclendening/atom,Austen-G/BlockBuilder,Klozz/atom,dannyflax/atom,ppamorim/atom,ppamorim/atom,gabrielPeart/atom,tanin47/atom,splodingsocks/atom,charleswhchan/atom,bryonwinger/atom,alexandergman...
7fa67d4a21e876c0d00667eae90a5c727efe4622
src/app/installed-packages-config-panel.coffee
src/app/installed-packages-config-panel.coffee
ConfigPanel = require 'config-panel' PackageConfigView = require 'package-config-view' ### Internal ### module.exports = class InstalledPackagesConfigPanel extends ConfigPanel @content: -> @div class: 'installed-packages' initialize: -> for pack in atom.getLoadedPackages() @append(new PackageConfig...
_ = require 'underscore' ConfigPanel = require 'config-panel' PackageConfigView = require 'package-config-view' ### Internal ### module.exports = class InstalledPackagesConfigPanel extends ConfigPanel @content: -> @div class: 'installed-packages' initialize: -> for pack in _.sortBy(atom.getLoadedPackages...
Sort installed packages by name
Sort installed packages by name
CoffeeScript
mit
devoncarew/atom,mdumrauf/atom,stinsonga/atom,g2p/atom,ali/atom,bcoe/atom,constanzaurzua/atom,rookie125/atom,codex8/atom,MjAbuz/atom,devoncarew/atom,Jandersoft/atom,codex8/atom,KENJU/atom,SlimeQ/atom,batjko/atom,dsandstrom/atom,darwin/atom,n-riesco/atom,woss/atom,me-benni/atom,fedorov/atom,ykeisuke/atom,john-kelly/atom,...
3376ea84d40109c8b060ec3959fb5f202785feb6
test/spec/tt.ui.spec.coffee
test/spec/tt.ui.spec.coffee
describe "UI interactions", -> describe "Tags", -> say "I click on a tag", -> it "should show up in the tag list", -> it "should only show stories with that matching tag", -> also "I click on an active tag in a story", -> it "should do nothing", -> also "I click on an active...
Add rough outline for UI interaction test suite
AC: Add rough outline for UI interaction test suite
CoffeeScript
mit
fstehle/TrackerTracker,artsy/TrackerTracker,paperlesspost/TrackerTracker,SpotlightUK/TrackerTracker,SpotlightUK/TrackerTracker,SpotlightUK/TrackerTracker,paperlesspost/TrackerTracker,fstehle/TrackerTracker,paperlesspost/TrackerTracker,fstehle/TrackerTracker
b4220ee7fcf5b3d38bdac9052d892522627395c1
test/helpers.coffee
test/helpers.coffee
rewire = require 'rewire' helpers = rewire '../src/helpers' describe 'helpers', -> describe 'replaceConfigSlashes()', -> it 'should replace slashes with backslashes in config', -> helpers.__set__ 'isWindows', true unix = require './fixtures/unix_config' win = require './fixtures/win_config' ...
rewire = require 'rewire' helpers = rewire '../src/helpers' describe 'helpers', -> describe 'replaceConfigSlashes()', -> it 'should replace slashes with backslashes in config', -> helpers.__set__ 'isWindows', true unix = require './fixtures/unix_config' win = require './fixtures/win_config' ...
Add test for plugins.on|off overrides
Add test for plugins.on|off overrides
CoffeeScript
mit
hayesgm/brunch,rlugojr/brunch,Flaise/brunch,ondreian/brunch,kidaa/brunch,lalomartins/brunch,hellyeahllc/brunch,brunch/brunch,PeterDaveHello/brunch,justinwoo/brunch
d9fa677b1c1968caa3a67303b55945cdf39b211d
spec/projects-list-view-spec.coffee
spec/projects-list-view-spec.coffee
Helper = require './spec-helper' ProjectsListView = require '../lib/projects-list-view' Project = require '../lib/project' {$} = require 'atom-space-pen-views' describe "List View", -> [listView, workspaceElement, list, filterEditorView] = [] projects = -> array = [] for key, setting of Helper.projects ...
Add initial test for list view
Add initial test for list view
CoffeeScript
mit
danielbrodin/atom-project-manager,douggr/atom-project-manager,UltCombo/atom-project-manager
97ad1a98fc1b2c0b288e2e66768b3aaa4b717a46
src/event_emitter/lifecycle_events.coffee
src/event_emitter/lifecycle_events.coffee
Batman.LifecycleEvents = initialize: -> @::fireLifecycleEvent = fire lifecycleEvent: (eventName, normalizeFunction) -> beforeName = "before#{Batman.helpers.camelize(eventName)}" afterName = "after#{Batman.helpers.camelize(eventName)}" addCallback = (eventName) -> (callbackName, options) -> ...
Add a LifecycleEvents mixin for Rails style callback chains.
Add a LifecycleEvents mixin for Rails style callback chains.
CoffeeScript
mit
getshuvo/batman,getshuvo/batman
6666b5a2f0dc05caa6481c2049c69749bb67f8ad
desktop/assets/editorial_features.coffee
desktop/assets/editorial_features.coffee
require('backbone').$ = $ $ -> if location.pathname is '/2016-year-in-art' require('../apps/editorial_features/components/eoy/client.coffee').init else if location.pathname.includes('/venice-biennale') require('../apps/editorial_features/components/venice_2017/client.coffee').init()
require('backbone').$ = $ $ -> if location.pathname is '/2016-year-in-art' require('../apps/editorial_features/components/eoy/client.coffee').init else if location.pathname.indexOf('/venice-biennale') > -1 require('../apps/editorial_features/components/venice_2017/client.coffee').init()
Support more browsers with indexOf
Support more browsers with indexOf
CoffeeScript
mit
yuki24/force,mzikherman/force,artsy/force,artsy/force-public,xtina-starr/force,eessex/force,kanaabe/force,erikdstock/force,yuki24/force,damassi/force,artsy/force,izakp/force,anandaroop/force,oxaudo/force,kanaabe/force,izakp/force,artsy/force-public,damassi/force,oxaudo/force,anandaroop/force,yuki24/force,erikdstock/for...
cbe7e679ea083473766bc28b72db8f689c349040
test/registerTemplates-test.coffee
test/registerTemplates-test.coffee
chai = require 'chai' chai.should() cp = require 'child_process' pack = require '../package.json' csv_template_specified = 'node bin/autometa.js -r templates/test.csv' ejs_template_specified = 'node bin/autometa.js -r templates/test.ejs' csv_and_ejs_template_specified = 'node bin/autometa.js -r templates/test.csv te...
Add tests for the registerTemplates function
Add tests for the registerTemplates function
CoffeeScript
apache-2.0
knjcode/autometa,knjcode/autometa
249947fee26e3e4f39d7842ba24b0d8ea830d681
SingularityUI/app/models/Request.coffee
SingularityUI/app/models/Request.coffee
Model = require './model' class Request extends Model url: => "#{ env.SINGULARITY_BASE }/#{ constants.apiBase }/requests/request/#{ @get('id') }" deletePaused: => $.ajax url: "#{ env.SINGULARITY_BASE }/#{ constants.apiBase }/requests/request/#{ @get('requestId') }/paused" type...
Model = require './model' class Request extends Model url: => "#{ env.SINGULARITY_BASE }/#{ constants.apiBase }/requests/request/#{ @get('id') }" deletePaused: => $.ajax url: "#{ env.SINGULARITY_BASE }/#{ constants.apiBase }/requests/request/#{ @get('id') }/paused" type: 'DELE...
Make pause delete and unpause work
Make pause delete and unpause work
CoffeeScript
apache-2.0
andrhamm/Singularity,mjball/Singularity,evertrue/Singularity,grepsr/Singularity,HubSpot/Singularity,nvoron23/Singularity,evertrue/Singularity,hs-jenkins-bot/Singularity,stevenschlansker/Singularity,nvoron23/Singularity,acbellini/Singularity,andrhamm/Singularity,acbellini/Singularity,grepsr/Singularity,calebTomlinson/Si...
e9f93ccfb35deebb4ee30939daaac838ba34af8e
components/CanvasToBuffer.coffee
components/CanvasToBuffer.coffee
noflo = require 'noflo' # @runtime noflo-nodejs # @name CanvasToBuffer exports.getComponent = -> c = new noflo.Component c.description = 'Convert a canvas to a buffer' c.icon = 'picture-o' c.inPorts.add 'canvas', datatype: 'object' description: 'Canvas to be converted' c.outPorts.add 'buffer', ...
Create component to convert canvas to buffers async
Create component to convert canvas to buffers async
CoffeeScript
mit
noflo/noflo-image,noflo/noflo-image
e159b94f73702f4784a7e373e3a965cc3926d29e
spec/latexmk-spec.coffee
spec/latexmk-spec.coffee
latexmk = require "../lib/latexmk" describe "latexmk", -> describe "run", -> xit "...", -> return describe "constructArgs", -> xit "...", -> return describe "constructPath", -> beforeEach -> spyOn(atom.config, "get").andReturn("$PATH:/usr/texbin") it "reads `latex.texPath` as...
Introduce new specs for latexmk util
Introduce new specs for latexmk util
CoffeeScript
mit
WoodyWoodsta/atom-latex,thomasjo/atom-latex,thomasjo/atom-latex,thomasjo/atom-latex,WoodyWoodsta/atom-latex
42a6a7d0d33f87d889cebc8d89aa37393dce6054
spec/node/contexts.coffee
spec/node/contexts.coffee
assert = require 'assert' fs = require 'fs' describe 'contexts', -> describe 'setTimeout in fs callback', -> it 'does not crash', (done) -> fs.readFile __filename, -> setTimeout done, 0 describe 'throw error in node context', -> it 'get caught', (done) -> error = new Error('boo!') ...
Add two tests regarding crashes in context switching.
Add two tests regarding crashes in context switching.
CoffeeScript
mit
ervinb/electron,christian-bromann/electron,GoooIce/electron,jsutcodes/electron,RIAEvangelist/electron,pandoraui/electron,stevekinney/electron,bobwol/electron,Ivshti/electron,brenca/electron,bpasero/electron,darwin/electron,lzpfmh/electron,soulteary/electron,carsonmcdonald/electron,MaxGraey/electron,minggo/electron,vipu...
3e2a51fbbccdab1eaa9ef1ba22c791cadbeaaf66
node.js/server.coffee
node.js/server.coffee
#!/usr/bin/env coffee http = require 'http' server = http.createServer (req, resp) -> req.setEncoding('utf-8') console.log "#{req.method} #{req.url} HTTP/#{req.httpVersion}" for k, v of req.headers console.log "#{k.replace(/^\w|-\w/g, (s) -> s.toUpperCase())}: #{v}" console.log '' req.on('data', con...
Add a node.js coffeescript version
Add a node.js coffeescript version
CoffeeScript
mit
ansman/servers,ansman/servers,ansman/servers,ansman/servers,ansman/servers
d8042b25e4b35232feed9bd0314db74166bff845
spec/javascripts/unit/admin/filters/unlocalize_currency_spec.js.coffee
spec/javascripts/unit/admin/filters/unlocalize_currency_spec.js.coffee
describe 'convert string to number with configurated currency', -> filter = null beforeEach -> module 'ofn.admin' inject ($filter) -> filter = $filter('unlocalizeCurrency') describe "with point as decimal separator for I18n service", -> beforeEach -> spyOn(I18n, "toCurrency").and.retur...
Add test for unlocalize currency filter
Add test for unlocalize currency filter - Test that comma is well handle in both cases where comma is the default decimal separator or not.
CoffeeScript
agpl-3.0
openfoodfoundation/openfoodnetwork,Matt-Yorkley/openfoodnetwork,openfoodfoundation/openfoodnetwork,lin-d-hop/openfoodnetwork,openfoodfoundation/openfoodnetwork,mkllnk/openfoodnetwork,Matt-Yorkley/openfoodnetwork,Matt-Yorkley/openfoodnetwork,lin-d-hop/openfoodnetwork,mkllnk/openfoodnetwork,lin-d-hop/openfoodnetwork,mkll...
20d78d19c1e757f3578903fa25d2fc38f4203f02
docs/app/src/api/comment_section/comment_section.ng.coffee
docs/app/src/api/comment_section/comment_section.ng.coffee
commentSection = angular.module("EventricDocs.Directive.CommentSection", []) .directive "commentSection", ($window, $location) -> restrict: "E" scope: disqus_shortname: "@disqusShortname" disqus_identifier: "@disqusIdentifier" disqus_title: "@disqusTitle" disqus_url: "@disqusUrl" template: "<div...
Add Comment-Section Module (Use Disqus)
Add Comment-Section Module (Use Disqus)
CoffeeScript
mit
efacilitation/eventric
f47290f5c1253a779584d74cc50423e9bc51f79b
app/assets/javascripts/home.js.coffee
app/assets/javascripts/home.js.coffee
jQuery ($) -> $(document).ready -> unless $('dl.tabs dd').hasClass('active') setActive() $('dl.tabs dd').on('click', setActive) setActive = (item) -> console.log(item) $('dl.tabs dd').removeClass('active') $('div.tabs-content div').removeClass('active') if ! item $('dl.tabs dd').first().addC...
Use JS to set active class on product nav
Use JS to set active class on product nav
CoffeeScript
mit
i5okie/redress_old,i5okie/redress_old
3e5a7b4aff57d405413f4c3bc7a236d0cff08007
test/src/unit/mutation_observer_test.coffee
test/src/unit/mutation_observer_test.coffee
{assert, defer, test, testGroup} = Trix.TestHelpers observer = null element = null summaries = [] install = (html) -> element = document.createElement("div") element.innerHTML = html if html observer = new Trix.MutationObserver element observer.delegate = elementDidMutate: (summary) -> summaries.pus...
Add unit tests for Trix.MutationObserver
Add unit tests for Trix.MutationObserver
CoffeeScript
mit
ChenMichael/trix,GabiGrin/trix,basecamp/trix,GabiGrin/trix,ChenMichael/trix,urossmolnik/trix,urossmolnik/trix,urossmolnik/trix,basecamp/trix,GabiGrin/trix,ChenMichael/trix,basecamp/trix,basecamp/trix
33a5e57a9330bc8b02bceb25a8fcd9d92a6c4c7b
coffee/cilantro/models/concept.coffee
coffee/cilantro/models/concept.coffee
define ['../core', './field'], (c, field) -> class ConceptModel extends c.Backbone.Model parse: (resp) -> @fields = [] # Parse and attach field model instances to concept for attrs in resp.fields @fields.push(new field.FieldModel attrs, parse: true) ...
define ['../core', './field'], (c, field) -> class ConceptModel extends c.Backbone.Model parse: (resp) -> @fields = [] # Parse and attach field model instances to concept for attrs in resp.fields @fields.push(new field.FieldModel attrs, parse: true) ...
Add local sub-collections to ConceptCollection
Add local sub-collections to ConceptCollection This differentiates between _queryable_ vs. _viewable_ concepts for the query and results views, respectively.
CoffeeScript
bsd-2-clause
chop-dbhi/cilantro,chop-dbhi/cilantro,chop-dbhi/cilantro
083a57f5f924947cdb8b1e672caaf8caa5051405
app/assets/javascripts/collection.js.coffee
app/assets/javascripts/collection.js.coffee
$ -> updateDisplay = -> if localStorage.lastSyncTime? $('.sync-stats').html "You last synced on #{localStorage.lastSyncTime}" $('.collection-num').html localStorage.num $('.collection-total').html localStorage.total if JSON.parse(localStorage.releases).length > 0 $('.search').html localSto...
$ -> updateDisplay = -> if localStorage.lastSyncTime? $('.sync-stats').html "You last synced on #{localStorage.lastSyncTime}" $('.collection-num').html localStorage.num $('.collection-total').html localStorage.total $('.search').html '' releases = JSON.parse(localStorage.releases) if rel...
Make the display of the results a bit nicer
Make the display of the results a bit nicer
CoffeeScript
mit
carols10cents/buy-or-not,carols10cents/buy-or-not,carols10cents/buy-or-not
cf7b22e8e2bebabec6609252b2a549ac7b57644a
scripts/arnie-quotes.coffee
scripts/arnie-quotes.coffee
# Description: # Listens for words and sometimes replies with an Arnie quote # # Dependencies: # None # # Commands: # None # # Author: # Casey Lawrence <cjlaw@users.noreply.github.com> # odds = [1...100] arnie_quotes = [ 'GET TO THE CHOPPA! :arnold:', 'Your clothes, give them to me, now! :arnold:', ...
Add custom script for Arnie quotes
Add custom script for Arnie quotes
CoffeeScript
mit
traviskroberts/superbestbot
77687429c42e3a7e9bb2fcb9a04c9cbf8c7d91bc
lib/SocketIOLimiter.coffee
lib/SocketIOLimiter.coffee
SocketIOThrottle = require './SocketIOThrottle' class Limiter constructor: (@socket) -> throttle: (@callback=->) => @throttled throttled: => originalArguments = arguments new SocketIOThrottle().throttle @socket, => @callback.apply this, originalArguments module.exports = Limiter
SocketIOThrottle = require './SocketIOThrottle' class Limiter constructor: (@socket) -> throttle: (callback=->) => -> originalArguments = arguments new SocketIOThrottle().throttle @socket, => callback.apply this, originalArguments module.exports = Limiter
Remove throttle breaking object orientedness
Remove throttle breaking object orientedness
CoffeeScript
mit
masato/meshblu,masato/meshblu-dev,jaambee/meshblu,osokay/IotServerCore,octoblu/meshblu,Qbitus/meshblu,dommert/meshblu,osokay/IotServerCore,atyenoria/meshblu,masato/meshblu,dommert/meshblu,dommert/meshblu,osokay/IotServerCore,ChemTics/meshblu,atyenoria/meshblu,ChemTics/meshblu,octoblu/meshblu,Qbitus/meshblu,ChemTics/mes...
023c5847067d66fa65bccf8229991a2708110e85
app/assets/javascripts/s3_relay.coffee
app/assets/javascripts/s3_relay.coffee
uploadFile = (fileField) -> form = fileField.parent() fileInput = document.getElementById("file") file = fileInput.files[0] $.ajax type: "GET" url: "/signatures/new" success: (response) -> formData = new FormData() xhr = new XMLHttpRequest() endpoint = response.endpoint for...
Add CoffeeScript for uploads and progress display.
Add CoffeeScript for uploads and progress display.
CoffeeScript
mit
kjohnston/s3_relay,kjohnston/s3_relay,kjohnston/s3_relay
a2fe251b28a26ca89dab21ce8ba3e3b58d6f9bbf
app/assets/javascripts/hyper_admin/angularjs/states.js.coffee
app/assets/javascripts/hyper_admin/angularjs/states.js.coffee
angular.module("hyperadmin") .config ($locationProvider, $stateProvider, $urlRouterProvider) -> $locationProvider.html5Mode true $stateProvider .state "list_articles", url: "/admin/articles" templateUrl: "/admin/articles.html" .state "new_article", url: "/admin/articles/ne...
Write dummy states for articles and people
Write dummy states for articles and people
CoffeeScript
mit
hyperoslo/hyper_admin,hyperoslo/hyper_admin,hyperoslo/hyper_admin
104e33a19809023c603869d66448812e9e604681
Gruntfile.coffee
Gruntfile.coffee
module.exports = (grunt) -> grunt.initConfig pkg: grunt.file.readJSON('package.json') coffee: glob_to_multiple: expand: true cwd: '.' src: ['index.coffee'] dest: 'tasks' ext: '.js' coffeelint: options: no_empty_param_list: level: 'err...
module.exports = (grunt) -> grunt.initConfig pkg: grunt.file.readJSON('package.json') coffee: glob_to_multiple: expand: true cwd: '.' src: ['index.coffee'] dest: 'tasks' ext: '.js' coffeelint: options: no_empty_param_list: level: 'err...
Use path.join for test command
Use path.join for test command
CoffeeScript
mit
coderhaoxin/grunt-electron-installer,electronjs/windows-installer,domderen/atom-shell-installer,domderen/atom-shell-installer,mongodb-js/electron-installer-squirrel-windows
23e64fc2a3a95ae59a3ed94fb6f90678edeadbf8
src/scripts/lolz.coffee
src/scripts/lolz.coffee
# lulz - BRING THE LOLZ from bukk.it Select = require("soupselect").select HtmlParser = require "htmlparser" util = require 'util' module.exports = (robot) -> robot.respond /l[ou]lz/i, (msg) -> msg.http("http://bukk.it") .get() (err, res, body) -> handler = new HtmlParser.DefaultHandler() ...
Bring the lulz from bukk.it
Bring the lulz from bukk.it
CoffeeScript
mit
ambikads/hubot-scripts,phillipalexander/hubot-scripts,jankowiakmaria/hubot-scripts,markstory/hubot-scripts,jan0sch/hubot-scripts,dbkaplun/hubot-scripts,wsoula/hubot-scripts,dhfromkorea/hubot-scripts,josephcarmello/hubot-scripts,davidsulpy/hubot-scripts,chauffer/hubot-scripts,DataDog/hubot-scripts,zecahnin/hubot-scripts...
326fc58903af2c4861280bf5f2e58dff205113a3
views/outer/about/_team.coffee
views/outer/about/_team.coffee
root = exports ? this root.team = paul: name: "Paul Bigger" role: "Founder" github: "pbiggar" email: "paul@circleci.com" bio: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam at eros non dui sollicitudin mattis. Pellentesque habitant morbi tristique senectus et netus et malesuada f...
Use object for tempting within haml-coffee
Use object for tempting within haml-coffee
CoffeeScript
epl-1.0
prathamesh-sonpatki/frontend,RayRutjes/frontend,circleci/frontend,circleci/frontend,prathamesh-sonpatki/frontend,RayRutjes/frontend,circleci/frontend
85b8f28db2a2ac7f6269e8765f7b26046fea732c
middleware/subdomain.coffee
middleware/subdomain.coffee
nconf = require("nconf") host = nconf.get("host") hostEsc = host.replace(/[-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&") plunkRe = new RegExp("^([0-9a-zA-Z]+)\.plunk\.#{hostEsc}$") previewRe = new RegExp("^([0-9a-zA-Z]+)\.#{hostEsc}$") recapitalize = (id) -> id.replace /([a-z]/, "" module.exports.middleware = (config...
Update traceur and other stuff
Update traceur and other stuff
CoffeeScript
mit
j717273419/plunker_run,filearts/plunker_run,filearts/plunker_run,pkdevbox/plunker_run,pkdevbox/plunker_run,j717273419/plunker_run
c63fb722e46a7fdb67b2647a3ca823c3347e4c09
app/assets/javascripts/main_form.js.coffee
app/assets/javascripts/main_form.js.coffee
if window.location.pathname.match(/\/apply$/) $ -> changeSection = (e, noscroll)-> hash = window.location.hash sectionId = hash.substring 1 $('.section').each ()-> section = $ @ if section.attr('id') is sectionId section.toggleClass 'hide', false else ...
if window.location.pathname.match(/\/apply$/) $ -> changeSection = -> hash = window.location.hash sectionId = hash.substring 1 $('.section').each ()-> section = $ @ if section.attr('id') is sectionId section.toggleClass 'hide', false else section.togg...
Refactor changeSection to avoid extra arguments
Refactor changeSection to avoid extra arguments Scrolling to the top of a page is just another thing executed on hashchange now. I found the call "changeSection null, !!e" and the "noscroll" argument to be a bit confusing, and out of the proper scope. This refactor avoids them.
CoffeeScript
mit
uncompiled/districthousing,meiao/districthousing,meiao/districthousing,codefordc/districthousing,lankyfrenchman/dchousing-apps,jrunningen/districthousing,meiao/districthousing,dmjurg/districthousing,dmjurg/districthousing,MetricMike/districthousing,MetricMike/districthousing,uncompiled/districthousing,adelevie/district...
05065e18150c6187911b3e62f13ebcdfb13c9c1b
scripts/newuserparty.coffee
scripts/newuserparty.coffee
# Description: # Create a party when a new user appear # # Dependencies: # None # # Configuration: # None # # Commands: # new user - Create a party when a new user appear # # Author: # PiXeL16 emojis = [ ":tada::tada::smile::tada::tada:", ":confetti_ball::tada::smile::tada::confetti_ball:", ":tada::tada:...
Add new user celebration script
Add new user celebration script
CoffeeScript
apache-2.0
PiXeL16/NeoBot,esttorhe/NeoBot
3426984b0072c1cd376d3b94ab895f62aa08951d
frontend/view_index.coffee
frontend/view_index.coffee
casper = require('casper').create() d = -> console.log arguments... casper.start 'http://func', -> this.test.assertHttpStatus 200 casper.run()
Index viewing test via casper.js
Index viewing test via casper.js
CoffeeScript
bsd-2-clause
p/wolis-phpbb,p/wolis-phpbb
16ccfe7d9a13ea3e8c20826b896a51776b81f09f
spec/grammar-spec.coffee
spec/grammar-spec.coffee
describe "perl grammar", -> grammar = null beforeEach -> waitsForPromise -> atom.packages.activatePackage("language-perl") runs -> grammar = atom.grammars.grammarForScopeName("source.perl") it "parses the grammar", -> expect(grammar).toBeDefined() expect(grammar.scopeName).toBe "sou...
Add initial spec to very grammar parses
Add initial spec to very grammar parses
CoffeeScript
mit
kainwinterheart/language-perl,kainwinterheart/language-perl
34f30db7b626c4664f26c5546af706ccd149751d
app/assets/javascripts/merge_requests.js.coffee
app/assets/javascripts/merge_requests.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/ window.merge_requests = -> # Click to add a comment $("td > div.add-comment").on 'click', (event) -> ...
# 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/ window.merge_requests = -> # Click to add a comment $("td > div.add-comment").on 'click', (event) -> ...
Create comment box on the right location if there are already comments for this line.
Create comment box on the right location if there are already comments for this line.
CoffeeScript
mit
hugopl/reviewit,rimenes/reviewit,hugopl/reviewit,hugopl/reviewit,edmilsonefs/reviewit,rimenes/reviewit,edmilsonefs/reviewit,edmilsonefs/reviewit,rimenes/reviewit
b9658e23f473ade07d4b90b41a9c56e7fcc74481
build/tasks/mkdeb-task.coffee
build/tasks/mkdeb-task.coffee
fs = require 'fs' path = require 'path' _ = require 'underscore-plus' module.exports = (grunt) -> {spawn} = require('./task-helpers')(grunt) fillTemplate = (filePath, data) -> template = _.template(String(fs.readFileSync("#{filePath}.in"))) filled = template(data) outputPath = path.join(grunt.config....
fs = require 'fs' path = require 'path' _ = require 'underscore-plus' module.exports = (grunt) -> {spawn} = require('./task-helpers')(grunt) fillTemplate = (filePath, data) -> template = _.template(String(fs.readFileSync("#{filePath}.in"))) filled = template(data) outputPath = path.join(grunt.config....
Write file using grunt API
Write file using grunt API
CoffeeScript
mit
isghe/atom,chengky/atom,vjeux/atom,panuchart/atom,transcranial/atom,florianb/atom,sxgao3001/atom,jlord/atom,AlbertoBarrago/atom,amine7536/atom,ppamorim/atom,davideg/atom,champagnez/atom,decaffeinate-examples/atom,helber/atom,0x73/atom,qskycolor/atom,PKRoma/atom,panuchart/atom,rookie125/atom,Ju2ender/atom,FoldingText/at...
f750b7363d55b2aa1ac67358b86ad78ba3db619b
lib/execution-manager.coffee
lib/execution-manager.coffee
{Emitter} = require('atom') # ------------------------------------------------------------------------------ class ExecutionManager ## Construction -------------------------------------------------------------- constructor: -> @emitter = new Emitter ## Event subscription ---------------------------------...
Add the execution manager singleton class
Add the execution manager singleton class
CoffeeScript
mit
lakrme/atom-levels
1585e5462f5642ca32fe8c56f623e5d3b9eb125f
app/coffeescripts/TreeChildItemDemandLinkView.coffee
app/coffeescripts/TreeChildItemDemandLinkView.coffee
# The view class for each link child item in the tree view. Each child item # is <li> tag with an anchor surrounding the name. class window.sirius.TreeChildItemDemandLinkView extends window.sirius.TreeChildItemLinkView $a = window.sirius showContext: (e) => if !@added_menu_item @targets[0].get('contextMen...
# The view class for each link child item in the tree view. Each child item # is <li> tag with an anchor surrounding the name. class window.sirius.TreeChildItemDemandLinkView extends window.sirius.TreeChildItemLinkView $a = window.sirius showContext: (e) => if !@added_menu_item @targets[0].get('contextMen...
Stop passing link separately to DemandVisualizer constructor
Stop passing link separately to DemandVisualizer constructor
CoffeeScript
bsd-2-clause
akurzhan/scenario-editor,calpath/scenario-editor,calpath/scenario-editor,akurzhan/scenario-editor,calpath/scenario-editor,akurzhan/scenario-editor
c75282e796a4d21e9ab2458cb1dc7494cfe64265
src/index.coffee
src/index.coffee
'use strict' initSkeleton = require 'init-skeleton' sysPath = require 'path' watch = require './watch' logger = require 'loggy' create = (skeleton, path = '.') -> unless skeleton logger.error ''' You must specify skeleton (boilerplate) from which brunch will initialize new app: brunch new --skeleton <path-...
'use strict' initSkeleton = require 'init-skeleton' sysPath = require 'path' watch = require './watch' logger = require 'loggy' create = (skeleton, path = '.') -> unless skeleton logger.error ''' You must specify skeleton (boilerplate) from which brunch will initialize new app. You can specify directory on...
Add ember and angular skeletons to suggestions.
Add ember and angular skeletons to suggestions.
CoffeeScript
mit
kidaa/brunch,rlugojr/brunch,hayesgm/brunch,hellyeahllc/brunch,justinwoo/brunch,lalomartins/brunch,Flaise/brunch,ondreian/brunch,brunch/brunch,PeterDaveHello/brunch
a1e1bee3344bd1ef809cc22842c99a9929b6ba85
src/app/atom-theme.coffee
src/app/atom-theme.coffee
fs = require 'fs-utils' Theme = require 'theme' CSON = require 'cson' module.exports = class AtomTheme extends Theme loadStylesheet: (stylesheetPath)-> @stylesheets[stylesheetPath] = window.loadStylesheet(stylesheetPath) load: -> if fs.extension(@path) in ['.css', '.less'] @loadStylesheet(@path) ...
fs = require 'fs-utils' Theme = require 'theme' CSON = require 'cson' module.exports = class AtomTheme extends Theme loadStylesheet: (stylesheetPath)-> @stylesheets[stylesheetPath] = window.loadStylesheet(stylesheetPath) load: -> if fs.extension(@path) in ['.css', '.less'] @loadStylesheet(@path) ...
Allow theme's package.cson to leave off stylesheet extension
Allow theme's package.cson to leave off stylesheet extension
CoffeeScript
mit
crazyquark/atom,ezeoleaf/atom,Hasimir/atom,me6iaton/atom,codex8/atom,kaicataldo/atom,erikhakansson/atom,isghe/atom,Andrey-Pavlov/atom,panuchart/atom,abcP9110/atom,ardeshirj/atom,gabrielPeart/atom,Huaraz2/atom,folpindo/atom,bcoe/atom,fredericksilva/atom,mnquintana/atom,hharchani/atom,hellendag/atom,Ju2ender/atom,0x73/at...
ffd128a65827ac52a82c4235353e26e4a9066c01
apps/atom/atom.symlink/config.cson
apps/atom/atom.symlink/config.cson
'exception-reporting': 'userId': '3ba70428-f782-5321-e73a-7b678f36511c' 'release-notes': 'viewedVersion': '0.94.0' 'welcome': 'showOnStartup': false 'metrics': 'userId': '9e20623847c7c22109bc7b34e71c459485f8781a' 'editor': 'showInvisibles': true 'fontFamily': 'Monaco' 'showIndentGuide': true 'softTabs':...
'exception-reporting': 'userId': '3ba70428-f782-5321-e73a-7b678f36511c' 'release-notes': 'viewedVersion': '0.94.0' 'welcome': 'showOnStartup': false 'metrics': 'userId': '9e20623847c7c22109bc7b34e71c459485f8781a' 'editor': 'showInvisibles': true 'fontFamily': 'Consolas' 'showIndentGuide': true 'softTabs...
Use Consolas font in Atom
Use Consolas font in Atom
CoffeeScript
mit
MoOx/setup,MoOx/setup,iDams/setup,Macxim/dotfiles,iDams/setup,MoOx/setup
b85c952b080fa91a70e7e06607c41037f4e320fe
spec/custom-element-spec.coffee
spec/custom-element-spec.coffee
describe 'Custom Element Base', -> registerCustomElement = require('../base.min.js') {getCustomElement} = require('./helper') it 'fires the events in order', -> lastRan = null element = new (registerCustomElement(getCustomElement({ name: 'x-custom-element' created: -> lastRan = 'created' ...
Add first spec about event order
:new: Add first spec about event order
CoffeeScript
mit
steelbrain/custom-element-base,steelbrain/custom-element-base
8c6e1e098b8dfed080ba57b1b97f4c9da276f66a
src/scripts/github-issue-link.coffee
src/scripts/github-issue-link.coffee
# Github issue link looks for #nnn and links to that issue for your default repo. Eg. "Hey guys check out #273" # Requires vars HUBOT_GITHUB_REPO, and HUBOT_GITHUB_TOKEN to be set. # # Listens for #nnn and links to the issue for your default repo on github module.exports = (robot) -> robot.hear /.*(#(\d+)).*/, (msg)...
Add Github Issue Link Generator
Add Github Issue Link Generator Signed-off-by: Jordan Clist <51457cc104698da1e72d7c83202e49cfa8c509af@gmail.com>
CoffeeScript
mit
ericjsilva/hubot-scripts,1000hz/hubot-scripts,amhorton/hubot-scripts,wsoula/hubot-scripts,chauffer/hubot-scripts,yigitbey/hubot-scripts,1stdibs/hubot-scripts,davidsulpy/hubot-scripts,dyg2104/hubot-scripts,sklise/hubot-scripts,opentable/hubot-scripts,DataDog/hubot-scripts,jankowiakmaria/hubot-scripts,jhubert/hubot-scrip...
42391458b90bad8db21aef02e6299c8a0b4b7eac
lib/appBaseComponents/views/grid/CustomServersideFilter.coffee
lib/appBaseComponents/views/grid/CustomServersideFilter.coffee
Backbone = require 'backbone' Backgrid = require 'backgrid' Filter = require 'backgrid-filter' CustomServerSideFilter = Backgrid.Extension.ServerSideFilter.extend showClearButtonMaybe: () -> $clearButton = @clearButton() hasFilter = @collection.hasQueryFilter @name searchTerms = this.searchBox()....
Implement custom serverside filter according to the API filters structure
Implement custom serverside filter according to the API filters structure
CoffeeScript
mit
mosaiqo/frontendAppLib
d45c6f9926d6c59685b233f6d8eeb54dc1e5e399
src/atom/vim-mode/operators.coffee
src/atom/vim-mode/operators.coffee
_ = require 'underscore' class NumericPrefix count: null complete: null operatorToRepeat: null constructor: (@count) -> @complete = false isComplete: -> @complete compose: (@operatorToRepeat) -> @complete = true if @operatorToRepeat.setCount? @operatorToRepeat.setCount @count @co...
_ = require 'underscore' class NumericPrefix count: null complete: null operatorToRepeat: null constructor: (@count) -> @complete = false isComplete: -> @complete compose: (@operatorToRepeat) -> @complete = true if @operatorToRepeat.setCount? @operatorToRepeat.setCount @count @co...
Delete is on selection now, not editor
Delete is on selection now, not editor
CoffeeScript
mit
Hasimir/atom,davideg/atom,n-riesco/atom,Ju2ender/atom,DiogoXRP/atom,jacekkopecky/atom,Neron-X5/atom,yomybaby/atom,hharchani/atom,panuchart/atom,me6iaton/atom,bencolon/atom,kittens/atom,brumm/atom,stuartquin/atom,mertkahyaoglu/atom,kjav/atom,h0dgep0dge/atom,0x73/atom,darwin/atom,devoncarew/atom,kaicataldo/atom,Abdillah/...
b07adeb8b6a68f01b1dc20b19068c3d5e784df8a
app/assets/javascripts/coffee/chrome.js.coffee
app/assets/javascripts/coffee/chrome.js.coffee
### Chrome version 32 changed how scroll bars work. This is causing problems with some select fields with many options. There's no way to click on the scroll bar. Suggest an alternative of using keys or the scroll wheel until it is fixed. ### # $ -> is_chrome = /chrome/.test navigator.userAgent.toLowerCase() ...
Add message for chrome users about scrolling select boxes
Add message for chrome users about scrolling select boxes
CoffeeScript
mit
vegantech/sims,vegantech/sims,vegantech/sims,vegantech/sims
e3bbea339702fc8b7f90c116637b7b76dcafea8b
spec/app/theme-spec.coffee
spec/app/theme-spec.coffee
$ = require 'jquery' fs = require 'fs' Theme = require 'theme' describe "@load(name)", -> themes = null beforeEach -> $("#jasmine-content").append $("<div class='editor'></div>") afterEach -> theme.deactivate() for theme in themes describe "TextMateTheme", -> it "applies the theme's stylesheet t...
$ = require 'jquery' fs = require 'fs' Theme = require 'theme' describe "@load(name)", -> theme = null beforeEach -> $("#jasmine-content").append $("<div class='editor'></div>") afterEach -> theme.deactivate() describe "TextMateTheme", -> it "applies the theme's stylesheet to the current window"...
Fix spec now that `Theme.load` returns a theme instead of an array
Fix spec now that `Theme.load` returns a theme instead of an array
CoffeeScript
mit
RobinTec/atom,Jandersolutions/atom,GHackAnonymous/atom,stuartquin/atom,fscherwi/atom,jtrose2/atom,tjkr/atom,vcarrera/atom,g2p/atom,Austen-G/BlockBuilder,andrewleverette/atom,charleswhchan/atom,boomwaiza/atom,devmario/atom,GHackAnonymous/atom,rjattrill/atom,Andrey-Pavlov/atom,john-kelly/atom,gzzhanghao/atom,ilovezy/atom...
1a02c146af7200e26aa8372c8308d16e1b772033
packages/rocketchat-ui-login/login/header.coffee
packages/rocketchat-ui-login/login/header.coffee
Template.loginHeader.helpers logoUrl: -> asset = RocketChat.settings.get('Assets_logo') if asset? return asset.url or asset.defaultUrl
Template.loginHeader.helpers logoUrl: -> asset = RocketChat.settings.get('Assets_logo') prefix = __meteor_runtime_config__.ROOT_URL_PATH_PREFIX || '' if asset? return prefix + (asset.url or asset.defaultUrl)
Fix login logo in subdir
Fix login logo in subdir
CoffeeScript
mit
trt15-ssci-organization/Rocket.Chat,xasx/Rocket.Chat,4thParty/Rocket.Chat,Movile/Rocket.Chat,Sing-Li/Rocket.Chat,ealbers/Rocket.Chat,Gudii/Rocket.Chat,pitamar/Rocket.Chat,alexbrazier/Rocket.Chat,karlprieb/Rocket.Chat,snaiperskaya96/Rocket.Chat,Gyubin/Rocket.Chat,k0nsl/Rocket.Chat,cnash/Rocket.Chat,AlecTroemel/Rocket.Ch...
4597dd5594b24c6d5a19e540eac29c396447a1f9
src/window-bootstrap.coffee
src/window-bootstrap.coffee
# Like sands through the hourglass, so are the days of our lives. require './window' Atom = require './atom' window.atom = Atom.loadOrCreate('editor') atom.initialize() atom.startEditorWindow() # Workaround for focus getting cleared upon window creation windowFocused = -> window.removeEventListener('focus', windowF...
# Ensure ATOM_HOME is always set before anything else is required unless process.env.ATOM_HOME if process.platform is 'win32' home = process.env.USERPROFILE else home = process.env.HOME atomHome = path.join(home, '.atom') try atomHome = require('fs').realpathSync(atomHome) process.env.ATOM_HOME = ...
Add render process check for ATOM_HOME
Add render process check for ATOM_HOME Setting it in the browser process does not seem to make it into the render processes on Linux. Closes #5412
CoffeeScript
mit
liuxiong332/atom,pombredanne/atom,rlugojr/atom,transcranial/atom,davideg/atom,bencolon/atom,SlimeQ/atom,Locke23rus/atom,alfredxing/atom,mnquintana/atom,FIT-CSE2410-A-Bombs/atom,fang-yufeng/atom,toqz/atom,kjav/atom,mertkahyaoglu/atom,ardeshirj/atom,lisonma/atom,pombredanne/atom,Ingramz/atom,Huaraz2/atom,kittens/atom,hel...
c38a79fb9cf64cdf9707f1d6e7f59a6e3e0ca214
app/assets/javascripts/controllers/users/index.coffee
app/assets/javascripts/controllers/users/index.coffee
Dashboard.UsersTabController = Ember.ArrayController.extend Dashboard.SearchableBaseController, baseRouteName: 'users' defaultSearchFields: query: null Dashboard.UsersSearchController = Dashboard.UsersTabController.extend Dashboard.SearchableController, baseRouteName: 'users'
Create user controller using searchable mixins
Create user controller using searchable mixins
CoffeeScript
mit
FromUte/dune-dashboard,FromUte/dune-dashboard,FromUte/dune-dashboard
0e201d539a9e8f88cdb43da39f5be28586202df7
build/tasks/output-build-filetypes.coffee
build/tasks/output-build-filetypes.coffee
path = require 'path' module.exports = (grunt) -> grunt.registerTask 'output-build-filetypes', 'Log counts for each filetype in the built application', -> shellAppDir = grunt.config.get('atom.shellAppDir') types = {} grunt.file.recurse shellAppDir, (absolutePath, rootPath, relativePath, fileName) -> ...
path = require 'path' module.exports = (grunt) -> grunt.registerTask 'output-build-filetypes', 'Log counts for each filetype in the built application', -> shellAppDir = grunt.config.get('atom.shellAppDir') types = {} grunt.file.recurse shellAppDir, (absolutePath, rootPath, relativePath, fileName) -> ...
Sort by name when type count is the same
Sort by name when type count is the same
CoffeeScript
mit
nrodriguez13/atom,jacekkopecky/atom,chengky/atom,lisonma/atom,bcoe/atom,bsmr-x-script/atom,Austen-G/BlockBuilder,fedorov/atom,mdumrauf/atom,DiogoXRP/atom,rxkit/atom,jlord/atom,isghe/atom,dijs/atom,ilovezy/atom,scippio/atom,BogusCurry/atom,AlexxNica/atom,Rodjana/atom,gisenberg/atom,abcP9110/atom,Austen-G/BlockBuilder,Ga...
2d575808817782a71a75f71949a12e894e5b5dc8
build/tasks/output-build-filetypes.coffee
build/tasks/output-build-filetypes.coffee
asar = require 'asar' path = require 'path' module.exports = (grunt) -> grunt.registerTask 'output-build-filetypes', 'Log counts for each filetype in the built application', -> shellAppDir = grunt.config.get('atom.shellAppDir') types = {} registerFile = (filePath) -> extension = path.extname(fileP...
asar = require 'asar' path = require 'path' module.exports = (grunt) -> grunt.registerTask 'output-build-filetypes', 'Log counts for each filetype in the built application', -> shellAppDir = grunt.config.get('atom.shellAppDir') types = {} registerFile = (filePath) -> extension = path.extname(fileP...
Add --extension option to log out all found paths
Add --extension option to log out all found paths
CoffeeScript
mit
boomwaiza/atom,RuiDGoncalves/atom,einarmagnus/atom,AlbertoBarrago/atom,yamhon/atom,svanharmelen/atom,SlimeQ/atom,g2p/atom,jjz/atom,bencolon/atom,dkfiresky/atom,liuderchi/atom,darwin/atom,pombredanne/atom,Rychard/atom,devmario/atom,deoxilix/atom,alexandergmann/atom,Huaraz2/atom,john-kelly/atom,bencolon/atom,ykeisuke/ato...
a4cfca0117e0774bff97ebe7ddf4a4afdd7cb0ca
lib/shared/payments.coffee
lib/shared/payments.coffee
@getPayableAmount = (expense = {}, income = {}) -> if expense.amountRemaining and income.amountRemaining # Logic is simple here: we want the smallest number. This should work # even if they are the same. e.g. if 500 in income and 1000 in expense, # it will choose 500. The other way around and it will stil...
Add function to figure out amount.
Add function to figure out amount. [#51755647]
CoffeeScript
agpl-3.0
hamidsardar/spendflow,spendflow/spendflow,hamidsardar/spendflow
b030337de442eba7872fa820a99da47a7a997118
test/javascripts/unit/public_api_test.js.coffee
test/javascripts/unit/public_api_test.js.coffee
module "public API" test "strftime", -> datetime = "2013-11-12T12:13:00Z" time = new Date Date.parse datetime format = "%B %e, %Y %l:%M%P" results = LocalTime.strftime time, format ok results datetimeParsed = moment datetime localParsed = moment results, "MMMM D, YYYY h:mma" ok datetimeParsed.isVali...
Test public API. h/t @mikestone
Test public API. h/t @mikestone
CoffeeScript
mit
basecamp/local_time,basecamp/local_time,lazyatom/local_time,c080609a/local_time,c080609a/local_time,lazyatom/local_time
2eb2aa5bef665d0800dff5ddbfe7e42d742f57ed
src/keymap-extensions.coffee
src/keymap-extensions.coffee
fs = require 'fs-plus' path = require 'path' Keymap = require 'atom-keymap' season = require 'season' Keymap::loadBundledKeymaps = -> @loadKeyBindings(path.join(@resourcePath, 'keymaps')) @emit('bundled-keymaps-loaded') Keymap::getUserKeymapPath = -> if userKeymapPath = season.resolve(path.join(@configDirPath, ...
fs = require 'fs-plus' path = require 'path' Keymap = require 'atom-keymap' CSON = require 'season' Keymap::loadBundledKeymaps = -> @loadKeyBindings(path.join(@resourcePath, 'keymaps')) @emit('bundled-keymaps-loaded') Keymap::getUserKeymapPath = -> if userKeymapPath = CSON.resolve(path.join(@configDirPath, 'key...
Rename season variable to CSON for consistency
Rename season variable to CSON for consistency
CoffeeScript
mit
lovesnow/atom,helber/atom,Austen-G/BlockBuilder,alexandergmann/atom,Jonekee/atom,basarat/atom,isghe/atom,florianb/atom,brettle/atom,sillvan/atom,dkfiresky/atom,abe33/atom,AlbertoBarrago/atom,kittens/atom,Shekharrajak/atom,bolinfest/atom,rmartin/atom,codex8/atom,sekcheong/atom,ralphtheninja/atom,batjko/atom,ykeisuke/ato...