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
1b1e6d04eb2e373a56b7fc76b92c0450d759f138
src/scripts/urban.coffee
src/scripts/urban.coffee
# Description: # Define terms via Urban Dictionary # # Dependencies: # None # # Configuration: # None # # Commands: # hubot urban me <term> - Searches Urban Dictionary and returns definition # hubot urban define me <term> - Searches Urban Dictionary and returns definition # hubot urban example me <...
# Description: # Define terms via Urban Dictionary # # Dependencies: # None # # Configuration: # None # # Commands: # hubot urban me <term> - Searches Urban Dictionary and returns definition # hubot urban define me <term> - Searches Urban Dictionary and returns definition # hubot urban example me <...
Fix Urban to use the Urban Dictionary API
Fix Urban to use the Urban Dictionary API
CoffeeScript
mit
zecahnin/hubot-scripts,jankowiakmaria/hubot-scripts,1000hz/hubot-scripts,dyg2104/hubot-scripts,opentable/hubot-scripts,jhubert/hubot-scripts,modulexcite/hubot-scripts,arcaartem/hubot-scripts,jan0sch/hubot-scripts,josephcarmello/hubot-scripts,contolini/hubot-scripts,phillipalexander/hubot-scripts,GrimDerp/hubot-scripts,...
611a460840f317c7ecc545e0761f35ed257ce8ac
src/view/view_store.coffee
src/view/view_store.coffee
class Batman.ViewStore extends Batman.Object @prefix: 'views' constructor: -> super @_viewContents = {} @_requestedPaths = new Batman.SimpleSet propertyClass: Batman.Property fetchView: (path) -> Batman.developer.do -> unless typeof Batman.View::prefix is 'undefined' Batman.deve...
class Batman.ViewStore extends Batman.Object @prefix: 'views' constructor: -> super @_viewContents = {} @_requestedPaths = new Batman.SimpleSet propertyClass: Batman.Property fetchView: (path) -> new Batman.Request url: Batman.Navigator.normalizePath(@constructor.prefix, "#{path}.html")...
Remove deprecation warning about Batman.View.prototype.prefix.
Remove deprecation warning about Batman.View.prototype.prefix.
CoffeeScript
mit
getshuvo/batman,getshuvo/batman
73466a5a754f59f6b76945a65a9f37e4c279ed17
server/index.coffee
server/index.coffee
util = require 'util' module.exports = (app, mongoose, options) -> models = require('./models')(mongoose) controllers = require('./controllers')(models) auth = require('./authentication')(app, models, options) require('./routes')(app, auth, controllers) auth
util = require 'util' module.exports = (app, mongoose, options) -> models = require('./models')(mongoose) controllers = require('./controllers')(models) auth = require('./authentication')(app, models, options) require('./routes')(app, auth, controllers) app.configure 'test', -> console.log 'injecti...
Create dummy admin user in test mode.
Create dummy admin user in test mode.
CoffeeScript
apache-2.0
GoIncremental/gi-security,GoIncremental/gi-security
3c298b15ff6e6e59f478a527921bd158e70d4eb8
Gruntfile.coffee
Gruntfile.coffee
module.exports = (grunt) -> grunt.initConfig pkg: grunt.file.readJSON('package.json') coffee: glob_to_multiple: expand: true cwd: 'src' src: ['*.coffee'] dest: 'lib' ext: '.js' shell: rebuild: command: 'npm build' options: std...
module.exports = (grunt) -> grunt.initConfig pkg: grunt.file.readJSON('package.json') coffee: glob_to_multiple: expand: true cwd: 'src' src: ['*.coffee'] dest: 'lib' ext: '.js' shell: rebuild: command: 'npm build .' options: s...
Add . after build command
Add . after build command
CoffeeScript
mit
dbkaplun/node-pathwatcher,mojodna/node-pathwatcher,atom/node-pathwatcher,mojodna/node-pathwatcher,leipert/node-pathwatcher-without-runas,dbkaplun/node-pathwatcher,ficristo/node-pathwatcher,leipert/node-pathwatcher-without-runas,atom/node-pathwatcher,ficristo/node-pathwatcher,meteor/node-pathwatcher,dbkaplun/node-pathwa...
db18a18f5762a2d4e2347774a8b2f9a6b81088b2
app/assets/javascripts/embeditor/adapter.js.coffee
app/assets/javascripts/embeditor/adapter.js.coffee
# Your Adapter SHOULD define: # * @QueryDefaults - The default parameters if no others are passed in. class Embeditor.Adapter className: "Adapter" @QueryDefaults = {} constructor: (@element, @options={}) -> @adapter = Embeditor.Adapters[@className] @href = @element.attr('...
# Your Adapter SHOULD define: # * @QueryDefaults - The default parameters if no others are passed in. class Embeditor.Adapter className: "Adapter" @QueryDefaults = {} constructor: (@element, @options={}) -> @adapter = Embeditor.Adapters[@className] @href = @element.attr('...
Create @wrapper in adapter constructor
Create @wrapper in adapter constructor
CoffeeScript
mit
bricker/embeditor-rails,SCPR/embeditor-rails,bricker/embeditor-rails,SCPR/embeditor-rails
41202d4e3ec507785d5c6a51433483543382d400
src/coffee/cilantro/setup.coffee
src/coffee/cilantro/setup.coffee
define [ 'jquery' ], ($) -> # Relies on the jquery-ajax-queue plugin to supply this method. # This ensures data is not silently lost $(window).on 'beforeunload', -> if $.hasPendingRequest() return "Wow, you're quick! Your data is being saved. " + "It will only take a m...
define [ 'jquery' ], ($) -> # Relies on the jquery-ajax-queue plugin to supply this method. # This ensures data is not silently lost $(window).on 'beforeunload', -> if $.hasPendingRequest() return "Wow, you're quick! Your data is being saved. " + "It will only take a m...
Add support for sending cross-origin requests with credentials
Add support for sending cross-origin requests with credentials
CoffeeScript
bsd-2-clause
chop-dbhi/cilantro,chop-dbhi/cilantro,chop-dbhi/cilantro
afe5b327ea156ccd96765376e0f3c693b121e264
src/coffee/cilantro/setup.coffee
src/coffee/cilantro/setup.coffee
define [ 'jquery' ], ($) -> # Relies on the jquery-ajax-queue plugin to supply this method. # This ensures data is not silently lost $(window).on 'beforeunload', -> if $.hasPendingRequest() return "Wow, you're quick! Your data is being saved. " + "It will only take a m...
define [ 'jquery' ], ($) -> # Relies on the jquery-ajax-queue plugin to supply this method. # This ensures data is not silently lost $(window).on 'beforeunload', -> if $.hasPendingRequest() return "Wow, you're quick! Your data is being saved. " + "It will only take a m...
Fix ajax pre-filter to define the xhrFields for CORS support
Fix ajax pre-filter to define the xhrFields for CORS support This is the official (per the jQuery docs) and correct way to ensure cookies are sent with cross-domain requests.
CoffeeScript
bsd-2-clause
chop-dbhi/cilantro,chop-dbhi/cilantro,chop-dbhi/cilantro
3cd256c65ce93154efac5cb664a7f2e145593ff8
bokehjs/src/coffee/models/transforms/jitter.coffee
bokehjs/src/coffee/models/transforms/jitter.coffee
_ = require "underscore" Transform = require "./transform" class Jitter extends Transform.Model initialize: (attrs, options) -> super(attrs, options) defaults: -> return _.extend({}, super(), { interval: 1 }) compute: (x) -> # Apply the transform to a single value return(x + ((Math.ra...
_ = require "underscore" Transform = require "./transform" class Jitter extends Transform.Model initialize: (attrs, options) -> super(attrs, options) defaults: -> return _.extend({}, super(), { interval: 1 }) compute: (x) -> # Apply the transform to a single value return(x + ((Math.ra...
Implement the vector based version of the compute method.
Implement the vector based version of the compute method.
CoffeeScript
bsd-3-clause
aavanian/bokeh,schoolie/bokeh,clairetang6/bokeh,ericmjl/bokeh,mindriot101/bokeh,aiguofer/bokeh,DuCorey/bokeh,phobson/bokeh,philippjfr/bokeh,jakirkham/bokeh,DuCorey/bokeh,clairetang6/bokeh,ptitjano/bokeh,draperjames/bokeh,Karel-van-de-Plassche/bokeh,justacec/bokeh,azjps/bokeh,justacec/bokeh,bokeh/bokeh,timsnyder/bokeh,s...
cf5573e6a5ad2981cb4cbcd528fa60a4b76f33ef
app/assets/javascripts/application/app_router.js.coffee
app/assets/javascripts/application/app_router.js.coffee
@AppRouter = Backbone.Router.extend routes: "reload": "reload" "": "categories" "about": "about" "contribute": "contribute" "pods/:filter": "pods" "pods/:filter/:sort_by": "pods" "pods/:filter/:sort_by/:idx": "pods" contribute: () -> @pageview '/contribute' @appController.display...
@AppRouter = Backbone.Router.extend routes: "reload": "reload" "": "categories" "about": "about" "contribute": "contribute" "pods/:filter": "pods" "pods/:filter/:sort_by": "pods" "pods/:filter/:sort_by/:idx": "pods" contribute: () -> @pageview '/contribute' @appController.display...
Fix app router when there are no analytics.
Fix app router when there are no analytics.
CoffeeScript
mit
bsingr/cocoa-tree,bsingr/cocoa-tree,bsingr/cocoa-tree
2045188f55fe41b6d0c29badf2ee7d4c3e4cb8c5
src/app/projects/states/tutorials/tutorials.coffee
src/app/projects/states/tutorials/tutorials.coffee
angular.module('doubtfire.projects.states.tutorials', []) # # Tasks state for projects # .config(($stateProvider) -> $stateProvider.state 'projects/tutorials', { parent: 'projects/index' url: '/tutorials' controller: 'ProjectsTutorialsStateCtrl' templateUrl: 'projects/states/tutorials/tutorials.tpl.h...
angular.module('doubtfire.projects.states.tutorials', []) # # Tasks state for projects # .config(($stateProvider) -> $stateProvider.state 'projects/tutorials', { parent: 'projects/index' url: '/tutorials' controller: 'ProjectsTutorialsStateCtrl' templateUrl: 'projects/states/tutorials/tutorials.tpl.h...
Remove switch tutorial from student tutorial list
QUALITY: Remove switch tutorial from student tutorial list
CoffeeScript
agpl-3.0
doubtfire-lms/doubtfire-web,doubtfire-lms/doubtfire-web,doubtfire-lms/doubtfire-web,doubtfire-lms/doubtfire-web
047e32a88d144b980ef54d206e805e0660a5628b
src/9.coda.coffee
src/9.coda.coffee
if $mate.environmentType == "browser" global.$mate = $mate else if $mate.environmentType == "node" module.exports = $mate else throw new Error()
if $mate.environmentType == "browser" window.$mate = $mate else if $mate.environmentType == "node" module.exports = $mate else throw new Error()
Fix a browser global bug.
Fix a browser global bug.
CoffeeScript
mit
zhanzhenzhen/mate
7f6346847588cc1edf3a58869e5059fde6219a56
app/assets/javascripts/account.coffee
app/assets/javascripts/account.coffee
$ -> console.log 'iniciou' $('.reminder_active').on 'change', -> $('.reminder_days_before').prop "disabled", !@.checked
$ -> $('.reminder_active').on 'change', -> $('.reminder_days_before').prop "disabled", !@.checked
Remove console log from o change method
Remove console log from o change method
CoffeeScript
mit
samuelreichert/projII,samuelreichert/projII,samuelreichert/projII
55b41e94c816d43080f38dc50cfa23335ab7d8cd
app/forgot-password-controller.coffee
app/forgot-password-controller.coffee
class ForgotPasswordController constructor: (AuthenticatorService, $routeParams) -> @AuthenticatorService = AuthenticatorService @callbackUrl = $routeParams.callback ? 'https://app.octoblu.com/api/session' @loginPath = "/?" + $.param(callback: @callbackUrl) forgotPassword: (email) => @Authenticator...
class ForgotPasswordController constructor: (AuthenticatorService, $routeParams) -> @AuthenticatorService = AuthenticatorService @callbackUrl = $routeParams.callback ? 'https://app.octoblu.com/api/session' @loginPath = "/?" + $.param(callback: @callbackUrl) forgotPassword: (email) => delete @messag...
Hide forgot failure messages on submit
Hide forgot failure messages on submit
CoffeeScript
mit
octoblu/login.octoblu.com,octoblu/email-password-site,octoblu/email-password-site,octoblu/login.octoblu.com,octoblu/login.octoblu.com
2aa2618dc22af0e03c63524d4e3c5848503aea23
spec/builders/latexmk-spec.coffee
spec/builders/latexmk-spec.coffee
helpers = require '../spec-helpers' LatexmkBuilder = require '../../lib/builders/latexmk' describe "LatexmkBuilder", -> [builder] = [] beforeEach -> builder = new LatexmkBuilder() describe "constructArgs", -> beforeEach -> @filePath = 'foo.tex' it "produces default arguments when package has...
helpers = require '../spec-helpers' LatexmkBuilder = require '../../lib/builders/latexmk' describe "LatexmkBuilder", -> [builder] = [] beforeEach -> builder = new LatexmkBuilder() describe "constructArgs", -> [filePath] = [] beforeEach -> filePath = 'foo.tex' it "produces default argume...
Convert instance variable to scoped variable
:art: Convert instance variable to scoped variable
CoffeeScript
mit
thomasjo/atom-latex,WoodyWoodsta/atom-latex,thomasjo/atom-latex,WoodyWoodsta/atom-latex,thomasjo/atom-latex
d4fa16728a6d7c9901298d311ae48739bd91425a
addon/initializers/youtube.coffee
addon/initializers/youtube.coffee
# Takes two parameters: container and app `import YoutubeAdapter from '../adapters/youtube'` `import YoutubeSerializer from '../serializers/youtube'` `import DS from 'ember-data'` initialize = (ctn, app) -> app.register('adapter:-youtube', YoutubeAdapter) app.register('serializer:-youtube', YoutubeSerializer) DS...
# Takes two parameters: container and app `import YoutubeAdapter from '../adapters/youtube'` `import YoutubeSerializer from '../serializers/youtube'` `import DS from 'ember-data'` initialize = (ctn, app) -> app.register('adapter:-youtube', YoutubeAdapter) app.register('serializer:-youtube', YoutubeSerializer) DS...
Use the `ember-data` initializer as a target instead of the soon to be deprecated `store` initializer
Use the `ember-data` initializer as a target instead of the soon to be deprecated `store` initializer
CoffeeScript
mit
foxnewsnetwork/ember-youtube-data-model,foxnewsnetwork/ember-youtube-data-model
d42530ad4ce3cd66704a82228ff3e6fbdb4ed475
core/app/backbone/views/sub_comments/sub_comments_list_view.coffee
core/app/backbone/views/sub_comments/sub_comments_list_view.coffee
class window.SubCommentsListView extends Backbone.Marionette.CompositeView className: 'evidence-sub-comments-list' itemView: SubCommentView itemViewContainer: '.js-region-sub-comments-collection' template: 'sub_comments/sub_comments_list' addView: SubCommentsAddView initialize: -> @collection.fetch ...
class window.SubCommentsListView extends Backbone.Marionette.CompositeView className: 'evidence-sub-comments-list' itemView: SubCommentView itemViewContainer: '.js-region-sub-comments-collection' template: 'sub_comments/sub_comments_list' initialize: -> @collection.fetch update: true # only fires 'add'...
Use method instead of instance var per @markijbema's comment
Use method instead of instance var per @markijbema's comment
CoffeeScript
mit
Factlink/factlink-core,daukantas/factlink-core,Factlink/factlink-core,daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core,daukantas/factlink-core,Factlink/factlink-core
6918ce1dac8d7592499fa5b230ec711e88350c9f
assets/agent_spawner.coffee
assets/agent_spawner.coffee
class AgentSpawner potential_agents: [] # Holds all potential customers from customers.json constructor: -> $.ajax("/assets/data/agents.json").done($.proxy((data_agents) -> for data_agent in data_agents agent = new Agent customer.fromAgentData(data_agent) @potential_agents.push(data_...
class AgentSpawner potential_agents: [] # Holds all potential customers from customers.json constructor: -> $.ajax("/assets/data/agents.json").done($.proxy((data_agents) -> for data_agent in data_agents agent = new Agent agent.fromAgentData(data_agent) @potential_agents.push(agent) ...
Fix bug in Agent Spawner
Fix bug in Agent Spawner
CoffeeScript
mit
guts2014/TEAM-NAME-PHP,guts2014/TEAM-NAME-PHP
a1ef27dc7a15f96558a7ed923f9aeaa9d3265d40
lib/reporter.coffee
lib/reporter.coffee
request = require 'request' module.exports = class Reporter constructor: -> @request = request send: (eventType, data) -> params = timestamp: ((new Date().getTime()) / 1000) params.dimensions = data @request method: 'POST' url: "https://collector.githubapp.com/atom/#...
request = require 'request' module.exports = class Reporter constructor: -> @request = request send: (eventType, data) -> params = timestamp: new Date().getTime() / 1000 dimensions: data requestOptions = method: 'POST' url: "https://collector.githubapp.com/...
Add callback to request invocation
Add callback to request invocation This prevents request errors such as "Uncaught Error: getaddrinfo ENOTFOUND" from going to the console when errors are reported when you aren't online.
CoffeeScript
mit
atom/exception-reporting
e39c1845a49704c6c6dabd7f1bcc007d6e071ede
_includes/coffee/benchmark_table.coffee
_includes/coffee/benchmark_table.coffee
### Functions to build the benchmark table ### benchmark_id = (data, type, row) -> "#{row.num}#{row.variations}.#{row.revisions.version}" get_columns = -> ### Get the column data for the table Returns: list of columns ### [ { title:'ID' render:benchmark_id } { data:'num' ...
### Functions to build the benchmark table ### benchmark_id = (data, type, row) -> "#{row.num}#{row.variations}.#{row.revisions.version}" get_columns = -> ### Get the column data for the table Returns: list of columns ### [ { title:'ID' render:benchmark_id } { data:'num'...
Add variation column to benchmark table
Add variation column to benchmark table
CoffeeScript
mit
wd15/chimad-phase-field,wd15/chimad-phase-field,usnistgov/chimad-phase-field,wd15/chimad-phase-field,usnistgov/chimad-phase-field,usnistgov/chimad-phase-field
41d8931308c3930c5cfe46b0eed0d1e073e47b98
index.coffee
index.coffee
Q = require 'q' request = require 'superagent' Heroku = require 'heroku-client' heroku = new Heroku token: process.env.HEROKU_API_KEY Q.ninvoke(heroku.apps(), 'list') .then (apps) -> urls = (app.web_url for app in apps) promises = urls.map (url) -> deferred = Q.defer() console.log "pinging #{url...
Q = require 'q' request = require 'superagent' Heroku = require 'heroku-client' heroku = new Heroku token: process.env.HEROKU_API_KEY ping = -> Q.ninvoke(heroku.apps(), 'list') .then (apps) -> urls = (app.web_url for app in apps) promises = urls.map (url) -> deferred = Q.defer() cons...
Support for running on heroku.
Support for running on heroku.
CoffeeScript
mit
realyze/pingu
19903e767301265353582c31b1fd5a980f8277a4
src/view/bindings/event_binding.coffee
src/view/bindings/event_binding.coffee
#= require ./abstract_attribute_binding class Batman.DOM.EventBinding extends Batman.DOM.AbstractAttributeBinding onlyObserve: Batman.BindingDefinitionOnlyObserve.Data constructor: -> super callback = => target = @view.targetForKeypathBase(@key) @get('filteredValue')?.apply(target, arguments)...
#= require ./abstract_attribute_binding class Batman.DOM.EventBinding extends Batman.DOM.AbstractAttributeBinding onlyObserve: Batman.BindingDefinitionOnlyObserve.Data bindImmediately: false constructor: -> super callback = => func = @get('filteredValue') target = @view.targetForKeypathBase...
Fix event bindings for variable-length keypaths.
Fix event bindings for variable-length keypaths.
CoffeeScript
mit
getshuvo/batman,getshuvo/batman
16b1d031ac95ce34d174d1db409c6b9463129369
routes/index.coffee
routes/index.coffee
express = require 'express' router = express.Router() router.get '/admin', (req, res) -> if req.user res.redirect '/admin/cc' else res.render 'login', error: req.flash 'error' router.get '/admin/:page?', (req, res) -> res.render 'index', error: req.flash 'error' router.get "/partials/cc", (req, res) ->...
express = require 'express' router = express.Router() router.get '/resetPassword', (req, res) -> if !req.user or !req.user.data.needsReset return res.redirect "/" res.render 'resetpassword', error: req.flash 'error' username: req.user.data.username router.use (req, res, next) -> if req.user and req...
Add resetpassword route, fix alert box always being shown on reset password page
Add resetpassword route, fix alert box always being shown on reset password page
CoffeeScript
mit
Rezonation/sisetv,Rezonation/sisetv
847961ae3056096813ceeb9ae5a998ce793c119d
app/assets/javascripts/ppt.js.coffee
app/assets/javascripts/ppt.js.coffee
loadPpt = -> pptData = StrutBuilder.build(JSON.parse(localStorage.regions)) #[ #{ #slide 1 #start: 0, #end: 2.5, #texts: [ #{text: 'Hum', position: 1.2}, #{text: 'bewafaa', position: 1.7} #] #}, #{ #slide 2 #start: ...
loadPpt = -> pptData = StrutBuilder.build(JSON.parse(localStorage.regions)) #[ #{ #slide 1 #start: 0, #end: 2.5, #texts: [ #{text: 'Hum', position: 1.2}, #{text: 'bewafaa', position: 1.7} #] #}, #{ #slide 2 #start: ...
Make multiple loads of strut pick up latest ppt data properly.
Make multiple loads of strut pick up latest ppt data properly.
CoffeeScript
mit
shirshendu/kine_type,shirshendu/kine_type,shirshendu/kine_type,shirshendu/kine_type
593f8f4023191992250345db0465d9248a8438ac
js/routers/AppRouter.coffee
js/routers/AppRouter.coffee
class AppRouter extends Backbone.Router routes: '': 'homePage' 'panel/:id': 'goToPanel' homePage: -> @view = new app.Views.Home @view.render() goToPanel: (id) -> @view = new app.Views["Panel_" + id] @view.render(id) @app = window.app ? {} @app.Routers.AppRout...
class AppRouter extends Backbone.Router routes: '': 'homePage' 'panel/:id': 'goToPanel' initialize: -> flight.launch("#panel-1") homePage: -> @view = new app.Views.Home @view.render() goToPanel: (id) -> @view = new app.Views["Panel_" + id] @view.render(id) ...
Set start panel with flight.launch()
Set start panel with flight.launch()
CoffeeScript
mit
zestia/glide
ab4a2289bb9769990b81d595f52552a7184b57b1
bokehjs/src/coffee/models/widgets/multiselect.coffee
bokehjs/src/coffee/models/widgets/multiselect.coffee
import * as _ from "underscore" import * as p from "../../core/properties" import {InputWidget, InputWidgetView} from "./input_widget" import multiselecttemplate from "./multiselecttemplate" export class MultiSelectView extends InputWidgetView tagName: "div" template: multiselecttemplate events: "change ...
import * as _ from "underscore" import * as p from "../../core/properties" import {InputWidget, InputWidgetView} from "./input_widget" import multiselecttemplate from "./multiselecttemplate" export class MultiSelectView extends InputWidgetView tagName: "div" template: multiselecttemplate events: "change ...
Replace invalid use of _.map() with a for-loop
Replace invalid use of _.map() with a for-loop
CoffeeScript
bsd-3-clause
aiguofer/bokeh,aiguofer/bokeh,aavanian/bokeh,philippjfr/bokeh,schoolie/bokeh,aavanian/bokeh,draperjames/bokeh,DuCorey/bokeh,bokeh/bokeh,draperjames/bokeh,ericmjl/bokeh,DuCorey/bokeh,aavanian/bokeh,jakirkham/bokeh,aiguofer/bokeh,azjps/bokeh,Karel-van-de-Plassche/bokeh,azjps/bokeh,azjps/bokeh,ericmjl/bokeh,rs2/bokeh,rs2/...
7afa0104ac678a50c7754aada979b48ee4d8393d
lib/index.coffee
lib/index.coffee
'use strict' stripEof = require 'strip-eof' exec = require('child_process').exec keywords = '$newVersion': regex: /\$newVersion/g replace: '_version' '$oldVersion': regex: /\$oldVersion/g replace: '_oldVersion' createLogger = (logger) -> logState = (state, messages) -> logger[state] messag...
'use strict' stripEof = require 'strip-eof' exec = require('child_process').exec keywords = '$newVersion': regex: /\$newVersion/g replace: '_version' '$oldVersion': regex: /\$oldVersion/g replace: '_oldVersion' createLogger = (logger) -> logState = (state, messages) -> logger[state] messag...
Fix replace all under plugin command
Fix replace all under plugin command
CoffeeScript
mit
bumped/bumped-terminal,bumped/bumped-terminal
fee3d69f4372703b9960d27be29602b12f2049c2
lib/otter/renderer.coffee
lib/otter/renderer.coffee
Browser = require 'zombie' fs = require 'fs' path = require 'path' URL = require 'url' createBrowser = (options = {}) -> browser = new Browser headers: "X-Otter-No-Render": "true" browser.resources.addHandler (request, next) -> if not options.allowedHosts options.allowedHosts = [] # Always ...
Browser = require 'zombie' fs = require 'fs' path = require 'path' URL = require 'url' createBrowser = (options = {}) -> browser = new Browser headers: "X-Otter-No-Render": "true" browser.resources.addHandler (request, next) -> allowedHosts = [] if options.allowedHosts allowedHosts = allowe...
Copy allowedHosts and destroy browser on every render.
Copy allowedHosts and destroy browser on every render.
CoffeeScript
bsd-3-clause
bfirsh/otter,bfirsh/otter
c2c6e3a70973b212ea568680035c00cd68048d53
lib/autosave.coffee
lib/autosave.coffee
module.exports = configDefaults: enabled: false activate: (state) -> @migrateOldAutosaveConfig() rootView.on 'focusout', ".editor:not(.mini)", (event) => editSession = event.targetView()?.getModel() @autosave(editSession) rootView.on 'pane:before-item-destroyed', (event, paneItem) => ...
{$} = require 'atom' module.exports = configDefaults: enabled: false activate: (state) -> @migrateOldAutosaveConfig() rootView.on 'focusout', ".editor:not(.mini)", (event) => editSession = event.targetView()?.getModel() @autosave(editSession) rootView.on 'pane:before-item-destroyed',...
Save all pane items before window is closed
Save all pane items before window is closed
CoffeeScript
mit
atom/autosave,akonwi/autosave
dea67ceac35fc06c0ac648b5d9bc5699d569ff92
jobs/index.coffee
jobs/index.coffee
# galegis-api -- Structured Importing and RESTful providing of GA General Assembly Activity. # Copyright (C) 2013 Matthew Farmer # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, ...
# galegis-api -- Structured Importing and RESTful providing of GA General Assembly Activity. # Copyright (C) 2013 Matthew Farmer # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, ...
Disable the autopoll for now.
Disable the autopoll for now.
CoffeeScript
agpl-3.0
gaodp/gga-api,gaodp/gga-api
e5aaefc45a5fda74b59ab784dddd0a2b3fde6b1c
internal_packages/account-sidebar/lib/components/account-sidebar.cjsx
internal_packages/account-sidebar/lib/components/account-sidebar.cjsx
_ = require 'underscore' React = require 'react' {OutlineView, ScrollRegion} = require 'nylas-component-kit' AccountSwitcher = require './account-switcher' SidebarStore = require '../sidebar-store' class AccountSidebar extends React.Component @displayName: 'AccountSidebar' @containerRequired: false @containerS...
_ = require 'underscore' React = require 'react' {OutlineView, ScrollRegion, Flexbox} = require 'nylas-component-kit' AccountSwitcher = require './account-switcher' SidebarStore = require '../sidebar-store' class AccountSidebar extends React.Component @displayName: 'AccountSidebar' @containerRequired: false @c...
Change the sidebar to use Flexbox for container
Change the sidebar to use Flexbox for container
CoffeeScript
mit
nirmit/nylas-mail,simonft/nylas-mail,simonft/nylas-mail,simonft/nylas-mail,nylas/nylas-mail,nylas-mail-lives/nylas-mail,nylas/nylas-mail,simonft/nylas-mail,nylas/nylas-mail,nylas-mail-lives/nylas-mail,nylas-mail-lives/nylas-mail,nylas/nylas-mail,nylas-mail-lives/nylas-mail,nirmit/nylas-mail,simonft/nylas-mail,nirmit/ny...
8337890b330601d4270e8832236b19e23add4d03
src/error_formatter.coffee
src/error_formatter.coffee
color = require('colors') module.exports = (failure) -> return format(failure) format = (failure) -> message = shorten(failure, 5) colorFirstLine(message) shorten = (message, numlines) -> message.split('\n').splice(0, numlines).join('\n') colorFirstLine = (message) -> split = message.split('\n') split[0]...
color = require('colors') module.exports = (failure) -> return format(failure) format = (failure) -> message = shorten(failure, 5) colorFirstLine(message) shorten = (message, numlines) -> message.split('\n').splice(0, numlines).join('\n') colorFirstLine = (message) -> split = message.split('\n') split[0]...
Change error formatter to red
Change error formatter to red
CoffeeScript
mit
mAiNiNfEcTiOn/pioneer,bruz/pioneer,bluespeckfinancial/pioneer,bluespeckfinancial/pioneer,bruz/pioneer,mAiNiNfEcTiOn/pioneer,bluespeckfinancial/pioneer,mojotech/pioneer,mojotech/pioneer,mojotech/pioneer,mAiNiNfEcTiOn/pioneer,bruz/pioneer
a65d0818555714a2eb4a9533a1e16a7374a7de96
src/app.coffee
src/app.coffee
_ = require 'underscore' module.exports = App = windows: [] root: OSX.NSBundle.mainBundle.resourcePath activeWindow: null setActiveWindow: (window) -> @activeWindow = window @windows.push window if window not in @windows # path - Optional. The String path to the file to base it on. newWindow: (p...
_ = require 'underscore' module.exports = App = windows: [] root: OSX.NSBundle.mainBundle.resourcePath activeWindow: null setActiveWindow: (window) -> @activeWindow = window @windows.push window if window not in @windows # path - Optional. The String path to the file to base it on. newWindow: (p...
Store the last opened path.
Store the last opened path. Just throwing stuff into localStorage seems sloppy. Maybe we just need some guidelines to follow.
CoffeeScript
mit
Rodjana/atom,FIT-CSE2410-A-Bombs/atom,Arcanemagus/atom,lovesnow/atom,abcP9110/atom,pengshp/atom,yomybaby/atom,Galactix/atom,jordanbtucker/atom,DiogoXRP/atom,fang-yufeng/atom,tjkr/atom,gabrielPeart/atom,yalexx/atom,charleswhchan/atom,kc8wxm/atom,seedtigo/atom,kandros/atom,acontreras89/atom,oggy/atom,abe33/atom,boomwaiza...
e601c6e2567407181682a814f96c4f1f7f73a3d9
src/packages/symbols-view/lib/tag-generator.coffee
src/packages/symbols-view/lib/tag-generator.coffee
Point = require 'point' $ = require 'jquery' BufferedProcess = require 'buffered-process' module.exports = class TagGenerator constructor: (@path) -> parseTagLine: (line) -> sections = line.split('\t') if sections.length > 3 position: new Point(parseInt(sections[2]) - 1) name: sections[0] ...
Point = require 'point' $ = require 'jquery' BufferedProcess = require 'buffered-process' fs = require 'fs-utils' module.exports = class TagGenerator constructor: (@path) -> parseTagLine: (line) -> sections = line.split('\t') if sections.length > 3 position: new Point(parseInt(sections[2]) - 1) ...
Use fs.resolveOnLoadPath() to find ctags executable
Use fs.resolveOnLoadPath() to find ctags executable
CoffeeScript
mit
charleswhchan/atom,sebmck/atom,ezeoleaf/atom,florianb/atom,kjav/atom,anuwat121/atom,dsandstrom/atom,rmartin/atom,vjeux/atom,russlescai/atom,bradgearon/atom,AlexxNica/atom,basarat/atom,bcoe/atom,bryonwinger/atom,sillvan/atom,kjav/atom,kaicataldo/atom,ReddTea/atom,davideg/atom,Abdillah/atom,kdheepak89/atom,Ingramz/atom,m...
b7d792505e2b68f989d298048c0632229e09ec75
src/modules/app/maker/makerController.coffee
src/modules/app/maker/makerController.coffee
'use strict' ### @ngInject ### module.exports = ($scope) -> $scope.star = { corners: 5, spokeRatio: 0.5, fill: '#f0c039', stroke: '#e4a91a', skew: 0, randomness: 0, size: 100 } $scope.updateBoxStyle = -> $scope.boxStyle = { display: 'inline-block', width: $scope.sta...
'use strict' ### @ngInject ### module.exports = ($scope) -> $scope.star = { corners: 5, spokeRatio: 0.5, fill: '#f0c039', stroke: '#e4a91a', skew: 0, randomness: 0, size: 250 } $scope.updateBoxStyle = -> $scope.boxStyle = { display: 'inline-block', width: $scope.sta...
Change default star size to 250px
Change default star size to 250px
CoffeeScript
mit
astrifex/astrifex,astrifex/astrifex
5a902717b51a342672a947652a2455dbf336b822
lib/loggers/console-logger.coffee
lib/loggers/console-logger.coffee
Logger = require '../logger' module.exports = class ConsoleLogger extends Logger error: (statusCode, result, builder) -> console.group('LaTeX errors') switch statusCode when 127 executable = 'latexmk' # TODO: Read from Builder::executable in the future. console.log( """ ...
Logger = require '../logger' module.exports = class ConsoleLogger extends Logger error: (statusCode, result, builder) -> console.group('LaTeX errors') switch statusCode when 127 executable = 'latexmk' # TODO: Read from Builder::executable in the future. console.log( """ ...
Handle undefined result from parser
:bug: Handle undefined result from parser
CoffeeScript
mit
WoodyWoodsta/atom-latex,thomasjo/atom-latex,thomasjo/atom-latex,WoodyWoodsta/atom-latex,thomasjo/atom-latex
174974e3801c81305210a194affcf4f0e217b618
workers/social/lib/social/render/statuswidget.coffee
workers/social/lib/social/render/statuswidget.coffee
module.exports = (account)-> {firstName} = account """ <div id="activity-update-widget" class="kdview activity-update-widget-wrapper"> <div class="kdview widget-holder clearfix"> <div class="kdbuttonwithmenu-wrapper activity-status-context with-icon"> <button class="kdbutton activity-status-co...
module.exports = (account)-> {firstName} = account.profile """ <div id="activity-update-widget" class="kdview activity-update-widget-wrapper"> <div class="kdview widget-holder clearfix"> <div class="kdbuttonwithmenu-wrapper activity-status-context with-icon"> <button class="kdbutton activity-s...
Set first name in profile instance.
Set first name in profile instance.
CoffeeScript
agpl-3.0
gokmen/koding,kwagdy/koding-1,drewsetski/koding,szkl/koding,alex-ionochkin/koding,sinan/koding,acbodine/koding,acbodine/koding,jack89129/koding,andrewjcasal/koding,rjeczalik/koding,usirin/koding,mertaytore/koding,sinan/koding,szkl/koding,mertaytore/koding,mertaytore/koding,kwagdy/koding-1,usirin/koding,koding/koding,me...
1344c599f88cc3a7017828d7ba1e0213cd586ee2
menus/spell-check.cson
menus/spell-check.cson
'context-menu': 'atom-text-editor': [ {label: 'Correct Spelling', command: 'spell-check:correct-misspelling'} ]
'context-menu': 'atom-text-editor:not([mini])': [ {label: 'Correct Spelling', command: 'spell-check:correct-misspelling'} ]
Remove Correct Spelling from mini editor context menu
Remove Correct Spelling from mini editor context menu
CoffeeScript
mit
atom/spell-check
0d85a6ad2ad58ba3fdbbffa46313f4e5d9527926
web/js/views/search_input_view.coffee
web/js/views/search_input_view.coffee
define ['jquery', 'underscore', 'backbone', 'bootstrap', 'plugins/select_range'], ($, _, Backbone) -> class SearchInputView extends Backbone.View initialize: () -> @$el.typeahead source: @getTypeaheadAddresses updater: (item) => _.defer @afterTypeahead item minLe...
define ['jquery', 'underscore', 'backbone', 'bootstrap', 'plugins/select_range'], ($, _, Backbone) -> class SearchInputView extends Backbone.View initialize: () -> @$el.typeahead source: @getTypeaheadAddresses updater: (item) => _.defer @afterTypeahead item minLe...
Select input field's content on select event.
Select input field's content on select event.
CoffeeScript
mit
reitti/reittiopas,reitti/reittiopas
573cb207bbfd0565e8f45cbde77d2166e0e287de
app/assets/javascripts/sprangular/controllers/header.coffee
app/assets/javascripts/sprangular/controllers/header.coffee
Sprangular.controller "HeaderCtrl", ( $scope, $location, Cart, Account, Catalog, Env, Flash, Status, Angularytics, $translate ) -> $scope.cart = Cart Catalog.taxonomies().then (taxonomies) -> $scope.taxonomies = taxonomies $scope.account = Account $scope.env = Env $scope.search = {tex...
Sprangular.controller "HeaderCtrl", ( $scope, $location, Cart, Account, Catalog, Env, Flash, Status, Angularytics, $translate ) -> $scope.cart = Cart Catalog.taxonomies().then (taxonomies) -> $scope.taxonomies = taxonomies $scope.account = Account $scope.env = Env $scope.search = {tex...
Update HeaderCtrl to use `keywords` param instead of `search`
Update HeaderCtrl to use `keywords` param instead of `search`
CoffeeScript
mit
sprangular/sprangular,sprangular/sprangular,sprangular/sprangular
7cffa9ad4b34f4658f3962d3e55a5c5bd2e2903d
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 <cjlaw@users.noreply.github.com> # odds = [1...100] arnie_quotes = [ 'GET TO THE CHOPPA!', 'Your clothes, give them to me, now!', 'Hasta La Vista...
# 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...
Set Arnie to reply 100% of the time (for now). Update a few Arnie quotes.
Set Arnie to reply 100% of the time (for now). Update a few Arnie quotes.
CoffeeScript
mit
traviskroberts/superbestbot
cf618edf34239f93e22390631e9bfcb3c8eac99e
atom/packages.cson
atom/packages.cson
packages: [ "advanced-open-file" "atom-alignment" "atom-beautify" "atom-transpose" "change-case" "color-picker" "docblockr" "editorconfig" "emmet" "expand-region" "git-blame" "language-apache" "language-applescript" "language-awk" "language-babel" "language-diff" "language-env" "lang...
packages: [ "advanced-open-file" "atom-alignment" "atom-beautify" "atom-transpose" "change-case" "color-picker" "docblockr" "editorconfig" "emmet" "expand-region" "git-blame" "language-apache" "language-applescript" "language-awk" "language-babel" "language-diff" "language-env" "lang...
Add JSX grammar to Atom
Add JSX grammar to Atom
CoffeeScript
mit
caleb531/dotfiles,caleb531/dotfiles,caleb531/dotfiles,caleb531/dotfiles
762a37ec957f3999b4744b39dde014f852dd9508
lib/fran.coffee
lib/fran.coffee
w = require('when') express = require('express') Config = require('./config') Project = require('./project') TestCase = require('./test_case') module.exports = () -> app = express() modules = [] servers = [] start: -> app.use express.static(Project.publicPath) w.all Config.ports.map (port) -> ...
w = require('when') express = require('express') Config = require('./config') Project = require('./project') TestCase = require('./test_case') module.exports = () -> app = express() modules = [] servers = [] testCases = [] stop = -> promises = [] servers.forEach (server) -> promises.push w....
Stop server and test cases on SIGINT
Stop server and test cases on SIGINT
CoffeeScript
bsd-3-clause
burtcorp/fran
b1201b1be5ad4a8ae39baad5c2e2ffecf878e15e
app/assets/javascripts/entities/order.coffee
app/assets/javascripts/entities/order.coffee
@CodequestManager.module "Entities", (Entities, App, Backbone, Marionette, $, _) -> Entities.Order = Backbone.Model.extend urlRoot: -> "/orders" parse: (data) -> data.dishes = new Entities.Dishes data.dishes data.dishes.order = this data currentUserOrdered: -> @get('dishes...
@CodequestManager.module "Entities", (Entities, App, Backbone, Marionette, $, _) -> Entities.Order = Backbone.Model.extend urlRoot: -> "/orders" parse: (data) -> data.dishes = new Entities.Dishes data.dishes data.dishes.order = this data currentUserOrdered: -> @get('dishes...
Reset the whole model when the status is changed
Reset the whole model when the status is changed
CoffeeScript
mit
lunchiatto/web,lunchiatto/web,lunchiatto/web,lunchiatto/web
7b6040bf0eb65b181655d9734d1e95546d0a6232
app/assets/javascripts/kublog/shared.js.coffee
app/assets/javascripts/kublog/shared.js.coffee
# Global helpers should be used in comments as well window.setErrors = (model, errors) -> for attribute, error of errors $label = $("label[for=#{model}_#{attribute}]") $field = $("##{model}_#{attribute}") unless $label.size() is 0 $label.addClass('error') $(errorTemplate(error[0])).insertAfter...
# Global helpers should be used in comments as well window.setErrors = (model, errors) -> for attribute, error of errors $label = $("label[for=#{model}_#{attribute}]") $field = $("##{model}_#{attribute}") unless $label.size() is 0 $label.addClass('error') $(errorTemplate(error[0])).insertAfter...
Fix for kublogPath, it must have a path separator.
Fix for kublogPath, it must have a path separator. Issue on Aventones' PivotalTrack: https://www.pivotaltracker.com/story/show/21200167
CoffeeScript
mit
gajon/kublog-old,gajon/kublog-old
5d0c23e0fa001b5a2c44848c1ea77c33ee12d917
src/app/grammar-view.coffee
src/app/grammar-view.coffee
SelectList = require 'select-list' {$$} = require 'space-pen' module.exports = class GrammarView extends SelectList @viewClass: -> "#{super} grammar-view from-top overlay mini" filterKey: 'name' initialize: (@editor) -> @currentGrammar = @editor.getGrammar() @path = @editor.getPath() @autoDetect =...
SelectList = require 'select-list' {$$} = require 'space-pen' module.exports = class GrammarView extends SelectList @viewClass: -> "#{super} grammar-view from-top overlay mini" filterKey: 'name' initialize: (@editor) -> @currentGrammar = @editor.getGrammar() @path = @editor.getPath() @autoDetect =...
Sort grammars by name in select list
Sort grammars by name in select list
CoffeeScript
mit
Huaraz2/atom,devoncarew/atom,medovob/atom,Rodjana/atom,abe33/atom,lpommers/atom,lovesnow/atom,devoncarew/atom,fang-yufeng/atom,Jandersoft/atom,ashneo76/atom,stuartquin/atom,yomybaby/atom,stuartquin/atom,Ingramz/atom,scv119/atom,yomybaby/atom,liuxiong332/atom,kevinrenaers/atom,dsandstrom/atom,ali/atom,jacekkopecky/atom,...
d138441c06c3a824cb0759475897b0598627bf1d
app/assets/javascripts/rich_editable_element.js.coffee
app/assets/javascripts/rich_editable_element.js.coffee
window.Tahi ||= {} class Tahi.RichEditableElement constructor: (@element) -> @instance = CKEDITOR.inline @element, extraPlugins: 'sharedspace' removePlugins: 'floatingspace,resize' sharedSpaces: top: 'toolbar' toolbar: [ [ 'Format' ] [ 'Bold', 'Italic', 'Underline'...
window.Tahi ||= {} class Tahi.RichEditableElement constructor: (@element) -> @instance = CKEDITOR.inline @element, extraPlugins: 'sharedspace' removePlugins: 'floatingspace,resize' sharedSpaces: top: 'toolbar' scayt_autoStartup: true toolbar: [ [ 'Format' ] [...
Remove Scayt and enable auto spelling from CKEditor
Remove Scayt and enable auto spelling from CKEditor [Finishes #61853878]
CoffeeScript
mit
johan--/tahi,johan--/tahi,johan--/tahi,johan--/tahi
90f11474066ce96d2c13a4bf4fa5c6e3b00add53
src/model/associations/association_set.coffee
src/model/associations/association_set.coffee
#= require ../../set/set_sort class Batman.AssociationSet extends Batman.SetSort constructor: (@foreignKeyValue, @association) -> base = new Batman.Set super(base, 'hashKey') loaded: false load: (callback) -> return callback(undefined, @) unless @foreignKeyValue? @association.getRelatedModel().lo...
#= require ../../set/set_sort class Batman.AssociationSet extends Batman.SetSort constructor: (@foreignKeyValue, @association) -> base = new Batman.Set super(base, 'hashKey') loaded: false load: (callback) -> return callback(undefined, @) unless @foreignKeyValue? @association.getRelatedModel().lo...
Set an eccessor on AssociationSets so we can do data-hideif: asssociation.loaded
Set an eccessor on AssociationSets so we can do data-hideif: asssociation.loaded
CoffeeScript
mit
getshuvo/batman,getshuvo/batman
cbf21d6fe20df21a363116c51ebc62b08f4977ab
src/coffee/edsl.coffee
src/coffee/edsl.coffee
angular.module 'qbn.edsl', ['qbn.quality', 'qbn.storylet', 'qbn.choice'] .factory 'qbnEdsl', (qualities, storylets, frontalChoices, choiceFactory) -> api = quality: (id, name, description, args = {}) -> {defaultValue, defaultProgress, maxProgress, hasProgress, progressEscalation, visible} =...
angular.module 'qbn.edsl', ['qbn.quality', 'qbn.storylet', 'qbn.choice'] .factory 'qbnEdsl', (qualities, storylets, frontalChoices, choiceFactory) -> api = quality: (id, name, description, args = {}) -> {value, progress, maxProgress, hasProgress, progressEscalation, visible} = args ...
Improve Names of Quality EDSL Parameters
Improve Names of Quality EDSL Parameters
CoffeeScript
unlicense
arashikou/exper3-2015
b685051268cc9c326522c29e1aee84bdfd1ae773
backend/app/assets/javascripts/spree/backend/variant_autocomplete.js.coffee
backend/app/assets/javascripts/spree/backend/variant_autocomplete.js.coffee
# variant autocompletion variantTemplate = HandlebarsTemplates["variants/autocomplete"] formatVariantResult = (variant) -> variantTemplate( variant: variant ) $.fn.variantAutocomplete = (searchOptions = {}) -> @select2 placeholder: Spree.translations.variant_placeholder minimumInputLength: 3 in...
# variant autocompletion variantTemplate = HandlebarsTemplates["variants/autocomplete"] formatVariantResult = (variant) -> variantTemplate( variant: variant ) $.fn.variantAutocomplete = (searchOptions = {}) -> @select2 placeholder: Spree.translations.variant_placeholder minimumInputLength: 3 in...
Fix missing close paren in variantAutocomplete
Fix missing close paren in variantAutocomplete
CoffeeScript
bsd-3-clause
pervino/solidus,pervino/solidus,pervino/solidus,pervino/solidus
a4cd17ddc823dbc0db0667dd1386d0571976a11e
src/main.coffee
src/main.coffee
# # main.coffee # # Role: start the app # # Responsibility: # * load top-level modules # * initalize game based on query string # * render and append to body of HTML # * run tests if local # # Preamble # TODO: server-side include underscore, underscore.string, jquery {my} = require './my' if my.online _.mixin(_.str...
# # main.coffee # # Role: start the app # # Responsibility: # * load top-level modules # * initalize game based on query string # * render and append to body of HTML # * run tests if local # # Preamble # TODO: server-side include underscore, underscore.string, jquery {my} = require './my' if my.online _.mixin(_.str...
Move tests next to their modules
Move tests next to their modules
CoffeeScript
isc
TheSwanFactory/hourofnode,TheSwanFactory/hourofnode
e5e0c7157811dbccf04f0731d269a11f74c61ff0
app/assets/javascripts/modules/global_hooks.js.coffee
app/assets/javascripts/modules/global_hooks.js.coffee
do ($ = jQuery, config = @edsc.config) -> $(document).on 'click', 'a[data-pulse]', -> $dest = $($(this).attr('data-pulse')) $dest.animate(color: '#00ffff').animate(color: 'inherit') # Remove buttons in tables remove their rows $(document).on 'click', 'tr a[title="remove"]', -> $(this).closest('tr')....
do (document, window, $ = jQuery, config = @edsc.config) -> $(document).on 'click', 'a[data-pulse]', -> $dest = $($(this).attr('data-pulse')) $dest.animate(color: '#00ffff').animate(color: 'inherit') # Remove buttons in tables remove their rows $(document).on 'click', 'tr a[title="remove"]', -> $(th...
Fix URS redirect location in IE9
EDSC-492: Fix URS redirect location in IE9
CoffeeScript
apache-2.0
mightynimble/earthdata-search,bilts/earthdata-search,mightynimble/earthdata-search,bilts/earthdata-search,bilts/earthdata-search,bilts/earthdata-search,mightynimble/earthdata-search,mightynimble/earthdata-search
7731199f60bbd612cbc83821f1467ab8b50eba0b
h2o-web/src/main/steam/scripts/xhr.coffee
h2o-web/src/main/steam/scripts/xhr.coffee
Steam.Xhr = (_) -> createResponse = (status, data, xhr) -> status: status, data: data, xhr: xhr link$ _.invokeH2O, (method, path, go) -> $.getJSON path .done (data, status, xhr) -> go null, createResponse status, data, xhr .fail (xhr, status, error) -> go createResponse status, ...
Steam.Xhr = (_) -> createResponse = (status, data, xhr) -> status: status, data: data, xhr: xhr handleResponse = (go, jqxhr) -> jqxhr .done (data, status, xhr) -> go null, createResponse status, data, xhr .fail (xhr, status, error) -> go createResponse status, xhr.responseJSON, ...
Add POST request support to client proxy
Add POST request support to client proxy
CoffeeScript
mit
printedheart/h2o-flow,YzPaul3/h2o-3,bospetersen/h2o-3,printedheart/h2o-3,mrgloom/h2o-3,h2oai/h2o-3,kyoren/https-github.com-h2oai-h2o-3,madmax983/h2o-3,ChristosChristofidis/h2o-3,junwucs/h2o-3,tarasane/h2o-3,junwucs/h2o-3,printedheart/h2o-flow,printedheart/h2o-3,bikash/h2o-dev,h2oai/h2o-dev,h2oai/h2o-3,mathemage/h2o-3,b...
8d9df89c38166e0f7b677c5dd7b173a631731687
app/assets/javascripts/models/author.js.coffee
app/assets/javascripts/models/author.js.coffee
a = DS.attr ETahi.Author = DS.Model.extend authorGroup: DS.belongsTo('authorGroup') firstName: a('string') middleInitial: a('string') lastName: a('string') fullName: (-> "#{@get('firstName')} #{@get('middleInitial') || ''} #{@get('lastName')}" ).property('firstName', 'middleInitial', 'lastName') em...
a = DS.attr ETahi.Author = DS.Model.extend authorGroup: DS.belongsTo('authorGroup') firstName: a('string') middleInitial: a('string') lastName: a('string') fullName: (-> [@get('firstName'), @get('middleInitial'), @get('lastName')].compact().join(' ') ).property('firstName', 'middleInitial', 'lastName')...
Fix full name computed property * There was a redundant space getting added when the middle initial is absent
Fix full name computed property * There was a redundant space getting added when the middle initial is absent
CoffeeScript
mit
johan--/tahi,johan--/tahi,johan--/tahi,johan--/tahi
5da3e4d97abdc37a6edf2e4bb146f59e1a35cfee
kirppu/static_src/js/checkout/itemcheckinmode.coffee
kirppu/static_src/js/checkout/itemcheckinmode.coffee
class @ItemCheckInMode extends ItemCheckoutMode ModeSwitcher.registerEntryPoint("vendor_check_in", @) glyph: -> "import" title: -> "Vendor Check-In" constructor: (args..., query) -> super @currentVendor = null @itemIndex = 1 actions: -> [ ['', (code) => code = fixToUppercase(code) ...
class @ItemCheckInMode extends ItemCheckoutMode ModeSwitcher.registerEntryPoint("vendor_check_in", @) glyph: -> "import" title: -> "Vendor Check-In" constructor: (args..., query) -> super @currentVendor = null @itemIndex = 1 actions: -> [ ['', (code) => code = fixToUppercase(code) ...
Add one extra failure handling for item checkin mode.
Add one extra failure handling for item checkin mode. A successfull request has just been made before this call, but added just to be safe.
CoffeeScript
mit
jlaunonen/kirppu,jlaunonen/kirppu,jlaunonen/kirppu,jlaunonen/kirppu
a88373c10790b4e99be17a99ff6624ff25acf225
app/models/bookmark.coffee
app/models/bookmark.coffee
module.exports = App.Bookmark = DS.Model.extend name: DS.attr() url: DS.attr()
module.exports = App.Bookmark = DS.Model.extend url: DS.attr()
Remove name attr from bookmakrk
Remove name attr from bookmakrk
CoffeeScript
mit
drapergeek/markit
7cc9c5fcb320a5a6fbf6a0ac4aee4ad2f6b741ff
src/scripts/manatee.coffee
src/scripts/manatee.coffee
# Description: # Allows Hubot to pull down images from calmingmanatee.com # # Dependencies: # "htmlparser": "1.7.6" # "soupselect": "0.2.0" # # Configuration: # None # # Commands: # hubot manatee - outputs a random manatee # # Author: # Danny Lockard Select = require( "soupselect" ).select HTMLParser = req...
# Description: # Allows Hubot to pull down images from calmingmanatee.com # # Dependencies: # None # # Configuration: # None # # Commands: # hubot manatee - outputs a random manatee # # Author: # Danny Lockard module.exports = (robot) -> robot.respond /manatee/i, (msg) -> msg ...
Fix Manatee script: Heed location in redirect
Fix Manatee script: Heed location in redirect
CoffeeScript
mit
phillipalexander/hubot-scripts,alexhouse/hubot-scripts,iilab/hubot-scripts,arcaartem/hubot-scripts,Ev1l/hubot-scripts,magicstone1412/hubot-scripts,wsoula/hubot-scripts,MaxMEllon/hubot-scripts,davidsulpy/hubot-scripts,jacobtomlinson/hubot-scripts,jankowiakmaria/hubot-scripts,marksie531/hubot-scripts,zecahnin/hubot-scrip...
5cf63e0678512eedba30a2914ad95f73ae3bbca5
bokehjs/test/test_mapper/test_categorical_mapper.coffee
bokehjs/test/test_mapper/test_categorical_mapper.coffee
{expect} = require "chai" utils = require "../utils" {Collections} = utils.require "common/base" describe "categorical mapper", -> factors = ["foo", "bar", "baz"] start = 20 end = 80 testMapping = (key, expected) -> mapper = Collections("CategoricalMapper").create source_range: Collections("FactorR...
{expect} = require "chai" utils = require "../utils" {Collections} = utils.require "common/base" describe "categorical mapper", -> # FIXME Would be nice to randomize the numbers factors = ["foo", "bar", "baz"] start = 20 end = 80 testMapping = (key, expected) -> mapper = Collections("CategoricalMapper"...
Add a FIXME for someone who wants a low hanging fruit
Add a FIXME for someone who wants a low hanging fruit
CoffeeScript
bsd-3-clause
phobson/bokeh,birdsarah/bokeh,justacec/bokeh,PythonCharmers/bokeh,dennisobrien/bokeh,aavanian/bokeh,canavandl/bokeh,Karel-van-de-Plassche/bokeh,timothydmorton/bokeh,caseyclements/bokeh,jplourenco/bokeh,aiguofer/bokeh,saifrahmed/bokeh,phobson/bokeh,stuart-knock/bokeh,evidation-health/bokeh,clairetang6/bokeh,daodaoliang/...
ee55aca4ac43c6540b9f0888bf5fa72ae99dbc45
src/app/common/partials/directives/grade-icon.coffee
src/app/common/partials/directives/grade-icon.coffee
angular.module('doubtfire.common.grade-icon', []) .directive 'gradeIcon', -> restrict: 'E' replace: true templateUrl: 'common/partials/templates/grade-icon.tpl.html' scope: inputGrade: '=?grade' controller: ($scope, gradeService) -> $scope.grade = if _.isString($scope.inputGrade) then gradeService.gr...
angular.module('doubtfire.common.grade-icon', []) .directive 'gradeIcon', -> restrict: 'E' replace: true templateUrl: 'common/partials/templates/grade-icon.tpl.html' scope: inputGrade: '=?grade' controller: ($scope, gradeService) -> $scope.$watch 'inputGrade', (newGrade) -> return unless newGra...
Make grade icon responsive to new input grades
FIX: Make grade icon responsive to new input grades
CoffeeScript
agpl-3.0
final-year-project/doubtfire-web,doubtfire-lms/doubtfire-web,doubtfire-lms/doubtfire-web,alexcu/doubtfire-web,doubtfire-lms/doubtfire-web,alexcu/doubtfire-web,final-year-project/doubtfire-web,doubtfire-lms/doubtfire-web
81830f507a15464001d1a9da8dcf18903026e63d
spec/settings-spec.coffee
spec/settings-spec.coffee
Settings = require '../lib/settings.coffee' describe "Settings", -> describe ".load(settings)", -> it "Loads the settings provided", -> settings = new Settings() settings.load({"foo.bar.baz": 42}) expect(atom.config.get("foo.bar.baz")).toBe 42 describe ".load(settings) with a 'scope' optio...
Settings = require '../lib/settings' describe "Settings", -> describe ".load(settings)", -> it "Loads the settings provided if they are flat", -> settings = new Settings() settings.load({"foo.bar.baz": 42}) expect(atom.config.get("foo.bar.baz")).toBe 42 it "Loads the settings provided if...
Add test for nested settings
Add test for nested settings
CoffeeScript
mit
douggr/atom-project-manager,danielbrodin/atom-project-manager,UltCombo/atom-project-manager
60c7ed8778d7b76c41d7da08b0f7c4ed833b5307
lib/table-header-component.coffee
lib/table-header-component.coffee
React = require 'react-atom-fork' {div} = require 'reactionary-atom-fork' module.exports = React.createClass getInitialState: -> columnsWidths: [] columnsAligns: [] render: -> {table, parentView} = @props {columnsWidths, columnsAligns} = @state cells = [] for column,index in table.getColu...
React = require 'react-atom-fork' {div} = require 'reactionary-atom-fork' module.exports = React.createClass getInitialState: -> columnsWidths: [] columnsAligns: [] render: -> {table, parentView} = @props {columnsWidths, columnsAligns} = @state cells = [] for column,index in table.getColu...
Fix missing key attribute for column header cell
:bug: Fix missing key attribute for column header cell
CoffeeScript
mit
abe33/atom-tablr
69c28250d94fcb0df215ec1b3cb560a9c289de9a
evesrp/static/js/util.coffee
evesrp/static/js/util.coffee
jQuery = require 'jquery' _ = require 'underscore' exports.monthAbbr = (monthInt) -> switch monthInt when 0 then 'Jan' when 1 then 'Feb' when 2 then 'Mar' when 3 then 'Apr' when 4 then 'May' when 5 then 'Jun' when 6 then 'Jul' when 7 then 'Aug' ...
jQuery = require 'jquery' _ = require 'underscore' exports.statusColor = (status) -> switch status when 'evaluating' then 'warning' when 'approved' then 'info' when 'paid' then 'success' when 'incomplete', 'rejected' then 'danger' else '' exports.pageNumbers = (numPages, ...
Remove obsolete month shortening function
Remove obsolete month shortening function
CoffeeScript
bsd-2-clause
paxswill/evesrp,paxswill/evesrp,paxswill/evesrp
11838a0cde985ba81c4221c849ec23db43887682
app/assets/javascripts/voluntary_ranking/routes/profile/rankings_route.js.coffee
app/assets/javascripts/voluntary_ranking/routes/profile/rankings_route.js.coffee
VoluntaryOnEmberjs.ProfileRankingsRoute = Ember.Route.extend model: (params) -> @controllerFor('profile.rankings').set('adjective', params.adjective) @controllerFor('profile.rankings').set('negativeAdjective', params.negative_adjective) @controllerFor('profile.rankings').set('topic', params.topic) @co...
VoluntaryOnEmberjs.ProfileRankingsRoute = Ember.Route.extend model: (params) -> @controllerFor('profile.rankings').set('yourRanking', true); @controllerFor('profile.rankings').set('yourRankingClass', 'btn active'); @controllerFor('profile.rankings').set('globalRankingClass', 'btn') @controllerFor('profil...
Set yourRanking to false. Use params to request model. Use new current user API.
Set yourRanking to false. Use params to request model. Use new current user API.
CoffeeScript
mit
volontariat/voluntary_ranking,volontariat/voluntary_ranking,volontariat/voluntary_ranking
a94ddb71192dcc56a412d5cf5dc829ed53aad488
.atom/config.cson
.atom/config.cson
"*": core: themes: [ "one-light-ui" "solarized-dark-syntax" ] editor: fontSize: 16 invisibles: {} showIndentGuide: true showInvisibles: true "exception-reporting": userId: "76d6bd0a-16fd-42b8-0163-bce5c8c7e379" welcome: showOnStartup: false whitespace: ensureSin...
"*": core: themes: [ "one-light-ui" "solarized-dark-syntax" ] editor: fontFamily: "mononoki" fontSize: 18 invisibles: {} showIndentGuide: true showInvisibles: true "exception-reporting": userId: "76d6bd0a-16fd-42b8-0163-bce5c8c7e379" welcome: showOnStartup: false ...
Switch to mononoki font in Atom editor
Switch to mononoki font in Atom editor
CoffeeScript
mit
dreadwarrior/dotfiles,dreadwarrior/dotfiles
3437ad556039bfab02be0f4684367f4bc41dc966
app/assets/javascripts/backbone/models/commit_request.js.coffee
app/assets/javascripts/backbone/models/commit_request.js.coffee
class CommitRequest extends Backbone.Model initialize: () -> # do stuff send: () => $.ajax gon.commit_request_path, data: @request success: (data) => @success(data)
class Water.CommitRequest extends Backbone.Model initialize: () -> # do stuff send: () => $.ajax gon.commit_request_path, data: @request success: (data) => @success(data)
Correct namespace for commit request
Correct namespace for commit request
CoffeeScript
agpl-3.0
water/mainline,water/mainline,water/mainline
2302baa4f373fb9238ab94c823c2b921961ec01c
src/packages/spell-check/lib/spell-check-handler.coffee
src/packages/spell-check/lib/spell-check-handler.coffee
SpellChecker = require 'spellchecker' module.exports = findMisspellings: (text) -> wordRegex = /(?:^|[\s\[\]])([a-zA-Z']+)(?=[\s\.\[\]]|$)/g row = 0 misspellings = [] for line in text.split('\n') while matches = wordRegex.exec(line) word = matches[1] continue unless SpellChecker...
SpellChecker = require 'spellchecker' module.exports = findMisspellings: (text) -> wordRegex = /(?:^|[\s\[\]])([a-zA-Z']+)(?=[\s\.\[\]:]|$)/g row = 0 misspellings = [] for line in text.split('\n') while matches = wordRegex.exec(line) word = matches[1] continue unless SpellChecke...
Include colon as a word boundary
Include colon as a word boundary
CoffeeScript
mit
prembasumatary/atom,jlord/atom,sekcheong/atom,toqz/atom,johnrizzo1/atom,erikhakansson/atom,jtrose2/atom,FIT-CSE2410-A-Bombs/atom,codex8/atom,fang-yufeng/atom,kaicataldo/atom,daxlab/atom,rlugojr/atom,Abdillah/atom,Galactix/atom,0x73/atom,basarat/atom,codex8/atom,t9md/atom,boomwaiza/atom,nvoron23/atom,jlord/atom,yalexx/a...
2cbe71c629045989132e7bd97ce5b5716537b475
app/assets/javascripts/martian_components/components/utils/full_height_header.coffee
app/assets/javascripts/martian_components/components/utils/full_height_header.coffee
# USE # If the element is not a component, add full-height-header attribute to the tag. # With a component, add 'full_height_header: true' to the persisted options class @Components.Utils.FullHeightHeader @autoInit: -> $('[full-height-header]').each (i, el) => new @($(el)) constructor: (@el) -> @component ...
# USE # If the element is not a component, add full-height-header attribute to the tag. # With a component, add 'full_height_header: true' to the persisted options class @Components.Utils.FullHeightHeader @autoInit: -> $('[full-height-header]').each (i, el) => new @($(el)) constructor: (@el) -> @component ...
Replace window.innerHeight by $(window).height to improve compatibility
Replace window.innerHeight by $(window).height to improve compatibility
CoffeeScript
mit
polomarte/martian_components,polomarte/martian_components,polomarte/martian_components
cb27c3b64080dd3d0796450274399587bbe949fa
keymaps/markdown-preview.cson
keymaps/markdown-preview.cson
'.workspace': 'ctrl-M': 'markdown-preview:toggle' '.markdown-preview': 'cmd-+': 'markdown-preview:zoom-in' 'cmd-=': 'markdown-preview:zoom-in' 'cmd--': 'markdown-preview:zoom-out' 'cmd-_': 'markdown-preview:zoom-out' 'cmd-0': 'markdown-preview:reset-zoom'
'.workspace': 'ctrl-M': 'markdown-preview:toggle' '.platform-darwin .markdown-preview': 'cmd-+': 'markdown-preview:zoom-in' 'cmd-=': 'markdown-preview:zoom-in' 'cmd--': 'markdown-preview:zoom-out' 'cmd-_': 'markdown-preview:zoom-out' 'cmd-0': 'markdown-preview:reset-zoom' '.platform-win32 .markdown-previe...
Add keybindings for all platforms
Add keybindings for all platforms
CoffeeScript
mit
Galadirith/markdown-preview,makyo/markdown-preview,rugk/markdown-preview,sctlee/markdown-preview,atom/markdown-preview,ArnaudRinquin/markdown-preview,grimmer0125/markdown-preview-kramdown,tkssharma/markdown-preview
61f0e4656525f5ba3b8d54fadb081af8b656e8d8
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. # fileTypes = { "source.gfm": (editor) -> editor.setSoftWrap(true) editor.setTabLength(4) "source.java": (editor) -...
# 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. # fileTypes = { "GitHub Markdown": (editor) -> editor.setSoftWrap(true) editor.setTabLength(4) "Java": (editor) -> ...
Change back to using grammar name
Change back to using grammar name Matching against the scope name of the grammar didn't seem to work in all cases.
CoffeeScript
mit
lee-dohm/dotfiles,lee-dohm/dotfiles,lee-dohm/dotfiles,lee-dohm/dotfiles
6d1a61a1e56bbd27ed983096a4d659311b9d039c
src/client/formatters/html.coffee
src/client/formatters/html.coffee
# Plain HTML Formatter fs = require('fs') exports.init = -> extensions: ['html'] assetType: 'html' contentType: 'text/html' compile: (path, options, cb) -> input = fs.readFileSync(path, 'utf8') # If passing optional headers for main view input = input.replace('<SocketStream>', options.headers)...
# Plain HTML Formatter fs = require('fs') exports.init = -> extensions: ['html'] assetType: 'html' contentType: 'text/html' compile: (path, options, cb) -> input = fs.readFileSync(path, 'utf8') # If passing optional headers for main view if options && options.headers input = input.replace('<Soc...
Make <SocketStream> tag xml compliant
Make <SocketStream> tag xml compliant
CoffeeScript
mit
socketstream/socketstream,baiyanghese/socketstream,RomanMinkin/ss-grunt-test,baiyanghese/socketstream,jmptrader/socketstream,RomanMinkin/ss-grunt-test,socketstream/socketstream,ListnPlay/socketstream,jmptrader/socketstream,evanlh/socketstream,ListnPlay/socketstream,evanlh/socketstream
68348a8702158832c37845983fdffe6150a02b77
src/components/learning-guide/progress-bar.cjsx
src/components/learning-guide/progress-bar.cjsx
React = require 'react' BS = require 'react-bootstrap' ChapterSectionType = require './chapter-section-type' module.exports = React.createClass displayName: 'LearningGuideProgressBar' propTypes: section: React.PropTypes.object.isRequired onPractice: React.PropTypes.func render: -> {section, onPr...
React = require 'react' BS = require 'react-bootstrap' ChapterSectionType = require './chapter-section-type' module.exports = React.createClass displayName: 'LearningGuideProgressBar' propTypes: section: React.PropTypes.object.isRequired onPractice: React.PropTypes.func render: -> {section, onPr...
Switch to using interpretation property for color
Switch to using interpretation property for color
CoffeeScript
agpl-3.0
openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js
f58941cb4b4663abf5eaa426a1fa3439aedf5b13
lib/script.coffee
lib/script.coffee
ScriptView = require './script-view' module.exports = scriptView: null activate: (state) -> @scriptView = new ScriptView(state.scriptViewState) deactivate: -> @scriptView.destroy() serialize: -> scriptViewState: @scriptView.serialize()
ScriptView = require './script-view' module.exports = scriptView: null activate: (state) -> @scriptView = new ScriptView(state.scriptViewState) deactivate: -> @scriptView.close() serialize: -> scriptViewState: @scriptView.serialize()
Destroy no longer exists, now it's close
Destroy no longer exists, now it's close
CoffeeScript
mit
jchannon/atom-script,efatsi/atom-script,rgbkrk/atom-script,idleberg/atom-script,Calyhre/atom-script,anfedorov/atom-script,jchannon/atom-script,efatsi/atom-script,rodionovd/atom-script,jchannon/atom-script,Calyhre/atom-script,jchannon/atom-script,efatsi/atom-script,anfedorov/atom-script,jchannon/atom-script,jchannon/ato...
48a999572e1901816ea9a584ce48f462232269e4
client/skr/screens/time-tracking/PopoverMiniControls.cjsx
client/skr/screens/time-tracking/PopoverMiniControls.cjsx
class Skr.Screens.TimeTracking.MiniControls extends Lanes.React.Component onEditEvent: -> @props.onEditEvent(@props.event) EditButton: -> return null unless @props.event <BS.Button onClick={@onEditEvent} title="Edit Time Entry"> <LC.Icon type='pencil-square-o' 2x flush /> ...
class Skr.Screens.TimeTracking.MiniControls extends Lanes.React.Component onEditEvent: -> @props.onEditEvent(@props.event) EditButton: -> return null unless @props.event <BS.Button onClick={@onEditEvent} title="Edit Time Entry"> <LC.Icon type='pencil-square-o' 2x flush /> ...
Add span tags to match old behaviour of React
Add span tags to match old behaviour of React This is what happens when you rely on non-specified behaviour ;)
CoffeeScript
agpl-3.0
argosity/stockor,argosity/stockor,argosity/stockor,argosity/stockor
00465ec4505607c1c6f16bf33ec3fd36f67ce289
lib/atom-perl6-editor-tools-hyperclick.coffee
lib/atom-perl6-editor-tools-hyperclick.coffee
# This provides hyperclick support for Perl 6 using hyperclick # Please see https://atom.io/packages/hyperclick module.exports = class Perl6HyperclickProvider providerName: 'perl6-hyperclick' getSuggestionForWord: (editor, text, range) -> # Make sure the editor are valid Perl 6 editors return unless edi...
# This provides hyperclick support for Perl 6 using hyperclick # Please see https://atom.io/packages/hyperclick module.exports = class Perl6HyperclickProvider providerName: 'perl6-hyperclick' getSuggestionForWord: (editor, text, range) -> # Make sure the editor are valid Perl 6 editors return unless edi...
Fix doc with mock stuff
Fix doc with mock stuff
CoffeeScript
mit
azawawi/atom-perl6-editor-tools,azawawi/atom-perl6-editor-tools
629f2f1fac21b8db5609c5f8b43955d95239ddef
server/route_bindings.coffee
server/route_bindings.coffee
passport = require('./initializers/authentication') narrativeApi = require('./routes/api/narrative') dashboardRoutes = require('./routes/dashboard.coffee') indicatorRoutes = require('./routes/indicators.coffee') bookmarkRoutes = require('./routes/bookmarks.coffee') reportRoutes = require('./routes/reports.coffee') tes...
passport = require('./initializers/authentication') narrativeApi = require('./routes/api/narrative') dashboardRoutes = require('./routes/dashboard.coffee') indicatorRoutes = require('./routes/indicators.coffee') bookmarkRoutes = require('./routes/bookmarks.coffee') reportRoutes = require('./routes/reports.coffee') tes...
Disable authentication in development, and make routes DRYer
Disable authentication in development, and make routes DRYer
CoffeeScript
bsd-3-clause
unepwcmc/NRT,unepwcmc/NRT
72a54a9aca994ee37457f8fd24add2fbb9f61dc2
settings/language-viml.cson
settings/language-viml.cson
".source.viml": editor: commentStart: '" ' increaseIndentPattern: "(?:^|\\s)(?:if|else|elseif|for|function!?|while)(?:\\s|$)" decreaseIndentPattern: "(?:^|\\s)(?:endif|endfor|endfunction|endwhile)(?:\\s|$)"
".source.viml": editor: commentStart: '" ' increaseIndentPattern: "(?:^|\\s)(?:if|else|elseif|for|function!?|fu|fun|func|augroup|aug|try|catch|while)(?:\\s|$)" decreaseIndentPattern: "(?:^|\\s)(?:endif|endfor|endf|endfun|endfunction|endtry|endwhile|(?:augroup|aug)\\.END)(?:\\s|$)"
Extend list of recognised indent/outdent keywords
Extend list of recognised indent/outdent keywords
CoffeeScript
mit
Alhadis/language-viml
9d1014f8c9d9b0a64d7340175407de97731b0997
src/cache/repository.coffee
src/cache/repository.coffee
Impromptu = require '../impromptu' async = require 'async' class Repository extends Impromptu.Cache.Global prepare: (method, fn) -> return Impromptu.Cache.Global::[method].call @, fn if @_prepared parts = ['root', 'branch'] parts.push 'commit' if @options.commit async.map parts, (part, done) => ...
Impromptu = require '../impromptu' async = require 'async' class Repository extends Impromptu.Cache.Global prepare: (method, fn) -> return Impromptu.Cache.Global::[method].call @, fn if @_prepared parts = ['root', 'branch'] parts.push 'commit' if @options.commit async.map parts, (part, done) => ...
Add a safety check to prevent an infinite loop.
Add a safety check to prevent an infinite loop.
CoffeeScript
mit
impromptu/impromptu,impromptu/impromptu
be80d9d02db0e15278b0f1bce8ce52b247893c05
atom/init.coffee
atom/init.coffee
path = require 'path' # require('web-frame').setZoomFactor(1.15) oldWindowDimensions = {} atom.commands.add 'atom-workspace', 'custom:open-todo-list': -> todoList = path.join(process.env.HOME, 'Dropbox/todo/todo.txt') atom.workspace.open(todoList) 'custom:screenshot-prep': -> oldWindowDimensions = a...
path = require 'path' # require('web-frame').setZoomFactor(1.15) oldWindowDimensions = {} atom.commands.add 'atom-workspace', 'custom:insert-timestamp': -> now = new Date() atom.workspace.getActiveTextEditor().insertText(now.toISOString()) 'custom:open-todo-list': -> todoList = path.join(process.env...
Add custom command for inserting a date stamp
Add custom command for inserting a date stamp
CoffeeScript
mit
lee-dohm/dotfiles,lee-dohm/dotfiles,lee-dohm/dotfiles,lee-dohm/dotfiles
84a002a20fe113c89911118adfc3715bdcbe29bb
atom/keymap.cson
atom/keymap.cson
# Your keymap # # Atom keymaps work similarly to stylesheets. Just as stylesheets use selectors # to apply styles to elements, Atom keymaps use selectors to associate # keystrokes with events in specific contexts. # # You can create a new keybinding in this file by typing "key" and then hitting # tab. # # Here's an exa...
# Your keymap # # Atom keymaps work similarly to stylesheets. Just as stylesheets use selectors # to apply styles to elements, Atom keymaps use selectors to associate # keystrokes with events in specific contexts. # # You can create a new keybinding in this file by typing "key" and then hitting # tab. # # Here's an exa...
Add better key map for Quippet
Add better key map for Quippet
CoffeeScript
mit
lee-dohm/dotfiles,lee-dohm/dotfiles,lee-dohm/dotfiles,lee-dohm/dotfiles
feae223399bf38cf2ca8b7bb4e100017b46b5b48
lib/utils.coffee
lib/utils.coffee
module.exports = # Public: Determines if a string should be considered linewise or character # # text - The string to consider # # Returns 'linewise' if the string ends with a line return and 'character' # otherwise. copyType: (text) -> if text.lastIndexOf("\n") is text.length - 1 'linewise' ...
module.exports = # Public: Determines if a string should be considered linewise or character # # text - The string to consider # # Returns 'linewise' if the string ends with a line return and 'character' # otherwise. copyType: (text) -> if text.lastIndexOf("\n") is text.length - 1 'linewise' ...
Add description for include utility func
Add description for include utility func
CoffeeScript
mit
t9md/atom-vim-mode-plus
b4d5f9b5282e85dbb70590c3414e688e2829f94c
node_modules_koding/bongo/lib/expressify.coffee
node_modules_koding/bongo/lib/expressify.coffee
module.exports = -> { dash } = require 'bongo' bongo = this (req, res, next) -> { channelName queue: requestQueue sessionToken userArea } = req.body unless requestQueue?.length return res.status(400).end() responseQueue = new Array requestQueue.length bongo....
module.exports = -> { dash } = require 'bongo' bongo = this (req, res, next) -> { channelName queue: requestQueue sessionToken userArea } = req.body unless requestQueue?.length return res.status(400).end() responseQueue = new Array requestQueue.length bongo....
Set session token as client identifier cookie
Set session token as client identifier cookie
CoffeeScript
agpl-3.0
acbodine/koding,cihangir/koding,acbodine/koding,gokmen/koding,jack89129/koding,rjeczalik/koding,drewsetski/koding,koding/koding,drewsetski/koding,alex-ionochkin/koding,cihangir/koding,kwagdy/koding-1,andrewjcasal/koding,rjeczalik/koding,mertaytore/koding,cihangir/koding,szkl/koding,jack89129/koding,rjeczalik/koding,sin...
1926405b5cf7cb09ee0030b19b7ec387f4dbc50f
src/scripts/views/link.coffee
src/scripts/views/link.coffee
Immutable = require 'immutable' React = require 'react' Router = require 'react-router' utils = require '../utils.coffee' URL = require '../url.coffee' module.exports = React.createClass displayName: 'Link' render: -> props = Immutable.fromJS(@props).toJS() if props.lang props.params.lang = props.lang if !...
Immutable = require 'immutable' React = require 'react' Router = require 'react-router' utils = require '../utils.coffee' URL = require '../url.coffee' module.exports = React.createClass displayName: 'Link' render: -> props = Immutable.fromJS(@props).filterNot( utils.keyIn 'lang', 'href' ).toJS() if @props...
Set hreflang and rel="alternate" on Link.
Set hreflang and rel="alternate" on Link.
CoffeeScript
mit
thirdhand/3rdhand.info,thirdhand/3rdhand.info
d39e3db4ee59fb49fe7557e9d4fb2862e7d25598
src/components/question/formats-listing.cjsx
src/components/question/formats-listing.cjsx
React = require 'react' _ = require 'underscore' classnames = require 'classnames' {AnswersTable} = require './answers-table' ArbitraryHtmlAndMath = require '../html' FormatsListing = require './formats-listing' FormatsListing = React.createClass propTypes: formats: React.PropTypes.arrayOf(React.PropTypes.strin...
React = require 'react' _ = require 'underscore' classnames = require 'classnames' {AnswersTable} = require './answers-table' ArbitraryHtmlAndMath = require '../html' FormatsListing = require './formats-listing' FormatsListing = React.createClass propTypes: formats: React.PropTypes.arrayOf(React.PropTypes.strin...
Use format index as key
Use format index as key In some cases in the editor, formats may be duplicated before save
CoffeeScript
agpl-3.0
openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js
8fc92b50ca9c10002b99566d59e4e79b152a3f5b
app/assets/javascripts/import_button.js.coffee
app/assets/javascripts/import_button.js.coffee
# Copyright 2011-2015, The Trustees of Indiana University and Northwestern # University. Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # ...
# Copyright 2011-2015, The Trustees of Indiana University and Northwestern # University. Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # ...
Disable bib import if there's no value
Disable bib import if there's no value
CoffeeScript
apache-2.0
nulib/avalon,avalonmediasystem/avalon,avalonmediasystem/avalon,avalonmediasystem/avalon,ualbertalib/avalon,uvalib/avalon,avalonmediasystem/avalon,ualbertalib/avalon,nulib/avalon,ualbertalib/avalon,uvalib/avalon,nulib/avalon,nulib/avalon,ualbertalib/avalon,uvalib/avalon,uvalib/avalon
253f42d6058b371252afb5a413a69fd20b160857
scripts/views/layouts/workspace/menu.coffee
scripts/views/layouts/workspace/menu.coffee
define [ 'jquery' 'underscore' 'backbone' 'marionette' 'cs!collections/media-types' 'cs!views/workspace/menu/auth' 'cs!views/workspace/menu/add' 'cs!views/workspace/menu/toolbar-search' 'hbs!templates/layouts/workspace/menu' ], ($, _, Backbone, Marionette, mediaTypes, AuthView, AddView, toolbarView, m...
define [ 'jquery' 'underscore' 'backbone' 'marionette' 'cs!collections/media-types' 'cs!session' 'cs!views/workspace/menu/auth' 'cs!views/workspace/menu/add' 'cs!views/workspace/menu/toolbar-search' 'hbs!templates/layouts/workspace/menu' ], ($, _, Backbone, Marionette, mediaTypes, session, AuthView,...
Include session in AuthView constructor
Include session in AuthView constructor
CoffeeScript
agpl-3.0
oerpub/github-bookeditor,oerpub/bookish,oerpub/bookish,oerpub/github-bookeditor,oerpub/github-bookeditor
fc0b9df14ccc30c7fb7ce243fbb1e63bb101d4c2
services/web/app/coffee/infrastructure/Features.coffee
services/web/app/coffee/infrastructure/Features.coffee
Settings = require 'settings-sharelatex' module.exports = Features = externalAuthenticationSystemUsed: -> Settings.ldap? or Settings.saml? or Settings.overleaf?.oauth? hasFeature: (feature) -> switch feature when 'homepage' return Settings.enableHomepage when 'registration' return not Features.ext...
Settings = require 'settings-sharelatex' module.exports = Features = externalAuthenticationSystemUsed: -> Settings.ldap? or Settings.saml? or Settings.overleaf?.oauth? hasFeature: (feature) -> switch feature when 'homepage' return Settings.enableHomepage when 'registration' return not Features.ext...
Add feature flag for redirecting SL to v2
Add feature flag for redirecting SL to v2
CoffeeScript
agpl-3.0
sharelatex/sharelatex
7377865535689f1f65871a6c70d8cc553a35c3f6
community/browser/app/scripts/directives/helpTopic.coffee
community/browser/app/scripts/directives/helpTopic.coffee
###! Copyright (c) 2002-2015 "Neo Technology," Network Engine for Objects in Lund AB [http://neotechnology.com] This file is part of Neo4j. Neo4j is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 ...
###! Copyright (c) 2002-2015 "Neo Technology," Network Engine for Objects in Lund AB [http://neotechnology.com] This file is part of Neo4j. Neo4j is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 ...
Replace all dashes in help topic name.
Replace all dashes in help topic name.
CoffeeScript
apache-2.0
HuangLS/neo4j,HuangLS/neo4j,HuangLS/neo4j,HuangLS/neo4j,HuangLS/neo4j
5112e90616e7c17400107e7a6dffac7f92cbbfe2
src/trans-eventsource.coffee
src/trans-eventsource.coffee
# ***** BEGIN LICENSE BLOCK ***** # Copyright (c) 2011-2012 VMware, Inc. # # For the license see COPYING. # ***** END LICENSE BLOCK ***** utils = require('./utils') transport = require('./transport') class EventSourceReceiver extends transport.ResponseReceiver protocol: "eventsource" doSendFrame: (payload) ...
# ***** BEGIN LICENSE BLOCK ***** # Copyright (c) 2011-2012 VMware, Inc. # # For the license see COPYING. # ***** END LICENSE BLOCK ***** utils = require('./utils') transport = require('./transport') class EventSourceReceiver extends transport.ResponseReceiver protocol: "eventsource" doSendFrame: (payload) ...
Add CORS headers to eventsource
Add CORS headers to eventsource
CoffeeScript
mit
sockjs/sockjs-node,modulexcite/sockjs-node,sockjs/sockjs-node,modulexcite/sockjs-node
5130360d62e45070ae6cd701336e73f1f5bb0c7a
coffee/document.coffee
coffee/document.coffee
"use strict" ObjectID = require('mongodb').ObjectID exports.param = (req, res, next, id) -> return res.send 400, 'invalid oid' if not /[a-f0-9]{24}/.test id req.id = new ObjectID id next() exports.options = (req, res, next) -> res.setHeader 'Access-Control-Allow-Methods', 'GET, PUT, PATCH, DELETE' res.send...
"use strict" ObjectID = require('mongodb').ObjectID exports.param = (req, res, next, id) -> return res.json 400, error: 'Invalid ObjectID' if not /[a-f0-9]{24}/.test id req.id = ObjectID.createFromHexString id next() exports.options = (req, res, next) -> res.setHeader 'Access-Control-Allow-Methods', 'GET, PU...
Add new ObjectID parsing and error hanling
Add new ObjectID parsing and error hanling
CoffeeScript
mit
Turistforeningen/Turbasen,Turbasen/Turbasen
18a5ab5aafc5fc5daa2539cd17844938931e2633
src/coffee/experimental-controller.coffee
src/coffee/experimental-controller.coffee
qbnApp = angular.module 'qbnApp', [] class Quality constructor: (@name, @defaultValue) -> instantiate = (proto) -> instance = Object.create proto for key, value of proto when /^default\w{2}/.test(key) [_, first, rest] = /^default(\w)(\w*)/.exec(key) newName = first.toLowerCase() + rest instance[newN...
qbnApp = angular.module 'qbnApp', [] # The immutable objects that make up the game itself serve as prototypes for the objects that make # up the mutable game state. This function takes a game definition object and makes a state # instance of it. # # By convention, any property on the prototype of the form "defaultThin...
Move instantiate() and Add Documentation
Move instantiate() and Add Documentation
CoffeeScript
unlicense
arashikou/exper3-2015
a57eec493e9f5fa037e82b9c3794dc529548d742
src/window.coffee
src/window.coffee
### TODO: describe call: (String) -> Object @param 1 @return resolveVendor: (String) -> Object @param 1 @return ### # Possible javascript vendor prefixes VENDOR_PREFIXES = [ "webkit" "ms" "moz" "o" ] capitalizeString = (str) -> if str.length > 1 str[0].toUpperCase() + str....
### TODO: describe call: (String) -> Object @param 1 @return resolveVendor: (String) -> Object @param 1 @return ### # Possible javascript vendor prefixes VENDOR_PREFIXES = [ "webkit" "ms" "moz" "o" ] capitalizeString = (str) -> if str.length > 1 str[0].toUpperCase() + str....
Make sure global is something defined
Make sure global is something defined
CoffeeScript
mit
ChronusEU/lib-tminus.js,ChronusEU/lib-tminus.js,ChronusEU/lib-tminus.js
8c9eb10c3588ffc6c31ee9c0819fd5b7e3e44480
frontend-admin/src/app/components/mnoe-api/api.svc.coffee
frontend-admin/src/app/components/mnoe-api/api.svc.coffee
@App.factory 'MnoeApiSvc', ($log, Restangular, inflector) -> return Restangular.withConfig((RestangularProvider) -> RestangularProvider.setBaseUrl('/mnoe/jpi/v1/admin') RestangularProvider.setDefaultHeaders({Accept: "application/json"}) # Unwrap api response RestangularProvider.addResponseInterceptor...
@App.factory 'MnoeApiSvc', ($log, Restangular, inflector) -> return Restangular.withConfig((RestangularProvider) -> RestangularProvider.setBaseUrl('/mnoe/jpi/v1/admin') RestangularProvider.setDefaultHeaders({Accept: "application/json"}) # Unwrap api response RestangularProvider.addResponseInterceptor...
Add operation GET to response interceptor unwrapper
Add operation GET to response interceptor unwrapper
CoffeeScript
apache-2.0
hedudelgado/mno-enterprise,hedudelgado/mno-enterprise,maestrano/mno-enterprise,maestrano/mno-enterprise,maestrano/mno-enterprise,maestrano/mno-enterprise,hedudelgado/mno-enterprise,hedudelgado/mno-enterprise
7243ac176d12614ebdfe3cd0c1d30e1231fbf00c
src/channel.coffee
src/channel.coffee
setImmediate = process.nextTick unless setImmediate? class Channel constructor: -> @handlers = [] send: (args...) -> setImmediate => @fire args... fire: (message) -> @package message for handler in @handlers handler message receive: (handler) -> @handlers.push handler ...
setImmediate = process.nextTick unless setImmediate? class Channel constructor: -> @handlers = [] send: (message) -> setImmediate => @fire( message ) fire: (message) -> @package message for handler in @handlers handler message receive: (handler) -> @handlers.push handler ...
Send and fire should have consistent interfaces
Send and fire should have consistent interfaces
CoffeeScript
mit
GemHQ/mutual,GemHQ/mutual,pandastrike/mutual
494b1f52a1e9df00c3a1381990f75f02804c9550
lib/project/result-view.coffee
lib/project/result-view.coffee
{_, $, fs, View} = require 'atom' MatchView = require './match-view' path = require 'path' module.exports = class ResultView extends View @content: (model, filePath, matches) -> iconClass = if fs.isReadmePath(filePath) then 'icon-book' else 'icon-file-text' @li class: 'path list-nested-item', 'data-path': _...
{_, $, fs, View} = require 'atom' MatchView = require './match-view' path = require 'path' module.exports = class ResultView extends View @content: (model, filePath, result) -> iconClass = if fs.isReadmePath(filePath) then 'icon-book' else 'icon-file-text' @li class: 'path list-nested-item', 'data-path': _....
Fix match count on result view
Fix match count on result view
CoffeeScript
mit
atom/find-and-replace,bmperrea/find-and-replace,harai/find-and-replace,trevdor/find-and-replace
f271622758362c854cea3c173f58fcb669ea2878
assets/scripts/lib/travis/expandable_record_array.coffee
assets/scripts/lib/travis/expandable_record_array.coffee
Travis.ExpandableRecordArray = DS.RecordArray.extend isLoaded: false isLoading: false load: (array) -> @set 'isLoading', true self = this observer = -> if @get 'isLoaded' content = self.get 'content' array.removeObserver 'isLoaded', observer array.forEach (record) -> ...
Travis.ExpandableRecordArray = Ember.RecordArray.extend isLoaded: false isLoading: false load: (array) -> @set 'isLoading', true self = this observer = -> if @get 'isLoaded' content = self.get 'content' array.removeObserver 'isLoaded', observer array.forEach (record) -...
Update ExpandableRecordArray to work correctly with Ember Model
Update ExpandableRecordArray to work correctly with Ember Model
CoffeeScript
mit
fotinakis/travis-web,jlrigau/travis-web,jlrigau/travis-web,Tiger66639/travis-web,travis-ci/travis-web,travis-ci/travis-web,mjlambert/travis-web,fotinakis/travis-web,Tiger66639/travis-web,mjlambert/travis-web,mjlambert/travis-web,travis-ci/travis-web,Tiger66639/travis-web,mjlambert/travis-web,2947721120/travis-web,29477...
74e86ad584385e4b93b95811cc4dbee1d129a6b2
app/assets/javascripts/controllers/user_controller.js.coffee
app/assets/javascripts/controllers/user_controller.js.coffee
Hummingbird.UserController = Ember.ObjectController.extend coverUpload: Ember.Object.create() coverUrl: Ember.computed.any('coverUpload.croppedImage', 'model.coverImageUrl') coverImageStyle: (-> "background-image: url(" + @get('coverUrl') + ")" ).property('coverUrl') forumProfile: (-> "http://forums...
Hummingbird.UserController = Ember.ObjectController.extend coverUpload: Ember.Object.create() coverUrl: Ember.computed.any('coverUpload.croppedImage', 'model.coverImageUrl') coverImageStyle: (-> "background-image: url(" + @get('coverUrl') + ")" ).property('coverUrl') viewingSelf: (-> @get('model.id'...
Fix viewingSelf attribute in user controller
Fix viewingSelf attribute in user controller
CoffeeScript
apache-2.0
xhocquet/hummingbird,jcoady9/hummingbird,sidaga/hummingbird,vevix/hummingbird,NuckChorris/hummingbird,wlads/hummingbird,NuckChorris/hummingbird,saintsantos/hummingbird,MiLk/hummingbird,xhocquet/hummingbird,jcoady9/hummingbird,saintsantos/hummingbird,sidaga/hummingbird,Snitzle/hummingbird,MiLk/hummingbird,synthtech/humm...
c2f4a2d0895c23b64b5ac156ff9f3ea5495162ef
test/components/learning-guide/practice-button.spec.coffee
test/components/learning-guide/practice-button.spec.coffee
{Testing, expect, _} = require '../helpers/component-testing' LearningGuide = require '../../../src/flux/learning-guide' Button = require '../../../src/components/learning-guide/practice-button' COURSE_ID = '1' GUIDE_DATA = require '../../../api/courses/1/guide.json' describe 'Learning Guide Practice Button', -> ...
{Testing, expect, _} = require '../helpers/component-testing' LearningGuide = require '../../../src/flux/learning-guide' Button = require '../../../src/components/learning-guide/practice-button' COURSE_ID = '1' GUIDE_DATA = require '../../../api/courses/1/guide.json' describe 'Learning Guide Practice Button', -> ...
Fix to test new pages
Fix to test new pages
CoffeeScript
agpl-3.0
openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js
c65a70f464889706d7597bd83298df49dbb2fdfa
test/missing-support.coffee
test/missing-support.coffee
should = require('should') missingSupport = require('../dist/lib/missing-support') describe 'missing-support', -> describe 'filtering caniuse-db data by browser selection', -> it 'for browser request ie >= 7, safari >= 6, opera >= 10.1',-> data = missingSupport(['ie >= 7', 'safari >= 6', 'opera >= 10.1'])....
should = require('should') missingSupport = require('../dist/lib/missing-support') describe 'missing-support', -> it 'provides list of selected browsers', -> data = missingSupport(['ie >= 8']) data.browsers.should.containDeep [ ['ie','8'] ['ie','9'] ['ie', '10'] ['ie', '11'] ] ...
Add failing test for bug
Add failing test for bug
CoffeeScript
mit
Flimm/doiuse,anandthakker/doiuse
5aa7daa951b87a6b66cda3dc96c680401c0b364b
services/web/app/coffee/Features/PasswordReset/PasswordResetController.coffee
services/web/app/coffee/Features/PasswordReset/PasswordResetController.coffee
PasswordResetHandler = require("./PasswordResetHandler") RateLimiter = require("../../infrastructure/RateLimiter") module.exports = renderRequestResetForm: (req, res)-> res.render "user/passwordReset", title:"Reset Password" requestReset: (req, res)-> email = req.body.email.trim().toLowerCase() opts = ...
PasswordResetHandler = require("./PasswordResetHandler") RateLimiter = require("../../infrastructure/RateLimiter") module.exports = renderRequestResetForm: (req, res)-> res.render "user/passwordReset", title:"Reset Password" requestReset: (req, res)-> email = req.body.email.trim().toLowerCase() opts = ...
Fix password reset rate limit to work on ip, not email which changes every request
Fix password reset rate limit to work on ip, not email which changes every request
CoffeeScript
agpl-3.0
sharelatex/sharelatex
c4f2ed3bb4714cad52d8eaac40e2a02cd9e92bc2
core/app/backbone/views/react_install_extension_button.coffee
core/app/backbone/views/react_install_extension_button.coffee
determineBrowser = -> [ 'chrome', 'firefox', 'safari', 'phantom_js', 'unsupported-browser' ] .filter( (browser) -> $('html.'+browser).length )[0] extension_link_by_browser = firefox: 'https://static.factlink.com/extension/firefox/factlink-latest.xpi' safari: 'https://static.factlink.com/extension/firefox/fac...
determineBrowser = -> [ 'chrome', 'firefox', 'safari', 'phantom_js', 'unsupported-browser' ] .filter( (browser) -> $('html.'+browser).length )[0] extension_install_options_by_browser = firefox: href: 'https://static.factlink.com/extension/firefox/factlink-latest.xpi' iconClass: 'install-firefox' safa...
Simplify (if not shorten) code
Simplify (if not shorten) code
CoffeeScript
mit
daukantas/factlink-core,Factlink/factlink-core,daukantas/factlink-core,Factlink/factlink-core,daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core
c431f99e3de3338f0b68fc0d8ce0d029cf9c0f39
core/app/backbone/views/subchannels_view.coffee
core/app/backbone/views/subchannels_view.coffee
class window.SubchannelsView extends Backbone.Factlink.CompositeView tagName: "div" id: "contained-channels" template: "channels/subchannels" itemView: SubchannelItemView events: "click #more-button": "toggleMore" initialize: -> @collection.bind "remove", @renderCollection, this toggleMore: -> ...
class window.SubchannelsView extends Backbone.Factlink.CompositeView tagName: "div" id: "contained-channels" template: "channels/subchannels" itemView: SubchannelItemView events: "click #more-button": "toggleMore" initialize: -> @collection.bind "add remove reset", @updateVisibility, @ @collect...
Hide "Composed of:" element completely if there are no containing channels.
Hide "Composed of:" element completely if there are no containing channels.
CoffeeScript
mit
daukantas/factlink-core,Factlink/factlink-core,daukantas/factlink-core,daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core,Factlink/factlink-core