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
c89581899bf45c8829d04c3e5977a1bbd03be227
src/index.coffee
src/index.coffee
sysPath = require 'path' compileHBS = require './ember-handlebars-compiler' module.exports = class EmberHandlebarsCompiler brunchPlugin: yes type: 'template' extension: 'hbs' precompile: off root: null modulesPrefix: 'module.exports = ' constructor: (@config) -> if @config.files.templates.preco...
sysPath = require 'path' compileHBS = require './ember-handlebars-compiler' module.exports = class EmberHandlebarsCompiler brunchPlugin: yes type: 'template' extension: 'hbs' precompile: off root: null modulesPrefix: 'module.exports = ' constructor: (@config) -> if @config.files.templates.preco...
Use the configured default extension
Use the configured default extension Right now the code does not take defaultExtension into account.
CoffeeScript
mit
rvermillion/ember-handlebars-brunch,bartsqueezy/ember-handlebars-brunch
c7941b75d2a659f517ab18529f2755991d025e9c
spec/spec-bootstrap.coffee
spec/spec-bootstrap.coffee
# Start the crash reporter before anything else. require('crash-reporter').start(productName: 'Atom', companyName: 'GitHub') path = require 'path' try require '../src/window' Atom = require '../src/atom' window.atom = Atom.loadOrCreate('spec') # Show window synchronously so a focusout doesn't fire on input e...
# Start the crash reporter before anything else. require('crash-reporter').start(productName: 'Atom', companyName: 'GitHub') path = require 'path' localStorage.clear() try require '../src/window' Atom = require '../src/atom' window.atom = Atom.loadOrCreate('spec') # Show window synchronously so a focusout d...
Clear the localStorage that will restore information no matter if or not restart.
Clear the localStorage that will restore information no matter if or not restart.
CoffeeScript
mit
liuxiong332/xmail,git-notes/git-notes,liuxiong332/xmail,liuxiong332/xmail,xmail-client/xmail,xmail-client/xmail,liuxiong332/xmail,xmail-client/xmail,git-notes/git-notes,liuxiong332/xmail,xmail-client/xmail,xmail-client/xmail,git-notes/git-notes
a6f80950c9a9244fd00f5686dc53ba0a2ef2eab0
resources/assets/coffee/_classes/turbolinks-disable.coffee
resources/assets/coffee/_classes/turbolinks-disable.coffee
### # Copyright 2015-2017 ppy Pty. Ltd. # # This file is part of osu!web. osu!web is distributed with the hope of # attracting more community contributions to the core ecosystem of osu!. # # osu!web is free software: you can redistribute it and/or modify # it under the terms of the Affero GNU General Pub...
### # Copyright 2015-2017 ppy Pty. Ltd. # # This file is part of osu!web. osu!web is distributed with the hope of # attracting more community contributions to the core ecosystem of osu!. # # osu!web is free software: you can redistribute it and/or modify # it under the terms of the Affero GNU General Pub...
Add more prefix to turblinks
Add more prefix to turblinks
CoffeeScript
agpl-3.0
Nekonyx/osu-web,nanaya/osu-web,LiquidPL/osu-web,comentarinformal/osu-web,nanaya/osu-web,kj415j45/osu-web,Kuron-kun/osu-web,Nekonyx/osu-web,comentarinformal/osu-web,comentarinformal/osu-web,comentarinformal/osu-web,ppy/osu-web,Nekonyx/osu-web,ppy/osu-web,ppy/osu-web,nanaya/osu-web,ppy/osu-web,LiquidPL/osu-web,ppy/osu-we...
19a71bfa08d8f143004a557b4bd19799d8c304ec
Gruntfile.coffee
Gruntfile.coffee
module.exports = (grunt) -> grunt.initConfig pkg: grunt.file.readJSON('package.json') coffee: glob_to_multiple: expand: true cwd: 'src' src: ['**/*.coffee'] dest: 'lib' ext: '.js' coffeelint: options: no_empty_param_list: level: 'erro...
module.exports = (grunt) -> grunt.initConfig pkg: grunt.file.readJSON('package.json') coffee: glob_to_multiple: expand: true cwd: 'src' src: ['**/*.coffee'] dest: 'lib' ext: '.js' coffeelint: options: no_empty_param_list: level: 'erro...
Use --force to enable tests on Node 0.1 through 10
Use --force to enable tests on Node 0.1 through 10
CoffeeScript
mit
atom/legal-eagle
7fe23f2300046194b6ffa5d6a7ece92628be59cd
app/routes/explore.coffee
app/routes/explore.coffee
express = require 'express' xmler = require 'node-xmler' router = express.Router() # GET: /explore router.get '/', (req, res) -> # TODO: Show latest letters res.render 'explore/index', title: req.config.title # GET: /explore/search router.get '/search', (req, res) -> client = req.baseXClient query = ...
express = require 'express' xmler = require 'node-xmler' router = express.Router() # GET: /explore router.get '/', (req, res) -> # TODO: Show latest letters res.render 'explore/index', title: req.config.title # GET: /explore/search router.get '/search', (req, res) -> client = req.baseXClient query = ...
Update search query to check if contains string
Update search query to check if contains string This overrides the original search method which required an exact match to show results. The new contains approach will return any title that contains the query string.
CoffeeScript
mit
nerdenough/swen303-letterdb
267c75cfe23617316bcf5ecee257bcb94ae8851b
app/talk/lib/roles.coffee
app/talk/lib/roles.coffee
module.exports = [ # Role | Can access: "admin" # admin, moderator, ream, all "moderator" # moderator, team, all "team" # team, all "all" # all * ]
module.exports = [ # Role | Can access: "admin" # admin, moderator, team, translator, all "moderator" # moderator, team, translator, all "team" # team, translator, all "translator" # translator, all "all" # all * ]
Add translator as a Talk role
Add translator as a Talk role
CoffeeScript
apache-2.0
zooniverse/Panoptes-Front-End
bb78e142b47b62c9d3771b0704e97351432db632
js-library/app/js/jail_iframe/classes/proxy_message.coffee
js-library/app/js/jail_iframe/classes/proxy_message.coffee
FactlinkJailRoot.showProxyMessage = -> content = """ <div class="proxy-message"> <strong>Factlink Browser</strong> <ul> <li>Get the <a target="_blank" href="https://factlink.com">extension</a> to add discussions on every site</li> <li>Or <a target="_blank" href="https://factlink.com/p/...
FactlinkJailRoot.showProxyMessage = -> content = """ <div class="proxy-message"> <strong>Factlink Browser</strong> <ul> <li>Get the <a target="_blank" href="https://factlink.com">extension</a> to add discussions on every site</li> <li>Or <a target="_blank" href="https://factlink.com/p/...
Use position: absolute instead of relative for better positioning
Use position: absolute instead of relative for better positioning @martijn?
CoffeeScript
mit
daukantas/factlink-core,Factlink/factlink-core,daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core,Factlink/factlink-core,daukantas/factlink-core
7d75e40b58b30e8f0e83130a137c244f93badc0d
test/crc.spec.coffee
test/crc.spec.coffee
require './test_helpers' crc = require('../src') describe 'CRC', -> it 'should have a shortcut hexdigest', -> string = '1234567890' expected = '0d' crc.crc1(string).should.equal expected
require './test_helpers' crc = require('../src') describe 'CRC', -> it 'should have a shortcut hexdigest', -> string = '1234567890' expected = '0d' crc.crc1(string).should.equal expected it 'buffer as parameter is also support', -> buffer = new Buffer '1234567890' expected = '0d' crc.crc1...
Add a test for buffer as parameter
Add a test for buffer as parameter
CoffeeScript
mit
alexgorbatchev/node-crc,IvanSanchez/node-crc,alexgorbatchev/node-crc,IvanSanchez/node-crc,alexgorbatchev/node-crc,albertjleo/node-crc,IvanSanchez/node-crc,IvanSanchez/node-crc,alexgorbatchev/node-crc,albertjleo/node-crc,alexgorbatchev/node-crc,albertjleo/node-crc
3fe8b594a268e95c33ecc7eee8f1e36e5d47a7fc
src/desktop/components/split_test/running_tests.coffee
src/desktop/components/split_test/running_tests.coffee
# Centralizes configuration for currently running split tests # # eg. # header_design: # key: 'header_design' # outcomes: # old: 8 # new: 2 # # Or, `outcomes` can be an array, when you specify `weighting: 'equal'. # weighting: 'equal' # outcomes: [ # 'old' # 'new' # ] # edge: 'new' # dimen...
# Centralizes configuration for currently running split tests # # eg. # header_design: # key: 'header_design' # outcomes: # old: 8 # new: 2 # # Or, `outcomes` can be an array, when you specify `weighting: 'equal'. # weighting: 'equal' # outcomes: [ # 'old' # 'new' # ] # edge: 'new' # dimen...
Add AB test for Artist Insights V2
Add AB test for Artist Insights V2 Add A/B test with `v1` (control), `v2_before_bio` (experiment, and `v2_after_bio` (experiment) variations. The value is passed through to the Artist App in artsy/reaction which will switch between the different variations.
CoffeeScript
mit
izakp/force,erikdstock/force,eessex/force,artsy/force-public,izakp/force,damassi/force,anandaroop/force,mzikherman/force,artsy/force,mzikherman/force,oxaudo/force,artsy/force,damassi/force,eessex/force,mzikherman/force,joeyAghion/force,xtina-starr/force,anandaroop/force,joeyAghion/force,erikdstock/force,anandaroop/forc...
ad946ea482809be8849e20e23f320cc205f998bc
src/packages/collaboration/lib/participant-view.coffee
src/packages/collaboration/lib/participant-view.coffee
crypto = require 'crypto' {View} = require 'space-pen' module.exports = class ParticipantView extends View @content: -> @div class: 'collaboration-participant overlay floating large', => @video autoplay: true, outlet: 'video' @div class: 'volume-container', outlet: 'volumeContainer', => @div cl...
crypto = require 'crypto' {View} = require 'space-pen' module.exports = class ParticipantView extends View @content: -> @div class: 'collaboration-participant overlay floating large', => @video autoplay: true, outlet: 'video' @div class: 'volume-container', outlet: 'volumeContainer', => @div cl...
Add email title to user. Could be a proper tooltip?
Add email title to user. Could be a proper tooltip?
CoffeeScript
mit
rsvip/aTom,hharchani/atom,001szymon/atom,vinodpanicker/atom,burodepeper/atom,isghe/atom,yamhon/atom,bcoe/atom,ObviouslyGreen/atom,ReddTea/atom,qiujuer/atom,mostafaeweda/atom,daxlab/atom,atom/atom,dkfiresky/atom,harshdattani/atom,omarhuanca/atom,rmartin/atom,crazyquark/atom,Arcanemagus/atom,constanzaurzua/atom,Austen-G/...
83f1e862db00bccbba11020ce3a83a17c64085a0
angular/core/components/user_avatar/user_avatar.coffee
angular/core/components/user_avatar/user_avatar.coffee
angular.module('loomioApp').directive 'userAvatar', ($window) -> scope: {user: '=', coordinator: '=?', size: '@?'} restrict: 'E' templateUrl: 'generated/components/user_avatar/user_avatar.html' replace: true controller: ($scope) -> unless _.contains(['small', 'medium', 'medium-circular', 'large', 'large-c...
angular.module('loomioApp').directive 'userAvatar', ($window) -> scope: {user: '=', coordinator: '=?', size: '@?'} restrict: 'E' templateUrl: 'generated/components/user_avatar/user_avatar.html' replace: true controller: ($scope) -> unless _.contains(['small', 'medium', 'medium-circular', 'large', 'large-c...
Return avatarUrl directly if it's a string
Return avatarUrl directly if it's a string
CoffeeScript
agpl-3.0
loomio/loomio,loomio/loomio,piratas-ar/loomio,loomio/loomio,loomio/loomio,piratas-ar/loomio,piratas-ar/loomio,piratas-ar/loomio
c2a6e71ced136c45556ecbe12dfb1f34ad234bed
src/jasmine-focused.coffee
src/jasmine-focused.coffee
setGlobalFocusPriority = (priority) -> env = jasmine.getEnv() env.focusPriority = 1 unless env.focusPriority env.focusPriority = priority if priority > env.focusPriority focusMethods = fdescribe: (description, specDefinitions, priority=1) -> setGlobalFocusPriority(priority) suite = describe(description...
setGlobalFocusPriority = (priority) -> env = jasmine.getEnv() env.focusPriority = 1 unless env.focusPriority env.focusPriority = priority if priority > env.focusPriority focusMethods = fdescribe: (description, specDefinitions, priority=1) -> setGlobalFocusPriority(priority) suite = describe(description...
Use not instead of ! for consistency
Use not instead of ! for consistency
CoffeeScript
mit
atom/jasmine-focused
cf36db42a88293e80a99950fb6b237605141a7be
lib/archive-editor.coffee
lib/archive-editor.coffee
path = require 'path' {allowUnsafeNewFunction} = require 'loophole' archive = allowUnsafeNewFunction -> require 'ls-archive' {File} = require 'pathwatcher' fs = require 'fs-plus' Serializable = require 'serializable' module.exports= class ArchiveEditor extends Serializable atom.deserializers.add(this) @activate:...
path = require 'path' {allowUnsafeNewFunction} = require 'loophole' archive = allowUnsafeNewFunction -> require 'ls-archive' {File} = require 'pathwatcher' fs = require 'fs-plus' Serializable = require 'serializable' module.exports= class ArchiveEditor extends Serializable atom.deserializers.add(this) @activate:...
Call addOpener instead of registerOpener
Call addOpener instead of registerOpener
CoffeeScript
mit
atom/archive-view
359b244c21dca363ae42abd1c9c3b11d57724f76
t9n.coffee
t9n.coffee
if Meteor.isClient if Package.ui Handlebars = Package.ui.Handlebars Handlebars.registerHelper 't9n', (x, prefix='') -> T9n.get(x, prefix) class T9n @get: (x, prefix='') -> _get(x, prefix) @map: (language, map) -> if not i18n._maps[language] i18n._maps[language] = {} _extend(i18n._m...
if Meteor.isClient if Package.ui Handlebars = Package.ui.Handlebars Handlebars.registerHelper 't9n', (x, prefix='') -> T9n.get(x, prefix) class T9n @get: (x, prefix='') -> _get(x, prefix) @map: (language, map) -> if not i18n._maps[language] i18n._maps[language] = {} _extend(i18n._m...
Comment out line that breaks app
Comment out line that breaks app
CoffeeScript
mit
Differential/meteor-accounts-t9n
b54172d0656eab6911e1d02636713f4710ef0a72
app/assets/javascripts/species/routes/search_route.js.coffee
app/assets/javascripts/species/routes/search_route.js.coffee
Species.SearchRoute = Ember.Route.extend serialize: (model) -> {params: '?' + $.param(model)} model: (params) -> geoEntitiesController = @controllerFor('geoEntities') geoEntitiesController.set('content', Species.GeoEntity.find()) # what follows here is the deserialisation of params # this hook...
Species.SearchRoute = Ember.Route.extend serialize: (model) -> {params: $.param(model)} model: (params) -> geoEntitiesController = @controllerFor('geoEntities') geoEntitiesController.set('content', Species.GeoEntity.find()) # what follows here is the deserialisation of params # this hook is ex...
Remove the ? from the URL params, as this was preventing reload of a page.
Remove the ? from the URL params, as this was preventing reload of a page.
CoffeeScript
bsd-3-clause
unepwcmc/SAPI,unepwcmc/SAPI,unepwcmc/SAPI,unepwcmc/SAPI
6585b24723b383896c4298b38671c792f3cbc24b
tests/HelpersTest.coffee
tests/HelpersTest.coffee
describe "Munit.spies", -> it "should exist", -> expect(Munit.spies).to.be.an 'object' expect(Munit.spies.restoreAll).to.be.a 'function' describe "Munit.stubs", -> it "should exist", -> expect(Munit.stubs).to.be.an 'object' expect(Munit.stubs.restoreAll).to.be.a 'function'
describe "Munit.spies", -> it "should exist", -> expect(Munit.spies).to.be.an 'object' expect(Munit.spies.restoreAll).to.be.a 'function' describe "Munit.stubs", -> it "should exist", -> expect(Munit.stubs).to.be.an 'object' expect(Munit.stubs.restoreAll).to.be.a 'function' describe "Munit.wrap",...
Add tests for new Munit.wrap helper
Add tests for new Munit.wrap helper
CoffeeScript
mit
awatson1978/clinical-verification,practicalmeteor/meteor-munit
ec778ebe9c2ce099e85d5e8b0ecb8e005ae66098
menus/git.cson
menus/git.cson
'menu': [ { 'label': 'View' 'submenu': [ { 'label': 'Toggle Git Panel' 'command': 'github:toggle-git-panel' } ] } { 'label': 'Packages' 'submenu': [ { 'label': 'GitHub', 'submenu': [ { 'label': 'Toggle' 'comman...
'menu': [ { 'label': 'View' 'submenu': [ { 'label': 'Toggle Git Panel' 'command': 'github:toggle-git-panel' } ] } { 'label': 'Packages' 'submenu': [ { 'label': 'GitHub', 'submenu': [ { 'label': 'Toggle' 'comman...
Add context menu in FilePatchView for opening file in editor
Add context menu in FilePatchView for opening file in editor
CoffeeScript
mit
atom/github,atom/github,atom/github
7069cae39e5619276e598b76bdd3b27cc556650b
app/assets/javascripts/components/inline_edit_text.js.coffee
app/assets/javascripts/components/inline_edit_text.js.coffee
ETahi.InlineEditTextComponent = Em.Component.extend editing: false hasNoContent: (-> Em.isEmpty(@get('bodyPart.value')) ).property('bodyPart.value') focusOnEdit: (-> if @get('editing') Em.run.schedule 'afterRender', @, -> @$('textarea').focus() ).observes('editing') actions: togg...
ETahi.InlineEditTextComponent = Em.Component.extend editing: false isNew: false hasNoContent: (-> Em.isEmpty(@get('bodyPart.value')) ).property('bodyPart.value') focusOnEdit: (-> if @get('editing') Em.run.schedule 'afterRender', @, -> @$('textarea').focus() ).observes('editing') a...
Set isNew to illustrate possible attribute assignments
Set isNew to illustrate possible attribute assignments
CoffeeScript
mit
johan--/tahi,johan--/tahi,johan--/tahi,johan--/tahi
6e3ca3f90f591f3e9c2cfb4827b67f2e7bca59ab
app/assets/javascripts/darkswarm/services/geo.js.coffee
app/assets/javascripts/darkswarm/services/geo.js.coffee
Darkswarm.service "Geo", -> new class Geo OK: google.maps.GeocoderStatus.OK # Usage: # Geo.geocode address, (results, status) -> # if status == Geo.OK # console.log results[0].geometry.location # else # console.log "Error: #{status}" geocode: (address, callback) -> g...
Darkswarm.service "Geo", -> new class Geo OK: google.maps.GeocoderStatus.OK # Usage: # Geo.geocode address, (results, status) -> # if status == Geo.OK # console.log results[0].geometry.location # else # console.log "Error: #{status}" geocode: (address, callback) -> g...
Make Geo.distanceBetween take either a LatLng or a locatable at either parameter
Make Geo.distanceBetween take either a LatLng or a locatable at either parameter
CoffeeScript
agpl-3.0
openfoodfoundation/openfoodnetwork,KosenkoDmitriy/openfoodnetwork,KateDavis/openfoodnetwork,openfoodfoundation/openfoodnetwork,MikeiLL/openfoodnetwork,Matt-Yorkley/openfoodnetwork,oeoeaio/openfoodnetwork,mkllnk/openfoodnetwork,Matt-Yorkley/openfoodnetwork,Em-AK/openfoodnetwork,lin-d-hop/openfoodnetwork,KateDavis/openfo...
2a1174796f62df82b776c8171e91ed245f0da6ef
keymaps/stata-dyndoc.cson
keymaps/stata-dyndoc.cson
'.platform-darwin atom-text-editor[data-grammar="source dyndoc md stata"]': 'cmd-shift-x': 'markdown:toggle-task' '.platform-win32 atom-text-editor[data-grammar="source dyndoc md stata"]': 'ctrl-shift-x': 'markdown:toggle-task' '.platform-linux atom-text-editor[data-grammar="source dyndoc md stata"]': 'ctrl-shift...
'.platform-darwin atom-text-editor[data-grammar="source dyndoc md stata"]': 'cmd-shift-x': 'markdown:toggle-task' '.platform-win32 atom-text-editor[data-grammar="source dyndoc md stata"]': 'ctrl-shift-x': 'markdown:toggle-task' '.platform-linux atom-text-editor[data-grammar="source dyndoc md stata"]': 'ctrl-shift...
Add Markdown keymaps for webdoc
Add Markdown keymaps for webdoc
CoffeeScript
mit
kylebarron/language-stata
e1d968721744b4b2441f9976b95fadce86a52739
app/assets/javascripts/species/views/search_form/taxon_concept_search_text_field.js.coffee
app/assets/javascripts/species/views/search_form/taxon_concept_search_text_field.js.coffee
Species.TaxonConceptSearchTextField = Em.TextField.extend value: '' currentTimeout: null attributeBindings: ['autocomplete'] focusOut: (event) -> @.$().attr('placeholder', @get('placeholder')) @hideDropdown() if !@get('parentView.mousedOver') keyUp: (event) -> Ember.run.cancel(@currentTimeout) ...
Species.TaxonConceptSearchTextField = Em.TextField.extend value: '' currentTimeout: null attributeBindings: ['autocomplete'] focusOut: (event) -> @.$().attr('placeholder', @get('placeholder')) @hideDropdown() if !@get('parentView.mousedOver') keyUp: (event) -> Ember.run.cancel(@currentTimeout) ...
Hide suggestions dropdown if the keyUp is Enter
Hide suggestions dropdown if the keyUp is Enter
CoffeeScript
bsd-3-clause
unepwcmc/SAPI,unepwcmc/SAPI,unepwcmc/SAPI,unepwcmc/SAPI
ae0aefa464922a9f9c1a7dba11c638bb724f7c4d
widgets/lecturelist/lecturelist.coffee
widgets/lecturelist/lecturelist.coffee
class Dashing.Lecturelist extends Dashing.Widget ready: -> @currentIndex = 0 @items = $(@node).find('li') @nextItem() @startCarousel() onData: (data) -> @currentIndex = 0 i = 0 if data.items.length == 0 @set 'empty', true while i < data.items.length capacity = data.it...
class Dashing.Lecturelist extends Dashing.Widget ready: -> @currentIndex = 0 @items = $(@node).find('li') @items.hide() @nextItem() @startCarousel() onData: (data) -> @currentIndex = 0 i = 0 if data.items.length == 0 @set 'empty', true startCarousel: -> setInterval...
Hide all the items on `ready`
Hide all the items on `ready` When I tried to do this client side batman.js didn't populate anything that was hidden
CoffeeScript
mit
theodi/dashboards,theodi/dashboards,theodi/dashboards
a3ffad2a5da6166775d85056ebaa4279b21e6a8e
virtual-file-system/message-strategies/custom-command.coffee
virtual-file-system/message-strategies/custom-command.coffee
shell = require 'shell' module.exports = customCommand = (virtualFileSystem, {payload}) -> payload = JSON.parse(payload) switch payload.command when 'browser_open' shell.openExternal(payload.url) when 'learn_submit' # open atom browser window else console.log 'Unhandled custom comman...
shell = require 'shell' commandStrategies = { browser_open: ({url}) -> shell.openExternal(url) atom_open: ({path}, virtualFileSystem) -> # node = virtualFileSystem.getNode(path) # open node.localPath() learn_submit: ({url}) -> # open BrowserWindow to url } module.exports = customCommand = (vir...
Handle custom commands with strategies
Handle custom commands with strategies
CoffeeScript
mit
learn-co/learn-ide-tree
6a0e67b2706a1086b7773d03e658100ae268c817
aggregator/aggregator.coffee
aggregator/aggregator.coffee
dotenv = require 'dotenv' amqp = require 'amqp' MongoClient = require('mongodb').MongoClient dotenv.load() if !process.env.AMQP_URL or process.env.AMQP_URL.length < 1 console.error "Missing required environment variable AMQP_URL!" process.exit 1 if !process.env.AMQP_QUEUE_NAME or process.env.AMQP_QUEUE_NAME.length...
dotenv = require 'dotenv' amqp = require 'amqp' MongoClient = require('mongodb').MongoClient dotenv.load() if !process.env.AMQP_URL or process.env.AMQP_URL.length < 1 console.error "Missing required environment variable AMQP_URL!" process.exit 1 if !process.env.AMQP_QUEUE_NAME or process.env.AMQP_QUEUE_NAME.length...
Update minified_event structure to match frontend
Update minified_event structure to match frontend
CoffeeScript
mit
Koronen/moddb14-proj,Koronen/moddb14-proj,Koronen/moddb14-proj
bcdcf1f7130623612fe26facedf87d880194c7e5
project.coffee
project.coffee
Pinpoint = require './pinpoint' t7e = require 't7e' enUs = require './en-us' t7e.load enUs translate = t7e module.exports = id: 'penguin' producer: translate 'div', 'producer' title: translate 'div', 'title' summary: translate 'div', 'summary' description: translate 'div', 'description' background: 'pen...
Pinpoint = require './pinpoint' t7e = require 't7e' enUs = require './en-us' t7e.load enUs translate = t7e module.exports = id: 'penguin' producer: translate 'div', 'producer' title: translate 'div', 'title' summary: translate 'div', 'summary' description: translate 'div', 'description' background: 'pen...
Update drawing tools to match readymade
Update drawing tools to match readymade
CoffeeScript
apache-2.0
camallen/Penguins,zooniverse/penguin-watch-fb,zooniverse/penguin-watch-fb,zooniverse/Penguins,anselmbradford/Penguins
2ab9e7c626fd9149b7197e0e257b7f29195b6006
app/assets/javascripts/application/pods_progress_bar.js.coffee
app/assets/javascripts/application/pods_progress_bar.js.coffee
#= require nanobar.js class @PodsProgressBar update: (factor) -> progress = factor * 100 @nanobar.go(progress) start: -> @nanobar = new Nanobar target: $('.progress-container').get(0) id: 'pods-progress'
#= require nanobar.js class @PodsProgressBar update: (factor) -> progress = factor * 100 @nanobar.go(progress) start: -> $container = $('.progress-container').empty() @nanobar = new Nanobar target: $container.get(0) id: 'pods-progress'
Reset progress bar before start.
Reset progress bar before start.
CoffeeScript
mit
bsingr/cocoa-tree,bsingr/cocoa-tree,bsingr/cocoa-tree
e8260df55c4e4a80179dc7275da957fb0a5e5f1f
spec/collector-spec.coffee
spec/collector-spec.coffee
_ = require 'underscore' Collector = require '../lib/collector' describe "Collector", -> subject = null beforeEach -> subject = new Collector describe "getData", -> beforeEach -> it "creates a request with the proper options", -> keys = _.keys(subject.getData()) expect(keys).toContain '...
_ = require 'underscore' Collector = require '../lib/collector' describe "Collector", -> subject = null beforeEach -> subject = new Collector describe "getData", -> it "creates a request with the proper options", -> keys = _.keys(subject.getData()) expect(keys).toContain 'user_agent' e...
Remove unnecessary beforeEach from tests
Remove unnecessary beforeEach from tests
CoffeeScript
mit
atom/metrics
0bb2147542fdb52aeba4f7b71cb132423ef3e4d2
app/static/script/app.coffee
app/static/script/app.coffee
'use strict' $(document).foundation() angular .module('app', [ 'ngAnimate', # 'ngAria', 'ngCookies', 'ngMessages', 'ngResource', 'ngRoute', 'ngSanitize', # 'ngTouch', 'angular-growl', 'angularSpinner', ]) .config [ '$routeProvider', '$httpProvider', '$logProvi...
'use strict' $(document).foundation() angular .module('app', [ 'ngAnimate', # 'ngAria', 'ngCookies', 'ngMessages', 'ngResource', 'ngRoute', 'ngSanitize', # 'ngTouch', 'angular-growl', 'angularSpinner', ]) .config [ '$routeProvider', '$httpProvider', '$logProvi...
Fix problem with template path
Fix problem with template path
CoffeeScript
mit
peterhil/ninhursag,peterhil/ninhursag,peterhil/ninhursag,peterhil/ninhursag
77cfbd74d8fa5b9523876942ef8f1a8ae20d3047
components/tips/view.coffee
components/tips/view.coffee
Backbone = require 'backbone' Cookies = require 'cookies-js' analytics = require '../../lib/analytics.coffee' Promise = require 'bluebird-q' module.exports = class TipView extends Backbone.View events: 'click': 'onClick' 'click .js-close' : 'close' initialize: ({ @user }) -> # onClick: (e) -> e.pre...
Backbone = require 'backbone' Dismisser = require '../has_seen/dismisser.coffee' analytics = require '../../lib/analytics.coffee' Promise = require 'bluebird-q' module.exports = class TipView extends Backbone.View events: 'click': 'onClick' 'click .js-close' : 'close' initialize: ({ @user }) -> @dismi...
Use dismisser instead of cookies lib for onboarding tips
Use dismisser instead of cookies lib for onboarding tips
CoffeeScript
mit
aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell
f81808b7fb12db7bb7a8a72d1b502576766c35ff
app/assets/javascripts/farmbot_app/factories/socket.js.coffee
app/assets/javascripts/farmbot_app/factories/socket.js.coffee
socket = io.connect 'ws://45.55.200.178' angular.module("FarmBot").factory 'socket', ($rootScope) -> on: (eventName, callback) -> socket.on eventName, -> args = arguments $rootScope.$apply -> callback.apply socket, args emit: (eventName, data, callback) -> socket.emit eventName, data, -> ...
socket = io.connect 'ws://mesh.farmbot.it' angular.module("FarmBot").factory 'socket', ($rootScope) -> on: (eventName, callback) -> socket.on eventName, -> args = arguments $rootScope.$apply -> callback.apply socket, args emit: (eventName, data, callback) -> socket.emit eventName, data, -> ...
Change URL of mesh server again
Change URL of mesh server again
CoffeeScript
mit
FarmBot/Farmbot-Web-API,donnydevito/farmbot-web-app,gabrielburnworth/Farmbot-Web-App,FarmBot/Farmbot-Web-API,RickCarlino/farmbot-web-app,gabrielburnworth/Farmbot-Web-App,RickCarlino/farmbot-web-app,FarmBot/Farmbot-Web-API,FarmBot/farmbot-web-app,FarmBot/Farmbot-Web-API,yuvilio/farmbot-web-app,gabrielburnworth/Farmbot-W...
0705a4185ec6d8dc808593b66f89503a72ed0305
lib/upnp.coffee
lib/upnp.coffee
devices = MediaServer: require "./devices/MediaServer" upnp = createDevice: (name, type) -> new devices[type](name) module.exports = upnp
# Currently implemented devices deviceList = [ 'MediaServer' ] devices = {} for deviceType in deviceList # device classes are in devices/<DeviceType>.coffee devices[deviceType] = require "./devices/#{deviceType}" exports.createDevice = (name, type) -> if not type in deviceList return new Error "UP...
Add some basic error handling when creating devices
Add some basic error handling when creating devices
CoffeeScript
mit
bcaller/node-upnp-device,sigma-random/node-upnp-device,Loghorn/node-upnp-device,jacobrask/node-upnp-device
64a712928f77865cae35c9d614e4c2ee29b045b1
app/assets/javascripts/ui_components/sticky_header.coffee
app/assets/javascripts/ui_components/sticky_header.coffee
$(document).on 'uic:domchange', -> margin_top = $('.navbar-fixed-top, .navbar-static-top').height() $('table[data-toggle=sticky-header]').floatThead useAbsolutePositioning: false scrollingTop: margin_top
setFloatThead = -> margin_top = $('.navbar-fixed-top, .navbar-static-top').height() $('table[data-toggle=sticky-header]').floatThead useAbsolutePositioning: false scrollingTop: margin_top # workaround for race condition between chosen and floatThead $(document).on 'uic:domchange', -> window.setTimeout se...
Add a workaround for a race condition between chosen and floatThead
Add a workaround for a race condition between chosen and floatThead
CoffeeScript
mit
ad2games/ui_components,ad2games/ui_components,ad2games/ui_components
07eb6f306f21f9c7d192dd93f0e4ad3a111102e9
config.cson
config.cson
"*": Zen: softWrap: false width: 160 core: disabledPackages: [ "notebook" "language-gfm" "wrap-guide" ] telemetryConsent: "limited" themes: [ "one-dark-ui" "zenburn-theme" ] "default-language": defaultLanguage: "Pandoc markdown" editor: fontSize:...
"*": Zen: softWrap: false width: 160 core: disabledPackages: [ "notebook" "language-gfm" "wrap-guide" ] telemetryConsent: "limited" themes: [ "atom-dark-ui" "atom-dark-syntax" ] "default-language": defaultLanguage: "Pandoc markdown" editor: fontS...
Set Atom Dark as the default theme
Set Atom Dark as the default theme
CoffeeScript
mit
fabiofortkamp/thermo-atom
de2892b9a782e7051c963d08a44a36e530d98d6e
app/assets/javascripts/admin/views/notifications/index.js.coffee
app/assets/javascripts/admin/views/notifications/index.js.coffee
Augury.Views.Notifications.Index = Backbone.View.extend( initialize: -> _.bindAll @, 'renderTable' Augury.notifications.bind 'reset', @renderTable events: 'click button[type=submit]': 'search' render: -> @$el.html JST["admin/templates/notifications/index"]() @$el.find('#filter-reference-type...
Augury.Views.Notifications.Index = Backbone.View.extend( initialize: -> _.bindAll @, 'renderTable' Augury.notifications.bind 'reset', @renderTable events: 'click button[type=submit]': 'search' render: -> @$el.html JST["admin/templates/notifications/index"]() @$el.find('#filter-reference-type...
Fix issues expanding notifications' table rows
Fix issues expanding notifications' table rows
CoffeeScript
bsd-3-clause
spree/spree_hub_connector,spree/spree_hub_connector
85938221a5475b6eab143a65d26dcd5a37882b49
servers/embed/index.coffee
servers/embed/index.coffee
coffee = require("coffee-script") less = require("less") jade = require("jade") express = require("express") gzippo = require("gzippo") assets = require("connect-assets") nconf = require("nconf") request = require("request") module.exports = app = express.createServer() apiUrl = nconf.get("url:api") #...
coffee = require("coffee-script") less = require("less") jade = require("jade") express = require("express") gzippo = require("gzippo") assets = require("connect-assets") nconf = require("nconf") request = require("request") module.exports = app = express() apiUrl = nconf.get("url:api") ###s # Config...
Revert "Express server creating in 2.x.x fixed"
Revert "Express server creating in 2.x.x fixed" This reverts commit aae0326fb4fc5dc0d76a4e5901d05ccd893fb462.
CoffeeScript
mit
filearts/plunker,wakashige/plunker,quinnlin/plunker,wakashige/plunker,filearts/plunker,quinnlin/plunker
c3485747d9c495a788c7c1405bcfab9be97d60d1
src/app/config/root-controller/root-controller.coffee
src/app/config/root-controller/root-controller.coffee
angular.module('doubtfire.config.root-controller', []) # # The Doubtfire root application controller # .controller("AppCtrl", ($rootScope, $state, $document, $filter, ExternalName) -> # Automatically localise page titles # TODO: (@alexcu) consider putting this in a directive? suffix = $document.prop "title" s...
angular.module('doubtfire.config.root-controller', []) # # The Doubtfire root application controller # .controller("AppCtrl", ($rootScope, $state, $document, $filter, ExternalName, TeachingPeriod) -> # Automatically localise page titles # TODO: (@alexcu) consider putting this in a directive? suffix = $document....
Load teaching periods in root controller
ENHANCE: Load teaching periods in root controller
CoffeeScript
agpl-3.0
doubtfire-lms/doubtfire-web,doubtfire-lms/doubtfire-web,doubtfire-lms/doubtfire-web,doubtfire-lms/doubtfire-web
1df17e3c983b3939aae28387bc84a713c36bcf84
gulpfile.coffee
gulpfile.coffee
gulp = require 'gulp' coffee = require 'gulp-coffee' browserify = require 'browserify' runSequence = require 'run-sequence' source = require 'vinyl-source-stream' del = require 'del' closureCompiler = require 'gulp-closure-compiler' gulp.task 'coffee', -> gulp.src('*.coffee') .pipe(coffee()) .pipe(gulp.dest(...
gulp = require 'gulp' coffee = require 'gulp-coffee' browserify = require 'browserify' runSequence = require 'run-sequence' source = require 'vinyl-source-stream' del = require 'del' closureCompiler = require 'gulp-closure-compiler' gulp.task 'coffee', -> gulp.src('*.coffee') .pipe(coffee()) .pipe(gulp.dest(...
Change watch task to default
Change watch task to default
CoffeeScript
mit
archiveds/vibrant.js,mcanthony/vibrant.js,jariz/vibrant.js,phuson/node-vibrant,ezeql/vibrant.js,modulexcite/vibrant.js,vmagro/node-vibrant,modulexcite/vibrant.js,ezeql/vibrant.js,pbrandt1/node-vibrant,wilsaj/vibrant.js,wilsaj/vibrant.js,archiveds/vibrant.js,pbrandt1/node-vibrant,mubassirhayat/vibrant.js,phuson/node-vib...
74c83a64fcd77044e3e9fc1ae010d7f6c2bbb6bc
indexer.coffee
indexer.coffee
fs = require 'fs' child_process = require 'child_process' module.exports = Indexer = getCondaPackages: () -> output = child_process.execSync ' conda search ".*" --names-only ' names = output.toString().split('\n').slice(1) names.map (name) -> {name: name, description: null} getPipPackages: () -> output ...
fs = require 'fs' child_process = require 'child_process' module.exports = Indexer = getCondaPackages: () -> output = child_process.execSync ' conda search ".*" --names-only ' names = output.toString().split('\n').slice(1) names.map (name) -> {name: name, description: null, command: "conda install #{name}"}...
Add command to each item.
Add command to each item.
CoffeeScript
agpl-3.0
sharelatex/package-indexer-sharelatex
2ca689c981da04906cf9194fe1d72c7073ddbdbc
app/assets/javascripts/sprangular/directives/addressForm.coffee
app/assets/javascripts/sprangular/directives/addressForm.coffee
Sprangular.directive 'addressForm', -> restrict: 'E' templateUrl: 'addresses/form.html' scope: address: '=' countries: '=' controller: ($scope) -> $scope.selectedCountry = null $scope.$watch (-> $scope.address.countryId), (newCountryId) -> return unless newCountryId $scope.selectedC...
Sprangular.directive 'addressForm', -> restrict: 'E' templateUrl: 'addresses/form.html' scope: address: '=' countries: '=' controller: ($scope) -> $scope.selectedCountry = null $scope.$watch (-> $scope.address.countryId), (newCountryId) -> return unless newCountryId address = $scop...
Update address state when countryId changes
Update address state when countryId changes
CoffeeScript
mit
sprangular/sprangular,sprangular/sprangular,sprangular/sprangular
1fec9c8bbc43b3e6e0e6c3bb70a7bf22f78e766a
src/glue.coffee
src/glue.coffee
camelCase = (s) -> (-> console.log 'foo' )() isString = (obj) -> obj.constructor == String isjQuery = (obj) -> obj.constructor == jQuery createTemplate = (tmpl) -> tmpl = tmpl.html() if isjQuery tmpl div = document.createElement 'div' div.innerHTML = tmpl jQuery div findData...
isString = (obj) -> obj.constructor == String isjQuery = (obj) -> obj.constructor == jQuery createTemplate = (tmpl) -> tmpl = tmpl.html() if isjQuery tmpl div = document.createElement 'div' div.innerHTML = tmpl jQuery div findDataAttr = (field, key) -> dataAttr = '' if field.dataset...
Revert "woot, now supporting attribute injection"
Revert "woot, now supporting attribute injection" This reverts commit 1d57e7c7a85593b6364d99e6d4a17c009243d1ba.
CoffeeScript
mit
aaronpowell/glue
42b9c6236bee8057797e32fdef369239c59eec0b
src/scripts/youtube.coffee
src/scripts/youtube.coffee
# Description: # Youtube Feeds # # Dependencies: # None # # Configuration: # None # ## Commands: # hubot yf add <username> # hubot yf remove <username> # hubot yf list # # Author: # Eluinhost module.exports = (robot) -> robot.respond /yf add (.*?)$/, (msg) -> # do stuff robot.respond /yf remove...
# Description: # Youtube Feeds # # Dependencies: # None # # Configuration: # None # ## Commands: # hubot yf add <username> # hubot yf remove <username> # hubot yf list # # Author: # Eluinhost module.exports = (robot) -> robot.respond /yf add (.*?)$/i, (msg) -> # do stuff robot.respond /yf remov...
Make regex checks case insensitive
fix(regex): Make regex checks case insensitive
CoffeeScript
mit
Insorum/hubot-youtube-feed
795523bf42d68218b27a43ad81a631d30604e512
menus/find-and-replace.cson
menus/find-and-replace.cson
'menu': [ 'label': 'Find' 'submenu': [ { 'label': 'Find in Buffer', 'command': 'find-and-replace:show'} { 'label': 'Replace in Buffer', 'command': 'find-and-replace:show-replace'} { 'type': 'separator' } { 'label': 'Find in Project', 'command': 'project-find:show'} { 'type': 'separator' } { ...
'menu': [ 'label': 'Find' 'submenu': [ { 'label': 'Find in Buffer', 'command': 'find-and-replace:show'} { 'label': 'Replace in Buffer', 'command': 'find-and-replace:show-replace'} { 'label': 'Select Next', 'command': 'find-and-replace:select-next'} { 'type': 'separator' } { 'label': 'Find in Pro...
Add select next menu item
Add select next menu item
CoffeeScript
mit
harai/find-and-replace,atom/find-and-replace,bmperrea/find-and-replace,trevdor/find-and-replace
9c32bf78c6cec67f64e61beaf5e62ad9949b1295
position.coffee
position.coffee
# BeamWars - A multiplayer in-browser remake of the Mac game of the same name # Copyright (C) 2013 Aaron Hill # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either vers...
# BeamWars - A multiplayer in-browser remake of the Mac game of the same name # Copyright (C) 2013 Aaron Hill # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either vers...
Use Fabric.js Point in Position class
Use Fabric.js Point in Position class
CoffeeScript
agpl-3.0
Aaron1011/beamwars
e4a6d0cd4306b656a6db99dd620b496545c02b7d
app/assets/javascripts/sprangular/services/orders.coffee
app/assets/javascripts/sprangular/services/orders.coffee
Sprangular.service "Orders", ($http) -> service = find: (number) -> $http.get("/api/orders/#{number}") .then (response) -> service._loadOrder(response.data) all: -> $http.get("/api/orders") .then (response) -> _.map response.data, (record) -> servi...
Sprangular.service "Orders", ($http) -> service = find: (number, token) -> config = headers: 'X-Spree-Order-Token': token $http.get("/api/orders/#{number}", config) .then (response) -> service._loadOrder(response.data) all: -> $http.get("/api/orders") ...
Update Orders.find to take optional token
Update Orders.find to take optional token
CoffeeScript
mit
sprangular/sprangular,sprangular/sprangular,sprangular/sprangular
b41f49e4a261de4452e9c0fec56badf10c48c0c6
app/assets/javascripts/application/models/user.js.coffee
app/assets/javascripts/application/models/user.js.coffee
class App.Models.User extends App.Model urlRoot: 'users', defaults: user_settings: { avatar: 'http://i.imgur.com/i31E9hh.jpg', username: '', website: '', email: '', interests: '', name: '', skills: '', github_handle: '', twitter_handle: '', linkedin_ha...
class App.Models.User extends App.Model urlRoot: 'users', defaults: user_settings: { avatar: 'http://i.imgur.com/i31E9hh.jpg', username: '', website: '', email: '', interests: '', name: '', skills: '', github_handle: '', twitter_handle: '', linkedin_ha...
Remove empty lines in user model.
Remove empty lines in user model.
CoffeeScript
mit
cbus-sea-lions-2015/DEVOLIO,cbus-sea-lions-2015/DEVOLIO,cbus-sea-lions-2015/DEVOLIO
c8cb65847c203f9aabf1a5e2652e98241578e2e3
app/assets/javascripts/backbone/water_backbone.js.coffee
app/assets/javascripts/backbone/water_backbone.js.coffee
#= require_self #= require_tree ./templates #= require_tree ./models #= require_tree ./views #= require_tree ./routers window.Water = Models: {} Collections: {} Routers: {} Views: {} $ -> fetcher = window.tree_fetcher = new Water.TreeFetcher(repository_path: gon.repository_path, ref: gon.ref) tree_view ...
#= require_self #= require_tree ./templates #= require_tree ./models #= require_tree ./views #= require_tree ./routers window.Water = Models: {} Collections: {} Routers: {} Views: {} $ -> fetcher = window.tree_fetcher = new Water.TreeFetcher(repository_path: gon.repository_path, ref: gon.ref) tree_view ...
Change name of breadcrumb_template in backbone index
Change name of breadcrumb_template in backbone index
CoffeeScript
agpl-3.0
water/mainline,water/mainline,water/mainline
52bfa45ddc69ded40e259e60d1384e14c4ca22b8
app/assets/javascripts/backbone/views/project_view.js.coffee
app/assets/javascripts/backbone/views/project_view.js.coffee
ProjectMonitor.Views ||= {} class ProjectMonitor.Views.ProjectView extends Backbone.View tagName: "li" className: "project" initialize: (options) -> @subviews = [] @subviews.push(new ProjectMonitor.Views.BuildView(model: @model.get("build"))) if @model.get("build") @subviews.push(new ProjectMonitor....
ProjectMonitor.Views ||= {} class ProjectMonitor.Views.ProjectView extends Backbone.View tagName: "li" className: "project" initialize: (options) -> @subviews = [] @subviews.push(new ProjectMonitor.Views.BuildView(model: @model.get("build"))) if @model.get("build") @subviews.push(new ProjectMonitor....
Append ProjectView subviews in 1 operation
Append ProjectView subviews in 1 operation
CoffeeScript
mit
BuildingSync/projectmonitor,pivotal/projectmonitor,BuildingSync/projectmonitor,BuildingSync/projectmonitor,remind101/projectmonitor,dgodd/projectmonitor,mabounassif/projectmonitor-docker,mabounassif/projectmonitor-docker,pivotal/projectmonitor,remind101/projectmonitor,dgodd/projectmonitor,BuildingSync/projectmonitor,ge...
a9539ead5751db36b3518adf41132348133cc00b
Gruntfile.coffee
Gruntfile.coffee
module.exports = (grunt) -> # Configuration. grunt.initConfig pkg: grunt.file.readJSON 'package.json' coffee: dist: expand: true, cwd: './avalonstar/assets/javascripts', src: ['*.coffee'], dest: './avalonstar/static/javascripts/application', ext: '.js' sas...
module.exports = (grunt) -> # Configuration. grunt.initConfig pkg: grunt.file.readJSON 'package.json' coffee: dist: expand: true, cwd: './avalonstar/assets/javascripts', src: ['*.coffee'], dest: './avalonstar/static/javascripts/application', ext: '.js' sas...
Remove livereload functionality for now.
Remove livereload functionality for now.
CoffeeScript
apache-2.0
bryanveloso/avalonstar-tv,bryanveloso/avalonstar-tv,bryanveloso/avalonstar-tv
b0715b807eb38ae0a87054c07d4903eb5c4b4d42
src/run.coffee
src/run.coffee
import cluster from 'cluster' import fs from 'fs' import path from 'path' import {tmpFile} from './utils' import watch from './watch' _watch = (dir) -> require('vigil').watch dir, (filename, stats, isModule) -> console.log "#{filename} changed, reloading" process.exit 0 export default run = (fn...
import cluster from 'cluster' import fs from 'fs' import path from 'path' import {tmpFile} from './utils' import watch from './watch' _watch = (dir) -> require('vigil').watch dir, (filename, stats, isModule) -> console.log "#{filename} changed, reloading" process.exit 0 export default run = (fn...
Use coffeescript instead of coffee-script
Use coffeescript instead of coffee-script
CoffeeScript
mit
zeekay/vigil
61959480c2a863bf33a0657b3b8d4481d6bf2269
app/assets/javascripts/blob/template_selector.js.coffee
app/assets/javascripts/blob/template_selector.js.coffee
class @TemplateSelector constructor: (opts = {}) -> { @dropdown, @data, @pattern, @wrapper, @editor, @fileEndpoint, @$input = $('#file_name') } = opts @buildDropdown() @bindEvents() @onFilenameUpdate() buildDropdown: -> @dropdown.glDropdown( ...
class @TemplateSelector constructor: (opts = {}) -> { @dropdown, @data, @pattern, @wrapper, @editor, @fileEndpoint, @$input = $('#file_name') } = opts @buildDropdown() @bindEvents() @onFilenameUpdate() buildDropdown: -> @dropdown.glDropdown( ...
Apply selected value as label
Apply selected value as label
CoffeeScript
mit
t-zuehlsdorff/gitlabhq,openwide-java/gitlabhq,stoplightio/gitlabhq,openwide-java/gitlabhq,darkrasid/gitlabhq,dplarson/gitlabhq,LUMC/gitlabhq,SVArago/gitlabhq,jirutka/gitlabhq,axilleas/gitlabhq,htve/GitlabForChinese,htve/GitlabForChinese,shinexiao/gitlabhq,htve/GitlabForChinese,t-zuehlsdorff/gitlabhq,dplarson/gitlabhq,s...
44096483bd1b9cedb6264be58143e16f8469ca2d
js-library/app/js/jail_iframe/classes/control_iframe.coffee
js-library/app/js/jail_iframe/classes/control_iframe.coffee
class ControlIframe constructor: -> @el = document.createElement('iframe') #need to append to outer document before we can access frame document. FactlinkJailRoot.$factlinkCoreContainer.append(@el) @$el = $(@el) @doc = @el.contentWindow.document; @doc.open() #need doctype to avoid quirks ...
class ControlIframe constructor: -> @el = document.createElement('iframe') #need to append to outer document before we can access frame document. FactlinkJailRoot.$factlinkCoreContainer.append(@el) @$el = $(@el) @doc = @el.contentWindow.document; @doc.open() #need doctype to avoid quirks ...
Implement content-setter for the control iframe
Implement content-setter for the control iframe
CoffeeScript
mit
daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core,daukantas/factlink-core,Factlink/factlink-core
8b6ba0eaa611a695985ba292e2cf47456c2b5d09
src/scrollbar-style.coffee
src/scrollbar-style.coffee
{Behavior} = require 'emissary' {ScrollbarStyleObserver} = require('../build/Release/scrollbar-style-observer') observer = new ScrollbarStyleObserver -> behavior.emitValue(observer.getPreferredScrollbarStyle()) behavior = new Behavior(observer.getPreferredScrollbarStyle()) module.exports = behavior
{Behavior} = require 'emissary' {ScrollbarStyleObserver} = require('../build/Release/scrollbar-style-observer.node') observer = new ScrollbarStyleObserver -> behavior.emitValue(observer.getPreferredScrollbarStyle()) behavior = new Behavior(observer.getPreferredScrollbarStyle()) module.exports = behavior
Add .node extension to require path
Add .node extension to require path
CoffeeScript
mit
gisenberg/scrollbar-style,atom/scrollbar-style,gisenberg/scrollbar-style,atom/scrollbar-style,atom/scrollbar-style
438516cdc9f958ba3cbc4076a57a764a7919469e
src/scripts/modules/media/editbar/modals/list/section.coffee
src/scripts/modules/media/editbar/modals/list/section.coffee
define (require) -> _ = require('underscore') BaseView = require('cs!helpers/backbone/views/base') PublishListPageView = require('cs!./page') template = require('hbs!./section-template') require('less!./section') # TODO: Write a simple inheritable for displaying the toc as a tree # and use that inh...
define (require) -> _ = require('underscore') BaseView = require('cs!helpers/backbone/views/base') PublishListPageView = require('cs!./page') template = require('hbs!./section-template') require('less!./section') # TODO: Write a simple inheritable for displaying the toc as a tree # and use that inh...
Fix for scrolling on pages
Fix for scrolling on pages
CoffeeScript
agpl-3.0
katalysteducation/webview,dak/webview,katalysteducation/webview,Connexions/webview,katalysteducation/webview,Connexions/webview,katalysteducation/webview,dak/webview,Connexions/webview,Connexions/webview,dak/webview
966d88eab17723fb6b3fd63cc9d4b88af5082beb
lib/compatible-view.coffee
lib/compatible-view.coffee
{View} = require 'atom' module.exports = class CompatibleView extends View @content: -> @div class: 'test overlay from-top', => @div "The Test package is Alive! It's ALIVE!", class: "message" initialize: (serializeState) -> atom.workspaceView.command "compatible:at", => @at() atom.workspaceView....
{View} = require 'atom' module.exports = class CompatibleView extends View @content: -> @div class: 'test overlay from-top', => @div "The Test package is Alive! It's ALIVE!", class: "message" initialize: (serializeState) -> atom.workspaceView.command "compatible:at", => @at() atom.workspaceView....
Allow insert into "Find" tool panel
Allow insert into "Find" tool panel Fixes a problem where the character was inserted in the last active editor instead of the focused "Find" tool panel
CoffeeScript
mit
morukutsu/atom-keyboard-localization
1fad61c10651a6ac32d9437628b4864777649ca0
tests/batman/object/delegate_test.coffee
tests/batman/object/delegate_test.coffee
QUnit.module "Batman.Object delegation", setup: -> class @MyObject extends Batman.Object @accessor 'address', -> Batman(number: '123', zip: '90210', country: Batman(country_code: 'CA')) test 'delegate without to option raises developer warning', -> spy = spyOn(Batman.developer, 'warn') @MyObject.delega...
QUnit.module "Batman.Object delegation", setup: -> class @MyObject extends Batman.Object @accessor 'address', -> Batman(number: '123', zip: '90210', country: Batman(country_code: 'CA')) test 'delegate without to option raises developer warning', -> spy = spyOn(Batman.developer, 'warn') @MyObject.delega...
Add test for asserting chaining delegates works
Add test for asserting chaining delegates works
CoffeeScript
mit
getshuvo/batman,getshuvo/batman
ff410a939e943d9a4d32cb699a9ec2af26096dac
components/MigrateLocalStorage.coffee
components/MigrateLocalStorage.coffee
noflo = require 'noflo' # @runtime noflo-browser exports.getComponent = -> c = new noflo.Component c.inPorts.add 'graphstore', datatype: 'object' getGraphs = -> graphIds = localStorage.getItem 'noflo-ui-graphs' graphs = [] return graphs unless graphIds ids = graphIds.split ',' for id in...
noflo = require 'noflo' # @runtime noflo-browser getGraphs = -> graphIds = localStorage.getItem 'noflo-ui-graphs' graphs = [] return graphs unless graphIds ids = graphIds.split ',' for id in ids graph = getGraph id continue unless graph graphs.push graph return graphs getGraph = (id) -> jso...
Move outside of component scope
Move outside of component scope
CoffeeScript
mit
noflo/noflo-ui,noflo/noflo-ui
32818011ad277c5746725bc2f5481b68ab897321
config/social/jkn2-google-plus.coffee
config/social/jkn2-google-plus.coffee
configs = [] configs.push name: "Google Plus" comment: """ This uses Google Plus' native j/k bindings (which work well), but adds the ability to activate the primary link on <code>Enter</code>. By using the native bindings for j/k, we're able to also use Google's other bindings, such as o, n and ...
configs = [] configs.push name: "Google Plus" comment: """ This uses Google Plus' native j/k bindings (which work well), but adds the ability to activate the primary link on <code>Enter</code>. By using the native bindings for j/k, we're able to also use Google's other bindings, such as o, n and ...
Disable Google Plus, native bindings are adequate.
Disable Google Plus, native bindings are adequate.
CoffeeScript
mit
smblott-github/jk-navigator-too
51088558015762db743929d598c377e88514a5e5
app/assets/javascripts/ui_components/chosen_init.coffee
app/assets/javascripts/ui_components/chosen_init.coffee
$ -> $('[data-toggle="chosen"]').each -> $this = $(this) data = $this.data() data.search_contains = true $this.chosen data
$ -> $('[data-toggle="chosen"]').each -> $this = $(this) data = $this.data() data.search_contains = true data.allow_single_deselect = true $this.chosen data
Add allow_single_deselect to chosen init
Add allow_single_deselect to chosen init
CoffeeScript
mit
ad2games/ui_components,ad2games/ui_components,ad2games/ui_components
e4d8bfd71afc14a8a42c2960ee43c973aaa6dd50
app/example/index.coffee
app/example/index.coffee
module.exports = do (Marionette, $) -> { UIRouterMarionette } = require('../router') App = new Marionette.Application Marionette.Behaviors.behaviorsLookup = -> # Import Marionette behaviors for state lookup/active state UISref: require('../router/marionette/behaviors').UISref App.addRegions rootReg...
module.exports = do (Marionette, $) -> { UIRouterMarionette } = require('../router') App = new Marionette.Application Marionette.Behaviors.behaviorsLookup = -> # Import Marionette behaviors for state lookup/active state UISref: require('../router/marionette/behaviors').UISref App.addRegions rootReg...
Enable tracing in example app
Enable tracing in example app
CoffeeScript
mit
bobmanary/ui-router-marionette,bobmanary/ui-router-marionette
8268057944dab673fc5bf810000c1bb4360083f9
core/app/backbone/collections/ndp_evidence_collection.coffee
core/app/backbone/collections/ndp_evidence_collection.coffee
class OpinionatersCollection extends Backbone.Factlink.Collection model: OpinionatersEvidence default_fetch_data: take: 7 initialize: (models, options) -> @fact = options.fact @_wheel = @fact.getFactWheel() @_wheel.on 'sync', => @fetch() url: -> "/facts/#{@fact.id}/interactors" ...
class OpinionatersCollection extends Backbone.Factlink.Collection model: OpinionatersEvidence default_fetch_data: take: 7 initialize: (models, options) -> @fact = options.fact @_wheel = @fact.getFactWheel() @_wheel.on 'sync', => @fetch() url: -> "/facts/#{@fact.id}/interactors" ...
Clone options to not pollute other .data properties
Clone options to not pollute other .data properties
CoffeeScript
mit
daukantas/factlink-core,Factlink/factlink-core,daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core
3fd38333a31b6ffc5d10583433db9917b1e334cc
src/main.coffee
src/main.coffee
# Preamble _.mixin(_.str.exports()) rx = require('../../reactive-coffee/src/reactive') bind = rx.bind T = rx.rxt.tags S = rx.rxt.svg_tags # Dependencies # {items} = require('./model') # {editor} = require('./editor') {draw_grid} = require('./draw_grid') grid_size = 640 grid_split = 8 main = -> $('body').append(...
# Preamble _.mixin(_.str.exports()) rx = require('../../reactive-coffee/src/reactive') bind = rx.bind T = rx.rxt.tags SVG = rx.rxt.svg_tags # Dependencies # {items} = require('./model') # {editor} = require('./editor') {draw_grid} = require('./draw_grid') grid_size = 640 grid_split = 8 main = -> $('body').appen...
Use SVG as the label
Use SVG as the label
CoffeeScript
isc
TheSwanFactory/hourofnode,TheSwanFactory/hourofnode
b9b4bd25d594f4574e40e2b00a001d561f0362ed
js/outer.coffee
js/outer.coffee
# Placeholder Polyfill # https://github.com/mathiasbynens/jquery-placeholder $(window).load -> $("input, textarea").placeholder() # Sammy (($) -> circle = $.sammy("body", -> # Page class Page constructor: (@name, @title) -> render: -> document.title = "Circle - " + @title $("b...
# Placeholder Polyfill # https://github.com/mathiasbynens/jquery-placeholder $(window).load -> $("input, textarea").placeholder() # Sammy (($) -> circle = $.sammy("body", -> # Page class Page constructor: (@name, @title) -> render: -> document.title = "Circle - " + @title $("b...
Change method name to be more accurate
Change method name to be more accurate
CoffeeScript
epl-1.0
RayRutjes/frontend,circleci/frontend,circleci/frontend,RayRutjes/frontend,prathamesh-sonpatki/frontend,circleci/frontend,prathamesh-sonpatki/frontend
3b92fa147386fd367ff19b9f8b1e8c8e9384744a
atom/.atom/packages.cson
atom/.atom/packages.cson
packages: [ "package-sync", "term2", "merge-conflicts", "git-log", "git-history", "browser-plus" ]
packages: [ "package-sync", "term2", "merge-conflicts", "git-log", "git-history", "browser-plus", "atom-jinja2" ]
Add atom-jinja2 to package list
Add atom-jinja2 to package list
CoffeeScript
mit
axltxl/dotfiles,axltxl/dotfiles,axltxl/dotfiles
e336eaad6e2766a6531e47ffb6d558f271744cde
src/api.coffee
src/api.coffee
Promise = require 'bluebird' fs = Promise.promisifyAll require 'fs' utils = require './utils' express = require 'express' application = require './application' api = express() LED_FILE = '/sys/class/leds/led0/brightness' blink = (ms = 200) -> fs.writeFileAsync(LED_FILE, 1) .delay(ms) .then -> fs.writeFileAsync(LE...
Promise = require 'bluebird' fs = Promise.promisifyAll require 'fs' utils = require './utils' express = require 'express' application = require './application' api = express() LED_FILE = '/sys/class/leds/led0/brightness' blink = (ms = 200) -> fs.writeFileAsync(LED_FILE, 1) .delay(ms) .then -> fs.writeFileAsync(LE...
Increase the blink duration to 15s
Increase the blink duration to 15s
CoffeeScript
apache-2.0
resin-io/resin-multivisor,deviceMP/resin-supervisor,deviceMP/resin-supervisor,nghiant2710/resin-supervisor,nghiant2710/resin-supervisor
6482fd267d900baade60f38436a05bd359809a9f
app/assets/javascripts/models/user.js.coffee
app/assets/javascripts/models/user.js.coffee
a = DS.attr ETahi.User = DS.Model.extend imageUrl: a('string') fullName: a('string') username: a('string') name: Ember.computed.alias 'fullName' ETahi.Assignee = ETahi.User.extend() ETahi.Reviewer = ETahi.User.extend()
a = DS.attr ETahi.User = DS.Model.extend imageUrl: a('string') fullName: a('string') username: a('string') name: Ember.computed.alias 'fullName' admin: a('boolean') ETahi.Assignee = ETahi.User.extend() ETahi.Reviewer = ETahi.User.extend()
Add admin field to user.
Add admin field to user.
CoffeeScript
mit
johan--/tahi,johan--/tahi,johan--/tahi,johan--/tahi
7bb9dc7195efb4733fb7c0dd3f9a5ff39bfc426b
client/app/components/toolbox_move.coffee
client/app/components/toolbox_move.coffee
{div, ul, li, span, i, p, a, button} = React.DOM module.exports = ToolboxMove = React.createClass displayName: 'ToolboxMove' shouldComponentUpdate: (nextProps, nextState) -> return not(_.isEqual(nextState, @state)) or not(_.isEqual(nextProps, @props)) render: -> direction...
{div, ul, li, span, i, p, a, button} = React.DOM module.exports = ToolboxMove = React.createClass displayName: 'ToolboxMove' shouldComponentUpdate: (nextProps, nextState) -> return not(_.isEqual(nextState, @state)) or not(_.isEqual(nextProps, @props)) render: -> direction...
Add a label to the Move toolbox dropdown
Add a label to the Move toolbox dropdown
CoffeeScript
agpl-3.0
clochix/cozy-emails,frankrousseau/cozy-emails,robinmoussu/cozy-emails,nono/cozy-emails,cozy-labs/emails,aenario/cozy-emails,robinmoussu/cozy-emails,lemelon/cozy-emails,frankrousseau/cozy-emails,cozy/cozy-emails,aenario/cozy-emails,clochix/cozy-emails,poupotte/cozy-emails,poupotte/cozy-emails,kelukelu/cozy-emails,cozy-l...
bc2afccfc32446ac640a8cd39282c01f32214504
lineman/app/js/controllers/mini_proposal_pie_chart_controller.coffee
lineman/app/js/controllers/mini_proposal_pie_chart_controller.coffee
angular.module('loomioApp').controller 'MiniProposalPieChartController', ($scope) -> $scope.pieChartData = [ { value : 0, color : "#90D490" }, { value : 0, color : "#F0BB67" }, { value : 0, color : "#D49090" }, { value : 0, color : "#dd0000"} ] $scope.pieChartOptions = animation: false s...
angular.module('loomioApp').controller 'MiniProposalPieChartController', ($scope) -> $scope.pieChartData = [ { value : 0, color : "#90D490" }, { value : 0, color : "#F0BB67" }, { value : 0, color : "#D49090" }, { value : 0, color : "#dd0000" }, { value : 0, color : "#cccccc" } ] $scope.pieCh...
Fix empty mini pie charts
Fix empty mini pie charts
CoffeeScript
agpl-3.0
podemos-info/loomio,podemos-info/loomio,podemos-info/loomio
3fda754c2e9f352af4d395179812f1c1851cb2e0
js-library/app/js/jail_iframe/classes/loading_promises.coffee
js-library/app/js/jail_iframe/classes/loading_promises.coffee
setTimeout -> ok = loaded: true interactive: !(document.documentMode < 11) complete: true if ok[document.readyState] FactlinkJailRoot.host_ready_promise.resolve() else document.addEventListener('DOMContentLoaded', -> FactlinkJailRoot.host_ready_promise.resolve()) if 'complete' == document...
setTimeout -> isDOMContentLoaded = loaded: true interactive: !(document.documentMode < 11) complete: true if isDOMContentLoaded[document.readyState] FactlinkJailRoot.host_ready_promise.resolve() else document.addEventListener('DOMContentLoaded', -> FactlinkJailRoot.host_ready_promise.resolve...
Use more descriptive variable name
Use more descriptive variable name
CoffeeScript
mit
Factlink/factlink-core,daukantas/factlink-core,Factlink/factlink-core,daukantas/factlink-core,daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core
653a70e957c9e97f1342af9cf6f6ea4e33aed810
app/assets/javascripts/components/overview/tag_button.cjsx
app/assets/javascripts/components/overview/tag_button.cjsx
React = require 'react' PopoverButton = require '../high_order/popover_button.cjsx' TagStore = require '../../stores/tag_store.coffee' tagIsNew = (tag) -> TagStore.getFiltered({ tag: tag }).length == 0 tags = (props, remove) -> props.tags.map (tag) => remove_button = ( <button className='bu...
React = require 'react' PopoverButton = require '../high_order/popover_button.cjsx' TagStore = require '../../stores/tag_store.coffee' tagIsNew = (tag) -> TagStore.getFiltered({ tag: tag }).length == 0 tags = (props, remove) -> props.tags.map (tag) => remove_button = ( <button className='bu...
Allow removal of all tags
Allow removal of all tags We previously disabled removal of tags that have a key, since those were syste-added tags. But there's no reason for that restriction, and we need to be able to modify the newly-introduced instructor new/returning tags.
CoffeeScript
mit
KarmaHater/WikiEduDashboard,sejalkhatri/WikiEduDashboard,KarmaHater/WikiEduDashboard,MusikAnimal/WikiEduDashboard,KarmaHater/WikiEduDashboard,alpha721/WikiEduDashboard,sejalkhatri/WikiEduDashboard,feelfreelinux/WikiEduDashboard,KarmaHater/WikiEduDashboard,MusikAnimal/WikiEduDashboard,sejalkhatri/WikiEduDashboard,Wowu/W...
dfbe10bbaafbeffee5b943951ea477b57ba3d8f2
lib/assets/javascripts/oojspec/reporter/html-multi-level.js.coffee
lib/assets/javascripts/oojspec/reporter/html-multi-level.js.coffee
h = buster.reporters.html h._lists = [] # original private function defined in Buster.js. Re-writing it here in CS el = (doc, tagName, properties) -> e = doc.createElement(tagName) for prop, value of properties e.setAttribute prop, value if prop is "http-equiv" prop = "innerHTML" if prop == "text" e[pr...
h = buster.reporters.html h._lists = [] # original private function defined in Buster.js. Re-writing it here in CS el = (doc, tagName, properties) -> e = doc.createElement(tagName) for prop, value of properties e.setAttribute prop, value if prop is "http-equiv" prop = "innerHTML" if prop == "text" e[pr...
Fix HTML syntax in reporter
Fix HTML syntax in reporter
CoffeeScript
mit
rosenfeld/oojspec,rosenfeld/oojspec
c32783707beed9121b99d86531dc80c9d8a11952
src/components/learning-guide/weaker-panel.cjsx
src/components/learning-guide/weaker-panel.cjsx
React = require 'react' BS = require 'react-bootstrap' Router = require 'react-router' _ = require 'underscore' LearningGuide = require '../../flux/learning-guide' PracticeButton = require './practice-button' WeakerSections = require './weaker-sections' WeakerPanel = React.createClass propTypes: courseId: ...
React = require 'react' BS = require 'react-bootstrap' Router = require 'react-router' _ = require 'underscore' LearningGuide = require '../../flux/learning-guide' PracticeButton = require './practice-button' WeakerSections = require './weaker-sections' WeakerPanel = React.createClass propTypes: courseId: ...
Move assignment up and comment reasoning
Move assignment up and comment reasoning Since the @onPractice was removed by mistake earlier
CoffeeScript
agpl-3.0
openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js
244a77ff04ef59395e690c43e1a10ea2cb32050b
apps/atom/atom.symlink/config.cson
apps/atom/atom.symlink/config.cson
'exception-reporting': 'userId': '3ba70428-f782-5321-e73a-7b678f36511c' 'release-notes': 'viewedVersion': '0.94.0' 'welcome': 'showOnStartup': false 'metrics': 'userId': '9e20623847c7c22109bc7b34e71c459485f8781a' 'editor': 'showInvisibles': true 'fontFamily': 'Monaco' 'showIndentGuide': true 'softTabs':...
'exception-reporting': 'userId': '3ba70428-f782-5321-e73a-7b678f36511c' 'release-notes': 'viewedVersion': '0.94.0' 'welcome': 'showOnStartup': false 'metrics': 'userId': '9e20623847c7c22109bc7b34e71c459485f8781a' 'editor': 'showInvisibles': true 'fontFamily': 'Monaco' 'showIndentGuide': true 'softTabs':...
Disable atom rdio equalizer (make my macbook so slow)
Disable atom rdio equalizer (make my macbook so slow)
CoffeeScript
mit
MoOx/setup,iDams/setup,MoOx/setup,Macxim/dotfiles,iDams/setup,MoOx/setup
7ac0de4b8902915cc60ac2ed78c723890b1aa475
vendor/assets/javascripts/brainstem/loaders/model-loader.coffee
vendor/assets/javascripts/brainstem/loaders/model-loader.coffee
window.Brainstem ?= {} class Brainstem.ModelLoader extends Brainstem.AbstractLoader _getCollectionName: -> @loadOptions.name.pluralize() _createObjects: -> id = @loadOptions.only[0] @internalObject = @storageManager.createNewModel @loadOptions.name @internalObject.set('id', id) @externalObje...
window.Brainstem ?= {} class Brainstem.ModelLoader extends Brainstem.AbstractLoader _getCollectionName: -> @loadOptions.name.pluralize() _createObjects: -> id = @loadOptions.only[0] cachedModel = @storageManager.storage(@_getCollectionName()).get(id) if cachedModel && @loadOptions.model && cache...
Throw an exception if you try to pass in a model that is not in the storage manager if one exists
Throw an exception if you try to pass in a model that is not in the storage manager if one exists
CoffeeScript
mit
mavenlink/brainstem-js
1b0821d830fae0c24bd8560a3e82f808bd80049c
app/assets/javascripts/users/user.controller.js.coffee
app/assets/javascripts/users/user.controller.js.coffee
angular.module('calendarApp') .controller 'UserController', ['$scope', '$modalInstance', 'user', 'showEmailPassword', '$timeout', ($scope, $modalInstance, user, showEmailPassword, $timeout)-> $timeout -> $('ng-form[name="userForm"] .input-group.date input[data-date="true"]').datetimepicker({format: 'MM/DD/YYYY'}...
angular.module('calendarApp') .controller 'UserController', ['$scope', '$modalInstance', 'user', 'showEmailPassword', '$timeout', ($scope, $modalInstance, user, showEmailPassword, $timeout)-> $timeout -> $('ng-form[name="userForm"] .input-group.date input[data-date="true"]').datetimepicker({format: 'MM/DD/YYYY'}...
Fix multiple phone or address when creating new user.
Fix multiple phone or address when creating new user.
CoffeeScript
mit
mgwidmann/appointments,mgwidmann/appointments,mgwidmann/appointments,mgwidmann/appointments
9089f528ccb48c85a66a23f9d52192dd02d5add5
src/browser/mutator.coffee
src/browser/mutator.coffee
mutate = (instance, klass, args = []) -> throw 'Instance must be an object' if typeof instance isnt 'object' throw 'Klass must be a class' if typeof klass isnt 'function' instance.__proto__ = klass.prototype klass.apply(instance, args) instance fixForIE = (instance, klass, args = []) -> throw 'Instance mu...
mutate = (instance, klass, args = []) -> throw 'Instance must be an object' if typeof instance isnt 'object' throw 'Klass must be a class' if typeof klass isnt 'function' instance.__proto__ = klass.prototype klass.apply(instance, args) instance fixForIE = (instance, klass, args = []) -> throw 'Instance mu...
Fix bug in hard copy workaround for IE
Fix bug in hard copy workaround for IE
CoffeeScript
mit
timnew/mutator
8eea0eed36d578523b71ea1797c4bfdb67550723
Gruntfile.coffee
Gruntfile.coffee
module.exports = (grunt) -> grunt.initConfig pkg: grunt.file.readJSON('package.json') coffee: glob_to_multiple: expand: true cwd: 'src' src: ['**/*.coffee'] dest: 'lib' ext: '.js' coffeelint: options: no_empty_param_list: level: 'erro...
module.exports = (grunt) -> grunt.initConfig pkg: grunt.file.readJSON('package.json') coffee: glob_to_multiple: expand: true cwd: 'src' src: ['**/*.coffee'] dest: 'lib' ext: '.js' coffeelint: options: no_empty_param_list: level: 'erro...
Fix invoking jasmine-focused on Windows.
Fix invoking jasmine-focused on Windows.
CoffeeScript
mit
pusateri/apm,pusateri/apm,AtaraxiaEta/apm,VandeurenGlenn/apm,gutsy/apm,bcoe/apm,gutsy/apm,bronson/apm,VandeurenGlenn/apm,bronson/apm,jlord/apm,ethanp/apm,AtaraxiaEta/apm,AtaraxiaEta/apm,bcoe/apm,VandeurenGlenn/apm,pusateri/apm,bcoe/apm,AtaraxiaEta/apm,jlord/apm,Nikpolik/apm,atom/apm,Nikpolik/apm,fscherwi/apm,ethanp/apm...
5df633f7a20d8eb34bfad2cb740453b1840e29a5
src/framework/index.coffee
src/framework/index.coffee
# Installs/updates latest version of the Tâmia Stylus framework. # Also installs jQuery. # https://github.com/sapegin/tamia 'use strict' fs = require 'fs' util = require 'util' path = require 'path' base = require '../base' module.exports = class Generator extends base Generator::checkUpdate = -> @update = fs.exis...
# Installs/updates latest version of the Tâmia Stylus framework. # Also installs jQuery. # https://github.com/sapegin/tamia 'use strict' fs = require 'fs' util = require 'util' path = require 'path' base = require '../base' module.exports = class Generator extends base Generator::checkUpdate = -> @update = fs.exis...
Fix paths for fetched from GitHub Tamia source files.
Fix paths for fetched from GitHub Tamia source files.
CoffeeScript
mit
tamiadev/generator-tamia,tamiadev/generator-tamia,tamiadev/generator-tamia
a2f9597013fe093912fd515aef43b352bdf225c8
client/layout/layout.coffee
client/layout/layout.coffee
Template.layout.events 'click .applicationContent.menu-open': (event, template) -> if not $(event.target).hasClass 'menu-toggler' $('.applicationContent').removeClass('menu-open') 'click .menu-toggler': (event, template) -> $('.applicationContent').toggleClass('menu-open')
Template.layout.events 'click .applicationContent.menu-open': (event, template) -> if not $(event.target).hasClass 'menu-toggler' event.preventDefault() $('.applicationContent').removeClass('menu-open') 'click .menu-toggler': (event, template) -> $('.applicationContent').toggleClass('menu-open')
Add preventDefault when menu is closing
Add preventDefault when menu is closing
CoffeeScript
mit
stephan281094/UI-Elements
a6d7a8c90af143ccf625bbbda14583ccbdb66429
src/code/stores/app-settings-store.coffee
src/code/stores/app-settings-store.coffee
HashParams = require '../utils/hash-parameters' ImportActions = require '../actions/import-actions' AppSettingsActions = Reflux.createActions( [ "diagramOnly" "showMinigraphs" ] ) AppSettingsStore = Reflux.createStore listenables: [AppSettingsActions, ImportActions] init: -> @settings = ...
HashParams = require '../utils/hash-parameters' ImportActions = require '../actions/import-actions' AppSettingsActions = Reflux.createActions( [ "diagramOnly" "showMinigraphs" ] ) AppSettingsStore = Reflux.createStore listenables: [AppSettingsActions, ImportActions] init: -> @settings = ...
Quit minigraph mode if in diagram only mode
Quit minigraph mode if in diagram only mode [#115792153]
CoffeeScript
mit
concord-consortium/building-models,concord-consortium/building-models,concord-consortium/building-models,concord-consortium/building-models,concord-consortium/building-models
19389b1b0bf638054ea3487f999575f8b8680e05
app/assets/javascripts/mixins/ScrollToOnMountMixin.coffee
app/assets/javascripts/mixins/ScrollToOnMountMixin.coffee
@ScrollToOnMountMixin = componentDidMount: -> $('body').animate scrollTop: @positionInPage() - @marginTop(), 700 positionInPage: -> @jQueryElement().offset().top marginTop: -> @jQueryElement().css('margin-top').replace('px', '') jQueryElement: -> $(ReactDOM.findDOMNode(this))
@ScrollToOnMountMixin = componentDidMount: -> $('body').animate scrollTop: @positionInPage() - @marginTop(), 700 positionInPage: -> parseFloat @jQueryElement().offset().top marginTop: -> parseFloat @jQueryElement().css('margin-top').replace('px', '') jQueryElement: -> $(ReactDOM.findDOMNode(t...
Use parseFloat to avoid string subtraction
Use parseFloat to avoid string subtraction
CoffeeScript
mit
roqua/screensmart,roqua/screensmart,roqua/screensmart
d1569dad2d515ebdb7d520ef73cc29cfb9e05add
spec/main-spec.coffee
spec/main-spec.coffee
require('./helpers') fs = require('fs') path = require('path') glob = require('glob') refaker = require('../lib') describe 'other specs', -> it 'should fail on invalid input', (done) -> refaker {}, (err, refs) -> expect(err).toBeUndefined() expect(refs).toEqual {} expect(refaker).toThrow() ...
require('./helpers') fs = require('fs') path = require('path') glob = require('glob') refaker = require('../lib') describe 'other specs', -> it 'should fail on invalid input', (done) -> refaker {}, (err, refs) -> expect(err).toBeUndefined() expect(refs).toEqual {} expect(refaker).toThrow() ...
Add test for resolved refs
Add test for resolved refs
CoffeeScript
mit
json-schema-faker/refaker
22a71d4a50eae367c41b4356e464be895b130984
backend/app/assets/javascripts/comable/admin/navigations.coffee
backend/app/assets/javascripts/comable/admin/navigations.coffee
class @Navigation constructor: -> $(document).ready(@ready) @add_event() ready: => @navigation_items = $('#navigation-items') @add_fields = $('.add_fields') # linkable_idの検索 search_linkable_ids: -> $linkable_type = $('#linkable_type') $position = $('#position') $linkable_type.val($...
class @Navigation constructor: -> $(document).ready(@ready) @add_event() ready: => @navigation_items = $('#navigation-items') @add_fields = $('.add_fields') # linkable_idの検索 search_linkable_ids: -> $linkable_type = $('#linkable_type') $position = $('#position') $linkable_type.val($...
Fix the problem that cannot remove the added new item
Fix the problem that cannot remove the added new item
CoffeeScript
mit
appirits/comable,hyoshida/comable,hyoshida/comable,appirits/comable,hyoshida/comable,appirits/comable
2dcbcab6873176dc6bd16eec568f2eff43324cf3
server/cron/sendMetrics.coffee
server/cron/sendMetrics.coffee
import {GROUPS} from '../../client/lib/informaticsGroups' import {START_SUBMITS_DATE} from '../api/dashboard' import send from '../metrics/graphite' import Result from "../models/result" export default sendMetrics = () -> queries = ok: {ok: 1, lastSubmitTime: {$gt: START_SUBMITS_DATE}}, ps: {ps: 1...
import {GROUPS} from '../../client/lib/informaticsGroups' import {START_SUBMITS_DATE} from '../api/dashboard' import send from '../metrics/graphite' import notify from '../metrics/notify' import Result from "../models/result" sendGraphite = () -> queries = ok: {ok: 1, lastSubmitTime: {$gt: START_SUBMITS_D...
Send notification if PS submits are pending
Send notification if PS submits are pending
CoffeeScript
agpl-3.0
petr-kalinin/algoprog,petr-kalinin/algoprog,petr-kalinin/algoprog,petr-kalinin/algoprog
b902821c07cb90a92ec0e6704bd4aea43061aa4f
services/web/app/coffee/Features/Referal/ReferalFeatures.coffee
services/web/app/coffee/Features/Referal/ReferalFeatures.coffee
_ = require("underscore") logger = require('logger-sharelatex') User = require('../../models/User').User Settings = require "settings-sharelatex" module.exports = ReferalFeatures = getBonusFeatures: (user_id, callback = (error) ->) -> query = _id: user_id User.findOne query, (error, user) -> return callback(er...
_ = require("underscore") logger = require('logger-sharelatex') User = require('../../models/User').User Settings = require "settings-sharelatex" module.exports = ReferalFeatures = getBonusFeatures: (user_id, callback = (error) ->) -> query = _id: user_id User.findOne query, (error, user) -> return callback(er...
Return blank features, not default features if no bonuses
Return blank features, not default features if no bonuses
CoffeeScript
agpl-3.0
sharelatex/sharelatex
4347d332d6dba526cc015d73f4f2fc913d9e849f
app/assets/javascripts/dot_ledger/views/sorting_rules/list_item.js.coffee
app/assets/javascripts/dot_ledger/views/sorting_rules/list_item.js.coffee
DotLedger.module 'Views.SortingRules', -> class @ListItem extends Backbone.Marionette.ItemView tagName: 'tr' template: 'sorting_rules/list_item' templateHelpers: -> flag: => if @model.get('review') 'Review'
DotLedger.module 'Views.SortingRules', -> class @ListItem extends Backbone.Marionette.ItemView tagName: 'tr' template: 'sorting_rules/list_item' templateHelpers: -> flag: => if @model.get('review') 'Review' else ''
Fix "undefined" issue in sorting rule list items.
Fix "undefined" issue in sorting rule list items.
CoffeeScript
apache-2.0
pipeline/dotledger,dotledger/dotledger,amorphid/dotledger,amorphid/dotledger,malclocke/dotledger,malclocke/dotledger,amorphid/dotledger,dotledger/dotledger,dotledger/dotledger,dotledger/dotledger,pipeline/dotledger,malclocke/dotledger,pipeline/dotledger
af791609bbe8b0480f5bcabed082394eb4e19792
lib/grammar-utils/lisp.coffee
lib/grammar-utils/lisp.coffee
#Utilities for particular grammars _ = require 'underscore' module.exports = splitStatements: (code) -> reducer = (statements, char, i, code) -> if char == '(' this.parenDepth = (this.parenDepth or 0) + 1 this.inStatement = true else if char == ')' this.parenDepth = (this.pare...
#Utilities for particular grammars _ = require 'underscore' module.exports = splitStatements: (code) -> reducer = (statements, char, i, code) -> if char == '(' @parenDepth = (@parenDepth or 0) + 1 @inStatement = true else if char == ')' @parenDepth = (@parenDepth or 0) - 1 ...
Use the CoffeeScript this syntax vs. the JS syntax
:lipstick: Use the CoffeeScript this syntax vs. the JS syntax
CoffeeScript
mit
anfedorov/atom-script,jchannon/atom-script,jchannon/atom-script,anfedorov/atom-script,anfedorov/atom-script,rodionovd/atom-script,rodionovd/atom-script,anfedorov/atom-script,Calyhre/atom-script,rodionovd/atom-script,jchannon/atom-script,efatsi/atom-script,TomosBlack/atom-script,jchannon/atom-script,anfedorov/atom-scrip...
6d6da9475a76d83df0dc932d5cea4cbf718fdc21
index.coffee
index.coffee
requirejs.config({ paths: { fabric: [ 'lib/fabric'] } }) define ['game', 'synchronizedtime', 'position', 'lib/fabric'], (Game, SynchronizedTime, Position) -> # Fabric is deliberately not set as an argument console.log "Fabric: ", fabric console.log "Position: ", new Position([1,2], 0, 5) canvas = n...
requirejs.config({ paths: { fabric: [ 'lib/fabric'] } }) define ['game', 'synchronizedtime', 'position', 'lib/fabric'], (Game, SynchronizedTime, Position) -> # Fabric is deliberately not set as an argument console.log "Fabric: ", fabric console.log "Position: ", new Position([1,2], 0, 5) canvas = n...
Change tick rate from 1 tps to 60 tps
Change tick rate from 1 tps to 60 tps
CoffeeScript
agpl-3.0
Aaron1011/beamwars
b354ccb324f82e43dea177e80f29751d1675da1c
index.coffee
index.coffee
module.exports = (Impromptu, system) -> @register 'pwd', update: -> process.env.PWD @register 'prettyPwd', update: -> cwd = process.env.PWD if cwd.indexOf process.env.HOME == 0 cwd = '~' + cwd.slice process.env.HOME.length cwd @register 'user', update: (done) -> ...
module.exports = (Impromptu, register, system) -> register 'pwd', update: -> process.env.PWD register 'prettyPwd', update: -> cwd = process.env.PWD if cwd.indexOf process.env.HOME == 0 cwd = '~' + cwd.slice process.env.HOME.length cwd register 'user', update: (done) -...
Use register as an argument and exec as a static method
Use register as an argument and exec as a static method
CoffeeScript
mit
impromptu/impromptu-system
4c2441c5d29db06e2b2b41c3a7024885e6b73745
index.coffee
index.coffee
fs = require 'fs' path = require 'path' module.exports = (robot, scripts) -> scriptsPath = path.resolve(__dirname, 'src') fs.exists scriptsPath, (exists) -> if exists for script in fs.readdirSync(scriptsPath) if scripts? and '*' not in scripts robot.loadF...
fs = require 'fs' path = require 'path' module.exports = (robot, scripts) -> scriptsPath = path.resolve(__dirname, 'src') if fs.existsSync scriptsPath for script in fs.readdirSync(scriptsPath).sort() if scripts? and '*' not in scripts robot.loadFile(scriptsPath, script) if s...
Load / run scripts synchronously
Load / run scripts synchronously
CoffeeScript
mit
ClaudeBot/hubot-steam-webapi,ClaudeBot/hubot-steam-webapi
d42063443ca34b2805c2285027e86d4d59680c89
app/assets/javascripts/farmbot_app/services/data.js.coffee
app/assets/javascripts/farmbot_app/services/data.js.coffee
# RESTful data adapter for hooking angular JS into the backend API. # Checkout "js-data-angular" docs for more info. data = (DS) -> deviceMethods = {} DS.defineResource name: "device" endpoint: 'devices', basePath: '/api', idAttribute: "_id" methods: deviceMethods DS.defineResource name: ...
# RESTful data adapter for hooking angular JS into the backend API. # Checkout "js-data-angular" docs for more info. data = (DS) -> DS.defineResource name: "device" endpoint: 'devices', basePath: '/api', idAttribute: "_id" DS.defineResource name: "step" endpoint: 'steps', basePath: '/ap...
Remove boilerplate code from JS-Data code
Remove boilerplate code from JS-Data code
CoffeeScript
mit
donnydevito/farmbot-web-app,FarmBot/Farmbot-Web-API,FarmBot/farmbot-web-app,gabrielburnworth/Farmbot-Web-App,yuvilio/farmbot-web-app,yuvilio/farmbot-web-app,yuvilio/farmbot-web-app,FarmBot/Farmbot-Web-API,RickCarlino/farmbot-web-app,RickCarlino/farmbot-web-app,donnydevito/farmbot-web-app,FarmBot/farmbot-web-app,gabriel...
b1ce7f2c155aaea840b4bb58a48837b1b2ad225c
app/assets/javascripts/darkswarm/services/variants.js.coffee
app/assets/javascripts/darkswarm/services/variants.js.coffee
Darkswarm.factory 'Variants', -> new class Variants variants: {} clear: -> @variants = {} register: (variant)-> @variants[variant.id] ||= @extend variant extend: (variant)-> variant.extended_name = @extendedVariantName(variant) variant.base_price_percentage = Math.round(vari...
Darkswarm.factory 'Variants', -> new class Variants variants: {} clear: -> @variants = {} register: (variant)-> @variants[variant.id] ||= @extend variant extend: (variant)-> variant.extended_name = @extendedVariantName(variant) variant.base_price_percentage = Math.round(vari...
Simplify product naming in cart
Simplify product naming in cart
CoffeeScript
agpl-3.0
mkllnk/openfoodnetwork,openfoodfoundation/openfoodnetwork,lin-d-hop/openfoodnetwork,openfoodfoundation/openfoodnetwork,lin-d-hop/openfoodnetwork,lin-d-hop/openfoodnetwork,Matt-Yorkley/openfoodnetwork,Matt-Yorkley/openfoodnetwork,mkllnk/openfoodnetwork,openfoodfoundation/openfoodnetwork,mkllnk/openfoodnetwork,lin-d-hop/...
0361d08fd0513ad6fe01d93397388f587e084191
scripts/popular-news.coffee
scripts/popular-news.coffee
# Description: # Get most popular story from MEN # See also https://github.com/github/hubot-scripts/blob/master/src/scripts/chartbeat.coffee # # Dependencies: # None # # Configuration: # HUBOT_CHARTBEAT_API_KEY # # Command: [not included in help script] # election - find election candidates # # Author: # ro...
# Description: # Get most popular story from MEN # See also https://github.com/github/hubot-scripts/blob/master/src/scripts/chartbeat.coffee # # Dependencies: # None # # Configuration: # HUBOT_CHARTBEAT_API_KEY # # Command: [not included in help script] # election - find election candidates # # Author: # ro...
Tweak to popular news phrase.
Tweak to popular news phrase.
CoffeeScript
apache-2.0
robertocarroll/chatui-twitter
58f231e3aabb87e709dcb46ed5b0a6744e6dc63c
lib/models/localhost-proxy.coffee
lib/models/localhost-proxy.coffee
net = require 'net' httpProxy = require 'http-proxy' module.exports = class LocalhostProxy constructor: (port) -> @port = port @remoteHost = 'http://ile.learn.co' @desiredPorts = ['3000', '4000', '8000', '9393'] start: -> @withAvailablePort((ports) => server = httpProxy.createProxyServer({ta...
net = require 'net' httpProxy = require 'http-proxy' module.exports = class LocalhostProxy constructor: (port) -> @port = port @remoteHost = 'http://ile.learn.co' @desiredPorts = ['3000', '4000', '4567', '8000', '9292', '9393'] start: -> @withAvailablePort((ports) => server = httpProxy.creat...
Add a few more standard ports
Add a few more standard ports
CoffeeScript
mit
learn-co/learn-ide,learn-co/learn-ide,learn-co/learn-ide-3,learn-co/learn-ide-3,learn-co/learn-ide,learn-co/learn-ide-3,learn-co/mastermind
4bbe7d2b2b57e18cd65c3fba1f9e9a6e03044e03
Gruntfile.coffee
Gruntfile.coffee
module.exports = (grunt) -> grunt.initConfig pkg: grunt.file.readJSON("package.json") coffee: compile: files: 'chrome-app/lib/pomodoro.js': ['src/*.coffee'] grunt.loadNpmTasks "grunt-contrib-concat" grunt.loadNpmTasks('grunt-contrib-uglify'); grunt.loadNpmTasks('grunt-contrib-...
module.exports = (grunt) -> grunt.initConfig pkg: grunt.file.readJSON("package.json") coffee: compile: files: 'chrome-app/lib/pomodoro.js': ['src/*.coffee'] uglify: build: src: 'chrome-app/lib/pomodoro.js', dest: 'chrome-app/lib/pomodoro.min.js' grunt.loa...
Add uglify task to grunt
Add uglify task to grunt
CoffeeScript
mit
dreamtech/pomodoro,dreamtech/pomodoro
1b6348900e5ec7ecd302cc51153c2b59cc0227d4
lib/broadcast-target.coffee
lib/broadcast-target.coffee
module.exports = class BroadcastTarget editor: null listener: null isMarkdownPreview: false constructor: -> @editor = atom.workspace.activePaneItem @isMarkdownPreview = @editor[0]? @editor.on 'markdown-preview:markdown-changed', => @listener?() setListener: (listener) -> @listener = ...
module.exports = class BroadcastTarget editor: null listener: null isMarkdownPreview: false constructor: -> @editor = atom.workspace.activePaneItem @isMarkdownPreview = @editor[0]? if @isMarkdownPreview @editor.on 'markdown-preview:markdown-changed', => @listener?() else @...
Fix an issue that non-markdown preview is not updated
Fix an issue that non-markdown preview is not updated
CoffeeScript
mit
eqot/atom-broadcast,eqot/atom-broadcast
b9f97efc3fdddc8e82a252bc748f15753f7581a8
meteor/server/api.coffee
meteor/server/api.coffee
RESTstop.configure() RESTstop.add 'trips/:tiploc?', -> tiploc = @params.tiploc unless tiploc? return [403, success: false message:'You need to provide a tiploc as a parameter' ] schedules = getTodaysScheduleForTiploc(tiploc) result = getArrivalAndDepartureTimes(tiploc, schedules) results:...
RESTstop.configure() RESTstop.add 'trips/:tiploc?', -> tiploc = @params.tiploc unless tiploc? return [403, success: false message:'You need to provide a tiploc as a parameter' ] schedules = getTodaysScheduleForTiploc(tiploc) result = getArrivalAndDepartureTimes(tiploc, schedules) results:...
Make API work with citysdk data
Make API work with citysdk data
CoffeeScript
apache-2.0
foxdog-studios/crazytrain,foxdog-studios/crazytrain
972f88fecd612879a14931bb37f376a43567655c
lib/line-focus-stats.coffee
lib/line-focus-stats.coffee
LineFocusStatsView = require './line-focus-stats-view' module.exports = LineFocusStats = lineFocusStatsViews: null activate: (state) -> console.log 'activate LineFocusStats' @lineFocusStatsViews = [] atom.commands.add 'atom-workspace', 'line-focus-stats:toggle': => @toggle() # @enable() ...
LineFocusStatsView = require './line-focus-stats-view' module.exports = LineFocusStats = lineFocusStatsViews: null activate: (state) -> console.log 'activate LineFocusStats' @lineFocusStatsViews = [] atom.commands.add 'atom-workspace', 'line-focus-stats:toggle': => @toggle() enabled = fals...
Modify enabled state when activated.
Modify enabled state when activated.
CoffeeScript
mit
rooa/line-focus-stats
87516c247bd60bbb6f42c3bf7dccae8f63c6d59e
source/assets/javascripts/components/_components.anchor-navigation.coffee
source/assets/javascripts/components/_components.anchor-navigation.coffee
$ -> $('a[href*=#]:not([href=#])').click -> if location.pathname.replace(/^\//, '') == @pathname.replace(/^\//, '') and location.hostname == @hostname target = $(@hash) target = if target.length then target else $('[name=' + @hash.slice(1) + ']') if target.length $('html,body').animate {...
$ -> $('a[href*=#]:not([href=#])').click -> if location.pathname.replace(/^\//, '') == @pathname.replace(/^\//, '') and location.hostname == @hostname target = $(@hash) target = if target.length then target else $('[name=' + @hash.slice(1) + ']') if target.length $('html,body').animate {...
Reduce achor navigation animation time
Reduce achor navigation animation time
CoffeeScript
mit
kandebonfim/keep-talking-and-nobody-explodes,kandebonfim/keep-talking-and-nobody-explodes,kandebonfim/keep-talking-and-nobody-explodes
87913399f10747aadb4c44db6a380ad299969712
app/assets/javascripts/common/components/episodeRatingStateChart.js.coffee
app/assets/javascripts/common/components/episodeRatingStateChart.js.coffee
_ = require "lodash" d3Selection = require "d3-selection" DonutChart = require "britecharts/dist/umd/donut.min" module.exports = template: '<div class="c-episode-rating-state-chart"></div>' props: initDataset: type: String required: true data: -> dataset: _.sortBy JSON.parse(@initDataset), ...
_ = require "lodash" d3Selection = require "d3-selection" DonutChart = require "britecharts/dist/umd/donut.min" module.exports = template: '<div class="c-episode-rating-state-chart"></div>' props: initDataset: type: String required: true data: -> dataset: _.sortBy JSON.parse(@initDataset), ...
Remove colors which corresponded to status if its quantity is zero (Take.3)
Remove colors which corresponded to status if its quantity is zero (Take.3)
CoffeeScript
apache-2.0
elzzup/annict,elzzup/annict,annict/annict,elzzup/annict,annict/annict,annict/annict,annict/annict
21734dd704ecaa15afe3a723122e49df1d776de4
app/assets/javascripts/uploadcare/utils/image-loader.coffee
app/assets/javascripts/uploadcare/utils/image-loader.coffee
{ jQuery: $ } = uploadcare uploadcare.namespace 'utils', (ns) -> trackLoading = (image, src) -> def = $.Deferred() if src image.src = src if image.complete def.resolve(image) else $(image).one 'load', => def.resolve(image) $(image).one 'error', => def.reje...
{ jQuery: $ } = uploadcare uploadcare.namespace 'utils', (ns) -> trackLoading = (image, src) -> def = $.Deferred() if src image.src = src if image.complete def.resolve(image) else $(image).one 'load', => def.resolve(image) $(image).one 'error', => def.reje...
Fix videoLoader. Run `load` for HTMLElement instead jQuery el.
Fix videoLoader. Run `load` for HTMLElement instead jQuery el.
CoffeeScript
bsd-2-clause
uploadcare/uploadcare-widget,uploadcare/uploadcare-widget