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
69c9ed3febb9a090954aa31ea3f8cefcab5da551
src/stdlib/task-shell.coffee
src/stdlib/task-shell.coffee
eval("window = {};") eval("attachEvent = function(){};") eval("console = {};") console.warn = -> self.postMessage type: 'warn' details: arguments console.log = -> self.postMessage type: 'log' details: arguments self.addEventListener 'message', (event) -> switch event.data.type when 'start' ...
self.window = {} self.attachEvent = -> self.console = warn: -> self.postMessage type: 'warn' details: arguments log: -> self.postMessage type: 'log' details: arguments self.addEventListener 'message', (event) -> switch event.data.type when 'start' window.resourcePath = e...
Use self instead of hacky eval
Use self instead of hacky eval
CoffeeScript
mit
crazyquark/atom,johnrizzo1/atom,matthewclendening/atom,dannyflax/atom,wiggzz/atom,erikhakansson/atom,liuderchi/atom,charleswhchan/atom,dkfiresky/atom,matthewclendening/atom,targeter21/atom,Mokolea/atom,FIT-CSE2410-A-Bombs/atom,jlord/atom,AlbertoBarrago/atom,bolinfest/atom,nvoron23/atom,stuartquin/atom,ReddTea/atom,jtro...
2df83c13f12dd186481de2c53a358d897e6c0bf2
src/scripts/harvest.coffee
src/scripts/harvest.coffee
# Description: # Allows Hubot to interact with Harvest's (http://harvestapp.com) time-tracking # service. # # Dependencies: # None # Configuration: # HUBOT_HARVEST_SUBDOMAIN # The subdomain you access the Harvest service with, e.g. # if you have the Harvest URL http://yourcompany.harvestapp.com # yo...
Add possibility to remember/forget Harvest credentials.
Add possibility to remember/forget Harvest credentials.
CoffeeScript
mit
modulexcite/hubot-scripts,GrimDerp/hubot-scripts,iilab/hubot-scripts,MaxMEllon/hubot-scripts,justinwoo/hubot-scripts,gregburek/emojibot,phillipalexander/hubot-scripts,1000hz/hubot-scripts,wsoula/hubot-scripts,terryjbates/hubot-scripts,amhorton/hubot-scripts,yigitbey/hubot-scripts,ryantomlinson/hubot-scripts,github/hubo...
659196af5b3d15c81e8ee5a5fe4dc356f2008ff2
app/js/jail_iframe/classes/ready_promise.coffee
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/js-library,Factlink/js-library,Factlink/js-library
c48fb039a0c8664e5a6811be5a92ef3088d2d3c9
app/assets/javascripts/styleguide/kss.js.coffee
app/assets/javascripts/styleguide/kss.js.coffee
# Scans stylesheets for pseudo classes, then inserts a new CSS rule with the # same properties, but named 'psuedo-class-{{name}}'. # # Supported pseudo classes: hover, disabled, active, visited, focus, checked. # # Example: # # a:hover { color: blue; } # => a.pseudo-class-hover { color: blue; } pseudos = /(\:hover...
Add KSS javascript to handle CSS pseudo classes
Add KSS javascript to handle CSS pseudo classes
CoffeeScript
mit
moneyadviceservice/frontend,moneyadviceservice/frontend,moneyadviceservice/frontend,moneyadviceservice/frontend
b4f911f6d39d263adb9a9f966f8399b5972db265
build/tasks/output-for-loop-returns.coffee
build/tasks/output-for-loop-returns.coffee
path = require 'path' module.exports = (grunt) -> grunt.registerTask 'output-for-loop-returns', 'Log methods that end with a for loop', -> appDir = grunt.config.get('atom.appDir') jsPaths = [] grunt.file.recurse path.join(appDir, 'src'), (absolutePath, rootPath, relativePath, fileName) -> jsPaths....
Add task to log loop returns
Add task to log loop returns
CoffeeScript
mit
ali/atom,sxgao3001/atom,Ingramz/atom,jacekkopecky/atom,toqz/atom,mertkahyaoglu/atom,hharchani/atom,bencolon/atom,ironbox360/atom,nvoron23/atom,gzzhanghao/atom,sekcheong/atom,Ju2ender/atom,amine7536/atom,rsvip/aTom,anuwat121/atom,kandros/atom,nvoron23/atom,seedtigo/atom,cyzn/atom,jlord/atom,jtrose2/atom,russlescai/atom,...
aba598db0e3ded6e749547e8478691bd8a5d0c7e
client/pricing/lib/views/branchtabhandleview.coffee
client/pricing/lib/views/branchtabhandleview.coffee
kd = require 'kd' KDTabHandleView = kd.TabHandleView module.exports = class BranchTabHandleView extends KDTabHandleView constructor: (options = {}, data) -> options.closable or= no options.closeHandle ?= null super options, data partial: -> { pane, title } = @getOptions() ...
Define new TabHandleView for ui changes.
Pricing: Define new TabHandleView for ui changes.
CoffeeScript
agpl-3.0
cihangir/koding,jack89129/koding,andrewjcasal/koding,drewsetski/koding,cihangir/koding,andrewjcasal/koding,koding/koding,kwagdy/koding-1,alex-ionochkin/koding,kwagdy/koding-1,gokmen/koding,usirin/koding,koding/koding,gokmen/koding,sinan/koding,rjeczalik/koding,jack89129/koding,sinan/koding,drewsetski/koding,szkl/koding...
1379e973bef49b087dfb680756740665e3fe879c
lib/assets/javascripts/cable/connection.js.coffee
lib/assets/javascripts/cable/connection.js.coffee
# Encapsulate the cable connection held by the consumer. This is an internal class not intended for direct user manipulation. class Cable.Connection constructor: (@consumer) -> @open() send: (data) -> if @isOpen() @webSocket.send(JSON.stringify(data)) true else false open: -> r...
# Encapsulate the cable connection held by the consumer. This is an internal class not intended for direct user manipulation. class Cable.Connection constructor: (@consumer) -> @open() send: (data) -> if @isOpen() @webSocket.send(JSON.stringify(data)) true else false open: -> i...
Simplify WebSocket reconnects and guard against opening multiple connections
Simplify WebSocket reconnects and guard against opening multiple connections
CoffeeScript
mit
mathieujobin/reduced-rails-for-travis,sealocal/rails,voray/rails,yasslab/railsguides.jp,tjschuck/rails,arunagw/rails,TheAustinSeven/actioncable,kirs/rails-1,notapatch/rails,pschambacher/rails,yalab/rails,gavingmiller/rails,voray/rails,shioyama/rails,kmcphillips/rails,yawboakye/rails,gauravtiwari/rails,aditya-kapoor/rai...
8e66c7ed240a7f1338778e1034e1f52ed7646665
public/js/sample-proportion.coffee
public/js/sample-proportion.coffee
class App.SampleProportion SD_TO_GRAPH = 5 constructor: (@participants, @conversions) -> @p = @conversions / @participants @sd = this.getStdDev() getStdDev: -> Math.sqrt @p * (1 - @p) / @participants getXAxisRange: -> new App.Range @p - SD_TO_GRAPH * @sd, @p + SD_TO_GRAPH * @sd
Add sample proportion class and basic methods
Add sample proportion class and basic methods
CoffeeScript
mit
mattm/abtestcalculator,mattm/abtestcalculator
c897f42d5190da2e2931ef5609846f9f7fb49ebd
build/tasks/codesign-task.coffee
build/tasks/codesign-task.coffee
path = require 'path' module.exports = (grunt) -> {spawn} = require('./task-helpers')(grunt) grunt.registerTask 'codesign', 'Codesign the app', -> done = @async() if process.platform is 'darwin' and process.env.XCODE_KEYCHAIN unlockKeychain (error) -> if error? done(error) ...
path = require 'path' module.exports = (grunt) -> {spawn} = require('./task-helpers')(grunt) grunt.registerTask 'codesign', 'Codesign the app', -> done = @async() if process.platform is 'darwin' and process.env.XCODE_KEYCHAIN unlockKeychain (error) -> if error? done(error) ...
Use JANKY_SIGNTOOL env var to sign
Use JANKY_SIGNTOOL env var to sign
CoffeeScript
mit
charleswhchan/atom,folpindo/atom,jjz/atom,NunoEdgarGub1/atom,vinodpanicker/atom,hharchani/atom,gabrielPeart/atom,daxlab/atom,FoldingText/atom,stinsonga/atom,rsvip/aTom,crazyquark/atom,Ingramz/atom,kc8wxm/atom,SlimeQ/atom,omarhuanca/atom,chfritz/atom,medovob/atom,tanin47/atom,RobinTec/atom,Abdillah/atom,sebmck/atom,dkfi...
54e9ab7da5bbcaf7c90014f0241cc107c2a8981e
test/src/specs/app/TestHelpers.coffee
test/src/specs/app/TestHelpers.coffee
@expectRequiredParameters = (type, expectedParameterNames) -> originalType = type paramList = {} #check is this is an Abstract type if(type.isAbstract && type.isAbstract()) type = class A extends type #add the super classes parameters so that they arent in the tests if originalType.__super__ && origin...
Add global tests for Expected parameters
Add global tests for Expected parameters
CoffeeScript
mit
jono-tt/App-Engine
02393080ebd6cac39a5979e12292ada0a74f3f03
test/src/specs/app/Routers/AppRouterSpecs.coffee
test/src/specs/app/Routers/AppRouterSpecs.coffee
describe "AppRouter specs", -> describe "Initialise", -> it "should set the correct properties", -> pm = jasmine.createSpyObj("PageManager", ["on"]) pp = jasmine.createSpyObj("ParameterParser", ["on"]) router = new AppEngine.Routers.AppRouter({ pageManager: pm, parameterParser: ...
Add tests for the AppRouter
Add tests for the AppRouter
CoffeeScript
mit
jono-tt/App-Engine
c812ccb3d484db42b2a31e81d0de49889680a5a1
spec/onig-scanner-spec.coffee
spec/onig-scanner-spec.coffee
{OnigScanner} = require '../lib/oniguruma' describe "OnigScanner", -> it "returns the index of the matching pattern", -> scanner = new OnigScanner(["a", "b", "c"]) expect(scanner.findNextMatch("xxaxxbxxc", 0).index).toBe 0 expect(scanner.findNextMatch("xxaxxbxxc", 4).index).toBe 1 expect(scanner.find...
{OnigScanner} = require '../lib/oniguruma' describe "OnigScanner", -> it "returns the index of the matching pattern", -> scanner = new OnigScanner(["a", "b", "c"]) expect(scanner.findNextMatch("x", 0)).toBe null expect(scanner.findNextMatch("xxaxxbxxc", 0).index).toBe 0 expect(scanner.findNextMatch("...
Add assert for null value when no next match
Add assert for null value when no next match
CoffeeScript
mit
alexandrudima/node-oniguruma,atom/node-oniguruma,soldair/node-oniguruma,ceejbot/node-oniguruma,ceejbot/node-oniguruma,atom/node-oniguruma,dimitar-asenov/node-oniguruma,soldair/node-oniguruma,alexandrudima/node-oniguruma,alexandrudima/node-oniguruma,bpasero/node-oniguruma,atom/node-oniguruma,bpasero/node-oniguruma,bpase...
0d831e38c0e97d69759b0e28e86ce5d72e364741
plugins/campfire/index.coffee
plugins/campfire/index.coffee
NotificationPlugin = require "../../notification-plugin" class Campfire extends NotificationPlugin @receiveEvent: (config, event, callback) -> # Build the message message = "#{event.trigger.message} in #{event.project.name}!" if event.error message += " #{event.error.exceptionClass}" if event.error...
NotificationPlugin = require "../../notification-plugin" class Campfire extends NotificationPlugin @receiveEvent: (config, event, callback) -> # Build the message message = "#{event.trigger.message} in #{event.error.releaseStage} from #{event.project.name}!" if event.error message += " #{event.erro...
Include release stage in campfire notification
Include release stage in campfire notification
CoffeeScript
mit
sharesight/bugsnag-notification-plugins,jacobmarshall/bugsnag-notification-plugins,indirect/bugsnag-notification-plugins,cagedata/bugsnag-notification-plugins,6wunderkinder/bugsnag-notification-plugins,korealert/bugsnag-notification-plugins,6wunderkinder/bugsnag-notification-plugins,pushed/bugsnag-notification-plugins,...
a55cdac23e511bca91335f124f86d1f395e6c16e
spec/dummy/spec/javascripts/image_viewer_spec.js.coffee
spec/dummy/spec/javascripts/image_viewer_spec.js.coffee
describe "ImageViewer", -> viewer = $('#ImageViewer').imageViewer beforeEach -> loadFixtures 'image_viewer_index' $('#ImageViewer').imageViewer(["/assets/test_image_1.jpeg"]) it "implements zoom", -> expect(typeof(viewer.rotate) == "function").toBe(true) it "implements rotate", -> expect(typ...
Add tests to ensure common interface.
Add tests to ensure common interface.
CoffeeScript
mit
rondale-sc/image_viewer_rails,rondale-sc/image_viewer_rails
3f9fdfee14277e65d1d0ac08f969ab86050f623c
spec/javascripts/websocket_rails/channel_spec.coffee
spec/javascripts/websocket_rails/channel_spec.coffee
describe 'WebSocketRails.Channel:', -> beforeEach -> @dispatcher = new_message: -> true dispatch: -> true trigger_event: (event) -> true state: 'connected' connection_id: 12345 @channel = new WebSocketRails.Channel('public',@dispatcher) sinon.spy @dispatcher, 'trigger_event' ...
Add spec coverage for channel.js.coffee
Add spec coverage for channel.js.coffee
CoffeeScript
mit
a-leung/websocket-rails,mohitnatoo/websocket-rails,depili/websocket-rails,phlegx/websocket-rails,vincenzodev/websocket-rails,mzahir/websocket-rails,mohitnatoo/websocket-rails,a-leung/websocket-rails,sebyx07/websocket-rails,mohitnatoo/websocket-rails,phlegx/websocket-rails,MhdSyrwan/websocket-rails,depili/websocket-rail...
a78da74223823f48b2d0383403ec63f8cbce7a48
test/javascripts/map_editor_reactive_measure_test.coffee
test/javascripts/map_editor_reactive_measure_test.coffee
#= require map_editor beforeEach -> @map = new L.Map(document.createElement('div')).setView [0, 0], 15 describe 'L.Draw.Polyline.ReactiveMeasure', -> beforeEach -> @geod = GeographicLib.Geodesic.WGS84 @drawnItems = new L.FeatureGroup().addTo(@map) @edit = new L.EditToolbar.Edit @map, featureGroup...
Add jasmine tests to check measure calculation (in progress)
Add jasmine tests to check measure calculation (in progress)
CoffeeScript
agpl-3.0
ekylibre/ekylibre,ekylibre/ekylibre,ekylibre/ekylibre,ekylibre/ekylibre,ekylibre/ekylibre
73849afeff7a1f3cbf17bba610b7ee7388beb0e5
app/assets/javascripts/metrics/accuracy_stats.js.coffee
app/assets/javascripts/metrics/accuracy_stats.js.coffee
#=require d3 $ -> margin = { top: 20, right: 20, bottom: 30, left: 40 } width = 960 - margin.left - margin.right height = 500 - margin.top - margin.bottom formatPercent = d3.format(".0%") x = d3.scale.ordinal() .rangeRoundBands([0, width], 0.1, 1) y = d3.scale.linear() ...
Add CoffeeScript for the bar chart diagram
Add CoffeeScript for the bar chart diagram I have forgotten to add the CoffeeScript file for generating the bar chart diagram. This commit adds it now. Signed-off-by: Konrad Reiche <4ff0213f56e2082fcd8c882d04c546881c579ce4@gmail.com>
CoffeeScript
mit
platzhirsch/metadata-census
ad9fc88f5572d6273d20a3948badfe43440b2467
server.coffee
server.coffee
app = require "./app/app" logger = require "./app/libs/logger" server = app.listen app.get("port"), -> logger.info "Server listening on port " + server.address().port
Use logger from lib for eventual testing
Use logger from lib for eventual testing
CoffeeScript
apache-2.0
kvchen/hog-winrate-web,kvchen/hog-winrate-web,kvchen/hog-winrate-web
25cbbb33e3166fc110d1324d23a6eda815fc6bbf
spec/javascripts/metric_collector_spec.js.coffee
spec/javascripts/metric_collector_spec.js.coffee
#= require spec_helper #= require metric_collector describe "MetricCollector", -> describe 'choose_metric', -> before -> sinon.stub(window, "$") @metric_code = 'acc' @metric_code_field = sinon.stub() @metric_code_field.val = sinon.stub().withArgs(@metric_code) @metric_collector_na...
Create JS unit test for choose_metric
Create JS unit test for choose_metric This test is necessary in order to provide proper coverage that allows a refactor. Signed off by: Diego Araújo <diegoamc90@gmail.com>
CoffeeScript
agpl-3.0
mezuro/prezento,mezuro/prezento,mezuro/prezento
07fe525b789870d1b937c12c985364512aa423b9
grunt/util.coffee
grunt/util.coffee
fs = require 'fs' path = require 'path' _ = require 'lodash' module.exports = (grunt) -> grunt.registerTask 'delete-powerbuild-cache', 'Deletes the cache file that powerbuild messes up occasionally.', -> success = @async() file = path.join 'node_modules', 'powerbuild', 'powerbuild-cache' i...
Add shortcut for removing powerbuild's cache file
Add shortcut for removing powerbuild's cache file It tends to become corrupted, and when it does, powerbuild can't cope with it and the build fails.
CoffeeScript
isc
soulweaver91/gw2hub
1f1784878b0ca21a7bc254892d1859d29276b3e3
test/source_file.coffee
test/source_file.coffee
FileSource = $src "sources/file" MasterStream = $src "master/stream" Logger = $src "logger" STREAM1 = key: "test1" source_password: "abc123" root_route: true seconds: 60*60*4 format: "mp3" mp3 = $file "mp3/mp3-44100-64-s.mp3" descr...
Add basic test for File Source
Add basic test for File Source * Test whether we get the right streamKey * Test whether data is emitted
CoffeeScript
mit
pteich/StreamMachine,pteich/StreamMachine,StreamMachine/StreamMachine,cdgraff/StreamMachine,cdgraff/StreamMachine,DreamNetwork/StreamMachine,SCPR/StreamMachine,StreamMachine/StreamMachine,pedropapa/StreamMachine,SCPR/StreamMachine,DreamNetwork/StreamMachine,pedropapa/StreamMachine
ea726317860501342888d4401dd1409516b5e9f6
plugins/uservoice/index.coffee
plugins/uservoice/index.coffee
NotificationPlugin = require "../../notification-plugin" class UserVoice extends NotificationPlugin @receiveEvent: (config, event, callback) -> return if event?.trigger?.type == "reopened" # Build the payload payload = name: "Bugsnag" client: config.apiKey email: "bugsnag@bugsnag.c...
NotificationPlugin = require "../../notification-plugin" class UserVoice extends NotificationPlugin @receiveEvent: (config, event, callback) -> return if event?.trigger?.type == "reopened" # Build the payload payload = name: "Bugsnag" client: config.apiKey email: "bugsnag@bugsnag.c...
Add app/project name to uservoice
Add app/project name to uservoice
CoffeeScript
mit
cagedata/bugsnag-notification-plugins,korealert/bugsnag-notification-plugins,6wunderkinder/bugsnag-notification-plugins,indirect/bugsnag-notification-plugins,jacobmarshall/bugsnag-notification-plugins,korealert/bugsnag-notification-plugins,6wunderkinder/bugsnag-notification-plugins,sharesight/bugsnag-notification-plugi...
fb89fcee0ef26564635eca66a79d544e9249d41d
app/assets/javascripts/effective_assets/cocoon.js.coffee
app/assets/javascripts/effective_assets/cocoon.js.coffee
# When we add a cocoon element, it copies a static template into the DOM # We have to update this template to have a unique ID $(document).on 'cocoon:before-insert', (event, item) -> return true if item.find('.asset-box-uploader').length == 0 html = item.html() item.find('.asset-box-uploader').each (index, elem...
Work with cocoon gem better
Work with cocoon gem better
CoffeeScript
mit
code-and-effect/effective_assets,code-and-effect/effective_assets,code-and-effect/effective_assets
fb84005d2447a63bcfea68e6a568bbf00de57b91
app/assets/javascripts/neighborly/channels/profiles/edit.js.coffee
app/assets/javascripts/neighborly/channels/profiles/edit.js.coffee
Neighborly.Channels ?= {} Neighborly.Channels.Profiles ?= {} Neighborly.Channels.Profiles.Edit = init: Backbone.View.extend el: '.edit-channel-page' initialize: -> this.$('#profile_how_it_works').markItUp(Neighborly.markdownSettings)
Add markdow editor on channel edit
Add markdow editor on channel edit
CoffeeScript
mit
rockkhuya/taydantay,jinutm/silverprod,jinutm/silverme,jinutm/silverpro,jinutm/silverclass,jinutm/silvfinal,jinutm/silverpro,jinutm/silverme,gustavoguichard/neighborly,jinutm/silveralms.com,MicroPasts/micropasts-crowdfunding,raksonibs/raimcrowd,raksonibs/raimcrowd,jinutm/silveralms.com,gustavoguichard/neighborly,MicroPa...
1b057262eb4f13aa4023ea96bed7d96bc4eb8efb
templates/language/snippets/language-__package-name__.cson
templates/language/snippets/language-__package-name__.cson
# If you want some example snippets, check out: # - https://raw.githubusercontent.com/atom/language-coffee-script/master/snippets/language-coffee-script.cson '.source.__package-name__': 'If': 'prefix': 'if' 'body': 'if ${1:condition}\n ${0:# body...}'
# If you want some example snippets, check out: # - https://raw.githubusercontent.com/atom/language-coffee-script/master/snippets/language-coffee-script.cson '.source.__package-name__': 'Method documentation': 'prefix': 'doc' 'body': '@@ ${1:method} - ${2:description}'
Use @@ in example snippet
Use @@ in example snippet
CoffeeScript
mit
atom/apm,atom/apm,ethanp/apm,Nikpolik/apm,pusateri/apm,AtaraxiaEta/apm,VandeurenGlenn/apm,atom/apm,jlord/apm,gutsy/apm,gutsy/apm,bcoe/apm,VandeurenGlenn/apm,fscherwi/apm,VandeurenGlenn/apm,bronson/apm,pusateri/apm,AtaraxiaEta/apm,gutsy/apm,pusateri/apm,ethanp/apm,fscherwi/apm,fscherwi/apm,jlord/apm,bcoe/apm,AtaraxiaEta...
6a0e7cfb2439501cae5de68822e88b55f0e5c888
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) -> ...
Add task to output file types in build folder
Add task to output file types in build folder
CoffeeScript
mit
Ingramz/atom,vinodpanicker/atom,MjAbuz/atom,githubteacher/atom,matthewclendening/atom,DiogoXRP/atom,basarat/atom,RuiDGoncalves/atom,matthewclendening/atom,sxgao3001/atom,dkfiresky/atom,liuxiong332/atom,devoncarew/atom,rmartin/atom,ali/atom,elkingtonmcb/atom,ilovezy/atom,gisenberg/atom,seedtigo/atom,isghe/atom,sekcheong...
086f5435a1fda15b8e8f05cc644bd7ae19edbe69
client/app/lib/commonviews/buttonviewwithprogressbar.coffee
client/app/lib/commonviews/buttonviewwithprogressbar.coffee
kd = require 'kd' KDButtonView = kd.ButtonView KDProgressBarView = kd.ProgressBarView KDLoaderView = kd.LoaderView KDCustomHTMLView = kd.CustomHTMLView module.exports = class ButtonViewWithProgressBar extends KDCustomHTMLView constructor: (options = {}, data) -> super options, data ...
Implement ButtonViewWithProgressBar for built-in progress button usages
Implement ButtonViewWithProgressBar for built-in progress button usages
CoffeeScript
agpl-3.0
kwagdy/koding-1,mertaytore/koding,jack89129/koding,cihangir/koding,usirin/koding,acbodine/koding,sinan/koding,cihangir/koding,drewsetski/koding,koding/koding,gokmen/koding,alex-ionochkin/koding,szkl/koding,andrewjcasal/koding,koding/koding,acbodine/koding,acbodine/koding,acbodine/koding,koding/koding,koding/koding,jack...
cee9566f34b5a305aa644cbe9ccedbb11aa9e815
tests/integration/image_from_mobile.coffee
tests/integration/image_from_mobile.coffee
faker = require 'faker' fs = require 'fs-extra' path = require 'path' should = require 'should' Cozy = require '../helpers/integration' Files = require '../helpers/files' # Images imported from cozy-mobile are special because they have no checksum describe 'Image from mobile', -> @slow 1000 @timeout ...
Add an integration test for images from mobile
Add an integration test for images from mobile
CoffeeScript
agpl-3.0
cozy-labs/cozy-desktop,nono/cozy-desktop,cozy-labs/cozy-desktop,nono/cozy-desktop,nono/cozy-desktop,cozy-labs/cozy-desktop,nono/cozy-desktop,kosssi/cozy-desktop,cozy-labs/cozy-desktop
70efb0351442518a6608b651008fa8048b14a8a7
menus/tree-view.cson
menus/tree-view.cson
'menu': [ { 'label': 'View' 'submenu': [ 'label': 'Toggle Treeview' 'command': 'tree-view:toggle' ] } { 'label': 'Packages' 'submenu': [ 'label': 'Tree View' 'submenu': [ { 'label': 'Toggle', 'command': 'tree-view:toggle' } { 'label': 'Reveal Active File...
'menu': [ { 'label': 'View' 'submenu': [ 'label': 'Toggle Treeview' 'command': 'tree-view:toggle' ] } { 'label': 'Packages' 'submenu': [ 'label': 'Tree View' 'submenu': [ { 'label': 'Toggle', 'command': 'tree-view:toggle' } { 'label': 'Reveal Active File...
Add menu item to "Add a folder"
Add menu item to "Add a folder"
CoffeeScript
mit
thgaskell/tree-view,cgrabowski/webgl-studio-tree-view,pombredanne/tree-view-1,benjaminRomano/tree-view,jasonhinkle/tree-view,tomekwi/tree-view,learn-co/learn-ide-tree,laituan245/tree-view,Galactix/tree-view,tbryant/tree-view,atom/tree-view,samu/tree-view,jarig/tree-view,ALEXGUOQ/tree-view,rajendrant/tree-view-remote,ma...
b66fd24b5223829f4577162895185091fe1bdbc5
packages/rocketchat-lib/lib/startup/settingsOnLoadSiteUrl.coffee
packages/rocketchat-lib/lib/startup/settingsOnLoadSiteUrl.coffee
if Meteor.isServer url = Npm.require('url') RocketChat.settings.get 'Site_Url', (key, value) -> if value?.trim() isnt '' __meteor_runtime_config__.ROOT_URL = value __meteor_runtime_config__.DDP_DEFAULT_CONNECTION_URL = value if Meteor.absoluteUrl.defaultOptions?.rootUrl? Meteor.absoluteUrl.defaultOptions.ro...
if Meteor.isServer url = Npm.require('url') RocketChat.settings.get 'Site_Url', (key, value) -> if value?.trim() isnt '' __meteor_runtime_config__.ROOT_URL = value __meteor_runtime_config__.DDP_DEFAULT_CONNECTION_URL = value if Meteor.absoluteUrl.defaultOptions?.rootUrl? Meteor.absoluteUrl.defaultOptions.ro...
Rebuild the cordova index when change the Site Url
Rebuild the cordova index when change the Site Url
CoffeeScript
mit
pachox/Rocket.Chat,galrotem1993/Rocket.Chat,cnash/Rocket.Chat,k0nsl/Rocket.Chat,snaiperskaya96/Rocket.Chat,NMandapaty/Rocket.Chat,abhishekshukla0302/trico,Kiran-Rao/Rocket.Chat,linnovate/hi,steedos/chat,BorntraegerMarc/Rocket.Chat,xboston/Rocket.Chat,linnovate/hi,OtkurBiz/Rocket.Chat,inoio/Rocket.Chat,flaviogrossi/Rock...
d2a6315ee8b107878255f926ef64c0159b2945ad
spec/MicroFloPortalLights.coffee
spec/MicroFloPortalLights.coffee
noflo = require 'noflo' device = "simulator://" #device = "serial:///dev/ttyACM0" Runtime = require 'noflo-runtime/src/RemoteSubGraph' describe 'MicroFlo Portal Lights', -> runtime = null before (done) -> done() after (done) -> done() describe 'Remote subgraph', -> def = label: "Ingress T...
Add initial tests for portal lights
Add initial tests for portal lights
CoffeeScript
mit
c-base/ingress-table,c-base/ingress-table,c-base/ingress-table,c-base/ingress-table
80b3b1fa141a4d78f18d2df5e48111b74941d1e6
SingularityUI/app/components/common/atomicFormItems/FormField.cjsx
SingularityUI/app/components/common/atomicFormItems/FormField.cjsx
Utils = require '../../../utils' FormField = React.createClass render: -> <input className = {classNames 'form-control', @props.prop.customClass} placeholder = {@props.prop.placeholder} type = {@props.prop.inputType} id = {@props.id} onChange = ...
Utils = require '../../../utils' FormField = React.createClass render: -> <input className = {classNames 'form-control', @props.prop.customClass} placeholder = {@props.prop.placeholder} type = {@props.prop.inputType} id = {@props.id} onChange = ...
Remove unnecessary 'if x then true else false's
Remove unnecessary 'if x then true else false's
CoffeeScript
apache-2.0
andrhamm/Singularity,andrhamm/Singularity,grepsr/Singularity,HubSpot/Singularity,HubSpot/Singularity,HubSpot/Singularity,grepsr/Singularity,hs-jenkins-bot/Singularity,HubSpot/Singularity,andrhamm/Singularity,hs-jenkins-bot/Singularity,hs-jenkins-bot/Singularity,andrhamm/Singularity,HubSpot/Singularity,grepsr/Singularit...
c79fca1adbaf53907322dbea0d4ddd7a5288d9a5
src/stdlib/git-repository.coffee
src/stdlib/git-repository.coffee
module.exports = class GitRepository constructor: (path) -> unless repo = $git.getRepository(path) throw new Error("No Git repository found searching path: " + path) repo.constructor = GitRepository repo.__proto__ = GitRepository.prototype return repo getHead: $git.getHead getPath: $git.get...
module.exports = class GitRepository constructor: (path) -> unless repo = $git.getRepository(path) throw new Error("No Git repository found searching path: #{path}") repo.constructor = GitRepository repo.__proto__ = GitRepository.prototype return repo getHead: $git.getHead getPath: $git.get...
Use string interpolation for error message
Use string interpolation for error message
CoffeeScript
mit
pombredanne/atom,Ju2ender/atom,ali/atom,Rodjana/atom,cyzn/atom,ardeshirj/atom,ReddTea/atom,hharchani/atom,prembasumatary/atom,NunoEdgarGub1/atom,RuiDGoncalves/atom,paulcbetts/atom,charleswhchan/atom,dsandstrom/atom,0x73/atom,mrodalgaard/atom,AlexxNica/atom,NunoEdgarGub1/atom,russlescai/atom,vjeux/atom,liuxiong332/atom,...
cb666644beaeda3650912868fe5772c5128e3e4e
src/scripts/lastfm_np.coffee
src/scripts/lastfm_np.coffee
# Last (or current) played song by a user in Last.fm # # hubot <what's playing> someone - Returns song name and artist # module.exports = (robot) -> robot.respond /what's playing (.*)/i, (msg) -> user = escape(msg.match[1]) apiKey = process.env.HUBOT_LASTFM_APIKEY msg.http('http://ws.audioscrobbler.com/2...
Add script for current playing song in Last.fm
Add script for current playing song in Last.fm
CoffeeScript
mit
azimman/hubot-scripts,1000hz/hubot-scripts,magicstone1412/hubot-scripts,github/hubot-scripts,DataDog/hubot-scripts,n0mer/hubot-scripts,modulexcite/hubot-scripts,amhorton/hubot-scripts,ryantomlinson/hubot-scripts,phillipalexander/hubot-scripts,janx/hubot-scripts,josephcarmello/hubot-scripts,yigitbey/hubot-scripts,bruno/...
272455d776285e2291b42ad68a2e95c2a309fd5f
app/assets/javascripts/neighborly/images/new.js.coffee
app/assets/javascripts/neighborly/images/new.js.coffee
Neighborly.Images = {} if Neighborly.Images is undefined Neighborly.Images.New = init: Backbone.View.extend el: '.new-image-page' initialize: -> dropzone = new this.DragDropUploader { el: '.new-image-upload-dropzone' } DragDropUploader: Backbone.View.extend events: 'mouseenter': 'mo...
Create JS to upload images with dropzone
Create JS to upload images with dropzone
CoffeeScript
mit
raksonibs/raimcrowd,raksonibs/raimcrowd,jinutm/silveralms.com,jinutm/silverprod,gustavoguichard/neighborly,jinutm/silverprod,jinutm/silverpro,MicroPasts/micropasts-crowdfunding,jinutm/silverme,jinutm/silveralms.com,jinutm/silverme,MicroPasts/micropasts-crowdfunding,MicroPasts/micropasts-crowdfunding,jinutm/silveralms.c...
bb21c659c19df5084cc2e98c8880260f9d552f6a
backend/app/assets/javascripts/spree/backend/variant_autocomplete.js.coffee
backend/app/assets/javascripts/spree/backend/variant_autocomplete.js.coffee
# variant autocompletion $(document).ready -> if $("#variant_autocomplete_template").length > 0 window.variantTemplate = Handlebars.compile($("#variant_autocomplete_template").text()) window.variantStockTemplate = Handlebars.compile($("#variant_autocomplete_stock_template").text()) window.variantLineItemT...
# variant autocompletion $(document).ready -> if $("#variant_autocomplete_template").length > 0 window.variantTemplate = Handlebars.compile($("#variant_autocomplete_template").text()) window.variantStockTemplate = Handlebars.compile($("#variant_autocomplete_stock_template").text()) window.variantLineItemT...
Fix initSelection of variant autocomplete.
Fix initSelection of variant autocomplete. Fixes #6631
CoffeeScript
bsd-3-clause
ahmetabdi/spree,shekibobo/spree,ayb/spree,beni55/spree,progsri/spree,ramkumar-kr/spree,yiqing95/spree,vinayvinsol/spree,moneyspyder/spree,alvinjean/spree,priyank-gupta/spree,beni55/spree,wolfieorama/spree,alvinjean/spree,omarsar/spree,omarsar/spree,nooysters/spree,tomash/spree,njerrywerry/spree,piousbox/spree,zamiang/s...
ec0c49ec976a18c456b54a132e9560646ccf3b75
tests/test_new_squad.coffee
tests/test_new_squad.coffee
require = patchRequire global.require common = require './common' common.setup() casper.test.begin "New squad", (test) -> common.waitForStartup('#rebel-builder') common.createList('#rebel-builder', [ { ship: 'X-Wing' pilot: 'Rookie Pilot' upgrades: [ ...
Test for new squad button.
Test for new squad button.
CoffeeScript
mit
wilsonodk/xwing,bmds/xwing,wilsonodk/xwing,geordanr/xwing,nux/xwing,nopr/xwing,elistevens/xwing,Necrogoat/xwing,elistevens/xwing,bmds/xwing,strikegun/xwing,wilsonodk/xwing,Necrogoat/xwing,nux/xwing,strikegun/xwing,Necrogoat/xwing,geordanr/xwing,elistevens/xwing,nux/xwing,nopr/xwing,nopr/xwing,geordanr/xwing,bmds/xwing,...
7526038f9a2d6cfd5c568919b838a39eb17b2e15
build/tasks/create-installer.coffee
build/tasks/create-installer.coffee
fs = require 'fs' path = require 'path' module.exports = (grunt) -> {spawn} = require('./task-helpers')(grunt) grunt.registerTask 'create-installer', 'Create the Windows installer', -> if process.platform is not 'win32' return done = @async() buildDir = grunt.config.get('atom.buildDir') at...
Create a task which builds an installer
Create a task which builds an installer
CoffeeScript
mit
vcarrera/atom,stuartquin/atom,targeter21/atom,G-Baby/atom,hakatashi/atom,rjattrill/atom,hellendag/atom,matthewclendening/atom,stinsonga/atom,Jdesk/atom,dkfiresky/atom,russlescai/atom,Jdesk/atom,Andrey-Pavlov/atom,rjattrill/atom,seedtigo/atom,rlugojr/atom,yomybaby/atom,oggy/atom,ilovezy/atom,kandros/atom,qskycolor/atom,...
c0104ab74f615fc92f1bf894115c9abb96563f19
src/dom_element/children_list.coffee
src/dom_element/children_list.coffee
'use strict' List = require '../nodes/list' module.exports = class ChildrenList extends List constructor: (@element) -> setValue: (elementList) -> while (el = @element.lastChild)? @element.removeChild(el) for el in elementList @element.appendChild(el) return this get: -> @el...
Implement DOM node children list
Implement DOM node children list
CoffeeScript
mit
valentin-nemcev/transmitter.js
67c5f78bd56b4614304c9143686fab7a4909b0e0
src/wai.coffee
src/wai.coffee
###! wai Version 0.1.0 (c) 2014 tofumatt, MIT License ### "use strict" # What kind of app install process are we dealing with? mozApps = @navigator.mozApps # Use localStorage to set install info. store = @localStorage # or window.localStorage Wai = install: (options) => return if !mozApps or store._waiAt...
Add stupid simple concept for unannoying install prompt
Add stupid simple concept for unannoying install prompt
CoffeeScript
mit
tofumatt/wai,tofumatt/wai
06f9a822098d1e8f2688e25e7cdbf5f3fd3c139b
scripts/tired.coffee
scripts/tired.coffee
module.exports = (robot) -> robot.hear /tired/, (msg) -> robot.brain.data.count = 0 unless robot.brain.data.count robot.brain.data.count += 1 robot.brain.save if robot.brain.data.count < 3 then msg.send "Let's take a short break." else msg.send "You must take a break." robot.hear /fine/, (msg) -> ...
Add test script using brain
Add test script using brain
CoffeeScript
mit
hokuken/hubot
d94be99a0858a43e24b1f5d19f210c4dae74ed5c
docs/nwdrome_effector_plugin_spec.coffee
docs/nwdrome_effector_plugin_spec.coffee
# nwdrome-effector-plugin spec # Copyright 2014, Ragg(@_ragg_) ### # Nwdrome effector plugin specification ## Register plugin Call `nwdrome.plugin.addEffector` with `factory function` Factory function given plugin config object. Below Plugin config object properties. - appUrl :string Application(nwdrome) root pa...
Add effector plugin spec document.
Add effector plugin spec document.
CoffeeScript
mit
Ragg-/nwdrome
8c15e660c6f36c4355cd230859873bd56a5a2756
tools/extract_rdfa_context_def.coffee
tools/extract_rdfa_context_def.coffee
jsdom = require 'jsdom' RDFaJSON = require "../js/rdfa-json" path = "http://www.w3.org/2011/rdfa-context/rdfa-1.1.html" #"http://www.w3.org/2011/rdfa-context/xhtml-rdfa-1.1" #"http://www.w3.org/2011/rdfa-context/html-rdfa-1.1" jsdom.env path, [], (errs, window) -> data = RDFaJSON.extract(window.document).data ctxt ...
Add simple RDFa context to JSON tool
Add simple RDFa context to JSON tool
CoffeeScript
mit
niklasl/rdfa-lab,niklasl/rdfa-lab
54518c0013c62f034569725bdc11130003d6c573
app/components/Scriptable.coffee
app/components/Scriptable.coffee
Component = require 'core/Component' Result = require 'core/Result' ### ### module.exports = class Scriptable extends Component constructor: (owner) -> super @_tasks = [] @owner.addListener 'update', @_scriptable_update _scriptable_update: => # get current task task = @_tasks[0] if task...
Component = require 'core/Component' Result = require 'core/Result' ### ### module.exports = class Scriptable extends Component constructor: (owner) -> super @_tasks = [] @owner.addListener 'update', @_scriptable_update _scriptable_update: => # get current task task = @_tasks[0] if task...
Implement simple DSL for scripting
Implement simple DSL for scripting learn it if you're too lazy to type a few characters more
CoffeeScript
apache-2.0
despairblue/shiny-wight
18bca3e9d60a4a899b9027e477515d5ee111ca7d
src/misc/queue.coffee
src/misc/queue.coffee
class Queue constructor: (@name) -> @highwaterMark = 256 @lowwaterMark = 64 @finished = false @buffering = true @onHighwaterMark = null @onLowwaterMark = null @buffers = [] @inputs = { contents: ...
Move Queue over from alac.js
Move Queue over from alac.js
CoffeeScript
bsd-2-clause
jensnockert/aurora.js,jensnockert/aurora.js,jensnockert/aurora.js
2d93d0571ed5630ab1b4fd76095636eecd71e01a
scripts/populate-db.coffee
scripts/populate-db.coffee
mongoose = require "mongoose" db = mongoose.connect 'mongodb://localhost/mailist-dev' Thread = require '../models/Thread' message = { subject: 'Friday cakes' ,sender: 'rumi.neykova@gmail.com' ,body: 'Eat & Enjoy'} thread = new Thread labels: ['notice-board'] thread.messages.push message thread.save() co...
Add sample for saving threads to mongodb
Add sample for saving threads to mongodb
CoffeeScript
mit
imperialists/mailist,imperialists/mailist
9e3d59027048cc5be7e4ebd30825b273f7ecd9a8
test/unit/routes_spec.coffee
test/unit/routes_spec.coffee
describe "Application routes", -> beforeEach module("myApp") beforeEach inject ($httpBackend) -> for partial in ["views/main.html", "views/other.html"] $httpBackend.whenGET(partial).respond({}) beforeEach inject ($location, $rootScope) -> @navigateTo = (path) -> $location.path(path) $...
Add simple spec for routes.
Add simple spec for routes.
CoffeeScript
mit
lucassus/angular-seed,webdev1001/angular-seed,lucassus/angular-seed,webdev1001/angular-seed
1e55b94b9f24e38c85a00fc407140c9c7c63d5e7
spec/integration/question_to_html_spec.coffee
spec/integration/question_to_html_spec.coffee
describe 'Question to HTML', -> @timeout 0 interpreter = SwanKiosk.Interpreters.Question layout = SwanKiosk.Layout question = title: 'Gender', why: 'This helps us better extimate your health risks' select: {M: 'Male', F: 'Female', other: 'Other'} beforeEach -> built = (new interpreter...
Add integration test for question interpreter
Add integration test for question interpreter
CoffeeScript
mit
TheSwanFactory/self-service-kiosk,TheSwanFactory/self-service-kiosk
763ad1869550a29eee0d476dd6a855c65aae4bbf
public/js/utils.coffee
public/js/utils.coffee
App.Utils = hexToRgb: (hex) -> result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec hex; if result r: parseInt(result[1], 16), g: parseInt(result[2], 16), b: parseInt(result[3], 16) else null
Add utility lib to help with color conversions
Add utility lib to help with color conversions
CoffeeScript
mit
mattm/abtestcalculator,mattm/abtestcalculator
bdae2f99a816da7504b0528a11524de728e6e085
spec/git-repository-provider-spec.coffee
spec/git-repository-provider-spec.coffee
path = require 'path' {Directory} = require 'pathwatcher' GitRepository = require '../src/git-repository' GitRepositoryProvider = require '../src/git-repository-provider' describe "GitRepositoryProvider", -> describe ".repositoryForDirectory(directory)", -> describe "when specified a Directory with a Git reposi...
Add a unit test for GitRepositoryProvider.
Add a unit test for GitRepositoryProvider.
CoffeeScript
mit
johnrizzo1/atom,medovob/atom,ironbox360/atom,ReddTea/atom,Andrey-Pavlov/atom,NunoEdgarGub1/atom,atom/atom,Klozz/atom,gabrielPeart/atom,devoncarew/atom,synaptek/atom,bsmr-x-script/atom,NunoEdgarGub1/atom,rsvip/aTom,crazyquark/atom,AlexxNica/atom,KENJU/atom,ObviouslyGreen/atom,ali/atom,jordanbtucker/atom,yomybaby/atom,il...
4b567cba10f125203bc3f8de110ebabd7f4cae51
js-library/app/js/jail_iframe/util/postFactlinkObject.coffee
js-library/app/js/jail_iframe/util/postFactlinkObject.coffee
msgPrefix = 'FL$msg*)k`dC:' window.Factlink || window.Factlink = {} Factlink.createFrameProxy = (target_window) -> (method_name) -> (args...) -> console.log window.location.href + " sending " + method_name, args, target_window message = msgPrefix + JSON.stringify([method_name, args]) target_window.postMessage me...
Implement an alternative for easyXDM
Implement an alternative for easyXDM
CoffeeScript
mit
daukantas/factlink-core,Factlink/factlink-core,daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core
f52f5a6cd6c38afc8f3a6c260d1ab73a917ff26a
src/scripts/wits.coffee
src/scripts/wits.coffee
# Description # When Hubot hears anyone say "What is this shit?" # it responds with a relevant meme image # # Dependencies: # None # # Configuration: # None # # Commands: # wtf is this shit - responds with a random WITS image # what the hell is this crap - responds with a random WITS image # what the fu...
Add 'What is this shit?' script
Add 'What is this shit?' script
CoffeeScript
mit
gregburek/emojibot,DataDog/hubot-scripts,n0mer/hubot-scripts,modulexcite/hubot-scripts,flores/hubot-scripts,jhubert/hubot-scripts,fromonesrc/hubot-scripts,DataDog/hubot-scripts,josephcarmello/hubot-scripts,ryantomlinson/hubot-scripts,GrimDerp/hubot-scripts,markstory/hubot-scripts,zecahnin/hubot-scripts,terryjbates/hubo...
239ace5357d43848b2760be6582f20390402b8b8
examples/extract-text.coffee
examples/extract-text.coffee
### Extract text from a webpage using CSS selectors to include or exclude elements By @westonruter ### # Trim whitespace around an element and normalize the whitespace inside # @param {String} s # @returns {String} trim = (s) -> s.replace(/\s+/g, ' ').replace(/^\s+/, '').replace(/\s+$/, '') presetSelectors = ...
Add Coffeescript version of extract.js
Add Coffeescript version of extract.js
CoffeeScript
bsd-3-clause
cesarmarinhorj/phantomjs,Lochlan/phantomjs,iver333/phantomjs,pbrazdil/phantomjs,revolutionaryG/phantomjs,nin042/phantomjs,joomel1/phantomjs,neraliu/tpjs,you21979/phantomjs,nicksay/phantomjs,danigonza/phantomjs,NickelMedia/phantomjs,martonw/phantomjs,wxkdesky/phantomjs,klim-iv/phantomjs-qt5,DocuSignDev/phantomjs,JingZho...
b37cf2ba64574b7751a6d97c663a735b28a2e61a
src/components/reference-book/page-shell.cjsx
src/components/reference-book/page-shell.cjsx
React = require 'react' BS = require 'react-bootstrap' _ = require 'underscore' LoadableItem = require '../loadable-item' ReferenceBookPage = require './page' {Invalid} = require '../index' {ReferenceBookPageActions, ReferenceBookPageStore} = require '../../flux/reference-book-page' ReferenceBookPageShell = React.c...
Split page shell into separate file
Split page shell into separate file
CoffeeScript
agpl-3.0
openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js
9994a5f313c8b84fb1a58a81e0df85c46b243cb8
lib/assets/javascripts/websocket_rails/websocket_connection.js.coffee
lib/assets/javascripts/websocket_rails/websocket_connection.js.coffee
### WebSocket Interface for the WebSocketRails client. ### class WebSocketRails.WebSocketConnection constructor: (@url,@dispatcher) -> @url = "ws://#{@url}" unless @url.match(/^wss?:\/\//) @message_queue = [] @_conn = new WebSocket(@url) @_conn.onmessage = @on_message @_co...
### WebSocket Interface for the WebSocketRails client. ### class WebSocketRails.WebSocketConnection constructor: (@url,@dispatcher) -> if window.location.protocol == 'http:' @url = "ws://#{@url}" else @url = "wss://#{@url}" @message_queue = [] @_conn ...
Use window.location.protocol to choose between ws:// and wss:// shcheme.
Use window.location.protocol to choose between ws:// and wss:// shcheme.
CoffeeScript
mit
vincenzodev/websocket-rails,mohitnatoo/websocket-rails,phlegx/websocket-rails,sebyx07/websocket-rails,websocket-rails/websocket-rails,iamalfonso/websocket-rails,depili/websocket-rails,vincenzodev/websocket-rails,mzahir/websocket-rails,MhdSyrwan/websocket-rails,depili/websocket-rails,vincenzodev/websocket-rails,sebyx07/...
4ce0dbaa940684588ed55de771408ca5eef9dcbb
workers/social/lib/social/models/socialapi/notification.coffee
workers/social/lib/social/models/socialapi/notification.coffee
Bongo = require "bongo" {Relationship} = require "jraphical" request = require 'request' KodingError = require '../../error' {secure, race, signature, Base} = Bongo {uniq} = require 'underscore' module.exports = class SocialNotification extends Base @share() @trait __dirname, '../../traits/pro...
Add Notification bongo model to social worker
Notification: Add Notification bongo model to social worker
CoffeeScript
agpl-3.0
koding/koding,alex-ionochkin/koding,szkl/koding,kwagdy/koding-1,mertaytore/koding,sinan/koding,acbodine/koding,cihangir/koding,drewsetski/koding,drewsetski/koding,andrewjcasal/koding,alex-ionochkin/koding,kwagdy/koding-1,rjeczalik/koding,gokmen/koding,drewsetski/koding,acbodine/koding,koding/koding,koding/koding,sinan/...
bbc01e704c3eb31204b8e7650333bc70181def18
spec/modules-spec.coffee
spec/modules-spec.coffee
assert = require 'assert' fs = require 'fs' path = require 'path' temp = require 'temp' describe 'third-party module', -> fixtures = path.join __dirname, 'fixtures' temp.track() describe 'runas', -> it 'can be required in renderer', -> require 'runas' it 'can be required in node binary', ...
assert = require 'assert' fs = require 'fs' path = require 'path' temp = require 'temp' describe 'third-party module', -> fixtures = path.join __dirname, 'fixtures' temp.track() describe 'runas', -> it 'can be required in renderer', -> require 'runas' it 'can be required in node binary', ...
Monitor file events in pathwatcher spec.
Monitor file events in pathwatcher spec.
CoffeeScript
mit
takashi/electron,astoilkov/electron,noikiy/electron,gbn972/electron,tincan24/electron,tincan24/electron,astoilkov/electron,icattlecoder/electron,BionicClick/electron,smczk/electron,dkfiresky/electron,rhencke/electron,subblue/electron,aichingm/electron,evgenyzinoviev/electron,digideskio/electron,subblue/electron,egoist/...
8b0c9b1c3539d630705f7b23e3005aca0b87a68f
client/app/lib/util/hasManagedVMStack.coffee
client/app/lib/util/hasManagedVMStack.coffee
kd = require 'kd' isManagedVMStack = require './isManagedVMStack' module.exports = -> { stacks } = kd.singletons.computeController count = stacks.filter(isManagedVMStack).length return count > 0
Define has "Managed VMs" stack utility
Define has "Managed VMs" stack utility
CoffeeScript
agpl-3.0
jack89129/koding,koding/koding,sinan/koding,koding/koding,jack89129/koding,gokmen/koding,mertaytore/koding,acbodine/koding,alex-ionochkin/koding,mertaytore/koding,gokmen/koding,gokmen/koding,acbodine/koding,usirin/koding,jack89129/koding,cihangir/koding,szkl/koding,acbodine/koding,koding/koding,szkl/koding,rjeczalik/ko...
ffa672f185f1e9181d0acb2f9959261a79921f8a
app/assets/javascripts/prettify-via-curl.coffee
app/assets/javascripts/prettify-via-curl.coffee
window.prettifyJsCommand = -> urls = $('script').map (_, script) -> $(script).attr('src') jsUrls = _.filter (urls), (url) -> (url.indexOf("slack-edge")!= -1) && (url.lastIndexOf("js") == url.length - 2) console.log jsUrls commands = jsUrls.map (url) -> fields = url.split("/") basename = fields...
Add a command to create a command to prettify
Add a command to create a command to prettify
CoffeeScript
unlicense
bhuga/slacks-hacks,bhuga/slacks-hacks,bhuga/slacks-hacks
966c1602608b72f46194d89f12a4e2c0fef633e7
app/assets/javascripts/martian_components/components/utils/smooth_scroll.coffee
app/assets/javascripts/martian_components/components/utils/smooth_scroll.coffee
# USE # Add smooth-scroll attribute to the element with anchors link. # The target elements must have the id or name with the same value of the anchor's href class @Components.Utils.SmoothScroll @autoInit: -> $('[smooth-scroll]').each (i, nav) => new @($(nav)) constructor: (@nav) -> @scrollOnClick() @s...
# USE # Add smooth-scroll attribute to the element with anchors link. # The target elements must have the id or name with the same value of the anchor's href class @Components.Utils.SmoothScroll @autoInit: -> $('[smooth-scroll]').each (i, nav) => new @($(nav)) constructor: (@nav) -> @scrollOnClick() @s...
Fix SmoothScroll - Update hash in the end of animation
Fix SmoothScroll - Update hash in the end of animation
CoffeeScript
mit
polomarte/martian_components,polomarte/martian_components,polomarte/martian_components
04ab7fa469ff385359f148b7e555b97db760d993
src/extensions/markdown-preview/src/keymap.coffee
src/extensions/markdown-preview/src/keymap.coffee
window.keymap.bindKeys '.editor', 'meta-m': 'markdown-preview:toggle' window.keymap.bindKeys '.markdown-preview', 'meta-m': 'markdown-preview:toggle'
window.keymap.bindKeys '.editor', 'ctrl-m': 'markdown-preview:toggle' window.keymap.bindKeys '.markdown-preview', 'ctrl-m': 'markdown-preview:toggle'
Make markdown preview ctrl-m, since meta-m *minimizes* :poop:
Make markdown preview ctrl-m, since meta-m *minimizes* :poop:
CoffeeScript
mit
YunchengLiao/atom,stuartquin/atom,transcranial/atom,AlexxNica/atom,targeter21/atom,yomybaby/atom,Arcanemagus/atom,hakatashi/atom,fredericksilva/atom,rmartin/atom,Jonekee/atom,folpindo/atom,bryonwinger/atom,0x73/atom,ali/atom,nvoron23/atom,chengky/atom,kjav/atom,Shekharrajak/atom,kc8wxm/atom,Jonekee/atom,kdheepak89/atom...
965e300b2b3a606bb6d4cbf94b2c73bcca02b209
app/js/jail_iframe/util/postFactlinkObject.coffee
app/js/jail_iframe/util/postFactlinkObject.coffee
msgPrefix = 'FL$msg*)k`dC:' window.Factlink || window.Factlink = {} Factlink.createFrameProxy = (target_window) -> (method_name) -> (args...) -> console.log window.location.href + " sending " + method_name, args, target_window message = msgPrefix + JSON.stringify([method_name, args]) target_window.postMessage me...
Implement an alternative for easyXDM
Implement an alternative for easyXDM
CoffeeScript
mit
Factlink/js-library,Factlink/js-library,Factlink/js-library
cf0cfb0f435e595017ab9153c601336bad1a429b
test/document_test.coffee
test/document_test.coffee
treeSitter = require "tree-sitter" assert = require "assert" compiler = require ".." describe "Document", -> document = null parser = null before -> grammar = compiler.grammar name: "test" rules: stuff: -> "stuff" parser = compiler.compileAndLoad(grammar) beforeEach -> docume...
Add test for validation of document input
Add test for validation of document input
CoffeeScript
mit
maxbrunsfeld/node-tree-sitter-compiler,maxbrunsfeld/node-tree-sitter-compiler,tree-sitter/node-tree-sitter-compiler,tree-sitter/node-tree-sitter-compiler,tree-sitter/tree-sitter-cli,tree-sitter/tree-sitter-cli,tree-sitter/tree-sitter-cli,tree-sitter/node-tree-sitter-compiler,tree-sitter/tree-sitter-cli,maxbrunsfeld/nod...
008c84089f6171030ee2d64d2f47cb452072d2a1
app/assets/javascripts/application.js.coffee
app/assets/javascripts/application.js.coffee
# This is a manifest file that'll be compiled into including all the files listed below. # Add new JavaScript/Coffee code in separate files in this directory and they'll automatically # be included in the compiled file accessible from http://example.com/assets/application.js # It's not advisable to add code directly he...
# This is a manifest file that'll be compiled into including all the files listed below. # Add new JavaScript/Coffee code in separate files in this directory and they'll automatically # be included in the compiled file accessible from http://example.com/assets/application.js # It's not advisable to add code directly he...
Fix not yet ready bookyt/table_select JS inclusion.
Fix not yet ready bookyt/table_select JS inclusion.
CoffeeScript
agpl-3.0
gaapt/bookyt,xuewenfei/bookyt,hauledev/bookyt,gaapt/bookyt,silvermind/bookyt,gaapt/bookyt,silvermind/bookyt,hauledev/bookyt,xuewenfei/bookyt,hauledev/bookyt,huerlisi/bookyt,hauledev/bookyt,silvermind/bookyt,xuewenfei/bookyt,huerlisi/bookyt,wtag/bookyt,wtag/bookyt,wtag/bookyt,silvermind/bookyt,huerlisi/bookyt,gaapt/book...
09bd194cc938c545a3523c47579877751655cbc6
src/spec/createdir.spec.coffee
src/spec/createdir.spec.coffee
_ = require 'underscore' path = require 'path' Promise = require 'bluebird' CreateDir = require '../lib/createdir' {ExtendedLogger} = require 'sphere-node-utils' Config = require '../config' describe 'CreateDir', -> beforeEach -> @testPath = path.join(__dirname,'../exports') @logger = new ExtendedLogger ...
Add tests for creating a directory.
Add tests for creating a directory.
CoffeeScript
mit
sphereio/sphere-stock-export,sphereio/sphere-stock-export
39bb6f39436e3bea9b33485d4e381f8bcacb1112
app/assets/javascripts/bootstrap-custom.js.coffee
app/assets/javascripts/bootstrap-custom.js.coffee
$ -> $(".topbar-wrapper").dropdown() $ -> $(".alert-message").alert()
$ -> $(".topbar-wrapper").dropdown() $ -> $(".alert-message").alert() $ -> $(".modal").modal show: false backdrop: "static"
Make modals not hide when clicking on greyed out background
Make modals not hide when clicking on greyed out background
CoffeeScript
agpl-3.0
rafacouto/loomio-bak,rafacouto/loomio-bak,travis-repos/loomio,rafacouto/loomio-bak,podemos-info/loomio,travis-repos/loomio,podemos-info/loomio,podemos-info/loomio
c905f61b08844d1e22d429a369b8f06c5d02c918
src/scripts/megusta.coffee
src/scripts/megusta.coffee
# Happiness in image form # # me gusta - Display "Me Gusta" face when heard # module.exports = (robot) -> robot.hear /me gusta/i, (msg) -> msg.send "http://s3.amazonaws.com/kym-assets/entries/icons/original/000/002/252/me-gusta.jpg"
Add Me Gusta face meme
Add Me Gusta face meme
CoffeeScript
mit
yigitbey/hubot-scripts,fromonesrc/hubot-scripts,opentable/hubot-scripts,jan0sch/hubot-scripts,GrimDerp/hubot-scripts,arcaartem/hubot-scripts,dyg2104/hubot-scripts,gregburek/emojibot,davidsulpy/hubot-scripts,magicstone1412/hubot-scripts,cycomachead/hubot-scripts,Tyriont/hubot-scripts,janx/hubot-scripts,MaxMEllon/hubot-s...
d583b016cb9db875ab79af45ca043db3ea92cdd6
app/assets/javascripts/keyboard_shortcuts.js.coffee
app/assets/javascripts/keyboard_shortcuts.js.coffee
$ -> $(document).on 'keydown', (event) -> active = $(document.activeElement) if active.is('.group-dropdown-search, .selector-link') switch event.which when 40 # select next group with down arrow target = active.parent().next('.group-item').find('.selector-link') target = $('#...
$ -> $(document).on 'keydown', (event) -> active = $(document.activeElement) if active.is('.group-dropdown-search, .selector-link') switch event.which when 40 # select next group with down arrow target = active.parent().next('.group-item:visible').find('.selector-link') targe...
Handle keyboard navigation with hidden selections better
Handle keyboard navigation with hidden selections better
CoffeeScript
agpl-3.0
podemos-info/loomio,podemos-info/loomio,rafacouto/loomio-bak,podemos-info/loomio,rafacouto/loomio-bak,rafacouto/loomio-bak
26376cfdda95aa5e4d009f792882a9151ad9fd88
src/scripts/github-pulls.coffee
src/scripts/github-pulls.coffee
# Show open pull requests 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 hubot pulls` # instead of `show me github/hubot pulls`. # # You can fur...
Add Hubot scripts to serach open Github pull requests
Add Hubot scripts to serach open Github pull requests
CoffeeScript
mit
ambikads/hubot-scripts,gregburek/emojibot,jankowiakmaria/hubot-scripts,DataDog/hubot-scripts,contolini/hubot-scripts,magicstone1412/hubot-scripts,1stdibs/hubot-scripts,flores/hubot-scripts,jan0sch/hubot-scripts,josephcarmello/hubot-scripts,jhubert/hubot-scripts,opentable/hubot-scripts,Tyriont/hubot-scripts,jacobtomlins...
639f996243403093f27e2f0a0d48ae9145c2f862
app/assets/javascripts/initializers/authentication.coffee
app/assets/javascripts/initializers/authentication.coffee
Dashboard.CustomAuthenticator = SimpleAuth.Authenticators.Devise.extend restore: (properties) -> new Ember.RSVP.Promise((resolve, reject) -> if not Ember.isEmpty(properties.access_token) resolve properties else reject() return ) authenticate: (credentials) -> _this = t...
Create custom authenticator and authorizer for simple-auth
Create custom authenticator and authorizer for simple-auth
CoffeeScript
mit
FromUte/dune-dashboard,FromUte/dune-dashboard,FromUte/dune-dashboard
0dc78681202ba5945461240b893032f33378a91b
lib/replay/index.coffee
lib/replay/index.coffee
DNS = require("dns") HTTP = require("http") ProxyRequest = require("./proxy") Replay = require("./replay") # Route HTTP requests to our little helper. HTTP.request = (options, callback)-> request = new ProxyRequest(options, Replay.chain.start) if callback request.once "response", (r...
DNS = require("dns") HTTP = require("http") ProxyRequest = require("./proxy") Replay = require("./replay") httpRequest = HTTP.request # Route HTTP requests to our little helper. HTTP.request = (options, callback)-> # WebSocket request: pass through to Node.js library if options && opt...
Support (or don't fail on) Web Sockets
Support (or don't fail on) Web Sockets
CoffeeScript
mit
fid-dev/node-replay,assaf/node-replay,MYOB-Technology/node-replay,redbadger/node-replay
98aa90baa3d101cc9feca820e862e38278e62216
spec/countries/NANP-spec.coffee
spec/countries/NANP-spec.coffee
expect = require('chai').expect Phone = require('../../src/script/Phone') country = require('../../src/script/countries/NANP') describe 'NANP', -> describe 'Should validate', -> it 'all NANP NDCs', -> # Arrange prefix = "+1 " suffix = " 9898656" # Act for ndc in Phone.countries['1'].nationalDesti...
Add test to check all NANP NDCs
Add test to check all NANP NDCs
CoffeeScript
mit
vtex/front.phone
9fdb87ed1e93dd7af4f984fed54bce35b90bdf83
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...
Update fixture path in spec
Update fixture path in spec
CoffeeScript
apache-2.0
coderhaoxin/grunt-electron-installer,mongodb-js/electron-installer-squirrel-windows,domderen/atom-shell-installer,electronjs/windows-installer,domderen/atom-shell-installer
c40e3e60227fee19c6c9225a9e01c7eca8f9a97a
apps/artist/prerender/reflection.coffee
apps/artist/prerender/reflection.coffee
fs = require 'graceful-fs' request = require 'superagent' { resolve } = require 'path' cache = require '../../../lib/cache' module.exports = class Reflection url: -> "http://artsy-reflection.s3.amazonaws.com/__reflection/forceartsynet#{@path}" constructor: ({ @path }) -> # request: -> request.get(@url(...
fs = require 'graceful-fs' request = require 'superagent' { resolve } = require 'path' cache = require '../../../lib/cache' { REFLECTION_URL } = require '../../../config' module.exports = class Reflection url: -> REFLECTION_URL + @path constructor: ({ @path }) -> # request: -> request.get(@url()).type(...
Use the configured REFLECTION_URL instead of hardcoding
Use the configured REFLECTION_URL instead of hardcoding
CoffeeScript
mit
oxaudo/force,yuki24/force,oxaudo/force,anandaroop/force,xtina-starr/force,izakp/force,artsy/force-public,damassi/force,cavvia/force-1,yuki24/force,dblock/force,joeyAghion/force,joeyAghion/force,damassi/force,izakp/force,erikdstock/force,mzikherman/force,erikdstock/force,damassi/force,kanaabe/force,erikdstock/force,anan...
d036956bc99deaf2b6598e3687b12a4bc50b815f
menus/python-isort.cson
menus/python-isort.cson
'menu': [ { 'label': 'Packages' 'submenu': [ { 'label': 'Python Isort' 'submenu': [ { 'label': 'Sort Python Imports' 'command': 'python-isort:run' } ] } ] } ]
Add configuration for editor global menu
Add configuration for editor global menu
CoffeeScript
mit
lexicalunit/atom-isort,lexicalunit/atom-isort
e1c7994784a1162b8c55c7341cad1edd7eb9f650
app/assets/javascripts/neighborly/admin/channels/new.js.coffee
app/assets/javascripts/neighborly/admin/channels/new.js.coffee
Neighborly.Admin.Channels ?= {} Neighborly.Admin.Channels ?= {} Neighborly.Admin.Channels.New = init: Backbone.View.extend el: '.admin' initialize: -> this.$('#channel_how_it_works').markItUp(Neighborly.markdownSettings) Neighborly.Admin.Channels.Edit = modules: -> [Neighborly.Admin.Channels.New]
Add markdown editor to channel admin
Add markdown editor to channel admin
CoffeeScript
mit
jinutm/silvfinal,MicroPasts/micropasts-crowdfunding,raksonibs/raimcrowd,rockkhuya/taydantay,rockkhuya/taydantay,jinutm/silverme,jinutm/silvfinal,jinutm/silverprod,jinutm/silverclass,jinutm/silverme,gustavoguichard/neighborly,jinutm/silveralms.com,jinutm/silverme,MicroPasts/micropasts-crowdfunding,raksonibs/raimcrowd,ji...
c12f17ed2d1c59d526b132e369b1133a8d6775d6
spec/palette-spec.coffee
spec/palette-spec.coffee
Color = require '../lib/color' Palette = require '../lib/palette' describe 'Palette', -> [colors, palette] = [] beforeEach -> colors = red: new Color '#ff0000' green: new Color '#00ff00' blue: new Color '#0000ff' redCopy: new Color '#ff0000' palette = new Palette(colors) descri...
Add tests for palette methods
:white_check_mark: Add tests for palette methods
CoffeeScript
mit
peter1000/atom-pigments,peter1000/atom-pigments
afc6721bf5faf8e7a60b2b11e3587998b8a31091
packages/rocketchat-oembed/client/oembedUrlWidget.coffee
packages/rocketchat-oembed/client/oembedUrlWidget.coffee
getTitle = (self) -> if not self.meta? return return self.meta.ogTitle or self.meta.twitterTitle or self.meta.title or self.meta.pageTitle getDescription = (self) -> if not self.meta? return description = self.meta.ogDescription or self.meta.twitterDescription or self.meta.description if not description? ...
getTitle = (self) -> if not self.meta? return return self.meta.ogTitle or self.meta.twitterTitle or self.meta.title or self.meta.pageTitle getDescription = (self) -> if not self.meta? return description = self.meta.ogDescription or self.meta.twitterDescription or self.meta.description if not description? ...
Fix Relative path on og:image meta tag results in broken preview image
Fix Relative path on og:image meta tag results in broken preview image Closes #4421
CoffeeScript
mit
snaiperskaya96/Rocket.Chat,Gyubin/Rocket.Chat,Sing-Li/Rocket.Chat,galrotem1993/Rocket.Chat,abduljanjua/TheHub,JamesHGreen/Rocket.Chat,fatihwk/Rocket.Chat,flaviogrossi/Rocket.Chat,Kiran-Rao/Rocket.Chat,karlprieb/Rocket.Chat,k0nsl/Rocket.Chat,intelradoux/Rocket.Chat,tntobias/Rocket.Chat,cnash/Rocket.Chat,pkgodara/Rocket....
232a8e271baca81a7898384a3939aaeadd6af41e
app/assets/javascripts/components/button_disable_with.coffee
app/assets/javascripts/components/button_disable_with.coffee
# jquery-ujs can disable buttons if they have an attribute data-disable-with # this only works if the button is within a form and the form is submitted # this snippet adds that feature to any button with that data attribute. $(document).on('click', 'button[data-disable-with]', -> $(this) .html($(this).data('disa...
Allow using the data-disable-with attribute on any button.
Allow using the data-disable-with attribute on any button.
CoffeeScript
mit
diegoaad/lale-help,lale-help/lale-help,jprokay/lale-help,diegoaad/lale-help,diegoaad/lale-help,jprokay/lale-help,lale-help/lale-help,lale-help/lale-help,lale-help/lale-help,jprokay/lale-help,jprokay/lale-help,diegoaad/lale-help
3d77204f8669d4f944290384c8d27ed224c412fd
lib/shared/lib/spendflow.coffee
lib/shared/lib/spendflow.coffee
@spendflowPrecision = 2 # TODO: Allow changing accounting.js settings from a UI accounting.settings.currency.symbol = "" accounting.settings.currency.precision = 2 accounting.settings.number.precision = 2
@SPENDFLOW_VERSION = '1.7.9-pre' @spendflowPrecision = 2 # TODO: Allow changing accounting.js settings from a UI accounting.settings.currency.symbol = "" accounting.settings.currency.precision = 2 accounting.settings.number.precision = 2
Add a version to make debugging easier.
Add a version to make debugging easier. Also, previous fixes delivered [#70910642].
CoffeeScript
agpl-3.0
hamidsardar/spendflow,spendflow/spendflow,hamidsardar/spendflow
44bfcfc7e7052ae526c6bdf8aaffa5e10c11a940
client/ide/views/statusbar/chatheadwatchitemview.coffee
client/ide/views/statusbar/chatheadwatchitemview.coffee
class IDE.ChatHeadWatchItemView extends KDCustomHTMLView constructor: (options = {}, data) -> options.partial = 'Watch' super options, data { isWatching, nickname } = @getOptions() @addSubView @toggle = new KodingSwitch cssClass : 'tiny' defaultValue : isWatching callback ...
Watch menu item initial commit
Collaboration: Watch menu item initial commit
CoffeeScript
agpl-3.0
acbodine/koding,drewsetski/koding,kwagdy/koding-1,jack89129/koding,cihangir/koding,cihangir/koding,kwagdy/koding-1,gokmen/koding,rjeczalik/koding,szkl/koding,drewsetski/koding,gokmen/koding,koding/koding,drewsetski/koding,szkl/koding,rjeczalik/koding,kwagdy/koding-1,alex-ionochkin/koding,gokmen/koding,koding/koding,gok...
e06d63602fb36b1ecf6d7d62e765af6b6f84b35a
scripts/test-instance/instance-ami.coffee
scripts/test-instance/instance-ami.coffee
module.exports = current: 'ami-5dd50436' # Ordered by creation date list: [ 'ami-a7986fcc' 'ami-b920d7d2' 'ami-9b02f0f0' 'ami-e7a05a8c' 'ami-5dd50436' ]
module.exports = current: 'ami-5dd50436' # Ordered by creation date list: [ 'ami-5dd50436' ]
Remove obsolete test instance AMI identifiers
Remove obsolete test instance AMI identifiers
CoffeeScript
agpl-3.0
usirin/koding,koding/koding,rjeczalik/koding,szkl/koding,usirin/koding,koding/koding,gokmen/koding,gokmen/koding,acbodine/koding,cihangir/koding,usirin/koding,mertaytore/koding,jack89129/koding,andrewjcasal/koding,alex-ionochkin/koding,jack89129/koding,gokmen/koding,sinan/koding,mertaytore/koding,andrewjcasal/koding,ci...
99d4f59b0221e09aa9ba832232c3addba5a25db3
core/app/backbone/views/users/react_sidebar_login.coffee
core/app/backbone/views/users/react_sidebar_login.coffee
window.ReactSidebarLogin = React.createBackboneClass displayName: 'ReactSidebarLogin' mixins: [ UpdateOnSignInOrOutMixin ] render: -> if !currentSession.signedIn() ReactSigninLinks() else _span []
Use new sign in class for sign in area in sidebar
Use new sign in class for sign in area in sidebar
CoffeeScript
mit
Factlink/factlink-core,daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core
e06d6a26f8a6049b7dba47ae31389647f70cd608
run.coffee
run.coffee
# # TODO figure out better name & place & API for such script # # TODO add shebang & make executable require 'fy' if !process.argv[2]? perr "Usage: iced run.coffee [input]" process.exit 1 ## -v 0 # me = require "." # await me.go process.argv[2], {}, defer err, res # throw err if err # p res ## -v 2 p "Input:", pro...
Add a simple launcher that helps to play with scriptscript
Add a simple launcher that helps to play with scriptscript
CoffeeScript
mit
hu2prod/scriptscript,hu2prod/scriptscript
f5821bee62b7569888eb6a5678c6c8c286ee743e
lib/assets/javascripts/nyulibraries/hide.js.coffee
lib/assets/javascripts/nyulibraries/hide.js.coffee
# Works like data-dismiss in Bootstrap, but instead of removing # the parent element, it just hides it. $ -> $("[data-hide]").on "click", (event)-> $parent = $(@).closest("." + $(@).attr("data-hide")) $parent.removeClass("in") if $.support.transition && $parent.hasClass('fade') $parent.on $.support....
Add hide functionality similar to Bootstrap's data-dismiss, but hides the element instead of remove it.
Add hide functionality similar to Bootstrap's data-dismiss, but hides the element instead of remove it.
CoffeeScript
mit
cul/fabl-assets,cul/fabl-assets,NYULibraries/nyulibraries-assets,NYULibraries/nyulibraries-assets,cul/fabl-assets,NYULibraries/nyulibraries-assets
532ba63b04ecd54ef63fc41bc78cfcabcf8a9348
Gruntfile.coffee
Gruntfile.coffee
module.exports = (grunt) -> # Grunt configuration grunt.initConfig coffee: source: expand: true cwd: './' src: ['index.coffee', 'test/test.coffee'] dest: './' ext: '.js' watch: backend: files: ['index.coffee', 'test/test.coffee'] tasks: ['...
Add Grunt configuration for building/watching package
Add Grunt configuration for building/watching package
CoffeeScript
mit
ghost-inspector/node-ghost-inspector,ghost-inspector/node-ghost-inspector
5b955a1a08892664d6a70cc3719a38b1da7f64c8
app/assets/javascripts/bookmarklet.js.coffee
app/assets/javascripts/bookmarklet.js.coffee
if document.URL.indexOf("https://github.com/") == 0 open("http://knight.dev/repos/" + document.URL.split("/").slice(3).join("/")) else alert("Please use this bookmarklet on a URL like https://github.com/rails/rails") ### javascript:(function() { if (document.URL.indexOf("https://github.com/") === 0) { ope...
Add Bookmarklet that works on Github only
Add Bookmarklet that works on Github only
CoffeeScript
mit
thomasklemm/pluginGeek
ce96ae3a6751e5a18faeee7bf980a33af84ea354
server/spendflow.coffee
server/spendflow.coffee
@spendflowAutomaticNotes = "Managed automatically"
@spendflowAutomaticNotes = "Managed automatically" Accounts.emailTemplates.from = "Kevin at Spendflow <kevin@spendflow.co>"
Put my name on the emails.
Put my name on the emails.
CoffeeScript
agpl-3.0
hamidsardar/spendflow,spendflow/spendflow,hamidsardar/spendflow
9c56f6c2fccb56c59810e00c548f644185bef01f
services/web/test/unit_frontend/coffee/ide/editor/aceEditor/spell-check/SpellCheckManagerTests.coffee
services/web/test/unit_frontend/coffee/ide/editor/aceEditor/spell-check/SpellCheckManagerTests.coffee
define [ 'ide/editor/directives/aceEditor/spell-check/SpellCheckManager' ], (SpellCheckManager) -> describe 'SpellCheckManager', -> beforeEach (done) -> @timelord = sinon.useFakeTimers() window.user = { id: 1 } window.csrfToken = 'token' @scope = { $watch: sinon.stub() s...
Add init test for SpellCheckManager
Add init test for SpellCheckManager
CoffeeScript
agpl-3.0
sharelatex/sharelatex
60eeb733e54d7e8ceb11afdc160bf1b4323e3009
menus/git-diff.cson
menus/git-diff.cson
'menu': [ { 'label': 'Packages' 'submenu': [ 'label': 'Git Diff' 'submenu': [ { 'label': 'Move to Next Diff', 'command': 'git-diff:move-to-next-diff' } { 'label': 'Move to Previous Diff', 'command': 'git-diff:move-to-previous-diff' } ] ] } ]
Add menu items to move to next/previous diffs
Add menu items to move to next/previous diffs
CoffeeScript
mit
anjerodesu/git-diff,UltCombo/git-diff,atom/git-diff
cd2c8e71995ccc63e458ea53af1def8321c6122a
services/web/public/coffee/ide/review-panel/directives/reviewPanelCollapseHeight.coffee
services/web/public/coffee/ide/review-panel/directives/reviewPanelCollapseHeight.coffee
define [ "base" ], (App) -> App.directive "reviewPanelCollapseHeight", ($parse) -> return { restrict: "A", link: (scope, element, attrs) -> scope.$watch (() -> $parse(attrs.reviewPanelCollapseHeight)(scope)), (shouldCollapse) -> neededHeight = element.prop("scrollHeight") if neededHeight > 0 ...
Add directive based on jQuery animation API.
Add directive based on jQuery animation API.
CoffeeScript
agpl-3.0
sharelatex/sharelatex
a9baf547076f06f922d01aa264111a0339c39b27
spec/app/git-spec.coffee
spec/app/git-spec.coffee
Git = require 'git' describe "Git", -> describe "getPath()", -> it "returns the repository path for a working directory file path", -> repo = new Git(require.resolve('fixtures/git/nohead.git/HEAD')) expect(repo.getPath()).toBe require.resolve('fixtures/git/nohead.git') + '/' repo = new Git(req...
Git = require 'git' describe "Git", -> describe "getPath()", -> it "returns the repository path for a .git directory path", -> repo = new Git(require.resolve('fixtures/git/master.git/HEAD')) expect(repo.getPath()).toBe require.resolve('fixtures/git/master.git') + '/' it "returns the repository ...
Update git specs for latest libgit2 build
Update git specs for latest libgit2 build
CoffeeScript
mit
efatsi/atom,bolinfest/atom,ivoadf/atom,targeter21/atom,AlbertoBarrago/atom,MjAbuz/atom,prembasumatary/atom,Andrey-Pavlov/atom,G-Baby/atom,omarhuanca/atom,florianb/atom,vjeux/atom,vinodpanicker/atom,crazyquark/atom,bsmr-x-script/atom,bj7/atom,targeter21/atom,batjko/atom,rsvip/aTom,yalexx/atom,Shekharrajak/atom,vcarrera/...
98c57048b7da54e4e10fdeee17ae5e4d5f6c4b7c
client/routes/filters.coffee
client/routes/filters.coffee
### Route Filters Filters for managing user access to application routes. ### # Define Filters # Check if a User is Logged In # If a user is not logged in and attempts to go to an authenticated route, # re-route them to the login screen. checkUserLoggedIn = -> if not Meteor.loggingIn() or Meteor.user() ...
### Route Filters Filters for managing user access to application routes. ### # Define Filters ### Filter: Check if a User is Logged In If a user is not logged in and attempts to go to an authenticated route, re-route them to the login screen. ### checkUserLoggedIn = -> if not Meteor.loggingIn...
Clean up comments on filter defintions.
Clean up comments on filter defintions.
CoffeeScript
mit
themeteorchef/base,mgscreativa/base,ggallon/rock,ggallon/rock,zarazi/lnwKodeTrend,zarazi/lnwKodeTrend,LukeJFernandez/bigreads,KyneSilverhide/team-manager,lnwKodeDotCom/WeWish,zarazi/movies-listie,zarazi/movies-listie,themeteorchef/base,lnwKodeDotCom/WeWish,mgscreativa/base,chevismo/chevismo-meteor,chevismo/chevismo-met...
990c14862b5a61918166ea80b76146ba6fdbed12
app/client/js/react/layout.coffee
app/client/js/react/layout.coffee
goog.provide 'app.react.Layout' class app.react.Layout ###* PATTERN(steida): Here we can choose mobile/tablet/desktop layout. @param {app.Routes} routes @param {app.react.Header} header @param {app.react.Footer} footer @constructor ### constructor: (routes, header, footer) -> {div} = Re...
Introduce app.react.Layout to fix SRP violation.
Introduce app.react.Layout to fix SRP violation. app.react.App violated single responsibility principle since it handled pages and layout. Layout is own concern, we want to render different layouts for different devices.
CoffeeScript
mit
steida/songary
f5b51c9087b8cb17b2c613bf022f0d624323c355
core/htdocs_source/src/pods/oxifield-select/component.coffee
core/htdocs_source/src/pods/oxifield-select/component.coffee
`import Em from "vendor/ember"` Component = Em.Component.extend initializeValue: Em.on "init", -> prompt = @get "content.prompt" if prompt options = @get "content.options" options.unshift label: prompt value: "" else option...
`import Em from "vendor/ember"` Component = Em.Component.extend initializeValue: Em.on "init", -> prompt = @get "content.prompt" if prompt options = @get "content.options" if prompt isnt options[0].label options.unshift label: prompt ...
Check if select content was already initialized.
Check if select content was already initialized.
CoffeeScript
apache-2.0
oliwel/openxpki,stefanomarty/openxpki,oliwel/openxpki,openxpki/openxpki,openxpki/openxpki,aleibl/openxpki,oliwel/openxpki,oliwel/openxpki,oliwel/openxpki,openxpki/openxpki,aleibl/openxpki,stefanomarty/openxpki,aleibl/openxpki,aleibl/openxpki,aleibl/openxpki,stefanomarty/openxpki,stefanomarty/openxpki,openxpki/openxpki,...
a91c159ed78c973632ebdc34ea0f56f79dcd4a84
teaspoon-jasmine/lib/teaspoon/jasmine/assets/teaspoon/jasmine1/fixture.coffee
teaspoon-jasmine/lib/teaspoon/jasmine/assets/teaspoon/jasmine1/fixture.coffee
class Teaspoon.Jasmine1.Fixture extends Teaspoon.fixture window.fixture = @ @load: -> args = arguments throw "Teaspoon can't load fixtures outside of describe." unless @env().currentSuite || @env().currentSpec if @env().currentSuite @env().beforeEach => fixture.__super__.constructor.load.apply(@...
class Teaspoon.Jasmine1.Fixture extends Teaspoon.fixture @load: -> args = arguments throw "Teaspoon can't load fixtures outside of describe." unless @env().currentSuite || @env().currentSpec if @env().currentSuite @env().beforeEach => fixture.__super__.constructor.load.apply(@, args) @env().a...
Remove redundant assignment, handled below
Remove redundant assignment, handled below
CoffeeScript
mit
beni55/teaspoon,modeset/teaspoon,iainbeeston/teaspoon,bouk/teaspoon,andresbravog/teaspoon,modeset/teaspoon,beni55/teaspoon,derby-developers/teaspoon,derby-developers/teaspoon,beni55/teaspoon,iainbeeston/teaspoon,bouk/teaspoon,modeset/teaspoon,derby-developers/teaspoon,bouk/teaspoon,andresbravog/teaspoon,iainbeeston/tea...
c2290ad058a606b09d566ba4fa72adabce7cebf2
atom/browser/api/lib/app-command.coffee
atom/browser/api/lib/app-command.coffee
module.exports = APPCOMMAND_BROWSER_BACKWARD: 1 APPCOMMAND_BROWSER_FORWARD: 2 APPCOMMAND_BROWSER_REFRESH: 3 APPCOMMAND_BROWSER_STOP: 4 APPCOMMAND_BROWSER_SEARCH: 5 APPCOMMAND_BROWSER_FAVORITES: ...
Add enum for media keys on Win32
Add enum for media keys on Win32
CoffeeScript
mit
bruce/electron,minggo/electron,IonicaBizauKitchen/electron,tylergibson/electron,kostia/electron,cqqccqc/electron,nicobot/electron,fffej/electron,brenca/electron,JussMee15/electron,jannishuebl/electron,smczk/electron,michaelchiche/electron,rreimann/electron,rhencke/electron,xiruibing/electron,saronwei/electron,xfstudio/...
2efad6bc1967a7414a7e58b8e84db735624e5d1d
helper/swf.coffee
helper/swf.coffee
_ = require "underscore" AWS = require "aws-sdk" Match = require "mtr-match" Promise = require "bluebird" module.exports = (options) -> Match.check options, Match.ObjectIncluding accessKeyId: String secretAccessKey: String region: String Promise.promisifyAll new AWS.SWF _.extend apiVersion: "2012-0...
Refactor registrar to use separate definition files
Refactor registrar to use separate definition files
CoffeeScript
agpl-3.0
fixin-platform/backend-core,skgcorp/core,spirehq/backend-core,skgcorp/core,fixin-platform/backend-core,spirehq/backend-core
5bb2931570f2b44118d84c536256d7b6a2ace22a
test/e2e/sessionDetailSpec.coffee
test/e2e/sessionDetailSpec.coffee
_ = require 'lodash' expect = require('./helpers/expect')() Page = require('./helpers/page')() class SessionDetailPage extends Page # @returns a promise resolving to a # {download: button, display: button} object scanFirstImageButtons: -> div = element(By.repeater('image in session.scan.images').row(0)) ...
Test the session detail page.
Test the session detail page.
CoffeeScript
bsd-2-clause
ohsu-qin/qiprofile,ohsu-qin/qiprofile,ohsu-qin/qiprofile,ohsu-qin/qiprofile
866a276a6332e4ca08e34e081124d3af5a2e5f96
test/kwargs.coffee
test/kwargs.coffee
sh = require "../index.js" echo = sh "echo", "-n" describe "keyword arguments", -> describe "expanding key-value pairs", -> it "happens when the values are strings", (done) -> echo key: "value", (err, res) -> res.should.equal "--key=value" done() it "c...
Add unit tests for keyword arguments
Add unit tests for keyword arguments
CoffeeScript
bsd-2-clause
bgw/scallop