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
fa27c546ae2c396b0298df790463b6c1e9c373b5
client/controller/vote-controller.coffee
client/controller/vote-controller.coffee
class @VoteController extends RouteController waitOn: -> q = {} if filterType = @params.filterType q.type = filterType if filterTag = @params.filterTag q.tags = filterTag Meteor.subscribe('proposals-min', q) after: -> document.title = "Vote | Reversim Summit 2014" tempalte: 'vote' ...
class @VoteController extends RouteController waitOn: -> q = {} if filterType = @params.filterType q.type = filterType if filterTag = @params.filterTag q.tags = filterTag Meteor.subscribe('proposals-min', q) after: -> document.title = "Vote | Reversim Summit 2014" tempalte: 'vote' ...
Fix for spakers array that's not ready yet
Fix for spakers array that's not ready yet
CoffeeScript
apache-2.0
rantav/reversim-summit-2014,rantav/reversim-summit-2015,rantav/reversim-summit-2015,rantav/reversim-summit-2015,rantav/reversim-summit-2014
aacef696be3ca14bfd073e803e63295212dc0469
client/Main/providers/vendorview.coffee
client/Main/providers/vendorview.coffee
class VendorView extends KDView constructor:-> super cssClass: 'vendor' @vendorController = new KDListViewController selection : yes viewOptions : cssClass : 'vendor-list' wrapper : yes itemClass : VendorItemView , items : [ { name : "Koding", ...
class VendorView extends KDView constructor:-> super cssClass: 'vendor' @vendorController = new KDListViewController selection : yes viewOptions : cssClass : 'vendor-list' wrapper : yes itemClass : VendorItemView , items : [ { name : "Koding", ...
Add VendorGoogle to vendor list
VendorView: Add VendorGoogle to vendor list
CoffeeScript
agpl-3.0
drewsetski/koding,rjeczalik/koding,sinan/koding,alex-ionochkin/koding,alex-ionochkin/koding,jack89129/koding,mertaytore/koding,gokmen/koding,rjeczalik/koding,kwagdy/koding-1,alex-ionochkin/koding,rjeczalik/koding,andrewjcasal/koding,mertaytore/koding,koding/koding,alex-ionochkin/koding,cihangir/koding,drewsetski/koding...
d3aaaef3459fce98079dd084466e73343e01f342
lib/assets/javascripts/views/navigation_active.js.coffee
lib/assets/javascripts/views/navigation_active.js.coffee
Marbles.Views.NavigationActive = class NavigationActiveView extends Marbles.View @view_name: 'navigation_active' @buildMappingRegexp: (mapping) -> new RegExp("^#{mapping.replace("*", ".*?")}$") initialize: -> @active_class = Marbles.DOM.attr(@el, 'data-active-class') @active_selector = Marbles.DOM.a...
Marbles.Views.NavigationActive = class NavigationActiveView extends Marbles.View @view_name: 'navigation_active' @buildMappingRegexp: (mapping) -> new RegExp("^#{mapping.replace("*", ".*?")}$") initialize: -> @active_class = Marbles.DOM.attr(@el, 'data-active-class') @active_selector = Marbles.DOM.a...
Fix nav selected when path prefix
Fix nav selected when path prefix
CoffeeScript
bsd-3-clause
tent/tent-status,tent/tent-status
cc188cfcd7cf3df47643e1257203bb49b54e6656
server/security.coffee
server/security.coffee
## Browser policy to allow many external sources, but *not* frames. #BrowserPolicy.content.allowOriginForAll 'http://meteor.local' BrowserPolicy.content.allowImageOrigin '*' BrowserPolicy.content.allowMediaOrigin '*' BrowserPolicy.content.allowFontOrigin '*' BrowserPolicy.content.allowStyleOrigin '*' BrowserPolicy.cont...
## Browser policy to allow many external sources, but *not* frames. #BrowserPolicy.content.allowOriginForAll 'http://meteor.local' BrowserPolicy.content.allowImageOrigin '*' BrowserPolicy.content.allowMediaOrigin '*' BrowserPolicy.content.allowFontOrigin '*' BrowserPolicy.content.allowStyleOrigin '*' BrowserPolicy.cont...
Fix PDFs with embedded images via BrowserPolicy
Fix PDFs with embedded images via BrowserPolicy pdf.js embeds blob: objects into <img> tags (when the PDF has embedded images), and we need to explicitly allow this.
CoffeeScript
mit
edemaine/coauthor,edemaine/coauthor
d95e14acda30d688946819f9071f52ac47c40853
lib/helpers/bean_builder.coffee
lib/helpers/bean_builder.coffee
{Wrappers} = require "#{__dirname}/wrappers" class BeanBuilder basePath: null suffix: null createObjectCallback: null useSingletons: false instances: null constructor: ({@basePath, @suffix, @createObjectCallback, @useSingletons}) -> if @suffix[0] is '_' @suffix = @suffix[1..] @instances =...
{Wrappers} = require "#{__dirname}/wrappers" class BeanBuilder basePath: null suffix: null createObjectCallback: null useSingletons: false instances: null constructor: ({@basePath, @suffix, @createObjectCallback, @useSingletons}) -> if @suffix[0] is '_' @suffix = @suffix[1..] @instances =...
Add a generic idType to each built instance. Perhaps removed later.
Add a generic idType to each built instance. Perhaps removed later.
CoffeeScript
mit
knalli/pi-jenkins,knalli/pi-jenkins
9b52de5d640b5a7a83fd607e9985bee3e4add4dc
app/assets/javascripts/views/event/artists_view.js.coffee
app/assets/javascripts/views/event/artists_view.js.coffee
Yossarian.EventArtistView = Ember.View.extend tagName: 'img' attributeBindings: ['src', 'title'] preload: -> @set('src', @get('content.image.image.large.url')) @set('title', @get('content.name')) Yossarian.EventArtistsView = Ember.CollectionView.extend tagName: 'div' content: [] currentItem: null ...
Yossarian.EventArtistView = Ember.View.extend tagName: 'img' attributeBindings: ['src', 'title'] preload: -> @set('src', @get('content.image.image.large.url')) @set('title', @get('content.name')) Yossarian.EventArtistsView = Ember.CollectionView.extend tagName: 'div' content: [] nextSlideView: nul...
Add more inteligent image preloading
Add more inteligent image preloading
CoffeeScript
mit
smolnar/yossarian,smolnar/yossarian,smolnar/yossarian
a7721854f276294dba8bf9662e0a309743e4d31b
src/components/task-step/step-mixin.cjsx
src/components/task-step/step-mixin.cjsx
React = require 'react' BS = require 'react-bootstrap' _ = require 'underscore' {StepPanel} = require '../../helpers/policies' {CardBody} = require '../pinned-header-footer-card/sections' AsyncButton = require '../buttons/async-button' {TaskStore} = require '../../flux/task' {TaskStepStore} = require '../../flux/task...
React = require 'react' BS = require 'react-bootstrap' _ = require 'underscore' {StepPanel} = require '../../helpers/policies' {CardBody} = require '../pinned-header-footer-card/sections' AsyncButton = require '../buttons/async-button' {TaskStore} = require '../../flux/task' {TaskStepStore} = require '../../flux/task...
Disable continue button when saving
Disable continue button when saving A task step should not be continued while it's state is saving or loading. The earlier code was checking the isSaving state, but wasn't passing it onto the AsyncButton.
CoffeeScript
agpl-3.0
openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js
819ad007e96ad21a8f1e93ecdf853b8815255382
src/scripts/modules/media/nav/nav.coffee
src/scripts/modules/media/nav/nav.coffee
define (require) -> router = require('cs!router') analytics = require('cs!helpers/handlers/analytics') BaseView = require('cs!helpers/backbone/views/base') template = require('hbs!./nav-template') require('less!./nav') return class MediaNavView extends BaseView template: template templateHelpers: ...
define (require) -> $ = require('jquery') router = require('cs!router') analytics = require('cs!helpers/handlers/analytics') BaseView = require('cs!helpers/backbone/views/base') template = require('hbs!./nav-template') require('less!./nav') return class MediaNavView extends BaseView template: templat...
Determine when to scroll content back to top dynamically
Determine when to scroll content back to top dynamically
CoffeeScript
agpl-3.0
Connexions/webview,Connexions/webview,katalysteducation/webview,Connexions/webview,carolinelane10/webview,dak/webview,dak/webview,dak/webview,katalysteducation/webview,katalysteducation/webview,katalysteducation/webview,Connexions/webview
540879a2350540ec3345d683c132d6f9a4790a3b
lib/tag-reader.coffee
lib/tag-reader.coffee
{Task} = require 'atom' ctags = require 'ctags' async = require 'async' getTagsFile = require "./get-tags-file" handlerPath = require.resolve './load-tags-handler' module.exports = find: (editor, callback) -> if editor.getLastCursor().getScopeDescriptor().getScopesArray().indexOf('source.ruby') isnt -1 # ...
{Task} = require 'atom' ctags = require 'ctags' async = require 'async' getTagsFile = require "./get-tags-file" handlerPath = require.resolve './load-tags-handler' module.exports = find: (editor, callback) -> cursor = editor.getLastCursor() scopes = cursor.getScopeDescriptor().getScopesArray() rubyScope...
Fix getting word under cursor for various Ruby scopes
Fix getting word under cursor for various Ruby scopes In Ruby blocks within ERB, go-to-declaration wouldn't work when cursor was positioned on identifiers such as `foo?` or `foo!` because the `?!` characters wouldn't be considered part of the current "word". This is due to the fact that the previous special case for `...
CoffeeScript
mit
atom/symbols-view,kainwinterheart/symbols-view
470bf0764e6a0f5119ae4b742c57dbdb84172411
lib/minimap-bookmarks-binding.coffee
lib/minimap-bookmarks-binding.coffee
{CompositeDisposable} = require 'atom' module.exports = class MinimapBookmarksBinding constructor: (@minimap) -> @subscriptions = new CompositeDisposable @editor = @minimap.getTextEditor() @decorationsByMarkerId = {} @decorationSubscriptionsByMarkerId = {} @subscriptions.add @editor.displayBuffe...
{CompositeDisposable} = require 'atom' module.exports = class MinimapBookmarksBinding constructor: (@minimap) -> @subscriptions = new CompositeDisposable @editor = @minimap.getTextEditor() @decorationsByMarkerId = {} @decorationSubscriptionsByMarkerId = {} if @editor.displayBuffer.onDidCreateMar...
Fix error raised with display layer version
:bug: Fix error raised with display layer version But the markers are no longer displayed
CoffeeScript
mit
atom-minimap/minimap-bookmarks
bca6ce3cae6f19aa2011affe717a76d376ae616a
web/js/views/search_view.coffee
web/js/views/search_view.coffee
define ['jquery', 'underscore', 'backbone', 'views/search_input_view'], ($, _, Backbone, SearchInputView) -> class SearchView extends Backbone.View el: $('#search') events: 'submit form': 'searchRoute' initialize: -> @to = new SearchInputView(el: @$el.find('#to')) @from = new SearchIn...
define ['jquery', 'underscore', 'backbone', 'views/search_input_view'], ($, _, Backbone, SearchInputView) -> class SearchView extends Backbone.View el: $('#search') events: 'submit form': 'searchRoute' initialize: -> @to = new SearchInputView(el: @$el.find('#to')) @to.val localStorage...
Store latest to address into local storage.
Store latest to address into local storage.
CoffeeScript
mit
reitti/reittiopas,reitti/reittiopas
221c14e19524f8b1289ae4dc31b7a50f770aa188
src/atom/layout.coffee
src/atom/layout.coffee
$ = require 'jquery' Template = require 'template' module.exports = class Layout extends Template @attach: -> view = @build() $('body').append view view content: -> @link rel: 'stylesheet', href: 'static/atom.css' @div id: 'app-horizontal', => @div id: 'app-vertical', outlet: 'vertical',...
$ = require 'jquery' Template = require 'template' module.exports = class Layout extends Template @attach: -> view = @build() $('body').append view view content: -> @link rel: 'stylesheet', href: "#{require.resolve('atom.css')}?#{(new Date).getTime()}" @div id: 'app-horizontal', => @div ...
Append a cache buster to atom.css url in stylesheet link tag.
Append a cache buster to atom.css url in stylesheet link tag.
CoffeeScript
mit
dijs/atom,Andrey-Pavlov/atom,folpindo/atom,qskycolor/atom,basarat/atom,sillvan/atom,panuchart/atom,woss/atom,deepfox/atom,MjAbuz/atom,codex8/atom,rsvip/aTom,qiujuer/atom,anuwat121/atom,ilovezy/atom,liuderchi/atom,bj7/atom,0x73/atom,n-riesco/atom,brettle/atom,AlbertoBarrago/atom,vinodpanicker/atom,matthewclendening/atom...
03e173a3af18c7c1c9e08af99f8e0207343885f2
spec/emitter-spec.coffee
spec/emitter-spec.coffee
{Emitter} = require('../src/emitter') describe "Emitter", -> it "invokes the observer when the named event is emitted until disposed", -> emitter = new Emitter fooEvents = [] barEvents = [] sub1 = emitter.on 'foo', (value) -> fooEvents.push(['a', value]) sub2 = emitter.on 'bar', (value) -> barE...
{Emitter} = require('../src/emitter') describe "Emitter", -> it "invokes the observer when the named event is emitted until disposed", -> emitter = new Emitter fooEvents = [] barEvents = [] sub1 = emitter.on 'foo', (value) -> fooEvents.push(['a', value]) sub2 = emitter.on 'bar', (value) -> barE...
Add specs for new async behavior
:new: Add specs for new async behavior
CoffeeScript
mit
steelbrain/event-kit,ZoomPK/event-kit
9b7182d5c82807079cdfe7ed2e38900358c00eb3
app/assets/javascripts/legend.js.coffee
app/assets/javascripts/legend.js.coffee
class PG.Legend defaults: className: "legend" constructor: (container, @graphs, options) -> @container = $(container) @options = $.extend @defaults, options @element = $("<div></div>").addClass(@options.className) @container.append @element @legend = new Rickshaw.Graph.Legend graph:...
class PG.Legend defaults: className: "legend" constructor: (container, @graphs, options) -> @container = $(container) @options = $.extend @defaults, options @element = $("<div></div>").addClass(@options.className) @container.append @element @legend = new Rickshaw.Graph.Legend graph:...
Use naturalOrder for legend label ordering
Use naturalOrder for legend label ordering
CoffeeScript
bsd-3-clause
pganalyze/pgdatagraph,pganalyze/pgdatagraph
6f03d7d8b1ec4f14c3d35d54e990dc250939d11d
src/index.coffee
src/index.coffee
Q = require 'q' argv = (require 'yargs').argv log = require './log' Q.longStackSupport = yes process.on 'uncaughtException', (err) -> log.error 'Uncaught exception:', err.stack process.nextTick -> process.exit 1 logLevel = argv.log ? 'info' log.initialize logLevel, require './io/tty-log' log "Using log level ...
Q = require 'q' argv = (require 'yargs').argv log = require './log' Q.longStackSupport = yes process.on 'uncaughtException', (err) -> log.error 'Uncaught exception:', err.stack Q.delay(100).then -> process.exit 1 logLevel = argv.log ? 'info' log.initialize logLevel, require './io/tty-log' log "Using log level...
Switch back to 100ms delay til process.exit on error
Switch back to 100ms delay til process.exit on error
CoffeeScript
mit
raymond-h/krogue
ac3af678832097933f5b062f69b89cb5fd59454a
app/app.coffee
app/app.coffee
app = angular.module 'qiprofile', [ 'ngRoute', 'ui.bootstrap', 'nvd3ChartDirectives', 'qiprofile.services', 'qiprofile.controllers', 'qiprofile.filters', 'qiprofile.directives', 'qiprofile.routes' ]
app = angular.module 'qiprofile', [ 'ui.router', 'ui.bootstrap', 'nvd3ChartDirectives', 'qiprofile.services', 'qiprofile.routes', 'qiprofile.controllers', 'qiprofile.filters', 'qiprofile.directives' ]
Replace Angular router with ui-router.
Replace Angular router with ui-router.
CoffeeScript
bsd-2-clause
ohsu-qin/qiprofile,ohsu-qin/qiprofile,ohsu-qin/qiprofile,ohsu-qin/qiprofile
02cf52645cd3f285ac5f66b13a6fe4a023e2c225
src/scripts/collections/subjects.coffee
src/scripts/collections/subjects.coffee
define (require) -> Backbone = require('backbone') settings = require('cs!settings') SERVER = "#{location.protocol}//#{settings.cnxarchive.host}:#{settings.cnxarchive.port}" return new class Subjects extends Backbone.Collection url: () -> "#{SERVER}/extras" initialize: () -> @fetch({reset: true...
define (require) -> _ = require('underscore') Backbone = require('backbone') settings = require('cs!settings') SERVER = "#{location.protocol}//#{settings.cnxarchive.host}:#{settings.cnxarchive.port}" return new class Subjects extends Backbone.Collection url: () -> "#{SERVER}/extras" initialize: () ...
Add image location to subject data
Add image location to subject data
CoffeeScript
agpl-3.0
dak/webview,carolinelane10/webview,Connexions/webview,katalysteducation/webview,dak/webview,dak/webview,Connexions/webview,katalysteducation/webview,katalysteducation/webview,Connexions/webview,Connexions/webview,katalysteducation/webview
e7b08ecfbd1aa78f3c71dbf4f38855dae3e0f0e4
src/main/coffeescript/tests/integration/showActivity.coffee
src/main/coffeescript/tests/integration/showActivity.coffee
define ['app', 'tests/testUtils'], (App, TestUtils) -> run = -> module 'Integration: showActivity', teardown: -> App.reset() test 'hello', -> ok true, 'true is tautological' test 'visit /, list all activity', -> expect 1 TestUtils.stubAjax '/api/v1/activity/days', 'GET', '[{"day":1399096800000,"activ...
define ['app', 'tests/testUtils'], (App, TestUtils) -> run = -> module 'Integration: showActivity', teardown: -> App.reset() test 'visit /, list all activity', -> expect 2 activity = [{ day: new Date().getTime() activities: ['Tested DayTracker'] }] TestUtils.stubAjax '/api/v1/activity/day...
Check heading in visit / test.
Check heading in visit / test.
CoffeeScript
apache-2.0
jhungerford/DayTracker,jhungerford/DayTracker,jhungerford/DayTracker
429949b3f78129e55a6a0b43991175c3742dffe2
menus/bracket-matcher.cson
menus/bracket-matcher.cson
'menu': [ { 'label': 'Packages' 'submenu': [ 'label': 'Bracket Matcher' 'submenu': [ { 'label': 'Go To Matching Bracket', 'command': 'bracket-matcher:go-to-matching-bracket' } { 'label': 'Select Inside Brackets', 'command': 'bracket-matcher:select-inside-brackets' } { 'labe...
'menu': [ { 'label': 'Packages' 'submenu': [ 'label': 'Bracket Matcher' 'submenu': [ { 'label': 'Go To Matching Bracket', 'command': 'bracket-matcher:go-to-matching-bracket' } { 'label': 'Select Inside Brackets', 'command': 'bracket-matcher:select-inside-brackets' } { 'labe...
Add a new menu item
Add a new menu item
CoffeeScript
mit
atom/bracket-matcher,adamCoGithub/Bracket-Matcher-no-smart-quotes,bwinton/bracket-matcher,lpommers/bracket-matcher,bwinton/bracket-matcher,adamCoGithub/Bracket-Matcher-no-autoclose,adamCoGithub/Bracket-Matcher-no-smart-quotes,adamCoGithub/Bracket-Matcher-no-autoclose,lpommers/bracket-matcher,jacekkopecky/bracket-matche...
3d8c916a726ff6b837aa865020fbe7d28289f0f0
build/tasks/install-task.coffee
build/tasks/install-task.coffee
path = require 'path' runas = null module.exports = (grunt) -> {cp, mkdir, rm} = require('./task-helpers')(grunt) grunt.registerTask 'install', 'Install the built application', -> installDir = grunt.config.get('atom.installDir') shellAppDir = grunt.config.get('atom.shellAppDir') if process.platform is...
fs = require 'fs' path = require 'path' runas = null module.exports = (grunt) -> {cp, mkdir, rm} = require('./task-helpers')(grunt) grunt.registerTask 'install', 'Install the built application', -> installDir = grunt.config.get('atom.installDir') shellAppDir = grunt.config.get('atom.shellAppDir') if p...
Install apm in deb package.
:penguin: Install apm in deb package.
CoffeeScript
mit
nucked/atom,mdumrauf/atom,liuxiong332/atom,mnquintana/atom,dijs/atom,abcP9110/atom,paulcbetts/atom,jtrose2/atom,deepfox/atom,gisenberg/atom,RuiDGoncalves/atom,ashneo76/atom,t9md/atom,constanzaurzua/atom,constanzaurzua/atom,sekcheong/atom,ezeoleaf/atom,xream/atom,FIT-CSE2410-A-Bombs/atom,Austen-G/BlockBuilder,medovob/at...
733461e71093d4b19b439fce2e6ad69b19c015cc
app/assets/javascripts/bootstrap.js.coffee
app/assets/javascripts/bootstrap.js.coffee
$ -> $("div.tabs").tab() $ -> $("a[rel=twipsy]").tooltip live: true $ -> $("a[rel=popover]").popover offset: 10 $ -> # TODO: find a better way to set this event handler # it is here, so this 'click' is handled before the 'dropdown' one $('ul.quickjump-dropdown').parents("li.dropdown").find("a.dropdown-toggl...
$ -> $("div.tabs").tab() $ -> $("a[rel=twipsy]").tooltip live: true $ -> $("a[rel=popover]").popover offset: 10 $ -> # TODO: find a better way to set this event handler # it is here, so this 'click' is handled before the 'dropdown' one $('ul.quickjump-dropdown').parents("li.dropdown").find("a.dropdown-toggl...
Remove log statement for dropdowns
Remove log statement for dropdowns
CoffeeScript
mit
rrrene/outline,rrrene/outline
ac15db51411209ba0e9d8be38deb933f01bcceee
client/clonewars.coffee
client/clonewars.coffee
Template.login.events 'submit form': (e) -> e.preventDefault() user = e.target.username.value pass = e.target.password.value Meteor.loginWithPg user, pass, (err) -> unless err Tracker.autorun -> Meteor.call 'listFiles', Meteor.user().user else FlashMessages.sendEr...
Template.login.events 'submit form': (e) -> e.preventDefault() user = e.target.username.value pass = e.target.password.value Meteor.loginWithPg user, pass, (err) -> unless err Tracker.autorun -> if user = Meteor.user() Meteor.call 'listFiles', user.user else ...
Make sure there actually is a user when we list files
Make sure there actually is a user when we list files
CoffeeScript
apache-2.0
scopely/clonewars
12d63fdd9d1c6c883e3b5f25dc059cb386150a57
main/version-check/leap.version-check.coffee
main/version-check/leap.version-check.coffee
versionCheck = (scope)-> scope.alert ||= false scope.requiredProtocolVerion ||= 6 scope.disconnect ||= true if (typeof Leap != 'undefined') && Leap.Controller if Leap.version.minor < 5 && Leap.version.dot < 4 console.warn("LeapJS Version Check plugin incompatible with LeapJS pre 0.4.4") @on 'read...
versionCheck = (scope)-> scope.alert ||= false scope.requiredProtocolVersion ||= 6 scope.disconnect ||= true if (typeof Leap != 'undefined') && Leap.Controller if Leap.version.minor < 5 && Leap.version.dot < 4 console.warn("LeapJS Version Check plugin incompatible with LeapJS pre 0.4.4") @on 'rea...
Clean up versionCheck disconnect hack
Clean up versionCheck disconnect hack
CoffeeScript
apache-2.0
leapmotion/leapjs-plugins,leapmotion/leapjs-plugins
a68b5888fef7cff4359686a104f94c0e2da03a03
app/assets/javascripts/routes/sessions.coffee
app/assets/javascripts/routes/sessions.coffee
Dashboard.SessionsNewRoute = Ember.Route.extend authRedirectable: false renderTemplate: -> Dashboard.SessionsDestroyRoute = Ember.Route.extend activate: -> @auth.signOut().then -> window.location.reload true this.render('sessions/new', outlet: 'login')
Dashboard.SessionsNewRoute = Ember.Route.extend renderTemplate: -> this.render('sessions/new', outlet: 'login')
Remove ember-auth sign out route
Remove ember-auth sign out route
CoffeeScript
mit
FromUte/dune-dashboard,FromUte/dune-dashboard,FromUte/dune-dashboard
f3f6ec424f8b30befe68f62d44f5c76f82f34f77
src/pasteboard.coffee
src/pasteboard.coffee
clipboard = require 'clipboard' crypto = require 'crypto' # Internal: Represents the clipboard used for copying and pasting in Atom. module.exports = class Pasteboard signatureForMetadata: null # Creates an `md5` hash of some text. # # text - A {String} to encrypt. # # Returns an encrypted {String}. md5...
clipboard = require 'clipboard' crypto = require 'crypto' # Public: Represents the clipboard used for copying and pasting in Atom. # # A pasteboard instance is always available under the `atom.pasteboard` global. module.exports = class Pasteboard signatureForMetadata: null # Creates an `md5` hash of some text. ...
Mark Pasteboard class as public
:memo: Mark Pasteboard class as public
CoffeeScript
mit
daxlab/atom,FoldingText/atom,originye/atom,gontadu/atom,rjattrill/atom,kandros/atom,FIT-CSE2410-A-Bombs/atom,batjko/atom,Jonekee/atom,omarhuanca/atom,qiujuer/atom,brettle/atom,kaicataldo/atom,ali/atom,tony612/atom,sxgao3001/atom,Galactix/atom,tmunro/atom,DiogoXRP/atom,qiujuer/atom,tony612/atom,AlexxNica/atom,hakatashi/...
5729b05df07d7c3de6d95ea65af4c25942c1a286
src/command.coffee
src/command.coffee
child_process = require 'child_process' module.exports = class Command spawn: (command, args, remaining...) -> options = remaining.shift() if remaining.length >= 2 callback = remaining.shift() spawned = child_process.spawn(command, args, options) errorChunks = [] outputChunks = [] spawned.s...
child_process = require 'child_process' module.exports = class Command spawn: (command, args, remaining...) -> options = remaining.shift() if remaining.length >= 2 callback = remaining.shift() spawned = child_process.spawn(command, args, options) errorChunks = [] outputChunks = [] spawned.s...
Add --atom-child_process-fork if running from Atom Helper
Add --atom-child_process-fork if running from Atom Helper Temporary workaround to allow packages to be installed/uninstalled from the Atom settings view.
CoffeeScript
mit
pusateri/apm,ethanp/apm,ethanp/apm,gutsy/apm,Nikpolik/apm,VandeurenGlenn/apm,bronson/apm,bronson/apm,fscherwi/apm,gutsy/apm,pusateri/apm,Nikpolik/apm,gutsy/apm,AtaraxiaEta/apm,VandeurenGlenn/apm,ethanp/apm,AtaraxiaEta/apm,atom/apm,jlord/apm,ethanp/apm,bcoe/apm,bcoe/apm,bronson/apm,VandeurenGlenn/apm,VandeurenGlenn/apm,...
50d4b2adc343ef61bd1dee747e83424b6d92a9e7
app/assets/javascripts/register.js.coffee
app/assets/javascripts/register.js.coffee
$ -> $('.devise-registrations-new .user_email input').blur -> $input = $(@) $sublogo = $input.parents('.login').find('.sub-logo') email = $input.val() if email.length > 0 and $input.data('last-email') != email $sublogo.html '' $.get "/company-from-email?email=#{email}", (data) -> i...
$ -> $('.registrations .user_email input').blur -> $input = $(@) $sublogo = $input.parents('.login').find('.sub-logo') email = $input.val() if email.length > 0 and $input.data('last-email') != email $sublogo.html '' $.get "/company-from-email?email=#{email}", (data) -> if data.name...
Fix bad jquery selector for signup animation
Fix bad jquery selector for signup animation
CoffeeScript
mit
DracoLi/little-button-2,DracoLi/little-button-2
7c476eaff8ea15aa4b3061fad29c88f51b61f869
router.coffee
router.coffee
Router.map -> @route "entrySignIn", path: "/sign-in" onBeforeRun: -> Session.set('entryError', undefined) Session.set('buttonText', 'in') @route "entrySignUp", path: "/sign-up" onBeforeRun: -> Session.set('entryError', undefined) Session.set('buttonText', 'up') @route "e...
Router.map -> @route "entrySignIn", path: "/sign-in" before: -> Session.set('entryError', undefined) Session.set('buttonText', 'in') @route "entrySignUp", path: "/sign-up" before: -> Session.set('entryError', undefined) Session.set('buttonText', 'up') @route "entryForgot...
Fix bug in setting session variables
Fix bug in setting session variables
CoffeeScript
mit
RiffynInc/meteor-accounts-entry,andykingking/accounts-entry,txs/meteor-wecare-accounts-entry-flow-blaze,valedaemon/accounts-entry,mike623/accounts-entry,AppWorkshop/accounts-entry,lnader/meteor-accounts-entry,RiffynInc/meteor-accounts-entry,jpatzer/accounts-entry,jpatzer/accounts-entry,txs/meteor-wecare-accounts-entry-...
5088839ae21adf8cc643915ad23edc9bf2715527
client/components/FindMistakeList.coffee
client/components/FindMistakeList.coffee
React = require('react') moment = require('moment') import { ListGroup, ListGroupItem } from 'react-bootstrap' import {Link} from 'react-router-dom' import ConnectedComponent from '../lib/ConnectedComponent' import withMyUser from '../lib/withMyUser' getClass = (result) -> if not result return undefined ...
React = require('react') moment = require('moment') import { ListGroup, ListGroupItem } from 'react-bootstrap' import {Link} from 'react-router-dom' import ConnectedComponent from '../lib/ConnectedComponent' import withMyUser from '../lib/withMyUser' getClass = (result) -> if not result return undefined ...
Fix findMistake for logged out user
Fix findMistake for logged out user
CoffeeScript
agpl-3.0
petr-kalinin/algoprog,petr-kalinin/algoprog,petr-kalinin/algoprog,petr-kalinin/algoprog
3d23afb49aa2cf987d1f1a1565b91116f9460191
server.coffee
server.coffee
americano = require 'americano' port = process.env.PORT || 9250 americano.start name: 'template', port: port
americano = require 'americano' port = process.env.PORT || 9250 americano.start name: 'template', port: port, root: __dirname
Use root option to find config when using compiled JS
Use root option to find config when using compiled JS
CoffeeScript
mit
nono/cozy-template-coffee,cozy/cozy-template-coffee
f7cf4d1982f327ce02f8b87f3d29fd87110bedf9
server/lib/session_authentication.coffee
server/lib/session_authentication.coffee
_ = require('underscore') module.exports = (req, res, next) -> httpVerbWhitelist = ['GET'] return next() if process.env.NODE_ENV == 'test' return next() if req.isAuthenticated() or _.contains(httpVerbWhitelist, req.method) return res.send(401, 'Unauthorised')
_ = require('underscore') httpVerbWhitelist = ['GET'] module.exports = (req, res, next) -> return next() if process.env.NODE_ENV == 'test' return next() if req.isAuthenticated() or _.contains(httpVerbWhitelist, req.method) return res.send(401, 'Unauthorised')
Define verbs outside of method so that they're not initiliased for every request
Define verbs outside of method so that they're not initiliased for every request
CoffeeScript
bsd-3-clause
unepwcmc/NRT,unepwcmc/NRT
8b0fa3d2a87ac2496287968937b412ca7fd81f9b
test/codio_spec.coffee
test/codio_spec.coffee
codio = require '../src/codio' path = require 'path' assert = require 'assert' tmp = require 'tmp' fs = require 'fs-extra' describe.only 'versal codio', -> cwd = null before (done) -> tmp.dir (err, tmp) -> cwd = tmp codio { cwd }, done it 'creates .codio file', (done) -> fs.exists path.join...
codio = require '../src/codio' path = require 'path' assert = require 'assert' tmp = require 'tmp' fs = require 'fs-extra' describe 'versal codio', -> cwd = null before (done) -> tmp.dir (err, tmp) -> cwd = tmp codio { cwd }, done it 'creates .codio file', (done) -> fs.exists path.join(cwd,...
Remove .only from test suite
Remove .only from test suite
CoffeeScript
mit
Versal/sdk,Versal/sdk
535fe31ca343a699b4b154f43478278546ef91c9
src/top.coffee
src/top.coffee
### Top module for Rubic (for Chrome App) ### # Compatibility modules require("compat/es7compat") require("compat/bbjscompat") # UI helpers require("ui/bootbox-promise") # Load main controller require("controller/windowcontroller") # Needed to solve circular dependency $(-> # Controller must be initiated after ...
### Top module for Rubic (for Chrome App) ### # Compatibility modules require("compat/es7compat") require("compat/bbjscompat") # UI helpers require("ui/bootbox-promise") # Load main controller require("controller/windowcontroller") # Needed to solve circular dependency $(-> # Controller must be initiated after ...
Initialize cache before activating first controller
Initialize cache before activating first controller
CoffeeScript
mit
kimushu/rubic,kimushu/rubic
3af84f36dd4c0d3818d5ee009c5a891c64ed8b04
bots/libs/HexBot.coffee
bots/libs/HexBot.coffee
### Common variables and functions for bots ### #require = patchRequire(global.require) #utils = require('utils') exports.userAgent = 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.5 Safari/537.36' #argumentData = [{name:'argName1',default:'optionalArg'}, {name:'argName2',cs...
### Common variables and functions for bots ### #require = patchRequire(global.require) #utils = require('utils') exports.userAgent = 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1516.3 Safari/537.36' #argumentData = [{name:'argName1',default:'optionalArg'}, {name:'argName2',cs...
Update useragent to Chrome-Dev 29
Update useragent to Chrome-Dev 29
CoffeeScript
bsd-3-clause
hexid/HexBot,hexid/HexBot,hexid/HexBot
f386d5cc4bbfd09c46935e98d33081c74c1f8f8a
src/app/atom-package.coffee
src/app/atom-package.coffee
Package = require 'package' fs = require 'fs' module.exports = class AtomPackage extends Package metadata: null keymapsDirPath: null constructor: (@name) -> super @keymapsDirPath = fs.join(@path, 'keymaps') load: -> try if @requireModule @module = require(@path) @module.name...
Package = require 'package' fs = require 'fs' module.exports = class AtomPackage extends Package metadata: null keymapsDirPath: null constructor: (@name) -> super @keymapsDirPath = fs.join(@path, 'keymaps') load: -> try if @requireModule @module = require(@path) @module.name...
Call fs.list() without prior call to fs.exists()
Call fs.list() without prior call to fs.exists() fs.list() returns an empty array if calle for a non-existent or non-directory path.
CoffeeScript
mit
tmunro/atom,jjz/atom,xream/atom,phord/atom,mnquintana/atom,rxkit/atom,Ju2ender/atom,nrodriguez13/atom,niklabh/atom,Shekharrajak/atom,fedorov/atom,prembasumatary/atom,kittens/atom,ppamorim/atom,AdrianVovk/substance-ide,ashneo76/atom,vjeux/atom,pkdevbox/atom,vcarrera/atom,mrodalgaard/atom,kandros/atom,ironbox360/atom,cod...
94023949e64cca8f7e29fc9cc5ed1cbc83ae6110
lib/whitespace.coffee
lib/whitespace.coffee
module.exports = activate: -> rootView.eachEditSession (editSession) => @whitespaceBeforeSave(editSession) configDefaults: ensureSingleTrailingNewline: true whitespaceBeforeSave: (editSession) -> buffer = editSession.buffer buffer.on 'will-be-saved', -> buffer.transact -> buffer.sc...
module.exports = configDefaults: ensureSingleTrailingNewline: true activate: -> rootView.eachEditSession (editSession) => @whitespaceBeforeSave(editSession) whitespaceBeforeSave: (editSession) -> buffer = editSession.buffer buffer.on 'will-be-saved', -> buffer.transact -> buffer.sc...
Move config defaults to top of exports
:lipstick: Move config defaults to top of exports
CoffeeScript
mit
atom/whitespace
60b3d5fc1bd90c0ed2fef44b86fa866b6a773e48
spec/javascripts/jquery.paginator_spec.coffee
spec/javascripts/jquery.paginator_spec.coffee
require 'jquery.history.js' require 'jquery.paginator.js' describe "Paginator", -> beforeEach -> loadFixtures('paginator.html') $('#list').ajaxPaginator() describe 'clicking a link', -> link = null beforeEach -> link = $('.pagination a:first') link.click() it "calls the link via ...
require 'jquery.history.js' require 'jquery.paginator.js' describe "Paginator", -> beforeEach -> loadFixtures('paginator.html') $('#list').ajaxPaginator() describe 'clicking a link', -> link = null beforeEach -> link = $('.pagination a:first') link.click() it "calls the link via ...
Test de actualización de la barra del navegador.
Test de actualización de la barra del navegador. Obsérvese que no pasa en rekonq, por un fallo de rekonq.
CoffeeScript
mit
javierv/41cero10asesores,javierv/41cero10asesores
84dc221b2e03cf92e8ce091c5ed6201e85e372b7
renderer/api/lib/ipc.coffee
renderer/api/lib/ipc.coffee
EventEmitter = require('events').EventEmitter ipc = process.atomBinding('ipc') class Ipc extends EventEmitter constructor: -> process.on 'ATOM_INTERNAL_MESSAGE', (args...) => @emit(args...) send: (args...) -> ipc.send('ATOM_INTERNAL_MESSAGE', 'message', args...) sendChannel: (args...) -> ipc....
EventEmitter = require('events').EventEmitter ipc = process.atomBinding('ipc') class Ipc extends EventEmitter constructor: -> process.on 'ATOM_INTERNAL_MESSAGE', (args...) => @emit(args...) window.addEventListener 'unload', (event) -> process.removeAllListeners 'ATOM_INTERNAL_MESSAGE' send: (...
Clear listeners on process object when unloading.
Clear listeners on process object when unloading. The process object is created under node context, and it will live through the reloading, so we are responsible for clearing the listeners to make sure resources are not leaked.
CoffeeScript
mit
ianscrivener/electron,jsutcodes/electron,jaanus/electron,xiruibing/electron,GoooIce/electron,seanchas116/electron,bbondy/electron,LadyNaggaga/electron,shennushi/electron,thomsonreuters/electron,thomsonreuters/electron,Zagorakiss/electron,tonyganch/electron,coderhaoxin/electron,mattdesl/electron,benweissmann/electron,Go...
7f0bbd8be91c13d2b5d5c6077483a90efbf1c7db
app/assets/javascripts/backbone/water_backbone.js.coffee
app/assets/javascripts/backbone/water_backbone.js.coffee
#= require_self #= require_tree ./templates #= require_tree ./models #= require_tree ./views #= require_tree ./routers window.Water = Models: {} Collections: {} Routers: {} Views: {} $ -> window.tree_fetcher = new Water.TreeFetcher(repository_path: gon.repository_path, ref: gon.ref) window.tcl = new Wat...
#= require_self #= require_tree ./templates #= require_tree ./models #= require_tree ./views #= require_tree ./routers window.Water = Models: {} Collections: {} Routers: {} Views: {} $ -> fetcher = window.tree_fetcher = new Water.TreeFetcher(repository_path: gon.repository_path, ref: gon.ref) tree_view ...
Modify initializers to enable constructor parameters and add breadcrumbs
Modify initializers to enable constructor parameters and add breadcrumbs
CoffeeScript
agpl-3.0
water/mainline,water/mainline,water/mainline
fa970059ab497bcd349de1424dea14cb97806ddd
src/components/ScrapeHtml.coffee
src/components/ScrapeHtml.coffee
noflo = require "noflo" jsdom = require "jsdom" class ScrapeHtml extends noflo.Component constructor: -> @html = "" @textSelector = "" @crapSelectors = [] @inPorts = in: new noflo.Port() textSelector: new noflo.Port() crapSelector: new noflo.Arra...
noflo = require "noflo" jsdom = require "jsdom" class ScrapeHtml extends noflo.Component constructor: -> @html = "" @textSelector = "" @crapSelectors = [] @inPorts = in: new noflo.Port() textSelector: new noflo.Port() crapSelector: new noflo.Arra...
Append to local html variable before scraping.
Append to local html variable before scraping.
CoffeeScript
mit
saurabhsood91/noflo,lxfschr/noflo,npmcomponent/noflo-noflo,saurabhsood91/noflo,trustmaster/noflo,trustmaster/noflo,jonnor/noflo,jonnor/noflo,noflo/noflo,lxfschr/noflo
423a8b463941c82e3e082984086bde2bb24ef39d
grammars/pweave_md.cson
grammars/pweave_md.cson
'name': 'Pweave markdown' scopeName: 'source.pweave.md' 'fileTypes': [ 'pmd' 'pmdw' ] patterns: [ { 'include' : 'source.pweave.noweb' } { 'begin': '^([`~]{3,})(\\{|\\{\\.|)(python)(,|)\\s*(.*?)(\\}|)\\s*$' 'beginCaptures': '1': 'name': 'markup.heading.weave.md' '3': ...
'name': 'Pweave markdown' scopeName: 'source.pweave.md' 'fileTypes': [ 'pmd' 'pmdw' ] patterns: [ { 'include' : 'source.pweave.noweb' } { 'begin': '^([`~]{3,})(\\{|\\{\\.|)(python)(,|)\\s*(.*?)(\\}|)\\s*$' 'beginCaptures': '1': 'name': 'markup.heading.weave.md' '3': ...
Add python syntax highlighting to inline code chunks
Add python syntax highlighting to inline code chunks
CoffeeScript
mit
mpastell/language-weave
b095120832a8053e4014d11ac0724a6c37b1f576
src/coffee/engine.coffee
src/coffee/engine.coffee
angular.module 'qbn.engine', ['qbn.quality', 'qbn.storylet', 'qbn.choice'] .controller 'QbnEngine', ($scope, qualities, storylets, frontalChoices, choiceFactory, resolve) -> $scope.qualities = qualities.getAll() updateFrontalChoices = () -> $scope.choices = frontalChoices.getAll() re...
angular.module 'qbn.engine', ['qbn.quality', 'qbn.storylet', 'qbn.choice'] .filter 'resolve', ($injector, qualities) -> (v) -> while typeof v == 'function' || Array.isArray v qualityNames = $injector.annotate v qualityValues = qualityNames.map (name) -> qualities.lookup(name)?.value ...
Fix Order-Of-Declaration Problems with Resolve Filter
Fix Order-Of-Declaration Problems with Resolve Filter
CoffeeScript
unlicense
arashikou/exper3-2015
4c20900b66c23a024ee7be4f856d65ef474898f5
app/assets/javascripts/app/join_requests/invite.js.coffee
app/assets/javascripts/app/join_requests/invite.js.coffee
$ -> if isOnPage 'join_requests', 'invite' # invite is selected by default enableDisableMessage() # enable/disable the message depending on the type selected $('.type-options input[type=radio]').on 'change', -> enableDisableMessage() # input to search for users id = '#candidates' ...
$ -> if isOnPage 'join_requests', 'invite' # invite is selected by default enableDisableMessage() # enable/disable the message depending on the type selected $('.type-options input[type=radio]').on 'change', -> enableDisableMessage() # input to search for users id = '#candidates' ...
Fix enabling the input for the msg when inviting people to a space
Fix enabling the input for the msg when inviting people to a space refs #1769
CoffeeScript
agpl-3.0
mconf-rnp/mconf-web,mconf/mconf-web,lfzawacki/mconf-web,mconftec/mconf-web-uergs,mconf-ufrgs/mconf-web,amreis/mconf-web,becueb/MconfWeb,mconf-ufrgs/mconf-web,becueb/MconfWeb,amreis/mconf-web,amreis/mconf-web,becueb/MconfWeb,amreis/mconf-web,mconf-rnp/mconf-web,fbottin/mconf-web,fbottin/mconf-web,becueb/MconfWeb,lfzawac...
512ddc133411b28b5f37f173b138ccce8c9f2015
lineman/app/components/discussion_form/discussion_form.coffee
lineman/app/components/discussion_form/discussion_form.coffee
angular.module('loomioApp').factory 'DiscussionForm', -> templateUrl: 'generated/components/discussion_form/discussion_form.html' controller: ($scope, $controller, $location, discussion, CurrentUser, Records, AbilityService, FormService, KeyEventService) -> $scope.discussion = discussion.clone() if $scope....
angular.module('loomioApp').factory 'DiscussionForm', -> templateUrl: 'generated/components/discussion_form/discussion_form.html' controller: ($scope, $controller, $location, discussion, CurrentUser, Records, AbilityService, FormService, KeyEventService) -> $scope.discussion = discussion.clone() if $scope....
Add group to start thread modal launched from group page
Add group to start thread modal launched from group page
CoffeeScript
agpl-3.0
FSFTN/Loomio,loomio/loomio,sicambria/loomio,mhjb/loomio,loomio/loomio,piratas-ar/loomio,loomio/loomio,sicambria/loomio,mhjb/loomio,mhjb/loomio,sicambria/loomio,loomio/loomio,piratas-ar/loomio,mhjb/loomio,piratas-ar/loomio,FSFTN/Loomio,sicambria/loomio,FSFTN/Loomio,piratas-ar/loomio,FSFTN/Loomio
0f2c4b1e3b17e6346abccc02df512faad5bbefbf
lib/autocomplete.coffee
lib/autocomplete.coffee
{CompositeDisposable, Disposable} = require 'atom' _ = require 'underscore-plus' AutocompleteView = require './autocomplete-view' module.exports = config: includeCompletionsFromAllBuffers: type: 'boolean' default: false autocompleteViewsByEditor: null deactivationDisposables: null activate: -...
{CompositeDisposable, Disposable} = require 'atom' _ = require 'underscore-plus' AutocompleteView = require './autocomplete-view' module.exports = config: includeCompletionsFromAllBuffers: type: 'boolean' default: false autocompleteViewsByEditor: null deactivationDisposables: null activate: -...
Use skinny arrows for command handlers
Use skinny arrows for command handlers This ensures this refers to the event element Closes #64
CoffeeScript
mit
atom/autocomplete,atom-archive/autocomplete
ee711e2b6f5d140046002eb8a8e580ff3e01bfcb
app/assets/javascripts/views/toolbar.js.coffee
app/assets/javascripts/views/toolbar.js.coffee
Wheelmap.ToolbarView = Ember.View.extend elementId: 'toolbar' templateName: 'toolbar' addToggleSearchbar: (()-> $searchbar = @$('.searchbar-form') @$('.btn-toggle-searchbar').click ()-> $searchbar.toggleClass('active'); ).on('didInsertElement') categoryButton: (()-> activeCategories = @ge...
Wheelmap.ToolbarView = Ember.View.extend elementId: 'toolbar' templateName: 'toolbar' init: ()-> @_super() didInsertElement: ()-> $(window).on 'resize.toolbar', @adjustCategoryFilter @adjustCategoryFilter() didRemoveElement: ()-> $(window).off 'resize.toolbar' adjustCategoryFilter: ()-> ...
Add dropup class in responsive toolbar.
Add dropup class in responsive toolbar.
CoffeeScript
agpl-3.0
sozialhelden/wheelmap,sozialhelden/wheelmap,sozialhelden/wheelmap,sozialhelden/wheelmap,sozialhelden/wheelmap
c1c6eed4a035800c6cb100071e1071545f10a73d
resources/assets/coffee/react/contest/voting/vote-summary.coffee
resources/assets/coffee/react/contest/voting/vote-summary.coffee
### # Copyright 2015-2017 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 Pub...
### # Copyright 2015-2018 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 Pub...
Add missing key and refactor
Add missing key and refactor
CoffeeScript
agpl-3.0
notbakaneko/osu-web,nanaya/osu-web,LiquidPL/osu-web,omkelderman/osu-web,ppy/osu-web,nanaya/osu-web,omkelderman/osu-web,nanaya/osu-web,nekodex/osu-web,nanaya/osu-web,LiquidPL/osu-web,nekodex/osu-web,LiquidPL/osu-web,omkelderman/osu-web,omkelderman/osu-web,nekodex/osu-web,notbakaneko/osu-web,ppy/osu-web,nekodex/osu-web,L...
9a91033ef500e9e84420284f64061797f6d1710a
ti/src/ui/views/base.coffee
ti/src/ui/views/base.coffee
class TitaniumView constructor: (attributes) -> for name, value of attributes @[name] = value @children = [] addEventListener: (name, event) -> @on name, event removeEventListener: (name, event) -> @off name, event fireEvent: (name, args...) -> @trigger name, args add: (view) ->...
class TitaniumView constructor: (attributes) -> for name, value of attributes @[name] = value @children = [] addEventListener: (name, event) -> @on name, event removeEventListener: (name, event) -> @off name, event fireEvent: (name, args...) -> @trigger name, args... add: (view)...
Expand args passed to 'trigger' in mock TitaniumView
Expand args passed to 'trigger' in mock TitaniumView
CoffeeScript
mit
vcu/titanium-backbone,vcu/titanium-backbone,trabian/titanium-backbone,trabian/titanium-backbone
0eeac7667a7c942ce1a2504d17436affd7149ed4
home/atom/snippets.cson
home/atom/snippets.cson
# Your snippets # # Atom snippets allow you to enter a simple prefix in the editor and hit tab to # expand the prefix into a larger code block with templated values. # # You can create a new snippet in this file by typing "snip" and then hitting # tab. # # An example CoffeeScript snippet to expand log to console.log: #...
# You can create a new snippet by typing "snip" and then hitting tab '.source.js': 'console.log': 'prefix': 'log' 'body': 'console.log(${1:\'test\'})$2'
Add custom console.log snippet to atom
Add custom console.log snippet to atom
CoffeeScript
mit
adius/dotfiles,adius/dotfiles,adius/dotfiles,adius/dotfiles
9540ed06839c3a0c8c1eab3c1c165fce729a4ddc
src/slide-pack-navigation.coffee
src/slide-pack-navigation.coffee
api = require './slide-pack-api' mousetrap = require 'mousetrap' $ = require 'zeptojs' # keyboard navigation mousetrap.bind ['left', 'up', 'k', 'h'], api.prev mousetrap.bind ['right', 'down', 'j', 'l'], api.next # mouse/touch navigation nav = $('<nav><a>←</a><a>→</a></nav>') $('body').append nav $(document).on 'cli...
api = require './slide-pack-api' mousetrap = require 'mousetrap' $ = require 'zeptojs' # keyboard navigation mousetrap.bind ['left', 'up', 'k', 'h', 'pageup'], api.prev mousetrap.bind ['right', 'down', 'j', 'l', 'pagedown'], api.next # mouse/touch navigation nav = $('<nav><a>←</a><a>→</a></nav>') $('body').append na...
Use page up/down to navigate
Use page up/down to navigate
CoffeeScript
mit
trabe/slide-pack,trabe/slide-pack
8c4709dee6d6b1915077cb7229be69fb6e5f0013
tasks/lib/github.coffee
tasks/lib/github.coffee
request = require "request" githubAuth = require "../../auth/github" class GitHub fetchGist: (gistID, callback) -> request.get( url: "https://api.github.com/gists/#{gistID}" + "?client_id=#{githubAuth.clientID}" + "&client_secret=#{githubAuth.clientSecret}" json: true , (e...
request = require "request" githubAuth = require "../../auth/github" class GitHub fetchGist: (gistID, callback) -> request.get( url: "https://api.github.com/gists/#{gistID}" + "?client_id=#{githubAuth.clientID}" + "&client_secret=#{githubAuth.clientSecret}" headers: "U...
Add required User-Agent header to GitHub requests
Add required User-Agent header to GitHub requests
CoffeeScript
mit
JoelBesada/Backtick
ae6c92e3dc6e30b87a61dba99b3e3610fe8dbd03
spec/participant.coffee
spec/participant.coffee
msgflo = require 'msgflo' path = require 'path' chai = require 'chai' unless chai heterogenous = require '../node_modules/msgflo/spec/heterogenous.coffee' python = process.env.PYTHON or 'python' participants = 'PythonRepeat': [python, path.join __dirname, '..', 'examples', 'repeat.py'] describe 'Participants', -> ...
msgflo = require 'msgflo' path = require 'path' chai = require 'chai' unless chai heterogenous = require '../node_modules/msgflo/spec/heterogenous.coffee' python = process.env.PYTHON or 'python' participants = 'PythonRepeat': [python, path.join __dirname, '..', 'examples', 'repeat.py'] # Note: most require running ...
Prepare for supporting MQTT, uncomment to enable
tests: Prepare for supporting MQTT, uncomment to enable References #6
CoffeeScript
mit
msgflo/msgflo-python
61078e15fb9d58338a5c49effc099222e7745fbc
src/server.coffee
src/server.coffee
{readFile} = require 'fs' {dirname} = require 'path' {parseProcfile} = require './procfile' {createFormation} = require './formation' class Server constructor: (@procfile) -> @cwd = dirname @procfile spawn: (callback) -> parseProcfile @procfile, (err, details) => return callback?(err) if err ...
{readFile} = require 'fs' {dirname} = require 'path' {parseProcfile} = require './procfile' {createFormation} = require './formation' class Server constructor: (@procfile) -> @cwd = dirname @procfile spawn: (options = {}, callback = ->) -> options.cwd ?= @cwd options.output ?= process.stdout ...
Allow options on start, and add quit
Allow options on start, and add quit --Tim Shadel <github@timshadel.com>
CoffeeScript
mit
timshadel/norman,timshadel/norman
f72eb6b3b4b6857ce7edf03ed3046d6a1e3bbed8
routes/teamdata.coffee
routes/teamdata.coffee
express = require 'express' router = express.Router() database = require '../routes/database' item = require '../routes/item' db = null router.post '/new', (req, res, next) -> req.body._id = database.getId() db.insertOne(req.body).then () -> res.redirect 'back' router.post '/getData', (req, res, next) -> db...
express = require 'express' router = express.Router() database = require '../routes/database' item = require '../routes/item' db = null router.post '/new', (req, res, next) -> req.body._id = database.getId() db.insertOne(req.body).then () -> res.redirect 'back' router.post '/getData', (req, res, next) -> db...
Drop parent teams on team delete
Drop parent teams on team delete
CoffeeScript
bsd-3-clause
aXises/portfolio-2,aXises/portfolio-2,aXises/portfolio-2
98dee2031651e80823b239903c51235a0c7d219a
atom.cson
atom.cson
'*': 'editor': 'fontFamily': 'Fira Code' 'showIndentGuide': true 'tabLength': 4 'softWrap': true 'invisibles': {} 'zoomFontWhenCtrlScrolling': false 'core': 'disabledPackages': [ 'language-objective-c' 'archive-view' 'autosave' 'bookmarks' 'language-clojure'...
'*': 'editor': 'fontFamily': 'Fira Mono OT' 'showIndentGuide': true 'tabLength': 4 'softWrap': true 'invisibles': {} 'zoomFontWhenCtrlScrolling': false 'core': 'disabledPackages': [ 'language-objective-c' 'archive-view' 'autosave' 'bookmarks' 'language-cloju...
Use commmon Fira Mono while Atom has ligatures issue
Use commmon Fira Mono while Atom has ligatures issue
CoffeeScript
mit
ai/environment,ai/environment
ce9cb516a187a24ec4d8af901ed41d48059aa5e9
app/assets/javascripts/activities.js.coffee
app/assets/javascripts/activities.js.coffee
class @Activities constructor: -> Pager.init 20, true $(".event-filter .btn").bind "click", (event) => event.preventDefault() @toggleFilter($(event.currentTarget)) @reloadActivities() reloadActivities: -> $(".content_list").html '' Pager.init 20, true toggleFilter: (sender) ->...
class @Activities constructor: -> Pager.init 20, true $(".event-filter .btn").bind "click", (event) => event.preventDefault() @toggleFilter($(event.currentTarget)) @reloadActivities() reloadActivities: -> $(".content_list").html '' Pager.init 20, true toggleFilter: (sender) ->...
Fix tab toggle on activity
Fix tab toggle on activity Signed-off-by: Dmitriy Zaporozhets <be23d75b156792e5acab51b196a2deb155d35d6a@gmail.com>
CoffeeScript
mit
chenrui2014/gitlabhq,openwide-java/gitlabhq,dreampet/gitlab,ikappas/gitlabhq,dwrensha/gitlabhq,pjknkda/gitlabhq,shinexiao/gitlabhq,martijnvermaat/gitlabhq,koreamic/gitlabhq,axilleas/gitlabhq,joalmeid/gitlabhq,aaronsnyder/gitlabhq,mr-dxdy/gitlabhq,htve/GitlabForChinese,wangcan2014/gitlabhq,mrb/gitlabhq,theonlydoo/gitlab...
4d6054b86a3fab147bd708cbc3aa06d509696cd2
Gruntfile.coffee
Gruntfile.coffee
module.exports = (grunt) -> grunt.initConfig pkg: grunt.file.readJSON('package.json') coffee: glob_to_multiple: expand: true cwd: 'src' src: ['**/*.coffee'] dest: 'lib' ext: '.js' coffeelint: options: no_empty_param_list: level: 'erro...
module.exports = (grunt) -> grunt.initConfig pkg: grunt.file.readJSON('package.json') coffee: glob_to_multiple: expand: true cwd: 'src' src: ['**/*.coffee'] dest: 'lib' ext: '.js' coffeelint: options: no_empty_param_list: level: 'erro...
Upgrade donna tello and atomdoc on prepublish
Upgrade donna tello and atomdoc on prepublish
CoffeeScript
mit
jacekkopecky/text-buffer,mizchi-sandbox/standalone-atom-editor,jacekkopecky/text-buffer,pombredanne/text-buffer,atom/text-buffer,atom/text-buffer,whodatninja/text-buffer,mizchi-sandbox/standalone-atom-editor,pombredanne/text-buffer
02436c3bf6174fdb78a2378dd3b86a4cbda3f3fc
lib/view/error-view.coffee
lib/view/error-view.coffee
{View} = require 'space-pen' {GitNotFoundError} = require '../git-bridge' class GitNotFoundErrorView extends View @content: (err) -> @div class: 'overlay from-top padded merge-conflict-error merge-conflicts-message', => @div class: 'panel', => @div class: "panel-heading", => @code 'git' ...
{View} = require 'space-pen' {GitNotFoundError} = require '../git-bridge' class GitNotFoundErrorView extends View @content: (err) -> @div class: 'overlay from-top padded merge-conflict-error merge-conflicts-message', => @div class: 'panel', => @div class: "panel-heading", => @code 'git' ...
Use the new workspace API.
Use the new workspace API.
CoffeeScript
mit
smashwilson/merge-conflicts,smashwilson/merge-conflicts,antcodd/merge-conflicts
34958ec4e19fa4233d0a0b39ef6a075784c4f1e3
app/assets/javascripts/kuva/kuva.js.coffee
app/assets/javascripts/kuva/kuva.js.coffee
$ -> $(".photos").justifiedGallery rowHeight: 200, margins: 8
$(document).on 'turbolinks:load', -> $(".photos").justifiedGallery rowHeight: 200, margins: 8
Make the JustifiedGallery script work with Turbolinks 5.
Make the JustifiedGallery script work with Turbolinks 5.
CoffeeScript
mit
kevintuhumury/kuva,kevintuhumury/kuva,kevintuhumury/kuva,kevintuhumury/kuva
9d4cb523204fcd279c962577ffc64dd417cf4550
users.coffee
users.coffee
storage = require 'node-persist' storage.initSync() User = require './user' users = (storage.getItem('users') or []).map (u) -> new User u chalk = require 'chalk' bcrypt = require 'bcrypt-nodejs' _ = require 'lodash' exp = getUser: (username, password, cb) -> if !cb and password cb = password passwor...
storage = require 'node-persist' storage.initSync() User = require './user' users = (storage.getItem('users') or []).map (u) -> new User u chalk = require 'chalk' bcrypt = require 'bcrypt-nodejs' _ = require 'lodash' exp = getUser: (username, password, cb) -> if !cb and password cb = password passwor...
Add display name to default admin user
Add display name to default admin user
CoffeeScript
mit
Rezonation/sisetv,Rezonation/sisetv
04afed890000e54f35d04ccc08ae084b52844528
src/core/components/confirm-dialog.coffee
src/core/components/confirm-dialog.coffee
Flow.ConfirmDialog = (_, _message, _opts={}, _go) -> defaults _opts, title: 'Alert' acceptCaption: 'Yes' declineCaption: 'No' accept = -> _go yes decline = -> _go no title: _opts.title acceptCaption: _opts.acceptCaption declineCaption: _opts.declineCaption message: Flow.Util.multilineTextTo...
Flow.ConfirmDialog = (_, _message, _opts={}, _go) -> defaults _opts, title: 'Confirm' acceptCaption: 'Yes' declineCaption: 'No' accept = -> _go yes decline = -> _go no title: _opts.title acceptCaption: _opts.acceptCaption declineCaption: _opts.declineCaption message: Flow.Util.multilineText...
Fix typo in confirm dialog title
Fix typo in confirm dialog title
CoffeeScript
mit
nilbody/h2o-flow,nilbody/h2o-flow,printedheart/h2o-flow,nilbody/h2o-flow,junwucs/h2o-flow,h2oai/h2o-flow,printedheart/h2o-flow,h2oai/h2o-flow,junwucs/h2o-flow,junwucs/h2o-flow,printedheart/h2o-flow
d7085c9252fa41ff58acaf1eadc058ee968ecae0
src/scope-selector.coffee
src/scope-selector.coffee
ScopeSelectorParser = require './scope-selector-parser' module.exports = class ScopeSelector # Create a new scope selector. # # source - A {String} to parse as a scope selector. constructor: (source) -> @matcher = ScopeSelectorParser.parse(source) # Check if this scope selector matches the scopes. # # s...
ScopeSelectorParser = require '../lib/scope-selector-parser' module.exports = class ScopeSelector # Create a new scope selector. # # source - A {String} to parse as a scope selector. constructor: (source) -> @matcher = ScopeSelectorParser.parse(source) # Check if this scope selector matches the scopes. # ...
Make it possible to require files in src directly
Make it possible to require files in src directly The compiled PEG parser is the only thing that needs to be explicitly loaded from the lib folder.
CoffeeScript
mit
atom/first-mate
640f1657189b5a65dbd52f73cb69aad63801df07
client/admin/lib/views/members/teammemberscommonview.coffee
client/admin/lib/views/members/teammemberscommonview.coffee
kd = require 'kd' KDView = kd.View KDListItemView = kd.ListItemView KDCustomHTMLView = kd.CustomHTMLView KDListViewController = kd.ListViewController module.exports = class TeamMembersCommonView extends KDView constructor: (options = {}, data) -> options.noItemFoundWi...
kd = require 'kd' KDView = kd.View MemberItemView = require './memberitemview' KDListItemView = kd.ListItemView KDCustomHTMLView = kd.CustomHTMLView KDListViewController = kd.ListViewController module.exports = class TeamMembersCommonView extends KDView constructor: ...
Implement base fetch and listing flow.
TeamMembersCommonView: Implement base fetch and listing flow.
CoffeeScript
agpl-3.0
andrewjcasal/koding,sinan/koding,szkl/koding,cihangir/koding,cihangir/koding,jack89129/koding,andrewjcasal/koding,sinan/koding,jack89129/koding,kwagdy/koding-1,sinan/koding,koding/koding,drewsetski/koding,koding/koding,rjeczalik/koding,drewsetski/koding,alex-ionochkin/koding,rjeczalik/koding,kwagdy/koding-1,szkl/koding...
fb9be6204eb9c4209502a1d62b70f8937d6e4a2f
lib/tasks/scan-buffer-colors-handler.coffee
lib/tasks/scan-buffer-colors-handler.coffee
ColorScanner = require '../color-scanner' ColorContext = require '../color-context' registry = require '../color-expressions' {namePrefixes} = require '../regexes' ColorsChunkSize = 100 class BufferColorsScanner constructor: (config) -> {@buffer, variables} = config @context = new ColorContext(variables) ...
ColorScanner = require '../color-scanner' ColorContext = require '../color-context' registry = require '../color-expressions' {namePrefixes} = require '../regexes' ColorsChunkSize = 100 class BufferColorsScanner constructor: (config) -> {@buffer, variables} = config @context = new ColorContext(variables) ...
Fix range of color from variable expression
:bug: Fix range of color from variable expression
CoffeeScript
mit
peter1000/atom-pigments,peter1000/atom-pigments
7bee41f1e2ea6bd7ff1673348288707dc189e197
src/app/repository-status-handler.coffee
src/app/repository-status-handler.coffee
Git = require 'git' fs = require 'fs' module.exports = loadStatuses: (path) -> repo = Git.open(path) if repo? workingDirectoryPath = repo.getWorkingDirectory() statuses = {} for path, status of repo.getRepo().getStatuses() statuses[fs.join(workingDirectoryPath, path)] = status ...
Git = nodeRequire 'git-utils' fs = require 'fs' module.exports = loadStatuses: (path) -> repo = Git.open(path) if repo? workingDirectoryPath = repo.getWorkingDirectory() statuses = {} for path, status of repo.getStatuses() statuses[fs.join(workingDirectoryPath, path)] = status ...
Use git-utils from status handler
Use git-utils from status handler
CoffeeScript
mit
rsvip/aTom,bolinfest/atom,AlbertoBarrago/atom,Abdillah/atom,einarmagnus/atom,me-benni/atom,fedorov/atom,champagnez/atom,001szymon/atom,fang-yufeng/atom,rxkit/atom,alexandergmann/atom,ilovezy/atom,chengky/atom,AlexxNica/atom,pombredanne/atom,kc8wxm/atom,stuartquin/atom,gabrielPeart/atom,Rychard/atom,yangchenghu/atom,jtr...
92c305f538ae6e4d079b6bba714d80851cb1ebec
src/trix/elements/trix_toolbar_element.coffee
src/trix/elements/trix_toolbar_element.coffee
{cloneFragment} = Trix Trix.registerElement "trix-toolbar", defaultCSS: """ %t { white-space: collapse; } %t .dialog { display: none; } %t .dialog.active { display: block; } %t .dialog input.validate:invalid { background-color: #ffdddd; } %t[native] { ...
{cloneFragment} = Trix Trix.registerElement "trix-toolbar", defaultCSS: """ %t { white-space: nowrap; } %t .dialog { display: none; } %t .dialog.active { display: block; } %t .dialog input.validate:invalid { background-color: #ffdddd; } %t[native] { ...
Fix 'Invalid property value' for trix toolbar default CSS
Fix 'Invalid property value' for trix toolbar default CSS Chrome tells me that 'collapse' is not a valid property for 'white-space'. Based on trix.css, I think it should be 'nowrap'?
CoffeeScript
mit
ChenMichael/trix,basecamp/trix,ChenMichael/trix,ChenMichael/trix,basecamp/trix,basecamp/trix,basecamp/trix
70fe7045b17b7aa37cddbd26c2cce89f0c247cf3
coffee/calculator.coffee
coffee/calculator.coffee
exports.Calculator = class Calculator add: (input) -> result = 0 [delimiter, trimmedInput] = this.getDelimiter input numberStrings = trimmedInput.split delimiter negatives = [] for numberString in numberStrings num = parseInt numberString negatives.push num if num && num < 0 resu...
exports.Calculator = class Calculator add: (input) -> result = 0 [delimiter, trimmedInput] = this.getDelimiter input numberStrings = trimmedInput.split delimiter negatives = [] for numberString in numberStrings num = parseInt numberString negatives.push num if num && num < 0 resu...
Fix spec for ignoring numbers over 1000
Fix spec for ignoring numbers over 1000
CoffeeScript
mit
stevehook/tdd_kata
e7cf1f00f7f586aa570cfcb8959789ceb0672eb5
app/assets/javascripts/wymeditor.js.coffee
app/assets/javascripts/wymeditor.js.coffee
#= require wymeditor/jquery.wymeditor.js #= require_self $ -> $(':input.wymeditor').wymeditor basePath: '/assets/wymeditor/' updateSelector: 'form:has(:input.wymeditor)' updateEvent: 'submit'
#= require wymeditor/jquery.wymeditor.js #= require_self WYMeditor.BASE_PATH = '/assets/wymeditor/' $ -> $(':input.wymeditor').wymeditor updateSelector: 'form:has(:input.wymeditor)' updateEvent: 'submit'
Configure the BASE_PATH for WYMEditor globally
Configure the BASE_PATH for WYMEditor globally
CoffeeScript
mit
habanerohq/wymeditor-simple_form
555ad6578178a40564716b22f08727c0d804ce0c
app/client/js/storage.coffee
app/client/js/storage.coffee
goog.provide 'app.Storage' goog.require 'este.labs.storage.Base' class app.Storage extends este.labs.storage.Base ###* @param {app.songs.Store} songsStore @constructor @extends {este.labs.storage.Base} ### constructor: (@songsStore) -> ###* @override ### load: (route, routes) -> swit...
goog.provide 'app.Storage' goog.require 'este.labs.storage.Base' class app.Storage extends este.labs.storage.Base ###* @param {app.songs.Store} songsStore @constructor @extends {este.labs.storage.Base} ### constructor: (@songsStore) -> @stores = [@songsStore] @fetchStores() @listenStore...
Add some comments for app.Storage.
Add some comments for app.Storage.
CoffeeScript
mit
steida/songary
43931d1711b7f4f1ff6de7d0410267b944d6af7d
app/assets/javascripts/food_trucks.coffee
app/assets/javascripts/food_trucks.coffee
# Place all the behaviors and hooks related to the matching controller here. # All this logic will automatically be available in application.js. # You can use CoffeeScript in this file: http://coffeescript.org/ $.fn.stars = -> $(this).each -> # Get the value val = parseFloat($(this).html()) val = Math.rou...
# Place all the behaviors and hooks related to the matching controller here. # All this logic will automatically be available in application.js. # You can use CoffeeScript in this file: http://coffeescript.org/ $.fn.stars = -> $(this).each -> # Get the value val = parseFloat($(this).html()) val = Math.rou...
Fix star loading with turbolinks
Fix star loading with turbolinks
CoffeeScript
agpl-3.0
adelq/pennfoodtrucks,adelq/pennfoodtrucks,adelq/pennfoodtrucks
9b599256ccb21b994ddd9d33497abdbd22e5f2f4
src/components/HTTP/Server.coffee
src/components/HTTP/Server.coffee
noflo = require "noflo" http = require "connect" class Server extends noflo.Component description: "This component receives a port and host, and initializes a HTTP server for that combination. It sends out a request/response pair for each HTTP request it receives" constructor: -> @server = null ...
noflo = require "noflo" http = require "connect" uuid = require "node-uuid" class Server extends noflo.Component description: "This component receives a port and host, and initializes a HTTP server for that combination. It sends out a request/response pair for each HTTP request it receives" constructor: -> ...
Attach an identifier to requests
Attach an identifier to requests
CoffeeScript
mit
saurabhsood91/noflo,npmcomponent/noflo-noflo,noflo/noflo,lxfschr/noflo,trustmaster/noflo,saurabhsood91/noflo,jonnor/noflo,trustmaster/noflo,lxfschr/noflo,jonnor/noflo
52123ccc36eafdf7d103b61d290d700b8968cece
test/unit/accept.coffee
test/unit/accept.coffee
each frameworks, (framework) -> module "#{framework} - Accept", setup: -> setupFrame this, "/#{framework}.html" asyncTest "default accept header prefers scripts", -> @$.ajax type: 'POST' url: "/echo" success: (env) => if typeof env is 'string' env = JSON.parse env ...
each frameworks, (framework) -> module "#{framework} - Accept", setup: -> setupFrame this, "/#{framework}.html" asyncTest "default accept header prefers scripts", -> @$.ajax type: 'POST' url: "/echo" success: (env) => if typeof env is 'string' env = JSON.parse env ...
Fix "Accept" header test for Zepto 1.1.6
Fix "Accept" header test for Zepto 1.1.6 The "Accept" header values differ slightly between Zepto 1.0 and 1.1, but they start with the same string.
CoffeeScript
mit
josh/rails-behaviors,josh/rails-behaviors,josh/rails-behaviors,josh/rails-behaviors
c096e2e57c2182583009bb8c1a02c835ce4f86ea
spec/notational-velocity-spec.coffee
spec/notational-velocity-spec.coffee
{WorkspaceView} = require 'atom' NotationalVelocity = require '../lib/notational-velocity' # Use the command `window:run-package-specs` (cmd-alt-ctrl-p) to run specs. # # To run a specific `it` or `describe` block add an `f` to the front (e.g. `fit` # or `fdescribe`). Remove the `f` to unfocus the block. describe "No...
{WorkspaceView} = require 'atom' NotationalVelocity = require '../lib/notational-velocity' # Use the command `window:run-package-specs` (cmd-alt-ctrl-p) to run specs. # # To run a specific `it` or `describe` block add an `f` to the front (e.g. `fit` # or `fdescribe`). Remove the `f` to unfocus the block. describe "No...
Fix a test failure caused by non-existing default directory in test environment
Fix a test failure caused by non-existing default directory in test environment
CoffeeScript
mit
lexicalunit/atom-notes
3513b13105f3c91dc26499b6c9bda7a4280d020c
atom/packages.cson
atom/packages.cson
packages: [ "editorconfig" "file-icons" "highlight-selected" "language-docker" "language-typescript-grammars-only" "linter" "linter-coffeelint" "linter-csslint" "linter-docker" "linter-flake8" "linter-htmlhint" "linter-js-yaml" "linter-jshint" "linter-jsonlint" "linter-less" "linter-php"...
packages: [ "autocomplete-emojis" "editorconfig" "file-icons" "highlight-selected" "language-docker" "language-typescript-grammars-only" "linter" "linter-coffeelint" "linter-csslint" "linter-docker" "linter-flake8" "linter-htmlhint" "linter-js-yaml" "linter-jshint" "linter-jsonlint" "lin...
Add autocomplete-emojis package to Atom
Add autocomplete-emojis package to Atom
CoffeeScript
mit
jmlntw/dotfiles,jmlntw/dotfiles
c07c202972aa1761a5153baf305e5b285bc35034
src/coffee/categories.coffee
src/coffee/categories.coffee
_ = require('underscore')._ CONS = require '../lib/constants' Q = require 'q' class Categories constructor: -> @id2index = {} @name2id = {} @fqName2id = {} @duplicateNames = [] getAll: (rest) -> deferred = Q.defer() rest.GET "/categories?limit=1000", (error, response, body) -> if er...
_ = require('underscore')._ CONS = require '../lib/constants' Q = require 'q' class Categories constructor: -> @id2index = {} @name2id = {} @fqName2id = {} @duplicateNames = [] getAll: (rest) -> deferred = Q.defer() rest.GET "/categories?limit=0", (error, response, body) -> if error...
Adjust limit to take max.
Adjust limit to take max.
CoffeeScript
mit
sphereio/sphere-node-product-csv-sync,sphereio/sphere-node-product-csv-sync,sphereio/sphere-node-product-csv-sync
835d541339e4faf0422d4fa95ad2cfc607bf1127
lib/message-manager.coffee
lib/message-manager.coffee
{Emitter} = require 'atom' module.exports = class MessageManager constructor: (csound, Csound) -> @emitter = new Emitter messageCallback = (Csound, attributes, string) => @emitter.emit 'did-receive-message', {string: string, attributes: attributes} csound.SetDefaultMessageCallback messageCallback ...
{Emitter} = require 'atom' module.exports = class MessageManager constructor: (csound, Csound) -> @emitter = new Emitter messageCallback = (attributes, string) => @emitter.emit 'did-receive-message', {string: string, attributes: attributes} csound.SetDefaultMessageCallback messageCallback csou...
Update Csound message callback functions
Update Csound message callback functions
CoffeeScript
mit
nwhetsell/ide-csound
af7ec5834fb1e236554c9d456a01c25558bb7a4a
lib/variable-marker.coffee
lib/variable-marker.coffee
{CompositeDisposable} = require 'atom' module.exports = class VariableMarker constructor: ({@marker, @variable}) -> @subscriptions = new CompositeDisposable @subscriptions.add @marker.onDidDestroy => @destroyed() @subscriptions.add @variable.onDidDestroy => @destroy() destroy: -> return if @wasDes...
{CompositeDisposable} = require 'atom' module.exports = class VariableMarker constructor: ({@marker, @variable}) -> @subscriptions = new CompositeDisposable @subscriptions.add @marker.onDidDestroy => @destroyed() @subscriptions.add @variable.onDidDestroy => @destroy() destroy: -> return if @wasDes...
Fix variable markers id still as numbers
:green_heart: Fix variable markers id still as numbers
CoffeeScript
mit
peter1000/atom-pigments,peter1000/atom-pigments
319b52261be12069382498e226866c942c50668c
model/Checkmark.coffee
model/Checkmark.coffee
Transformations["Checkmark"] = (object) -> Transformations.static(Checkmarks.Checkmark, object) Checkmarks = Collections["Checkmark"] = new Mongo.Collection("Checkmarks", {transform: if Meteor.isClient then Transformations.Checkmark else null}) class Checkmarks.Checkmark constructor: (doc) -> _.extend(@, doc) C...
Transformations["Checkmark"] = (object) -> Transformations.static(Checkmarks.Checkmark, object) Checkmarks = Collections["Checkmark"] = new Mongo.Collection("Checkmarks", {transform: if Meteor.isClient then Transformations.Checkmark else null}) class Checkmarks.Checkmark constructor: (doc) -> _.extend(@, doc) C...
Implement Categories, clean up old code
Implement Categories, clean up old code
CoffeeScript
agpl-3.0
fixin-platform/frontend-checkmark,spirehq/frontend-checkmark
ecf671bcf5f955d1ee523c414f814a04030f56da
client/lanes/components/shared/Input.cjsx
client/lanes/components/shared/Input.cjsx
class Lanes.Components.Input extends Lanes.React.Component mixins: [ Lanes.Components.Form.FieldMixin ] formGroupClass: 'input' getDefaultProps: -> type: 'text' propTypes: unlabled: React.PropTypes.bool getValue: -> @refs.input.getValue() handleKeyDown: ...
class Lanes.Components.Input extends Lanes.React.Component mixins: [ Lanes.Components.Form.FieldMixin ] formGroupClass: 'input' getDefaultProps: -> type: 'text' propTypes: unlabled: React.PropTypes.bool getValue: -> @refs.input.getValue() handleKeyDown: ...
Use default label value if present
Use default label value if present
CoffeeScript
mit
argosity/lanes,argosity/hippo,argosity/lanes,argosity/hippo,argosity/lanes,argosity/hippo
a1778e85da5fba417a29c4911d3f81e2b850a76e
atom/projects.courage.cson
atom/projects.courage.cson
[]
[ { title: "OPCUA-All" paths: [ "/Users/randy/src/github/node-opcua" "/Users/randy/Documents/Projects/OPCUA/WSDL-1.03" ] } ]
Add project for OPCA docs and code
Add project for OPCA docs and code
CoffeeScript
mit
randycoulman/dotfiles
cdf92070a8f9c7e5af4ad4f2d418dba99855e713
shared/db/schemas/message.coffee
shared/db/schemas/message.coffee
mongoose = require '../connection' Schema = mongoose.Schema ObjectId = Schema.ObjectId MessageSchema = new Schema( Name: String Subject: String Message: String Date: Date Phone: String Country: String Attachments: String ) Message = mongoose.model('Message', MessageSchema) module.exports = Message
mongoose = require '../connection' Schema = mongoose.Schema ObjectId = Schema.ObjectId MessageSchema = new Schema( Name: String Subject: String Message: String Date: Date Phone: String Country: String Attachments: String ) MessageSchema.statics.byCount = (cb) -> this.aggregate [ { ...
Add index for phone numbers and byCount aggregation
Add index for phone numbers and byCount aggregation
CoffeeScript
mit
yangsu/ballin-octo-robot
429c939524b43ccec7d595921963eabded6f8f86
main/static/src/script/common/util.coffee
main/static/src/script/common/util.coffee
window.LOG = () -> console?.log?(arguments...) window.init_loading_button = () -> $('body').on 'click', '.btn-loading', -> $(this).button('loading') window.init_time = () -> if ($ 'time').length > 0 recalculate = -> ($ 'time[datetime]').each -> date = moment.utc ($ this).attr 'datetime' ...
window.LOG = () -> console?.log?(arguments...) window.init_loading_button = () -> $('body').on 'click', '.btn-loading', -> th = $(this) th.button('loading') setTimeout (->th.button('reset')), 3000 window.init_time = () -> if ($ 'time').length > 0 recalculate = -> ($ 'time[datetime]').eac...
Reset submit button after 3000 ms
Reset submit button after 3000 ms
CoffeeScript
mit
JoeyCodinja/INFO3180LAB3,CLOUGH/info3180-lab5,lipis/hurry-app,tkstman/lab5,gae-init/gae-init-babel,gae-init/gae-init-docs,gae-init/gae-init,gae-init/gae-init,tiberiucorbu/av-website,wilfriedE/gae-init,wodore/wodore-gae,NeftaliYagua/gae-init,gmist/nashi-5studio,carylF/lab5,gmist/my-gae-init-auth,vanessa-bell/hd-kiosk-v2...
c53800e2317177b59ad0143b6ad79971239af09b
generic/Gruntfile.coffee
generic/Gruntfile.coffee
module.exports = (grunt) -> grunt.initConfig pkg: grunt.file.readJSON "package.json" sass: dist: files: "{{ app_name }}/static/{{ app_name }}/css/app.css": "{{ app_name }}/static/{{ app_name }}/sass/app.sass" options: style: "compressed" watch: css: ...
module.exports = (grunt) -> grunt.initConfig pkg: grunt.file.readJSON "package.json" sass: dist: files: "{{ app_name }}/static/{{ app_name }}/css/app.css": "{{ app_name }}/static/{{ app_name }}/sass/app.sass" options: style: "compressed" watch: css: ...
Switch to explicit call instead of inside the loop
Switch to explicit call instead of inside the loop
CoffeeScript
apache-2.0
texastribune/tt_app_templates,texastribune/tt_app_templates
686a7eeae307ab5afa4fa43af349474fd427ef45
grunt/config/jade.coffee
grunt/config/jade.coffee
module.exports = (grunt, options) -> return { options: client: true files: '<%= build %>/js/templates.js': ['views/templates/**/*.jade'] dev: options: data: debug: true dist: options: data: debug: false }
module.exports = (grunt, options) -> return { options: client: true dev: files: '<%= build %>/js/templates.js': ['views/templates/**/*.jade'] options: data: debug: true dist: files: '<%= build %>/js/templates.js': ['views/templates/**/*.jade'] ...
Fix Grunt Jade task configuration
Fix Grunt Jade task configuration
CoffeeScript
agpl-3.0
City-of-Helsinki/servicemap,City-of-Helsinki/servicemap,vaaralav/servicemap,City-of-Helsinki/servicemap,vaaralav/servicemap,vaaralav/servicemap
e2ade261b1f78cb027dd56b181c387880605a294
plugins/dotstorm/test/thumbail.spec.coffee
plugins/dotstorm/test/thumbail.spec.coffee
fs = require 'fs' expect = require 'expect.js' config = require '../../../test/test_config' models = require('../lib/schema').load(config) common = require '../../../test/common' describe "Dotstorm Canvas to image from idea", -> before (done) -> @mahId = undefined common.startUp (serv...
fs = require 'fs' expect = require 'expect.js' config = require '../../../test/test_config' models = require('../lib/schema').load(config) common = require '../../../test/common' describe "Dotstorm Canvas to image from idea", -> this.timeout(10000) before (done) -> @mahId = undefined ...
Increase timeout for thumbnail test
Increase timeout for thumbnail test
CoffeeScript
bsd-2-clause
yourcelf/intertwinkles,yourcelf/intertwinkles
aa01ec390fd747c31c45e8bbcf6a62e6e86b386f
js-library/app/js/jail_iframe/classes/loading_promises.coffee
js-library/app/js/jail_iframe/classes/loading_promises.coffee
setTimeout -> if /^(interactive|complete)$/.test(document.readyState) FactlinkJailRoot.host_ready_promise.resolve() else document.addEventListener('DOMContentLoaded', -> FactlinkJailRoot.host_ready_promise.resolve()) if 'complete' == document.readyState FactlinkJailRoot.host_loaded_promise.resolve()...
setTimeout -> ok = loaded: true interactive: !(document.documentMode < 11) complete: true if ok[document.readyState] FactlinkJailRoot.host_ready_promise.resolve() else document.addEventListener('DOMContentLoaded', -> FactlinkJailRoot.host_ready_promise.resolve()) if 'complete' == document...
Fix IE 9/10 host_ready event
Fix IE 9/10 host_ready event
CoffeeScript
mit
Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core,Factlink/factlink-core,daukantas/factlink-core,daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core
51922d23a2f448f209a87bf8a2be2a736d907ddd
dot-inbox/config.cson
dot-inbox/config.cson
'global': 'core': 'themes': [ 'inbox-light-ui' ] 'disabledPackages': [ "atom-dark-syntax", "atom-dark-ui", "atom-light-syntax", "atom-light-ui", "one-dark-syntax", "one-dark-ui", "one-light-syntax", "one-light-ui", "base16-tomorrow-dark-theme", ...
'global': 'core': 'themes': [ 'inbox-light-ui' ] 'disabledPackages': [ "sidebar-fullcontact", "message-templates", "calendar-bar", "salesforce" ]
Remove disabledPackages that no longer exist
refactor(*): Remove disabledPackages that no longer exist
CoffeeScript
mit
nylas-mail-lives/nylas-mail,nylas-mail-lives/nylas-mail,nylas-mail-lives/nylas-mail,nylas/nylas-mail,simonft/nylas-mail,nirmit/nylas-mail,nylas/nylas-mail,simonft/nylas-mail,simonft/nylas-mail,simonft/nylas-mail,nylas-mail-lives/nylas-mail,simonft/nylas-mail,nirmit/nylas-mail,nirmit/nylas-mail,nylas/nylas-mail,nylas/ny...
b90093cd684626347f4fd18c0d8fd47d42e5761f
app/assets/javascripts/admin/catalogs.coffee
app/assets/javascripts/admin/catalogs.coffee
init = -> primary_lang = $("#catalog_primary_language") other_lang_boxes = \ $("input[type=checkbox][name='catalog[other_languages][]']") update_boxes = (evt)-> primary_value = primary_lang.val() other_lang_boxes.attr("disabled", false) match_box = $("input[type=checkbox][value=#{primary_value}]"...
init = -> primary_lang = $("#catalog_primary_language") other_lang_boxes = \ $("input[type=checkbox][name='catalog[other_languages][]']") update_boxes = (evt)-> primary_value = primary_lang.val() other_lang_boxes.attr("disabled", false) match_box = $("input[type=checkbox][value=#{primary_value}]"...
Remove advertize if data only enabled
Remove advertize if data only enabled
CoffeeScript
apache-2.0
catima/catima,catima/catima,catima/catima,catima/catima
ae1a2bc277791ba161bdd7c05fa27f5bb6d42de0
src/scripts/modules/search/results/filter/filter.coffee
src/scripts/modules/search/results/filter/filter.coffee
define (require) -> $ = require('jquery') linksHelper = require('cs!helpers/links') BaseView = require('cs!helpers/backbone/views/base') template = require('hbs!./filter-template') require('less!./filter') return class SearchResultsFilterView extends BaseView template: template templateHelpers: ...
define (require) -> $ = require('jquery') linksHelper = require('cs!helpers/links') BaseView = require('cs!helpers/backbone/views/base') template = require('hbs!./filter-template') require('less!./filter') return class SearchResultsFilterView extends BaseView template: template templateHelpers: ...
Enable keyboard interaction with 'More...' toggle
Enable keyboard interaction with 'More...' toggle
CoffeeScript
agpl-3.0
Connexions/webview,katalysteducation/webview,Connexions/webview,katalysteducation/webview,katalysteducation/webview,dak/webview,Connexions/webview,katalysteducation/webview,Connexions/webview,dak/webview,dak/webview
251200326dfabe58c0f07b31237b16ae27ee5ffa
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...
goog.provide 'app.react.Layout' class app.react.Layout ###* PATTERN(steida): Layout is responsible for mobile/tablet/desktop look. @param {app.Routes} routes @param {app.react.Header} header @param {app.react.Footer} footer @param {app.react.pages.Song} song @constructor ### constructor:...
Hide header and footer when song page is shown.
Hide header and footer when song page is shown. App needs maximum space to shown lyrics as big as possible.
CoffeeScript
mit
steida/songary
28f713e6983fc690d6d83ae90669578d6e926ce7
backend/app/assets/javascripts/spree/backend/number_field_updater.coffee
backend/app/assets/javascripts/spree/backend/number_field_updater.coffee
class NumberFieldUpdater @hideReadOnly: (id) -> toggleReadOnly(id, false) resetInput(id) @showReadOnly: (id) -> toggleReadOnly(id, true) @showForm: (id) -> toggleForm(id, true) @hideForm: (id) -> toggleForm(id, false) @successHandler: (id, newNumber) -> $("#number-update-#{id} span...
class NumberFieldUpdater @hideReadOnly: (id) -> toggleReadOnly(id, false) resetInput(id) @showReadOnly: (id) -> toggleReadOnly(id, true) @showForm: (id) -> toggleForm(id, true) @hideForm: (id) -> toggleForm(id, false) @successHandler: (id, newNumber) -> $("#number-update-#{id} span...
Use buttons data-actions in NumberFieldUpdater component
Use buttons data-actions in NumberFieldUpdater component It will survive if we change icons framework, also it is more samantically correct.
CoffeeScript
bsd-3-clause
pervino/solidus,pervino/solidus,pervino/solidus,pervino/solidus
04901e6998495da79bbb745c586bd625ce7c8896
app/assets/javascripts/workbench/workbench/routers/workbench_router.js.coffee
app/assets/javascripts/workbench/workbench/routers/workbench_router.js.coffee
class Workbench.Routers.WorkbenchRouter extends Backbone.Router initialize: (options) -> @sensor = options.sensor @navigate(@sensor.id) routes: '': 'index' ':id/': 'show' index: -> console.log "loading index route" # render index view show: (id) -> console.log "loading show route"...
class Workbench.Routers.WorkbenchRouter extends Backbone.Router initialize: (options) -> @sensor = options.sensor @navigate(@sensor.id) routes: '': 'index' ':id(/)': 'show' index: -> console.log "loading index route" # render index view show: (id) -> console.log "loading show rout...
Allow routes to load without trailing slash
Allow routes to load without trailing slash
CoffeeScript
mit
GeoSensorWebLab/asw-workbench,GeoSensorWebLab/asw-workbench,GeoSensorWebLab/asw-workbench,GeoSensorWebLab/Arctic-Scholar-Portal,GeoSensorWebLab/Arctic-Scholar-Portal
990d67f1bf5603b98a05a5211c95b93cb89fc86a
src/scripts/workbench/controllers/sensors_controller.js.coffee
src/scripts/workbench/controllers/sensors_controller.js.coffee
class Workbench.Controllers.SensorsController extends Backbone.Marionette.Controller initialize: (options) -> @$el = options.el @getApiKey() Workbench.source = new Geocens.DataService({ api_key: @apiKey }) # Ensure the API Key is displayed in the URL params. addApiKeyParam: (base) -> # if (locati...
class Workbench.Controllers.SensorsController extends Backbone.Marionette.Controller initialize: (options) -> @getApiKey() Workbench.source = new Geocens.DataService({ api_key: @apiKey }) # Check params for API Key. getApiKey: -> if (location.search.length > 0) params = deparam(location.search....
Use region manager for sensors views
Use region manager for sensors views
CoffeeScript
mit
GeoSensorWebLab/asw-workbench,GeoSensorWebLab/asw-workbench,GeoSensorWebLab/asw-workbench
b2be63525ce15cf1b107d2bf5603f85acfa40bbf
client/src/scripts/model-selection-view.coffee
client/src/scripts/model-selection-view.coffee
Steam.ModelSelectionView = (_) -> _selections = nodes$ [] _hasSelection = lift$ _selections, (selections) -> selections.length > 0 _caption = lift$ _selections, (selections) -> "#{describeCount selections.length, 'model'} selected." scoreSelections = -> _.promptForFrame (action, frameKey) -> swit...
defaultScoringSelectionMessage = 'Score selected models.' Steam.ModelSelectionView = (_) -> _selections = nodes$ [] _hasSelection = lift$ _selections, (selections) -> selections.length > 0 _caption = lift$ _selections, (selections) -> "#{describeCount selections.length, 'model'} selected." _compatibleFrame...
Validate compatible frames for all selected models prior to displaying frame selection dialog. PP-71 PP-82
Validate compatible frames for all selected models prior to displaying frame selection dialog. PP-71 PP-82
CoffeeScript
apache-2.0
eg-zhang/h2o-2,h2oai/h2o,111t8e/h2o-2,100star/h2o,rowhit/h2o-2,111t8e/h2o-2,eg-zhang/h2o-2,elkingtonmcb/h2o-2,vbelakov/h2o,calvingit21/h2o-2,elkingtonmcb/h2o-2,h2oai/h2o,h2oai/h2o,vbelakov/h2o,calvingit21/h2o-2,100star/h2o,rowhit/h2o-2,vbelakov/h2o,100star/h2o,eg-zhang/h2o-2,h2oai/h2o-2,h2oai/h2o-2,100star/h2o,vbelakov...
21a05caca0afb8d291dc9998d640ce2ab23beeb4
app/assets/javascripts/jiffy_enums.js.coffee
app/assets/javascripts/jiffy_enums.js.coffee
#= require jiffy_enum #= require_self class window.JiffyEnums constructor: (@hash) -> # equavalent to [] in ruby get: (key) => @hash[key] each: (func) => _.each(@hash, func) all: (func) => _.values(@hash) for_value: (value) => _.each( all(), (_enum) -> return _enum if value == _en...
#= require jiffy_enum #= require_self class window.JiffyEnums constructor: (@hash) -> # equavalent to [] in ruby get: (key) => @hash[key] each: (func) => _.each(@hash, func) all: (func) => _.values(@hash) for_value: (value) => _.find( all(), (_enum) -> value == _enum.value ) ...
Fix for_value and for_ordinal in JS
Fix for_value and for_ordinal in JS
CoffeeScript
mit
Identified/jiffy_enums,Identified/jiffy_enums
27c278651da58bd535fd1b85d4aa3b011d21d480
resources/assets/coffee/sticky-header.coffee
resources/assets/coffee/sticky-header.coffee
class @StickyHeader stickMarker: document.getElementsByClassName('js-sticky-header') constructor: -> $(window).on 'scroll', @stickOrUnstick $(document).on 'ready page:load osu:page:change', @stickOrUnstick stickOrUnstick: => return if @stickMarker.length == 0 for marker in @stickMarker by -1 ...
### # 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 License as publi...
Add licence and usage guide
Add licence and usage guide
CoffeeScript
agpl-3.0
marcostudios/osu-web,Bobo1239/osu-web,nanaya/osu-web,comentarinformal/osu-web,dvcrn/osu-web,ameliaikeda/osu-web,nanaya/osu-web,Xyloo/osu-web,nekodex/osu-web,dvcrn/osu-web,nanaya/osu-web,Bobo1239/osu-web,dvcrn/osu-web,kj415j45/osu-web,omkelderman/osu-web,LiquidPL/osu-web,marcostudios/osu-web,omkelderman/osu-web,notbakan...
0e670fc9e887f10312626d71994b305ae38b6dbc
src/coffee/routes.coffee
src/coffee/routes.coffee
_ = require 'underscore' pkg = require '../package.json' module.exports = (app) -> # homepage app.get '/', (req, res, next) -> res.json _.omit pkg, 'devDependencies' # retrieve a link to the generated pdf app.post '/api/pdf/url', (req, res, next) -> # - generate pdf # - respond with JSON containi...
_ = require 'underscore' pkg = require '../package.json' module.exports = (app) -> # homepage app.get '/', (req, res, next) -> res.json _.omit pkg, 'devDependencies' # generate and render pdf in the browser app.get '/api/pdf/:token', (req, res, next) -> res.send 501, message: 'Endpoint not impl...
Define error reponses for unimplemented endpoints
Define error reponses for unimplemented endpoints
CoffeeScript
mit
sphereio/sphere-express-pdf,sphereio/sphere-express-pdf
91c503e28c7f93c29d47740225bd6bd26d83e786
coffee/main.coffee
coffee/main.coffee
$ -> DIC_URL_PREFIX = 'http://alldic.daum.net/search.do?dic=eng&q=' IMAGES_URL_PREFIX = 'http://images.search.yahoo.com/search/images?p=' $input = $('input') $button = $('button') $dicIframe = $('iframe.dic') $imagesIframe = $('iframe.images') search = -> query = $input.val() return if query is ''...
$ -> DIC_URL_PREFIX = 'http://alldic.daum.net/search.do?dic=eng&q=' IMAGES_URL_PREFIX = 'https://duckduckgo.com/?%3Fiax=1&iax=1&ia=images&q=' $input = $('input') $button = $('button') $dicIframe = $('iframe.dic') $imagesIframe = $('iframe.images') search = -> query = $input.val() return if query i...
Change from Yahoo to DuckDuckGo
Change from Yahoo to DuckDuckGo
CoffeeScript
mit
Sangdol/imationary
67c7c7902ad395e3c6dc6bc62f3b1be9b6ac95bb
src/in-state-menu.coffee
src/in-state-menu.coffee
define [ 'phaser' 'underscore' 'app/helpers' ], (Phaser, _, Helpers) -> 'use strict' {Keyboard} = Phaser class InStateMenu constructor: (@textItems, game, options = {}) -> {@pauseHandler, @layout, @toggleKeyCode} = _.defaults options, layout: { y: 120, baseline: 40 } pauseHandl...
define [ 'phaser' 'underscore' 'app/helpers' ], (Phaser, _, Helpers) -> 'use strict' {Keyboard} = Phaser class InStateMenu constructor: (@textItems, game, options = {}) -> {@pauseHandler, @layout, @toggleKeyCode} = _.defaults options, layout: { y: 120, baseline: 40 } pauseHandl...
Fix InStateMenu not positioning correctly.
Fix InStateMenu not positioning correctly. Don't add to world, add to stage. Note that Group#fixedToCamera doesn't seem to work by itself.
CoffeeScript
artistic-2.0
hlfcoding/morning-stroll
74539ddc98cfd469fddc83af0f08d466635d7eac
lib/js/integrations/slack_integration.coffee
lib/js/integrations/slack_integration.coffee
Slack = require('slack-client') require('events').EventEmitter config = require('../../../config.json').slack; class SlackIntegration DEFAULT_MESSAGE = "#{player} is playing #{game}. Go join them!" constructor: (opts)-> { @token } = opts @slack = new Slack(@token, true, true) @slack.login()...
Slack = require('slack-client') require('events').EventEmitter config = require('../../../config.json').slack; class SlackIntegration DEFAULT_MESSAGE = '#{player} is playing #{game}. Go join them!' constructor: (opts)-> { @token } = opts @slack = new Slack(@token, true, true) @slack.login()...
Use single quotes to avoid coffeescript parsing string as variable
Use single quotes to avoid coffeescript parsing string as variable
CoffeeScript
mit
aleccool213/steam-buddy