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
f02fd019946d9974dfb9def56459e16f222ad0d2
test/message.coffee
test/message.coffee
{SlackTextMessage, SlackRawMessage, SlackBotMessage, SlackRawListener, SlackBotListener} = require '../index' should = require 'should' class ClientMessage ts = 0 constructor: (fields = {}) -> @type = 'message' @ts = (ts++).toString() @[k] = val for own k, val of fields getBody: -> @text ? "" ...
Add a couple of basic tests for SlackTextMessage
Add a couple of basic tests for SlackTextMessage More tests are coming.
CoffeeScript
mit
stackriot/octobot,justjohnpark/gammas-hubot-slack,bufferapp/bufferbot-slack,voodoologic/hubot_slack
7eba55d009674d4330b1dd9f0e5940a2b53d4866
benchmark/browser-process-startup.coffee
benchmark/browser-process-startup.coffee
#!/usr/bin/env coffee {spawn, exec} = require 'child_process' os = require 'os' path = require 'path' _ = require 'underscore-plus' temp = require 'temp' directoryToOpen = temp.mkdirSync('browser-process-startup-') socketPath = path.join(os.tmpdir(), 'atom.sock') numberOfRuns = 10 launchAtom = (callback) -> cmd = ...
Add initial browser process startup benchmark
Add initial browser process startup benchmark
CoffeeScript
mit
kdheepak89/atom,vinodpanicker/atom,lisonma/atom,pombredanne/atom,Jdesk/atom,brumm/atom,tony612/atom,FoldingText/atom,crazyquark/atom,liuxiong332/atom,kjav/atom,vcarrera/atom,kc8wxm/atom,beni55/atom,fang-yufeng/atom,nvoron23/atom,h0dgep0dge/atom,jlord/atom,rsvip/aTom,anuwat121/atom,brettle/atom,omarhuanca/atom,hharchani...
1a5cec2405f92143ed8e8174c7499f8590e5839d
node_modules_koding/koding-config-manager/config.coffee
node_modules_koding/koding-config-manager/config.coffee
_ = require 'underscore' traverse = require 'traverse' KONFIG = {} do -> unless 'first' of Array.prototype Object.defineProperty Array.prototype, 'first', get: -> this[0] unless 'last' of Array.prototype Object.defineProperty Array.prototype, 'last', get: -> this[this.length - 1] try modu...
_ = require 'underscore' traverse = require 'traverse' KONFIG = {} do -> unless 'first' of Array.prototype Object.defineProperty Array.prototype, 'first', get: -> this[0] unless 'last' of Array.prototype Object.defineProperty Array.prototype, 'last', get: -> this[this.length - 1] try modu...
Check value existence to determine return value
Check value existence to determine return value Signed-off-by: Sonmez Kartal <d2d15c3d37396a5f2a09f8b42cf5f27d43a3fbde@koding.com>
CoffeeScript
agpl-3.0
acbodine/koding,drewsetski/koding,koding/koding,szkl/koding,sinan/koding,mertaytore/koding,acbodine/koding,acbodine/koding,sinan/koding,cihangir/koding,gokmen/koding,drewsetski/koding,szkl/koding,sinan/koding,sinan/koding,acbodine/koding,andrewjcasal/koding,sinan/koding,koding/koding,szkl/koding,rjeczalik/koding,koding...
b5d319dfc90ca30cea9c29e9602ba82923fa8c46
spec/indie-spec.coffee
spec/indie-spec.coffee
describe 'Indie', -> Validate = require('../lib/validate') Indie = require('../lib/indie') indie = null beforeEach -> indie?.dispose() indie = new Indie({}) describe 'Validations', -> it 'just cares about a name', -> linter = {} Validate.linter(linter, true) expect(linter.name)...
Add some basic indie specs
:new: Add some basic indie specs
CoffeeScript
mit
e-jigsaw/Linter,atom-community/linter,Arcanemagus/linter,steelbrain/linter,AtomLinter/Linter
95d5bd9ba01fdec134ca6825f82f21dd3a3b5c99
test/hangout.spec.coffee
test/hangout.spec.coffee
expect = require 'expect.js' _ = require 'underscore' http = require 'http' config = require './test_config' common = require './common' libxmljs = require 'libxmljs' describe "Hangout", -> server = null before (done) -> common.startUp (theServer) => server...
Test stub for hangout gadget
Test stub for hangout gadget
CoffeeScript
bsd-2-clause
yourcelf/intertwinkles,yourcelf/intertwinkles
020331fd8e120eee1fcb80ad05f7fcde33f3e981
pages/ui_component_server.coffee
pages/ui_component_server.coffee
# Register the port recieved from the parent window, and stop listening for messages on the window object. window.addEventListener "message", (event) -> return unless event.source == window.parent currentFunction = arguments.callee # Check event.data against iframeMessageSecret so we can determine that this mess...
Create a script for connecting UIComponent iframes with their parents
Create a script for connecting UIComponent iframes with their parents
CoffeeScript
mit
Lw-Cui/vimium,elegantwww/vimium,Robinson10240/vimium,Aleroniponi/vimium,bkudria/vimium,hhsue/vimium,Aleroniponi/vimium,mrmr1993/vimium,PickRelated/vimium,cyrixhero/vimium,wildeyes/vimium,elegantwww/vimium,tuchangwei/vimium,philc/vimium,csmalin/vimium,Aleroniponi/vimium,tuchangwei/vimium,elderbas/vimium,Robinson10240/vi...
35345893fcad7a628bf5d17d68109ef25aaa0f8a
src/browser/atom-portable.coffee
src/browser/atom-portable.coffee
fs = require 'fs-plus' path = require 'path' ipc = require 'ipc' module.exports = class AtomPortable @getPortableAtomHomePath: -> execDirectoryPath = path.dirname(process.execPath) path.join(execDirectoryPath, '..', '.atom') @isPortableInstall: (platform, environmentAtomHome, defaultHome) -> return fa...
fs = require 'fs-plus' path = require 'path' ipc = require 'ipc' module.exports = class AtomPortable @getPortableAtomHomePath: -> execDirectoryPath = path.dirname(process.execPath) path.join(execDirectoryPath, '..', '.atom') @isPortableInstall: (platform, environmentAtomHome, defaultHome) -> return fa...
Fix function name to be consistent with convention
Fix function name to be consistent with convention
CoffeeScript
mit
t9md/atom,me-benni/atom,johnhaley81/atom,Ingramz/atom,ashneo76/atom,yamhon/atom,t9md/atom,andrewleverette/atom,ykeisuke/atom,dijs/atom,AdrianVovk/substance-ide,bolinfest/atom,ashneo76/atom,ardeshirj/atom,kevinrenaers/atom,daxlab/atom,decaffeinate-examples/atom,tjkr/atom,PKRoma/atom,transcranial/atom,bj7/atom,efatsi/ato...
926116ce31529fe7d74b51125d8acb99de98914f
resources/assets/coffee/react/_components/beatmap-icon.coffee
resources/assets/coffee/react/_components/beatmap-icon.coffee
###* * Copyright 2015 ppy Pty. Ltd. * * This file is part of osu!web. osu!web is distributed with the hope of * attracting more community contributions to the core ecosystem of osu!. * * osu!web is free software: you can redistribute it and/or modify * it under the terms of the Affero GNU General Public ...
###* * Copyright 2015 ppy Pty. Ltd. * * This file is part of osu!web. osu!web is distributed with the hope of * attracting more community contributions to the core ecosystem of osu!. * * osu!web is free software: you can redistribute it and/or modify * it under the terms of the Affero GNU General Public ...
Update beatmap icon with new font classes
Update beatmap icon with new font classes
CoffeeScript
agpl-3.0
comentarinformal/osu-web,LiquidPL/osu-web,nekodex/osu-web,nanaya/osu-web,Kuron-kun/osu-web,nekodex/osu-web,ppy/osu-web,Nekonyx/osu-web,Kuron-kun/osu-web,notbakaneko/osu-web,kj415j45/osu-web,notbakaneko/osu-web,notbakaneko/osu-web,comentarinformal/osu-web,ppy/osu-web,marcostudios/osu-web,Nekonyx/osu-web,Kuron-kun/osu-we...
7c5cea76cd495dd9231d4c477a4d73b1a111e302
lib/projects.coffee
lib/projects.coffee
{Emitter} = require 'atom' _ = require 'underscore-plus' DB = require './db' Project = require './project' module.exports = class Projects constructor: () -> @emitter = new Emitter @db = new DB() @db.onUpdate () => @emitter.emit 'projects-updated' onUpdate: (callback) -> @emitter.on 'projec...
{Emitter} = require 'atom' _ = require 'underscore-plus' DB = require './db' Project = require './project' module.exports = class Projects db: null constructor: () -> @emitter = new Emitter @db = new DB() @db.onUpdate () => @emitter.emit 'projects-updated' onUpdate: (callback) -> @emit...
Make db accessible from spec
Make db accessible from spec
CoffeeScript
mit
danielbrodin/atom-project-manager,UltCombo/atom-project-manager,douggr/atom-project-manager
2a5c789bcba70e77ead81ee8e23e9f44c3206474
client/helpers.coffee
client/helpers.coffee
isActive = (type, inverse = false) -> name = 'is' name = name + 'Not' if inverse name = name + 'Active' + _.capitalize type (view) -> unless view instanceof Spacebars.kw throw new Error "#{name} options must be key value pair such " + "as {{#{name} regex='route/path'}}. You passed: " + ...
isActive = (type, inverse = false) -> name = 'is' name = name + 'Not' if inverse name = name + 'Active' + s.capitalize type (view) -> unless view instanceof Spacebars.kw throw new Error "#{name} options must be key value pair such " + "as {{#{name} regex='route/path'}}. You passed: " + ...
Use new global export for underscore.string
Use new global export for underscore.string
CoffeeScript
mit
cafe4it/meteor-active-route,dropfen/meteor-active-route,zimme/meteor-active-route
5e6b4eb2c3cc2396e40f4525d6ef0120e4fc892b
spec/OutPort.coffee
spec/OutPort.coffee
chai = require 'chai' unless chai if typeof process isnt 'undefined' and process.execPath and process.execPath.indexOf('node') isnt -1 outport = require '../src/lib/OutPort' socket = require '../src/lib/InternalSocket' else outport = require 'noflo/src/lib/OutPort.js' socket = require 'noflo/src/lib/InternalSoc...
Add spec for out ports
Add spec for out ports
CoffeeScript
mit
jonnor/noflo,saurabhsood91/noflo,lxfschr/noflo,noflo/noflo,saurabhsood91/noflo,trustmaster/noflo,npmcomponent/noflo-noflo,lxfschr/noflo,trustmaster/noflo,jonnor/noflo
0c6fba2ce2e6ae83903d2e84107a76a2e9acf715
build/tasks/compile-packages-slug-task.coffee
build/tasks/compile-packages-slug-task.coffee
path = require 'path' CSON = require 'season' fs = require 'fs-plus' module.exports = (grunt) -> {spawn} = require('./task-helpers')(grunt) grunt.registerTask 'compile-packages-slug', 'Add bundled package metadata information to to the main package.json file', -> appDir = grunt.config.get('atom.appDir') ...
path = require 'path' CSON = require 'season' fs = require 'fs-plus' module.exports = (grunt) -> {spawn, rm} = require('./task-helpers')(grunt) grunt.registerTask 'compile-packages-slug', 'Add bundled package metadata information to to the main package.json file', -> appDir = grunt.config.get('atom.appDir') ...
Remove inlined files from app directory
Remove inlined files from app directory
CoffeeScript
mit
ezeoleaf/atom,bsmr-x-script/atom,Hasimir/atom,me-benni/atom,Jandersolutions/atom,harshdattani/atom,dkfiresky/atom,KENJU/atom,devoncarew/atom,mnquintana/atom,palita01/atom,transcranial/atom,Sangaroonaom/atom,ali/atom,svanharmelen/atom,liuderchi/atom,sillvan/atom,hpham04/atom,florianb/atom,targeter21/atom,nucked/atom,Rob...
65d46e79d103aebd5504201835cb576ad6a9cc5b
dot-atom/keymap.cson
dot-atom/keymap.cson
# Your keymap # # Atom keymaps work similarly to style sheets. Just as style sheets use # selectors to apply styles to elements, Atom keymaps use selectors to associate # keystrokes with events in specific contexts. # # You can create a new keybinding in this file by typing "key" and then hitting # tab. # # Here's an e...
# Your keymap # # Atom keymaps work similarly to style sheets. Just as style sheets use # selectors to apply styles to elements, Atom keymaps use selectors to associate # keystrokes with events in specific contexts. (Unlike style sheets however, # each selector can only be declared once.) # # You can create a new keybi...
Clarify that CSON requires unique keys
:memo: Clarify that CSON requires unique keys
CoffeeScript
mit
hagb4rd/atom,n-riesco/atom,Galactix/atom,stuartquin/atom,mdumrauf/atom,seedtigo/atom,Klozz/atom,bj7/atom,Abdillah/atom,KENJU/atom,Austen-G/BlockBuilder,Rychard/atom,yomybaby/atom,Jonekee/atom,abcP9110/atom,RobinTec/atom,Abdillah/atom,sxgao3001/atom,Andrey-Pavlov/atom,deoxilix/atom,Klozz/atom,tanin47/atom,ardeshirj/atom...
895552a5783f502341ac02b0552bb09c8650199d
core/app/backbone/contrib/default_click_handler.coffee
core/app/backbone/contrib/default_click_handler.coffee
# WARNING: be very careful when changing this stuff, there are many edge cases! # Add a default clickhandler so we can use hrefs defaultClickHandler = (e) -> if Backbone.History.started # Capitalization in Backbone.[H]istory is intentional $link = $(e.target).closest("a") url = $link.attr("href") target...
# WARNING: be very careful when changing this stuff, there are many edge cases! # Add a default clickhandler so we can use hrefs defaultClickHandler = (e) -> if Backbone.History.started # Capitalization in Backbone.[H]istory is intentional $link = $(e.target).closest("a") url = $link.attr("href") if e.m...
Put stuff in else and cleaned up navigateTo
Put stuff in else and cleaned up navigateTo
CoffeeScript
mit
daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core,daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core
b5bb6fc0eb878d2eec526614efdcfadd3d36d65f
test/server/conditions/unreleased_ban_spec.coffee
test/server/conditions/unreleased_ban_spec.coffee
require '../../helpers' {BattleServer} = require('../../../server/server') gen = require('../../../server/generations') {User} = require('../../../server/user') {Conditions} = require '../../../shared/conditions' {Factory} = require '../../factory' should = require('should') describe 'Validations: Unreleased Ban', ->...
Add missing test for Unreleased Ban.
Add missing test for Unreleased Ban.
CoffeeScript
mit
sarenji/pokebattle-sim,sarenji/pokebattle-sim,sarenji/pokebattle-sim
8967c816c0861cf79c87eff194b0b49a6f6c4b61
app/assets/javascripts/dialog.js.coffee
app/assets/javascripts/dialog.js.coffee
$ -> $(document).on "page:change", -> $('a[data-method="delete"]').on "click", (e) -> $link = $(this) vex.dialog.open message: "Are you sure you want to delete this item?" buttons: [ $.extend({}, vex.dialog.buttons.NO, className: "secondary" text: "Ca...
Use Vex for delete confirmation dialogs
Use Vex for delete confirmation dialogs
CoffeeScript
apache-2.0
sarahmonster/suitor,sarahmonster/suitor,sarahmonster/suitor
b93eb0101cd1b4a58400301dbc35b7f77fa2ce2c
scripts/hubot.coffee
scripts/hubot.coffee
# Description: # A simple interaction with the built in HTTP Daemon # # Dependencies: # None # # Configuration: # None # # Commands: # None # # URLS: # /hubot/version module.exports = (robot) -> robot.router.get '/hubot/version', (req, res) -> res.end robot.version
Add simple endpoint to allow pinging to keep-alive
Add simple endpoint to allow pinging to keep-alive
CoffeeScript
mit
traviskroberts/superbestbot
e86ebf8345f377c6b510d4e087ebfd6bb153665c
migrations/20140502015332_allow_null_for_teams.coffee
migrations/20140502015332_allow_null_for_teams.coffee
exports.up = (knex, Promise) -> knex.raw('ALTER TABLE teams ALTER COLUMN name DROP NOT NULL') .then -> knex.raw('ALTER TABLE teams ALTER COLUMN generation DROP NOT NULL') exports.down = (knex, Promise) -> knex.raw('ALTER TABLE teams ALTER COLUMN name SET NOT NULL') .then -> knex.raw('ALTER TA...
Add migration to remove non-null constraints
Add migration to remove non-null constraints
CoffeeScript
mit
sarenji/pokebattle-sim,sarenji/pokebattle-sim,sarenji/pokebattle-sim
ce05010129c0b4869e4994fa972eb24c7dccea67
test/create_build_directories_spec.coffee
test/create_build_directories_spec.coffee
fs = require 'fs' path = require 'path' helpers = require '../src/helpers' describe 'create build directories', -> beforeEach -> helpers.createBuildDirectories 'output' afterEach -> removeDirectory 'output' it 'should create directory structure for build path', -> expect(path.existsSync 'output/web/js').to...
Add create build directories spec.
Add create build directories spec.
CoffeeScript
mit
rlugojr/brunch,lalomartins/brunch,PeterDaveHello/brunch,hellyeahllc/brunch,Flaise/brunch,kidaa/brunch,brunch/brunch,hayesgm/brunch,ondreian/brunch,justinwoo/brunch
33273e5144d7ce287111decb05b0b63fe5577422
server/methods/migrate.coffee
server/methods/migrate.coffee
Meteor.methods migrate: (version) -> user = Meteor.user() if not user? or user.admin isnt true return this.ublock() Migrations.migrateTo version return version getMigrationVersion: -> return Migrations.getVersion()
Add method to execute migration
Add method to execute migration
CoffeeScript
mit
madmanteam/Rocket.Chat,k0nsl/Rocket.Chat,nrhubbar/Rocket.Chat,Abdelhamidhenni/Rocket.Chat,capensisma/Rocket.Chat,klatys/Rocket.Chat,acidsound/Rocket.Chat,haosdent/Rocket.Chat,pitamar/Rocket.Chat,bopjesvla/chatmafia,pkgodara/Rocket.Chat,uniteddiversity/Rocket.Chat,flaviogrossi/Rocket.Chat,BHWD/noouchat,inoxth/Rocket.Cha...
a32e4ce1c5a7ee1512462a6edbc6b8b055dcbf8f
lib/special-stored-procedure.coffee
lib/special-stored-procedure.coffee
modules.exports = Sp_Cursor: 1 Sp_CursorOpen: 2 Sp_CursorPrepare: 3 Sp_CursorExecute: 4 Sp_CursorPrepExec: 5 Sp_CursorUnprepare: 6 Sp_CursorFetch: 7 Sp_CursorOption: 8 Sp_CursorClose: 9 Sp_ExecuteSql: 10 Sp_Prepare: 11 Sp_Execute: 12 Sp_PrepExec: 13 Sp_PrepExecRpc: 14 Sp_Unprepare: 15
Add numbers for special stored procedures..
Add numbers for special stored procedures..
CoffeeScript
mit
pekim/tedious,LeanKit-Labs/tedious,spanditcaa/tedious,arthurschreiber/tedious,tediousjs/tedious,Sage-ERP-X3/tedious,tediousjs/tedious
50e3a1e234b08f121e6ac209280f5fd4f68b7f70
test/unit/prettify-response-test.coffee
test/unit/prettify-response-test.coffee
{assert} = require 'chai' sinon = require 'sinon' loggerStub = require '../../src/logger' prettifyResponse = require '../../src/prettify-response' describe 'prettifyResponse(response)', () -> describe 'with a real object without any circular references', () -> it 'should print JSON.stringified application/json ...
Add tests to test prettify-response method
Add tests to test prettify-response method
CoffeeScript
mit
cranieri/dredd-extended,NGMarmaduke/dredd,ouziel-slama/dredd,snikch/dredd,obihann/dredd,NGMarmaduke/dredd,PelegR/dredd,PelegR/dredd,sbellem/dredd,pgconreaux/dredd,apiaryio/dredd,apiaryio/dredd,obihann/dredd,pauladam/dredd,sbellem/dredd,vladosaurus/dredd,Eksmo/dredd,snikch/dredd,cranieri/dredd-extended,ouziel-slama/dred...
8f169fd1df4487db27d2bc27538a801c8e9b3d05
src/scripts/cat.coffee
src/scripts/cat.coffee
# Send messages to channels via hubot # # $ echo "#channel|hello everyone" | nc -u -w1 bot_hostname bot_port # $ echo "nickname|hello mister" | nc -u -w1 bot_hostname bot_port dgram = require "dgram" server = dgram.createSocket "udp4" module.exports = (robot) -> server.on 'message', (message, rinfo) -> msg = mes...
Add UDP netowork messages to Hubot
Add UDP netowork messages to Hubot
CoffeeScript
mit
DataDog/hubot-scripts,yigitbey/hubot-scripts,alexhouse/hubot-scripts,dhfromkorea/hubot-scripts,jhubert/hubot-scripts,Tyriont/hubot-scripts,fromonesrc/hubot-scripts,phillipalexander/hubot-scripts,opentable/hubot-scripts,github/hubot-scripts,jacobtomlinson/hubot-scripts,gregburek/emojibot,amhorton/hubot-scripts,jankowiak...
5dd63fc2f591a50fa5f642f688ec00b0defdbc4f
src/scripts/ruby.coffee
src/scripts/ruby.coffee
# Evaluate one line of Ruby script. # # ruby|rb <script> - Evaluate one line of Ruby script module.exports = (robot) -> robot.respond /(ruby|rb)\s+(.*)/i, (msg)-> script = msg.match[2] msg.http("http://tryruby.org/levels/1/challenges/0") .query("cmd": script) .headers("Content-Length": "0") ...
Add script to evaluate Ruby script
Add script to evaluate Ruby script
CoffeeScript
mit
jacobtomlinson/hubot-scripts,marksie531/hubot-scripts,alexhouse/hubot-scripts,fromonesrc/hubot-scripts,contolini/hubot-scripts,amhorton/hubot-scripts,cycomachead/hubot-scripts,github/hubot-scripts,azimman/hubot-scripts,gregburek/emojibot,modulexcite/hubot-scripts,magicstone1412/hubot-scripts,dbkaplun/hubot-scripts,jan0...
b571468ac0528b40f5ee569e7fb461f090c6b75f
app/assets/javascripts/controllers/application_controller.js.coffee
app/assets/javascripts/controllers/application_controller.js.coffee
ETahi.ApplicationController = Ember.Controller.extend delayedSave: false currentUser: ( -> @getCurrentUser() ).property() isLoggedIn: ( -> !Ember.isBlank(@get('currentUser.id')) ).property('currentUser.id') isAdmin: Ember.computed.alias 'currentUser.siteAdmin' canViewAdminLinks: false # this ...
ETahi.ApplicationController = Ember.Controller.extend delayedSave: false currentUser: ( -> @getCurrentUser() ).property() isLoggedIn: ( -> !Ember.isBlank(@get('currentUser.id')) ).property('currentUser.id') isAdmin: Ember.computed.alias 'currentUser.siteAdmin' canViewAdminLinks: false # this ...
Fix scroll position on transition
Fix scroll position on transition
CoffeeScript
mit
johan--/tahi,johan--/tahi,johan--/tahi,johan--/tahi
357a6bd798dda429e3cd24a8e09efc012e038640
src/spec/integration/channels.spec.coffee
src/spec/integration/channels.spec.coffee
_ = require 'underscore' SphereClient = require '../../lib/client' Config = require('../../config').config uniqueId = (prefix) -> _.uniqueId "#{prefix}#{new Date().getTime()}_" newChannel = -> key: uniqueId 'c' updateChannel = (version) -> version: version actions: [ {action: 'changeName', name: {en: 'A ...
Add integration test for channels (create, update, delete)
Add integration test for channels (create, update, delete)
CoffeeScript
mit
panshul007/sphere-node-sdk,panshul007/sphere-node-sdk,sphereio/sphere-node-sdk,sphereio/sphere-node-sdk
07ce8143ed402a20a54ed562df0476f32193acf7
app/assets/javascripts/rails/add_ons/application/acts-as-list.js.coffee
app/assets/javascripts/rails/add_ons/application/acts-as-list.js.coffee
$ -> $('[data-acts-as-list-item]').each -> $(@).draggable({ scope: $(@).attr('data-acts-as-list-item-scope'), revert: true }) $ -> $('[data-acts-as-list-item]').each -> redirect_target = $(@).attr('data-acts-as-list-item-on-drop-target') authenticity_token = $( 'meta[name="csrf-token"]'...
Add missing javascript for acts as list.
Add missing javascript for acts as list.
CoffeeScript
mit
robotex82/rails-add_ons,robotex82/rails-add_ons,robotex82/rails-add_ons
917fbaadad5b038e5149fcebd93e761aa87635b3
src/packages/fuzzy-finder/lib/load-paths-task.coffee
src/packages/fuzzy-finder/lib/load-paths-task.coffee
_ = require 'underscore' BufferedProcess = require 'buffered-process' $ = require 'jquery' module.exports = class LoadPathsTask constructor: (@callback) -> start: -> rootPath = project.getPath() ignoredNames = config.get('fuzzyFinder.ignoredNames') ? [] ignoredNames = ignoredNames.concat(config.get('c...
_ = require 'underscore' BufferedProcess = require 'buffered-process' $ = require 'jquery' module.exports = class LoadPathsTask constructor: (@callback) -> start: -> rootPath = project.getPath() ignoredNames = config.get('fuzzyFinder.ignoredNames') ? [] ignoredNames = ignoredNames.concat(config.get('c...
Use splat instead of apply
Use splat instead of apply
CoffeeScript
mit
jeremyramin/atom,mrodalgaard/atom,sillvan/atom,isghe/atom,mnquintana/atom,mnquintana/atom,jtrose2/atom,fscherwi/atom,dkfiresky/atom,Locke23rus/atom,yomybaby/atom,svanharmelen/atom,tmunro/atom,atom/atom,FoldingText/atom,G-Baby/atom,Ingramz/atom,nrodriguez13/atom,GHackAnonymous/atom,john-kelly/atom,dkfiresky/atom,Obvious...
f1bdcaedc18b3f7aa9060bd1dae58a2891a7cd97
src/packages/tree-view/keymaps/tree-view.cson
src/packages/tree-view/keymaps/tree-view.cson
'body': 'meta-\\': 'tree-view:toggle' 'meta-|': 'tree-view:reveal-active-file' '.tree-view': 'right': 'tree-view:expand-directory' 'ctrl-]': 'tree-view:expand-directory' 'left': 'tree-view:collapse-directory' 'ctrl-[': 'tree-view:collapse-directory' 'enter': 'tree-view:open-selected-entry' 'm': 'tree-v...
'body': 'meta-\\': 'tree-view:toggle' 'meta-|': 'tree-view:reveal-active-file' '.tree-view': 'right': 'tree-view:expand-directory' 'ctrl-]': 'tree-view:expand-directory' 'left': 'tree-view:collapse-directory' 'ctrl-[': 'tree-view:collapse-directory' 'enter': 'tree-view:open-selected-entry' 'm': 'tree-v...
Support moving up/down in tree view with k/j keys
Support moving up/down in tree view with k/j keys
CoffeeScript
mit
Abdillah/atom,Rychard/atom,dannyflax/atom,gabrielPeart/atom,DiogoXRP/atom,RuiDGoncalves/atom,fredericksilva/atom,alexandergmann/atom,h0dgep0dge/atom,brettle/atom,synaptek/atom,rookie125/atom,YunchengLiao/atom,jlord/atom,fang-yufeng/atom,chengky/atom,ReddTea/atom,prembasumatary/atom,panuchart/atom,john-kelly/atom,me6iat...
8b7af9a470a82fd278e95117bb40333fe5a08c7e
spec/archive-editor-spec.coffee
spec/archive-editor-spec.coffee
{Document} = require 'atom' ArchiveEditor = require '../lib/archive-editor' describe "ArchiveEditor", -> it "destroys itself upon creation if no file exists at the given path", -> doc = Document.create() doc.set('archiveEditor', new ArchiveEditor(path: "bogus")) expect(doc.has('imageEditor')).toBe false
Add spec for ArchiveEditor self-destruction
Add spec for ArchiveEditor self-destruction
CoffeeScript
mit
atom/archive-view
015a205d54ebd6178192df3c0b4d0b5fb8c9eab0
components/Rotate-node.coffee
components/Rotate-node.coffee
noflo = require 'noflo' sharp = require 'sharp' Canvas = require('noflo-canvas').canvas # @runtime noflo-nodejs # @name Rotate exports.getComponent = -> c = new noflo.Component c.icon = 'expand' c.description = 'Rotate a given image buffer to a new angle' c.inPorts.add 'buffer', datatype: 'object' d...
Add component to rotate buffers
Add component to rotate buffers
CoffeeScript
mit
noflo/noflo-sharp
173544569d6199497d912129817434f3140e6713
app/assets/javascripts/rglossa/react/main_area.js.jsx.coffee
app/assets/javascripts/rglossa/react/main_area.js.jsx.coffee
###* @jsx React.DOM ### window.MainArea = React.createClass sideBarButtons: -> `<button id="hide-criteria-button" className="btn btn-mini" title="Hide search criteria"> <i className="icon-double-angle-left"> Hide</i> </button> <button id="show-criteria-button" className="btn btn-mini" style={{displ...
Add a MainArea component skeleton
Add a MainArea component skeleton
CoffeeScript
mit
textlab/rglossa,textlab/glossa,textlab/rglossa,textlab/glossa,textlab/rglossa,textlab/rglossa,textlab/glossa,textlab/rglossa,textlab/glossa,textlab/glossa
92089dbb5affc13b2222dffa1fd3d4ea62457ca2
api/routes/gallery.coffee
api/routes/gallery.coffee
options = require '../tools/optionsroute' moment = require 'moment' _ = require 'lodash' getTimespanImages = (db, res, start, end) -> db.all 'SELECT * FROM tFile WHERE timestamp >= ? AND timestamp < ? ORDER BY timestamp ASC', start.valueOf(), end.valueOf(), (err, rows) -> if err? ...
Implement API for flat galleries on year, month and day levels
Implement API for flat galleries on year, month and day levels
CoffeeScript
isc
soulweaver91/gw2hub
8a8d8405d3b2012d169cfdc417becf005876307b
spec/dummy/spec/javascripts/validatable_input_spec.js.coffee
spec/dummy/spec/javascripts/validatable_input_spec.js.coffee
#= require magic_word describe 'ValidatableInput', -> beforeEach -> @input = $('<input name="foo[bar]"/>') @form = validate: -> @defaultTimeout = 500 @v = new MagicWord.ValidatableInput @input, @form describe "#constructor", -> it 'sets the default timeout to 500ms', -> ...
Add some specs for ValidatableInput
Add some specs for ValidatableInput WIP Some cleanup needs to be done, as well as actually testing useful behaviors.
CoffeeScript
mit
lumoslabs/comply,lumoslabs/comply,lumoslabs/comply
427dba57adc771032ff2c978a2d59cf3d8e8817a
src/storage-folder.coffee
src/storage-folder.coffee
path = require "path" fs = require "fs-plus" module.exports = class StorageFolder constructor: (containingPath) -> @path = path.join(containingPath, "storage") if containingPath? storeSync: (name, object) -> return unless @path? fs.writeFileSync(@pathForKey(name), JSON.stringify(object), 'utf8') s...
path = require "path" fs = require "fs-plus" module.exports = class StorageFolder constructor: (containingPath) -> @path = path.join(containingPath, "storage") if containingPath? storeSync: (name, object) -> return unless @path? fs.writeFileSync(@pathForKey(name), JSON.stringify(object), 'utf8') l...
Remove unused StorageFolder::store method (moved state to IndexedDB)
Remove unused StorageFolder::store method (moved state to IndexedDB)
CoffeeScript
mit
florianb/atom,florianb/atom,gontadu/atom,scippio/atom,Austen-G/BlockBuilder,CraZySacX/atom,johnhaley81/atom,Austen-G/BlockBuilder,AlexxNica/atom,stinsonga/atom,ashneo76/atom,gontadu/atom,liuderchi/atom,PKRoma/atom,bsmr-x-script/atom,johnhaley81/atom,wiggzz/atom,florianb/atom,brettle/atom,Arcanemagus/atom,liuderchi/atom...
5cd8bc1f141df5da623311f6618e10253fe0a462
coffee_test/spec/directives/supermanDirective.coffee
coffee_test/spec/directives/supermanDirective.coffee
describe 'Unit test: superman directive', -> beforeEach -> module 'angularjsGettingStartedApp' $rootScope = $compile = $httpBackend = {} beforeEach -> inject ['$compile','$rootScope', ($c,$r) -> $rootScope = $r $compile = $c ] it 'should display right', -> elem = $compile('<superman>...
Test directive: display properly & basic behavior & communicate with controller
Test directive: display properly & basic behavior & communicate with controller
CoffeeScript
mit
anhhh11/angularjs-getting-started
20ebdef1056142341f7c005bf39d2a2017397154
snippets/language-apl.cson
snippets/language-apl.cson
".source.apl": Function: prefix: "fn" body: "∇${2:R ←} ${3:X} ${1:NAME} ${4:Y}\n\t$0\n∇" Operator: prefix: "op" body: "∇${2:R ←} ${3:X} (${4:LOP} ${1:NAME} ${5:ROP}) ${6:Y}\n\t$0\n∇" Assignment: prefix: "a" body: "${1:⎕ }← ${2:VALUE}" # GNU APL extensions "GNU Heredoc: Plain": prefix:...
Add a bundle of snippet-templates
Add a bundle of snippet-templates
CoffeeScript
isc
Alhadis/language-apl
56596d4a4c5c8176976a4dae4613b93432f128ee
gulpfile.coffee
gulpfile.coffee
coffee = require 'gulp-coffee' gulp = require 'gulp' gutil = require 'gulp-util' rimraf = require 'rimraf' handleError = (err) -> gutil.log err @emit 'end' gulp.task 'clean', (done) -> rimraf './lib', done gulp.task 'build', ['clean'], -> gulp.src './lib-src/**/*.coffee' .pipe coffee(bare: true).on 'erro...
Implement 'gulp' and 'gulp build'
Implement 'gulp' and 'gulp build'
CoffeeScript
mit
felixrabe/gulp-setup
e6e792a3b764967d7c5e42a0d3faee6d51259931
Jakefile.coffee
Jakefile.coffee
desc 'Deploy to production' task 'deploy', -> console.log '-----> Deploying...' ; cmds = [ //'git ci -m "lol"', //'git push', 'cd ../prod', 'pwd' ] jake.exec cmds, { printStdOut: true }, () -> console.log 'OK' complete task 'default', -> jake.Task[...
Use a Jake instead of shell script
Use a Jake instead of shell script
CoffeeScript
mit
Darep/solitaio-challenger,Darep/solitaio-challenger
13047483b3180c0966fffdb60dfe687820a72818
app/assets/javascripts/sidebar.js.coffee
app/assets/javascripts/sidebar.js.coffee
$(document).on("click", '.toggle-nav-collapse', (e) -> e.preventDefault() collapsed = 'page-sidebar-collapsed' expanded = 'page-sidebar-expanded' $('.page-with-sidebar').toggleClass("#{collapsed} #{expanded}") $('header').toggleClass("header-collapsed header-expanded") $('.sidebar-wrapper').toggleClass("si...
$(document).on("click", '.toggle-nav-collapse', (e) -> e.preventDefault() collapsed = 'page-sidebar-collapsed' expanded = 'page-sidebar-expanded' $('.page-with-sidebar').toggleClass("#{collapsed} #{expanded}") $('header').toggleClass("header-collapsed header-expanded") $('.sidebar-wrapper').toggleClass("si...
Update scrollbars after toggle sidebar
Update scrollbars after toggle sidebar
CoffeeScript
mit
Soullivaneuh/gitlabhq,axilleas/gitlabhq,t-zuehlsdorff/gitlabhq,SVArago/gitlabhq,jirutka/gitlabhq,mr-dxdy/gitlabhq,larryli/gitlabhq,LUMC/gitlabhq,allysonbarros/gitlabhq,htve/GitlabForChinese,dreampet/gitlab,axilleas/gitlabhq,stoplightio/gitlabhq,screenpages/gitlabhq,larryli/gitlabhq,dwrensha/gitlabhq,daiyu/gitlab-zh,mmk...
9fd061807e65d106bac4c42618aaf177cd58855d
app/assets/javascripts/protected_branches.js.coffee
app/assets/javascripts/protected_branches.js.coffee
$ -> $(":checkbox").change -> id = $(this).val() checked = $(this).is(":checked") url = $(this).data("url") $.ajax type: "PUT" url: url dataType: "json" data: id: id developers_can_push: checked success: -> new Flash("Branch updated.", "notice") ...
$ -> $(":checkbox").change -> name = $(this).attr("name") if name == "developers_can_push" id = $(this).val() checked = $(this).is(":checked") url = $(this).data("url") $.ajax type: "PUT" url: url dataType: "json" data: id: id develop...
Update on the correct checkbox.
Update on the correct checkbox.
CoffeeScript
mit
sekcheong/gitlabhq,icedwater/gitlabhq,mrb/gitlabhq,shinexiao/gitlabhq,NARKOZ/gitlabhq,kemenaran/gitlabhq,lvfeng1130/gitlabhq,MauriceMohlek/gitlabhq,tempbottle/gitlabhq,darkrasid/gitlabhq,per-garden/gitlabhq,nmav/gitlabhq,rumpelsepp/gitlabhq,ikappas/gitlabhq,theonlydoo/gitlabhq,bozaro/gitlabhq,martijnvermaat/gitlabhq,dw...
144d6fa5004eb9665ddf4e53c984f333e9b9a4d1
app/frontend/javascripts/views/visualization-canvas.js.coffee
app/frontend/javascripts/views/visualization-canvas.js.coffee
d3 = require '../dist/d3' VisualizationCanvasBase = require './visualization-canvas-base.js' class VisualizationCanvas extends VisualizationCanvasBase context: null setupCanvas: -> # Setup canvas @canvas = d3.select(@el).append('canvas') .attr 'width', @viewport.width .attr 'height', @viewpo...
Add basic canvas visualization implementation
Add basic canvas visualization implementation
CoffeeScript
agpl-3.0
civio/onodo,civio/onodo,civio/onodo,civio/onodo
34b8412e50f853ed3025457b6d309c8c031f49d0
keymaps/autocomplete-plus.cson
keymaps/autocomplete-plus.cson
".autocomplete-plus input.hidden-input": "tab": "autocomplete-plus:confirm" "down": "autocomplete-plus:select-next" "ctrl-n": "autocomplete-plus:select-next" "up": "autocomplete-plus:select-previous" "ctrl-p": "autocomplete-plus:select-previous" "escape": "autocomplete-plus:cancel" ".editor": "ctrl-shift...
Add keymaps file so that autocompletion is properly triggered.
:bug: Add keymaps file so that autocompletion is properly triggered.
CoffeeScript
mit
tpoisot/autocomplete-bibtex,mangecoeur/autocomplete-bibtex,lodestone/autocomplete-bibtex,apcshields/autocomplete-bibtex,mdlincoln/autocomplete-bibtex,tpoisot/autocomplete-citeproc
e0273eef30ca89803ed7cb8d3d0768f2c43c08f8
src/Witness/specs/SpecificationDirectory.coffee
src/Witness/specs/SpecificationDirectory.coffee
describe "SpecificationDirectory", { "given a directory manifest with no files or sub-directories": -> @manifest = name: "example" files: [] directories: [] "when a SpecificationDirectory is created with the manifest": -> @directory = new Witness.SpecificationDirectory @manifest then: di...
Add constructor tests for SpeficationDirectory.
Add constructor tests for SpeficationDirectory.
CoffeeScript
bsd-2-clause
andrewdavey/witness,andrewdavey/witness,andrewdavey/witness
c03e9ad815927296c61a721e148b40feb8292f6f
exports/atom.coffee
exports/atom.coffee
{Document, Point, Range} = require 'telepath' module.exports = _: require 'underscore-plus' BufferedNodeProcess: require '../src/buffered-node-process' BufferedProcess: require '../src/buffered-process' Directory: require '../src/directory' Document: Document File: require '../src/file' fs: require 'fs-p...
{Document, Point, Range} = require 'telepath' module.exports = _: require 'underscore-plus' BufferedNodeProcess: require '../src/buffered-node-process' BufferedProcess: require '../src/buffered-process' Directory: require '../src/directory' Document: Document File: require '../src/file' fs: require 'fs-p...
Rename Editor export to EditorView
Rename Editor export to EditorView
CoffeeScript
mit
wiggzz/atom,sekcheong/atom,bsmr-x-script/atom,pkdevbox/atom,001szymon/atom,medovob/atom,woss/atom,yomybaby/atom,kc8wxm/atom,deepfox/atom,001szymon/atom,Mokolea/atom,Andrey-Pavlov/atom,transcranial/atom,johnhaley81/atom,jjz/atom,niklabh/atom,qiujuer/atom,ObviouslyGreen/atom,matthewclendening/atom,yalexx/atom,amine7536/a...
ac04dd34ee9dfbb0434ab1b09650cba132dce9b9
server/models/model-events.coffee
server/models/model-events.coffee
{EventEmitter} = require 'events' _ = require 'lodash' # using DS events imply one more query for each update # instead we monkeypatch cozydb module.exports.wrapModel = (Model) -> Model.ee = new EventEmitter() Model.on = -> Model.ee.on.apply Model.ee, arguments _oldCreate = Model.create Model.creat...
Make the models into event-emitters
Make the models into event-emitters This could probably be included in cozydb
CoffeeScript
agpl-3.0
cozy/cozy-emails,nono/cozy-emails,cozy-labs/emails,cozy-labs/emails,frankrousseau/cozy-emails,nono/cozy-emails,poupotte/cozy-emails,lemelon/cozy-emails,cozy/cozy-emails,clochix/cozy-emails,poupotte/cozy-emails,clochix/cozy-emails,lemelon/cozy-emails,aenario/cozy-emails,frankrousseau/cozy-emails,aenario/cozy-emails
6090422d30541ebe2223f8cb87159c95f7693bbb
components/saveProgress.coffee
components/saveProgress.coffee
# ************************************* # # Save Progress # -> Save input text in Local Storage # # ************************************* # # options.elements - the element containing text to save # options.dataAttribute - the data attribute of the Local Storage key # # ************************************* @Spell...
Add initial Save Progress module
Add initial Save Progress module
CoffeeScript
mit
spellbook/spellbook,spellbook/spellbook,spellbook/spellbook
1d35d050600594881d0705e06452722c19ec963a
spec/coffeescripts/jsx/assignments/ModerationAppSpec.coffee
spec/coffeescripts/jsx/assignments/ModerationAppSpec.coffee
define [ 'react' 'jsx/assignments/ModerationApp' 'jsx/assignments/actions/ModerationActions' ], (React, ModerationApp, Actions) -> TestUtils = React.addons.TestUtils module 'ModerationApp', setup: -> @store = subscribe: sinon.spy() dispatch: sinon.spy() getState: -> { ...
Add spec to ModerationApp component
[spec] Add spec to ModerationApp component closes CNVS-23616 Test Plan: - Automated tests pass Change-Id: I1d09653eefd17fae807849248feeb7ef28ec04fa Reviewed-on: https://gerrit.instructure.com/64216 Reviewed-by: Dan Minkevitch <2591e5f46f28d303f9dc027d475a5c60d8dea17a@instructure.com> Tested-by: Jenkins Product-Rev...
CoffeeScript
agpl-3.0
matematikk-mooc/canvas-lms,HotChalk/canvas-lms,leftplusrightllc/canvas-lms,instructure/canvas-lms,AndranikMarkosyan/lms,SwinburneOnline/canvas-lms,redconfetti/canvas-lms,SwinburneOnline/canvas-lms,dgynn/canvas-lms,snehakachroo1/LSI_replica,dgynn/canvas-lms,djbender/canvas-lms,sfu/canvas-lms,AndranikMarkosyan/lms,graham...
05bb21b350627c874236057cd7c34317c57d11d2
apps/artist/queries/cv.coffee
apps/artist/queries/cv.coffee
module.exports = """ query artist($artist_id: String!, $shows: Boolean!, $articles: Boolean!) { artist(id: $artist_id) { ... on Artist @include(if: $shows) { group_shows: shows(at_a_fair: false, solo_show:false, sort: start_at_desc, is_reference: true, size: 99) { ... relatedShow ...
module.exports = """ query artist($artist_id: String!, $shows: Boolean!, $articles: Boolean!) { artist(id: $artist_id) { ... on Artist @include(if: $shows) { group_shows: shows(at_a_fair: false, solo_show:false, sort: start_at_desc, is_reference: true, visible_to_public: false, size: 99) { ...
Allow artist CV to include non displayable shows
Allow artist CV to include non displayable shows
CoffeeScript
mit
artsy/force-public,dblock/force,kanaabe/force,damassi/force,kanaabe/force,kanaabe/force,eessex/force,dblock/force,mzikherman/force,oxaudo/force,oxaudo/force,damassi/force,erikdstock/force,artsy/force,yuki24/force,anandaroop/force,joeyAghion/force,eessex/force,izakp/force,izakp/force,joeyAghion/force,joeyAghion/force,yu...
45838c10262793bf93b7ce546d10ac55ee9960a7
spec/CanvasToBuffer.coffee
spec/CanvasToBuffer.coffee
noflo = require 'noflo' unless noflo.isBrowser() chai = require 'chai' unless chai CanvasToBuffer = require '../components/CanvasToBuffer.coffee' else CanvasToBuffer = require 'noflo-image/components/CanvasToBuffer.js' describe 'CanvasToBuffer component', -> c = null ins = null out = null error = null ...
Create test for canvas 2 buffer component
Create test for canvas 2 buffer component
CoffeeScript
mit
noflo/noflo-image,noflo/noflo-image
b9cdd86e941e69f9bed8def3202cf76bb2fe27fd
test/error-func-undefined.coffee
test/error-func-undefined.coffee
describe 'compilation error "undefined function"', -> it 'occurs if a function in the spec does not exist in the context', -> a.throws (-> ss a: b: $bar: 5), """ Error: The function "$bar" is not defined. { "a": { "b": { "$bar": 5 ^^^ } } }""" it 'correctly highlights position ...
Add failing tests for error reporting
Add failing tests for error reporting
CoffeeScript
mit
littlebits/stream-sift
9d2408d09efa86a58e992caee6bb17e3d18bad78
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 application. You can specify di...
'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-...
Add more info to new. Closes gh-619.
Add more info to new. Closes gh-619.
CoffeeScript
mit
rlugojr/brunch,hayesgm/brunch,ondreian/brunch,justinwoo/brunch,brunch/brunch,hellyeahllc/brunch,kidaa/brunch,Flaise/brunch,lalomartins/brunch,PeterDaveHello/brunch
86a515b95a233c1419dc78936f00e9e4d2a898ae
app/coffeescripts/react_files/components/FriendlyDatetime.coffee
app/coffeescripts/react_files/components/FriendlyDatetime.coffee
define [ 'react' 'timezone' 'underscore' 'jquery' 'jquery.instructure_date_and_time' ], (React, tz, _, $) -> FriendlyDatetime = React.createClass propTypes: datetime: React.PropTypes.oneOfType([ React.PropTypes.string, React.PropTypes.instanceOf(Date) ]) render: -> ...
define [ 'react' 'timezone' 'underscore' 'jquery' 'jquery.instructure_date_and_time' ], (React, tz, _, $) -> slowRender = -> datetime = @props.datetime return React.DOM.time() unless datetime? datetime = tz.parse(datetime) unless _.isDate datetime fudged = $.fudgeDateForProfileTimezone(dat...
Speed up friendlyDatetime component in react files
Speed up friendlyDatetime component in react files the friendlyDatetime component was taking almost all of the time in rendering newFiles. I guess some of the tz, $.fudgeDate, $.datetimestring, etc. functions inside of it were super slow. for the folder i was testing it went from ~8000ms to ~200ms test plan: in new...
CoffeeScript
agpl-3.0
tgroshon/canvas-lms,redconfetti/canvas-lms,Rvor/canvas-lms,venturehive/canvas-lms,matematikk-mooc/canvas-lms,juoni/canvas-lms,tgroshon/canvas-lms,tgroshon/canvas-lms,va7map/canvas-lms,Rvor/canvas-lms,instructure/canvas-lms,efrj/canvas-lms,jay3126/canvas-lms,leftplusrightllc/canvas-lms,sdeleon28/canvas-lms,roxolan/canva...
72bc620901376195bbadc908cd728206380df003
components/SWTDetect.coffee
components/SWTDetect.coffee
noflo = require 'noflo' temporary = require 'temporary' fs = require 'fs' path = require 'path' exec = require('child_process').exec # @runtime noflo-nodejs # @name SWTDetect compute = (canvas, callback) -> # Get canvas ctx = canvas.getContext '2d' imageData = ctx.getImageData 0, 0, canvas.width, canvas.height ...
Add component to SWT detector
Add component to SWT detector
CoffeeScript
mit
noflo/noflo-ccv,noflo/noflo-ccv,noflo/noflo-ccv,noflo/noflo-ccv
ef2f562fc841babae4774a8595b4006eac29211f
dev/standard.cson
dev/standard.cson
{ information_pedestrian_crossing: category: 'other' name: 'pedestrian crossing' elements: [ { type: 'tri-bg', value: 'white' } { type: 'tri-o', value: 'red' } { type: 'pedestrian', value: 'black' } ] mandatory_keep_right: category: 'mandatory' name: 'keep right' eleme...
Add initial traffic signs to CSON
Add initial traffic signs to CSON
CoffeeScript
mit
mapillary/traffico,mapillary/traffico,floscher/traffico,floscher/traffico,nighto/traffico,nighto/traffico
5d7303707cd311029eb5fd5e7057b49b85a48887
lib/helpers.coffee
lib/helpers.coffee
escapeXMLCharacter = (c) -> '&' + { '&': 'amp', '<': 'lt', '>': 'gt', "'": 'apos', '"': 'quot'}[c] + ';' escapeXML = (s) -> s.replace(/([&<>'"])/g, escapeXMLCharacter) module.exports.escapeXML = escapeXML
Implement helper method for XML escaping
Implement helper method for XML escaping
CoffeeScript
mit
mattcoffey/tyaas
59dbf6c09c29be6a88370deb296a8ed73731c478
src/scripts/github-issues.coffee
src/scripts/github-issues.coffee
# Show open issues from a Github repository. # # You need to set the following variables: # HUBOT_GITHUB_TOKEN = <oauth token> # HUBOT_GITHUB_USER = <user name> # # HUBOT_GITHUB_USER is optional, but if you set it, you can ask `show me issues # for hubot` instead of `show me issues for github/hubot`. # # show me is...
Use `show me issues for <user/repo>` to list open issues (Github)
Use `show me issues for <user/repo>` to list open issues (Github) You need to set the following variables: HUBOT_GITHUB_TOKEN = <oauth token> HUBOT_GITHUB_USER = <user name> HUBOT_GITHUB_USER is optional, but if you set it, you can ask `show me issues for hubot` instead of `show me issues for github/hubot`.
CoffeeScript
mit
cycomachead/hubot-scripts,josephcarmello/hubot-scripts,contolini/hubot-scripts,Tyriont/hubot-scripts,MaxMEllon/hubot-scripts,flores/hubot-scripts,jankowiakmaria/hubot-scripts,opentable/hubot-scripts,zecahnin/hubot-scripts,GrimDerp/hubot-scripts,wsoula/hubot-scripts,terryjbates/hubot-scripts,alexhouse/hubot-scripts,jaco...
5049c726ca6b91874e1ec037e3b3a9871d6909b8
test/core/customhtmlview.coffee
test/core/customhtmlview.coffee
should = require 'should' KDCustomHTMLView = require '../../lib/core/customhtmlview' describe 'KDCustomHTMLView', -> it 'exists', -> KDCustomHTMLView.should.exist describe 'constructor', -> it 'should instantiate without error', -> router = new KDCustomHTMLView router.should.exist
Add custom html view tests
Add custom html view tests
CoffeeScript
mit
anonrig/kd,anonrig/kd
3ac4bd3b5f224eb74ce95393ebf9d8e3cfc46859
app/assets/javascripts/store/checkout.js.coffee
app/assets/javascripts/store/checkout.js.coffee
$(document).ready -> $('#cart_adjustments').hide() $('th.cart-adjustment-header').html('<a href="#">Order Adjustments...</a>') $('th.cart-adjustment-header a').click -> $('#cart_adjustments').toggle() $('th.cart-adjustment-header a').html('Order Adjustments') false
Hide adjustments in cart by default, show by click
Hide adjustments in cart by default, show by click
CoffeeScript
agpl-3.0
stveep/openfoodnetwork,MikeiLL/openfoodnetwork,ltrls/openfoodnetwork,ecocitycore/openfoodnetwork,openfoodfoundation/openfoodnetwork,MikeiLL/openfoodnetwork,ecocitycore/openfoodnetwork,ltrls/openfoodnetwork,levent/openfoodnetwork,ecocitycore/openfoodnetwork,folklabs/openfoodnetwork,Em-AK/openfoodnetwork,folklabs/openfoo...
f399f50e9ee11f51a2d02eeef3eb1672e95434bc
atom/common/api/lib/shell.coffee
atom/common/api/lib/shell.coffee
module.exports = process.atomBinding 'shell' if process.platform is 'win32' and process.type is 'renderer' module.exports.showItemInFolder = require('remote').process.atomBinding('shell').showItemInFolder
module.exports = process.atomBinding 'shell' if process.platform is 'win32' and process.type is 'renderer' module.exports.showItemInFolder = (item) -> require('remote').require('shell').showItemInFolder item
Fix calling showItemInFolder in renderer
Fix calling showItemInFolder in renderer The remote method always assumes the existence of the remote object but doesn't keep a reference to it, so if we only keep the reference of a remote method we will get into troubles once the remote object is garbage collected. We should probably fix this in remote module, but ...
CoffeeScript
mit
roadev/electron,brave/muon,leethomas/electron,Gerhut/electron,tylergibson/electron,simongregory/electron,brave/muon,joaomoreno/atom-shell,astoilkov/electron,astoilkov/electron,rajatsingla28/electron,minggo/electron,renaesop/electron,roadev/electron,wan-qy/electron,arturts/electron,minggo/electron,Floato/electron,aliib/...
2e49141532a9a837d040f71bc99716c896f3db10
lib/simpleAuth.coffee
lib/simpleAuth.coffee
util = require "./util" bcrypt = require "bcrypt" _ = require "lodash" checkLists = (fromDevice, toDevice, whitelist, blacklist, openByDefault) -> return false if !fromDevice or !toDevice return true if toDevice.uuid == fromDevice.uuid return true if toDevice.owner == fromDevice.uuid return _.contains(whit...
util = require "./util" bcrypt = require "bcrypt" _ = require "lodash" checkLists = (fromDevice, toDevice, whitelist, blacklist, openByDefault) -> return false if !fromDevice or !toDevice return true if toDevice.uuid == fromDevice.uuid return true if toDevice.owner == fromDevice.uuid return _.contains(whit...
Allow sending messages to non-whitelisted devices by default
Allow sending messages to non-whitelisted devices by default
CoffeeScript
mit
Qbitus/meshblu,masato/meshblu-dev,osokay/IotServerCore,atyenoria/meshblu,masato/meshblu,octoblu/meshblu,ChemTics/meshblu,ChemTics/meshblu,osokay/IotServerCore,dommert/meshblu,osokay/IotServerCore,octoblu/meshblu,jaambee/meshblu,masato/meshblu,dommert/meshblu,jaambee/meshblu,atyenoria/meshblu,masato/meshblu-dev,Qbitus/m...
fe10a6efe9686a16e7e4755b45e1cc4c5934c6a9
packages/rocketchat-highlight-words/client.coffee
packages/rocketchat-highlight-words/client.coffee
### # Hilights is a named function that will process Highlights # @param {Object} message - The message object ### class HighlightWordsClient constructor: (message) -> msg = message if not _.isString message if _.trim message.html msg = message.html else return message to_hi...
### # Hilights is a named function that will process Highlights # @param {Object} message - The message object ### class HighlightWordsClient constructor: (message) -> msg = message if not _.isString message if _.trim message.html msg = message.html else return message to_hi...
Decrease the callback priority of highlight words
Decrease the callback priority of highlight words
CoffeeScript
mit
ziedmahdi/Rocket.Chat,k0nsl/Rocket.Chat,marzieh312/Rocket.Chat,nishimaki10/Rocket.Chat,ealbers/Rocket.Chat,pkgodara/Rocket.Chat,VoiSmart/Rocket.Chat,abduljanjua/TheHub,ggazzo/Rocket.Chat,pachox/Rocket.Chat,intelradoux/Rocket.Chat,Gudii/Rocket.Chat,pachox/Rocket.Chat,subesokun/Rocket.Chat,pkgodara/Rocket.Chat,mwharrison...
9b4c6bf752a3cc8835c1f6e3dd0ea1474e30490e
test/signers/presign.spec.coffee
test/signers/presign.spec.coffee
helpers = require('../helpers') AWS = helpers.AWS describe 'AWS.Signers.Presign', -> it 'presigns requests', -> spyOn(AWS.util.date, 'getDate').andReturn(new Date(0)) resultUrl = 'https://monitoring.mock-region.amazonaws.com/?' + 'Action=ListMetrics&Version=2010-08-01&' + 'X-Amz-Algorithm=AWS4-HM...
Add unit tests for presigned URLs
Add unit tests for presigned URLs
CoffeeScript
apache-2.0
Blufe/aws-sdk-js,grimurjonsson/aws-sdk-js,prestomation/aws-sdk-js,mohamed-kamal/aws-sdk-js,jeskew/aws-sdk-js,prembasumatary/aws-sdk-js,guymguym/aws-sdk-js,misfitdavidl/aws-sdk-js,GlideMe/aws-sdk-js,grimurjonsson/aws-sdk-js,LiuJoyceC/aws-sdk-js,michael-donat/aws-sdk-js,mapbox/aws-sdk-js,j3tm0t0/aws-sdk-js,jmswhll/aws-sd...
bdae3ff2dd8a226444cf99323f996d069e430e36
spec/grammar-registry-spec.coffee
spec/grammar-registry-spec.coffee
GrammarRegistry = require '../lib/grammar-registry' describe "GrammarRegistry", -> describe "grammar overrides", -> it "stores the override scope name for a path", -> registry = new GrammarRegistry() expect(registry.grammarOverrideForPath('foo.js.txt')).toBeUndefined() expect(registry.grammarO...
Add specs for grammar overrides
Add specs for grammar overrides
CoffeeScript
mit
hansonw/first-mate,rameshvarun/first-mate,soldair/first-mate,klorenz/first-mate-manual-fork,wiggzz/first-mate,Talon1024/first-mate,atom/first-mate,burodepeper/first-mate
b42ee8473238568bd7c3c8cd5658862d0b02ba33
lib/load-paths-task.coffee
lib/load-paths-task.coffee
_ = require 'underscore' BufferedProcess = require 'buffered-process' $ = require 'jquery' module.exports = class LoadPathsTask constructor: (@callback) -> start: -> rootPath = project.getPath() ignoredNames = config.get('fuzzyFinder.ignoredNames') ? [] ignoredNames = ignoredNames.concat(config.get('c...
_ = require 'underscore' BufferedProcess = require 'buffered-process' $ = require 'jquery' module.exports = class LoadPathsTask constructor: (@callback) -> start: -> rootPath = project.getPath() ignoredNames = config.get('fuzzyFinder.ignoredNames') ? [] ignoredNames = ignoredNames.concat(config.get('c...
Use long opts for readability
Use long opts for readability
CoffeeScript
mit
Spy-Seth/fuzzy-finder,atom/fuzzy-finder,Kerruba/fuzzy-finder,nielsAD/fuzzy-finder,viddo/fuzzy-finder,pombredanne/fuzzy-finder,toshi-saito/fuzzy-finder,pombredanne/fuzzy-finder,Spy-Seth/fuzzy-finder,Kerruba/fuzzy-finder,viddo/fuzzy-finder,segiddins/fuzzy-finder,gvanderest/fuzzy-finder,gvanderest/fuzzy-finder,nielsAD/fuz...
d10ac5e8348305f32e8448acb2c12e1538c9ff3b
test/common-utils.spec.coffee
test/common-utils.spec.coffee
debug = require('debug')('spec:common-utils') _ = require 'underscore' _.mixin require 'underscore-mixins' {CommonUtils} = require '../lib' {ExtendedLogger} = require 'sphere-node-utils' package_json = require '../package.json' sampleObjectCollection = [ action: 'addPlainEnumValue' attributeName: 'sample-enum-attr...
Add -> tests for common utils.
Add -> tests for common utils.
CoffeeScript
mit
sphereio/sphere-product-import
8e275c52795d41197dd1a8bd5e219d4848ba8fe6
app/assets/javascripts/dot_ledger/collections/index.js.coffee
app/assets/javascripts/dot_ledger/collections/index.js.coffee
#= require_self #= require_tree . DotLedger.module 'Collections', -> class @Base extends Backbone.Collection parse: (response, options)-> @_fetch_options_data = options.data || {} @pagination = JSON.parse options.xhr.getResponseHeader('X-Pagination') @metadata = JSON.parse options.xhr.getRespon...
#= require_self #= require_tree . DotLedger.module 'Collections', -> class @Base extends Backbone.Collection pagination: {} metadata: {} parse: (response, options)-> @_fetch_options_data = options.data || {} @pagination = JSON.parse options.xhr.getResponseHeader('X-Pagination') @metad...
Set default metadata and pagination hashes.
Set default metadata and pagination hashes.
CoffeeScript
apache-2.0
malclocke/dotledger,pipeline/dotledger,amorphid/dotledger,dotledger/dotledger,pipeline/dotledger,amorphid/dotledger,amorphid/dotledger,dotledger/dotledger,dotledger/dotledger,dotledger/dotledger,pipeline/dotledger,malclocke/dotledger,malclocke/dotledger
d939e3e2ec458bed38b44db9703a4fce745285d7
js/tests/changelog-tests.coffee
js/tests/changelog-tests.coffee
j.describe "changelog", -> j.it "should have correct twitter", -> @expect(CI.outer.changelog.twitter("pbiggar")).toEqual "https://twitter.com/pbiggar" @expect(CI.outer.changelog.twitter("notarealuser")).toThrow
Add tests that changelog loads
Add tests that changelog loads
CoffeeScript
epl-1.0
circleci/frontend,circleci/frontend,RayRutjes/frontend,circleci/frontend,prathamesh-sonpatki/frontend,RayRutjes/frontend,prathamesh-sonpatki/frontend
f6ad3ce674e2e0316f4fad538f2951d05323275c
lib/processor._coffee
lib/processor._coffee
DeepZoomImage = require 'deepzoomtools' path = require 'path' # Defaults DEFAULT_TILE_SIZE = 254 DEFAULT_TILE_OVERLAP = 1 DEFAULT_FORMAT = 'jpg' # Public API module.exports = class Processor constructor: (@path) -> process: (source, _) -> destination = path.join @path, path.basename source DeepZoomImage...
Add `Processor` for creating DZIs
Add `Processor` for creating DZIs
CoffeeScript
mit
zoomhub/zoomhub,zoomhub/zoomhub,zoomhub/zoomhub,zoomhub/zoomhub
f12fa798501dd3a6941c91d6fb390409d8bdc319
app/scripts/lib/fuzzy-search.coffee
app/scripts/lib/fuzzy-search.coffee
define ["underscore"], (_) -> class FuzzySearch WEIGHT_SEPARATOR_REGEX = /(\_|\-|\.)/gi match: (search, text) -> chars = _splitChars search # Escape non alphanumerical chars for char, i in chars if /\W/.test char chars[i] = "\\#{char}" new RegExp(chars.join(".*"), ...
Include fuzzy search lib from old repo
Include fuzzy search lib from old repo
CoffeeScript
mit
JoelBesada/Backtick
e183cbeecc3284fc5177dbe6e4829c5a6b3e571b
app/assets/javascripts/extensions/custom_file_inputs.coffee
app/assets/javascripts/extensions/custom_file_inputs.coffee
# Overwrites text with filename for BS4 custom-file fields in # app/views/forms/[horizontal|vertical]/_file_field.html.haml # when files are selected. $(document) .on("change", ".custom-file-input", -> fileNameStart = $(this).val().lastIndexOf("\\") fileName = $(this).val().substr(fileNameStart + 1); text...
Fix file inputs not displaying selected file name
Fix file inputs not displaying selected file name
CoffeeScript
mit
myapnea/www.myapnea.org,myapnea/www.myapnea.org,myapnea/www.myapnea.org
2800c105228ddd35ace4501f5cb8c731f4e20a6f
src/coffee/kopi/utils/klass.coffee
src/coffee/kopi/utils/klass.coffee
kopi.module("kopi.utils.klass") .require("kopi.exceptions") .require("kopi.utils") .define (exports, exceptions, utils) -> extend = (klass, mixin) -> for name, method of mixin klass[name] = method klass include = (klass, mixin) -> for name, method of mixin.prototype kla...
Add some helper methods for classes
Add some helper methods for classes
CoffeeScript
mit
wuyuntao/kopi,wuyuntao/kopi,wuyuntao/kopi,wuyuntao/kopi
bff57e53f039c23e3bf848f28ef534c7caaa4264
src/stdlib/task.coffee
src/stdlib/task.coffee
_ = require 'underscore' child_process = require 'child_process' EventEmitter = require 'event-emitter' module.exports = class Task callback: null constructor: (taskPath) -> bootstrap = """ require('coffee-script'); require('coffee-cache').setCacheDir('/tmp/atom-coffee-cache'); require('task...
_ = require 'underscore' child_process = require 'child_process' EventEmitter = require 'event-emitter' module.exports = class Task callback: null constructor: (taskPath) -> bootstrap = """ require('coffee-script'); require('coffee-cache').setCacheDir('/tmp/atom-coffee-cache'); require('task...
Throw error when starting terminated process
Throw error when starting terminated process
CoffeeScript
mit
me6iaton/atom,deepfox/atom,GHackAnonymous/atom,jjz/atom,Dennis1978/atom,Rychard/atom,pkdevbox/atom,hpham04/atom,bradgearon/atom,efatsi/atom,yangchenghu/atom,tanin47/atom,mertkahyaoglu/atom,RobinTec/atom,chfritz/atom,nvoron23/atom,dsandstrom/atom,FoldingText/atom,boomwaiza/atom,crazyquark/atom,charleswhchan/atom,bradgea...
dc206eefe0827b6958fe94f5756c664280ec3903
components/zoom/index.coffee
components/zoom/index.coffee
modalize = require '../modalize/index.coffee' module.exports = (src) -> (img = new Image).src = src $img = $("<img src='#{src}'>") modal = modalize render: -> $el: $img modal.load (done) -> $img.on 'load', -> modal.view.dimensions.width = img.width done()
Implement refactored zoom component using Modalize
Implement refactored zoom component using Modalize
CoffeeScript
mit
mzikherman/force,damassi/force,dblock/force,anandaroop/force,kanaabe/force,erikdstock/force,artsy/force-public,eessex/force,damassi/force,joeyAghion/force,mzikherman/force,kanaabe/force,oxaudo/force,erikdstock/force,izakp/force,yuki24/force,cavvia/force-1,artsy/force,eessex/force,oxaudo/force,joeyAghion/force,mzikherma...
ed6ff75720948e506d34d25bc4768adc337b1e0a
server/controllers/index.coffee
server/controllers/index.coffee
async = require 'async' Account = require '../models/account' CozyInstance = require '../models/cozy_instance' fixtures = require 'cozy-fixtures' module.exports.main = (req, res, next) -> async.parallel [ (cb) -> CozyInstance.getLocale cb (cb) -> Account.getAll cb ], (err, results) -> ...
async = require 'async' Account = require '../models/account' CozyInstance = require '../models/cozy_instance' fixtures = require 'cozy-fixtures' module.exports.main = (req, res, next) -> async.parallel [ (cb) -> CozyInstance.getLocale cb (cb) -> Account.getAll cb ], (err, results) -> ...
Improve logging when Cozy instance goes down
Improve logging when Cozy instance goes down
CoffeeScript
agpl-3.0
poupotte/cozy-emails,kelukelu/cozy-emails,nono/cozy-emails,cozy/cozy-emails,robinmoussu/cozy-emails,kelukelu/cozy-emails,lemelon/cozy-emails,frankrousseau/cozy-emails,m4dz/cozy-emails,aenario/cozy-emails,robinmoussu/cozy-emails,clochix/cozy-emails,poupotte/cozy-emails,cozy/cozy-emails,cozy-labs/emails,clochix/cozy-emai...
4b4956294915977db0d31552d754044d82b690c6
src/packages/gists/lib/gists.coffee
src/packages/gists/lib/gists.coffee
$ = require 'jquery' {$$} = require 'space-pen' module.exports = class Gists @activate: -> new Gists constructor: -> rootView.command 'gist:create', '.editor', => @createGist() createGist: -> editor = rootView.getActiveView() return unless editor? gist = { public: false, files: {} } gist.f...
$ = require 'jquery' {$$} = require 'space-pen' module.exports = class Gists @activate: -> new Gists constructor: -> rootView.command 'gist:create', '.editor', => @createGist() createGist: -> editor = rootView.getActiveView() return unless editor? gist = { public: false, files: {} } gist.fi...
Add token to request when available
Add token to request when available
CoffeeScript
mit
jtrose2/atom,avdg/atom,dsandstrom/atom,targeter21/atom,johnhaley81/atom,AlisaKiatkongkumthon/atom,dannyflax/atom,avdg/atom,kc8wxm/atom,john-kelly/atom,sebmck/atom,rxkit/atom,woss/atom,ezeoleaf/atom,kdheepak89/atom,mdumrauf/atom,atom/atom,Klozz/atom,Andrey-Pavlov/atom,0x73/atom,gontadu/atom,paulcbetts/atom,G-Baby/atom,b...
ec47a0f53e0eed3086b8c3eb9f109424fa2137fc
shared/test/components/exercise/two-step-help-mixin.spec.coffee
shared/test/components/exercise/two-step-help-mixin.spec.coffee
{Testing, expect, sinon, _, React} = require 'test/helpers' TwoStepHelpMixin = require 'components/exercise/two-step-help-mixin' Networking = require 'model/networking' TestComponent = React.createClass mixins: [TwoStepHelpMixin] render: -> return @renderTwoStepHelp() if @hasTwoStepHelp() <span>No Help D...
Test two step help component/mixin
Test two step help component/mixin
CoffeeScript
agpl-3.0
openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js
bdeaa9d780d449af245d276467d0fbeb806e32eb
app/assets/javascripts/components/team-table.js.coffee
app/assets/javascripts/components/team-table.js.coffee
{div, table, thead, tbody, tr, th, td} = React.DOM table_headers = [ "Team" "Win %" "Wins" "Losses" "Ties" ] @TeamTable = React.createClass propTypes: teams: React.PropTypes.array render: -> div className: "league--table-container", table className: "league--table", thead className: "league--table-...
Create team table to display lifetime team standings for a league
Create team table to display lifetime team standings for a league
CoffeeScript
mit
maxkohl88/fantasy_tracker,maxkohl88/fantasy_tracker,maxkohl88/fantasy_tracker
0bb2db638c73e14e5b797bc642b3f2b2130efe26
app/assets/javascripts/outpost/context_options.js.coffee
app/assets/javascripts/outpost/context_options.js.coffee
# Set an element to display for any input(e.g. select) depending on its value. # Typically, this element would contain some options, but it could be # pretty much anything. class outpost.ContextOptions defaults: {} constructor: (@options={}) -> _.defaults @options, @defaults # Elements ...
Add a simple way to show/hide elements containing contextual options for an input.
Add a simple way to show/hide elements containing contextual options for an input.
CoffeeScript
mit
SCPR/outpost,SCPR/outpost,SCPR/outpost
62af886f627e482bb31aa12786930c0126c951dd
app/components/resource-input.cjsx
app/components/resource-input.cjsx
React = require 'react' ChangeListener = require './change-listener' handleInputChange = require '../lib/handle-input-change' module.exports = React.createClass displayName: 'ResourceInput' getDefaultProps: -> type: '' resource: null attribute: '' autoSaveDelay: 5000 getInitialState: -> edi...
Add an experimental resource-bound auto-saving input
Add an experimental resource-bound auto-saving input
CoffeeScript
apache-2.0
marten/Panoptes-Front-End,marten/Panoptes-Front-End,camallen/Panoptes-Front-End,aliburchard/Panoptes-Front-End,alexbfree/Panoptes-Front-End,edpaget/Panoptes-Front-End,fmnhExhibits/Panoptes-Front-End,alexbfree/Panoptes-Front-End,fmnhExhibits/Panoptes-Front-End,CKrawczyk/Panoptes-Front-End,camallen/Panoptes-Front-End,par...
ce5b5e64da4ac5061011fac2ea082501f7d8ee96
test/coffiew/config.coffee
test/coffiew/config.coffee
# Tests configuration. # # Author: Andy Zhao(andy@nodeswork.com) config = require 'coffiew/config' describe 'Config', -> describe 'env', -> it 'should run in nodes', -> config.env.isNode.should.be.true
Add env and it's related test.
Add env and it's related test.
CoffeeScript
mit
andyzhau/coffiew
139cf44daf840a7e9c7af27b54180a01cf6c9bf4
app/api/package.coffee
app/api/package.coffee
# ______ ______ ______ __ __ ______ __ ______ # /\__ _\ /\ == \ /\ __ \ /\ "-.\ \ /\___ \ /\ \ /\__ _\ # \/_/\ \/ \ \ __< \ \ __ \ \ \ \-. \ \/_/ /__ \ \ \ \/_/\ \/ # \ \_\ \ \_\ \_\ \ \_\ \_\ \ \_\\"\_\ /\_____\ \ \_\ \ \_\ # \/_/ \/_/ /_/ \/_/...
Package server API file w/header
Package server API file w/header
CoffeeScript
mit
jluchiji/tranzit
9b5d5de195ecd2b4f3c5649a45d9ba3c49064be0
menus/keybinding-resolver.cson
menus/keybinding-resolver.cson
'menu': [ { 'label': 'Packages' 'submenu': [ 'label': 'Keybinding Resolver' 'submenu': [ { 'label': 'Toggle', 'command': 'key-binding-resolver:toggle' } ] ] } ]
Add menu item to toggle
Add menu item to toggle This is helpful when things are going really wrong keybinding-wise
CoffeeScript
mit
atom/keybinding-resolver
bf7c4e1464488af534cb49eef53d7402d2ff9fda
app/routes/main-tab.coffee
app/routes/main-tab.coffee
`import TravisRoute from 'travis/routes/basic'` Route = TravisRoute.extend renderTemplate: -> @render 'repo' @render 'build', into: 'repo' setupController: -> @_super.apply this, arguments @controllerFor('repo').activate('index') @controllerFor('repos').activate(@get('reposTabName')) @cu...
`import TravisRoute from 'travis/routes/basic'` Route = TravisRoute.extend renderTemplate: -> @render 'repo' @render 'build', into: 'repo' setupController: -> @_super.apply this, arguments @controllerFor('repo').activate('index') @controllerFor('repos').activate(@get('reposTabName')) @cu...
Fix viewing repo after viewing all repos on safari
Fix viewing repo after viewing all repos on safari When transitioning from recent route to a specific repo deactivate is not called for some reason on Safari. It seems like a bug in Ember.js, but I need to investigate more. A solution is to also try to remove observer in reset controller
CoffeeScript
mit
jlrigau/travis-web,Tiger66639/travis-web,Tiger66639/travis-web,mjlambert/travis-web,travis-ci/travis-web,travis-ci/travis-web,travis-ci/travis-web,2947721120/travis-web,fotinakis/travis-web,Tiger66639/travis-web,2947721120/travis-web,2947721120/travis-web,fauxton/travis-web,jlrigau/travis-web,fauxton/travis-web,jlrigau...
29635ea778f871d84afd7495034c11ec929b89b6
server/methods/loadLocale.coffee
server/methods/loadLocale.coffee
Meteor.methods loadLocale: (locale) -> console.log "[method] loadLocale: #{locale}".green try return Assets.getText "moment-locales/#{locale.toLowerCase()}.js" catch e console.log e
Create method to load locale from private
Create method to load locale from private
CoffeeScript
mit
umeshrs/rocket-chat-integration,jeanmatheussouto/Rocket.Chat,atyenoria/Rocket.Chat,amaapp/ama,berndsi/Rocket.Chat,LearnersGuild/echo-chat,ahmadassaf/Rocket.Chat,yuyixg/Rocket.Chat,kkochubey1/Rocket.Chat,jbsavoy18/rocketchat-1,qnib/Rocket.Chat,TribeMedia/Rocket.Chat,subesokun/Rocket.Chat,jyx140521/Rocket.Chat,fduraibi/R...
08720a769ee9e6db0e4b0a9ef80ecb0d41b6ca4a
scripts/keepalive.coffee
scripts/keepalive.coffee
# Description: # Utility commands surrounding Hubot uptime. # # Commands: # hubot stay alive - Try keep hubot alive stayingalive = false module.exports = (robot) -> robot.respond /(stay alive$/i, (msg) -> if stayingalive msg.send 'Already staying alive.' else startKeepAlive msg, (text) -> ...
Add attempt at keep alive.
Add attempt at keep alive.
CoffeeScript
mit
jsnke/taanzbot
733e06fa8c5e1424aa267f3f4a2475c2aa3d7c9b
dot-atom/keymap.cson
dot-atom/keymap.cson
# Your keymap # # Atom keymaps work similarly to stylesheets. Just as stylesheets use selectors # to apply styles to elements, Atom keymaps use selectors to associate # keystrokes with events in specific contexts. # # You can create a new keybinding in this file by typing "key" and then hitting # tab. # # Here's an exa...
# Your keymap # # Atom keymaps work similarly to stylesheets. Just as stylesheets use selectors # to apply styles to elements, Atom keymaps use selectors to associate # keystrokes with events in specific contexts. # # You can create a new keybinding in this file by typing "key" and then hitting # tab. # # Here's an exa...
Use shift in the example rather than explaining the difference
Use shift in the example rather than explaining the difference
CoffeeScript
mit
amine7536/atom,me6iaton/atom,folpindo/atom,burodepeper/atom,KENJU/atom,githubteacher/atom,gzzhanghao/atom,batjko/atom,jtrose2/atom,sxgao3001/atom,isghe/atom,Austen-G/BlockBuilder,sebmck/atom,MjAbuz/atom,basarat/atom,hagb4rd/atom,deoxilix/atom,ivoadf/atom,deoxilix/atom,florianb/atom,lisonma/atom,chfritz/atom,RuiDGoncalv...
e23253b61d3fd994f764c4fae0f9c92e9bb59b81
app/assets/javascripts/votes.js.coffee
app/assets/javascripts/votes.js.coffee
$(document).ready -> $(".vote-form").on 'ajax:success', (event, xhr, status) -> if xhr.vote_type_id == 1 $(this).find('.upvote').addClass('vote-active') else if xhr.vote_type_id == 2 $(this).find('.downvote').addClass('vote-active') $(".vote-form").on 'ajax:error', (event, xhr, status) -> #...
Update the upvote arrows on ajax submit
Update the upvote arrows on ajax submit
CoffeeScript
mit
thomas-mcdonald/qa,thomas-mcdonald/qa,thomas-mcdonald/qa,thomas-mcdonald/qa
e8a6ee2916932aca183c943d3d895a17ae238256
spec/config-spec.coffee
spec/config-spec.coffee
describe 'Linter Config', -> linter = null beforeEach -> waitsForPromise -> atom.packages.activatePackage('linter').then -> linter = atom.packages.getActivePackage('linter').mainModule.instance getLinter = -> return {grammarScopes: ['*'], lintOnFly: false, modifiesBuffer: false, scope: 'pro...
Add a spec about ignoredMessageTypes config
:new: Add a spec about ignoredMessageTypes config
CoffeeScript
mit
DanPurdy/linter,AtomLinter/Linter,atom-community/linter,JohnMurga/linter,shawninder/linter,UltCombo/linter,Arcanemagus/linter,steelbrain/linter,AsaAyers/linter,blakeembrey/linter,levity/linter,e-jigsaw/Linter
e1ac21aa7a0493ce95bfe45b8d96bc021f2f9ac4
script/translate-crash-log-addresses.coffee
script/translate-crash-log-addresses.coffee
#!/usr/bin/env coffee # Usage: # Copy the crash log into pasteboard and then run # pbpaste | ./script/translate-crash-log-addresses.coffee atos = (addresses, callback) -> path = require 'path' exec = require('child_process').exec exec 'atos -o vendor/brightray/vendor/download/libchromiumcontent/Release/libchrom...
Add script translate addresses in crash report into symbols.
Add script translate addresses in crash report into symbols.
CoffeeScript
mit
christian-bromann/electron,simonfork/electron,jsutcodes/electron,joneit/electron,brave/electron,astoilkov/electron,bright-sparks/electron,rreimann/electron,jjz/electron,the-ress/electron,JussMee15/electron,tincan24/electron,voidbridge/electron,tylergibson/electron,LadyNaggaga/electron,BionicClick/electron,LadyNaggaga/e...
2c9d175ea4d16a83d8e6a23f4ad86116e511c8d8
src/coffee-cache.coffee
src/coffee-cache.coffee
crypto = require 'crypto' path = require 'path' CoffeeScript = require 'coffee-script' CSON = require 'season' fs = require 'fs-plus' cacheDir = path.join(fs.absolute('~/.atom'), 'compile-cache') coffeeCacheDir = path.join(cacheDir, 'coffee') CSON.setCacheDir(path.join(cacheDir, 'cson')) getCachePath = (coffee) -> ...
Copy over Coffee Cache from Atom
Copy over Coffee Cache from Atom
CoffeeScript
mit
atom/electron-starter,xmail-client/xmail,liuxiong332/xmail,sebmck/atom-shell-starter,xmail-client/xmail,sebmck/atom-shell-starter,kittens/atom-shell-starter,sebmck/atom-shell-starter,liuxiong332/xmail,kittens/atom-shell-starter,xmail-client/xmail,atom-archive/electron-starter,liuxiong332/xmail,amine7536/electron-starte...
24820f57df9ac141eac7557041c5dd945e69a159
app/assets/javascripts/admin/admin.js.coffee
app/assets/javascripts/admin/admin.js.coffee
jQuery -> $('.locales a:first').tab('show') $('.accordion-body').on('hidden', -> $(@).prev().find('i').first().removeClass().addClass('icon-chevron-right') ) $('.accordion-body').on('shown', -> $(@).prev().find('i').first().removeClass().addClass('icon-chevron-down')) $('body').o...
jQuery -> $('.locales a:first').tab('show') $('.accordion-body').on('hidden', -> $(@).prev().find('i').first().removeClass().addClass('icon-chevron-right') ) $('.accordion-body').on('shown', -> $(@).prev().find('i').first().removeClass().addClass('icon-chevron-down')) $('.toggle-...
Fix syntax error in on() method.
Fix syntax error in on() method. Looks like this was a mistake in ec2999ef8c233d30c46dd5181e246916b0145606
CoffeeScript
agpl-3.0
nzherald/alaveteli,andreicristianpetcu/alaveteli,Br3nda/alaveteli,4bic/alaveteli,andreicristianpetcu/alaveteli_old,Br3nda/alaveteli,4bic/alaveteli,andreicristianpetcu/alaveteli_old,andreicristianpetcu/alaveteli_old,andreicristianpetcu/alaveteli_old,andreicristianpetcu/alaveteli,nzherald/alaveteli,4bic/alaveteli,andreic...
69e635579f434ededec2bdbb025dd406bc2e9eee
_source/client/helpers/dependency-fix.coffee
_source/client/helpers/dependency-fix.coffee
# Patch for this issue https://github.com/meteor/meteor/issues/4793 # Found here: https://github.com/meteor/meteor/issues/4793#issuecomment-129930335 # # Fixes issue with dependencies invalidating on change in Chrome producing this error: # TypeError: Cannot read property 'invalidate' of undefined # # Meteor core te...
Patch issue with dependency tracking in Chrome
Patch issue with dependency tracking in Chrome
CoffeeScript
mit
NewSpring/apollos-core
16d9835e208f4d528832d630f96e00056c867799
src/tools/github.coffee
src/tools/github.coffee
### GitHub API ### exports.api = -> "#{PACKAGE.homepage .replace /// // ///, '$&api.' .replace /// \w/ ///, '$&repos/' }/tags?per_page=8"
Build GItHub API tags URL
Build GItHub API tags URL
CoffeeScript
isc
ukoloff/nvms
53b7a6a419d573ceb2debdec16ddbbacdfc7a7f9
atom/dot-atom/projects.glasbren-oryxpro.cson
atom/dot-atom/projects.glasbren-oryxpro.cson
[ { title: "Spyns" group: "Development" paths: [ "~/Development/spyns" ] } { title: "CSI-702: Homework02 Instructor Attempt" group: "Mason Fall 2017" paths: [ "~/Documents/work/teaching/2017_Spring_Semester/CSI-702_High_Performance_Computing/assignments/homework02-instructo...
Add projects definitions for atom
Add projects definitions for atom
CoffeeScript
unlicense
jkglasbrenner/dotfiles,jkglasbrenner/dotfiles,jkglasbrenner/dotfiles,jkglasbrenner/dotfiles,jkglasbrenner/dotfiles,jkglasbrenner/dotfiles
13c739a5d6f5bcc02af7604481dbce106bf14d98
components/simple_contact/views/index.coffee
components/simple_contact/views/index.coffee
Backbone = require 'backbone' Form = require '../../form/index.coffee' CurrentUser = require '../../../models/current_user.coffee' module.exports = class ContactView extends Backbone.View className: 'scontact' template: (->) events: 'click button': 'submit' initialize: -> @user = CurrentUser.orNull(...
Backbone = require 'backbone' Form = require '../../form/index.coffee' CurrentUser = require '../../../models/current_user.coffee' module.exports = class ContactView extends Backbone.View className: 'scontact' template: (->) events: 'click button': 'submit' initialize: (options = {}) -> @user = opti...
Allow user to be passed in
Allow user to be passed in
CoffeeScript
mit
cavvia/force-1,mzikherman/force,erikdstock/force,izakp/force,yuki24/force,yuki24/force,mzikherman/force,cavvia/force-1,anandaroop/force,oxaudo/force,artsy/force,cavvia/force-1,xtina-starr/force,joeyAghion/force,artsy/force,kanaabe/force,xtina-starr/force,joeyAghion/force,artsy/force,anandaroop/force,oxaudo/force,erikds...
705caa8700926c855599cf3809211f9f7b79b6f8
src/scripts/pgsql.coffee
src/scripts/pgsql.coffee
# Description: # Strip help information from the Postgres web documentation. # Example: hubot pgsql 9.0 select # # Dependencies: # None # # Configuration: # None # # Commands: # hubot pgsql <version> <sql> # # Author: # mwongatemma module.exports = (robot) -> robot.respond /pgsql\s+(\d.\d)?\s+(.+)$/i, (m...
Add script to look up postgres sql statements
Add script to look up postgres sql statements
CoffeeScript
mit
zecahnin/hubot-scripts,justinwoo/hubot-scripts,arcaartem/hubot-scripts,alexhouse/hubot-scripts,fromonesrc/hubot-scripts,dyg2104/hubot-scripts,chauffer/hubot-scripts,ambikads/hubot-scripts,magicstone1412/hubot-scripts,Tyriont/hubot-scripts,n0mer/hubot-scripts,Ev1l/hubot-scripts,wsoula/hubot-scripts,GrimDerp/hubot-script...
151fccbd101d56396a33207f055f86d9f6fb4dd8
SingularityUI/app/collections/Webhooks.coffee
SingularityUI/app/collections/Webhooks.coffee
Collection = require './collection' class Webhooks extends Collection model: require '../models/Webhook' url: "#{ env.SINGULARITY_BASE }/#{ constants.apiBase }/webhooks" parse: (webhooks) => _.each webhooks, (webhook, i) => webhooks[i] = url: webhook webhooks comparator...
Collection = require './collection' class Webhooks extends Collection model: require '../models/Webhook' url: "#{ env.SINGULARITY_BASE }/#{ constants.apiBase }/webhooks" parse: (webhooks) => _.map webhooks, (webhook) -> url: webhook comparator: 'url' module.exports = Webhooks
Clean up Webhook parse method
Clean up Webhook parse method
CoffeeScript
apache-2.0
grepsr/Singularity,calebTomlinson/Singularity,hs-jenkins-bot/Singularity,acbellini/Singularity,mjball/Singularity,mjball/Singularity,tejasmanohar/Singularity,hs-jenkins-bot/Singularity,nvoron23/Singularity,grepsr/Singularity,nvoron23/Singularity,acbellini/Singularity,acbellini/Singularity,HubSpot/Singularity,stevenschl...
e7726aa20128a67b4667f800dc258fed37668e8f
spec/color-project-element-spec.coffee
spec/color-project-element-spec.coffee
describe 'ColorProjectElement', -> [pigments, project, projectElement] = [] beforeEach -> jasmineContent = document.body.querySelector('#jasmine-content') waitsForPromise -> atom.packages.activatePackage('pigments').then (pkg) -> pigments = pkg.mainModule project = pigments.getProject() ...
Add test stub for color project element
:construction: Add test stub for color project element
CoffeeScript
mit
peter1000/atom-pigments,peter1000/atom-pigments
7d76f020bbf14df18137d455b19e23ca8e29c4f9
test/javascripts/components/question_component_test.js.coffee
test/javascripts/components/question_component_test.js.coffee
module 'Unit: components/question' test 'its model will come from its tasks questions by ident', -> q1 = Ember.Object.create(ident: "foo") q2 = Ember.Object.create(ident: "bar") task = Ember.Object.create(questions: [q1, q2]) component = ETahi.QuestionComponent.create(task: task, ident: "bar") equal componen...
Test question component's model logic.
Test question component's model logic.
CoffeeScript
mit
johan--/tahi,johan--/tahi,johan--/tahi,johan--/tahi