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
8cd987550572e0b10d6c0e4da3f9fb702f494aea
snippets/language-apl.cson
snippets/language-apl.cson
".source.apl": Function: prefix: "fn" body: "∇${2:R ←} ${3:X} ${1:NAME} ${4:Y}\n\t$0\n∇" Operator: prefix: "op" body: "∇${2:R ←} ${3:X} (${4:LOP} ${1:NAME} ${5:ROP}) ${6:Y}\n\t$0\n∇" Assignment: prefix: "a" body: "${1:⎕ }← ${2:VALUE}" Hashbang: prefix: "#" body: "#!/usr/${3:local/bin/a...
".source.apl": Function: prefix: "fn" body: "∇${2:R ←} ${3:X} ${1:NAME} ${4:Y}\n\t$0\n∇" Operator: prefix: "op" body: "∇${2:R ←} ${3:X} (${4:LOP} ${1:NAME} ${5:ROP}) ${6:Y}\n\t$0\n∇" Assignment: prefix: "a" body: "${1:⎕ }← ${2:VALUE}" Hashbang: prefix: "apl" body: "#!/usr/bin/env apl -...
Revise hashbang snippet added in d181298
Revise hashbang snippet added in d181298 * Prefix changed to "apl". Typing this is somewhat easier than "#". * Hashbang path changed to use /usr/bin/env, which is more portable. * Tab-stops removed; users won't likely need to change the hashbang path or arguments. Having tab-stops also makes it impossible to indent ...
CoffeeScript
isc
Alhadis/language-apl
ea8b28201b79acf96ae6488590d7de155229ae60
src/app/units/states/tasks/inbox/inbox.coffee
src/app/units/states/tasks/inbox/inbox.coffee
angular.module('doubtfire.units.states.tasks.inbox', []) # # Task inbox for tasks to deal with # .config(($stateProvider) -> $stateProvider.state 'units/tasks/inbox', { parent: 'units/tasks' url: '/inbox/:taskId' templateUrl: "units/states/tasks/inbox/inbox.tpl.html" controller: "TaskInboxStateCtrl" ...
angular.module('doubtfire.units.states.tasks.inbox', []) # # Task inbox for tasks to deal with # .config(($stateProvider) -> $stateProvider.state 'units/tasks/inbox', { parent: 'units/tasks' url: '/inbox/:taskId' templateUrl: "units/states/tasks/inbox/inbox.tpl.html" controller: "TaskInboxStateCtrl" ...
Remove debug message from TaskInboxStateCtrl
QUALITY: Remove debug message from TaskInboxStateCtrl
CoffeeScript
agpl-3.0
alexcu/doubtfire-web,doubtfire-lms/doubtfire-web,doubtfire-lms/doubtfire-web,alexcu/doubtfire-web,doubtfire-lms/doubtfire-web,doubtfire-lms/doubtfire-web
f706abf0a1d963d8c1c7c5e3cb2552fab360636b
src/scripts/router.coffee
src/scripts/router.coffee
define (require) -> Backbone = require('backbone') settings = require('settings') session = require('cs!session') analytics = require('cs!helpers/handlers/analytics') AppView = require('cs!pages/app/app') return new class Router extends Backbone.Router initialize: () -> @appView = new AppView() ...
define (require) -> Backbone = require('backbone') settings = require('settings') session = require('cs!session') analytics = require('cs!helpers/handlers/analytics') AppView = require('cs!pages/app/app') return new class Router extends Backbone.Router initialize: () -> @appView = new AppView() ...
Include route and query in search params
Include route and query in search params
CoffeeScript
agpl-3.0
katalysteducation/webview,Connexions/webview,dak/webview,Connexions/webview,Connexions/webview,Connexions/webview,katalysteducation/webview,katalysteducation/webview,dak/webview,dak/webview,katalysteducation/webview,carolinelane10/webview
77cf5e17bc8deb1ef7bcfd84face139f17951485
app/assets/javascripts/domready.coffee
app/assets/javascripts/domready.coffee
# ************************************* # # Document Ready # # ************************************* jQuery ($) -> # ----- Functions ----- # Orientation.accordion() Orientation.autoSubmit() Orientation.dropdown() Orientation.headingLink() Orientation.search() Orientation.search $element : $( '.j...
# ************************************* # # Document Ready # # ************************************* jQuery ($) -> # ----- Functions ----- # Orientation.accordion() Orientation.autoSubmit() Orientation.dropdown() Orientation.headingLink() Orientation.search() Orientation.shortcut() Orientation.sea...
Call Shortcut in DOM ready script
Call Shortcut in DOM ready script
CoffeeScript
mit
friism/orientation,codeschool/orientation,splicers/orientation,robomc/orientation,orientation/orientation,LogicalBricks/orientation,orientation/orientation,twinn/orientation,splicers/orientation,twinn/orientation,hashrocket/orientation,robomc/orientation,IZEA/orientation,smashingboxes/orientation,jefmathiot/orientation...
7cc95dd59c3ab4c0d224e89ae66605abf471effa
assets/javascripts/models/entry.coffee
assets/javascripts/models/entry.coffee
class app.models.Entry extends app.Model # Attributes: name, type, path SEPARATORS_REGEXP = /\:?\ |#|::/g PARANTHESES_REGEXP = /\(.*?\)$/ constructor: -> super @text = @searchValue() searchValue: -> @name .toLowerCase() .replace '...', ' ' .replace ' event', '' .replace ...
class app.models.Entry extends app.Model # Attributes: name, type, path SEPARATORS_REGEXP = /\:?\ |#|::|->/g PARANTHESES_REGEXP = /\(.*?\)$/ constructor: -> super @text = @searchValue() searchValue: -> @name .toLowerCase() .replace '...', ' ' .replace ' event', '' .repla...
Add "->" as a search term separator
Add "->" as a search term separator
CoffeeScript
mpl-2.0
hyjk2000/devdocs,rlugojr/devdocs,webcoding/devdocs,rlugojr/devdocs,daviart/devdocs,MarcMcIntosh/devdocs,alanepontes/devdocs,daviart/devdocs,Ivicel/devdocs,ReKungPaw/devdocs,m4h4n/devdocs,yosiat/devdocs,rlugojr/devdocs,hagb4rd/devdocs,mnquintana/devdocs,alanepontes/devdocs,matsumeri/devdocs,webcoding/devdocs,isNil/devdo...
fa0d4ef93e7ed4c29f3a001d7a0f661e737c22c6
server/startup/cron.coffee
server/startup/cron.coffee
# Config and Start SyncedCron SyncedCron.config collectionName: 'rocketchat_cron_history' generateStatistics = -> statistics = RocketChat.statistics.save() statistics.host = Meteor.absoluteUrl() unless RocketChat.settings.get 'Statistics_opt_out' HTTP.post 'https://rocket.chat/stats', data: statistics return...
# Config and Start SyncedCron logger = new Logger 'SyncedCron' SyncedCron.config logger: (opts) -> logger[opts.level].call(logger, opts.message) collectionName: 'rocketchat_cron_history' generateStatistics = -> statistics = RocketChat.statistics.save() statistics.host = Meteor.absoluteUrl() unless RocketChat.s...
Use RocketChat Logger as SyncedCron logger
Use RocketChat Logger as SyncedCron logger
CoffeeScript
mit
yuyixg/Rocket.Chat,nishimaki10/Rocket.Chat,igorstajic/Rocket.Chat,inoxth/Rocket.Chat,Gyubin/Rocket.Chat,abduljanjua/TheHub,inoxth/Rocket.Chat,mrsimpson/Rocket.Chat,flaviogrossi/Rocket.Chat,fatihwk/Rocket.Chat,Achaikos/Rocket.Chat,trt15-ssci-organization/Rocket.Chat,timkinnane/Rocket.Chat,AlecTroemel/Rocket.Chat,mrsimps...
64355304b928fc8d4da1c84812680c615f18fa40
app/assets/javascripts/mixins/paginated_route.coffee
app/assets/javascripts/mixins/paginated_route.coffee
Dashboard.PaginatedRouteMixin = Ember.Mixin.create actions: refreshPageData: (controller, page)-> query = $.extend(@controller.get('model')['query'], { page: page }) @store.findQuery(@controller.get('model').type, query).then (records)=> metadata = records.store.typeMapFor(records.type).metad...
Dashboard.PaginatedRouteMixin = Ember.Mixin.create actions: refreshPageData: (controller, page)-> query = $.extend(@controller.get('model')['query'], { page: page }) @store.findQuery(@controller.get('model').type, query).then (records)=> metadata = records.store.typeMapFor(records.type).metad...
Change default value for paginated route
Change default value for paginated route
CoffeeScript
mit
FromUte/dune-dashboard,FromUte/dune-dashboard,FromUte/dune-dashboard
34244eccedfd07db99ac080ce770cd0f20d59594
app/src/restclients/unspent_outputs_restclient.coffee
app/src/restclients/unspent_outputs_restclient.coffee
class ledger.api.UnspentOutputsRestClient extends ledger.api.RestClient getUnspentOutputsFromAddresses: (addresses, callback) -> addresses = (address for address in addresses when Bitcoin.Address.validate(address) is true) query = _(addresses).join(',') @http().get(url: "blockchain/addresses/#{query}/un...
class ledger.api.UnspentOutputsRestClient extends ledger.api.RestClient getUnspentOutputsFromAddresses: (addresses, callback) -> addresses = (address for address in addresses when Bitcoin.Address.validate(address) is true) query = _(addresses).join(',') @http().get url: "blockchain/addresses/#{que...
Replace promise with callbacks for UnspentOutputsRestClient
Replace promise with callbacks for UnspentOutputsRestClient
CoffeeScript
mit
Morveus/ledger-wallet-doge-chrome,Morveus/ledger-wallet-doge-chrome,LedgerHQ/ledger-wallet-chrome,LedgerHQ/ledger-wallet-chrome
dd4600892adf255081c89b38e3096644f73e47c8
cosmo.coffee
cosmo.coffee
window.Cosmo = version: '0.1.0' # more # All apps should be an extended instance of this class class Cosmo.Router # app regions, assumes main content goes in a div#container regions: container: $('#container') initialize: -> # do initialization stuff and then start app routing # TODO: Do some url man...
window.Cosmo = version: '0.1.0' # All apps should be an extended instance of this class class Cosmo.Router # app regions, assumes main content goes in a div#container regions: container: $('#container') initialize: -> # do initialization stuff and then start app routing # TODO: Do some url management...
Remove comment in branch test
Remove comment in branch test
CoffeeScript
mit
akonwi/cosmo.js,akonwi/cosmo.js
fc0de6f4e84de5a777ba4ada0a0a9dbce4f167ff
node_modules_koding/bongo/lib/expressify.coffee
node_modules_koding/bongo/lib/expressify.coffee
module.exports = -> { dash } = require 'bongo' bongo = this (req, res, next) -> { channelName, queue: requestQueue } = req.body unless requestQueue?.length res.send 400 return responseQueue = new Array requestQueue.length workQueue = requestQueue.map (message, i) -> -> bong...
module.exports = -> { dash } = require 'bongo' bongo = this (req, res, next) -> { channelName, queue: requestQueue } = req.body unless requestQueue?.length return res.status(400).end() responseQueue = new Array requestQueue.length workQueue = requestQueue.map (message, i) -> -> b...
Refactor deprecated method call for setting response status
Refactor deprecated method call for setting response status
CoffeeScript
agpl-3.0
jack89129/koding,cihangir/koding,acbodine/koding,sinan/koding,szkl/koding,sinan/koding,sinan/koding,drewsetski/koding,gokmen/koding,drewsetski/koding,alex-ionochkin/koding,mertaytore/koding,koding/koding,andrewjcasal/koding,mertaytore/koding,jack89129/koding,koding/koding,usirin/koding,andrewjcasal/koding,cihangir/kodi...
e359e5fec9b5c3c708cba40910377cbb8943491c
client/app.coffee
client/app.coffee
#require("./webgl-example/blue-thing") leaflet = require("leaflet") require("./rectangle_editor") $ = require("jquery") tilesUrl = 'http://skogsmaskin.asuscomm.com:3001/kartverk/{z}/{x}/{y}.png' tilesLayer = new L.TileLayer(tilesUrl); $ -> map = new L.Map('map'); map.addLayer(tilesLayer); map.setView(new L.Lat...
#require("./webgl-example/blue-thing") leaflet = require("leaflet") require("./rectangle_editor") $ = require("jquery") tilesUrl = 'http://skogsmaskin.asuscomm.com:3001/kartverk/{z}/{x}/{y}.png' tilesLayer = new L.TileLayer(tilesUrl); $ -> map = new L.Map('map'); map.addLayer(tilesLayer); map.setView(new L.Lat...
Remove initial attempt to draw rectangle
Remove initial attempt to draw rectangle
CoffeeScript
mit
bengler/terrafab
e7d5baf9937a4c56c3a831e53efb4d3470651b7e
workers/runartifactserver.coffee
workers/runartifactserver.coffee
module.exports = (name = '') -> { argv } = require 'optimist' express = require 'express' cors = require 'cors' helmet = require 'helmet' app = express() compression = require 'compression' bodyParser = require 'body-parser' app.use compression() app.use bodyParser.js...
module.exports = (name = '', options = {}) -> { argv } = require 'optimist' express = require 'express' cors = require 'cors' helmet = require 'helmet' app = express() compression = require 'compression' bodyParser = require 'body-parser' app.use compression() app.use...
Add options parameter to artifact server module
Add options parameter to artifact server module Signed-off-by: Sonmez Kartal <d2d15c3d37396a5f2a09f8b42cf5f27d43a3fbde@koding.com>
CoffeeScript
agpl-3.0
rjeczalik/koding,kwagdy/koding-1,jack89129/koding,koding/koding,usirin/koding,gokmen/koding,mertaytore/koding,sinan/koding,jack89129/koding,koding/koding,andrewjcasal/koding,alex-ionochkin/koding,gokmen/koding,mertaytore/koding,usirin/koding,usirin/koding,acbodine/koding,drewsetski/koding,alex-ionochkin/koding,szkl/kod...
6bc4da0215997d08a8e453d259da218cdb5cdc1c
src/components/html.cjsx
src/components/html.cjsx
_ = require 'underscore' React = require 'react' KatexMixin = require './katex-mixin' module.exports = React.createClass displayName: 'ArbitraryHtmlAndMath' propTypes: className: React.PropTypes.string html: React.PropTypes.string block: React.PropTypes.bool mixins: [KatexMixin] render: -> cla...
_ = require 'underscore' React = require 'react' KatexMixin = require './katex-mixin' module.exports = React.createClass displayName: 'ArbitraryHtmlAndMath' propTypes: className: React.PropTypes.string html: React.PropTypes.string block: React.PropTypes.bool mixins: [KatexMixin] render: -> cla...
Clean up stray elements created by MathJax
Clean up stray elements created by MathJax Otherwise React will raise "Invariant Violation" exceptions when it notices them. Also implement componentDidUpdate so the HTML will be reprocessed if it's content is updated
CoffeeScript
agpl-3.0
openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js
1fc3b2e23c36ebb312d2d38ae47674c95ee4d9b4
desktop/apps/artwork/components/partner_stub/index.coffee
desktop/apps/artwork/components/partner_stub/index.coffee
InquireViaPhoneModalView = require '../inquire_via_phone/index.coffee' module.exports = ($el) -> $el .find '.js-artwork-partner-stub-inquire-via-phone' .click (e) -> e.preventDefault() @modal = new InquireViaPhoneModalView width: '500px' copy: login: 'Log in to Artsy to ...
InquireViaPhoneModalView = require '../inquire_via_phone/index.coffee' module.exports = ($el) -> $el .find '.js-artwork-partner-stub-inquire-via-phone' .click (e) -> e.preventDefault() @modal = new InquireViaPhoneModalView width: '500px' copy: login: 'Log in to Artsy to ...
Fix opening a Inquire via Phone modal on FireFox and IEs
Fix opening a Inquire via Phone modal on FireFox and IEs
CoffeeScript
mit
izakp/force,oxaudo/force,joeyAghion/force,erikdstock/force,yuki24/force,xtina-starr/force,eessex/force,erikdstock/force,kanaabe/force,mzikherman/force,yuki24/force,izakp/force,joeyAghion/force,damassi/force,artsy/force,cavvia/force-1,yuki24/force,oxaudo/force,kanaabe/force,eessex/force,artsy/force,mzikherman/force,arts...
856b378f54905bc100e5a7031453e711ec939e6e
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 autoloadStylesheets: true constructor: -> super @keymapsDirPath = fs.join(@path, 'keymaps') load: -> try @loadMetadata() @loadKeymaps() @loadSty...
Package = require 'package' fs = require 'fs' module.exports = class AtomPackage extends Package metadata: null keymapsDirPath: null autoloadStylesheets: true constructor: -> super @keymapsDirPath = fs.join(@path, 'keymaps') load: -> try @loadMetadata() @loadKeymaps() @loadSty...
Set metadata to empty hash when missing
Set metadata to empty hash when missing
CoffeeScript
mit
MjAbuz/atom,basarat/atom,sebmck/atom,svanharmelen/atom,gabrielPeart/atom,amine7536/atom,cyzn/atom,NunoEdgarGub1/atom,jlord/atom,devoncarew/atom,AlexxNica/atom,MjAbuz/atom,darwin/atom,Hasimir/atom,ironbox360/atom,vinodpanicker/atom,transcranial/atom,dijs/atom,jordanbtucker/atom,RuiDGoncalves/atom,rmartin/atom,yamhon/ato...
eb64485870daebc2a5f872c4dcd31644d68077e8
test/codenames-test.coffee
test/codenames-test.coffee
Helper = require('hubot-test-helper') nock = require('nock') expect = require('chai').expect helper = new Helper('../src/codenames.coffee') describe 'codenames', -> beforeEach -> nock('http://codenames.clivemurray.com') .get('/data/prefixes.json') .reply(200, [{title: 'black', attributes: ['colour']...
Helper = require('hubot-test-helper') nock = require('nock') expect = require('chai').expect helper = new Helper('../src/codenames.coffee') describe 'codenames', -> beforeEach -> nock('http://codenames.clivemurray.com') .get('/data/prefixes.json') .reply(200, [{title: 'black', attributes: ['colour']...
Disable Hubot's HTTP server during the tests
Disable Hubot's HTTP server during the tests
CoffeeScript
mit
mudge/hubot-codenames,mudge/hubot-codenames
92aecd67c3180eeb51c7de40df2c45b0499779dc
src/lib/LocationGrid.coffee
src/lib/LocationGrid.coffee
defaults = require('lodash/defaults') shuffle = require('lodash/shuffle') class Game.LocationGrid constructor: (settings) -> settings = defaults settings, x: {} y: {} settings.x = defaults settings.x, start: 0 steps: 1 stepSize: 1 avoid: [] settings.y = defaults sett...
defaults = require('lodash/defaults') shuffle = require('lodash/shuffle') class Game.LocationGrid constructor: (settings) -> settings = defaults settings, x: {} y: {} settings.x = defaults settings.x, start: 0 steps: 1 stepSize: 1 avoid: [] settings.y = defaults sett...
Allow function for startposition of grid
Allow function for startposition of grid
CoffeeScript
mit
matthijsgroen/game-play,matthijsgroen/game-play,matthijsgroen/game-play
b816c9b1ef9641c621a6e9863ea14d4508ee8bb6
resources/tools/list-templates/heading-controller.coffee
resources/tools/list-templates/heading-controller.coffee
define ['lodash', './dialogue', 'text!./template-dialogue.html'], (L, Ctrl, View) -> controller = (console, scope, Modals, connectTo) -> console.log scope.data scope.listName = scope.data.name scope.ids = scope.data.ids scope.type = scope.data.type scope.service = root: scope.data.root ? sco...
define ['lodash', './dialogue', 'text!./template-dialogue.html'], (L, Ctrl, View) -> controller = (console, scope, Modals, connectTo) -> console.log scope.data scope.listName = scope.data.name scope.ids = scope.data.ids scope.type = scope.data.type scope.service = root: scope.data.root ? sco...
Fix error due to assignment in test.
Fix error due to assignment in test.
CoffeeScript
bsd-2-clause
joshkh/staircase,joshkh/staircase,joshkh/staircase,yochannah/staircase,yochannah/staircase,yochannah/staircase
b85fcd397bae0af010dd158272b0dba3cb988992
src/keypath_observer.coffee
src/keypath_observer.coffee
class KeypathObserver constructor: (@view, @model, @keypath, @callback) -> @interfaces = (k for k, v of @view.adapters) @objectPath = [] @tokens = Rivets.KeypathParser.parse @keypath, @interfaces, @view.config.rootInterface @root = @tokens.shift() @key = @tokens.pop() @target = @realize() u...
class KeypathObserver constructor: (@view, @model, @keypath, @callback) -> @parse() @objectPath = [] @target = @realize() parse: => interfaces = (k for k, v of @view.adapters) if @keypath[0] in interfaces root = @keypath[0] path = @keypath.substr 1 else root = @view.confi...
Update KeypathObserver to have better state management, passing in the previous target to the callback for unbinding.
Update KeypathObserver to have better state management, passing in the previous target to the callback for unbinding.
CoffeeScript
mit
QAPInt/rivets,zongkelong/rivets,zongkelong/rivets,moneyadviceservice/rivets,GerHobbelt/rivets,jccazeaux/rivets,nopnop/rivets,re-clone/rivets,mikeric/rivets,re-clone/rivets,MishaMykhalyuk/rivets,zongkelong/rivets,QAPInt/rivets,re-clone/rivets,QAPInt/rivets,nopnop/rivets,npmcomponent/mikeric-rivets,altmind/rivets,altmind...
c0d025bd99c48f9aaea6308333604eeb26bfc445
src/javascript/controllers/IndexController.coffee
src/javascript/controllers/IndexController.coffee
###* IndexController. Responsible for the index view. ### app.controller "IndexController", ($scope, $location) -> $scope.whatsMyName = "Welcome my friend" return
###* IndexController. Responsible for the index view. ### app.controller "IndexController", ($scope) -> $scope.whatsMyName = "Welcome my friend" return
Index does not need $location
Index does not need $location
CoffeeScript
mit
tuvokki/locals,TuvokVersatileKolinahr/optionals,TuvokVersatileKolinahr/optionals
3a49f60ff73bd8ed10c5b7611e068bf486e6d8a0
app/assets/javascripts/app/collections/movies.js.coffee
app/assets/javascripts/app/collections/movies.js.coffee
#= require app/models/movie class App.Collections.Movies extends Backbone.Collection model: App.Models.Movie url: '/movies'
#= require app/models/movie class App.Collections.Movies extends Backbone.Collection model: App.Models.Movie url: '/movies' comparator: (model) -> - model.get('opening_weekend')
Sort Movies by opening weekend totals
Sort Movies by opening weekend totals And with very little code, we can have our list of Movies sort itself by descending opening weekend totals.
CoffeeScript
mit
leshill/backbone_and_rails_example,sieraruo/backbone_and_rails_handlebars,sieraruo/backbone_and_rails_handlebars,leshill/backbone_and_rails_example
f6357977419cd7170c3326aef42fa3684cf39767
app/assets/javascripts/overlay_dimensions.js.coffee
app/assets/javascripts/overlay_dimensions.js.coffee
class @OverlayDimensions minMargin: 10 constructor: (overlayContent) -> @overlayContent = overlayContent @totalMargin = @minMargin * 2 @maxWidth = -> $(window).width() - @totalMargin width: -> @overlayContent.width() height: -> @overlayContent.height() margin: -> margin = (@...
class @OverlayDimensions minMargin: 10 constructor: (overlayContent) -> @overlayContent = overlayContent @totalMargin = @minMargin * 2 @maxWidth = -> $(window).width() - @totalMargin width: -> @overlayContent.width() height: -> @overlayContent.height() margin: -> margin = (@...
Fix overlay positioning when scrolled down
Fix overlay positioning when scrolled down
CoffeeScript
mit
RobinClowers/photo-album,RobinClowers/photo-album,RobinClowers/photo-album,RobinClowers/photo-album
2f0d9dd00c367ae463b6b44d29e193f08c1e4525
core/app/backbone/views/related_channels_view.coffee
core/app/backbone/views/related_channels_view.coffee
class window.RelatedChannelsView extends Backbone.Marionette.CompositeView className: "related-channels-for-channel" template: "channels/related_channels", itemViewContainer: "ul", itemView: RelatedChannelView itemViewOptions: => addToCollection : @addToCollection templateHelpers: => is_mine: this....
class window.RelatedChannelsView extends Backbone.Marionette.CompositeView className: "related-channels-for-channel" template: "channels/related_channels", itemViewContainer: "ul", itemView: RelatedChannelView itemViewOptions: => addToCollection : @addToCollection templateHelpers: => is_mine: @mode...
Use @ in stead of this.
Use @ in stead of this.
CoffeeScript
mit
daukantas/factlink-core,Factlink/factlink-core,daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core,daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core
37520e42d768096faad8ebe2fef28416ce16d104
sources/shdr/Models.coffee
sources/shdr/Models.coffee
Models = 'models/cube.js': name: 'Cube' 'models/sphere.js': name: 'Shere' 'models/torus.js': name: 'Torus' 'models/dragon.js': name: 'Dragon' scale: 1.2 'models/hexmkii.js': name: 'Hex MKII' scale: 0.01 'models/suzanne_low.js': name: 'Suzanne (low)' 'models/suzanne_h...
Models = 'models/cube.js': name: 'Cube' 'models/sphere.js': name: 'Sphere' 'models/torus.js': name: 'Torus' 'models/dragon.js': name: 'Dragon' scale: 1.2 'models/hexmkii.js': name: 'Hex MKII' scale: 0.01 'models/suzanne_low.js': name: 'Suzanne (low)' 'models/suzanne_...
Update Shere to Sphere (typo)
Update Shere to Sphere (typo) Corrects a typo in the editor interface
CoffeeScript
mit
gamedevforks/Shdr,BKcore/Shdr,RobertoMalatesta/Shdr,RobertoMalatesta/Shdr,BKcore/Shdr,gamedevforks/Shdr
8218f51b5cb648b75d006c3247b0f141e0bcc436
client/app/MainApp/filetree/itemsubviews/copyurlview.coffee
client/app/MainApp/filetree/itemsubviews/copyurlview.coffee
class NCopyUrlView extends JView constructor: -> super @path = FSHelper.plainPath @getData().path @publicPath = @path.replace \ ///.*\/(.*\.#{KD.config.userSitesDomain})\/(.*)///, 'http://$1/$2' @inputUrlLabel = new KDLabelView cssClass : 'public-url-label' title : '...
class NCopyUrlView extends JView constructor: -> super @path = FSHelper.plainPath @getData().path @publicPath = @path.replace \ ////home/(.*)/Web/(.*)///, "http://$1.#{KD.config.userSitesDomain}/$2" @inputUrlLabel = new KDLabelView cssClass : 'public-url-label' title ...
Fix copy file url issue
Fix copy file url issue
CoffeeScript
agpl-3.0
sinan/koding,gokmen/koding,kwagdy/koding-1,gokmen/koding,szkl/koding,kwagdy/koding-1,sinan/koding,sinan/koding,alex-ionochkin/koding,alex-ionochkin/koding,rjeczalik/koding,drewsetski/koding,drewsetski/koding,rjeczalik/koding,mertaytore/koding,cihangir/koding,cihangir/koding,kwagdy/koding-1,szkl/koding,gokmen/koding,cih...
94c370eb2ee0cbeef0046c11f6ff5df9dd48669d
app/assets/javascripts/ng-services/ng-CookiesSvc.js.coffee
app/assets/javascripts/ng-services/ng-CookiesSvc.js.coffee
######################################################## # AngularJS service to manipulate cookies ######################################################## angular.module('feedbunch').service 'cookiesSvc', ['$window', ($window)-> #--------------------------------------------- # Set an "accepted_cookies" cookie wi...
######################################################## # AngularJS service to manipulate cookies ######################################################## angular.module('feedbunch').service 'cookiesSvc', ['$window', ($window)-> #--------------------------------------------- # Set an "accepted_cookies" cookie wi...
Set accept-cookies cookie to expire in the very far future (year 9.999).
Set accept-cookies cookie to expire in the very far future (year 9.999). It seems that Chrome ignores this date and instead sets the cookie to expire on 'Tue, 19 Jan 2038 03:14:07 GMT', which is the maximum date since Epoch expressed as an amount of seconds stored in a signed 32-bit integer. This shouldn't pose no pro...
CoffeeScript
mit
jmwenda/feedbunch,amatriain/feedbunch,amatriain/feedbunch,amatriain/feedbunch,jmwenda/feedbunch,jmwenda/feedbunch,amatriain/feedbunch
740d92ffa285757e439fc27cd3c39d01775fe1e8
app/scripts/components/behaviors/shoot_on_sight.coffee
app/scripts/components/behaviors/shoot_on_sight.coffee
Crafty.c 'ShootOnSight', remove: -> @unbind('GameLoop', @_checkForShot) shootOnSight: (options) -> @shootConfig = _.defaults(options, targetType: 'PlayerControlledShip' sightAngle: 10 shootWhenHidden: no cooldown: 800 ) @bind('GameLoop', @_checkForShot) _checkForShot: (...
Crafty.c 'ShootOnSight', remove: -> @unbind('GameLoop', @_checkForShot) shootOnSight: (options) -> @shootConfig = _.defaults(options, targetType: 'PlayerControlledShip' sightAngle: 10 shootWhenHidden: no cooldown: 800 ) @bind('GameLoop', @_checkForShot) _checkForShot: (...
Fix shooting orientation when enemy turns around
Fix shooting orientation when enemy turns around
CoffeeScript
mit
matthijsgroen/game-play,matthijsgroen/game-play,matthijsgroen/game-play
8baeb28d572afe9df48d9a5e119f39345777f1ab
apps/settings/components/home_path_field/view.coffee
apps/settings/components/home_path_field/view.coffee
Backbone = require 'backbone' template = -> require('./index.jade') arguments... module.exports = class HomePathFieldView extends Backbone.View className: 'Fieldset' events: 'change select': 'select' initialize: -> @listenTo @model, 'change:home_path', @render select: (e) -> $target = $(e.curren...
Backbone = require 'backbone' analytics = require '../../../../lib/analytics.coffee' template = -> require('./index.jade') arguments... module.exports = class HomePathFieldView extends Backbone.View className: 'Fieldset' events: 'change select': 'select' initialize: -> @listenTo @model, 'change:home_pa...
Add analytics to home path
Add analytics to home path
CoffeeScript
mit
aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell
6d686ee8f3727093b11aa223531750c5589cc7d0
test/lib/pesudo_random.coffee
test/lib/pesudo_random.coffee
Math._random ?= Math.random pesudoRandomValues = [] pesudoRandom = -> pesudoRandomValues.shift() ? Math._random() pesudoRandom.MIN_VALUE = 0 pesudoRandom.MAX_VALUE = 0.99999999 pesudoRandom.push = -> pesudoRandomValues.push arguments... @ pesudoRandom.set = -> @clear() .push arguments...
Math._random ?= Math.random pesudoRandomValues = [] pesudoRandom = -> pesudoRandomValues.shift() ? Math._random() pesudoRandom.MIN_VALUE = 0 pesudoRandom.MAX_VALUE = 0.99999999 pesudoRandom.push = -> pesudoRandomValues.push arguments... @ pesudoRandom.set = -> @clear() .push arguments... pesudoRandom...
Modify EOL code from CRLF to LF
Modify EOL code from CRLF to LF
CoffeeScript
mit
kzokm/ga.js
fe64183e20b3f5da275145214e7d9ee648e6eb4c
app/pages/profile/stats.cjsx
app/pages/profile/stats.cjsx
React = require 'react' ClassificationsRibbon = require '../../components/classifications-ribbon' PromiseRenderer = require '../../components/promise-renderer' ProjectIcon = require '../../components/project-icon' module.exports = React.createClass getDefaultProps: -> user: null render: -> <div className=...
React = require 'react' ClassificationsRibbon = require '../../components/classifications-ribbon' PromiseRenderer = require '../../components/promise-renderer' ProjectIcon = require '../../components/project-icon' module.exports = React.createClass getDefaultProps: -> user: null render: -> <div className=...
Add Correct Display Name when Visiting Stats of Other User
Add Correct Display Name when Visiting Stats of Other User
CoffeeScript
apache-2.0
alexbfree/Panoptes-Front-End,zooniverse/Panoptes-Front-End,parrish/Panoptes-Front-End,fmnhExhibits/Panoptes-Front-End,alexbfree/Panoptes-Front-End,mrniaboc/Panoptes-Front-End,fmnhExhibits/Panoptes-Front-End,alexbfree/Panoptes-Front-End,jelliotartz/Panoptes-Front-End,amyrebecca/Panoptes-Front-End,jelliotartz/Panoptes-Fr...
05d3970e399d676fbe856633ffc3ac78fccf6191
app/assets/javascripts/player/data_unpacker.js.coffee
app/assets/javascripts/player/data_unpacker.js.coffee
class AsciiIo.DataUnpacker unpack: (base64BzippedData, callback) -> bzippedData = atob base64BzippedData if window.Worker worker = new Worker(window.unpackWorkerPath) worker.onmessage = (event) => callback event.data worker.postMessage bzippedData else data = ArchUtils.bz2.decode ...
class AsciiIo.DataUnpacker unpack: (base64BzippedData, callback) -> data = atob base64BzippedData if data[0] == 'B' and data[1] == 'Z' if window.Worker worker = new Worker(window.unpackWorkerPath) worker.onmessage = (event) => callback event.data worker.postMessage data el...
Handle both bzipped and non-bzipped data in DataUnpacker
Handle both bzipped and non-bzipped data in DataUnpacker
CoffeeScript
apache-2.0
asciinema/asciinema-server,asciinema/asciinema.org,SunDi3yansyah/asciinema.org,asciinema/asciinema.org,SunDi3yansyah/asciinema.org,asciinema/asciinema.org,asciinema/asciinema-server,asciinema/asciinema-server,SunDi3yansyah/asciinema.org,radare/radare.tv,radare/radare.tv,radare/radare.tv,asciinema/asciinema.org,SunDi3ya...
34aeffff08c33fcd8b0eecb35cbc3a7a25b89fe9
lib/written/app/assets/javascripts/written/core/cursor.coffee
lib/written/app/assets/javascripts/written/core/cursor.coffee
class Written.Cursor constructor: (element, selection) -> @element = -> element @selection = selection children = Array.prototype.slice.call(@element().children, 0) @offset = selection.focusOffset node = selection.focusNode while node && !children.includes(node) parent = node.par...
class Written.Cursor constructor: (element, selection) -> @element = -> element @selection = selection children = Array.prototype.slice.call(@element().children, 0) @offset = selection.focusOffset node = selection.focusNode while node && !children.includes(node) parent = node.par...
Use instanceof instead of nodeName for consistency's sake
Use instanceof instead of nodeName for consistency's sake
CoffeeScript
mit
pothibo/written,pothibo/written,pothibo/written
06573bd621dcc1d4cad54cafc07603aa27fb5aac
coffee/Resources/init.coffee
coffee/Resources/init.coffee
# Include lib. for file in ['buildable', 'arrayFilters', 'underscore'] Ti.include('lib/' + file + '.js') # Include expansions. for file in ['citiesAndKnights'] Ti.include('models/expansions/' + file + '.js') # Include models. for file in [ 'city', 'game', 'largestArmy', 'longestRoad', 'player', 'settl...
# Include lib. for file in ['buildable', 'arrayFilters'] Ti.include('lib/' + file + '.js') # Include vendor. for file in ['underscore'] Ti.include('vendor/' + file + '.js') # Include expansions. for file in ['citiesAndKnights'] Ti.include('models/expansions/' + file + '.js') # Include models. for file in [ '...
Fix bug with including underscore.js.
Fix bug with including underscore.js.
CoffeeScript
apache-2.0
ordinaryzelig/catan-counter-mobile,ordinaryzelig/catan-counter-mobile
bec80eead9a125895a3c574632c040dde4286e34
app/assets/javascripts/routes/anime_route.js.coffee
app/assets/javascripts/routes/anime_route.js.coffee
Hummingbird.AnimeRoute = Ember.Route.extend model: (params) -> @store.find('fullAnime', params.id) saveLibraryEntry: (libraryEntry) -> anime = @currentModel Messenger().expectPromise (-> libraryEntry.save()), progressMessage: "Saving " + anime.get('canonicalTitle') + "..." successMessage: "...
Hummingbird.AnimeRoute = Ember.Route.extend model: (params) -> @store.find('fullAnime', params.id) saveLibraryEntry: (libraryEntry) -> anime = @currentModel Messenger().expectPromise (-> libraryEntry.save()), progressMessage: "Saving " + anime.get('canonicalTitle') + "..." successMessage: "...
Mark all episodes as viewed from anime pages.
Mark all episodes as viewed from anime pages.
CoffeeScript
apache-2.0
astraldragon/hummingbird,sidaga/hummingbird,xhocquet/hummingbird,erengy/hummingbird,qgustavor/hummingbird,vevix/hummingbird,qgustavor/hummingbird,paladique/hummingbird,sidaga/hummingbird,vevix/hummingbird,wlads/hummingbird,jcoady9/hummingbird,MiLk/hummingbird,Snitzle/hummingbird,erengy/hummingbird,NuckChorris/hummingbi...
4b37341b39fc85558675da7d20b070e7abdf0239
collection-behaviours.coffee
collection-behaviours.coffee
behaviours = {} share.attach = attach = (behaviour, args...) -> if _.isString behaviour options = behaviours[behaviour].options behaviour = behaviours[behaviour].behaviour if _.isFunction behaviour context = collection: @ options: options or {} behaviour.apply context, args else ...
behaviours = {} share.attach = attach = (behaviour, args...) -> if _.isString behaviour options = behaviours[behaviour].options behaviour = behaviours[behaviour].behaviour if _.isFunction behaviour context = collection: @ options: options or {} behaviour.apply context, args else ...
Support attaching behaviour to multiple collections
Support attaching behaviour to multiple collections
CoffeeScript
mit
zimme/meteor-collection-behaviours
e9722cb8abad7c310bc6b8ce9a4e4b9b9252dabf
src/view/bindings/event_binding.coffee
src/view/bindings/event_binding.coffee
#= require ./abstract_attribute_binding class Batman.DOM.EventBinding extends Batman.DOM.AbstractAttributeBinding onlyObserve: Batman.BindingDefinitionOnlyObserve.Data bindImmediately: false constructor: -> super callback = => func = @get('filteredValue') target = @view.targetForKeypathBase...
#= require ./abstract_attribute_binding class Batman.DOM.EventBinding extends Batman.DOM.AbstractAttributeBinding onlyObserve: Batman.BindingDefinitionOnlyObserve.Data bindImmediately: false constructor: -> super callback = => func = @get('filteredValue') target = @view.targetForKeypathBase...
Fix event bindings for variable-length keypaths for realsies.
Fix event bindings for variable-length keypaths for realsies.
CoffeeScript
mit
getshuvo/batman,getshuvo/batman
6ebdb9806028b46ce51a7ce54e8213e8b9e32935
src/core/modules/html.coffee
src/core/modules/html.coffee
compile = (template, type) -> if 0 <= index = template.indexOf ' ' tmpl = template.substr 0, index attrs = template.substr index else tmpl = template [ name, classes... ] = tmpl.split /\.+/g if 0 is name.indexOf '#' id = name.substr 1 name = 'div' if name is '' name = 'div' beginT...
compile = (template, type) -> if 0 <= index = template.indexOf ' ' tmpl = template.substr 0, index attrs = template.substr index else tmpl = template [ name, classes... ] = tmpl.split /\.+/g if 0 is name.indexOf '#' id = name.substr 1 name = 'div' if name is '' name = 'div' beginT...
Handle zeros properly during templating
Handle zeros properly during templating
CoffeeScript
mit
nilbody/h2o-flow,h2oai/h2o-flow,printedheart/h2o-flow,junwucs/h2o-flow,nilbody/h2o-flow,junwucs/h2o-flow,h2oai/h2o-flow,printedheart/h2o-flow,printedheart/h2o-flow,nilbody/h2o-flow,junwucs/h2o-flow
061c86bcb818456ab85178ddc9c028173d7b00e7
apps/artist_new/client/cta.coffee
apps/artist_new/client/cta.coffee
{ MEDIUM, CURRENT_USER } = require('sharify').data AuthModalView = require '../../../components/auth_modal/view.coffee' CTABarView = require '../../../components/cta_bar/view.coffee' module.exports = (artist) -> return unless MEDIUM is 'search' and not CURRENT_USER? name = 'artist_cta' ctaHeadline = "Get update...
{ MEDIUM, CURRENT_USER } = require('sharify').data AuthModalView = require '../../../components/auth_modal/view.coffee' CTABarView = require '../../../components/cta_bar/view.coffee' module.exports = (artist) -> return unless MEDIUM is 'search' and not CURRENT_USER? name = 'artist_cta' ctaHeadline = "Get update...
Use correct CTA Bar on New Artist Pages
Use correct CTA Bar on New Artist Pages
CoffeeScript
mit
yuki24/force,joeyAghion/force,izakp/force,anandaroop/force,TribeMedia/force-public,xtina-starr/force,artsy/force,eessex/force,yuki24/force,kanaabe/force,xtina-starr/force,joeyAghion/force,artsy/force,kanaabe/force,dblock/force,cavvia/force-1,dblock/force,eessex/force,joeyAghion/force,erikdstock/force,xtina-starr/force,...
fb27da68f16a1c5d099164dde494ebb591cf7e73
config.coffee
config.coffee
storage = require 'node-persist' storage.initSync() config = storage.getItemSync 'config' module.exports = getConfig: -> defaultDelay: 3 defaultDuration: 0.5 defaultTransition: "none" checkCycles: 20
storage = require 'node-persist' storage.initSync() config = storage.getItemSync 'config' module.exports = getConfig: -> defaultDelay: 3 defaultDuration: 0.5 defaultTransition: "none" checkCycles: 2
Set check cycles to 2
Set check cycles to 2
CoffeeScript
mit
Rezonation/sisetv,Rezonation/sisetv
3088cd511621051e659158bcc6aaacb2ebbafc90
client/room_list/room_list.coffee
client/room_list/room_list.coffee
Template.room_list.helpers rooms: -> searchQuery = Session.get 'search-query' query = {} query.displayName = new RegExp searchQuery, 'i' Rooms.find query, { sort: { displayName: 1 } } Template.room_list.rendered = -> @$('[data-toggle="tooltip"]').tooltip() @$('[data-toggle="popover"]').each -> ...
Template.room_list.helpers rooms: -> searchQuery = Session.get 'search-query' query = {} query.displayName = new RegExp searchQuery, 'i' Rooms.find query, { sort: { displayName: 1 } } Template.room_list.rendered = -> @$('[data-toggle="tooltip"]').tooltip() Template.room_summary.helpers zoom: ->...
Fix rec popover behaviour when rec icon appears and page isn't reloaded.
Fix rec popover behaviour when rec icon appears and page isn't reloaded.
CoffeeScript
mit
SussexLearningSystems/peakaboo,SussexLearningSystems/peakaboo,SussexLearningSystems/peakaboo
63c3bc05bfffdc43a73b460e96c489522d34f896
bokehjs/test/test_mapper/test_categorical_mapper.coffee
bokehjs/test/test_mapper/test_categorical_mapper.coffee
{expect} = require "chai" utils = require "../utils" {Collections} = utils.require "common/base" describe "categorical mapper", -> mapper = null before -> mapper = Collections('CategoricalMapper').create( source_range: Collections('FactorRange').create factors: ['foo', 'bar', 'baz'] target...
{expect} = require "chai" utils = require "../utils" {Collections} = utils.require "common/base" describe "categorical mapper", -> factors = ["foo", "bar", "baz"] start = 20 end = 80 testMapping = (key, expected) -> mapper = Collections("CategoricalMapper").create source_range: Collections("FactorR...
Refactor test case around to use a test method for each test
Refactor test case around to use a test method for each test
CoffeeScript
bsd-3-clause
percyfal/bokeh,satishgoda/bokeh,birdsarah/bokeh,phobson/bokeh,Karel-van-de-Plassche/bokeh,percyfal/bokeh,birdsarah/bokeh,quasiben/bokeh,quasiben/bokeh,aiguofer/bokeh,rothnic/bokeh,saifrahmed/bokeh,maxalbert/bokeh,evidation-health/bokeh,philippjfr/bokeh,justacec/bokeh,KasperPRasmussen/bokeh,srinathv/bokeh,ericmjl/bokeh,...
22883bfbdc5160f28e76c31a8884a795f4af6252
lib/file-utils.coffee
lib/file-utils.coffee
remote = require "remote" dialog = remote.require "dialog" module.exports = class FileUtil constructor: () -> @prepareFile: (buffer) -> if buffer.file? && buffer.file.existsSync FileUtil.saveIfModified(buffer) else FileUtil.saveNewFile(buffer) @getPngFilePath:(file) -> pngFileName = File...
remote = require "remote" path = require "path" dialog = remote.require "dialog" module.exports = class FileUtil constructor: () -> @prepareFile: (buffer) -> if buffer.file? && buffer.file.existsSync FileUtil.saveIfModified(buffer) else FileUtil.saveNewFile(buffer) @getPngFilePath:(file) -...
Fix error where path was not required
Fix error where path was not required
CoffeeScript
mit
mrohland/plantuml
ce446e7a0b97e3dc3ac8e6b870cc0367dfef36f0
lib/observe.coffee
lib/observe.coffee
module.exports = (observed, keys, callback) -> Object.observe observed, (changes) => for change in changes if change.name in keys callback() break
module.exports = (observed, keys, callback) -> Object.observe observed, (changes) => for change in changes if (change.name in keys) or (keys.length is 0) callback() break
Allow observing [] for all keys
Allow observing [] for all keys
CoffeeScript
mit
atom/github,atom/github,atom/github
bd0411983659f734e98409737d00676c29dc4faf
app.coffee
app.coffee
_ = require('underscore') YAML = require('libyaml') colors = require('colors') fs = require('fs') commander = require('commander') proxy = require('./proxy') commander .usage("Run it in the root of your project to start proxying requests as defined in the project's .vee file") .option('-p, --port [port number]', ...
_ = require('underscore') YAML = require('libyaml') colors = require('colors') fs = require('fs') commander = require('commander') proxy = require('./proxy') commander .usage("Run it in the root of your project to start proxying requests as defined in the project's .vee file") .option('-p, --port [port number]', ...
Add missing debug pass through
Add missing debug pass through
CoffeeScript
mit
HubSpot/vee
47ca36cac40f47534d09c98c3c093828583d13d2
core/app/backbone/factlink/add_model_to_collection_mixin.coffee
core/app/backbone/factlink/add_model_to_collection_mixin.coffee
Backbone.Factlink ||= {} Backbone.Factlink.AddModelToCollectionMixin = addModel: (model) -> @options.addToCollection.add(model) model.save {}, success: => @addModelSuccess(model) if @addModelSuccess error: => @options.addToCollection.remove(model) @addModelError(model) if ...
Backbone.Factlink ||= {} Backbone.Factlink.AddModelToCollectionMixin = addModel: (model, options) -> @options.addToCollection.add(model, options) model.save {}, success: => @addModelSuccess(model) if @addModelSuccess error: => @options.addToCollection.remove(model) @addMod...
Add options to the AddModelToCollection addDefaultModel.
Add options to the AddModelToCollection addDefaultModel.
CoffeeScript
mit
daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core,Factlink/factlink-core,daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core
fc9575250239acee9e528b9dff01783ed1abb6b0
app/assets/javascripts/slack_ready_function.coffee
app/assets/javascripts/slack_ready_function.coffee
window.slackReadyFunction = (func) -> TS.groups.message_received_sig.add func TS.channels.message_received_sig.add func TS.ims.message_received_sig.add func TS.channels.switched_sig.add func TS.groups.switched_sig.add func TS.ims.switched_sig.add func func()
# 🙈 slackRebuildMsg = TS.client.msg_pane.rebuildMsg TS.client.msg_pane.rebuild_sig = new signals.Signal TS.client.msg_pane.rebuildMsg = -> slackRebuildMsg() TS.client.msg_pane.rebuild_sig.dispatch() window.slackReadyFunction = (func) -> TS.client.msg_pane.rebuild_sig.add func for channel_type in ["groups", "...
Fix a few cases that caused us to lose our lovely hacks
Fix a few cases that caused us to lose our lovely hacks
CoffeeScript
unlicense
bhuga/slacks-hacks,bhuga/slacks-hacks,bhuga/slacks-hacks
0a753f92ccd580be284b336e2385412a7af97e06
components/logged_in_navigation/components/notifications/view.coffee
components/logged_in_navigation/components/notifications/view.coffee
Promise = require 'bluebird-q' { delay } = require 'underscore' Backbone = require 'backbone' template = -> require('./index.jade') arguments... module.exports = class NotificationsView extends Backbone.View events: 'click a': -> delay (=> @render()), 250 initialize: ({ @state }) -> @listenTo @collection,...
Promise = require 'bluebird-q' { delay } = require 'underscore' Backbone = require 'backbone' template = -> require('./index.jade') arguments... module.exports = class NotificationsView extends Backbone.View events: 'click a': -> delay (=> @render()), 250 initialize: ({ @state }) -> @listenTo @collection,...
Mark notifications as read first and then set the unread count
Mark notifications as read first and then set the unread count
CoffeeScript
mit
aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell
0b3d88991f665335c4c193385f9a1fa70eece9c3
saveCompletedTaskset.coffee
saveCompletedTaskset.coffee
mongoose = require 'mongoose' db = mongoose.connection TaskSet = require './models/taskset' saveCompletedTaskset = (tasksetData, callback) -> tasksetData.lock = false tasksetData.time.submit = new Date() tasksetData.time.workTime = tasksetData.time.submit - new Date(tasksetData.time.start) taskset = new T...
mongoose = require 'mongoose' db = mongoose.connection TaskSet = require './models/taskset' saveCompletedTaskset = (tasksetData, callback) -> tasksetData.lock = false tasksetData.status = 'reviewable' tasksetData.time.submit = new Date() tasksetData.time.workTime = tasksetData.time.submit - new Date(tasksetD...
Add reviewable status to submitted hits
Add reviewable status to submitted hits
CoffeeScript
mit
organisciak/crowdy-backend,organisciak/crowdy-backend,organisciak/crowdy-backend
a58c8508dcf1e7e65bb1f86d6e07bb1639a26f9d
lib/minimap-bookmarks.coffee
lib/minimap-bookmarks.coffee
{CompositeDisposable} = require 'atom' MinimapBookmarksBinding = null module.exports = active: false isActive: -> @active activate: (state) -> @subscriptions = new CompositeDisposable consumeMinimapServiceV1: (@minimap) -> @minimap.registerPlugin 'bookmarks', this deactivate: -> @minimap?.u...
{CompositeDisposable} = require 'atom' MinimapBookmarksBinding = null module.exports = active: false isActive: -> @active bindings: {} activate: (state) -> consumeMinimapServiceV1: (@minimap) -> @minimap.registerPlugin 'bookmarks', this deactivate: -> @minimap?.unregisterPlugin 'bookmarks' ...
Implement destroying bindings on deactivation
Implement destroying bindings on deactivation
CoffeeScript
mit
atom-minimap/minimap-bookmarks
7ba03ce23dda588b9b5fa0735e5f437ea467d146
renderer/lib/init.coffee
renderer/lib/init.coffee
path = require 'path' Module = require 'module' # Expose information of current process. process.__atom_type = 'renderer' process.resourcesPath = path.resolve process.argv[1], '..', '..', '..' # We modified the original process.argv to let node.js load the # atom-renderer.js, we need to restore it here. process.argv....
path = require 'path' timers = require 'timers' Module = require 'module' # Expose information of current process. process.__atom_type = 'renderer' process.resourcesPath = path.resolve process.argv[1], '..', '..', '..' # We modified the original process.argv to let node.js load the # atom-renderer.js, we need to re...
Add setImmediate function in renderer.
Add setImmediate function in renderer.
CoffeeScript
mit
fabien-d/electron,setzer777/electron,xiruibing/electron,astoilkov/electron,MaxGraey/electron,Jonekee/electron,fabien-d/electron,astoilkov/electron,pombredanne/electron,pirafrank/electron,kostia/electron,brave/muon,jannishuebl/electron,bright-sparks/electron,fireball-x/atom-shell,jaanus/electron,smczk/electron,gerhardbe...
b5491638781951af0525e6bb7985d02c8a28dfd9
client/activity/lib/components/publicchatpane/index.coffee
client/activity/lib/components/publicchatpane/index.coffee
kd = require 'kd' React = require 'kd-react' immutable = require 'immutable' ActivityFlux = require 'activity/flux' ChatPane = require 'activity/components/chatpane' module.exports = class PublicChatPane extends React.Component @defaultProps = thread : immutable.Map() ...
kd = require 'kd' React = require 'kd-react' immutable = require 'immutable' ActivityFlux = require 'activity/flux' ChatPane = require 'activity/components/chatpane' module.exports = class PublicChatPane extends React.Component @defaultProps = thread : immutable.Map() ...
Switch to Scroller api in PublicChatPane
activity: Switch to Scroller api in PublicChatPane Conflicts: client/activity/lib/components/publicchatpane/index.coffee
CoffeeScript
agpl-3.0
usirin/koding,jack89129/koding,kwagdy/koding-1,cihangir/koding,rjeczalik/koding,usirin/koding,kwagdy/koding-1,drewsetski/koding,sinan/koding,acbodine/koding,sinan/koding,koding/koding,drewsetski/koding,rjeczalik/koding,alex-ionochkin/koding,acbodine/koding,gokmen/koding,rjeczalik/koding,kwagdy/koding-1,andrewjcasal/kod...
426db585567a28427eb7546e9556e09290011d24
app/assets/javascripts/global.coffee
app/assets/javascripts/global.coffee
$ -> $('.flash').delay(4000).fadeOut() $('#close_flash_early').click( -> closeFlashEarly()) closeFlashEarly = -> $('.flash').stop().fadeOut()
$ -> # Close flashes. $('.flash').delay(4000).fadeOut() $('#close_flash_early').click( -> closeFlashEarly()) # Nothing to see here, move along. keys = [] konami = '38,38,40,40,37,39,37,39,66,65' $(document).keydown (event) => keys.push(event.keyCode) if (keys.toString().indexOf(konami) >= 0) ...
Fix an edge case where the user types in some weird combination of keys.
Fix an edge case where the user types in some weird combination of keys.
CoffeeScript
apache-2.0
eval-so/frontend,eval-so/frontend
1571de232cb7dc8f529183fa01d7bd110f74ca28
apps/partner2/components/hero_artworks_carousel/view.coffee
apps/partner2/components/hero_artworks_carousel/view.coffee
_ = require 'underscore' Q = require 'bluebird-q' Backbone = require 'backbone' FilterArtworks = require '../../../../collections/filter_artworks.coffee' initCarousel = require '../../../../components/merry_go_round/index.coffee' template = -> require('./index.jade') arguments... module.exports = class HeroArtworksCar...
_ = require 'underscore' Q = require 'bluebird-q' Backbone = require 'backbone' FilterArtworks = require '../../../../collections/filter_artworks.coffee' initCarousel = require '../../../../components/merry_go_round/index.coffee' template = -> require('./index.jade') arguments... module.exports = class HeroArtworksCar...
Fix carousel initial rendering issue.
Fix carousel initial rendering issue.
CoffeeScript
mit
xtina-starr/force,oxaudo/force,joeyAghion/force,yuki24/force,erikdstock/force,eessex/force,erikdstock/force,xtina-starr/force,yuki24/force,anandaroop/force,joeyAghion/force,joeyAghion/force,eessex/force,kanaabe/force,kanaabe/force,izakp/force,dblock/force,izakp/force,xtina-starr/force,damassi/force,artsy/force-public,m...
c68923c133087044335bc6abd09d96b51b7eca93
app/assets/javascripts/backend/accounts.js.coffee
app/assets/javascripts/backend/accounts.js.coffee
((E, $) -> 'use strict' $(document).ready -> $('#lettersVisibility').on 'click', (e) -> E.accounts.changeUnmarkVisibility() $('#labelLettersVisibility').on 'click', (e) -> if $('#lettersVisibility').is(':checked') $('#lettersVisibility').prop('checked', false) else $('#l...
((E, $) -> 'use strict' $(document).ready -> E.accounts.changeUnmarkVisibility() $('#lettersVisibility').on 'click', (e) -> E.accounts.changeUnmarkVisibility() $('#labelLettersVisibility').on 'click', (e) -> if $('#lettersVisibility').is(':checked') $('#lettersVisibility').prop('...
Add mask literate elements by default
Add mask literate elements by default
CoffeeScript
agpl-3.0
ekylibre/ekylibre,ekylibre/ekylibre,ekylibre/ekylibre,ekylibre/ekylibre,ekylibre/ekylibre
0d9b03b0660ad32dcdd3dda217be483e56468bd1
app/assets/javascripts/darkswarm/directives/stripe_elements.js.coffee
app/assets/javascripts/darkswarm/directives/stripe_elements.js.coffee
Darkswarm.directive "stripeElements", ($injector, StripeElements) -> restrict: 'E' template: "<label for='card-element'>\ <div id='card-element'></div>\ <div id='card-errors' class='error'></div>\ </label>" link: (scope, elem, attr)-> if $injector.has('stripeObject') ...
Darkswarm.directive "stripeElements", ($injector, StripeElements) -> restrict: 'E' template: "<label for='card-element'>\ <div id='card-element'></div>\ <div id='card-errors' class='error'></div>\ </label>" link: (scope, elem, attr)-> if $injector.has('stripeObject') ...
Hide postcode - not necessary as passed from billing address and wrecks mobile UX
Hide postcode - not necessary as passed from billing address and wrecks mobile UX
CoffeeScript
agpl-3.0
Matt-Yorkley/openfoodnetwork,mkllnk/openfoodnetwork,lin-d-hop/openfoodnetwork,lin-d-hop/openfoodnetwork,openfoodfoundation/openfoodnetwork,openfoodfoundation/openfoodnetwork,lin-d-hop/openfoodnetwork,openfoodfoundation/openfoodnetwork,Matt-Yorkley/openfoodnetwork,mkllnk/openfoodnetwork,lin-d-hop/openfoodnetwork,Matt-Yo...
522a76d7e0732c0d4b1693f9d4fc3eee614cfd63
spec/EditGraph.coffee
spec/EditGraph.coffee
describe 'Graph Editor', -> win = null doc = null before -> iframe = document.getElementById 'app' win = iframe.contentWindow doc = iframe.contentDocument describe 'component search', -> search = null it 'should initially show the breadcrumb', -> search = doc.querySelector 'noflo-sear...
describe 'Graph Editor', -> win = null doc = null before -> iframe = document.getElementById 'app' win = iframe.contentWindow doc = iframe.contentDocument describe 'runtime', -> runtime = null it 'should be available as an element', -> runtime = doc.querySelector 'noflo-runtime' i...
Check runtime status as part of the tests
Check runtime status as part of the tests
CoffeeScript
apache-2.0
rdf-pipeline/noflo-server,flyboarder/noflo-ui,noflo/noflo-ui,rasata/noflo-ui,oportocala/noflo-ui,lxfschr/noflo-ui,lxfschr/noflo-ui,rasata/noflo-ui,taylorzane/noflo-ui,oportocala/noflo-ui,rdf-pipeline/noflo-server,taylorzane/noflo-ui,noflo/noflo-ui
8389698958f8866ec0d0829698207746adc933ed
spec/stdlib/task-spec.coffee
spec/stdlib/task-spec.coffee
Task = require 'task' describe "Task", -> describe "populating the window with fake properties", -> describe "when jQuery is loaded in a child process", -> it "doesn't log to the console", -> spyOn(console, 'log') spyOn(console, 'error') spyOn(console, 'warn') jqueryTask = ...
Task = require 'task' describe "Task", -> describe "populating the window with fake properties", -> describe "when jQuery is loaded in a child process", -> it "doesn't log to the console", -> spyOn(console, 'log') spyOn(console, 'error') spyOn(console, 'warn') jqueryTask = ...
Drop suffix from handler path
Drop suffix from handler path
CoffeeScript
mit
matthewclendening/atom,KENJU/atom,hakatashi/atom,davideg/atom,codex8/atom,mrodalgaard/atom,githubteacher/atom,rsvip/aTom,rookie125/atom,andrewleverette/atom,brettle/atom,AlexxNica/atom,daxlab/atom,KENJU/atom,Austen-G/BlockBuilder,MjAbuz/atom,SlimeQ/atom,seedtigo/atom,vjeux/atom,nvoron23/atom,transcranial/atom,Obviously...
5a250c69e91774089de50ad9ce7d0c1f45b6c2c8
app/assets/javascripts/components/author_view_component.js.coffee
app/assets/javascripts/components/author_view_component.js.coffee
ETahi.AuthorViewComponent = Ember.Component.extend DragNDrop.Dragable, classNames: ['authors-overlay-item'] classNameBindings: ['hoverState:__hover', 'isEditable:__editable'] editState: false hoverState: false deleteState: false attachHoverEvent: (-> self = this toggleHoverClass = (e) -> sel...
ETahi.AuthorViewComponent = Ember.Component.extend DragNDrop.Dragable, classNames: ['authors-overlay-item'] classNameBindings: ['hoverState:__hover', 'isEditable:__editable'] editState: false hoverState: false deleteState: false attachHoverEvent: (-> toggleHoverClass = (e) => @toggleProperty 'ho...
Fix Author View hover class toggle
Fix Author View hover class toggle
CoffeeScript
mit
johan--/tahi,johan--/tahi,johan--/tahi,johan--/tahi
4798c596f0dc6190147285665e5ac78be82c89dd
cms/static/coffee/src/views/module_edit.coffee
cms/static/coffee/src/views/module_edit.coffee
class CMS.Views.ModuleEdit extends Backbone.View tagName: 'section' className: 'edit-pane' events: 'click .cancel': 'cancel' 'click .module-edit': 'editSubmodule' 'click .save-update': 'save' initialize: -> @$el.load @model.editUrl(), => @model.loadModule(@el) @$el.find('.preview')...
class CMS.Views.ModuleEdit extends Backbone.View tagName: 'section' className: 'edit-pane' events: 'click .cancel': 'cancel' 'click .module-edit': 'editSubmodule' 'click .save-update': 'save' initialize: -> @$el.load @model.editUrl(), => @model.loadModule(@el) @$el.find('.preview :...
Load preview modules with actual preview elements
Load preview modules with actual preview elements
CoffeeScript
agpl-3.0
mushtaqak/edx-platform,playm2mboy/edx-platform,chand3040/cloud_that,pdehaye/theming-edx-platform,xingyepei/edx-platform,cselis86/edx-platform,B-MOOC/edx-platform,jbassen/edx-platform,antoviaque/edx-platform,tiagochiavericosta/edx-platform,jonathan-beard/edx-platform,carsongee/edx-platform,jzoldak/edx-platform,defance/e...
f032a8a251354e8bee343781e32e97cddbc87e8a
src/collections/users.coffee
src/collections/users.coffee
exports.loadUsers = (params, callback) -> if @isId params params = teamId: params else unless params and typeof params is 'object' throw new TSArgsError 'teamsnap.loadUsers', 'must provide a teamId or query parameters' @loadItems 'user', params, callback exports.loadMe = (callback) -> @collecti...
exports.loadUsers = (params, callback) -> if @isId params params = teamId: params else unless params and typeof params is 'object' throw new TSArgsError 'teamsnap.loadUsers', 'must provide a teamId or query parameters' @loadItems 'user', params, callback exports.loadMe = (callback) -> @collecti...
Remove unused param for sendEmailValidation
Remove unused param for sendEmailValidation
CoffeeScript
mit
teamsnap/teamsnap-javascript-sdk,teamsnap/teamsnap-javascript-sdk
96e66da4caf6837bd151d76a89e2dbccc9354e09
components/related_links/types/artist_representations.coffee
components/related_links/types/artist_representations.coffee
_ = require 'underscore' { API_URL } = require('sharify').data Backbone = require 'backbone' RelatedLinksView = require '../view.coffee' Partners = require '../../../collections/partners.coffee' module.exports = class RelatedRepresentationsLinksView extends RelatedLinksView headerTemplate: _.template '<h2>Gallery Re...
_ = require 'underscore' { API_URL } = require('sharify').data Backbone = require 'backbone' RelatedLinksView = require '../view.coffee' Partners = require '../../../collections/partners.coffee' CurrentUser = require '../../../models/current_user.coffee' module.exports = class RelatedRepresentationsLinksView extends R...
Disable artist representation links for everyone but admins for the time being
Disable artist representation links for everyone but admins for the time being
CoffeeScript
mit
yuki24/force,damassi/force,kanaabe/force,oxaudo/force,dblock/force,anandaroop/force,joeyAghion/force,artsy/force,izakp/force,yuki24/force,erikdstock/force,joeyAghion/force,joeyAghion/force,xtina-starr/force,mzikherman/force,cavvia/force-1,eessex/force,mzikherman/force,anandaroop/force,yuki24/force,mzikherman/force,xtin...
e49a1e3f1927fbc68e7237df924156b7d95abde1
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 options: Em.computed "content.{options,prompt,is_optional}", -> prompt = @get "content.prompt" prompt = "" if not prompt and @get "content.is_optional" options = @get "content.options" if typeof prompt is "string" and ...
`import Em from "vendor/ember"` Component = Em.Component.extend sanitizeValue: Em.on "init", -> value = @get "content.value" if typeof value isnt "string" options = @get "options" @set "content.value", options[0]?.value or "" options: Em.computed "content.{options,promp...
Initialize select value taking prompt into account.
Initialize select value taking prompt into account.
CoffeeScript
apache-2.0
openxpki/openxpki,aleibl/openxpki,stefanomarty/openxpki,oliwel/openxpki,aleibl/openxpki,aleibl/openxpki,openxpki/openxpki,openxpki/openxpki,stefanomarty/openxpki,stefanomarty/openxpki,oliwel/openxpki,oliwel/openxpki,oliwel/openxpki,stefanomarty/openxpki,oliwel/openxpki,openxpki/openxpki,aleibl/openxpki,oliwel/openxpki,...
d678f367dbcb9c31e0c1905ced53a544cc8bc648
src/cursors-component.coffee
src/cursors-component.coffee
React = require 'react' {div} = require 'reactionary' {debounce} = require 'underscore-plus' SubscriberMixin = require './subscriber-mixin' CursorComponent = require './cursor-component' module.exports = CursorsComponent = React.createClass displayName: 'CursorsComponent' mixins: [SubscriberMixin] cursorBlinkI...
React = require 'react' {div} = require 'reactionary' {debounce} = require 'underscore-plus' SubscriberMixin = require './subscriber-mixin' CursorComponent = require './cursor-component' module.exports = CursorsComponent = React.createClass displayName: 'CursorsComponent' mixins: [SubscriberMixin] cursorBlinkI...
Clear cursor blink interval when editor component unmounts
Clear cursor blink interval when editor component unmounts
CoffeeScript
mit
githubteacher/atom,florianb/atom,bradgearon/atom,ivoadf/atom,NunoEdgarGub1/atom,Galactix/atom,g2p/atom,batjko/atom,mertkahyaoglu/atom,kjav/atom,Arcanemagus/atom,dkfiresky/atom,amine7536/atom,Shekharrajak/atom,sebmck/atom,h0dgep0dge/atom,vcarrera/atom,omarhuanca/atom,me-benni/atom,hagb4rd/atom,crazyquark/atom,constanzau...
c696350b8b41a1b6625c92683a7e5c66e7262329
plugins/shared_filesystem_storage/app/assets/javascripts/shared_filesystem_storage/components/shares/access_item.coffee
plugins/shared_filesystem_storage/app/assets/javascripts/shared_filesystem_storage/components/shares/access_item.coffee
{ tr,td,button,i } = React.DOM shared_filesystem_storage.AccessItem = React.createClass getInitialState: -> deleting: false handleDelete: (e) -> e.preventDefault() shared_filesystem_storage.ConfirmDialog.ask 'Are you sure?', #validationTerm: @props.shared_network.name description: 'Wo...
{ tr,td,button,i } = React.DOM shared_filesystem_storage.AccessItem = React.createClass getInitialState: -> deleting: false handleDelete: (e) -> e.preventDefault() shared_filesystem_storage.ConfirmDialog.ask 'Are you sure?', #validationTerm: @props.shared_network.name description: 'Would y...
Add icons and styling to access level, humanize access level
Add icons and styling to access level, humanize access level
CoffeeScript
apache-2.0
sapcc/elektra,sapcc/elektra,sapcc/elektra,sapcc/elektra
131db4b8dfa26eab9185fba3b58cee6c8b0cfbff
src/jquery.turbolinks.coffee
src/jquery.turbolinks.coffee
### jquery.turbolinks.js ~ v1.0.0-rc1 ~ https://github.com/kossnocorp/jquery.turbolinks jQuery plugin for drop-in fix binded events problem caused by Turbolinks The MIT License Copyright (c) 2012 Sasha Koss ### $ = require?('jquery') || window.jQuery # List for store callbacks passed to `$` or `$.ready` ca...
### jquery.turbolinks.js ~ v1.0.0-rc1 ~ https://github.com/kossnocorp/jquery.turbolinks jQuery plugin for drop-in fix binded events problem caused by Turbolinks The MIT License Copyright (c) 2012 Sasha Koss ### $ = window.jQuery or require?('jquery') # List for store callbacks passed to `$` or `$.ready` ca...
Load jQuery from global namespace first.
Load jQuery from global namespace first. This fixes the cases wherein you may be using an AMD system, but load jQuery outside AMD.
CoffeeScript
mit
echobobby/jquery.turbolinks,kossnocorp/jquery.turbolinks
7c5cfa7b7200be2248c44dd1ece98e6a45025cb6
text-fade-in-demo.js.coffee
text-fade-in-demo.js.coffee
$(document).ready -> assert = (condition) -> throw 'Assertion failed' unless condition contents = """ ################################################################# ################################################################# ################################################################# #####...
$(document).ready -> assert = (condition) -> throw 'Assertion failed' unless condition contents = """ ################################################################# ################################################################# ################################################################# #####...
Decrease threads number in order to show threads working
Decrease threads number in order to show threads working Conflicts: text-fade-in-demo.js.coffee
CoffeeScript
mit
mdesantis/jquery-textfade,mdesantis/jquery-textfade
a53de1dfdce959b1cfa9d102d4b2408555174cc6
app/assets/javascripts/backbone/models/tree_fetcher.js.coffee
app/assets/javascripts/backbone/models/tree_fetcher.js.coffee
class Water.TreeFetcher extends Backbone.Model fetch: (node_type, path) => @trigger "start_fetch" url = [@attributes.repository_path, node_type, @attributes.ref , path].join("/") $.ajax url: url data: bare: 1 success: (data) => @data_did_fetch(data) dataType: "html" data_did_fetc...
class Water.TreeFetcher extends Backbone.Model fetch: (node_type, path) => @trigger "start_fetch" url = [@attributes.repository_path, node_type, @attributes.ref , path].join("/") $.ajax url: url data: bare: 1 success: (data) => @data_did_fetch(data) error: (hdr, status, error) => @...
Add rudimentary error handling for tree ftecher
Add rudimentary error handling for tree ftecher
CoffeeScript
agpl-3.0
water/mainline,water/mainline,water/mainline
40c1eb87c23a966e42ad0092f13b132e215420cc
keymaps/task-list.cson
keymaps/task-list.cson
# Keybindings require three things to be fully defined: A selector that is # matched against the focused element, the keystroke and the command to # execute. # # Below is a basic keybinding which registers on all platforms by applying to # the root workspace element. # For more detailed documentation see # https://ato...
# Keybindings require three things to be fully defined: A selector that is # matched against the focused element, the keystroke and the command to # execute. # # Below is a basic keybinding which registers on all platforms by applying to # the root workspace element. # For more detailed documentation see # https://ato...
Fix for depreciated class warning
Fix for depreciated class warning
CoffeeScript
mit
kenwheeler/task-list
ef9fcc1c1866d8021791aac1f0ac6ac8c75e42bf
lib/generators/rails_script/install/templates/base.js.coffee
lib/generators/rails_script/install/templates/base.js.coffee
window.App ||= {} class App.Base constructor: -> if (window.jQuery) then @setClearEventHandlers() # clearing application event handlers only possible with jQuery return this ### Run the new action for the create action. Generally the create action will 'render :new' if there was a problem. This prev...
window.App ||= {} class App.Base constructor: -> if (window.jQuery) then @setClearEventHandlers() # clearing application event handlers only possible with jQuery return this ### Run the new action for the create action. Generally the create action will 'render :new' if there was a problem. This prev...
Make sure the jQuery event handler is called.
Make sure the jQuery event handler is called.
CoffeeScript
mit
gemgento/rails_script,kpheasey/rails_script
a144c5ff0df9883d3bf0b2d8d0ab8e3a4569ab58
server/analytics/AnalyticsLogEvent.coffee
server/analytics/AnalyticsLogEvent.coffee
mongoose = require 'mongoose' plugins = require '../plugins/plugins' AnalyticsLogEventSchema = new mongoose.Schema({ created: type: Date 'default': Date.now }, {strict: false}) AnalyticsLogEventSchema.index({event: 1, created: -1}) module.exports = AnalyticsLogEvent = mongoose.model('analytics.log.event', A...
mongoose = require 'mongoose' plugins = require '../plugins/plugins' AnalyticsLogEventSchema = new mongoose.Schema({ created: type: Date 'default': Date.now }, {strict: false}) AnalyticsLogEventSchema.index event: 1 AnalyticsLogEventSchema.index created: -1 module.exports = AnalyticsLogEvent = mongoose.mode...
Update analytics.log.event indexes to match prod
Update analytics.log.event indexes to match prod These were applied as single indexes directly in production.
CoffeeScript
mit
yapkn/codecombat,khoa102/codecombat,giaba90/codecombat,Akhuta/codecombat,duybkict/codecombat,ycaihua/codecombat,laituan245/codecombat,codecombat/codecombat,PatrickShelby/codecombat,tpai/codecombat,javatlacati/codecombat,probil/codecombat,jequal/codecombat,khoa102/codecombat,cundamic/codecombat,nixel2007/codecombat,anir...
780de437737ddae1d4224ec1aab89942c284588c
test/javascripts/models/manuscript_manager_template_test.js.coffee
test/javascripts/models/manuscript_manager_template_test.js.coffee
#= require test_helper testPhases = undefined testTemplate = undefined module 'Unit: ManuscriptManagerTemplate', setup: -> phase = name: 'First Phase', task_types: ['ATask', 'AnotherTask'] @testThing = 5 template = name: 'A name' paper_type: 'A type' template: phases: [phase] ...
#= require test_helper testPhases = undefined testTemplate = undefined module 'Unit: ManuscriptManagerTemplate', setup: -> phase = name: 'First Phase', task_types: ['ATask', 'AnotherTask'] @testThing = 5 template = name: 'A name' id: 1 paper_type: 'A type' template: phase...
Add tests for templateJSON property.
Add tests for templateJSON property.
CoffeeScript
mit
johan--/tahi,johan--/tahi,johan--/tahi,johan--/tahi
98c059d1c78f513a8564d394f925efa5d3be696d
app/assets/javascripts/neighborly/modules/map.js.coffee
app/assets/javascripts/neighborly/modules/map.js.coffee
Neighborly.Map = (mapCanvasSelector) -> window.mapCanvasSelector = mapCanvasSelector $.getScript('https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false&callback=Neighborly.MapInitialize') Neighborly.MapInitialize = -> mapCanvasSelector = '.map-canvas' if typeof mapCanvasSelector is 'undefined' ma...
Neighborly.Map = (mapCanvasSelector) -> window.mapCanvasSelector = mapCanvasSelector $.getScript('https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false&callback=Neighborly.MapInitialize') Neighborly.MapInitialize = -> mapCanvasSelector = '.map-canvas' if typeof mapCanvasSelector is 'undefined' ma...
Use terrain map type on JS map module
Use terrain map type on JS map module
CoffeeScript
mit
jinutm/silverprod,rockkhuya/taydantay,jinutm/silverprod,MicroPasts/micropasts-crowdfunding,rockkhuya/taydantay,jinutm/silverpro,jinutm/silverme,jinutm/silverme,jinutm/silverpro,jinutm/silverclass,MicroPasts/micropasts-crowdfunding,jinutm/silveralms.com,raksonibs/raimcrowd,jinutm/silverclass,jinutm/silverprod,rockkhuya/...
9085fc1062f5d6791655e8812e2de4596126b4b9
app/assets/javascripts/application.coffee
app/assets/javascripts/application.coffee
#= require jquery #= require jquery_ujs #= require turbolinks #= require_tree . onReady = -> $('#gems-search').keyup -> if $("#query").val().length $.get $(this).attr('action'), $(this).serialize(), null, 'script' false $(document).ready onReady $(document).on 'page:change', -> if window._gaq? ...
#= require jquery #= require jquery_ujs #= require turbolinks #= require_tree . onReady = -> $('#gems-search').keyup -> $.get $(this).attr('action'), $(this).serialize(), null, 'script' false $(document).ready onReady $(document).on 'page:change', -> if window._gaq? _gaq.push ['_trackPageview'] els...
Revert "Don't send search query when query field is empty"
Revert "Don't send search query when query field is empty" This reverts commit 6173b9b468889a31d84460eb95eac5ec9ec767bc. Necessary because else when someone erases his search query in the input field, the index page does not show again all the gems.
CoffeeScript
mit
rubyperu/ready4rails,rubyperu/ready4rails,rubyperu/ready4rails
9ed4d349389c8cd95cc135f3f7232e8a31cb2092
app/gem/component.cjsx
app/gem/component.cjsx
'use strict' {toggleGem} = require './actions' store = require './store' Gem = React.createClass mixins: [Reflux.connect store, 'status'] onClick: (event) -> toggleGem() return render: -> statusStr = if @state?.status then 'activated' else 'deactivated' (<p> Gem is {statusStr} &nbsp; ...
'use strict' {toggleGem} = require './actions' store = require './store' Gem = React.createClass mixins: [Reflux.connect store, 'status'] onClick: (event) -> toggleGem() return render: -> statusStr = if @state?.status then 'activated' else 'deactivated' (<div> <p>Gem is {statusStr}</p> ...
Put toggle button on new line
Put toggle button on new line The moving toggle button is too annoying, let's put it under the updating text.
CoffeeScript
apache-2.0
IngloriousCoderz/reflux-proto,IngloriousCoderz/reflux-proto
fdb2485bb53bd01d7bf91ed72c3af1eebcb4b3e3
model.coffee
model.coffee
mongoose = require 'mongoose' Schema = mongoose.Schema ObjectId = Schema.ObjectId mongoose.model "User", new Schema user: type: String required: true unique: true password: type: String required: true User = module.exports.User = mongoose.model "User" mongoose.model "Chart", new Schema owne...
mongoose = require 'mongoose' Schema = mongoose.Schema ObjectId = Schema.ObjectId mongoose.model "User", new Schema user: type: String required: true unique: true password: type: String required: true User = module.exports.User = mongoose.model "User" mongoose.model "Chart", new Schema owne...
Extend a chart to contain several distinct datasets.
Extend a chart to contain several distinct datasets.
CoffeeScript
agpl-3.0
bodil/chartlol
8c56d1bbf1d24c9a57783ab50c97546ee6cae15f
gulpfile.coffee
gulpfile.coffee
path = require('path') gulp = require('gulp') mocha = require('gulp-mocha') coffeelint = require('gulp-coffeelint') mochaNotifierReporter = require('mocha-notifier-reporter') OPTIONS = config: coffeelint: path.join(__dirname, 'coffeelint.json') files: coffee: [ 'lib/**/*.coffee', 'gulpfile.coffee' ] tests: 'li...
path = require('path') gulp = require('gulp') mocha = require('gulp-mocha') coffeelint = require('gulp-coffeelint') mochaNotifierReporter = require('mocha-notifier-reporter') OPTIONS = config: coffeelint: path.join(__dirname, 'coffeelint.json') files: coffee: [ 'lib/**/*.coffee', 'gulpfile.coffee' ] tests: 'li...
Watch for JSON files when linting
Watch for JSON files when linting
CoffeeScript
apache-2.0
resin-io/resin-cli,resin-io/resin-cli,resin-io/resin-cli,resin-io/resin-cli
516220827771e4127953f410acb2acb0e9b8968e
lib/css.coffee
lib/css.coffee
# csso = require 'csso' cleanCss = require 'clean-css' Bundle = require './bundle' fs = require 'fs' os = require 'os' path = require 'path' class Css extends Bundle constructor: (@options) -> @fileExtension = '.css' super minify: (code) -> return code unless @options.minifyCss ...
# csso = require 'csso' cleanCss = require 'clean-css' Bundle = require './bundle' fs = require 'fs' os = require 'os' path = require 'path' class Css extends Bundle constructor: (@options) -> @fileExtension = '.css' super minify: (code) -> return code unless @options.minifyCss ...
Resolve issue with incorrect url for remote CSS when using addCssUrl, and bundle option is false. This results from the file.url property being a boolean value instead of a string, and the result is the link tag is output as <link href='true' /> rather than with the correct url. Looks like this was already fixed for JS...
Resolve issue with incorrect url for remote CSS when using addCssUrl, and bundle option is false. This results from the file.url property being a boolean value instead of a string, and the result is the link tag is output as <link href='true' /> rather than with the correct url. Looks like this was already fixed for ...
CoffeeScript
mit
nodecode/bundle-up3
35aa5562e353da45c1488d13d93e36a9245cd4cb
keymaps/command-palette.cson
keymaps/command-palette.cson
'body, .command-palette .editor': 'meta-p': 'command-palette:toggle' '.command-palette .editor': 'meta-p': 'command-palette:toggle'
'body, .command-palette .editor': 'meta-P': 'command-palette:toggle'
Use meta-P to toggle command palette
Use meta-P to toggle command palette
CoffeeScript
mit
atom/command-palette
d6b36e87b2fae1cfc31995c82e14e26224b20254
src/coffee/base64.coffee
src/coffee/base64.coffee
# base64 # # @description # @Copyright 2014 Fantasy <fantasyshao@icloud.com> # @create 2014-12-11 # @update 2014-12-21 exports.encode = (str) -> try str = str.replace /\n/g, '' .replace /\s/g, '' window.btoa str catch err console.debug err exports.decode = (str) -> try JSON.string...
# base64 # # @description # @Copyright 2014 Fantasy <fantasyshao@icloud.com> # @create 2014-12-11 # @update 2014-12-22 exports.encode = (str) -> try new Buffer(str).toString('base64') catch err console.debug err exports.decode = (str) -> try new Buffer(str, 'base64').toString('ascii') catch err ...
Change `window.atob` methods to Node.js natvie methods.
Change `window.atob` methods to Node.js natvie methods.
CoffeeScript
mit
FantasyMedia/Toolbox
5b1d8a7353be684131d13440a11bde0fd66906cc
lib/latexmk.coffee
lib/latexmk.coffee
child_process = require "child_process" module.exports = run: (path, args) -> # TODO: Add support killing the process. proc = child_process.exec(path + " " + args.join " ") proc.on 'close', (code, signal) -> if code == 0 # TODO: Display a more visible success message. console.info ...
child_process = require "child_process" module.exports = run: (path, args) -> # TODO: Add support killing the process. proc = child_process.exec(path + " " + args.join " ") proc.on "close", (code, signal) => if code == 0 # TODO: Display a more visible success message. console.info ...
Change single quotes to double
Change single quotes to double
CoffeeScript
mit
WoodyWoodsta/atom-latex,thomasjo/atom-latex,thomasjo/atom-latex,thomasjo/atom-latex,WoodyWoodsta/atom-latex
2b8c05616c197d023e896ab41d50b3bf958ccb7a
vendor/assets/javascripts/editable/rails/editable_form.js.coffee
vendor/assets/javascripts/editable/rails/editable_form.js.coffee
jQuery ($) -> EditableForm = $.fn.editableform.Constructor EditableForm.prototype.saveWithUrlHook = (value) -> originalUrl = @options.url model = @options.model nestedName = @options.nested nestedId = @options.nid nestedLocale = @options.locale @options.url = (params) => if typeof ori...
jQuery ($) -> EditableForm = $.fn.editableform.Constructor EditableForm.prototype.saveWithUrlHook = (value) -> originalUrl = @options.url model = @options.model nestedName = @options.nested nestedId = @options.nid nestedLocale = @options.locale @options.url = (params)...
Add a blank value to an empty array to make sure the param is submitted
Add a blank value to an empty array to make sure the param is submitted This is what Rails does -- submit a blank value to indicate that no values were submitted to the controller.
CoffeeScript
mit
QuinnHarris/x-editable-rails,neonix20b/x-editable-rails,werein/x-editable-rails,werein/x-editable-rails,QuinnHarris/x-editable-rails,krsmurata/x-editable-rails,neonix20b/x-editable-rails,artdevil/x-editable-rails,mattslack/x-editable-rails,artdevil/x-editable-rails,mattslack/x-editable-rails,krsmurata/x-editable-rails
d508f711c6e0530bb8144587624af4152f896b83
browser/api/lib/window.coffee
browser/api/lib/window.coffee
Window = process.atom_binding('window').Window module.exports = Window
Window = process.atom_binding('window').Window # Convient accessors. setupGetterAndSetter = (constructor, name, getter, setter) -> constructor.prototype.__defineGetter__ name, -> this[getter].apply(this, arguments) constructor.prototype.__defineSetter__ name, -> this[setter].apply(this, arguments) setupGe...
Add convenient accessors for Window API.
Add convenient accessors for Window API.
CoffeeScript
mit
fritx/electron,iftekeriba/electron,MaxWhere/electron,renaesop/electron,michaelchiche/electron,mubassirhayat/electron,Evercoder/electron,saronwei/electron,pirafrank/electron,michaelchiche/electron,digideskio/electron,darwin/electron,trankmichael/electron,davazp/electron,BionicClick/electron,tylergibson/electron,destan/e...
bc392f7e7f221218742582985110b70ddbf6208a
app/main.cjsx
app/main.cjsx
React = require 'react' window.React = React React.initializeTouchEvents true router = require './router' mainContainer = document.createElement 'div' mainContainer.id = 'panoptes-main-container' document.body.appendChild mainContainer if process.env.NON_ROOT isnt 'true' and location.hash isnt "" location.pathname ...
React = require 'react' window.React = React React.initializeTouchEvents true router = require './router' mainContainer = document.createElement 'div' mainContainer.id = 'panoptes-main-container' document.body.appendChild mainContainer if process.env.NON_ROOT isnt 'true' and location.hash isnt "" location.pathname ...
Change to CustomEvent for IE 11
Change to CustomEvent for IE 11
CoffeeScript
apache-2.0
amyrebecca/Panoptes-Front-End,jelliotartz/Panoptes-Front-End,jelliotartz/Panoptes-Front-End,camallen/Panoptes-Front-End,camallen/Panoptes-Front-End,mrniaboc/Panoptes-Front-End,alexbfree/Panoptes-Front-End,amyrebecca/Panoptes-Front-End,fmnhExhibits/Panoptes-Front-End,CKrawczyk/Panoptes-Front-End,amyrebecca/Panoptes-Fron...
7f489a9acfde6dc601b52a1c79abcaac390d42bd
app/assets/javascripts/jobs_list/views/jobs_list_view.js.coffee
app/assets/javascripts/jobs_list/views/jobs_list_view.js.coffee
window.JobsListView = class JobsListView extends Backbone.View initialize: -> @model.bind 'add', => this.render() $(@el).append('<h2>Jobs List</h2>') @list = $('<ul class="jobs-list" />').appendTo(@el) $(@el).append('<p class="hint">Save jobs here by clicking "Add to jobs list" on a job.') $(...
window.JobsListView = class JobsListView extends Backbone.View events: 'click p.clear-all a': 'clearAll' initialize: -> @model.bind 'add', => this.render() @model.bind 'remove', => this.render() $(@el).append('<h2>Jobs List</h2>') @list = $('<ul class="jobs-list" />').appendTo(@el) $(@e...
Clear all the jobs link.
Clear all the jobs link.
CoffeeScript
mit
gds-attic/jobs,gds-attic/jobs,gds-attic/jobs
49b24ebe28a6b47efd34c772c4f9e59d73152b4a
src/spec/fetchstock.spec.coffee
src/spec/fetchstock.spec.coffee
_ = require 'underscore' Promise = require 'bluebird' FetchStocks = require '../lib/fetchstocks' {ExtendedLogger} = require 'sphere-node-utils' Config = require '../config' describe 'FetchStocks', -> beforeEach -> @logger = new ExtendedLogger @fetchStocks = new FetchStocks @logger, Config, 'anyKey' it 's...
_ = require 'underscore' Promise = require 'bluebird' FetchStocks = require '../lib/fetchstocks' {ExtendedLogger} = require 'sphere-node-utils' Config = require '../config' describe 'FetchStocks', -> beforeEach -> @logger = new ExtendedLogger @fetchStocks = new FetchStocks @logger, Config it 'should get ...
Add tests for fetch stocks.
Add tests for fetch stocks.
CoffeeScript
mit
sphereio/sphere-stock-export,sphereio/sphere-stock-export
7f7590046f8d96690c9c0f93b830a5090348b477
app/assets/javascripts/pgdatagraph/palette.js.coffee
app/assets/javascripts/pgdatagraph/palette.js.coffee
class PG.Palette colors: red: stroke: "#b64639" fill: "#dc6355" orange: stroke: "#b27a01" fill: "#e3b514" yellowGreen: stroke: "#9bac0c" fill: "#c3d52a" lime: stroke: "#60a121" fill: "#8cd347" mediumSeaGreen: stroke: "#1a9853" fill: "#47...
class PG.Palette defaults: red: stroke: "#b64639" fill: "#dc6355" orange: stroke: "#b27a01" fill: "#e3b514" yellowGreen: stroke: "#9bac0c" fill: "#c3d52a" lime: stroke: "#60a121" fill: "#8cd347" mediumSeaGreen: stroke: "#1a9853" fill: "#...
Make sure all palette instances use their own set of used colors
Make sure all palette instances use their own set of used colors
CoffeeScript
bsd-3-clause
pganalyze/pgdatagraph,pganalyze/pgdatagraph
22abe3d3ecce2e02f18e67591807489be451f03c
lib/collections.coffee
lib/collections.coffee
@Campaigns = new Meteor.Collection 'campaigns' @Campaigns.attachSchema new SimpleSchema name: type: String label: "Nome" max: 100 description: type: String label: "Descrição" max: 10000 createdAt: type: Date label: "Criado em" autoValue: -> if @isInsert return new Date if @isUpsert re...
@Campaigns = new Meteor.Collection 'campaigns' @Campaigns.attachSchema new SimpleSchema name: type: String label: "Nome" max: 100 description: type: String label: "Descrição" max: 10000 createdAt: type: Date label: "Criado em" autoValue: -> if @isInsert return new Date if @isUpsert re...
Fix user validation in campaign
Fix user validation in campaign
CoffeeScript
mit
euajudo/web,euajudo/web
9bb2369e3df4c32980010ff3d3e69b6b60f66957
app/assets/javascripts/exo/widgets/auto_complete_token_field.js.coffee
app/assets/javascripts/exo/widgets/auto_complete_token_field.js.coffee
namespace 'Exo.Widgets.AutocompleteTokenField', (exports) -> exports.ReplaceIdStrategy = (tokens) -> if id = tokens[0]?.id @originalInput.value = id exports.ArrayStrategy = (tokens) -> inputName = @originalInput.name + "[]" @$el.find('[type="hidden"]').remove() for token in tokens inpu...
namespace 'Exo.Widgets.AutocompleteTokenField', (exports) -> # TODO add docs for all of these!!! exports.ReplaceIdStrategy = (tokens) -> if id = tokens[0]?.id @originalInput.value = id exports.ArrayStrategy = (tokens) -> inputName = @originalInput.name + "[]" @$el.find('[type="hidden"]').re...
Implement NestedAttributesStrategy for autocompleteTokenField widget
Implement NestedAttributesStrategy for autocompleteTokenField widget
CoffeeScript
mit
metalabdesign/exo
1049aff5f2496b3502a3972f2204fc2e4fe1eee7
app/assets/javascripts/cfp/backbone/views/ranking_view.js.coffee
app/assets/javascripts/cfp/backbone/views/ranking_view.js.coffee
class Cfp.Views.RankingView extends Backbone.View el: '#ranking' events: 'change #rank' : 'changeRank' changeRank: -> rank = new Cfp.Models.Rank rank.save value: @selectedRank() selectedRank: => @$('#rank').val()
class Cfp.Views.RankingView extends Backbone.View el: '#ranking' events: 'change #rank' : 'changeRank' changeRank: -> rank = new Cfp.Models.Rank rank.save value: @selectedRank() selectedRank: => @$('#rank:checked').val()
Fix for bad asset compilation on production, this MUST BE REMOVED in the future
Fix for bad asset compilation on production, this MUST BE REMOVED in the future
CoffeeScript
mit
crowdint/cfp,crowdint/cfp,crowdint/cfp
76d89a69af63a8da6e7e938fefabd6630669beff
src/vcs/Mercurial.coffee
src/vcs/Mercurial.coffee
Base = require("./Base") module.exports = class Mercurial extends Base type: 'mercurial' _doCommit: (message) -> @_exec(['hg', 'commit', '-m', message]) _doPull: -> @_exec(['hg', 'pull']) _doPush: -> @_exec(['hg', 'push']) _doUpdate: (revision) -> @_exec(['hg', 'update', revision]) _doMerge: (rev...
Base = require("./Base") module.exports = class Mercurial extends Base type: 'mercurial' _doCommit: (message) -> @_exec(['hg', 'commit', '-m', message]) _doPull: -> @_exec(['hg', 'pull']) _doPush: -> @_exec(['hg', 'push']) _doUpdate: (revision) -> @_exec(['hg', 'update', revision]) _doMerge: (rev...
Remove -r flag from hg merge command
Remove -r flag from hg merge command
CoffeeScript
mit
megaplan/vcshelper
c701711eab8d14f6f383511160081562720f2534
services/web/public/coffee/ide/review-panel/directives/reviewPanelToggle.coffee
services/web/public/coffee/ide/review-panel/directives/reviewPanelToggle.coffee
define [ "base" ], (App) -> App.directive "reviewPanelToggle", () -> restrict: "E" scope: onToggle: '&' ngModel: '=' disabled: '=?' onDisabledClick: '=?' link: (scope) -> if !scope.disabled? scope.disabled = false scope.onChange = (args...) -> scope.onToggle({ isOn: scope.localModel }...
define [ "base" ], (App) -> App.directive "reviewPanelToggle", () -> restrict: "E" scope: onToggle: '&' ngModel: '=' valWhenUndefined: '=?' disabled: '=?' onDisabledClick: '=?' link: (scope) -> if !scope.disabled? scope.disabled = false scope.onChange = (args...) -> scope.onToggle(...
Support a default value when undefined in the review panel toggles.
Support a default value when undefined in the review panel toggles.
CoffeeScript
agpl-3.0
sharelatex/sharelatex
f211a40e8938eed564274415fcdb30795928bc02
test/lib/algorhythmic.coffee
test/lib/algorhythmic.coffee
expect = require('chai').expect algorhythm = require('../../lib/algorhythmic') describe 'Algorhythmic', -> it 'works', -> expect(algorhythm).to.be.ok
expect = require('chai').expect algorhythm = require('../../lib/algorhythmic') describe 'Algorhythmic', -> describe 'bucketing an identifier', -> bucket = randomString = null it 'buckets an empty string', -> expect(algorhythm.convert('')).to.be.ok it 'buckets a single character string', -> ...
Add some tests around the bucketing
Add some tests around the bucketing
CoffeeScript
mit
mojects/avatars-api,gitblit/avatars-api,gitblit/avatars-api,mojects/avatars-api,adorableio/avatars-api
3da106527db244c7f1ff6288a28259eb4cf4740a
config.coffee
config.coffee
exports.config = paths: watched:['client'] files: javascripts: joinTo: 'app.js' stylesheets: joinTo: 'app.css' templates: joinTo: 'app.js'
exports.config = sourceMaps: false paths: watched:['client'] files: javascripts: joinTo: 'javascripts/app.js': /^client(\/|\\)app/ 'javascripts/vendor.js': /^(bower_components|(client(\/|\\)vendor))/ stylesheets: joinTo: 'stylesheets/app.css' templates: default: '...
Update the conf to work.
Update the conf to work.
CoffeeScript
mit
pierr/bootstrap-ws,pierr/bootstrap-ws
33efc257e9a43b8beead6d5189435633a410cba5
app/assets/javascripts/rglossa/controllers/search/result_toolbar_controller.coffee
app/assets/javascripts/rglossa/controllers/search/result_toolbar_controller.coffee
App.ResultToolbarController = Em.ArrayController.extend content: [] searchBinding: 'currentSearchController.content' pageSize: 15 _currentPageNo: 0 currentPageNo: ((key, value) -> if value? numPages = @get('numPages') @_currentPageNo = if value < 0 then 0 else (if value >= numPages then numP...
App.ResultToolbarController = Em.ArrayController.extend content: [] searchBinding: 'currentSearchController.content' pageSize: 15 _currentPageNo: 0 currentPageNo: ((key, value) -> if value? numPages = @get('numPages') @_currentPageNo = if value < 0 then 0 else (if value >= numPages then numP...
Send events when traversing result pages
Send events when traversing result pages
CoffeeScript
mit
textlab/rglossa,textlab/rglossa,textlab/glossa,textlab/rglossa,textlab/rglossa,textlab/glossa,textlab/rglossa,textlab/glossa,textlab/glossa,textlab/glossa
dfdc8825763851bc6920fd96949fa6f72c3e0f42
app/assets/javascripts/components/inline_edit_body_part.js.coffee
app/assets/javascripts/components/inline_edit_body_part.js.coffee
ETahi.InlineEditBodyPartComponent = Em.Component.extend editing: false snapshot: [] confirmDelete: false createSnapshot: (-> @set('snapshot', Em.copy(@get('block'), true)) ).observes('editing') hasContent: true # hasContent: Em.computed.notEmpty('bodyPart.value') hasNoContent: Em.computed.not('ha...
ETahi.InlineEditBodyPartComponent = Em.Component.extend editing: false snapshot: [] confirmDelete: false createSnapshot: (-> @set('snapshot', Em.copy(@get('block'), true)) ).observes('editing') hasContent: (-> @get('block').any(@_isEmpty) ).property('block.@each.value') hasNoContent: Em.compu...
Disable saving when items are all empty
Disable saving when items are all empty
CoffeeScript
mit
johan--/tahi,johan--/tahi,johan--/tahi,johan--/tahi
6c84c6a4d4349bfa2714b85cb930c3a724787906
app/assets/javascripts/sprangular/directives/shippingRatesSelection.coffee
app/assets/javascripts/sprangular/directives/shippingRatesSelection.coffee
Sprangular.directive 'shippingRateSelection', -> restrict: 'E' templateUrl: 'shipping/rates.html' scope: order: '=' controller: ($scope, Checkout, Env) -> $scope.loading = false $scope.address = {} $scope.currencySymbol = Env.currency.symbol $scope.$watch 'order.shippingRate', (rate, oldRa...
Sprangular.directive 'shippingRateSelection', -> restrict: 'E' templateUrl: 'shipping/rates.html' scope: order: '=' controller: ($scope, Checkout, Env) -> $scope.loading = false $scope.address = {} $scope.currencySymbol = Env.currency.symbol $scope.$watch 'order.shippingRate', (rate, oldRa...
Refactor shipping-rate-selection directive to remove annoying refresh issue
Refactor shipping-rate-selection directive to remove annoying refresh issue
CoffeeScript
mit
sprangular/sprangular,sprangular/sprangular,sprangular/sprangular
fd129d35e734ae28df25c3920c437b6bc316f3af
lib/image-editor-status-view.coffee
lib/image-editor-status-view.coffee
{View} = require 'atom' ImageEditor = require './image-editor' module.exports = class ImageEditorStatusView extends View @content: -> @div class: 'status-image inline-block', => @span class: 'image-size', outlet: 'imageSizeStatus' initialize: (@statusBar) -> @attach() @subscribe atom.workspaceV...
{View} = require 'atom' ImageEditor = require './image-editor' module.exports = class ImageEditorStatusView extends View @content: -> @div class: 'status-image inline-block', => @span class: 'image-size', outlet: 'imageSizeStatus' initialize: (@statusBar) -> @attach() @subscribe atom.workspaceV...
Move comment to next line
:lipstick: Move comment to next line
CoffeeScript
mit
atom/image-view
1a3e2c5e011150c2e445eddf0276d5d0ffeee886
app/assets/javascripts/tenon/features/quick_search.js.coffee
app/assets/javascripts/tenon/features/quick_search.js.coffee
class Tenon.features.QuickSearch constructor: -> @$content = $('.toolbox #quick-search-container') @$toggle = $('#quick-search-toggle') @openClass = 'open' @$field = $('#quick-search') # listeners $(document).on('keyup', '#quick-search', $.debounce(500, @_submitSearch)) @$toggle.on('clic...
class Tenon.features.QuickSearch constructor: -> @$content = $('.toolbox #quick-search-container') @$toggle = $('#quick-search-toggle') @openClass = 'open' # listeners $(document).on('keyup', '#quick-search', $.debounce(500, @_submitSearch)) @$toggle.on('click', @toggleNav) # $(document)...
Fix QuickSearch for quick searches that are drawn after DOMReady
Fix QuickSearch for quick searches that are drawn after DOMReady
CoffeeScript
mit
factore/tenon,factore/tenon,factore/tenon,factore/tenon
82a674537dff99772ba06fdfd4c5b4183f853054
src/ncn.coffee
src/ncn.coffee
Bacon = require 'bacon' $ = require 'jquery' class NCN constructor: (@host = '') -> request = (method) -> (path, data) -> Bacon.fromPromise( $.ajax @host + path, data: data type: method dataType: 'json') get: request 'GET' post: request 'POST' delete: request 'DELETE' put:...
Bacon = require 'bacon' $ = require 'jquery' class NCN constructor: (@host = '') -> @toilets = new NCN @host + '/toilets' request = (method) -> (path, data) -> [path, data] = [@host, path] unless data? Bacon.fromPromise( $.ajax @host + path, data: data type: method dataTyp...
Make path an optional parameter
Make path an optional parameter
CoffeeScript
bsd-3-clause
ck101000xx/ncn-web
3b1335062faae1555ea235310c71775e7d84d207
app/assets/javascripts/followable.js.coffee
app/assets/javascripts/followable.js.coffee
App.Followable = update: (followable_id, button) -> $("#" + followable_id + " .js-follow").html(button) # Temporary line. Waiting for issue resolution: https://github.com/consul/consul/issues/1736 initialize_modules()
App.Followable = update: (followable_id, button) -> $("#" + followable_id + " .js-follow").html(button)
Remove uneeded initialization after ajax refresh.
Remove uneeded initialization after ajax refresh.
CoffeeScript
agpl-3.0
deivid-rodriguez/participacion,CDJ11/CDJ,AjuntamentdeCastello/consul,deivid-rodriguez/participacion,AyuntamientoMadrid/participacion,amiedes/consul,AyuntamientoMadrid/participacion,usabi/consul_san_borondon,deivid-rodriguez/participacion,AjuntamentdeCastello/consul,AyuntamientoPuertoReal/decidePuertoReal,AjuntamentdeCa...