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 |
|---|---|---|---|---|---|---|---|---|---|
8acdc559b18fce51b5943cf04557e8e72b2aee93 | grunt/amd_tamer.coffee | grunt/amd_tamer.coffee | module.exports =
dist:
options:
namespace: '<%= package.name %>',
base: 'src/'
src: ['src/**/*.js'],
dest: 'build/debug/js/<%= package.name %>.js'
all:
options:
footer: '//# sourceMappingURL=all.js.map'
base: 'build/debug/js'
src: ['build/debug/js/**/*.js']
dest: 'bui... | module.exports =
dist:
options:
namespace: '<%= package.name %>',
base: 'src/'
src: ['src/**/*.js'],
dest: '<%= buildDebug %>/js/<%= package.name %>.js'
all:
options:
footer: '//# sourceMappingURL=all.js.map'
base: '<%= buildDebug %>/js'
src: ['<%= buildDebug %>/js/**/*.j... | Update amd-tamer task to use variables and new naming scheme | Update amd-tamer task to use variables and new naming scheme
| CoffeeScript | unlicense | freezedev/lyria-template |
3bd63cf262ee84de235ac6a6887f408a8881657e | client/source/views/fields/edit.coffee | client/source/views/fields/edit.coffee | _ = require 'underscore'
View = require 'lib/view'
FormMixin = require 'views/base/mixins/form'
FieldTypeSettingsView = require 'views/fields/settings'
mediator = require 'mediator'
tpl = require 'templates/fields/edit'
module.exports = class FieldEditView extends View
template: tpl
events:
'submit form': 's... | _ = require 'underscore'
View = require 'lib/view'
FormMixin = require 'views/base/mixins/form'
FieldTypeSettingsView = require 'views/fields/settings'
mediator = require 'mediator'
tpl = require 'templates/fields/edit'
module.exports = class FieldEditView extends View
template: tpl
events:
'submit form': 's... | Fix for rendering Field Settings for default fields | Fix for rendering Field Settings for default fields
| CoffeeScript | agpl-3.0 | bucketsio/buckets,dut3062796s/buckets,nishant8BITS/buckets,mikesmithmsm/buckets,edolyne/hive,nishant8BITS/buckets,bucketsio/buckets,mamute/buckets,edolyne/hive,mikesmithmsm/buckets,asm-products/buckets,dut3062796s/buckets,edolyne/buckets,asm-products/buckets,mamute/buckets,artelse/buckets,artelse/buckets,edolyne/bucket... |
ca62551f4b04171e4af0075093fa751b29114b65 | src/app/common/services/analytics-service.coffee | src/app/common/services/analytics-service.coffee | angular.module("doubtfire.services.analytics", [])
#
# Services for analytics
#
.factory("analyticsService", ($analytics, currentUser) ->
analyticsService = {}
#
# Logs a new event
#
# For consistency, use like this:
# category: 'Visualisations' (Pluralised)
# eventName: 'Refreshed All' (Past-Tense)
... | angular.module("doubtfire.services.analytics", [])
#
# Services for analytics
#
.factory("analyticsService", ($analytics, currentUser) ->
analyticsService = {}
#
# Logs a new event
#
# For consistency, use like this:
# category: 'Visualisations' (Pluralised)
# eventName: 'Refreshed All' (Past-Tense)
... | Switch from using incorrect lodash function in analytics service | FIX: Switch from using incorrect lodash function in analytics service
| CoffeeScript | agpl-3.0 | doubtfire-lms/doubtfire-web,doubtfire-lms/doubtfire-web,final-year-project/doubtfire-web,alexcu/doubtfire-web,doubtfire-lms/doubtfire-web,alexcu/doubtfire-web,doubtfire-lms/doubtfire-web,final-year-project/doubtfire-web |
579316484ade843829f57296333da6e59ec9aa8a | server/index.coffee | server/index.coffee | express = require 'express'
cookieParser = require 'cookie-parser'
bodyParser = require 'body-parser'
expressSession = require 'express-session'
colors = require 'colors'
passport = require './lib/auth'
util = require './lib/util'
config = require './config'
module.exports = app = express()
app.set 'views', 'public/... | express = require 'express'
cookieParser = require 'cookie-parser'
bodyParser = require 'body-parser'
expressSession = require 'express-session'
colors = require 'colors'
passport = require './lib/auth'
util = require './lib/util'
config = require './config'
module.exports = app = express()
app.set 'views', 'public/... | Add error handling for dynamically loaded API routes | Add error handling for dynamically loaded API routes
| CoffeeScript | agpl-3.0 | artelse/buckets,mamute/buckets,edolyne/buckets,dut3062796s/buckets,asm-products/buckets,mikesmithmsm/buckets,mamute/buckets,nishant8BITS/buckets,edolyne/buckets,bucketsio/buckets,edolyne/hive,bucketsio/buckets,edolyne/hive,asm-products/buckets,nishant8BITS/buckets,artelse/buckets,dut3062796s/buckets,mikesmithmsm/bucket... |
2268402b48b0dea67a3c1e136a72421c8e15e098 | src/packages/wrap-guide/lib/wrap-guide-view.coffee | src/packages/wrap-guide/lib/wrap-guide-view.coffee | {View} = require 'space-pen'
$ = require 'jquery'
_ = require 'underscore'
module.exports =
class WrapGuideView extends View
@activate: ->
rootView.eachEditor (editor) =>
editor.underlayer.append(new WrapGuideView(editor)) if editor.attached
@content: ->
@div class: 'wrap-guide'
defaultColumn: 80... | {View} = require 'space-pen'
$ = require 'jquery'
_ = require 'underscore'
module.exports =
class WrapGuideView extends View
@activate: ->
rootView.eachEditor (editor) =>
editor.underlayer.append(new WrapGuideView(editor)) if editor.attached
@content: ->
@div class: 'wrap-guide'
defaultColumn: 80... | Use skinny arrow for WrapGuide.initialize() | Use skinny arrow for WrapGuide.initialize()
| CoffeeScript | mit | gzzhanghao/atom,kjav/atom,gisenberg/atom,alfredxing/atom,bj7/atom,jlord/atom,ralphtheninja/atom,kc8wxm/atom,githubteacher/atom,sebmck/atom,rjattrill/atom,qiujuer/atom,Arcanemagus/atom,ezeoleaf/atom,oggy/atom,dsandstrom/atom,andrewleverette/atom,hpham04/atom,amine7536/atom,FoldingText/atom,Austen-G/BlockBuilder,Locke23r... |
bb8f7d50ca4f302c64e431e290afc138686b8645 | apps/page/index.coffee | apps/page/index.coffee | #
# Pages like Terms of Use, Privacy, etc. that display relatively static content.
#
express = require 'express'
routes = require './routes'
app = module.exports = express()
app.set 'views', __dirname
app.set 'view engine', 'jade'
app.get '/terms', routes.vanityUrl('terms')
app.get '/past-terms', routes.vanityU... | #
# Pages like Terms of Use, Privacy, etc. that display relatively static content.
#
express = require 'express'
routes = require './routes'
app = module.exports = express()
app.set 'views', __dirname
app.set 'view engine', 'jade'
app.get '/terms', routes.vanityUrl('terms')
app.get '/past-terms', routes.vanityU... | Add embed-terms info to supported routes | Add embed-terms info to supported routes
| CoffeeScript | mit | damassi/force,joeyAghion/force,cavvia/force-1,anandaroop/force,xtina-starr/force,xtina-starr/force,oxaudo/force,izakp/force,damassi/force,joeyAghion/force,izakp/force,erikdstock/force,cavvia/force-1,mzikherman/force,artsy/force,erikdstock/force,TribeMedia/force-public,izakp/force,oxaudo/force,dblock/force,kanaabe/force... |
14d8742aea7f60c8e0bafe3429dd6f12880cbdca | kirppu/static_src/js/checkout/vendorfindmode.coffee | kirppu/static_src/js/checkout/vendorfindmode.coffee | class @VendorFindMode extends CheckoutMode
ModeSwitcher.registerEntryPoint("vendor_find", @)
constructor: (args..., query) ->
super
@vendorList = new VendorList()
@query = query
enter: ->
super
@cfg.uiRef.body.append(@vendorList.render())
if @query?
Api.vendor_find(q: @query).done... | class @VendorFindMode extends CheckoutMode
ModeSwitcher.registerEntryPoint("vendor_find", @)
constructor: (args..., query) ->
super
@vendorList = new VendorList()
@query = query
enter: ->
super
@cfg.uiRef.body.append(@vendorList.render())
if @query?
@onSearchVendor(@query)
glyp... | Clear vendor search with empty input. | Clear vendor search with empty input.
| CoffeeScript | mit | jlaunonen/kirppu,jlaunonen/kirppu,jlaunonen/kirppu,jlaunonen/kirppu |
ee619db5ff24c6ab6eaede9eb726c9ff0f2d058f | app/assets/javascripts/common/components/body.js.coffee | app/assets/javascripts/common/components/body.js.coffee | Vue = require "vue/dist/vue"
escape = require "../filters/escape"
linkify = require "../filters/linkify"
newLine = require "../filters/newLine"
module.exports = Vue.extend
methods:
filter: (text) ->
text = escape text
text = newLine text
text = linkify text
text
mounted: ->
$comme... | Vue = require "vue/dist/vue"
escape = require "../filters/escape"
linkify = require "../filters/linkify"
newLine = require "../filters/newLine"
module.exports = Vue.extend
methods:
filter: (text) ->
text = escape text
text = linkify text
text = newLine text
text
mounted: ->
$comme... | Fix a bug which linked URL is invalid | Fix a bug which linked URL is invalid
| CoffeeScript | apache-2.0 | annict/annict,elzzup/annict,annict/annict,elzzup/annict,annict/annict,annict/annict,elzzup/annict |
61b6e3e16ee82cebbbf75cfb269b38b6a859f957 | core/app/backbone/collections/followers.coffee | core/app/backbone/collections/followers.coffee | class window.Followers extends Backbone.Paginator.requestPager
model: User,
server_api:
take: -> @perPage
skip: -> (@currentPage-1) * @perPage
paginator_core:
dataType: "json",
url: -> "/#{@user.get('username')}/followers"
paginator_ui:
perPage: 3
firstPage: 1
currentPage: 1
... | class window.Followers extends Backbone.Paginator.requestPager
model: User,
server_api:
take: -> @perPage
skip: -> (@currentPage-1) * @perPage
paginator_core:
dataType: "json",
url: -> @url()
paginator_ui:
perPage: 3
firstPage: 1
currentPage: 1
initialize: (models, opts) ->
... | Use the collections' url for the paginator | Use the collections' url for the paginator
| CoffeeScript | mit | Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core,daukantas/factlink-core |
fb539d2ac740fb35668bb6e9188adb38c38bc7f5 | test/core/eventemitterwildcard.coffee | test/core/eventemitterwildcard.coffee | should = require 'should'
sinon = require 'sinon'
shouldSinon = require 'should-sinon'
KDEventEmitterWildcard = require '../../lib/core/eventemitterwildcard'
describe 'KDEventEmitterWildcard', ->
beforeEach ->
@instance = new KDEventEmitterWildcard
it 'exists', ->
KDEventEmitterWildcard.should.exist
d... | should = require 'should'
sinon = require 'sinon'
shouldSinon = require 'should-sinon'
KDEventEmitterWildcard = require '../../lib/core/eventemitterwildcard'
describe 'KDEventEmitterWildcard', ->
beforeEach ->
@instance = new KDEventEmitterWildcard
emitSpy = sinon.spy @instance.emit
it 'exists', ->
K... | Add more event emitter wildcard tests | Add more event emitter wildcard tests
| CoffeeScript | mit | koding/kd |
0ff5543f046e55d15ce9a75b491a569063be3731 | public/js/utils.coffee | public/js/utils.coffee | App.Utils =
hexToRgb: (hex) ->
result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec hex;
if result
r: parseInt(result[1], 16),
g: parseInt(result[2], 16),
b: parseInt(result[3], 16)
else
null
| App.Utils =
hexToRgb: (hex) ->
result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec hex;
if result
r: parseInt(result[1], 16),
g: parseInt(result[2], 16),
b: parseInt(result[3], 16)
else
null
# http://stackoverflow.com/questions/15661339/how-do-i-fix-blurry-text-in-my-html5-canvas
getPixelRat... | Add util methods for creating a high res canvas element | Add util methods for creating a high res canvas element
| CoffeeScript | mit | mattm/abtestcalculator,mattm/abtestcalculator |
0461ada9dab2d76a2bc93902bd1d49df438e6350 | lib/process-config.coffee | lib/process-config.coffee | module.exports =
class ProcessConfig
constructor: (object={}) ->
@namespace = 'Process Palette';
@action = null;
@command = null;
@arguments = [];
@cwd = null;
@env = {};
@keystroke = null;
@stream = false;
@outputTarget = 'panel';
@reuseOutputTarget = true;
@maxCompleted ... | module.exports =
class ProcessConfig
constructor: (object={}) ->
@namespace = 'Process Palette';
@action = null;
@command = null;
@arguments = [];
@cwd = null;
@env = {};
@keystroke = null;
@stream = false;
@outputTarget = 'panel';
@reuseOutputTarget = true;
@maxCompleted ... | Disable stream when output to clipboard. | Disable stream when output to clipboard.
| CoffeeScript | mit | hg42/process-palette,hg42/process-palette,hg42/process-palette,morassman/process-palette |
9c61bf5d3d5e79169ac32f5b5859f2a34453409b | src/businesscat.coffee | src/businesscat.coffee | # Description:
# Business cat is summoned when business jargon is used
#
# Dependencies:
# None
#
# Configuration:
# HUBOT_BUSINESS_CAT_JARGON comma-separated list of additional "tiggers"
#
# Commands:
# Business jargon - summons business cat
#
# Notes:
# See jargon array for list of trigger phrases
#
# Autho... | # Description:
# Business cat is summoned when business jargon is used
#
# Dependencies:
# None
#
# Configuration:
# HUBOT_BUSINESS_CAT_JARGON comma-separated list of additional "tiggers"
#
# Commands:
# Business jargon - summons business cat
#
# Notes:
# See jargon array for list of trigger phrases
#
# Autho... | Add ability to remove terms from list | Add ability to remove terms from list
| CoffeeScript | mit | hubot-scripts/hubot-business-cat,hubot-scripts/hubot-business-cat,hubot-scripts/hubot-business-cat |
3d5df8d7150d01285f43df75755ff1cdd64b0945 | app/assets/javascripts/lesson_header_onScroll.coffee | app/assets/javascripts/lesson_header_onScroll.coffee | window.lesson = {}
window.lesson.applyScrollEffect = (classList, options) ->
@prevST = 0
@scrollTimer = null
if localStorage.getItem('scrollAlertShown')
$('.scroll-effect-alert').alert('close')
else
$('.scroll-effect-alert .close').click(-> localStorage.setItem('scrollAlertShown', 'tru... | window.lesson = {}
window.lesson.applyScrollEffect = (classList, options) ->
@prevST = 0
@scrollTimer = null
@localStorageSupport = ->
test = ->
support = 'support'
localStorage.setItem(support, support)
localStorage.removeItem(support)
return true
... | Add try/catch to check localStorage support | Add try/catch to check localStorage support
| CoffeeScript | mit | PiotrEjsmont/theodinproject,PiotrEjsmont/theodinproject,ZmagoD/theodinproject,Sw33tT00th/theodinproject,TheOdinProject/theodinproject,laurennor/theodinproject,laurennor/theodinproject,Sw33tT00th/theodinproject,wiserfirst/theodinproject,PiotrEjsmont/theodinproject,mamdouhweb/theodinproject,matouk1114/theodinproject,mato... |
6e23d62b82bdfe3be4255349cc65470379e1288b | BackofficeBundle/Resources/public/coffee/formBehavior/ValidateHidden.coffee | BackofficeBundle/Resources/public/coffee/formBehavior/ValidateHidden.coffee | ###*
* @namespace OpenOrchestra:FormBehavior
###
window.OpenOrchestra or= {}
window.OpenOrchestra.FormBehavior or= {}
###*
* @class ValidateHidden
###
class OpenOrchestra.FormBehavior.ValidateHidden extends OpenOrchestra.FormBehavior.AbstractFormBehavior
###*
* activateBehaviorOnElements
* @param {Array} el... | ###*
* @namespace OpenOrchestra:FormBehavior
###
window.OpenOrchestra or= {}
window.OpenOrchestra.FormBehavior or= {}
###*
* @class ValidateHidden
###
class OpenOrchestra.FormBehavior.ValidateHidden extends OpenOrchestra.FormBehavior.AbstractFormBehavior
###*
* activateBehaviorOnElements
* @param {Array} el... | Fix broken css on some input text | Fix broken css on some input text
| CoffeeScript | apache-2.0 | open-orchestra/open-orchestra-cms-bundle,open-orchestra/open-orchestra-cms-bundle,open-orchestra/open-orchestra-cms-bundle |
4a35668e486d07658dbe5ca448cf3a8101e3a3d9 | src/core/math.coffee | src/core/math.coffee | ((window, Elyssa) ->
# Elyssa.Math
# Static class
# @mixin
Elyssa.Math =
# Clamps a value between a minimum and maximum
#
# @param {Number} The value that needs to be clamped
# @param {Number} Minimum (Optional, set to 0.0 by default)
# @param {Number} Maximum (Optional, set to 1.0 by def... | ((window, Elyssa) ->
# Elyssa.Math
# Static class
# @mixin
Elyssa.Math =
# Clamps a value between a minimum and maximum
#
# @param {Number} The value that needs to be clamped
# @param {Number} Minimum (Optional, set to 0.0 by default)
# @param {Number} Maximum (Optional, set to 1.0 by def... | Switch min and max in Math.clamp if max > min | Switch min and max in Math.clamp if max > min
| CoffeeScript | unlicense | elysionpowered/elyssa |
ecc34a8e5d8b23df0e7a2ea87a5fdfece61dff59 | apps/auction_lots/routes.coffee | apps/auction_lots/routes.coffee | _ = require 'underscore'
Artist = require '../../models/artist'
AuctionLots = require '../../collections/auction_lots'
@artist = (req, res) ->
artist = null
auctionLots = null
currentPage = parseInt req.query.page || 1
sort = req.query.sort
render = _.after 2, ->
res.render... | _ = require 'underscore'
Artist = require '../../models/artist'
AuctionLots = require '../../collections/auction_lots'
@artist = (req, res) ->
artist = null
auctionLots = null
currentPage = parseInt req.query.page || 1
sort = req.query.sort
render = _.after 2, ->
res.render... | Remove caching on auction lots until we can get headers working | Remove caching on auction lots until we can get headers working
| CoffeeScript | mit | kanaabe/force,anandaroop/force,erikdstock/force,joeyAghion/force,kanaabe/force,artsy/force,damassi/force,anandaroop/force,izakp/force,artsy/force-public,eessex/force,mzikherman/force,cavvia/force-1,eessex/force,damassi/force,yuki24/force,erikdstock/force,xtina-starr/force,xtina-starr/force,kanaabe/force,artsy/force,yuk... |
553c8c4795015a0c94a37d0388b7e5436a1eb8f6 | atom/keymap.cson | atom/keymap.cson | '.workspace':
'ctrl-h': 'window:focus-pane-on-left'
'ctrl-j': 'window:focus-pane-below'
'ctrl-k': 'window:focus-pane-above'
'ctrl-l': 'window:focus-pane-on-right'
'ctrl-|': 'pane:split-right'
'ctrl--': 'pane:split-down'
'alt-g j': 'git-diff:move-to-next-diff'
'alt-g k': 'git-diff:move-to-previous-diff... | '.workspace, .editor':
'ctrl-h': 'window:focus-pane-on-left'
'ctrl-j': 'window:focus-pane-below'
'ctrl-k': 'window:focus-pane-above'
'ctrl-l': 'window:focus-pane-on-right'
'.workspace':
'ctrl-|': 'pane:split-right'
'ctrl--': 'pane:split-down'
'alt-g j': 'git-diff:move-to-next-diff'
'alt-g k': 'git-dif... | Fix issue with ctrl-k keybinding in Atom | Fix issue with ctrl-k keybinding in Atom
Atom's built-in keybinding for ctrl-k (shown below) was taking
precedence over my custom keybinding.
".editor": {
"ctrl-k": "editor:cut-to-end-of-line",
By making the CSS selector more specific in my custom keybindings, we
ensure that Atom uses my keybinding instead of ... | CoffeeScript | mit | jasonrudolph/dotfiles,jasonrudolph/dotfiles,jasonrudolph/dotfiles,jasonrudolph/dotfiles |
32b2c9e23d478dac90ea8201d2e9c995df042c50 | tasks/jasmine.coffee | tasks/jasmine.coffee | gulp = require 'gulp'
jasmine = require 'gulp-jasmine'
module.exports = () ->
return gulp.src this.opts.config.jasmine.src
.pipe jasmine() # gulp-jasmine works on filepaths so you can't have any plugins before it
| gulp = require 'gulp'
jasmine = require 'gulp-jasmine'
module.exports = () ->
return gulp.src this.opts.config.jasmine.src
.pipe jasmine() # gulp-jasmine works on filepaths so you can't have any plugins before it
| Use 2 space indentation on return | Use 2 space indentation on return
| CoffeeScript | mit | ericmdev/gulp.tasks,ericmdev/gulp.tasks |
6c1616eaddf1f6d23e1e06b298bd79b70e686392 | lib/api.coffee | lib/api.coffee | request = require('request')
module.exports = class API
constructor: (apiKey) ->
@apiKey = apiKey
getCourseFromRoom: (building, room, done) ->
apiURL = @apiURLForEndpoint("buildings/#{building}/#{room}/courses")
options = {
uri: apiURL
headers: {'User-Agent': 'Roomular (https://github.com... | request = require('request')
module.exports = class API
constructor: (apiKey) ->
@apiKey = apiKey
getCourseFromRoom: (building, room, done) ->
apiURL = @apiURLForEndpoint("buildings/#{building}/#{room}/courses")
options = {
uri: apiURL
headers: {'User-Agent': 'Roomular (https://github.com... | Update V2 API endpoint path. | Update V2 API endpoint path.
The final version of the API has a slightly different endpoint than the
beta endpoint.
| CoffeeScript | mit | christhomson/roomular,christhomson/roomular |
d8f35f739c48fe23e7619673be52482c8e430f8e | test/cabin-spec.coffee | test/cabin-spec.coffee | "use strict"
assert = require 'assert'
server = require '../coffee/server.coffee'
cookie = null
before (done) ->
opts =
method: 'POST'
url: '/login'
payload: 'username=turbo%40dnt.org&password=helttopp'
headers:
'Content-Type': 'application/x-www-form-urlencoded'
'Content-Length': 42
... | "use strict"
assert = require 'assert'
server = require '../coffee/server.coffee'
cookie = null
before (done) ->
opts =
method: 'POST'
url: '/login'
payload: 'username=turbo%40dnt.org&password=helttopp'
headers:
'Content-Type': 'application/x-www-form-urlencoded'
'Content-Length': 42
... | Add 401 error test cases | Add 401 error test cases
| CoffeeScript | mit | Turistforeningen/hytteadmin_old |
2ffb8a16e013c60c07b4eff8f23c1b7fecb082bf | lib/spec-runner.coffee | lib/spec-runner.coffee | SpecLauncher = require './spec-launcher'
SpecRunnerView = require './spec-runner-view'
configUri = "atom://spec-runner"
module.exports =
activate: (state) ->
atom.project.registerOpener (uri) =>
@specRunnerView = new SpecRunnerView if uri is configUri
atom.config.setDefaults "spec-runner",
com... | SpecRunnerView = require './spec-runner-view'
configUri = "atom://spec-runner"
module.exports =
activate: (state) ->
atom.project.registerOpener (uri) =>
@specRunnerView = new SpecRunnerView if uri is configUri
atom.config.setDefaults "spec-runner",
command: "rspec"
atom.workspaceView.com... | Remove reference to spec-launcher, which no longer exists | Remove reference to spec-launcher, which no longer exists
| CoffeeScript | mit | gaslight/atom-spec-runner |
2ce18fb6376e15773b3d2a3728c26401bff59c70 | app/assets/javascripts/replace_self_on_load.js.coffee | app/assets/javascripts/replace_self_on_load.js.coffee | RunLoop.register ->
for el in $('[data-replace-self-on-load]')
url = $(el).data('replace-self-on-load')
$(el).removeAttr('data-replace-self-on-load')
$.get url, (html) ->
$(el).replaceWith(html)
| RunLoop.register ->
for el in $('[data-replace-self-on-load]')
url = $(el).data('replace-self-on-load')
$(el).removeAttr('data-replace-self-on-load')
$.get url, (html) ->
$(el).replaceWith(html)
$.fancybox.update()
| Make sure fancybox updates after things ajax in | Make sure fancybox updates after things ajax in
| CoffeeScript | mit | RobinClowers/photo-album,RobinClowers/photo-album,RobinClowers/photo-album,RobinClowers/photo-album |
3a926a8be7f598ec6e6bde40a0f3dff620c1c567 | app.coffee | app.coffee | express = require 'express'
stylus = require 'stylus'
assets = require 'connect-assets'
app = express.createServer()
app.use assets()
app.set 'view engine', 'jade'
app.get '/', (req, resp) -> resp.render 'index'
app.get '/:filename.:extension', (req, resp) ->
content = req.param['content']
if (content and conten... | express = require 'express'
stylus = require 'stylus'
assets = require 'connect-assets'
app = express.createServer()
app.use assets()
app.set 'view engine', 'jade'
app.get '/', (req, resp) -> resp.render 'index'
app.get '/:filename.:extension', (req, resp) ->
content = req.param['content']
if (content and conten... | Improve how params and routes are looked up | Improve how params and routes are looked up
| CoffeeScript | mit | joshmcarthur/savefile |
a9470a75c1d7638f3cefea9991d98908b25ea512 | app/assets/javascripts/report.js.coffee | app/assets/javascripts/report.js.coffee | #=require d3
$ ->
$(".report.repository-select").on 'change', (e) =>
repository = $(".report.repository-select").val()
window.location = "repository?show=#{repository}"
$(".dropdown-toggle").dropdown()
| #=require d3
$ ->
$(".report.repository-select").on 'change', (event) =>
repository = $(".report.repository-select").val()
window.location = "repository?show=#{repository}"
$(".dropdown-toggle").dropdown()
$("a.report.search").on 'click', (event) =>
parameter = $(event.target).data('parameter')
| Add jQuery on click event handler for search | Add jQuery on click event handler for search
Just added the click event handler to process metadata record search
requests. Currently, it just parses the data parameter to set if a
record is selected.
Signed-off-by: Konrad Reiche <4ff0213f56e2082fcd8c882d04c546881c579ce4@gmail.com>
| CoffeeScript | mit | platzhirsch/metadata-census |
d90869670d67d27b22f63d350763c3890c6449a4 | lib/providers/coffee-provider.coffee | lib/providers/coffee-provider.coffee | coffee = require 'coffee-script'
configManager = require '../config-manager'
cjsx_transform = null
module.exports =
id: 'coffee-compile'
selector: [
'source.coffee'
'source.litcoffee'
'text.plain'
'text.plain.null-grammar'
]
compiledScope: 'source.js'
preCompile: (code, editor) ->
... | coffee = require 'coffee-script'
configManager = require '../config-manager'
cjsx_transform = null
module.exports =
id: 'coffee-compile'
selector: [
'source.coffee'
'source.coffee.jsx'
'source.litcoffee'
'text.plain'
'text.plain.null-grammar'
]
compiledScope: 'source.js'
preCompi... | Add source.coffee.jsx to list of selectors. | Add source.coffee.jsx to list of selectors.
This matches orktes/atom-react selector for cjsx.
| CoffeeScript | mit | adrianlee44/atom-coffee-compile |
a7b68f7dccea360ea4d0a3b31e06d532a0a9fda2 | tutor/src/components/navbar/logout.cjsx | tutor/src/components/navbar/logout.cjsx | React = require 'react'
{CurrentUserStore} = require '../../flux/current-user'
classnames = require 'classnames'
LOGOUT_URL = '/accounts/logout'
LOGOUT_URL_CC = '/accounts/logout?cc=true'
CSRF_Token = CurrentUserStore.getCSRFToken()
LogoutLink = React.createClass
propTypes:
label: React.PropTypes.string
get... | React = require 'react'
{CurrentUserStore} = require '../../flux/current-user'
classnames = require 'classnames'
LOGOUT_URL = '/accounts/logout'
LOGOUT_URL_CC = '/accounts/logout?cc=true'
CSRF_Token = CurrentUserStore.getCSRFToken()
LogoutLink = React.createClass
propTypes:
label: React.PropTypes.string
get... | Update to use sentence case 'Log out' | Update to use sentence case 'Log out'
| CoffeeScript | agpl-3.0 | openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js |
aec17e1dfb87bc57c7602850707a5ed870cf0568 | index.coffee | index.coffee | # This is the Hubot Loading Bay. NPM uses it as an entry point.
#
# Hubot = require 'hubot'
# YourBot = Hubot.robot 'campfire', 'yourbot'
# Loads a Hubot robot
exports.loadBot = (adapterName, botName) ->
robot = require './src/robot'
new robot adapterName, botName
exports.robot = ->
require './src/robo... | # This is the Hubot Loading Bay. NPM uses it as an entry point.
#
# Hubot = require 'hubot'
# YourBot = Hubot.robot 'campfire', 'yourbot'
# Loads a Hubot robot
exports.loadBot = (adapterPath, adapterName, botName) ->
robot = require './src/robot'
new robot adapterPath, adapterName, botName
exports.robot ... | Call Hubot.loadBot with the correct params. | Call Hubot.loadBot with the correct params.
An argument was missing, fix that.
| CoffeeScript | mit | b3nj4m/hubot,julianromera/hubot,kevinsawicki/hubot,mcifani/dog-yoda,doudoupower/hubot,decaffeinate-examples/hubot,cycomachead/hubot,ooohiroyukiooo/hubot,alexchenfeng/hubot,lizardpie/hubot,alex-zhang/hubot,CobyR/hubot,kristenmills/hubot,daudich/hubot,Arthraim/merlin,rmdelo/appboy-hubot,lisb/hubot,alexchenfeng/hubot,mcif... |
dc0b1c171cfb12fb972fd3ca8c1013af20915772 | servers/lib/server/handlers/validateemail.coffee | servers/lib/server/handlers/validateemail.coffee | koding = require './../bongo'
{ getClientId } = require './../helpers'
module.exports = (req, res) ->
{ JUser } = koding.models
{ password, email, tfcode } = req.body
return res.status(400).send 'Bad request' unless email?
{ password, redirect } = req.body
clientId = getClientId req,... | koding = require './../bongo'
{ getClientId } = require './../helpers'
module.exports = (req, res) ->
{ JUser } = koding.models
{ password, email, tfcode } = req.body
unless email? and (email = email.trim()).length isnt 0
return res.status(400).send 'Bad request'
{ password, redirect ... | Trim white spaces during email validation | Trim white spaces during email validation
| CoffeeScript | agpl-3.0 | koding/koding,mertaytore/koding,koding/koding,gokmen/koding,jack89129/koding,sinan/koding,alex-ionochkin/koding,alex-ionochkin/koding,andrewjcasal/koding,andrewjcasal/koding,cihangir/koding,jack89129/koding,szkl/koding,szkl/koding,kwagdy/koding-1,mertaytore/koding,jack89129/koding,szkl/koding,rjeczalik/koding,rjeczalik... |
3a11165648baaa5bfa474e335526747ddb6dde5e | app/assets/javascripts/protected_branches.js.coffee | app/assets/javascripts/protected_branches.js.coffee | $ ->
$(".protected-branches-list :checkbox").change ->
name = $(this).attr("name")
if name == "developers_can_push"
id = $(this).val()
checked = $(this).is(":checked")
url = $(this).data("url")
$.ajax
type: "PUT"
url: url
dataType: "json"
data:
... | $ ->
$(".protected-branches-list :checkbox").change (e) ->
name = $(this).attr("name")
if name == "developers_can_push"
id = $(this).val()
checked = $(this).is(":checked")
url = $(this).data("url")
$.ajax
type: "PUT"
url: url
dataType: "json"
data:
... | Improve protected branches page UX | Improve protected branches page UX
| CoffeeScript | mit | louahola/gitlabhq,allistera/gitlabhq,it33/gitlabhq,ksoichiro/gitlabhq,NKMR6194/gitlabhq,fscherwi/gitlabhq,chenrui2014/gitlabhq,mente/gitlabhq,dukex/gitlabhq,hzy001/gitlabhq,joalmeid/gitlabhq,Devin001/gitlabhq,copystudy/gitlabhq,childbamboo/gitlabhq,mmkassem/gitlabhq,gorgee/gitlabhq,larryli/gitlabhq,sue445/gitlabhq,Lyta... |
b7cc0e01b426aadeccc93039b3f8fff67646a809 | app/talk/lib/project-linker.cjsx | app/talk/lib/project-linker.cjsx | React = require 'react'
apiClient = require '../../api/client'
{Navigation} = require 'react-router'
Loading = require '../../components/loading-indicator'
module?.exports = React.createClass
displayName: 'ProjectLinker'
mixins: [Navigation]
getInitialState: ->
projects: []
loading: true
componentWil... | React = require 'react'
apiClient = require '../../api/client'
{Navigation} = require 'react-router'
Loading = require '../../components/loading-indicator'
module?.exports = React.createClass
displayName: 'ProjectLinker'
mixins: [Navigation]
getInitialState: ->
projects: []
loading: true
componentWil... | Use refs, combine API calls | Use refs, combine API calls
| CoffeeScript | apache-2.0 | CKrawczyk/Panoptes-Front-End,alexbfree/Panoptes-Front-End,mrniaboc/Panoptes-Front-End,parrish/Panoptes-Front-End,camallen/Panoptes-Front-End,jelliotartz/Panoptes-Front-End,aliburchard/Panoptes-Front-End,CKrawczyk/Panoptes-Front-End,mrniaboc/Panoptes-Front-End,alexbfree/Panoptes-Front-End,edpaget/Panoptes-Front-End,jell... |
84cc829b9c8bbda0db0c4a6861acfd60ba513357 | src/streak-podium.coffee | src/streak-podium.coffee | # Description
# A hubot script that shows who has the longest github streak in your org
#
# Configuration:
# LIST_OF_ENV_VARS_TO_SET
# ORG_ACCESS_TOKEN
#
# Commands:
# streak ladder - <Gets a list of the longest github commit streaks in your org>
#
# Notes:
# An access token is required by the github api to a... | # Description
# A hubot script that shows who has the longest github streak in your org
#
# Configuration:
# LIST_OF_ENV_VARS_TO_SET
# HUBOT_ORG_ACCESS_TOKEN
#
# Commands:
# streak ladder - <Gets a list of the longest github commit streaks in your org>
#
# Notes:
# An access token is required by the github ap... | Use hubot convention of env var | Use hubot convention of env var
| CoffeeScript | mit | jollyra/hubot-commit-streak,jollyra/hubot-streak-podium,jollyra/hubot-commit-streak,jollyra/hubot-streak-podium |
4bfffb128a0f9bbf8abe16697bdbcb400889a835 | config/config.coffee | config/config.coffee | module.exports =
development:
port: 3000
production:
port: 80
| module.exports =
development:
port: 3000
production:
port: process.env.PORT || 80
| Use process.env.PORT to find the proroduction port | Use process.env.PORT to find the proroduction port
Signed-off-by: Ian Macalinao <08370e385f4778cad8fe504ec5445edd3d45bd9a@gmail.com>
| CoffeeScript | agpl-3.0 | VolumetricPixels/vb-site |
3e95fe4f508a22e55ad761c5472f0cb63677508f | packages/rocketchat-importer/client/admin/adminImportProgress.coffee | packages/rocketchat-importer/client/admin/adminImportProgress.coffee | Template.adminImportProgress.helpers
step: ->
return Template.instance().step.get()
completed: ->
return Template.instance().completed.get()
total: ->
return Template.instance().total.get()
Template.adminImportProgress.onCreated ->
instance = @
@step = new ReactiveVar t('Loading...')
@completed = new React... | Template.adminImportProgress.helpers
step: ->
return Template.instance().step.get()
completed: ->
return Template.instance().completed.get()
total: ->
return Template.instance().total.get()
Template.adminImportProgress.onCreated ->
instance = @
@step = new ReactiveVar t('Loading...')
@completed = new React... | Fix the import progress not having the correct translations | Fix the import progress not having the correct translations
| CoffeeScript | mit | inoio/Rocket.Chat,tntobias/Rocket.Chat,AimenJoe/Rocket.Chat,VoiSmart/Rocket.Chat,AlecTroemel/Rocket.Chat,trt15-ssci-organization/Rocket.Chat,subesokun/Rocket.Chat,tntobias/Rocket.Chat,Gudii/Rocket.Chat,Kiran-Rao/Rocket.Chat,ggazzo/Rocket.Chat,pachox/Rocket.Chat,snaiperskaya96/Rocket.Chat,galrotem1993/Rocket.Chat,abdulj... |
9c9fa13ab44f511db35ac3eef56abfbb63d95d38 | src/view/bindings/add_class_binding.coffee | src/view/bindings/add_class_binding.coffee | #= require ./abstract_attribute_binding
class Batman.DOM.AddClassBinding extends Batman.DOM.AbstractAttributeBinding
onlyObserve: Batman.BindingDefinitionOnlyObserve.Data
constructor: (definition) ->
{@invert} = definition
@classes = for name in definition.attr.split('|')
{name: name, pattern: new ... | #= require ./abstract_attribute_binding
class Batman.DOM.AddClassBinding extends Batman.DOM.AbstractAttributeBinding
onlyObserve: Batman.BindingDefinitionOnlyObserve.Data
constructor: (definition) ->
{@invert} = definition
@classes = for name in definition.attr.split('|')
{name: name, pattern: new ... | Fix multiple addclass for when multiple classes are specified | Fix multiple addclass for when multiple classes are specified
| CoffeeScript | mit | getshuvo/batman,getshuvo/batman |
de5a2ff220f422265a5832c484c5c45706cebbf2 | app/assets/javascripts/navigation.coffee | app/assets/javascripts/navigation.coffee | ready = ->
$('.js-navigation').on('click', -> $('.loading-indicator').show())
$(document).ready(ready)
$(document).on('page:load', ready)
| ready = ->
$('.js-navigation').on('click', (event) ->
if (event.ctrlKey or # New tab (windows)
event.shiftKey or # New window
event.metaKey or # New tab (mac)
(event.button and event.button == 1) # New tab (middle click)
)
return
return $('.loading-indicator').show())
$(document).ready(... | Hide Octospinner when opening in new tab/new window. | [fix] Hide Octospinner when opening in new tab/new window.
| CoffeeScript | mit | BelieveC/classroom,ConnorCartwright/classroom,mkcode/classroom,ConnorCartwright/classroom,BelieveC/classroom,BelieveC/classroom,mkcode/classroom,BelieveC/classroom,ConnorCartwright/classroom,mkcode/classroom |
8e6c176c14b5507f82725ab0707bfe1c36d4adfc | src/quo.style.coffee | src/quo.style.coffee | do ($$ = Quo) ->
VENDORS = [ "-webkit-", "-moz-", "-ms-", "-o-", "" ]
$$.fn.addClass = (name) ->
@each ->
unless _existsClass(name, @className)
@className += " " + name
@className = @className.trim()
$$.fn.removeClass = (name) ->
@each ->
... | do ($$ = Quo) ->
VENDORS = [ "-webkit-", "-moz-", "-ms-", "-o-", "" ]
$$.fn.addClass = (name) ->
@each ->
unless _existsClass(name, @className)
@className += " " + name
@className = @className.trim()
$$.fn.removeClass = (name) ->
@each ->
... | Fix for when the array is empty | Fix for when the array is empty
`$$.fn.hasClass` and `$$.fn.style` will both throw exceptions if the current selection of elements is empty. | CoffeeScript | mit | soyjavi/QuoJS,soyjavi/QuoJS,luiscauro/QuoJS,xuboso/QuoJS,luiscauro/QuoJS |
8c8b594d9017f817266cfb94dbee0b544c5099d1 | app/javascripts/filters.coffee | app/javascripts/filters.coffee | filters = angular.module 'qiprofile.filters', []
filters.filter 'capitalize', ->
(s) -> _.str.capitalize(s)
filters.filter 'moment', ->
(s) -> moment(s).format('MM/DD/YY')
filters.filter 'visitDates', ->
(sessions) ->
sess.acquisition_date() for sess in sessions
| filters = angular.module 'qiprofile.filters', []
filters.filter 'capitalize', ->
(s) -> _.str.capitalize(s)
filters.filter 'moment', ->
(s) -> moment(s).format('MM/DD/YYYY')
filters.filter 'visitDates', ->
(sessions) ->
sess.acquisition_date() for sess in sessions
| Add century to year field format. | Add century to year field format.
| CoffeeScript | bsd-2-clause | ohsu-qin/qiprofile,ohsu-qin/qiprofile,ohsu-qin/qiprofile,ohsu-qin/qiprofile |
5b239938a948b9d8ad6dfe6c670789bab78a7da4 | tasks/test-task.coffee | tasks/test-task.coffee | fs = require 'fs'
path = require 'path'
async = require 'async'
module.exports = (grunt) ->
{spawn} = require('./task-helpers')(grunt)
grunt.registerTask 'run-specs', 'Run the specs', ->
passed = true
done = @async()
atomPath = path.resolve('atom.sh')
apmPath = path.resolve('node_modules/.bin/apm... | fs = require 'fs'
path = require 'path'
async = require 'async'
module.exports = (grunt) ->
{spawn} = require('./task-helpers')(grunt)
grunt.registerTask 'run-specs', 'Run the specs', ->
passed = true
done = @async()
appDir = grunt.config.get('atom.appDir')
atomPath = path.join(appDir, 'atom.sh')... | Resolve atom.sh and apm relative to app dir | Resolve atom.sh and apm relative to app dir
| CoffeeScript | mit | woss/atom,sillvan/atom,FoldingText/atom,Neron-X5/atom,fedorov/atom,chengky/atom,helber/atom,yangchenghu/atom,targeter21/atom,qiujuer/atom,amine7536/atom,execjosh/atom,fedorov/atom,scippio/atom,targeter21/atom,kandros/atom,amine7536/atom,fscherwi/atom,devmario/atom,yomybaby/atom,Arcanemagus/atom,kc8wxm/atom,AlexxNica/at... |
2c43370f7f3508855aedef1c9154a61358d24107 | examples/rails.coffee | examples/rails.coffee | exports.config = (config) ->
# File path glob patterns.
# All file paths matching these glob patterns will be watched for changes,
# and when they are detected, the matching URL cache will be expired.
config.watch "app/assets/**"
config.watch "vendor/assets/**"
# Match file paths to their corresponding URL... | exports.config = (config) ->
# File path glob patterns.
# All file paths matching these glob patterns will be watched for changes,
# and when they are detected, the matching URL cache will be expired.
config.watch "app/assets/**"
config.watch "vendor/assets/**"
# Match file paths to their corresponding URL... | Include image files in cache busting for Rails. | Include image files in cache busting for Rails.
On branch master
modified: examples/rails.coffee
| CoffeeScript | mit | kixxauth/dev_proxy |
ee3f96315c7671bcfc4cc3062eaf3c81263b9355 | scripts/test-instance/aws.coffee | scripts/test-instance/aws.coffee | AWS = require 'aws-sdk'
AWS.config.region = 'us-east-1'
AWS.config.update
accessKeyId : 'AKIAJTAPKSDXI4FIXGJA'
secretAccessKey : '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'
module.exports = AWS
| AWS = require 'aws-sdk'
AWS.config.region = 'us-west-1'
AWS.config.update
accessKeyId : 'AKIAJTAPKSDXI4FIXGJA'
secretAccessKey : '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'
module.exports = AWS
| Change test environment AWS region to us-west-1 | Change test environment AWS region to us-west-1
| CoffeeScript | agpl-3.0 | kwagdy/koding-1,acbodine/koding,drewsetski/koding,szkl/koding,koding/koding,szkl/koding,andrewjcasal/koding,kwagdy/koding-1,mertaytore/koding,koding/koding,gokmen/koding,szkl/koding,drewsetski/koding,gokmen/koding,rjeczalik/koding,koding/koding,szkl/koding,szkl/koding,cihangir/koding,andrewjcasal/koding,gokmen/koding,r... |
98f5d927403bdf9d62d8c48f98a5e12f7c096fd6 | spec/variable-parser-spec.coffee | spec/variable-parser-spec.coffee | VariableParser = require '../lib/variable-parser'
describe 'VariableParser', ->
[parser] = []
itParses = (expression) ->
description: ''
asColor: (variable) ->
[expectedName] = Object.keys(variable)
expectedValue = variable[expectedName]
it "parses the '#{expression}' as a color variabl... | VariableParser = require '../lib/variable-parser'
describe 'VariableParser', ->
[parser] = []
itParses = (expression) ->
description: ''
as: (variable, lastIndex) ->
[expectedName] = Object.keys(variable)
expectedValue = variable[expectedName]
lastIndex ?= expression.length
it "pa... | Refactor variable parsing test helpers | :lipstick: Refactor variable parsing test helpers
| CoffeeScript | mit | peter1000/atom-pigments,peter1000/atom-pigments |
2535f5451ed0a421bba6f668a32fd0df7e7e8c62 | lib/main.coffee | lib/main.coffee | FileIcons = require './file-icons'
module.exports =
activate: (state) ->
@tabBarViews = []
TabBarView = require './tab-bar-view'
_ = require 'underscore-plus'
@paneSubscription = atom.workspace.observePanes (pane) =>
tabBarView = new TabBarView
tabBarView.initialize(pane)
paneEle... | FileIcons = require './file-icons'
module.exports =
activate: (state) ->
@tabBarViews = []
TabBarView = require './tab-bar-view'
_ = require 'underscore-plus'
@paneSubscription = atom.workspace.observePanes (pane) =>
tabBarView = new TabBarView
tabBarView.initialize(pane)
paneEle... | Update file icons on service change | Update file icons on service change
| CoffeeScript | mit | atom/tabs |
c01222b6125a365fca332b534dbdb71b13c86d6d | WsseDynamicValue.coffee | WsseDynamicValue.coffee | require "forge.bundle.js"
WsseDynamicValue = ->
this.username = ""
this.password = ""
this.evaluate = ->
time = (new Date()).toISOString()
nonce = forge.util.bytesToHex forge.random.getBytesSync 10
nonce64 = forge.util.encode64 nonce
md = forge.md.sha1.create()
md.update nonce + time + th... | require "forge.bundle.js"
WsseDynamicValue = ->
this.username = ""
this.password = ""
this.evaluate = ->
time = (new Date()).toISOString()
nonce = forge.util.bytesToHex forge.random.getBytesSync 10
nonce64 = forge.util.encode64 nonce
md = forge.md.sha1.create()
md.update nonce + time + th... | Use SecureValue field for password input | Use SecureValue field for password input
| CoffeeScript | mit | xelaris/paw-wsse-dynamic-value |
7c4f373d2ab785e800289be735b651d8c9e09f67 | src/main.coffee | src/main.coffee | fs = require 'fs'
path = require 'path'
delegate = require 'atom_delegate'
optimist = require 'optimist'
atomApplication = null
delegate.browserMainParts.preMainMessageLoopRun = ->
commandLineArgs = parseCommandLine()
require('module').globalPaths.push(path.join(commandLineArgs.resourcePath, 'src'))
AtomApplica... | fs = require 'fs'
path = require 'path'
delegate = require 'atom_delegate'
optimist = require 'optimist'
require 'coffee-script'
atomApplication = null
delegate.browserMainParts.preMainMessageLoopRun = ->
commandLineArgs = parseCommandLine()
require('module').globalPaths.push(path.join(commandLineArgs.resourcePat... | Add back coffee-script require but don't assign it | Add back coffee-script require but don't assign it
| CoffeeScript | mit | john-kelly/atom,Jandersolutions/atom,yangchenghu/atom,mostafaeweda/atom,codex8/atom,Jdesk/atom,MjAbuz/atom,abcP9110/atom,targeter21/atom,lovesnow/atom,YunchengLiao/atom,bradgearon/atom,hellendag/atom,AlbertoBarrago/atom,pombredanne/atom,kc8wxm/atom,scippio/atom,dannyflax/atom,splodingsocks/atom,Locke23rus/atom,bryonwin... |
30043f7ae6cd4c618773ff80444d38b132d14d18 | routes/params.coffee | routes/params.coffee | # galegis-api -- Structured Importing and RESTful providing of GA General Assembly Activity.
# Copyright (C) 2013 Matthew Farmer - Distributed Under the GNU AGPL 3.0. See LICENSE at project root.
module.exports = (app, jobs, db) ->
ObjectId = require('mongodb').ObjectID;
retrievalError = (error, res) ->
error... | # galegis-api -- Structured Importing and RESTful providing of GA General Assembly Activity.
# Copyright (C) 2013 Matthew Farmer - Distributed Under the GNU AGPL 3.0. See LICENSE at project root.
module.exports = (app, jobs, db) ->
ObjectId = require('mongodb').ObjectID;
retrievalError = (error, res) ->
res.j... | Remove random errorIds from retrievalError, reference valid var name | Remove random errorIds from retrievalError, reference valid var name
| CoffeeScript | agpl-3.0 | gaodp/gga-api,gaodp/gga-api |
d6e849a3e3395ad51921fcc9a82e72da81c3bd54 | framer/MIDIInput.coffee | framer/MIDIInput.coffee | {BaseClass} = require "./BaseClass"
{Events} = require "./Events"
Events.MIDICommand = "midiCommand"
class MIDIInput extends BaseClass
@define "enabled",
get: -> @_inputs?.length or @_request
set: (value) ->
return unless value != @enabled
return @_requestRejected() if not navigator.requestMIDIAccess
i... | {BaseClass} = require "./BaseClass"
{Events} = require "./Events"
Events.MIDICommand = "midiCommand"
class MIDIInput extends BaseClass
@define "enabled",
get: -> @_inputs?.length or @_request
set: (value) ->
return unless value != @enabled
return @_requestRejected() if not navigator.requestMIDIAccess
i... | Remove a stray console.log call. | Remove a stray console.log call.
| CoffeeScript | mit | koenbok/Framer,mattsjohnston/Framer,koenbok/Framer,mattsjohnston/Framer,koenbok/Framer,koenbok/Framer,awt2542/Framer,awt2542/Framer,mattsjohnston/Framer,awt2542/Framer,awt2542/Framer |
acf1da00fb020a9343b403230fbc5f8f81f64480 | server/assets.coffee | server/assets.coffee | stylus = require 'stylus'
express = require 'express'
{ basename, join } = require 'path'
browserify = do (browserify = require 'browserify-middleware') ->
(path) -> browserify path, transform: [ 'coffeeify', 'jadeify2' ]
module.exports = ->
@set 'public', join __dirname, '..', 'public'
@use stylus.middleware ... | stylus = require 'stylus'
express = require 'express'
{ basename, join } = require 'path'
browserify = do (browserify = require 'browserify-middleware') ->
(path) -> browserify path, transform: [ 'coffeeify', 'jadeify2' ]
module.exports = ->
@set 'public', join __dirname, '..', 'public'
@use stylus.middleware ... | Add maxAge for static files | Add maxAge for static files
| CoffeeScript | agpl-3.0 | shesek/bitrated,shesek/bitrated |
8e6cc43f13acd32a71877a714b8188f1b43bf138 | app/assets/javascripts/trade/mixins/flash.js.coffee | app/assets/javascripts/trade/mixins/flash.js.coffee | Trade.Flash = Ember.Mixin.create
needs: 'application'
application: Ember.computed.alias('controllers.application')
notification: Ember.computed.alias('controllers.application.notification')
flashSuccess: (options) ->
@get('application').notify({
title: "Done"
message: options.message,
type... | Trade.Flash = Ember.Mixin.create
needs: 'application'
application: Ember.computed.alias('controllers.application')
notification: Ember.computed.alias('controllers.application.notification')
flashSuccess: (options) ->
@get('application').notify({
title: "Done"
message: options.message,
type... | Fix flash error method using wrong attributes | Fix flash error method using wrong attributes
| CoffeeScript | bsd-3-clause | unepwcmc/SAPI,unepwcmc/SAPI,unepwcmc/SAPI,unepwcmc/SAPI |
4a39943f722e156de366c106166a65101505707d | keymaps/encoding-selector.cson | keymaps/encoding-selector.cson | '.platform-darwin atom-text-editor':
'ctrl-shift-u': 'encoding-selector:show'
'.platform-win32 atom-text-editor':
'ctrl-shift-u': 'encoding-selector:show'
'.platform-linux atom-text-editor':
'ctrl-u': 'encoding-selector:show'
| '.platform-darwin atom-text-editor':
'ctrl-shift-u': 'encoding-selector:show'
'.platform-win32 atom-text-editor':
'ctrl-shift-u': 'encoding-selector:show'
'.platform-linux atom-text-editor':
'alt-u': 'encoding-selector:show'
| Change linux keymap to match others | Change linux keymap to match others
| CoffeeScript | mit | atom/encoding-selector,pombredanne/encoding-selector |
e404704ce9b729672f5fce2a3c97fbdedfbc8e0c | app/assets/javascripts/wca-autocomplete.js.coffee | app/assets/javascripts/wca-autocomplete.js.coffee | $(document).ready ->
autocompleteURL = $("#competitor_wca").attr("data-url")
auto = $("#competitor_wca").typeahead {
minLength: 6
},{
source: (q, callback) ->
$.getJSON(autocompleteURL + "?q=#{q}")
.done (result) ->
callback(result)
matcher: (item) ->
true
name: 'wca... | $(document).ready ->
autocompleteURL = $("#competitor_wca").attr("data-url")
auto = $("#competitor_wca").typeahead {
minLength: 6
},{
source: (q, callback) ->
$.getJSON(autocompleteURL + "?q=#{q}")
.done (result) ->
callback(result)
matcher: (item) ->
true
name: 'wca... | Add competitor name to autocomplete suggestion. | Add competitor name to autocomplete suggestion.
| CoffeeScript | mit | fw42/cubecomp,fw42/cubecomp,fw42/cubecomp,fw42/cubecomp |
369fce4d8e2309eee7d337db70daf7b8dd4a59b2 | src/test.coffee | src/test.coffee | path = require 'path'
optimist = require 'optimist'
Command = require './command'
module.exports =
class Test extends Command
@commandNames: ['test']
parseOptions: (argv) ->
options = optimist(argv)
options.usage """
Usage:
apm test
Runs the package's tests contained within the spe... | path = require 'path'
optimist = require 'optimist'
Command = require './command'
module.exports =
class Test extends Command
@commandNames: ['test']
parseOptions: (argv) ->
options = optimist(argv)
options.usage """
Usage:
apm test
Runs the package's tests contained within the spe... | Mark path option as string | Mark path option as string
| CoffeeScript | mit | AtaraxiaEta/apm,fscherwi/apm,pusateri/apm,gutsy/apm,fscherwi/apm,bronson/apm,AtaraxiaEta/apm,fscherwi/apm,atom/apm,VandeurenGlenn/apm,bcoe/apm,AtaraxiaEta/apm,bcoe/apm,atom/apm,jlord/apm,bronson/apm,VandeurenGlenn/apm,bronson/apm,bronson/apm,VandeurenGlenn/apm,fscherwi/apm,jlord/apm,ethanp/apm,VandeurenGlenn/apm,jlord/... |
26b80bfa9f8f8557106f05db8e0f0202492be7af | _resources/manifest.cson | _resources/manifest.cson | name: 'Popup my Bookmarks'
version: ''
manifest_version: 2
minimum_chrome_version: '26'
default_locale: 'en'
description: '__MSG_extDesc__'
icons:
16: 'img/icon16.png'
48: 'img/icon48.png'
128: 'img/icon128.png'
browser_action:
default_icon: 'img/icon38.png'
default_popup: 'popup.html'
options_page: 'optio... | name: 'Popup my Bookmarks'
version: ''
manifest_version: 2
minimum_chrome_version: '32'
default_locale: 'en'
description: '__MSG_extDesc__'
icons:
16: 'img/icon16.png'
48: 'img/icon48.png'
128: 'img/icon128.png'
browser_action:
default_icon: 'img/icon38.png'
default_popup: 'popup.html'
options_page: 'optio... | Increase minimum_chrome_version to 32 in order to support Promise and onWheel | Increase minimum_chrome_version to 32 in order to support Promise and onWheel
| CoffeeScript | mit | foray1010/Popup-my-Bookmarks,foray1010/Popup-my-Bookmarks |
80fbffe5827b4766ad32e878b6c6081a7a2c75dc | app/assets/javascripts/application.js.coffee | app/assets/javascripts/application.js.coffee | #= require jquery
#= require jquery_ujs
#= require foundation
#= require rails.validations
#= require rails.validations.simple_form
#= require rails.validations.simple_form.fix
#= require turbolinks
#= require nprogress
#= require nprogress-turbolinks
#= require jquery.autosize
#= require globals/_functions
#= require ... | #= require vendor/modernizr
#= require jquery
#= require jquery_ujs
#= require foundation/foundation
#= require foundation
#= require rails.validations
#= require rails.validations.simple_form
#= require rails.validations.simple_form.fix
#= require turbolinks
#= require nprogress
#= require nprogress-turbolinks
#= requ... | Fix bug with Foundation undefined | Fix bug with Foundation undefined
| CoffeeScript | mit | lr-agenceweb/rails-starter,lr-agenceweb/rails-starter,lr-agenceweb/rails-starter,lr-agenceweb/rails-starter |
4f1191e80626fded2da601845b8470fcd94eb481 | atom/init.coffee | atom/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:
#
{$} = require 'atom'
path = require 'path'
atom.wor... | # 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.
#
{$} = require 'atom'
path = require 'path'
fileMasks = {
"\\.md$": (editor) ->
editor.setSoftWrap(true)
editor.setT... | Add infrastructure to have syntax-specific settings | Add infrastructure to have syntax-specific settings
| CoffeeScript | mit | lee-dohm/dotfiles,lee-dohm/dotfiles,lee-dohm/dotfiles,lee-dohm/dotfiles |
50e3ac7080135a8e9ea087c42b8d52ee69ff00c6 | atom/keymap.cson | atom/keymap.cson | # all
# ----------------------------------------
'atom-text-editor.vim-mode-plus':
# mode switch
'ctrl-space': 'vim-mode-plus:reset-normal-mode'
# undo/redo
'ctrl-u': 'vim-mode-plus:redo'
# motions
'ctrl-h': 'vim-mode-plus:previous-tab'
'ctrl-l': 'vim-mode-plus:next-tab'
'ctrl-k': 'vi... | # all
# ----------------------------------------
'atom-text-editor.vim-mode-plus':
# mode switch
'ctrl-space': 'vim-mode-plus:reset-normal-mode'
# undo/redo
'ctrl-u': 'vim-mode-plus:redo'
# motions
'ctrl-h': 'vim-mode-plus:previous-tab'
'ctrl-l': 'vim-mode-plus:next-tab'
'ctrl-k': 'vi... | Fix Atom reopen closed tab | Fix Atom reopen closed tab
| CoffeeScript | unlicense | cmcginty/dotfiles,cmcginty/dotfiles |
588dfd70683a512ada91bd49774d0b67de3ef2f0 | src/file-view.coffee | src/file-view.coffee | {View, $$} = require 'space-pen'
$ = require 'jquery'
Git = require 'git'
module.exports =
class FileView extends View
@content: (file) ->
@li class: 'file entry', =>
@span file.getBaseName(), class: 'name'
@span "", class: 'highlight'
file: null
initialize: (@file) ->
@addClass('ignored') ... | {View, $$} = require 'space-pen'
$ = require 'jquery'
Git = require 'git'
fs = require 'fs'
_ = require 'underscore'
module.exports =
class FileView extends View
@COMPRESSED_EXTENSIONS: [
'.zip'
'.jar'
'.tar'
'.gz'
]
@IMAGE_EXTENSIONS: [
'.jpeg'
'.jpg'
'.gif'
'.png'
]
@PDF_... | Use image, pdf, and compressed file icons | Use image, pdf, and compressed file icons
| CoffeeScript | mit | rajendrant/tree-view-remote,jarig/tree-view,ayumi/tree-view,jasonhinkle/tree-view,samu/tree-view,laituan245/tree-view,Galactix/tree-view,thgaskell/tree-view,matthewbauer/tree-view,atom/tree-view,cgrabowski/webgl-studio-tree-view,pombredanne/tree-view-1,tbryant/tree-view,learn-co/learn-ide-tree,ALEXGUOQ/tree-view,benjam... |
54c625f4664f3fb63004ea416977cec01ecd2de6 | client/controller/about-controller.coffee | client/controller/about-controller.coffee | class @AboutController extends RouteController
onBeforeRun: ->
if not subscriptionHandles.moderators
subscriptionHandles.moderators = Meteor.subscribe('moderators')
subscriptionHandles.moderators.stop = ->
tempalte: 'about'
renderTemplates:
'nav': to: 'nav'
data: ->
page: 'about' | class @AboutController extends RouteController
onBeforeRun: ->
if not subscriptionHandles.moderators
subscriptionHandles.moderators = Meteor.subscribe('moderators')
subscriptionHandles.moderators.stop = ->
waitOn: ->
subscriptionHandles.moderators
tempalte: 'about'
renderTemplates:
'n... | Fix the about page, where moderators don't always show up | Fix the about page, where moderators don't always show up
| CoffeeScript | apache-2.0 | rantav/reversim-summit-2015,rantav/reversim-summit-2015,rantav/reversim-summit-2014,rantav/reversim-summit-2014,rantav/reversim-summit-2015 |
087ac0bb1df9aaea45fe5d7030d8890025bcad5c | app/assets/javascripts/views/node-popup.view.js.coffee | app/assets/javascripts/views/node-popup.view.js.coffee | Wheelmap.NodePopupView = Ember.View.extend
templateName: 'node-popup'
classNames: ['node-popup-view']
aboutFaqLink: (()->
if I18n.locale == 'de' then 'http://wheelmap.org/about/faqs/' else 'http://wheelmap.org/en/faqs/'
).property()
linkTarget: (()->
if Ember.ENV.EMBEDDED then '_blank' else null
)... | Wheelmap.NodePopupView = Ember.View.extend
templateName: 'node-popup'
classNames: ['node-popup-view']
aboutFaqLink: (()->
if I18n.locale == 'de' then 'http://wheelmap.org/about/faqs/' else 'http://wheelmap.org/en/faqs/'
).property()
linkTarget: (()->
if Ember.ENV.WIDGET? then '_blank' else null
).... | Fix target in node popup links. | Fix target in node popup links.
| CoffeeScript | agpl-3.0 | sozialhelden/wheelmap,sozialhelden/wheelmap,sozialhelden/wheelmap,sozialhelden/wheelmap,sozialhelden/wheelmap |
410c116878e4db935e484a553cdee1626ae7b30e | bokehjs/test/models/transforms/jitter_transform.coffee | bokehjs/test/models/transforms/jitter_transform.coffee | {expect} = require "chai"
utils = require "../../utils"
{Collections} = utils.require "base"
Jitter = utils.require("models/transforms/jitter").Model
describe "Jitter transform module", ->
source = {start: 0, end: 10}
target = {start: 20, end: 80}
generate_jitter = ->
new Jitter({
width: 1,
mea... | {expect} = require "chai"
utils = require "../../utils"
{Collections} = utils.require "base"
Jitter = utils.require("models/transforms/jitter").Model
describe "Jitter transform module", ->
source = {start: 0, end: 10}
target = {start: 20, end: 80}
generate_jitter = ->
new Jitter({
width: 1,
mea... | Increase the number of samples to take such that the mean value is close enough to zero for the test. | Increase the number of samples to take such that the mean value is close enough to zero for the test.
| CoffeeScript | bsd-3-clause | percyfal/bokeh,rs2/bokeh,draperjames/bokeh,philippjfr/bokeh,timsnyder/bokeh,draperjames/bokeh,azjps/bokeh,schoolie/bokeh,draperjames/bokeh,ptitjano/bokeh,rs2/bokeh,ericmjl/bokeh,ptitjano/bokeh,bokeh/bokeh,phobson/bokeh,aavanian/bokeh,aavanian/bokeh,phobson/bokeh,quasiben/bokeh,ericmjl/bokeh,schoolie/bokeh,timsnyder/bok... |
cfa921602a7d632460db6a423d2bb042e4276192 | src/server.coffee | src/server.coffee | express = require 'express'
extend = require './extend'
{existsSync} = require './utils'
{join, dirname} = require 'path'
exports.extend = (app, func) ->
extend app, func
exports.createServer = (func) ->
app = express.createServer()
extend app, func
exports.default = (opts) ->
->
@configure ->
@se... | express = require 'express'
extend = require './extend'
{existsSync} = require './utils'
{join, dirname} = require 'path'
exports.extend = (app, func) ->
extend app, func
exports.createServer = (func) ->
app = express.createServer()
extend app, func
exports.default = (opts) ->
->
@configure ->
@se... | Use favicon middleware during development by default. | Use favicon middleware during development by default.
| CoffeeScript | mit | zeekay/die,zeekay/die,zeekay/die |
3587465aa4a5dab434e8b3a2c110a97970833750 | src/presenters/form/index.coffee | src/presenters/form/index.coffee | FieldList = require './field_list'
module.exports = class Form extends Backbone.Model
defaults:
saveable: false
updateOnly: false
sections: [
{ key: 'default', group: true }
{ key: 'none', group: false }
]
initialize: (attributes) ->
@original = attributes?.model
@buildClone... | FieldList = require './field_list'
module.exports = class Form extends Backbone.Model
defaults:
saveable: false
updateOnly: false
sections: [
{ key: 'default', group: true }
{ key: 'none', group: false }
]
initialize: (attributes) ->
@original = attributes?.model
@buildClone... | Store a 'fields' attribute on form | Store a 'fields' attribute on form | CoffeeScript | mit | trabian/titanium-backbone,vcu/titanium-backbone,vcu/titanium-backbone,trabian/titanium-backbone |
54bc0fba2536d30471daac4ce2cf1ad80ade5315 | app/example/index.coffee | app/example/index.coffee | module.exports = do (Marionette, $) ->
{ UIRouterMarionette } = require('../router')
App = new Marionette.Application
Marionette.Behaviors.behaviorsLookup = ->
# Import Marionette behaviors for state lookup/active state
UISref: require('../router/marionette/behaviors').UISref
App.addRegions
rootReg... | module.exports = do (Marionette, $) ->
{ UIRouterMarionette } = require('../router')
App = new Marionette.Application
Marionette.Behaviors.behaviorsLookup = ->
# Import Marionette behaviors for state lookup/active state
UISref: require('../router/marionette/behaviors').UISref
App.addRegions
rootReg... | Move trace from app "start" to app "before:start" | Move trace from app "start" to app "before:start"
| CoffeeScript | mit | bobmanary/ui-router-marionette,bobmanary/ui-router-marionette |
0971c69691f053062c4331d131d0e6a0c720caea | lineman/app/components/group_page/subgroups_card/subgroups_card.coffee | lineman/app/components/group_page/subgroups_card/subgroups_card.coffee | angular.module('loomioApp').directive 'subgroupsCard', ->
scope: {group: '='}
restrict: 'E'
templateUrl: 'generated/components/group_page/subgroups_card/subgroups_card.html'
replace: true
controller: ($scope, Records, AbilityService, ModalService, StartGroupForm) ->
Records.groups.fetchByParent $scope.gro... | angular.module('loomioApp').directive 'subgroupsCard', ->
scope: {group: '='}
restrict: 'E'
templateUrl: 'generated/components/group_page/subgroups_card/subgroups_card.html'
replace: true
controller: ($scope, Records, AbilityService, ModalService, StartGroupForm) ->
Records.groups.fetchByParent $scope.gro... | Fix existing add subgroup link | Fix existing add subgroup link
| CoffeeScript | agpl-3.0 | annewchen/loomio,piratas-ar/loomio,mhjb/loomio,gvalerin/loomio,digideskio/loomio,wangjun/loomio,FSFTN/Loomio,juliagra/DBCloomio,mlarghydracept/loomio,mhjb/loomio,wangjun/loomio,sicambria/loomio,juliagra/loomio,juliagra/loomio,digideskio/loomio,wangjun/loomio,loomio/loomio,FSFTN/Loomio,FSFTN/Loomio,juliagra/DBCloomio,an... |
2b20f1db076db0d17ee3ec16806ed9a22ccfbbc8 | src/scripts/redis-brain.coffee | src/scripts/redis-brain.coffee | # Description:
# None
#
# Dependencies:
# "redis": "0.7.2"
#
# Configuration:
# REDISTOGO_URL
#
# Commands:
# None
#
# Author:
# atmos
Url = require "url"
Redis = require "redis"
# sets up hooks to persist the brain into redis.
module.exports = (robot) ->
info = Url.parse process.env.REDISTOGO_URL || ... | # Description:
# None
#
# Dependencies:
# "redis": "0.7.2"
#
# Configuration:
# REDISTOGO_URL
#
# Commands:
# None
#
# Author:
# atmos
Url = require "url"
Redis = require "redis"
# sets up hooks to persist the brain into redis.
module.exports = (robot) ->
info = Url.parse process.env.REDISTOGO_URL || ... | Disable auto-saves until the data has been loaded | Disable auto-saves until the data has been loaded
| CoffeeScript | mit | davidsulpy/hubot-scripts,alexhouse/hubot-scripts,jan0sch/hubot-scripts,justinwoo/hubot-scripts,dbkaplun/hubot-scripts,1000hz/hubot-scripts,phillipalexander/hubot-scripts,terryjbates/hubot-scripts,azimman/hubot-scripts,GrimDerp/hubot-scripts,arcaartem/hubot-scripts,magicstone1412/hubot-scripts,ambikads/hubot-scripts,mar... |
d4980893a1c0f4e1bd510a1b5804c11f3000df2f | app/assets/javascripts/darkswarm/directives/darker_background.js.coffee | app/assets/javascripts/darkswarm/directives/darker_background.js.coffee | Darkswarm.directive "darkerBackground", ->
restrict: "A"
link: (scope, elm, attr)->
elm.closest('.page-view').toggleClass("with-darker-background", true)
| Darkswarm.directive "darkerBackground", ->
restrict: "A"
link: (scope, elm, attr)->
toggleClass = (value) ->
elm.closest('.page-view').toggleClass("with-darker-background", value)
toggleClass(true)
| Refactor darker-background directive, extract method | Refactor darker-background directive, extract method
| CoffeeScript | agpl-3.0 | openfoodfoundation/openfoodnetwork,lin-d-hop/openfoodnetwork,lin-d-hop/openfoodnetwork,openfoodfoundation/openfoodnetwork,openfoodfoundation/openfoodnetwork,lin-d-hop/openfoodnetwork,openfoodfoundation/openfoodnetwork,mkllnk/openfoodnetwork,Matt-Yorkley/openfoodnetwork,mkllnk/openfoodnetwork,Matt-Yorkley/openfoodnetwor... |
739e63576edeafe7dc100c9a55796a847621eed8 | src/scripts/helpers/backbone/views/editable.coffee | src/scripts/helpers/backbone/views/editable.coffee | define (require) ->
BaseView = require('cs!helpers/backbone/views/base')
observerConfig =
subtree: true
childList: true
characterData: true
return class EditableView extends BaseView
initialize: () ->
super()
@listenTo(@model, 'change:edit', @toggleEdit)
@observer = new Mutat... | define (require) ->
BaseView = require('cs!helpers/backbone/views/base')
observerConfig =
subtree: true
childList: true
characterData: true
return class EditableView extends BaseView
initialize: () ->
super()
@listenTo(@model, 'change:edit', @toggleEdit)
@observer = new Mutat... | Use find instead of children to support more advanced selectors | Use find instead of children to support more advanced selectors
| CoffeeScript | agpl-3.0 | katalysteducation/webview,Connexions/webview,dak/webview,katalysteducation/webview,katalysteducation/webview,Connexions/webview,dak/webview,dak/webview,Connexions/webview,katalysteducation/webview,carolinelane10/webview,Connexions/webview |
b702423915c4c76e30916df05bd362a8bd185b7a | angular/core/services/record_loader.coffee | angular/core/services/record_loader.coffee | angular.module('loomioApp').factory 'RecordLoader', (Records) ->
class RecordLoader
constructor: (opts = {}) ->
@loadingFirst = true
@collection = opts.collection
@params = opts.params or {from: 0, per: 25, order: 'id'}
@path = opts.path
@numLoaded = opts.numLoaded or 0
... | angular.module('loomioApp').factory 'RecordLoader', (Records) ->
class RecordLoader
constructor: (opts = {}) ->
@loadingFirst = true
@collection = opts.collection
@params = opts.params or {from: 0, per: 25, order: 'id'}
@path = opts.path
@numLoaded = opts.numLoaded or 0
... | Fix custom then on record loader | Fix custom then on record loader
| CoffeeScript | agpl-3.0 | loomio/loomio,piratas-ar/loomio,piratas-ar/loomio,piratas-ar/loomio,loomio/loomio,loomio/loomio,loomio/loomio,piratas-ar/loomio |
665889b8864cb613263bcb19f3807318e6ce283d | client/Main/CommonViews/applicationview/applicationtabhandleholder.coffee | client/Main/CommonViews/applicationview/applicationtabhandleholder.coffee | class ApplicationTabHandleHolder extends KDView
constructor: (options = {}, data) ->
options.cssClass = KD.utils.curry "application-tab-handle-holder", options.cssClass
options.bind = "mouseenter mouseleave"
options.addPlusHandle ?= yes
super options, data
if options.addPlus... | class ApplicationTabHandleHolder extends KDView
constructor: (options = {}, data) ->
options.cssClass = KD.utils.curry "application-tab-handle-holder", options.cssClass
options.bind = "mouseenter mouseleave"
options.addPlusHandle ?= yes
super options, data
if options.addPlus... | Make sure there is handle (since its optional this check is necessary) | ApplicationTabHandleHolder: Make sure there is handle (since its optional this check is necessary)
| CoffeeScript | agpl-3.0 | gokmen/koding,cihangir/koding,koding/koding,szkl/koding,alex-ionochkin/koding,jack89129/koding,cihangir/koding,kwagdy/koding-1,koding/koding,cihangir/koding,usirin/koding,kwagdy/koding-1,kwagdy/koding-1,usirin/koding,jack89129/koding,koding/koding,acbodine/koding,drewsetski/koding,mertaytore/koding,andrewjcasal/koding,... |
d117e58aa1a9846a94d6c6d1c027b3ee14d80079 | app/assets/javascripts/papers.js.coffee | app/assets/javascripts/papers.js.coffee | $(document).ready ->
if $('[contenteditable!=false]').length > 0
for elementId in ['body_editable', 'abstract_editable']
CKEDITOR.inline elementId,
extraPlugins: 'sharedspace'
removePlugins: 'floatingspace,resize'
sharedSpaces:
top: 'ckeditor-toolbar'
$('#save_button').o... | $(document).ready ->
if $('[contenteditable!=false]').length > 0
for elementId in ['body_editable', 'abstract_editable']
CKEDITOR.inline elementId,
extraPlugins: 'sharedspace'
removePlugins: 'floatingspace,resize'
sharedSpaces:
top: 'ckeditor-toolbar'
toolbarGroups:... | Remove unsupported items from toolbar | Remove unsupported items from toolbar
| CoffeeScript | mit | johan--/tahi,johan--/tahi,johan--/tahi,johan--/tahi |
ef7c4b87ef91ea2bf71bb9e579b1163845d858a6 | app/assets/javascripts/rounds.js.coffee | app/assets/javascripts/rounds.js.coffee | jQuery ->
$('.results_round').dataTable
bPaginate: false
bInfo: false
sDom: 't'
aoColumnDefs: [
aTargets: ['recalled_header', 'adjudicator_header']
bSearchable: false
]
$('.results_round').floatThead()
| jQuery ->
$('.results_round').dataTable
bPaginate: false
bInfo: false
sDom: 't'
aoColumnDefs: [
aTargets: ['recalled_col', 'adjudicator_col']
bSearchable: false
]
$('.results_round').floatThead()
| Update DataTables `aoColumnDefs` class names. | Update DataTables `aoColumnDefs` class names.
They were not updated to match the new class name conventions, so the
mark and recall columns were ending up searchable.
| CoffeeScript | agpl-3.0 | haxney/railskating,haxney/railskating |
43d0910145f7e89af80fa7fda21edb953191ecb0 | src/crowdstart.coffee | src/crowdstart.coffee | xhr = require 'xhr'
class Crowdstart
endpoint: "https://api.crowdstart.com"
constructor: (@key) ->
setKey: (key) ->
@key = key
req: (uri, data, cb) ->
xhr
uri: (@endpoint.replace /\/$/, '') + uri
method: 'POST'
headers:
'Content-Type': 'application/json'
'Authorizat... | xhr = require 'xhr'
class Crowdstart
endpoint: "https://api.crowdstart.com"
constructor: (@key) ->
setKey: (key) ->
@key = key
setStore: (id) ->
@storeId = id
req: (uri, data, cb) ->
xhr
uri: (@endpoint.replace /\/$/, '') + uri
method: 'POST'
headers:
'Content-Type': ... | Support stores, add setStore method. | Support stores, add setStore method.
| CoffeeScript | mit | crowdstart/crowdstart.js |
c0f9006b616b313ca476677b5dc56e9bbc35c60f | src/scripts/heroku-status.coffee | src/scripts/heroku-status.coffee | # Show current Heroku status
module.exports = (robot) ->
robot.respond /heroku status/, (msg) ->
msg.http("https://status.heroku.com/status.json")
.get() (err, res, body) ->
try
json = JSON.parse(body)
msg.send "App Operations: #{json['App Operations']}\n" +
"... | # Show current Heroku status
#
# heroku status - Returns the current Heroku status for app operations and tools
module.exports = (robot) ->
robot.respond /heroku status/, (msg) ->
msg.http("https://status.heroku.com/status.json")
.get() (err, res, body) ->
try
json = JSON.parse(body)
... | Add TomDoc for Heroku status script usage | Add TomDoc for Heroku status script usage
| CoffeeScript | mit | markstory/hubot-scripts,yigitbey/hubot-scripts,1stdibs/hubot-scripts,chauffer/hubot-scripts,marksie531/hubot-scripts,wsoula/hubot-scripts,ambikads/hubot-scripts,bruno/hubot-scripts,github/hubot-scripts,flores/hubot-scripts,n0mer/hubot-scripts,MaxMEllon/hubot-scripts,arcaartem/hubot-scripts,amhorton/hubot-scripts,openta... |
f75d06b302849be835e0b3025bb7cd435941775e | lib/resin/data/fs-utils/fs-utils.coffee | lib/resin/data/fs-utils/fs-utils.coffee | fs = require('fs')
_ = require('lodash')
# Check if valid path
#
# @private
#
# @param {String} path path
# @return {Boolean} is valid path
#
# @todo There should be more complex checks here
#
# @example Is valid path?
# console.log isValidPath('/Users/me') # True
# console.log isValidPath([ 1, 2, 3 ]) # False
#
exp... | fs = require('fs')
_ = require('lodash')
# Check if valid path
#
# @private
#
# @param {String} path path
# @return {Boolean} is valid path
#
# @todo There should be more complex checks here
#
# @example Is valid path?
# console.log isValidPath('/Users/me') # True
# console.log isValidPath([ 1, 2, 3 ]) # False
#
exp... | Fix documentation examples for fsUtils.isDirectory | Fix documentation examples for fsUtils.isDirectory
| CoffeeScript | apache-2.0 | resin-io/resin-cli,resin-io/resin-cli,resin-io/resin-cli,resin-io/resin-cli |
5fd4ea150eb98d488c478cb4c6b75953be9e9ed7 | lib/main.coffee | lib/main.coffee | module.exports =
instance: null
config:
lintOnFly:
title: 'Lint on fly'
description: 'Lint files while typing, without the need to save them'
type: 'boolean'
default: true
showErrorInline:
type: 'boolean'
default: true
activate: ->
@instance = new (require './linte... | module.exports =
instance: null
config:
lintOnFly:
title: 'Lint on fly'
description: 'Lint files while typing, without the need to save them'
type: 'boolean'
default: true
showErrorInline:
title: "Show Inline Tooltips"
descriptions: "Show inline tooltips for errors"
... | Add description and title to showErrorInline config | :art: Add description and title to showErrorInline config
| CoffeeScript | mit | Arcanemagus/linter,blakeembrey/linter,JohnMurga/linter,e-jigsaw/Linter,DanPurdy/linter,AsaAyers/linter,atom-community/linter,josa42/Linter,steelbrain/linter,UltCombo/linter,AtomLinter/Linter,levity/linter,kaeluka/linter,mdgriffith/linter,iam4x/linter,elkeis/linter,simurai/linter-plus,shawninder/linter |
fcf2834a4e4a44f0bd22aba47a657a24f32e42de | coffee/image_list_widget.coffee | coffee/image_list_widget.coffee | class ImageListWidget
constructor: (images) ->
@imgs = images
@binder = new Binder()
onCreate: () ->
@binder.bindAction(
Rx.Observable
.fromEvent($(window), 'resize')
.map(() => $(window).height())
.startWith($(window).height()... | class ImageListWidget
constructor: (images) ->
@imgs = images
@binder = new Binder()
onCreate: () ->
@binder.bindAction(
Rx.Observable
.fromEvent($(window), 'resize')
.map(() => $(window).height())
.startWith($(window).height()... | Fix broken scroll on firefox | Fix broken scroll on firefox
| CoffeeScript | mit | acadet/vagabond,acadet/vagabond,acadet/vagabond |
0e17ca6b2679a7767fec51498bed10dc135228ad | keymaps/textmate.cson | keymaps/textmate.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... | Move (temporarily) to ctrl-cmd-o since cmd-O seems unaccessible | Move (temporarily) to ctrl-cmd-o since cmd-O seems unaccessible | CoffeeScript | mit | elia/atom-textmate |
f593a37f71dda0fa070f97de8dbf6b40fefb2f5b | lib/linter-jshint.coffee | lib/linter-jshint.coffee | linterPath = atom.packages.getLoadedPackage("linter").path
Linter = require "#{linterPath}/lib/linter"
class LinterJshint extends Linter
# The syntax that the linter handles. May be a string or
# list/tuple of strings. Names should be all lowercase.
@syntax: ['source.js', 'source.js.jquery', 'text.html.basic'] #... | linterPath = atom.packages.getLoadedPackage("linter").path
Linter = require "#{linterPath}/lib/linter"
findFile = require "#{linterPath}/lib/util"
class LinterJshint extends Linter
# The syntax that the linter handles. May be a string or
# list/tuple of strings. Names should be all lowercase.
@syntax: ['source.j... | Use `.jshintrc` if present in directory | feat(jshintrc): Use `.jshintrc` if present in directory
| CoffeeScript | mit | jlsalvador/linter-jslint |
3c7871c449be2833dc8b205e55032c0262814b4c | app/assets/javascripts/lib/util/flexibility_order.coffee | app/assets/javascripts/lib/util/flexibility_order.coffee | class @FlexibilityOrder
constructor: (@element) ->
# pass
url: (path) ->
"#{ App.scenario.url_path() }/flexibility_order/#{ path }"
update: (order) =>
$.ajax
url: @url('set'),
type: 'POST',
data:
flexibility_order:
order: order,
scenario_id: App.scenario... | class @FlexibilityOrder
constructor: (@element) ->
# pass
url: (path) ->
"#{ App.scenario.url_path() }/flexibility_order/#{ path }"
update: (order) =>
$.ajax
url: @url('set'),
type: 'POST',
data:
flexibility_order:
order: order,
scenario_id: App.scenario... | Remove a "console.log" from FlexibilityOrder | Remove a "console.log" from FlexibilityOrder
| CoffeeScript | mit | quintel/etmodel,quintel/etmodel,quintel/etmodel,quintel/etmodel |
a0e7c630f2b029f43ef69a9cd5f934b6aab3602a | app/assets/javascripts/routes/categories-route.js.coffee | app/assets/javascripts/routes/categories-route.js.coffee | App.CategoriesRoute = Em.Route.extend
model: ->
App.Category.findAll()
setupController: (controller, model) ->
@_super controller, model
@set 'unassigned', model.findBy('system_type', 'unassigned')
| App.CategoriesRoute = Em.Route.extend
model: ->
App.Category.findAll()
setupController: (controller, model) ->
@_super controller, model
unassigned = model.findBy('system_type', 'unassigned')
@controllerFor('categoriesShow').set('model', unassigned)
@controllerFor('pagedTransactions').setPropert... | Load unassigned category on main categories index page | Load unassigned category on main categories index page | CoffeeScript | mit | artzte/itcostus,artzte/itcostus |
269436d8c29c44561e094203ef241c1dba393880 | client/TestRunner.coffee | client/TestRunner.coffee | class TestRunner
running: false
results: {}
instance = null
@get: ->
instance ?= new TestRunner();
constructor: ()->
Meteor.startup =>
console.log 'TestRunner: Meteor.startup'
Tracker.autorun @onVelocityIsReady
onVelocityIsReady: =>
console.log 'onVelocityIsReady:'
retu... | class TestRunner
running: false
results: {}
instance = null
@get: ->
instance ?= new TestRunner();
constructor: ()->
Meteor.startup =>
console.log 'TestRunner: Meteor.startup'
Tracker.autorun @onVelocityIsReady
onVelocityIsReady: =>
console.log 'onVelocityIsReady:'
retu... | Fix bug to get always notified when all tests are completed | Fix bug to get always notified when all tests are completed
| CoffeeScript | mit | spacejamio/test-in-velocity |
7f2dd031fed26c9a338e24fde853f14a75dae9bb | app/assets/main.coffee | app/assets/main.coffee | require './shim/phantomjs-bind'
window.Promise = require 'bluebird'
window.Rdb = require('rdb/index')
| require './shim/phantomjs-bind'
window.Promise = require 'bluebird'
if process.env.NODE_ENV == 'development'
Promise.longStackTraces()
window.Rdb = require('rdb/index')
| Use bluebird long stacktraces in development | Use bluebird long stacktraces in development | CoffeeScript | agpl-3.0 | jmfarina/redmine_dashboard,intfrr/redmine_dashboard,intfrr/redmine_dashboard,jmfarina/redmine_dashboard,jmfarina/redmine_dashboard,jmfarina/redmine_dashboard,intfrr/redmine_dashboard,intfrr/redmine_dashboard |
7812fa0b7b1f0b84e103950c2de21a2b31703c58 | app/assets/javascripts/datepicker.js.coffee | app/assets/javascripts/datepicker.js.coffee | # Copyright (c) 2008-2013 Michael Dvorkin and contributors.
#
# Fat Free CRM is freely distributable under the terms of MIT license.
# See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php
#------------------------------------------------------------------------------
(($) ->
$('input.date').liv... | # Copyright (c) 2008-2013 Michael Dvorkin and contributors.
#
# Fat Free CRM is freely distributable under the terms of MIT license.
# See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php
#------------------------------------------------------------------------------
(($) ->
$(document).on 'cli... | Replace 'live' with 'on' syntax. | Replace 'live' with 'on' syntax.
| CoffeeScript | mit | dp4rk/fat_free_crm,unboxed/fat_free_crm,hunterlive/hdrive,AntonioRossi/fat_free_crm,rovin100/fat_free_crm,StudioMelipone/fat_free_crm,Phaya-nmt/ffcm,danjohnson3141/fat_free_crm,rovin100/fat_free_crm,arboradalaci/fatfreecrm,stanleylhs/fat_free_crm,chickensmitten/workcrm,chickensmitten/ffcrm,dalegregory/fat_free_crm,will... |
8cc7dafa9d6b39cc5662170397b1408039017259 | scripts/arnie-quotes.coffee | scripts/arnie-quotes.coffee | # Description:
# Listens for words and sometimes replies with an Arnie quote
#
# Dependencies:
# None
#
# Commands:
# None
#
# Author:
# Casey Lawrence <casey.j.lawrence@gmail.com>
#
odds = [1...100]
arnie_quotes = [
'GET TO THE CHOPPA!',
'Your clothes, give them to me, NOW!',
'Hasta La Vista, Ba... | # Description:
# Listens for words and sometimes replies with an Arnie quote
#
# Dependencies:
# None
#
# Commands:
# None
#
# Author:
# Casey Lawrence <casey.j.lawrence@gmail.com>
#
arnie_quotes = [
'GET TO THE CHOPPA!',
'Your clothes, give them to me, NOW!',
'Hasta La Vista, Baby!',
'DDDAAANN... | Remove percentages and combine robot.hear calls | Remove percentages and combine robot.hear calls
| CoffeeScript | mit | traviskroberts/superbestbot |
3170318cdf89a3e4e2aa6b946f2897f1b7539a96 | app/assets/javascripts/routers/movies_router.js.coffee | app/assets/javascripts/routers/movies_router.js.coffee | class Shothere.Routers.MoviesRouter extends Backbone.Router
initialize: (options) ->
@movies = new Shothere.Collections.MoviesCollection()
@movies.reset options.movies if options.movies
@movies.on( 'add', @index, @)
routes:
"new" : "newMovie"
"index" : "index"
":id/edit" : "edit"
... | class Shothere.Routers.MoviesRouter extends Backbone.Router
initialize: (options) ->
@movies = new Shothere.Collections.MoviesCollection()
@movies.reset options.movies if options.movies
routes:
"new" : "newMovie"
"index" : "index"
":id/edit" : "edit"
":id" : "show"
".*" ... | Stop redirecting to movies index when adding a movie | Stop redirecting to movies index when adding a movie
| CoffeeScript | mit | paulRbr/ShotHere,paulRbr/ShotHere,paulRbr/ShotHere |
4e499632a6898699526b6108de4ba046ff1cdf88 | workers/social/lib/social/models/computeproviders/handlers/usernamechanged.coffee | workers/social/lib/social/models/computeproviders/handlers/usernamechanged.coffee | module.exports = usernameChanged = ({ oldUsername, username, isRegistration }) ->
return unless oldUsername and username
return if isRegistration
JMachine = require '../machine'
console.log "Removing user #{oldUsername} vms..."
JMachine.update
provider : { $in: ['koding', 'managed'] }
crede... | module.exports = usernameChanged = ({ oldUsername, username, isRegistration }) ->
return unless oldUsername and username
return if isRegistration
JUser = require '../../user'
JMachine = require '../machine'
console.log "Removing user #{oldUsername} vms..."
JMachine.update
provider : { $in:... | Remove User from shared machines when username changed. | ComputeProviders: Remove User from shared machines when username changed.
| CoffeeScript | agpl-3.0 | szkl/koding,rjeczalik/koding,andrewjcasal/koding,usirin/koding,alex-ionochkin/koding,sinan/koding,kwagdy/koding-1,cihangir/koding,andrewjcasal/koding,mertaytore/koding,drewsetski/koding,sinan/koding,acbodine/koding,usirin/koding,drewsetski/koding,kwagdy/koding-1,usirin/koding,acbodine/koding,szkl/koding,gokmen/koding,s... |
c24592151b641edbfde2f73f1a61978920767817 | frontend/app/js/browse-ctrl.coffee | frontend/app/js/browse-ctrl.coffee | mod = angular.module("player")
mod.controller("BrowseCtrl", ($scope, $stateParams, $state, library, playlist) ->
"use strict"
that = this
$scope.library = library
that.breadcrumbs = (uri) ->
parts = uri.split("/")
{ label: part, path: parts[0..i].join("/") } for part, i in parts
$scope.$on "$state... | mod = angular.module("player")
mod.controller("BrowseCtrl", ($scope, $stateParams, $state, library, playlist) ->
"use strict"
that = this
$scope.library = library
that.breadcrumbs = (uri) ->
parts = uri.split("/")
crumbs = ({
label: part,
path: parts[0..i].join("/")
} for part, i in p... | Add "home" to start of breadcrumbs to allow easy browse nav | Add "home" to start of breadcrumbs to allow easy browse nav
| CoffeeScript | mit | zefer/mothership,zefer/mothership,zefer/mothership,zefer/mothership |
c19ae67791daff7ada2abefde52fa1c92ff0ff05 | lib/selection-count-view.coffee | lib/selection-count-view.coffee | {View} = require 'atom'
module.exports =
class SelectionCountView extends View
@content: ->
@div class: "selection-count inline-block"
initialize: (@statusBar) ->
@subscribe atom.workspaceView.eachEditorView (editor) =>
@subscribe editor, "selection:changed", @updateCount
@subscribe atom.workspa... | {View} = require 'atom'
module.exports =
class SelectionCountView extends View
@content: ->
@div class: "selection-count inline-block"
initialize: (@statusBar) ->
@subscribe atom.workspaceView.eachEditorView (editor) =>
@subscribe editor, "selection:changed", @updateCount
@subscribe @statusBar, ... | Use event provided by status bar | Use event provided by status bar
| CoffeeScript | mit | devoncarew/status-bar,Abdillah/status-bar,TShapinsky/status-bar,pombredanne/status-bar,mertkahyaoglu/status-bar,ali/status-bar |
cb1745a1e6c87150bc3c9e0efcb6ebff58f29207 | services/web/public/coffee/ide/clone/controllers/CloneProjectModalController.coffee | services/web/public/coffee/ide/clone/controllers/CloneProjectModalController.coffee | define [
"base"
], (App) ->
App.controller 'CloneProjectModalController', ($scope, $modalInstance, $timeout, $http, ide) ->
$scope.inputs =
projectName: ide.$scope.project.name + " (Copy)"
$scope.state =
inflight: false
error: false
$modalInstance.opened.then () ->
$timeout () ->
$scope.$broad... | define [
"base"
], (App) ->
App.controller 'CloneProjectModalController', ($scope, $modalInstance, $timeout, $http, ide) ->
$scope.inputs =
projectName: ide.$scope.project.name + " (Copy)"
$scope.state =
inflight: false
error: false
$modalInstance.opened.then () ->
$timeout () ->
$scope.$broad... | Fix redirect in clone project modal | Fix redirect in clone project modal
| CoffeeScript | agpl-3.0 | sharelatex/sharelatex |
dcacca98b66d3cb196431f99e1fa679a51d8689f | app/assets/javascripts/effective_datatables/scopes.js.coffee | app/assets/javascripts/effective_datatables/scopes.js.coffee | $(document).on 'click', 'a[data-clear-form]', (event) ->
event.preventDefault()
$(event.currentTarget).closest('form').trigger('clear')
$(document).on 'clear', '.effective-datatable-scopes form', (event) ->
$(this).find('.radio.active').removeClass('active');
$(this).find(':radio').prop('checked', false);
$(... | $(document).on 'click', 'a[data-clear-form]', (event) ->
event.preventDefault()
$(event.currentTarget).closest('form').trigger('clear')
$(document).on 'clear', '.effective-datatable-scopes form', (event) ->
$(this).find('.radio.active').removeClass('active');
$(this).find(':radio').prop('checked', false);
$(... | Clear other input values too. | Clear other input values too. | CoffeeScript | mit | code-and-effect/effective_datatables,code-and-effect/effective_datatables,code-and-effect/effective_datatables |
ad7bd0433115b69ff93f25715fb5f1259d430cfc | app/config.coffee | app/config.coffee | keychain = require './utils/keychain'
config =
use: (platform) ->
for key, value of config[platform]
config[key] = value
production:
url: 'http://sync.nitrotasks.com:443'
port: process.env.PORT || 8080
mysql:
host: keychain 'sql_host'
port: keychain 'sql_port'
user: keyc... | keychain = require './utils/keychain'
config =
use: (platform) ->
for key, value of config[platform]
config[key] = value
production:
url: 'http://sync.nitrotasks.com'
port: process.env.PORT || 8080
mysql:
host: process.env.NITRO_SQL_HOST
port: process.env.NITRO_SQL_PORT
... | Use environmental variables to store database credentials | Use environmental variables to store database credentials
| CoffeeScript | unknown | CaffeinatedCode/nitro-server,nitrotasks/nitro-server,nitrotasks/nitro-server |
f476fa19ef3ed22ee6835d615dd487a577dc4a1e | index.coffee | index.coffee | fs = require 'fs'
path = require 'path'
module.exports = (robot, scripts) ->
scriptsPath = path.resolve(__dirname, 'src')
fs.exists scriptsPath, (exists) ->
if exists
for script in fs.readdirSync(scriptsPath)
if scripts? and '*' not in scripts
robot.loadF... | fs = require 'fs'
path = require 'path'
module.exports = (robot, scripts) ->
scriptsPath = path.resolve(__dirname, 'src')
if fs.existsSync scriptsPath
for script in fs.readdirSync(scriptsPath).sort()
if scripts? and '*' not in scripts
robot.loadFile(scriptsPath, script) if s... | Load script synchronously (updated to match generator template) | Load script synchronously (updated to match generator template)
| CoffeeScript | mit | ClaudeBot/hubot-twitch,lancespeelmon/hubot-twitch,ClaudeBot/hubot-twitch,lancespeelmon/hubot-twitch |
09a601b73b0c2d5a9dc33f920b1da7c6171c6c90 | core/app/assets/javascripts/base/account_popup_opener.coffee | core/app/assets/javascripts/base/account_popup_opener.coffee | showPopup = (url) ->
width = 640
height = 480
left = (screen.width/2)-(width/2)
top = (screen.height/2)-(height/2)
popup_window = window.open url, "authPopup",
"menubar=no,toolbar=no,status=no,width=#{width},height=#{height},left=#{left},top=#{top}"
popup_window.focus()
$('html').on 'click', '.js... | showPopup = (url) ->
width = 640
height = 480
left = (screen.width/2)-(width/2)
top = (screen.height/2)-(height/2)
popup_window = window.open url, "authPopup",
"menubar=no,toolbar=no,status=no,width=#{width},height=#{height},left=#{left},top=#{top}"
popup_window.focus()
$('html').on 'click', '.js... | Add comment explaining why the odd double-json is necessary in trigger_Event | Add comment explaining why the odd double-json is necessary in trigger_Event
| CoffeeScript | mit | daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core |
90648feefe80559853864ee88c92006cfecca93c | src/scripts/pages/about/about.coffee | src/scripts/pages/about/about.coffee | define (require) ->
BaseView = require('cs!helpers/backbone/views/base')
HeaderView = require('cs!modules/header/header')
FooterView = require('cs!modules/footer/footer')
FindContentView = require('cs!modules/find-content/find-content')
DefaultView = require('cs!./default/default')
PeopleView = require('cs!... | define (require) ->
BaseView = require('cs!helpers/backbone/views/base')
HeaderView = require('cs!modules/header/header')
FooterView = require('cs!modules/footer/footer')
FindContentView = require('cs!modules/find-content/find-content')
DefaultView = require('cs!./default/default')
PeopleView = require('cs!... | Change 'OpenStax College' to 'OpenStax CNX' | Change 'OpenStax College' to 'OpenStax CNX'
| CoffeeScript | agpl-3.0 | Connexions/webview,dak/webview,katalysteducation/webview,katalysteducation/webview,katalysteducation/webview,carolinelane10/webview,dak/webview,Connexions/webview,Connexions/webview,Connexions/webview,dak/webview,katalysteducation/webview |
1c010c68cb858274a16a26e62cc1580dc043d98d | keymaps/spell-check.cson | keymaps/spell-check.cson | '.platform-darwin .editor':
'cmd-:': 'spell-check:correct-misspelling'
'.platform-win32 .editor':
'ctrl-:': 'spell-check:correct-misspelling'
| '.platform-darwin .editor':
'cmd-:': 'spell-check:correct-misspelling'
'.platform-darwin .corrections .editor':
'cmd-:': 'core:cancel'
'.platform-win32 .editor':
'ctrl-:': 'spell-check:correct-misspelling'
'.platform-win32 .corrections .editor':
'ctrl-:': 'core:cancel'
'.corrections .mini.editor input':
'... | Add core:confirm and core:cancel keybindings | Add core:confirm and core:cancel keybindings
| CoffeeScript | mit | atom/spell-check |
1122af087ae813f539d98d2d56db9952828b0f63 | packages/rocketchat-tutum/startup.coffee | packages/rocketchat-tutum/startup.coffee | ### Examples
TUTUM_REDIS_HOST=127.0.0.1
TUTUM_REDIS_PORT=6379
TUTUM_CLIENT_NAME=mywebsite
TUTUM_CLIENT_HOST=www.dotcloud.com
TUTUM_CLIENT_ADDRESS=http://192.168.0.42:80
###
if process.env.TUTUM_REDIS_HOST?
redis = Npm.require 'redis'
process.env.TUTUM_REDIS_PORT ?= 6379
client = redis.createClient(process.env.TU... | ### Examples
TUTUM_REDIS_HOST=127.0.0.1
TUTUM_REDIS_PORT=6379
TUTUM_CLIENT_NAME=mywebsite
TUTUM_CLIENT_HOST=mywebsite.dotcloud.com
###
if process.env.TUTUM_REDIS_HOST? and process.env.TUTUM_CONTAINER_API_URL?
redis = Npm.require 'redis'
process.env.TUTUM_REDIS_PORT ?= 6379
client = redis.createClient(process.env... | Use internal ip to setup redis | Use internal ip to setup redis
| CoffeeScript | mit | mitar/Rocket.Chat,amaapp/ama,ahmadassaf/Rocket.Chat,JamesHGreen/Rocket_API,mrinaldhar/Rocket.Chat,k0nsl/Rocket.Chat,danielbressan/Rocket.Chat,mccambridge/Rocket.Chat,Gudii/Rocket.Chat,snaiperskaya96/Rocket.Chat,fduraibi/Rocket.Chat,litewhatever/Rocket.Chat,amaapp/ama,JamesHGreen/Rocket_API,steedos/chat,wtsarchive/Rocke... |
ad07e6f38622029ebb1dbfafd5e8b960af311d8d | app/assets/javascripts/tags.js.coffee | app/assets/javascripts/tags.js.coffee | $ ->
$("div.tag-form").hide()
$("div.tag-form li.cancel a").live "click", ->
$("div.tags").show()
$("div.tag-form").hide()
false
$("a[rel='edit-tags']").live "click", ->
$("div.tags").hide()
$("div.tag-form").show()
false
$("form.edit-tags").live "ajax:success", (e, data, status, xhr)... | $ ->
$("div.tag-form").hide()
$("div.tag-form li.cancel a").live "click", ->
$("div.tags").show()
$("div.tag-form").hide()
false
$("a[rel='edit-tags']").live "click", ->
$("div.tags").hide()
$("div.tag-form").show()
false
$("form.edit-tags").live "ajax:success", (e, data, status, xhr)... | Fix the tag panel update, it was targetting the wrong div for replacement. | Fix the tag panel update, it was targetting the wrong div for replacement.
| CoffeeScript | mit | cyclestreets/cyclescape,auto-mat/toolkit,cyclestreets/cyclescape,auto-mat/toolkit,cyclestreets/cyclescape |
3f8214feadd963d5b1e9826695def47fb2a70732 | app/assets/javascripts/ships.js.coffee | app/assets/javascripts/ships.js.coffee | $(document).on "page:change", ->
if $("body[data-controller=ships][data-action=index]").get 0
$(".ship-thumb").click ->
$("#ship-selection").val $(this).data "ship-id"
$('html, body').animate({
scrollTop: $("#purchase-form").offset().top
}, 2000)
| $(document).on "page:change", ->
if $("body[data-controller=ships][data-action=index]").get 0
$(".ship-thumb").click ->
$("#ship-selection").val $(this).data "ship-id"
$('html, body').animate({
scrollTop: $("#purchase-form").offset().top
}, 2000)
$("#submit-order").click ->
$.... | Set up the form to place the order | Set up the form to place the order | CoffeeScript | mit | perobertson/requisition,perobertson/requisition,perobertson/requisition,perobertson/requisition |
46c3327790547205190fc1e0e5b6f018291d920e | lib/views/panel.coffee | lib/views/panel.coffee | class PanelView extends HTMLElement
initialize(@linter)->
@id = 'linter-panel'
@decorations = []
removeDecorations: ->
return unless @decorations.length
@decorations.forEach (decoration) ->
try decoration.destroy()
@decorations = []
render: (messages)->
@removeDecorations()
@inne... | class PanelView extends HTMLElement
initialize:(@linter)->
@id = 'linter-panel'
@decorations = []
removeDecorations: ->
return unless @decorations.length
@decorations.forEach (decoration) ->
try decoration.destroy()
@decorations = []
render: (messages)->
@removeDecorations()
@inn... | Fix a critical typo in Panel | :bug: Fix a critical typo in Panel
| CoffeeScript | mit | e-jigsaw/Linter,AtomLinter/Linter,elkeis/linter,josa42/Linter,Arcanemagus/linter,shawninder/linter,DanPurdy/linter,simurai/linter-plus,JohnMurga/linter,steelbrain/linter,iam4x/linter,atom-community/linter,UltCombo/linter,blakeembrey/linter,mdgriffith/linter,levity/linter,kaeluka/linter,AsaAyers/linter |
fff6f5b0d90135a3879fb92e7b24eb98e26a0abf | app/assets/javascripts/dispatcher.js.coffee | app/assets/javascripts/dispatcher.js.coffee | $ ->
new Dispatcher()
class Dispatcher
constructor: () ->
@initSearch()
@initPageScripts()
initPageScripts: ->
page = $('body').attr('data-page')
project_id = $('body').attr('data-project-id')
console.log(page)
path = page.split(':')
switch page
when 'issues:index'
... | $ ->
new Dispatcher()
class Dispatcher
constructor: () ->
@initSearch()
@initPageScripts()
initPageScripts: ->
page = $('body').attr('data-page')
project_id = $('body').attr('data-project-id')
console.log(page)
unless page
return false
path = page.split(':')
switch p... | Fix issue with undefined dispather page | Fix issue with undefined dispather page
| CoffeeScript | mit | inetfuture/gitlab-tweak,inetfuture/gitlab-tweak,inetfuture/gitlab-tweak |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.