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 |
|---|---|---|---|---|---|---|---|---|---|
91601f2c8a68516873b18d8a4c150c147dfb04d6 | modules/atom/config/keymap.cson | modules/atom/config/keymap.cson | '.platform-win32, .platform-linux':
'alt-\\': 'unset!' # tree-view:toggle-focus default
'ctrl-|': 'unset!' # tree-view:reveal-active-file default
'ctrl-\\': 'unset!' # tree-view:toggle default
'ctrl-0': 'tree-view:reveal-active-file'
'ctrl-h': 'find-and-replace:show'
'ctrl-\\': 'pane:split-right'
'atom-wor... | '.platform-win32, .platform-linux':
'alt-\\': 'unset!' # tree-view:toggle-focus default
'ctrl-|': 'unset!' # tree-view:reveal-active-file default
'ctrl-\\': 'unset!' # tree-view:toggle default
'ctrl-0': 'tree-view:reveal-active-file'
'ctrl-h': 'find-and-replace:show'
'ctrl-\\': 'pane:split-right'
'atom-wor... | Add ctrl-shift-w to close all tabs | [atom] Add ctrl-shift-w to close all tabs
| CoffeeScript | mit | Tyriar/dotfiles,Tyriar/dotfiles,Tyriar/dotfiles,Tyriar/tyr-tools,Tyriar/tyr-tools |
6287f777e46709a3467ebae6e8a23611659effe0 | app/assets/javascripts/modules/timelet/views/composites/timelets.js.coffee | app/assets/javascripts/modules/timelet/views/composites/timelets.js.coffee | # Collection view of timelets.
#
# The @collection will render as an index of timelets which can be
# loaded into the clock.
#
class Essence.Views.Timelets extends Backbone.Marionette.CompositeView
template: 'modules/timelet/templates/timelets'
itemViewContainer: 'ul'
itemView: Essence.Views.Timelet
emptyView... | # Collection view of timelets.
#
# The @collection will render as an index of timelets which can be
# loaded into the clock.
#
class Essence.Views.Timelets extends Backbone.Marionette.CompositeView
template: 'modules/timelet/templates/timelets'
itemViewContainer: 'ul'
itemView: Essence.Views.Timelet
emptyView... | Add a placeholder name for new timelets. | Add a placeholder name for new timelets.
| CoffeeScript | mit | kaethorn/essence |
fe72ddd7ea77e628b16f079451d95b44ebbbd003 | lib/go-to-view.coffee | lib/go-to-view.coffee | path = require 'path'
Q = require 'q'
SymbolsView = require './symbols-view'
TagReader = require './tag-reader'
module.exports =
class GoToView extends SymbolsView
constructor: (@stack) ->
super
toggle: ->
if @hasParent()
@cancel()
else
@populate()
beforeRemove: ->
@deferredFind?.re... | path = require 'path'
Q = require 'q'
SymbolsView = require './symbols-view'
TagReader = require './tag-reader'
module.exports =
class GoToView extends SymbolsView
constructor: (@stack) ->
super
viewForItem: ({position, name, file}) ->
$$ ->
@li class: 'two-lines', =>
@div name, class: 'prim... | Duplicate code in SymbolsView for futher modification | Duplicate code in SymbolsView for futher modification
| CoffeeScript | mit | harai/atom-gnu-global,kainwinterheart/symbols-view,atom/symbols-view,harai/atom-gnu-global,spencerlyon2/symbols-view,rodumani/symbols-view,rodumani/symbols-view,changjej/symbols-view,spencerlyon2/symbols-view,changjej/symbols-view |
8fe46adc0c550e2e370c7e43861801a8c71982cd | client/lib/cordova/keyboard-fix.coffee | client/lib/cordova/keyboard-fix.coffee | if Meteor.isCordova
if device.platform.toLowerCase() isnt 'android'
document.addEventListener 'deviceready', ->
cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
cordova.plugins.Keyboard.disableScroll(true);
window.addEventListener 'native.keyboardshow', ->
$('.main-content').css 'height', window.... | if Meteor.isCordova
document.addEventListener 'deviceready', ->
if device?.platform.toLowerCase() isnt 'android'
cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
cordova.plugins.Keyboard.disableScroll(true);
window.addEventListener 'native.keyboardshow', ->
if device?.platform.toLowerCase() isnt 'a... | Fix error with device not defined | Fix error with device not defined
| CoffeeScript | mit | VoiSmart/Rocket.Chat,flaviogrossi/Rocket.Chat,timkinnane/Rocket.Chat,danielbressan/Rocket.Chat,tntobias/Rocket.Chat,lukaroski/traden,alexbrazier/Rocket.Chat,JisuPark/Rocket.Chat,soonahn/Rocket.Chat,madmanteam/Rocket.Chat,Flitterkill/Rocket.Chat,igorstajic/Rocket.Chat,philosowaffle/rpi-Rocket.Chat,igorstajic/Rocket.Chat... |
d39d6742e47f2be6894fff4757367c8ccf76a422 | lib/init.coffee | lib/init.coffee | module.exports =
configDefaults:
clangExecutablePath: null
clangIncludePath: '.'
clangSuppressWarnings: false
clangDefaultCFlags: '-Wall'
clangDefaultCppFlags: '-Wall'
activate: ->
console.log 'activate linter-clang'
| module.exports =
configDefaults:
clangCommand: 'clang'
clangPlusPlusCommand: 'clang++'
clangExecutablePath: null
clangIncludePath: '.'
clangSuppressWarnings: false
clangDefaultCFlags: '-Wall'
clangDefaultCppFlags: '-Wall'
activate: ->
console.log 'activate linter-clang'
| Add Atom Configuration Variables for Commands | Add Atom Configuration Variables for Commands | CoffeeScript | mit | k2b6s9j/linter-emscripten,k2b6s9j/linter-emscripten,k2b6s9j/linter-emscripten |
6ba20f9cb69f105e93fd29c28b032f8bc63d0f42 | config/webpack/base-config.coffee | config/webpack/base-config.coffee | module.exports =
module:
loaders: [{test: /\.coffee$/, loader: 'coffee'}]
resolve:
root: '.'
extensions: ['', '.coffee', '.js']
moduleDirectories: ['node_modules']
| module.exports =
module:
loaders: [
{test: /\.coffee$/, loader: 'coffee'}
{test: /knockout.build.output.knockout-latest\.js/, loader: 'imports?require=>false'}
]
resolve:
root: '.'
extensions: ['', '.coffee', '.js']
moduleDirectories: ['node_modules']
| Remove second copy of knockout from build | Remove second copy of knockout from build
| CoffeeScript | mit | kmalakoff/knockback,abradley2/knockback,kmalakoff/knockback,abradley2/knockback |
9469e8eaeb44a37664a67a006644c99d1325e561 | packages/landsofillusions/memory/actions/move.coffee | packages/landsofillusions/memory/actions/move.coffee | LOI = LandsOfIllusions
AM = Artificial.Mummification
Nodes = LOI.Adventure.Script.Nodes
class LOI.Memory.Actions.Move extends LOI.Memory.Action
# content:
# landmark: the named point or object that can be looked up to get its coordinates
# coordinates: direct location coordinates, if landmark is not specifi... | LOI = LandsOfIllusions
AM = Artificial.Mummification
Nodes = LOI.Adventure.Script.Nodes
class LOI.Memory.Actions.Move extends LOI.Memory.Action
# content:
# landmark: the named point or object that can be looked up to get its coordinates
# coordinates: direct location coordinates, if landmark is not specifi... | Fix for moving to a new location. | Fix for moving to a new location.
| CoffeeScript | agpl-3.0 | Retronator/Pixel-Art-Academy,Retronator/Pixel-Art-Academy,Retronator/Pixel-Art-Academy |
f937f88c0399a065951706577644b7155a217ee0 | keymaps/markdown-preview.cson | keymaps/markdown-preview.cson | '.workspace .editor':
'ctrl-M': 'markdown-preview:toggle'
'.platform-darwin .markdown-preview':
'cmd-+': 'markdown-preview:zoom-in'
'cmd-=': 'markdown-preview:zoom-in'
'cmd--': 'markdown-preview:zoom-out'
'cmd-_': 'markdown-preview:zoom-out'
'cmd-0': 'markdown-preview:reset-zoom'
'.platform-win32 .markdow... | '.workspace, .workspace .editor':
'ctrl-M': 'markdown-preview:toggle'
'.platform-darwin .markdown-preview':
'cmd-+': 'markdown-preview:zoom-in'
'cmd-=': 'markdown-preview:zoom-in'
'cmd--': 'markdown-preview:zoom-out'
'cmd-_': 'markdown-preview:zoom-out'
'cmd-0': 'markdown-preview:reset-zoom'
'.platform-wi... | Increase specificity of toggle-preview keybinding | Increase specificity of toggle-preview keybinding | CoffeeScript | mit | rugk/markdown-preview,atom/markdown-preview,ArnaudRinquin/markdown-preview,makyo/markdown-preview,grimmer0125/markdown-preview-kramdown,sctlee/markdown-preview,tkssharma/markdown-preview,Galadirith/markdown-preview |
f3fb3e5653886a7fd25ffe184b9c2f91b4c3487b | client/rider/eta/displayETA.coffee | client/rider/eta/displayETA.coffee | Template.displayETA.arrivals = (direction)->
stop = Session.get 'etaStop'
if not stop
return
return Arrivals.find({ station: stop, direction: direction },{ sort: ['next_arr'] })
Template.displayETA.hasDirection = (direction)->
stop = Session.get 'etaStop'
if not stop
return false
return Arrivals.fi... | Template.displayETA.arrivals = (direction)->
stop = Session.get 'etaStop'
if not stop
return
return Arrivals.find({ station: stop, direction: direction },{ sort: ['next_arr'] })
Template.displayETA.hasDirection = (direction)->
stop = Session.get 'etaStop'
if not stop
return false
return Arrivals.fi... | Add bankhead to terminal stations list | Add bankhead to terminal stations list
| CoffeeScript | mit | CyCoreSystems/transport,theelee13/Algos,theelee13/Algos,CyCoreSystems/transport |
c3ba9272584041db477e3c9f3a1f1d4fa11e1850 | app/assets/javascripts/flyover_comments/comments.coffee | app/assets/javascripts/flyover_comments/comments.coffee | $ ->
$("[data-flyover-comments-reply-link='true']").click (e)->
e.preventDefault()
parentId = $(@).data("parent-id")
appendToId = $(@).data("append-to")
container = $(@).attr("href")
if $(container).children(".flyover-comment-reply-form").length
$(container).children(".flyover-comment-reply... | $ ->
$("[data-flyover-comments-reply-link='true']").click (e)->
e.preventDefault()
parentId = $(@).data("parent-id")
container = $(@).attr("href")
if $(container).children(".flyover-comment-reply-form").length
$(container).children(".flyover-comment-reply-form").remove()
else
$f = $("... | Append comment replies to the replies div now that we have one | Append comment replies to the replies div now that we have one
| CoffeeScript | mit | FlyoverWorks/flyover_comments,CultivateLabs/flyover_comments,FlyoverWorks/flyover_comments,CultivateLabs/flyover_comments,CultivateLabs/flyover_comments,FlyoverWorks/flyover_comments |
1615e6247cadd6b37a6165d3aa37b387133d78ad | keymaps/hydrogen.cson | keymaps/hydrogen.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... | Make keymaps consistent with nteract and jupyter notebook | Make keymaps consistent with nteract and jupyter notebook
| CoffeeScript | mit | n-riesco/hydrogen,xanecs/hydrogen,rgbkrk/hydrogen,lgeiger/hydrogen,nteract/hydrogen,nteract/hydrogen |
6ad8275cf195104ef767956d582ec8dae3a7508a | lib/break.coffee | lib/break.coffee | BreakView = require './break-view'
module.exports =
breakView: null
# In miliseconds
breakInterval: 300000 # 5 minute default
breakLength: 60000 # 1 minute defualt
activate: (state) ->
# Start Timer
@timer()
deactivate: ->
@breakView.destroy()
serialize: ->
breakViewState: @breakView.... | BreakView = require './break-view'
module.exports =
breakView: null
# In miliseconds
breakInterval: 300000 # 5 minute default
breakLength: 60000 # 1 minute defualt
activate: (@state) ->
# Start Timer
@timer()
deactivate: ->
@breakView.destroy()
serialize: ->
breakViewState: @breakView... | Fix bugs in scaffolding causing overlay not to appear. | Fix bugs in scaffolding causing overlay not to appear.
| CoffeeScript | mit | VernonGrant/break |
a95d28294a74e4969b6170b137da70bce1748725 | test/spec/lib/command-store.coffee | test/spec/lib/command-store.coffee | require ["/extension/command-store.js"], ->
describe "CommandStore", ->
describe "#mergeCommands", ->
beforeEach ->
command = gistID: 1, name: "Test"
CommandStore.commands = [command]
CommandStore.commandIndex = 1: command
it "adds commands", ->
expect(-> CommandStore... | require ["/extension/scripts/command-store.js"], ->
describe "CommandStore", ->
describe "#mergeCommands", ->
beforeEach ->
command = gistID: 1, name: "Test"
CommandStore.commands = [command]
CommandStore.commandIndex = 1: command
it "adds commands", ->
expect(-> Comm... | Set the correct require path in the command store tests | Set the correct require path in the command store tests
| CoffeeScript | mit | JoelBesada/Backtick |
54c18917d5e7b421352b848770c8288f55468891 | src/coffee/run.coffee | src/coffee/run.coffee | CSV = require('csv')
Q = require('q')
argv = require('optimist')
.usage('Usage: $0 --types product-types.csv --attributes product-types-attributes.csv --target ./')
.demand(['types', 'attributes', 'target'])
.argv
ProductTypeGenerator = require('../main').ProductTypeGenerator
options =
target: argv.target
#... | CSV = require('csv')
Q = require('q')
argv = require('optimist')
.usage('Usage: $0 --types [CSV] --attributes [CSV] --target [folder] --retailer [boolean]')
.alias('types', 't')
.alias('attributes', 'a')
.alias('target', 't')
.alias('retailer', 'r')
.default('retailer', false)
.describe('types', 'Path to... | Add argument for master/retailer mode. Add argument descriptions. | Add argument for master/retailer mode. Add argument descriptions.
| CoffeeScript | mit | sphereio/sphere-product-type-json-generator,sphereio/sphere-product-type-json-generator,sphereio/sphere-product-type-json-generator |
3ddf57bd2cf41ba2baf30ad942bd2d013bf6f0b8 | spec/minimap-view-spec.coffee | spec/minimap-view-spec.coffee | {WorkspaceView} = require 'atom'
Minimap = require '../lib/minimap'
editorView = null
describe "MinimapView", ->
beforeEach ->
runs ->
# atom.config.set 'minimap', Minimap.configDefaults
atom.workspaceView = new WorkspaceView
waitsForPromise ->
atom.workspaceView.open('sample.js')
... | {WorkspaceView} = require 'atom'
Minimap = require '../lib/minimap'
editorView = null
describe "MinimapView", ->
beforeEach ->
runs ->
atom.config.set 'minimap', Minimap.configDefaults
atom.workspaceView = new WorkspaceView
waitsForPromise ->
atom.workspaceView.open('sample.js')
ru... | Add log to fix last failing test | Add log to fix last failing test
| CoffeeScript | mit | atom-minimap/minimap,xndcn/atom-minimap |
0dfd985178a203d5b6e5dc2812a87c7f499f7875 | src/view/bindings/radio_binding.coffee | src/view/bindings/radio_binding.coffee | #= require ./abstract_binding
class Batman.DOM.RadioBinding extends Batman.DOM.AbstractBinding
isInputBinding: true
dataChange: (value) ->
# don't overwrite `checked` attributes in the HTML unless a bound
# value is defined in the context. if no bound value is found, bind
# to the key if the node is ch... | #= require ./abstract_binding
class Batman.DOM.RadioBinding extends Batman.DOM.AbstractBinding
constructor: (node) ->
super
@set 'filteredValue', node.value if node.checked
dataChange: (value) ->
boundValue = @get 'filteredValue'
@node.checked = (boundValue is Batman.DOM.attrReaders._parseAttribut... | Clean up radio bindings and properly set node string values. | Clean up radio bindings and properly set node string values.
| CoffeeScript | mit | getshuvo/batman,getshuvo/batman |
79e232b1c324ecdaf7c4f52015312e45565fa725 | src/PreferPoetMode.coffee | src/PreferPoetMode.coffee | twoParensTogether = (api) ->
prior = api.peek -1
prior[0] is 'CALL_START' and prior[1] is '('
closingParenWasExplicit = (token) ->
not token.generated
closingParenAtEndOfLine = (api) ->
next = api.peek 1
next[0] is 'TERMINATOR' and next[1] is '\n'
module.exports = class PreferPoetMode
rule:
name: 'pr... | twoParensTogether = (api) ->
prior = api.peek -1
prior[0] is 'CALL_START' and prior[1] is '('
closingParenWasExplicit = (token) ->
not token.generated
closingParenAtEndOfLine = (api) ->
next = api.peek 1
next[0] is 'TERMINATOR' and next[1] is '\n'
module.exports = class PreferPoetMode
rule:
name: 'pr... | Update description of "Poet Mode" | Update description of "Poet Mode"
| CoffeeScript | mit | jedcn/coffeelint-prefer-poet-mode |
7b05a19d653971c33d102551ffdc338797d28ed1 | app/components/markdown-editor.cjsx | app/components/markdown-editor.cjsx | React = require 'react'
Markdown = require './markdown'
module.exports = React.createClass
displayName: 'MarkdownEditor'
getInitialState: ->
previewing: false
value: @props.defaultValue ? ''
render: ->
previewing = @props.previewing ? @state.previewing
<div className={['markdown-editor', @prop... | React = require 'react'
Markdown = require './markdown'
module.exports = React.createClass
displayName: 'MarkdownEditor'
getInitialState: ->
previewing: false
value: @props.defaultValue ? ''
getDefaultProps: ->
rows: '5'
render: ->
previewing = @props.previewing ? @state.previewing
<div... | Remove transferPropsTo from markdown editor | Remove transferPropsTo from markdown editor
| CoffeeScript | apache-2.0 | mrniaboc/Panoptes-Front-End,marten/Panoptes-Front-End,zooniverse/Panoptes-Front-End,CKrawczyk/Panoptes-Front-End,tfmorris/Panoptes-Front-End,edpaget/Panoptes-Front-End,alexbfree/Panoptes-Front-End,camallen/Panoptes-Front-End,amyrebecca/Panoptes-Front-End,aliburchard/Panoptes-Front-End,parrish/Panoptes-Front-End,jelliot... |
8f10ccf2b6ec77449e0070ea2927b65b3c4ebfc7 | bokehjs/src/coffee/node_main.coffee | bokehjs/src/coffee/node_main.coffee | path = require "path"
assert = require "assert"
rootRequire = require("root-require")
root = rootRequire.packpath.parent()
pkg = rootRequire("./package.json")
module.constructor.prototype.require = (modulePath) ->
assert(modulePath, 'missing path')
assert(typeof modulePath == 'string', 'path must be a string')
... | path = require "path"
assert = require "assert"
rootRequire = require("root-require")
root = rootRequire.packpath.parent()
pkg = rootRequire("./package.json")
module.constructor.prototype.require = (modulePath) ->
assert(modulePath, 'missing path')
assert(typeof modulePath == 'string', 'path must be a string')
... | Allow to optionally load widgets in node.js package | Allow to optionally load widgets in node.js package
| CoffeeScript | bsd-3-clause | aiguofer/bokeh,stonebig/bokeh,rs2/bokeh,rs2/bokeh,jakirkham/bokeh,philippjfr/bokeh,timsnyder/bokeh,aavanian/bokeh,mindriot101/bokeh,schoolie/bokeh,jakirkham/bokeh,aiguofer/bokeh,philippjfr/bokeh,bokeh/bokeh,aavanian/bokeh,azjps/bokeh,rs2/bokeh,Karel-van-de-Plassche/bokeh,bokeh/bokeh,bokeh/bokeh,bokeh/bokeh,dennisobrien... |
d1f372e439693fd56311b66f130934b9f90c4abe | tasks/update-atom-shell-task.coffee | tasks/update-atom-shell-task.coffee | module.exports = (grunt) ->
{spawn} = require('./task-helpers')(grunt)
grunt.registerTask 'update-atom-shell', 'Update atom-shell', ->
done = @async()
spawn cmd: 'script/update-atom-shell', (error) -> done(error)
| path = require 'path'
module.exports = (grunt) ->
{spawn} = require('./task-helpers')(grunt)
getAtomShellVersion = ->
versionPath = path.join('atom-shell', 'version')
if grunt.file.isFile(versionPath)
grunt.file.read(versionPath).trim()
else
null
grunt.registerTask 'update-atom-shell', ... | Rebuild native modules when atom-shell is upgraded | Rebuild native modules when atom-shell is upgraded
Spawn an apm rebuild when the atom shell version changes
after running the update-atom-shell script.
Closes #618
| CoffeeScript | mit | deepfox/atom,mdumrauf/atom,AdrianVovk/substance-ide,splodingsocks/atom,RobinTec/atom,RuiDGoncalves/atom,davideg/atom,Shekharrajak/atom,beni55/atom,Ingramz/atom,russlescai/atom,FIT-CSE2410-A-Bombs/atom,batjko/atom,h0dgep0dge/atom,scv119/atom,sillvan/atom,tony612/atom,dsandstrom/atom,jjz/atom,hharchani/atom,sxgao3001/ato... |
87e8da86c29af0979c9ed18d577979d279dcdb65 | src/app/server.coffee | src/app/server.coffee | express = require("express")
path = require("path")
http = require("http")
app = express()
app.set "port", process.env.PORT || 3000
# Log requests to the console
app.use express.logger "dev"
# Allow the app to read JSON from the body in POSTs and PUTs
app.use express.bodyParser()
# OS-agnostic way of going up two dire... | express = require("express")
path = require("path")
http = require("http")
app = express()
app.set "port", process.env.PORT || 3000
# Log requests to the console
app.use express.logger "dev"
# Allow the app to read JSON from the body in POSTs and PUTs
app.use express.bodyParser()
# OS-agnostic way of going up two d... | Move from 4 to 2 spaces in coffeescript | Move from 4 to 2 spaces in coffeescript
| CoffeeScript | agpl-3.0 | meducation/front-end,meducation/front-end |
04667ca236cef3428c3fdddb4c37dcfe2bba6e53 | src/core/utils.coffee | src/core/utils.coffee | path = require 'path'
async = require 'async'
topl = require 'topl'
fs = undefined
try
fs = require 'graceful-fs'
catch error
fs = require 'fs'
fileExists = fs.exists or path.exists
# Read and parse a TOML file.
#
# filename - The String path to a TOML file.
# callback - The Function called after parsing.
#
# R... | path = require 'path'
async = require 'async'
topl = require 'topl'
fs = undefined
try
fs = require 'graceful-fs'
catch error
fs = require 'fs'
fileExists = fs.exists or path.exists
# Read and parse a TOML file.
#
# filename - The String path to a TOML file.
# callback - The Function called after parsing.
#
# R... | Read config.toml by using a stream | Read config.toml by using a stream
| CoffeeScript | mit | KenanY/nwitch |
5c9f8e5feea656b22b378079c1be5551e008a5d4 | Gruntfile.coffee | Gruntfile.coffee | module.exports = (grunt) ->
grunt.loadNpmTasks('grunt-contrib-coffee')
grunt.loadNpmTasks('grunt-contrib-jshint')
grunt.loadNpmTasks('grunt-contrib-watch')
grunt.loadNpmTasks('grunt-mocha-cov')
grunt.initConfig
pkg: grunt.file.readJSON('package.json')
jshint:
options:
jshintrc: '.jsh... | module.exports = (grunt) ->
grunt.loadNpmTasks('grunt-contrib-coffee')
grunt.loadNpmTasks('grunt-contrib-jshint')
grunt.loadNpmTasks('grunt-contrib-watch')
grunt.loadNpmTasks('grunt-mocha-cov')
grunt.initConfig
pkg: grunt.file.readJSON('package.json')
jshint:
options:
jshintrc: '.jsh... | Fix typo in mochacov config | Fix typo in mochacov config
Signed-off-by: Jean-Denis Vauguet <ff9dedefe9ee78b3339d23163d8b29a3c83c6016@vauguet.fr>
| CoffeeScript | mit | chikamichi/jquery.circular |
e47435cdbf21b6588a2391a0bee55b0f343d61c6 | app/scripts/app.coffee | app/scripts/app.coffee | 'use strict'
app = angular
.module('taarifaWaterpointsApp', [
'ngResource',
'ngRoute',
'leaflet-directive',
'dynform',
'angular-flash.service',
'angular-flash.flash-alert-directive',
'gettext',
'ui.bootstrap'
])
.config ($routeProvider, $httpProvider, flashProvider) ->
$routeP... | 'use strict'
app = angular
.module('taarifaWaterpointsApp', [
'ngResource',
'ngRoute',
'leaflet-directive',
'dynform',
'angular-flash.service',
'angular-flash.flash-alert-directive',
'gettext',
'ui.bootstrap'
])
.config ($routeProvider, $httpProvider, flashProvider) ->
$routeP... | Add route /requests for requests view | Add route /requests for requests view
| CoffeeScript | apache-2.0 | gwob/Maarifa,gwob/Maarifa,gwob/Maarifa,gwob/Maarifa,gwob/Maarifa |
b81a94aafbe67c123b71a8fbec89b2034310d340 | lib/go-to-view.coffee | lib/go-to-view.coffee | path = require 'path'
Q = require 'q'
SymbolsView = require './symbols-view'
TagReader = require './tag-reader'
module.exports =
class GoToView extends SymbolsView
toggle: ->
if @panel.isVisible()
@cancel()
else
@populate()
beforeRemove: ->
@deferredFind?.resolve([])
findTag: (editor) -... | path = require 'path'
Q = require 'q'
SymbolsView = require './symbols-view'
TagReader = require './tag-reader'
module.exports =
class GoToView extends SymbolsView
toggle: ->
if @panel.isVisible()
@cancel()
else
@populate()
detached: ->
@deferredFind?.resolve([])
findTag: (editor) ->
... | Use ::detached instead of ::beforeRemove hook | Use ::detached instead of ::beforeRemove hook | CoffeeScript | mit | harai/atom-gnu-global,rodumani/symbols-view,changjej/symbols-view,kainwinterheart/symbols-view,spencerlyon2/symbols-view,atom/symbols-view,harai/atom-gnu-global,rodumani/symbols-view,changjej/symbols-view,spencerlyon2/symbols-view |
411fe3eef50f8278d6a8c462ffd3aea7b013e1a9 | src/code/data/migrations/23_add_simulation_type.coffee | src/code/data/migrations/23_add_simulation_type.coffee | AppSettingsStore = require('../../stores/app-settings-store').store
migration =
version: "1.22.0"
description: "Add simulation type"
date: "2018-03-30"
doUpdate: (data) ->
data.settings ?= {}
# previous complexities were:
# 0: diagram only
# 1: basic relationships
# 2: expanded relatio... | AppSettingsStore = require('../../stores/app-settings-store').store
migration =
version: "1.22.0"
description: "Add simulation type"
date: "2018-03-30"
doUpdate: (data) ->
data.settings ?= {}
# previous complexities were:
# 0: diagram only
# 1: basic relationships
# 2: expanded relatio... | Fix case where importing complexity = 0 | Fix case where importing complexity = 0
[#156480860] | CoffeeScript | mit | concord-consortium/building-models,concord-consortium/building-models,concord-consortium/building-models,concord-consortium/building-models,concord-consortium/building-models |
15980a9f055a594fec3a85717fc3c66b10ebad3a | src/scripts/modules/media/footer/metadata/metadata.coffee | src/scripts/modules/media/footer/metadata/metadata.coffee | define (require) ->
settings = require('settings')
FooterTabView = require('cs!../inherits/tab/tab')
template = require('hbs!./metadata-template')
require('less!./metadata')
return class MetadataView extends FooterTabView
template: template
templateHelpers: () ->
model = super()
model.lan... | define (require) ->
settings = require('settings')
FooterTabView = require('cs!../inherits/tab/tab')
template = require('hbs!./metadata-template')
require('less!./metadata')
return class MetadataView extends FooterTabView
template: template
templateHelpers: () ->
model = super()
model.lan... | Use a function to determine value | Use a function to determine value
| CoffeeScript | agpl-3.0 | katalysteducation/webview,carolinelane10/webview,Connexions/webview,dak/webview,Connexions/webview,katalysteducation/webview,katalysteducation/webview,Connexions/webview,dak/webview,dak/webview,katalysteducation/webview,Connexions/webview |
e39a1158125f6c1b4b445a71339bf6e1e40f3c02 | controllers/stock-controller.coffee | controllers/stock-controller.coffee | request = require 'request'
_ = require 'lodash'
class StockController
lastTradePrice: (req, res) =>
@request req.params.symbol, (error, response, body) =>
return res.status(500).send(error) if error?
res.status(response.statusCode).send(body)
request: (symbol, callback=->) =>
options =
... | request = require 'request'
_ = require 'lodash'
class StockController
lastTradePrice: (req, res) =>
@request req.params.symbol, (error, response, body) =>
return res.status(500).send(error) if error?
res.status(response.statusCode).send price: parseFloat(body)
request: (symbol, callback=->)... | Return JSON object instead of a primitive | Return JSON object instead of a primitive
| CoffeeScript | mit | octoblu/stock-service,octoblu/stock-service |
b19c091a7ac0555c27907ea228fa2d79a993dc40 | plugins/bugherd/index.coffee | plugins/bugherd/index.coffee | NotificationPlugin = require '../../notification-plugin'
Handlebars = require 'handlebars'
url = require 'url'
module.exports = class BugHerd extends NotificationPlugin
# Resolve the bugs rest api endpoint
tasksUrl = (config) ->
"https://www.bugherd.com/api_v2/projects/#{config.projectId}/tasks.json"
# Par... | NotificationPlugin = require '../../notification-plugin'
Handlebars = require 'handlebars'
url = require 'url'
module.exports = class BugHerd extends NotificationPlugin
# Resolve the bugs rest api endpoint
tasksUrl = (config) ->
"https://www.bugherd.com/api_v2/projects/#{config.projectId}/tasks.json"
# Par... | Add error url to BugHerd | Add error url to BugHerd
| CoffeeScript | mit | sharesight/bugsnag-notification-plugins,korealert/bugsnag-notification-plugins,6wunderkinder/bugsnag-notification-plugins,indirect/bugsnag-notification-plugins,cagedata/bugsnag-notification-plugins,korealert/bugsnag-notification-plugins,jacobmarshall/bugsnag-notification-plugins,kstream001/bugsnag-notification-plugins,... |
703bd84bad8b1f94c6afd308b0a1f3f115ec056e | apps/atom/atom.symlink/init.coffee | apps/atom/atom.symlink/init.coffee | # Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to make opened Markdown files always be soft wrapped:
#
# path = require 'path'
#
atom.workspaceView.eachEdit... | # Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# Make opened Markdown files always be soft wrapped:
path = require 'path'
atom.workspaceView.eachEditorView (editorView) ->
... | Fix autosoft wrap for md files in Atom | Fix autosoft wrap for md files in Atom
| CoffeeScript | mit | iDams/setup,MoOx/setup,MoOx/setup,iDams/setup,Macxim/dotfiles,MoOx/setup |
bc917a269caf781b65d31ba39cbeb56d5c8e8619 | src/hello-world.coffee | src/hello-world.coffee | module.exports = (robot) ->
robot.respond /hello/, (msg) ->
msg.reply "hello!"
robot.hear /orly/, ->
msg.send "yarly"
| module.exports = (robot) ->
robot.respond /hello/, (msg) ->
msg.reply "hello!"
robot.hear /orly/, ->
msg.send "yarly"
cuteMe = (msg) ->
msg.http("http://api.dailycute.com.net/v1/posts/all")
.get() (body) ->
results = JSON.parse(body)
msg.send (msg.random results.posts).image_sr... | Add API call to Daily Cute and pick image using msg.random. | Add API call to Daily Cute and pick image using msg.random.
| CoffeeScript | mit | hubot-scripts/hubot-cute-me,sarboc/hubot-cute-me |
1ae8a2569afab2aed102910c3dc57462349dd85d | scripts/captain-quail.coffee | scripts/captain-quail.coffee | # Description:
# The Adventures of Captain Quail, now in you chat!
#
# Dependencies:
# "htmlparser": "1.7.6"
# "soupselect": "0.2.0"
#
# Configuration:
# None
#
# Commands:
# hubot cq - The latest Adventures of Captain Quail
#
# Author:
# phildini
htmlparser = require "htmlparser"
Select = require("soupsel... | # Description:
# The Adventures of Captain Quail, now in you chat!
#
# Dependencies:
# "htmlparser": "1.7.6"
# "soupselect": "0.2.0"
#
# Configuration:
# None
#
# Commands:
# hubot cq - The latest Adventures of Captain Quail
#
# Author:
# phildini
htmlparser = require "htmlparser"
Select = require("soupsel... | Add a link to the image to display the comic. | Add a link to the image to display the comic.
| CoffeeScript | mit | ImmaculateObsession/angel |
b1c3cf10b154f7472bdc239162637a85e4a2aa69 | app/meetup.coffee | app/meetup.coffee | ###
Module to fetch meetup events
@author Snorre Magnus Davøen
###
###
{
"title": "Event title",
"source": "http://url.com",
"date": [timestamp],
"location": {
"address": "Addressen til greien",
"name": "hvis det er et navn på stedet (f.eks Kvarteret/Landmark)",
"lon": 10
"lat": 10
}
}
###
m... | ###
Module to fetch meetup events
@author Snorre Magnus Davøen
###
###
{
"title": "Event title",
"source": "http://url.com",
"date": [timestamp],
"location": {
"address": "Addressen til greien",
"name": "hvis det er et navn på stedet (f.eks Kvarteret/Landmark)",
"lon": 10
"lat": 10
}
}
###
... | Add getEvents and Regex stuff | Add getEvents and Regex stuff
Added function getEvents to get any number of events based on a query
object’s ids property. The value should be an array of event ids.
Added rmulti-line regular expression that matches Meetup events, and
captures the id.
Need to implement an event parsing function that parses the JSON
... | CoffeeScript | mit | pilsprog/paraply2,pilsprog/paraply2 |
53eb90beadf8017258bc4f817c6aa3ba88465597 | app.coffee | app.coffee | express = require("express")
routes = require("./routes")
app = module.exports = express.createServer()
app.configure ->
app.set "views", __dirname + "/views"
app.set "view engine", "jade"
app.use express.bodyParser()
app.use express.methodOverride()
app.use app.router
app.use express.static(__dirname + "/a... | express = require("express")
routes = require("./routes")
app = module.exports = express.createServer()
app.configure ->
app.set "views", __dirname + "/views"
app.set "view engine", "jade"
app.use express.bodyParser()
app.use express.methodOverride()
app.use app.router
app.use express.static(__dirname + "/a... | Fix typo: PORT is capitalized | Fix typo: PORT is capitalized
| CoffeeScript | mit | lidavidm/webgl-fantasy,lidavidm/webgl-fantasy,lidavidm/webgl-fantasy |
e1a9de5b54e9f0336ea3b74f54f3ff898945cfd9 | 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: (filePath, image) =>
@filePath = filePath
@image = im... | {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: (filePath, image) =>
@filePath = filePath
@image = im... | Remove spaces from image size view | Remove spaces from image size view
| CoffeeScript | mit | atom/image-view |
300fd5f57c1e3d611819163510ae26da2b437967 | client/skr/screens/fresh-books-import/FreshBooksImport.cjsx | client/skr/screens/fresh-books-import/FreshBooksImport.cjsx | ##= require_self
##= require ./Import
##= require ./ApiInfo
##= require ./ChooseRecords
##= require ./ViewRecords
class Skr.Screens.FreshBooksImport extends Skr.Screens.Base
modelForAccess: 'invoice'
getInitialState: -> isEditing: true
dataObjects:
import: ->
new Skr.Screens.FreshBooksI... | ##= require_self
##= require ./Import
##= require ./ApiInfo
##= require ./ChooseRecords
##= require ./ViewRecords
class Skr.Screens.FreshBooksImport extends Skr.Screens.Base
modelForAccess: 'invoice'
getInitialState: -> isEditing: true
dataObjects:
import: ->
new Skr.Screens.FreshBooksI... | Use ErroDisplay and render using function component | Use ErroDisplay and render using function component
| CoffeeScript | agpl-3.0 | argosity/stockor,argosity/stockor,argosity/stockor,argosity/stockor |
2e8972bac57461065740b0b354a34471a7e1bb5f | server/models/Checkin.coffee | server/models/Checkin.coffee | mongoose = require('mongoose')
checkinSchema = new mongoose.Schema
user: String
session: Number
checkinTime: Date
deleted: { type: Boolean, default: false }
deletedTime: Date
checkinSchema.methods.upsert = () ->
# https://jira.mongodb.org/browse/SERVER-14322
try
@checkinTime = new ... | mongoose = require('mongoose')
checkinSchema = new mongoose.Schema
user: String
session: Number
checkinTime: Date
deleted: { type: Boolean, default: false }
deletedTime: Date
checkinSchema.methods.upsert = () ->
# https://jira.mongodb.org/browse/SERVER-14322
try
@checkinTime = new ... | Set proper amount for checkins | Set proper amount for checkins
| CoffeeScript | agpl-3.0 | petr-kalinin/algoprog,petr-kalinin/algoprog,petr-kalinin/algoprog,petr-kalinin/algoprog |
4b230a64d11c02434f3de6327e38e32ed4c8a1a6 | scripts/controllers/routing.coffee | scripts/controllers/routing.coffee | define [
'jquery'
'underscore'
'backbone'
'marionette'
'cs!app'
'cs!collections/content'
'cs!views/layouts/workspace'
'less!styles/main.less'
], ($, _, Backbone, Marionette, app, content, WorkspaceLayout) ->
return new class Router extends Marionette.AppRouter
# Show Workspace
# -------
#... | define [
'jquery'
'underscore'
'backbone'
'marionette'
'cs!app'
'cs!collections/content'
'cs!views/layouts/workspace'
'less!styles/main.less'
], ($, _, Backbone, Marionette, app, content, WorkspaceLayout) ->
return new class Router extends Marionette.AppRouter
# Show Workspace
# -------
#... | Edit content on load instead of workspace | Edit content on load instead of workspace
| CoffeeScript | agpl-3.0 | oerpub/github-bookeditor,oerpub/github-bookeditor,oerpub/github-bookeditor,oerpub/bookish,oerpub/bookish |
478878636beeefcdf67294ed3f18a0cb177a2ab0 | client/ide/lib/views/chat/idechatparticipantheads.coffee | client/ide/lib/views/chat/idechatparticipantheads.coffee | ParticipantHeads = require 'activity/views/privatemessage/participantheads'
IDEChatMessageParticipantAvatar = require './idechatmessageparticipantavatar'
module.exports = class IDEChatParticipantHeads extends ParticipantHeads
setDefaultListTitle: ->
@setOption 'moreListTitle', 'Other Participants'
setVideo... | ParticipantHeads = require 'activity/views/privatemessage/participantheads'
IDEChatMessageParticipantAvatar = require './idechatmessageparticipantavatar'
module.exports = class IDEChatParticipantHeads extends ParticipantHeads
setDefaultListTitle: ->
@setOption 'moreListTitle', 'Other Participants'
setVideo... | Improve object notation to increase readability | Improve object notation to increase readability
| CoffeeScript | agpl-3.0 | kwagdy/koding-1,andrewjcasal/koding,jack89129/koding,sinan/koding,andrewjcasal/koding,mertaytore/koding,andrewjcasal/koding,rjeczalik/koding,drewsetski/koding,mertaytore/koding,sinan/koding,drewsetski/koding,drewsetski/koding,koding/koding,szkl/koding,kwagdy/koding-1,mertaytore/koding,jack89129/koding,rjeczalik/koding,... |
9948c14dbe6bd7f95b4d952e14af499dbde90313 | src/ogp_parser.coffee | src/ogp_parser.coffee | # http://ogp.me/
OgpParser = exports? and exports or @OgpParser = {}
# expects a "dom" object created by cheerio
OgpParser.execute = ($) ->
title: $("meta[property='og:title']").first().attr("content")
summary: $("meta[property='og:description']").first().attr("content")
image: $("meta[property='og:image... | # http://ogp.me/
OgpParser = exports? and exports or @OgpParser = {}
# expects a "dom" object created by cheerio
OgpParser.execute = ($) ->
title: $("meta[property='og:title']").first().attr("content")
summary: $("meta[property='og:description']").first().attr("content")
image: $("meta[property='og:image... | Add og:site_name to opengraph parser | Add og:site_name to opengraph parser | CoffeeScript | mit | Anonyfox/node-htmlcarve |
2428db958f3f70925182e94153329865cc2f5cc3 | lib/save-dialog.coffee | lib/save-dialog.coffee | Dialog = require './dialog'
Project = require './project'
projects = require './projects'
path = require 'path'
module.exports =
class SaveDialog extends Dialog
filePath: null
constructor: () ->
firstPath = atom.project.getPaths()[0]
title = path.basename(firstPath)
if atom.config.get('project-manager... | Dialog = require './dialog'
Project = require './project'
projects = require './projects'
path = require 'path'
changeCase = require 'change-case'
module.exports =
class SaveDialog extends Dialog
filePath: null
constructor: () ->
firstPath = atom.project.getPaths()[0]
title = path.basename(firstPath)
... | Use Change case to prettify | Use Change case to prettify
| CoffeeScript | mit | danielbrodin/atom-project-manager |
8c898edad716825309c25611c2ff7ca1c17c41c0 | src/pow/server.coffee | src/pow/server.coffee | http = require 'http'
nack = require 'nack/pool'
{BufferedReadStream} = require 'nack/buffered'
idle = 1000 * 60 * 15
exports.Server = class Server
constructor: (@configuration) ->
@applications = {}
@server = http.createServer (req, res) =>
@onRequest req, res
listen: (port) ->
@server.listen... | http = require 'http'
{createPool} = require 'nack/pool'
{logStream} = require 'nack/logger'
{BufferedReadStream} = require 'nack/buffered'
idle = 1000 * 60 * 15
exports.Server = class Server
constructor: (@configuration) ->
@applications = {}
@server = http.createServer (req, res) =>
... | Fix application pool creation and log child output | Fix application pool creation and log child output | CoffeeScript | mit | nlarso/pow,ysbaddaden/pow,ariporad/pow,basecamp/pow,statwonk/pow,eileencodes/pow,ariporad/pow,basecamp/pow,ysbaddaden/pow,ysbaddaden/pow,eileencodes/pow,nlarso/pow,statwonk/pow |
e5bd01267b63c93f99da70e2e5bcd89e3ca6d107 | app/src/fup/utils.coffee | app/src/fup/utils.coffee |
ledger.fup ?= {}
ledger.fup.utils ?= {}
_.extend ledger.fup.utils,
compareVersions: (v1, v2) ->
new ledger.utils.ComparisonResult v1, v2, (v1, v2) ->
if v1[0] == v2[0] and v1[1] == v2[1]
0
else if v1[0] == 0 and v2[0] != 0
-1
else if v1[1] > v2[1]
1
|
ledger.fup ?= {}
ledger.fup.utils ?= {}
_.extend ledger.fup.utils,
compareVersions: (v1, v2) ->
new ledger.utils.ComparisonResult v1, v2, (v1, v2) ->
if v1[0] == v2[0] and v1[1] == v2[1]
0
else if v1[0] == 0 and v2[0] != 0
-1
else if v1[1] > v2[1]
1
versionToString:... | Add a method to stringify dongle versions | Add a method to stringify dongle versions
| CoffeeScript | mit | Morveus/ledger-wallet-doge-chrome,LedgerHQ/ledger-wallet-chrome,LedgerHQ/ledger-wallet-chrome,Morveus/ledger-wallet-doge-chrome |
311edb28ca31dd98c1f3c671ecfe42e3895e08c3 | 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()
... | Remove unused function and its call | activity: Remove unused function and its call
| CoffeeScript | agpl-3.0 | jack89129/koding,jack89129/koding,szkl/koding,acbodine/koding,mertaytore/koding,kwagdy/koding-1,cihangir/koding,usirin/koding,sinan/koding,gokmen/koding,koding/koding,mertaytore/koding,jack89129/koding,mertaytore/koding,cihangir/koding,mertaytore/koding,koding/koding,sinan/koding,andrewjcasal/koding,koding/koding,alex-... |
bc1b7f22e359045de1d98f9d3c092d5d1f69059d | src/string_inquirer.coffee | src/string_inquirer.coffee | # Wrapping a string in this class gives you a prettier way to test
# for equality. The value returned by `Bullet.env` is wrapped
# in a StringInquirer object so instead of calling this:
#
# Bullet.env == "production"
#
# you can call this:
#
# Bullet.env.production? #=> true
# Bullet.env.staging? #=> t... | # Wrapping a string in this class gives you a prettier way to test
# for equality. The value returned by `Bullet.env` is wrapped
# in a StringInquirer object so instead of calling this:
#
# Bullet.env == "production"
#
# you can call this:
#
# Bullet.env.production? #=> true
# Bullet.env.staging? #=> f... | Fix a typo in stringInquirer | Fix a typo in stringInquirer
| CoffeeScript | mit | pksunkara/inflect,tawdle/inflect,JedWatson/inflect |
86bc7281ced2ab92b308a04f4156125d4ab43c36 | src/server/routes/post/login.coffee | src/server/routes/post/login.coffee | passport = require "passport"
route =
verb: "post"
path: "/login"
fn: (req, res, next) ->
auth = passport.authenticate "local", (err, user, info) ->
if err then return next err
else if !user
json =
reason:
info.message
return res.status(401).json json
else req.logIn user, (err) ->
... | passport = require "passport"
route =
verb: "post"
path: "/login"
fn: (req, res, next) ->
auth = passport.authenticate "local", (err, user, info) ->
if err then return next err
else if !user
json =
reason:
info.message
return res.status(401).json json
else req.logIn user, (err) ->
... | Remove returnTo after using it | Remove returnTo after using it
Ensures that Passport doesn't pick it up again and use it.
| CoffeeScript | mit | leftiness/ton-hub,leftiness/ton-hub |
7a237d27c2a3df6cdba240d14bf2b0a1ab923e5b | server/prepaids/Prepaid.coffee | server/prepaids/Prepaid.coffee | mongoose = require 'mongoose'
config = require '../../server_config'
PrepaidSchema = new mongoose.Schema {}, {strict: false, minimize: false,read:config.mongo.readpref}
PrepaidSchema.index({code: 1}, { unique: true })
PrepaidSchema.statics.generateNewCode = (done) ->
tryCode = ->
code = _.sample("abcdefghijklmn... | mongoose = require 'mongoose'
config = require '../../server_config'
PrepaidSchema = new mongoose.Schema {}, {strict: false, minimize: false,read:config.mongo.readpref}
PrepaidSchema.index({code: 1}, { unique: true })
PrepaidSchema.index({'redeemers.userID': 1})
PrepaidSchema.statics.generateNewCode = (done) ->
try... | Add redeemers.userID index to prepaids collection | Add redeemers.userID index to prepaids collection
| CoffeeScript | mit | fabichoi/codecombat,fabichoi/codecombat,bsmr-x-script/codecombat,Zacharias030/codecombat,bsmr-x-script/codecombat,bsmr-x-script/codecombat,jeremyprice/codecombat,nimda7/codecombat,MonkStrom/codecombat,weevilgenius/codecombat,MonkStrom/codecombat,jacobakkerboom/codecombat,VilkkuV/codecombat,javatlacati/codecombat,javatl... |
ebc9a4432adad636a6e74ebafcc9f452aa4148fb | views/roads.coffee | views/roads.coffee | # Cameras by road that they are on view.
view roads: ->
div 'data-role': 'page', id: 'roads', ->
div 'data-role': 'header', 'data-position': 'fixed', ->
h1 'Cameras By Road'
div 'data-role': 'content', ->
ul id: 'road-list', 'data-role': 'listview', 'data-filter': true, 'data... | # Cameras by road that they are on view.
view roads: ->
div 'data-role': 'page', id: 'roads', ->
div 'data-role': 'header', 'data-position': 'fixed', ->
h1 'Cameras By Road'
div 'data-role': 'content', ->
ul id: 'road-list', 'data-role': 'listview', 'data-filter': true, 'data... | Add camera count to road list. | Add camera count to road list.
| CoffeeScript | mit | krismolendyke/traphicam,krismolendyke/traphicam |
822336adf18e1643ba6e4747ab8d472c11ee4eb2 | app/assets/javascripts/ui.js.coffee | app/assets/javascripts/ui.js.coffee | # Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in home.js.
$ ->
data = [2,3,4,5,5,7,6,5,4,2,2,3,4,5,5,7,9,5,3,2,2,3,2,3,4,5,5,7,6,5,4,2,2,4,2,2,3,4]
console.log(data);
$('.inlinesparkline').sparkline data,
type: "discrete"
lineC... | # Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in home.js.
$ ->
data = [2,3,4,5,5,7,6,5,4,2,2,3,4,5,5,7,9,5,3,2,2,3,2,3,4,5,5,7,6,5,4,2,2,4,2,2,3,4]
console.log(data);
$('.inlinesparkline').sparkline data,
type: "discrete"
lin... | Comment out parts of Nick's javascript that isn't needed | Comment out parts of Nick's javascript that isn't needed
- Remove the name showing up on the app show page when hovering over a
person's image
| CoffeeScript | bsd-3-clause | milafrerichs/brigade,milafrerichs/brigade,milafrerichs/brigade |
d88815255289f7daaad372354cd085f2ea8ca8f1 | app/assets/javascripts/ajax_hijacker.js.coffee | app/assets/javascripts/ajax_hijacker.js.coffee | $(document).ready ->
$('.ajax-hijacker').on 'click', 'a', (e) ->
target = $(this).closest('.ajax-hijacker').data('target')
href = $(this).attr('href')
if href == '#'
return
e.preventDefault()
e.stopPropagation()
options = {
url: href,
success: (result) ->
$(targ... | $(document).ready ->
$('.ajax-hijacker').on 'click', 'a', (e) ->
target = $(this).closest('.ajax-hijacker').data('target')
href = $(this).attr('href')
if href == '#'
return
e.preventDefault()
e.stopPropagation()
options = {
url: href
complete: (result) ->
$(targ... | Handle for ajax server error | Handle for ajax server error
| CoffeeScript | mit | Neocid/secure-content-manager,Neocid/secure-content-manager,Neocid/secure-content-manager,tjoyal/secure-content-manager,tjoyal/secure-content-manager |
ea3d841f1b9f9206b36ea3cd97db31e99d753a59 | app/assets/javascripts/sprangular/static_content/routes.coffee | app/assets/javascripts/sprangular/static_content/routes.coffee | angular.module('Sprangular.StaticContent')
.config ($routeProvider) ->
$routeProvider.when '/pages/:slug*',
controller: 'PageShowCtrl'
templateUrl: 'pages/show.html'
resolve:
page: (StaticContent, $route)->
slug = $route.current.params.slug
StaticContent.find(slug)
S... | angular.module('Sprangular.StaticContent')
.config ($routeProvider) ->
$routeProvider.when '/pages/:slug*',
controller: 'PageShowCtrl'
templateUrl: 'pages/show.html'
resolve:
page: (StaticContent, $route)->
slug = $route.current.params.slug
StaticContent.find(slug)
S... | Fix issue with then() returning nil on successful fetch | Fix issue with then() returning nil on successful fetch
| CoffeeScript | bsd-3-clause | sprangular/sprangular_static_content,sprangular/sprangular_static_content,sprangular/sprangular_static_content |
bd70904dafd166c0bc4a4a19332535317d459b76 | app/scripts/app.coffee | app/scripts/app.coffee | 'use strict'
app = angular
.module('taarifaWaterpointsApp', [
'ngResource',
'ngRoute',
'leaflet-directive',
'dynform',
'angular-flash.service',
'angular-flash.flash-alert-directive',
'gettext',
'ui.bootstrap'
])
.config ($routeProvider, $httpProvider, flashProvider) ->
$routeP... | 'use strict'
app = angular
.module('taarifaWaterpointsApp', [
'ngResource',
'ngRoute',
'leaflet-directive',
'dynform',
'angular-flash.service',
'angular-flash.flash-alert-directive',
'gettext',
'ui.bootstrap'
])
.config ($routeProvider, $httpProvider, flashProvider) ->
$routeP... | Add routes for requests list and triage views | Add routes for requests list and triage views
| CoffeeScript | apache-2.0 | gwob/Maarifa,gwob/Maarifa,gwob/Maarifa,gwob/Maarifa,gwob/Maarifa |
a1f8af655443c0ea0598c8877f5ee75e2a87f2ff | src/lib/index.coffee | src/lib/index.coffee |
isObject = require 'is-object'
find = (haystack, needle, memo = []) ->
if needle of haystack
memo.push haystack[needle]
if isObject haystack
for val in (i for i of haystack)
find(haystack[val], needle, memo) if isObject haystack[val]
return memo
keyfinder = (obj, predicate) ->
find obj, predi... |
isObject = require 'is-object'
find = (haystack, needle, memo = []) ->
if needle and isObject haystack
if needle of haystack
memo.push haystack[needle]
for val in (i for i of haystack)
find(haystack[val], needle, memo) if isObject haystack[val]
return memo
keyfinder = (obj, predicate) ->
f... | Check if haystack is object before search | Check if haystack is object before search
| CoffeeScript | mit | simon-johansson/keyfinder |
4f3dd14a610aac722b49ba5120c026dc2562a4e2 | scripts/educast.coffee | scripts/educast.coffee |
module.exports = (robot) ->
robot.respond /educast (.*)/i, (res) ->
res.send "https://beta.educast.pro/search/?q=#{res.match[1]}"
| # Description:
# Search from to educast
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# hubot educast <keyword> - Search from educast
module.exports = (robot) ->
robot.respond /educast\s+(.*)/i, (res) ->
keyword = encodeURIComponent(res.match[1])
res.s... | Add usage. Fix command. encode uri | Add usage. Fix command. encode uri
| CoffeeScript | mit | SNUGDC/bot,foriequal0/bot |
56c134d0e7f5b7632473f50029ad40c645102a02 | lib/device.coffee | lib/device.coffee | xml = require 'xml'
# generate device type string
makeDeviceType = (config) ->
type = [
config.specs.upnp.prefix
config.device.type
config.device.version
]
type.join ':'
# build device description element
buildDescription = (config, callback) ->
# generate namespace string
... | xml = require 'xml'
# generate device type string
makeDeviceType = (config) ->
type = [
config.specs.upnp.prefix
config.device.type
config.device.version
]
type.join ':'
# build device description element
buildDescription = (config, callback) ->
# generate namespace string
... | Add max lengths to Device names as per spec | Add max lengths to Device names as per spec
| CoffeeScript | mit | jacobrask/node-upnp-device,sigma-random/node-upnp-device,bcaller/node-upnp-device,Loghorn/node-upnp-device |
7008b7d6ec25af78a081c28d34ef8c53e5bd10bb | src/coffee/save.coffee | src/coffee/save.coffee | angular.module 'qbn.save', ['qbn.quality']
.factory 'savedGame', (qualities) ->
storageName = 'qbnSave'
api =
load: () ->
save = JSON.parse localStorage.getItem storageName
if save?
for savedQuality in save.qualities
quality = qualities.lookup savedQuality.id
... | angular.module 'qbn.save', ['qbn.quality']
.factory 'savedGame', (qualities) ->
storageName = 'qbnSave'
api =
load: () ->
save = JSON.parse localStorage.getItem storageName
return undefined if not save?
for savedQuality in save.qualities
quality = qualities.lookup saved... | Return Undefined if There is No Save to Load | Return Undefined if There is No Save to Load
| CoffeeScript | unlicense | arashikou/exper3-2015 |
1d848294f4db09bccccdf814502df9428e2f1e31 | snippets/promises.cson | snippets/promises.cson | ".source.js":
"Promise":
prefix: "promise",
body: """
new Promise((resolve, reject) => {
\t${0}
});
"""
"Promise.prototype.then":
prefix: "then"
body: """
then(${1:(${2:value}) => {
\t${0}
\\}})
"""
"Promise.prototype.catch":
prefix: "catch"
body: """
ca... | ".source.js":
"new Promise":
prefix: "Promise",
body: """
new Promise((resolve, reject) => {
\t${0}
});
"""
"new Promise +":
prefix: "new Promise",
body: """
new Promise((resolve, reject) => {
\t${0}
});
"""
"Promise.prototype.then":
prefix: "then"
body: ""... | Clean up some promise snippets | Clean up some promise snippets
| CoffeeScript | mit | kswedberg/atom-js-extras |
c1037c2113a8b2f7b6648b4fdf0df75d3f64fa52 | app/assets/javascripts/active_admin/select2/select2.js.coffee | app/assets/javascripts/active_admin/select2/select2.js.coffee | 'use strict';
initSelect2 = (inputs, extra = {}) ->
inputs.each ->
item = $(this)
# reading from data allows <input data-select2='{"tags": ['some']}'> to be passed to select2
options = $.extend(allowClear: true, extra, item.data('select2'))
# because select2 reads from input.data to check if it is se... | 'use strict';
initSelect2 = (inputs, extra = {}) ->
inputs.each ->
item = $(this)
# reading from data allows <input data-select2='{"tags": ['some']}'> to be passed to select2
options = $.extend(allowClear: true, extra, item.data('select2'))
# because select2 reads from input.data to check if it is se... | Make the gem compatible with Turbolinks and Turbolinks Classic | Make the gem compatible with Turbolinks and Turbolinks Classic
| CoffeeScript | mit | mfairburn/activeadmin-select2,arambert/activeadmin-select2 |
06faba7b0bb4c039799724e62938299ac5ec5a27 | lib/sensu-dashboard/assets/javascripts/views/events/list.coffee | lib/sensu-dashboard/assets/javascripts/views/events/list.coffee | namespace 'SensuDashboard.Views.Events', (exports) ->
class exports.List extends SensuDashboard.Views.List
name: 'events/list'
initialize: ->
@autocomplete_view = @options.autocomplete_view
@autocomplete_view.delegate = this
super
itemClass: ->
exports.ListItem
resolvedCol... | namespace 'SensuDashboard.Views.Events', (exports) ->
class exports.List extends SensuDashboard.Views.List
name: 'events/list'
initialize: ->
@autocomplete_view = @options.autocomplete_view
@autocomplete_view.delegate = this
super
itemClass: ->
exports.ListItem
resolvedCol... | Allow event filtering by check name | Allow event filtering by check name
| CoffeeScript | mit | sensu/sensu-dashboard,pantheon-systems/sensu-dashboard,pantheon-systems/sensu-dashboard,sensu/sensu-dashboard |
6e7c2757b2d74e4b734ce33d8848250922136afb | client/render-record.coffee | client/render-record.coffee | @ignore = []
@record_is_ignored = (name) ->
($.inArray name, ignore) isnt -1
render_field = ->
if field.attr
v = xml.attr name
else
x = xml.children field.name
v = x.text()
with_mixin {xml: x, value: v}, fieldview
@render_record = ->
for f in schema
if not record_is_ignored f.name
wit... | @ignore = []
@record_is_ignored = (name) ->
($.inArray name, ignore) isnt -1
render_field = ->
if field.attr
x = xml
v = xml.attr name
else
x = xml.children field.name
v = x.text()
with_mixin {parent: xml, xml: x, value: v}, fieldview
@render_record = ->
for f in schema
if not record_is... | Set XML for attribute nodes. | Set XML for attribute nodes.
| CoffeeScript | mit | SvenMichaelKlose/cjx,SvenMichaelKlose/cjx |
6451c58c67cb3aed32968cf38d3ce54f37d2e612 | lib/pod-file-pane.coffee | lib/pod-file-pane.coffee | {SelectListView} = require 'atom-space-pen-views'
path = require 'path'
fs = require 'fs'
module.exports =
class PodFilePane extends SelectListView
initialize: ->
super
@addClass('overlay from-top')
@setItems([])
@panel ?= atom.workspace.addModalPanel(item: this)
@panel.hide()
viewForItem: (item) ->... | {SelectListView} = require 'atom-space-pen-views'
path = require 'path'
fs = require 'fs'
module.exports =
class PodFilePane extends SelectListView
initialize: ->
super
@addClass('overlay from-top')
@setItems([])
@panel ?= atom.workspace.addModalPanel(item: this)
@panel.hide()
viewForItem: (item) ->... | Fix a crash when cmd+shift+m failed to load files | Fix a crash when cmd+shift+m failed to load files
| CoffeeScript | mit | KatalysatorAB/atom-ember-tabs |
a242af718ae3c323c9d12ca8ce550044c62d5b67 | webpack/cmdize.coffee | webpack/cmdize.coffee | #
# Wrap .js into .bat
# http://www.dostips.com/forum/viewtopic.php?p=37780#p37780
#
fs = require "fs"
iconv = require "iconv-lite"
ini = require '../package'
module.exports =
me = (options)->
me::apply = (compiler)->
compiler.plugin "done", (compilation)->
for k, z of compilation.compilation.assets
dst =... | #
# Wrap .js into .bat
# http://www.dostips.com/forum/viewtopic.php?p=37780#p37780
#
fs = require "fs"
iconv = require "iconv-lite"
ini = require '../package'
module.exports =
me = (options)->
me::apply = (compiler)->
compiler.plugin "done", (compilation)->
for k, z of compilation.compilation.assets
dst =... | Move URL to first line | Move URL to first line
| CoffeeScript | isc | ukoloff/directum |
4c4a932b0147cba3e4de2fa677d1256c1603d249 | device-manager-socket-client.coffee | device-manager-socket-client.coffee | uuid = require 'node-uuid'
WebSocket = require 'ws'
class DeviceManagerSocketClient
constructor: (@options={}) ->
@messageCallbacks = {}
connect: (callback=->) =>
@connection = new WebSocket "ws://#{@options.host}:#{@options.port}"
if @connection.on?
@connection.on 'open', callback
@... | uuid = require 'node-uuid'
WebSocket = require 'ws'
class DeviceManagerSocketClient
constructor: (@options={}) ->
@messageCallbacks = {}
connect: (callback=->) =>
@connection = new WebSocket "ws://#{@options.host}:#{@options.port}"
if @connection.on?
@connection.on 'open', callback
@... | Add params to other methods | Add params to other methods
| CoffeeScript | mit | octoblu/gateblu-websocket |
cf29190341f109ce07c5b12fed4147b92ec1b374 | app/assets/javascripts/global.js.coffee | app/assets/javascripts/global.js.coffee | jQuery ->
$(".best_in_place").best_in_place().bind "ajax:success", ->
$(this).closest(".video-container").find("iframe").attr "src", $(this).html() if $(this).hasClass("video-related")
# handle updating the new file for upload display
$("label.file-upload-label input").livequery ->
$(this).on "change", -... | jQuery ->
$(".best_in_place").best_in_place().bind "ajax:success", ->
$(this).closest(".video-container").find("iframe").attr "src", $(this).html() if $(this).hasClass("video-related")
# handle updating the new file for upload display
$("label.file-upload-label input").livequery ->
$(this).on "change", -... | Add JavaScript Redirect for 401 (Unauth) | Add JavaScript Redirect for 401 (Unauth)
Add a JavaScript catch for if the user receives a 401 response when
attempting to click an AJAX-enabled link (i.e. signed out, not
authorized to edit, etc).
| CoffeeScript | mit | jekhokie/IfSimply,jekhokie/IfSimply,jekhokie/IfSimply |
748c6bbe34fd50abb9589bebb4ffba795dfb15a6 | src/components/performance/cell-status-mixin.cjsx | src/components/performance/cell-status-mixin.cjsx | React = require 'react'
Router = require 'react-router'
LateIcon = require '../late-icon'
TaskHelper = require '../../helpers/task'
module.exports = {
propTypes:
courseId: React.PropTypes.string.isRequired
task: React.PropTypes.shape(
status: React.PropTypes.string
due_at: Rea... | React = require 'react'
Router = require 'react-router'
LateIcon = require '../late-icon'
TaskHelper = require '../../helpers/task'
module.exports = {
propTypes:
courseId: React.PropTypes.string.isRequired
task: React.PropTypes.shape(
status: React.PropTypes.string
due_at: Rea... | Remove unused student prop from mixin | Remove unused student prop from mixin
| CoffeeScript | agpl-3.0 | openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js |
4a2fa7e039eeb53c1c4d60d9d5ac57ec829c4fa4 | lib/indentation-indicator-view.coffee | lib/indentation-indicator-view.coffee | {View} = require 'atom'
# Status bar view for the indentation indicator.
module.exports =
class IndentationIndicatorView extends View
@content: ->
@div class: 'inline-block', =>
@span 'foo:42', class: 'indentation-indicator', outlet: 'text'
# Public: Initializes the view by subscribing to various events... | {View} = require 'atom'
# Status bar view for the indentation indicator.
module.exports =
class IndentationIndicatorView extends View
@content: ->
@div class: 'indentation-indicator inline-block', =>
@span 'foo:42', outlet: 'text'
# Public: Initializes the view by subscribing to various events.
#
# ... | Move class to the outer `div` | Move class to the outer `div`
| CoffeeScript | mit | lee-dohm/indentation-indicator |
b4d5c692ce4e78eff45df7ac66f038200b731e54 | src/wrap-guide.coffee | src/wrap-guide.coffee | {View} = require 'space-pen'
$ = require 'jquery'
_ = require 'underscore'
module.exports =
class WrapGuide extends View
@activate: (rootView, state) ->
rootView.eachEditor (editor) =>
@appendToEditorPane(rootView, editor) if editor.attached
@appendToEditorPane: (rootView, editor) ->
if underlayer =... | {View} = require 'space-pen'
$ = require 'jquery'
_ = require 'underscore'
module.exports =
class WrapGuide extends View
@activate: (rootView, state) ->
rootView.eachEditor (editor) =>
@appendToEditorPane(rootView, editor) if editor.attached
@appendToEditorPane: (rootView, editor) ->
if underlayer =... | Rename variable to pattern to shadow config key path | Rename variable to pattern to shadow config key path
| CoffeeScript | mit | atom/wrap-guide |
8fc77fcd5c9c3f10c3850e26e337bd28ab92a4c8 | src/components/MQ/SendMessage.coffee | src/components/MQ/SendMessage.coffee | noflo = require 'noflo'
{QueueComponent} = require './QueueComponent'
class SendMessage extends QueueComponent
constructor: ->
do @basePortSetup
mq = null
groups = []
@inPorts.in = new noflo.ArrayPort
@inPorts.in.on 'connect', =>
mq = @getMQ()
@inPorts.in.on 'begingroup', (group) =>... | noflo = require 'noflo'
{QueueComponent} = require './QueueComponent'
class SendMessage extends QueueComponent
constructor: ->
do @basePortSetup
mq = null
groups = []
@inPorts.in = new noflo.ArrayPort
@inPorts.in.on 'connect', =>
mq = @getMQ()
@inPorts.in.on 'begingroup', (group) =>... | Deal with Redis connection possibly being slow | Deal with Redis connection possibly being slow
| CoffeeScript | mit | lxfschr/noflo,saurabhsood91/noflo,jonnor/noflo,trustmaster/noflo,npmcomponent/noflo-noflo,noflo/noflo,trustmaster/noflo,saurabhsood91/noflo,jonnor/noflo,lxfschr/noflo |
417e912b82239204a09a1bd505dc4c5fb48a58d3 | build/tasks/install-unpublished-packages.coffee | build/tasks/install-unpublished-packages.coffee | path = require 'path'
fs = require 'fs-extra'
request = require 'request'
Decompress = require 'decompress'
injectPackage = null
workDir = null
installPackage = (owner, name, version, callback) ->
tarballUrl = 'https://github.com/' + owner + '/' + name + '/archive/master.tar.gz'
tarballPath = path.join(workDir, 'n... | path = require 'path'
fs = require 'fs-extra'
request = require 'request'
Decompress = require 'decompress'
injectPackage = null
workDir = null
installPackage = (owner, name, version, callback) ->
tarballUrl = 'https://github.com/' + owner + '/' + name + '/archive/master.tar.gz'
tarballPath = path.join(workDir, 'n... | Hide Send Feedback from status bar | Hide Send Feedback from status bar
| CoffeeScript | apache-2.0 | lukehoban/spark-dev,lukehoban/spark-dev,spark/particle-dev |
6c3430bfaf6ec80fde057f32d66a9d413d70b581 | client/ide/views/statusbar/statusbarmenu.coffee | client/ide/views/statusbar/statusbarmenu.coffee | class IDE.StatusBarMenu extends KDContextMenu
constructor: (options = {}) ->
menuItems = @getMenuItems options.paneType
{delegate} = options
options.menuWidth = 220
options.x = delegate.getX()
options.cssClass = 'status-bar-menu'
super options, menuItems
@on 'Co... | class IDE.StatusBarMenu extends KDContextMenu
constructor: (options = {}) ->
menuItems = @getMenuItems options.paneType
{delegate} = options
options.menuWidth = 220
options.x = delegate.getX()
options.cssClass = 'status-bar-menu'
super options, menuItems
@on 'Co... | Move separator from defaults to editor menu items. | StatusBarMenu: Move separator from defaults to editor menu items.
| CoffeeScript | agpl-3.0 | mertaytore/koding,acbodine/koding,kwagdy/koding-1,szkl/koding,szkl/koding,acbodine/koding,jack89129/koding,jack89129/koding,koding/koding,sinan/koding,acbodine/koding,drewsetski/koding,drewsetski/koding,usirin/koding,szkl/koding,cihangir/koding,cihangir/koding,koding/koding,szkl/koding,kwagdy/koding-1,alex-ionochkin/ko... |
a51e8bd3e4042cdaf31f77fe1c77259de8e8a959 | app/assets/javascripts/mapping.coffee | app/assets/javascripts/mapping.coffee |
$(document).ready( ->
root = exports ? this
mapDiv = $("#map")
if mapDiv?
lat = mapDiv.data("lat")
lon = mapDiv.data("lon")
host = mapDiv.data('host')
key = mapDiv.data('key')
attribution = mapDiv.data("attribution")
zoom = 15
map = L.map("map",
center: [
lat
l... |
$(document).ready( ->
root = exports ? this
mapDiv = $("#map")
if mapDiv?
lat = mapDiv.data("lat")
lon = mapDiv.data("lon")
host = mapDiv.data('host')
key = mapDiv.data('key')
attribution = mapDiv.data("attribution")
zoom = 15
L.Icon.Default.imagePath = '../images'
map = L.map(... | Set image path for leaflet map js | Set image path for leaflet map js
Fix bug with map icon images not being found.
| CoffeeScript | mit | openregister/school-demo,openregister/school-demo,openregister/school-demo |
b7743ea1691e2917ad8bc7a226437b1691f443e2 | app/components/collection-search.cjsx | app/components/collection-search.cjsx | React = require 'react'
Select = require 'react-select'
apiClient = require '../api/client'
debounce = require 'debounce'
module.exports = React.createClass
displayName: 'CollectionSearch'
getDefaultProps: ->
multi: false
project: null
getInitialState: ->
collections: []
searchCollections: (valu... | React = require 'react'
Select = require 'react-select'
apiClient = require '../api/client'
debounce = require 'debounce'
module.exports = React.createClass
displayName: 'CollectionSearch'
getDefaultProps: ->
multi: false
project: null
searchCollections: (value, callback) ->
query =
page_size... | Clean up collections manager react-select | Clean up collections manager react-select
- Closes #2040
| CoffeeScript | apache-2.0 | mrniaboc/Panoptes-Front-End,jelliotartz/Panoptes-Front-End,amyrebecca/Panoptes-Front-End,alexbfree/Panoptes-Front-End,parrish/Panoptes-Front-End,parrish/Panoptes-Front-End,fmnhExhibits/Panoptes-Front-End,jelliotartz/Panoptes-Front-End,zooniverse/Panoptes-Front-End,amyrebecca/Panoptes-Front-End,amyrebecca/Panoptes-Front... |
621140e4f090bf1745caf9c7d32d912915b5fd41 | assets/scripts/init.coffee | assets/scripts/init.coffee | ###
Typekit
###
try
Typekit.load()
###
Google Analytics
###
GOOGLE_ANALYTICS =
account: 'UA-12933299-1'
domain: 'stdout.be'
_gaq = _gaq or []
_gaq.push ['_setAccount', GOOGLE_ANALYTICS.account]
_gaq.push ['_trackPageview']
_gaq.push ['_setDomainName', GOOGLE_ANALYTICS.domain]
do ->
https = 'https:'... | ###
Typekit
###
try
Typekit.load()
###
Google Analytics
###
GOOGLE_ANALYTICS =
account: 'UA-12933299-1'
domain: 'stdout.be'
_gaq = window._gaq ?= []
_gaq.push ['_setAccount', GOOGLE_ANALYTICS.account]
_gaq.push ['_trackPageview']
_gaq.push ['_setDomainName', GOOGLE_ANALYTICS.domain]
do ->
https = '... | Update Google Analytics tracking script. | Update Google Analytics tracking script.
| CoffeeScript | isc | debrouwere/debrouwere.org |
58f92a47b52e8354982cec0fec5525b71314d2e8 | coffee/presentation.coffee | coffee/presentation.coffee | class Presentation
constructor: ->
@$presentation = $('.presentation')
@$current = $('section').first()
@y = 0
@$presentation.css('transition-duration', '1s')
@bind()
@resize()
bind: ->
@bindKeys()
@bindGestures()
@bindResize()
bindKeys: ->
key('right, d... | class Presentation
constructor: ->
@$presentation = $('.presentation')
@$current = $('section').first()
@y = 0
@$presentation.css('transition-duration', '1s')
@bind()
@resize()
bind: ->
@bindKeys()
@bindGestures()
@bindResize()
bindKeys: ->
key('right, d... | Fix issue with translateY calculation when going next. | Fix issue with translateY calculation when going next.
| CoffeeScript | mit | loicfrering/ruban,jnizet/ruban,jnizet/ruban,loicfrering/ruban,feugy/ruban,feugy/ruban |
f796f6292b0fec5b62fae6325600a563b721e36a | core/app/backbone/models/topic.coffee | core/app/backbone/models/topic.coffee | class window.Topic extends Backbone.Model
newChannelForUser: (user) ->
new Channel
title: this.get 'title'
slug_title: this.get 'slug_title'
username: user.get 'username'
withCurrentOrCreatedChannelFor: (user, options)->
if ch = @existingChannelFor(user)
options.success?(ch)
els... | class window.Topic extends Backbone.Model
idAttribute: 'slug_title'
newChannelForUser: (user) ->
new Channel
title: this.get 'title'
slug_title: this.get 'slug_title'
username: user.get 'username'
withCurrentOrCreatedChannelFor: (user, options)->
if ch = @existingChannelFor(user)
... | Add 'slug_title' as idAttribute to Topic | Add 'slug_title' as idAttribute to Topic
This will prevent duplicate Topics in collections when added
| CoffeeScript | mit | daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core,Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core,daukantas/factlink-core,daukantas/factlink-core |
8eb6798fc5a82efacc0569c443ddaa21476cda41 | src/state.coffee | src/state.coffee | class Game.State extends Game.TwoWay
constructor: () ->
@objects = {}
@eventCounters = {}
@eventHandlers = {}
super
onEvent: (e) ->
# Add timestamped instance to the event counters object
if e.type not of @eventCounters
@eventCounters[e.type] = []
@eventCounters[e.type].push new Da... | class Game.State extends Game.TwoWay
constructor: () ->
@objects = {}
@eventCounters = {}
@eventHandlers = {}
super
onEvent: (e) ->
# Add timestamped instance to the event counters object
if e.type not of @eventCounters
@eventCounters[e.type] = []
@eventCounters[e.type].push new Da... | Call callback in event handlers with event | Call callback in event handlers with event
| CoffeeScript | mit | eugene-bulkin/game-library,eugene-bulkin/game-library |
8104bf5cba8a6ba9d0d93989d1793b95f57922b5 | lib/assets/javascripts/jasmine_helpers/ajax_spec_helpers.js.coffee | lib/assets/javascripts/jasmine_helpers/ajax_spec_helpers.js.coffee | # =require modules
TIMEOUT = 500 # ms - Used to be 300, but FF was too slow
extendClass 'specs.jasmine.AjaxHelpers', (self)->
ajaxServer = null
initialize: (fakeAjaxServer, options={})->
ajaxServer = fakeAjaxServer
TIMEOUT = options.timeout if options.timeout
ajaxSettings: -> ajaxServer.ajaxSettings()
... | # =require modules
TIMEOUT = 500 # ms - Used to be 300, but FF was too slow
extendClass 'specs.jasmine.AjaxHelpers', (self)->
ajaxServer = null
initialize: (fakeAjaxServer, options={})->
ajaxServer = fakeAjaxServer
TIMEOUT = options.timeout if options.timeout
ajaxSettings: -> ajaxServer.ajaxSettings()
... | Add ignoreAllRequests() to ajax spec helpers | Add ignoreAllRequests() to ajax spec helpers
Just delegates to the fake server
| CoffeeScript | mit | rosenfeld/oojs,rosenfeld/oojs |
7dd37654c8421b003f0190fce751227978a0cddd | demos/visualizer-lazy/visualizer.coffee | demos/visualizer-lazy/visualizer.coffee | 'use strict'
{
setupEditors
setupSamples
setupCompilers
setupRunButton
saveProgram
loadProgram
} = window.viz
grid = null
run = (editors, compiler) ->
saveProgram editors
playfield = new bef.Playfield()
playfield.fromString editors.source.getValue(), 16, 10
lazyRuntime = new bef.LazyRuntime()
lazyRunt... | 'use strict'
{
setupEditors
setupSamples
setupCompilers
setupRunButton
saveProgram
loadProgram
} = window.viz
grid = null
run = (editors, compiler) ->
saveProgram editors
playfield = new bef.Playfield()
playfield.fromString editors.source.getValue(), 16, 10
lazyRuntime = new bef.LazyRuntime()
lazyRunt... | Change the default compiler for the lazy demo | Change the default compiler for the lazy demo
| CoffeeScript | mit | adrianton3/befunjit,adrianton3/befunjit,adrianton3/befunjit |
fd21e0a2d8ee1813e72845ea58df9dd576416ec4 | scripts/movie-quotes.coffee | scripts/movie-quotes.coffee | # Movie quotes
#
# It'll happen
#
module.exports = (robot) ->
robot.hear /.*one (in|out of) a million*/, (msg) ->
msg.send "so you're telling me there's a chance: http://www.youtube.com/watch?v=yCFB2akLh4s"
| # Movie quotes
#
# It'll happen
#
module.exports = (robot) ->
robot.hear /.*one (in|out of) a million*/i, (msg) ->
msg.send "so you're telling me there's a chance: http://www.youtube.com/watch?v=yCFB2akLh4s"
robot.hear /.*I don't give.*/i, (msg) ->
msg.send "relevant: http://www.youtube.com/watch?v=-6Pbc8... | Add gone with the wind | Add gone with the wind
| CoffeeScript | mit | RiotGamesMinions/lefay,RiotGamesMinions/lefay |
76b86f1e392e8cceb9fa9dcbe0dfda4901f00c22 | IDE/atom/init.coffee | IDE/atom/init.coffee | gbk_paths = [
]
gbk_exclude_path = [
]
atom.workspace.onDidOpen (event) ->
editor = event.item
path = event.uri
gbk_paths.forEach (regex) ->
if regex.test(path)
gbk_exclude_path.forEach (exclude_regex) ->
unless exclude_regex.test(path)
console.log "#{path} matches #{regex}, set enco... | gbk_paths = [
]
gbk_exclude_path = [
]
# console.debug(atom.workspace.getTextEditors())
set_encoding_for = (editor, path) ->
gbk_paths.forEach (regex) ->
if regex.test(path)
console.debug "#{path} matches #{regex}, examining gbk_exclude_path..."
is_excluded = false
gbk_exclude_path.forEach (e... | Set encoding after reboot, and misc fixes | Set encoding after reboot, and misc fixes | CoffeeScript | mit | utensil/config |
e6c03c06e3a74d9a087198204928e2d387cd67c4 | test/wordnet_test.coffee | test/wordnet_test.coffee | should = require('chai').should()
Wordnet = require('../lib/wordnet')
describe 'wordnet', () ->
wordnet = undefined
beforeEach (done) ->
wordnet = new Wordnet()
done()
it 'should pass unfiltered lookup method', (done) ->
wordnet.lookup 'node', (results) ->
should.exist(results)
result... | should = require('chai').should()
Wordnet = require('../lib/wordnet')
describe 'wordnet', () ->
wordnet = undefined
beforeEach (done) ->
wordnet = new Wordnet()
done()
it 'should pass unfiltered lookup method', (done) ->
wordnet.lookup 'node', (results) ->
should.exist(results)
result... | Check an error when we fail to find an appropriate file by default (WNdb doesn't contain exceptions) | Check an error when we fail to find an appropriate file by default (WNdb doesn't contain exceptions)
| CoffeeScript | mit | morungos/wordnet |
62b15cce927ba7b2c3abe24f6b864788c223137f | lib/resin/ui/patterns/patterns.coffee | lib/resin/ui/patterns/patterns.coffee | async = require('async')
fs = require('fs')
widgets = require('../widgets/widgets')
server = require('../../server/server')
ProgressBar = require('progress')
exports.remove = (name, confirmAttribute, deleteFunction, outerCallback) ->
async.waterfall([
(callback) ->
if confirmAttribute
return callback(null, ... | async = require('async')
fs = require('fs')
widgets = require('../widgets/widgets')
server = require('../../server/server')
ProgressBar = require('progress')
exports.remove = (name, confirmAttribute, deleteFunction, outerCallback) ->
async.waterfall([
(callback) ->
if confirmAttribute
return callback(null, ... | Add TODO regarding quieting progress bar | Add TODO regarding quieting progress bar
| CoffeeScript | apache-2.0 | resin-io/resin-cli,resin-io/resin-cli,resin-io/resin-cli,resin-io/resin-cli |
8a7b60eaa428ca42f9d2c81d725f4850b18c38ff | app/assets/javascripts/browserlog/logs.js.coffee | app/assets/javascripts/browserlog/logs.js.coffee | class LogFeed
POLL_PERIOD: 500
constructor: ->
@currentLine = -1
@lines = $('#lines')
getLines: =>
$.get(window.location.href + '/changes.json',
{currentLine: @currentLine},
this.getLinesSuccess
)
.fail(this.getLinesError)
.always(this.getLinesComplete)
getLinesSuccess: (d... | class LogFeed
POLL_PERIOD: 1500
constructor: ->
@currentLine = -1
@lines = $('#lines')
getLines: =>
$.get(window.location.href + '/changes.json',
{currentLine: @currentLine},
this.getLinesSuccess
)
.fail(this.getLinesError)
.always(this.getLinesComplete)
getLinesSuccess: (... | Reduce polling period on front-end | Reduce polling period on front-end
| CoffeeScript | mit | dieb/browserlog,scytherswings/browserlog,naaano/browserlog,naaano/browserlog,dieb/browserlog,dieb/browserlog,naaano/browserlog,joshuapaling/browserlog,scytherswings/browserlog,scytherswings/browserlog,joshuapaling/browserlog,joshuapaling/browserlog |
ebccc7a51dcb7d98b94b887e17e87c59912ec2e7 | .atom/keymap.cson | .atom/keymap.cson | # Your keymap
#
# Atom keymaps work similarly to stylesheets. Just as stylesheets use selectors
# to apply styles to elements, Atom keymaps use selectors to associate
# keystrokes with events in specific contexts.
#
# You can create a new keybinding in this file by typing "key" and then hitting
# tab.
#
# Here's an exa... | # Your keymap
#
# Atom keymaps work similarly to stylesheets. Just as stylesheets use selectors
# to apply styles to elements, Atom keymaps use selectors to associate
# keystrokes with events in specific contexts.
#
# You can create a new keybinding in this file by typing "key" and then hitting
# tab.
#
# Here's an exa... | Add disable a html preview shortcut | Add disable a html preview shortcut
| CoffeeScript | mit | nori3tsu/dotfiles,nori3tsu/dotfiles |
70cf31c666cc3d49c8fb9882c3e68947919c9ebe | lib/project/search-result-view.coffee | lib/project/search-result-view.coffee | {View, Range} = require 'atom'
module.exports =
class SearchResultView extends View
@content: (previewList, filePath, match) ->
range = Range.fromObject(match.range)
prefix = match.lineText[0...range.start.column]
suffix = match.lineText[range.end.column..]
@li class: 'search-result list-item', =>
... | {View, Range} = require 'atom'
module.exports =
class SearchResultView extends View
@content: (previewList, filePath, match) ->
range = Range.fromObject(match.range)
prefix = match.lineText[match.lineTextOffset...(match.lineTextOffset + range.start.column)]
suffix = match.lineText[(match.lineTextOffset +... | Use the lineTextOffset in match results | Use the lineTextOffset in match results
| CoffeeScript | mit | atom/find-and-replace,bmperrea/find-and-replace,harai/find-and-replace,trevdor/find-and-replace |
ec8eee9f070ad3e5d340c3e6334a16e9e4668e55 | controllers/site.coffee | controllers/site.coffee | async = require("async")
mongoose = require("mongoose")
ObjectId = mongoose.Types.ObjectId
User = mongoose.model("User")
Post = mongoose.model("Post")
Message = mongoose.model("Message")
exports.index = (req, res) ->
res.render "index"
exports.timeline = (req, res) ->
res.render "timeline"
exports.app = (req, re... | async = require("async")
mongoose = require("mongoose")
ObjectId = mongoose.Types.ObjectId
User = mongoose.model("User")
Post = mongoose.model("Post")
Message = mongoose.model("Message")
exports.index = (req, res) ->
res.render "index"
exports.timeline = (req, res) ->
res.render "timeline"
exports.app = (req, re... | Check for empty post results in bootstrap | Check for empty post results in bootstrap | CoffeeScript | mit | woochi/cyberia,woochi/cyberia,woochi/cyberia |
af8798ef291b7cef50ee28ac6bf7250f05418556 | app/assets/javascripts/home.js.coffee | app/assets/javascripts/home.js.coffee | # Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/
$ ->
$tagLine = $ '.tag-line'
$signButton = $ '.sign-up'
# Ideally this array would come from so... | # Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/
$ ->
$tagLine = $ '.tag-line'
$signButton = $ '.sign-up'
# Ideally this array would come from so... | Remove stray Google Auth JavaScript code. | Remove stray Google Auth JavaScript code.
| CoffeeScript | mit | francisbrito/sarah_rails,francisbrito/sarah_rails |
0a05679eba5b9fdcb33bf0fca411bee04fc9dcf5 | spec/Initialization.coffee | spec/Initialization.coffee | describe 'NoFlo UI initialization', ->
win = null
doc = null
db = null
before (done) ->
@timeout 20000
iframe = document.getElementById 'app'
iframe.src = '../app.html'
iframe.onload = ->
win = iframe.contentWindow
doc = iframe.contentDocument
setTimeout ->
done()
... | describe 'NoFlo UI initialization', ->
win = null
doc = null
db = null
before (done) ->
@timeout 20000
iframe = document.getElementById 'app'
iframe.src = '../app.html'
iframe.onload = ->
win = iframe.contentWindow
doc = iframe.contentDocument
setTimeout ->
done()
... | Add IE a bit more time | Add IE a bit more time
| CoffeeScript | apache-2.0 | rdf-pipeline/noflo-server,rdf-pipeline/noflo-server,rasata/noflo-ui,rasata/noflo-ui,lxfschr/noflo-ui,lxfschr/noflo-ui,oportocala/noflo-ui,noflo/noflo-ui,oportocala/noflo-ui,taylorzane/noflo-ui,noflo/noflo-ui,taylorzane/noflo-ui,flyboarder/noflo-ui |
c10f8458288fa3030b8ad469219fef2731b805c8 | angular/core/components/previous_polls_page/previous_polls_page.coffee | angular/core/components/previous_polls_page/previous_polls_page.coffee | angular.module('loomioApp').controller 'PreviousPollsPageController', ($scope, $rootScope, $routeParams, Records, AbilityService, TranslationService, LoadingService) ->
$rootScope.$broadcast('currentComponent', { page: 'previousPollsPage'})
Records.groups.findOrFetchById($routeParams.key).then (group) =>
@grou... | angular.module('loomioApp').controller 'PreviousPollsPageController', ($scope, $rootScope, $routeParams, Records, AbilityService, TranslationService, LoadingService) ->
$rootScope.$broadcast('currentComponent', { page: 'previousPollsPage'})
Records.groups.findOrFetchById($routeParams.key).then (group) =>
@grou... | Make poll search case insensitive | Make poll search case insensitive
| CoffeeScript | agpl-3.0 | piratas-ar/loomio,piratas-ar/loomio,piratas-ar/loomio,loomio/loomio,loomio/loomio,piratas-ar/loomio,loomio/loomio,loomio/loomio |
fbc9076f656f4362afdfd45298ab2f16c6f5a53c | src/models/torrents.coffee | src/models/torrents.coffee | Schema = mongoose.Schema
ObjectId = Schema.ObjectId
Comment = new Schema {
body : String,
author_id : ObjectId,
date : Date
}
File = new Schema {
path : String,
size : Number
}
Torrent = new Schema {
uploader : String,
title : String,
size : Number,
dateUploaded : {ty... | Schema = mongoose.Schema
ObjectId = Schema.ObjectId
Comment = new Schema {
body : String,
author_id : ObjectId,
date : Date
}
File = new Schema {
path : String,
size : Number
}
Torrent = new Schema {
uploader : String,
title : String,
size : Number,
dateUploaded : {ty... | Fix permalink url for /g replacing of space | Fix permalink url for /g replacing of space
| CoffeeScript | bsd-3-clause | mileswu/nyaa2 |
4a294776dd42eae28bca2a7d2f6b56a6902d52b7 | app/scripts/components/BsBtnGroup.coffee | app/scripts/components/BsBtnGroup.coffee | ###
Button Group.
In its simple form, each item in the button group is a Bootstrap.Button component,
In case this is a Radio, each item is rendered as a label.
###
Bootstrap.BsBtnGroup = Bootstrap.ItemsView.extend(Bootstrap.SizeSupport, Bootstrap.ItemsSelection,
classTypePrefix: ['btn-group']
classNames: ['btn... | ###
Button Group.
In its simple form, each item in the button group is a Bootstrap.Button component,
In case this is a Radio, each item is rendered as a label.
###
Bootstrap.BsBtnGroup = Bootstrap.ItemsView.extend(Bootstrap.SizeSupport, Bootstrap.ItemsSelection,
classTypePrefix: ['btn-group']
classNames: ['btn... | Clear layout set in button group component as it seems not to be needed anymore. | Clear layout set in button group component as it seems not to be needed anymore.
| CoffeeScript | apache-2.0 | ritesh83/bootstrap-for-ember,ritesh83/bootstrap-for-ember,duereg/bootstrap-for-ember,rpharrison/bootstrap-for-ember,ember-addons/bootstrap-for-ember,rpharrison/bootstrap-for-ember |
c99fcce49e30478bb67d7240de7e9ec4a8da54a8 | core/spec/javascripts/factlink/format_as_short_number_spec.coffee | core/spec/javascripts/factlink/format_as_short_number_spec.coffee | #= require lib/format_as_short_number
describe 'window.format_as_short_number', ->
tests = [
[`undefined`, "?"]
[null, "?"]
[0, "0"]
[3, "3"]
[3.52555, "3"]
[10, "10" ]
[127.8392, "127"]
[1000, "1k" ]
[3600, "3k" ]
]
for test in tests
do (test) ->... | #= require utils/format_as_short_number
describe 'window.format_as_short_number', ->
tests = [
[`undefined`, "?"]
[null, "?"]
[0, "0"]
[3, "3"]
[3.52555, "3"]
[10, "10" ]
[127.8392, "127"]
[1000, "1k" ]
[3600, "3k" ]
]
for test in tests
do (test) ... | Fix require to new path | Fix require to new path
| CoffeeScript | mit | daukantas/factlink-core,daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core |
914da6b3c4b84310bb92fad661cd3c4c32d14713 | app/assets/javascripts/neighborly/balanced/creditcard/payment.js.coffee | app/assets/javascripts/neighborly/balanced/creditcard/payment.js.coffee | window.NeighborlyBalancedCreditcard = Backbone.View.extend
el: '.neighborly-balanced-creditcard-form'
initialize: ->
_.bindAll(this, 'validate', 'submit')
$(document).foundation('forms')
this.$button = this.$('input[type=submit]')
this.$form = this.$('form')
this.$form.bind('submit', this.subm... | window.NeighborlyBalancedCreditcard = Backbone.View.extend
el: '.neighborly-balanced-creditcard-form'
initialize: ->
_.bindAll(this, 'validate', 'submit')
$(document).foundation('forms')
this.$button = this.$('input[type=submit]')
this.$form = this.$('form')
this.$form.bind('submit', this.subm... | Add JS toggle to show cards fields when has previously | Add JS toggle to show cards fields when has previously
| CoffeeScript | mit | FromUte/dune-balanced-creditcard,FromUte/dune-balanced-creditcard,FromUte/dune-balanced-creditcard |
77a8f03c0d183e5d3f88ee2465a7ae5d1c0f6732 | app/models/subject.coffee | app/models/subject.coffee | {Model} = require 'spine'
class Subject extends Model
@configure 'Subject', 'zooniverseId', 'location', 'coords', 'metadata'
@toClassify = []
select: ->
@trigger 'select'
satelliteImage: -> """
//maps.googleapis.com/maps/api/staticmap
?center=#{@coords.join ','}
&zoom=17
&size=565x380
... | {Model} = require 'spine'
class Subject extends Model
@configure 'Subject', 'zooniverseId', 'location', 'coords', 'metadata'
@toClassify = []
select: ->
@trigger 'select'
satelliteImage: -> """
//maps.googleapis.com/maps/api/staticmap
?center=#{@coords.join ','}
&zoom=17
&size=565x380
... | Add marker to satellite image | Add marker to satellite image
| CoffeeScript | apache-2.0 | zooniverse/Snapshot-Chicago,zooniverse/gorongosa,zooniverse/Wisconsin-Zoo,zooniverse/Snapshot-Chicago,zooniverse/Serengeti,alexbfree/Serengeti,zooniverse/Serengeti,alexbfree/Serengeti,alexbfree/Serengeti,zooniverse/Wisconsin-Zoo,zooniverse/Serengeti,zooniverse/gorongosa |
634dc7539f323b6aea267266bd5a049defda557f | app/coffee/DockerRunner.coffee | app/coffee/DockerRunner.coffee | spawn = require("child_process").spawn
logger = require "logger-sharelatex"
Settings = require "settings-sharelatex"
module.exports = DockerRunner =
_docker: Settings.clsi?.docker?.binary or 'docker'
_baseCommand: ['run', '--rm=true', '-t', '-v', '$COMPILE_DIR:/source', '--name=texlive-$PROJECT_ID']
run: (proj... | spawn = require("child_process").spawn
logger = require "logger-sharelatex"
Settings = require "settings-sharelatex"
module.exports = DockerRunner =
_docker: Settings.clsi?.docker?.binary or 'docker'
_baseCommand: ['run', '--rm=true', '-t', '-v', '$COMPILE_DIR:/source', '--name=texlive-$PROJECT_ID']
run: (proj... | Revert the timeout change in the docker runner | Revert the timeout change in the docker runner
Revert the timeout change in the docker runner as the conversion from seconds to milliseconds as well as the default timeout are already handled in the Request parser.
| CoffeeScript | agpl-3.0 | EDP-Sciences/clsi-sharelatex |
6a1ca6aff8a1c4981bd835f0dcb88f8806f61cb8 | core/app/backbone/views/react_feed_selection.coffee | core/app/backbone/views/react_feed_selection.coffee | window.ReactFeedSelection = React.createClass
displayName: 'ReactFeedSelection'
mixins: [UpdateOnSignInOrOutMixin]
getInitialState: ->
feedChoice: 'global'
feeds:
global: new GlobalFeedActivities
personal: new PersonalFeedActivities
_handleFeedChoiceChange: (e) ->
if(e.target.checked)... | window.ReactFeedSelection = React.createClass
displayName: 'ReactFeedSelection'
mixins: [UpdateOnSignInOrOutMixin]
getInitialState: ->
feedChoice: 'global'
feeds:
global: new GlobalFeedActivities
personal: new PersonalFeedActivities
_handleFeedChoiceChange: (e) ->
if(e.target.checked)... | Create button for creating challenges from feed | Create button for creating challenges from feed
| CoffeeScript | mit | daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core,daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core |
789046fa1dff10de2db487d82b36ee882e85602c | src/coffee/cilantro/ui/field/controls/number.coffee | src/coffee/cilantro/ui/field/controls/number.coffee | define [
'./range'
], (range) ->
# A control for entering an inclusive or exclusive numeric range
class NumberControl extends range.RangeControl
# Cast the lower bound to a number for use in the getValue() method
getLowerBoundValue: ->
return Number(@ui.lowerBound.val())
... | define [
'./range'
], (range) ->
# A control for entering an inclusive or exclusive numeric range
class NumberControl extends range.RangeControl
# Cast the lower bound to a number for use in the getValue() method
getLowerBoundValue: ->
return parseFloat(@ui.lowerBound.val())
... | Use parseFloat() instead of Number() in numeric range control | Use parseFloat() instead of Number() in numeric range control
| CoffeeScript | bsd-2-clause | chop-dbhi/cilantro,chop-dbhi/cilantro,chop-dbhi/cilantro |
44aceada15066f9dbc3f71b82c1034b9af8a6344 | app/assets/javascripts/neighborly/neighborly.js.coffee | app/assets/javascripts/neighborly/neighborly.js.coffee | #= require_self
#= require_tree .
window.Neighborly =
configs:
turbolinks: true
pjax: false
modules: -> []
initPage: ->
that = this
unless window.Turbolinks is undefined
$(document).bind "page:fetch", ->
that.Loading.show()
$(document).bind "page:restore", ->
that.L... | #= require_self
#= require_tree .
window.Neighborly =
configs:
turbolinks: true
pjax: false
modules: -> []
initPage: ->
that = this
unless window.Turbolinks is undefined
$(document).bind "page:fetch", ->
that.Loading.show()
$(document).bind "page:restore", ->
that.L... | Use face an pop for model animation | Use face an pop for model animation
| CoffeeScript | mit | rockkhuya/taydantay,MicroPasts/micropasts-crowdfunding,jinutm/silverclass,jinutm/silveralms.com,gustavoguichard/neighborly,jinutm/silverpro,jinutm/silvfinal,MicroPasts/micropasts-crowdfunding,jinutm/silverprod,rockkhuya/taydantay,jinutm/silverpro,jinutm/silvfinal,rockkhuya/taydantay,raksonibs/raimcrowd,jinutm/silverpro... |
1c758c8e1c54df5e0728873803d425b229f2fb14 | app/scripts/lazerscripts/stage2/train_assaulter.coffee | app/scripts/lazerscripts/stage2/train_assaulter.coffee | Game = @Game
Game.Scripts ||= {}
class Game.Scripts.TrainAssaulter extends Game.EntityScript
spawn: (options) ->
dir = options.from ? 'top'
switch dir
when 'top'
startY = .3
@endY = .6
when 'middle'
startY = .5
@endY = .5
else
startY = .6
@end... | Game = @Game
Game.Scripts ||= {}
class Game.Scripts.TrainAssaulter extends Game.EntityScript
assets: ->
@loadAssets('playerShip')
spawn: (options) ->
dir = options.from ? 'top'
switch dir
when 'top'
startY = .3
@endY = .6
when 'middle'
startY = .5
@endY = .5... | Replace player clones in tunnel | Replace player clones in tunnel
| CoffeeScript | mit | matthijsgroen/game-play,matthijsgroen/game-play,matthijsgroen/game-play |
5d9e33ae934d0e21c7fb830c6a8685ba626bd146 | atom.symlink/config.cson | atom.symlink/config.cson | "*":
editor:
invisibles: {}
showInvisibles: true
fontFamily: "Source Code Pro"
core:
ignoredNames: [
".bundle"
".git"
"log"
"repositories"
"tmp"
"vendor"
]
disabledPackages: [
"background-tips"
"exception-reporting"
"metrics"
]
"spe... | "*":
editor:
invisibles: {}
showInvisibles: true
fontFamily: "Source Code Pro"
preferredLineLength: 100
core:
ignoredNames: [
".bundle"
".git"
"log"
"repositories"
"tmp"
"vendor"
]
disabledPackages: [
"background-tips"
"exception-reporting"... | Update preferred line length to 100 | Update preferred line length to 100
| CoffeeScript | mit | jacobwgillespie/dotfiles,jacobwgillespie/dotfiles |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.