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
338e8e4307bbb4af6866f5b3f621615afe1a43f9
lib/pty.coffee
lib/pty.coffee
# from atom/terminal to reduce cpu usage pty = require 'ptyw.js' module.exports = (ptyCwd, sh, cols, rows, args) -> callback = @async() if sh shell = sh else shell = process.env.SHELL if not shell # Try to salvage some sort of shell to execute. Horrible code below. path = requi...
# from atom/terminal to reduce cpu usage pty = require 'ptyw.js' module.exports = (ptyCwd, sh, cols, rows, args) -> callback = @async() if sh shell = sh else shell = process.env.SHELL if not shell # Try to salvage some sort of shell to execute. Horrible code below. path = requi...
Fix default path to powershell.
Fix default path to powershell.
CoffeeScript
mit
dwb/atom-xterm,Floobits/atom-term3
050b072bb8e16925341fa97425dc10e288d25e8e
lib/minimap-selection-view.coffee
lib/minimap-selection-view.coffee
{View} = require 'atom' module.exports = class MinimapSelectionView extends View decorations: [] @content: -> @div class: 'minimap-selection' initialize: (@minimapView) -> @subscribe @minimapView.editorView, "selection:changed", @handleSelection @subscribe @minimapView.editorView, "cursor-added", @ha...
{View} = require 'atom' module.exports = class MinimapSelectionView extends View decorations: [] @content: -> @div class: 'minimap-selection' initialize: (@minimapView) -> @subscribe @minimapView.editorView, "selection:changed", @handleSelection @subscribe @minimapView.editorView, "cursor-added", @ha...
Add a minimap class to the decoration scope
Add a minimap class to the decoration scope It’ll allow to have a specific style for the minimap selection
CoffeeScript
mit
atom-minimap/minimap-selection
874d3024233aba38be12383c2779fc2824c948d3
grammars/vp.cson
grammars/vp.cson
'scopeName': 'source.vp' 'name': 'Valkyrie Profile' 'fileTypes': ['vp'] 'patterns': [ { 'match': '^[^\t]*$', 'name': 'entity name function vp' } ]
'scopeName': 'source.vp' 'name': 'Valkyrie Profile' 'fileTypes': ['vp'] 'patterns': [ { 'match': '^[^\t]*$', 'name': 'entity name function vp' }, { 'match': '^\t{2}.*$' 'name': 'constant language vp' } ]
Update grammar to take Windows into account
Update grammar to take Windows into account
CoffeeScript
mit
MalikKeio/language-vp
66686e3c00dc7c2baa0a51beda91bbd0f5383bd4
lib/debug.coffee
lib/debug.coffee
EventEmitter = require('events').EventEmitter class Debug extends EventEmitter ### @options Which debug details should be sent. data - dump of packet data payload - details of decoded payload ### constructor: (@options) -> @options = @options || {} @options.d...
EventEmitter = require('events').EventEmitter class Debug extends EventEmitter ### @options Which debug details should be sent. data - dump of packet data payload - details of decoded payload ### constructor: (@options) -> @options = @options || {} @options.d...
Set a default for Connection's config.options.default .
Set a default for Connection's config.options.default .
CoffeeScript
mit
tediousjs/tedious,spanditcaa/tedious,arthurschreiber/tedious,Sage-ERP-X3/tedious,LeanKit-Labs/tedious,tediousjs/tedious,pekim/tedious
80f5a2ab25dd4a3311c0bd3fcb1142f82a87bfed
javascripts/lib.coffee
javascripts/lib.coffee
#= require almond window.ttm ||= {} ttm.ClassMixer = (klass)-> klass.build = -> it = new klass it.initialize && it.initialize.apply(it, arguments) it klass.prototype.klass = klass klass define "lib/class_mixer", -> return ttm.ClassMixer
#= require almond window.ttm ||= {} window.decorators ||= {} ttm.ClassMixer = (klass)-> klass.build = -> it = new klass it.initialize && it.initialize.apply(it, arguments) it klass.prototype.klass = klass klass define "lib/class_mixer", -> return ttm.ClassMixer
Implement decorator pattern for student dashboard.
WIP: Implement decorator pattern for student dashboard.
CoffeeScript
mit
thinkthroughmath/javascript-calculator,thinkthroughmath/javascript-calculator
0bc7c3c8714c71d96fbdf4ef7b2bb545790b6d36
spec/spec-helper.coffee
spec/spec-helper.coffee
require 'coffee-cache' jasmine.getEnv().addEqualityTester(require('underscore-plus').isEqual)
require 'coffee-cache' jasmine.getEnv().addEqualityTester(require('underscore-plus').isEqual) require('grim').includeDeprecatedAPIs = false
Exclude deprecated APIs when running specs
Exclude deprecated APIs when running specs
CoffeeScript
mit
jacekkopecky/text-buffer,jacekkopecky/text-buffer,atom/text-buffer,atom/text-buffer,pombredanne/text-buffer,whodatninja/text-buffer,pombredanne/text-buffer
770d38cf825ddacd31a0343f3a0ad72a13245530
app/assets/javascripts/all_aboard/routes/slides.js.coffee
app/assets/javascripts/all_aboard/routes/slides.js.coffee
AllAboard.SlidesRoute = Em.Route.extend model: -> # FIXME: So this is great, except that it doesn't work on a Board that was # created by the app while that same instance is still running. It just # sits and hangs resolving the model. @modelFor("board").get("slides") afterModel: (slides) -> if...
AllAboard.SlidesRoute = Em.Route.extend model: -> @modelFor("board").get("slides") afterModel: (slides) -> if slides.get("length") > 0 @transitionTo("slide", @modelFor("board"), slides.get("firstObject"))
Remove a FIXME that got fixed with data beta3.
Remove a FIXME that got fixed with data beta3.
CoffeeScript
mit
dpetersen/all_aboard,dpetersen/all_aboard
7bcef35be642095f0899ef7d353444b3bf027a1d
brunch-config.coffee
brunch-config.coffee
exports.config = files: javascripts: joinTo: 'js/app.js': /^(vendor|bower_components|app)/ stylesheets: joinTo: 'css/app.css' templates: joinTo: 'js/app.js' plugins: jshint: pattern: /^app\/.*\.js$/ options: curly: true bitwise: true glo...
exports.config = files: javascripts: joinTo: 'js/app.js': /^(vendor|bower_components|app)/ stylesheets: joinTo: 'css/app.css' templates: joinTo: 'js/app.js' plugins: handlebars: include: enabled: false
Use .jshintrc file instead of brunch jshint plugin configurations.
Use .jshintrc file instead of brunch jshint plugin configurations.
CoffeeScript
agpl-3.0
jessamynsmith/boards-web,GetBlimp/boards-web,jessamynsmith/boards-web
4e46c484dec3fe06c7bb0ac10ed8b49deeac3a05
src/util.coffee
src/util.coffee
# Utility functions --------------------------------------- extend = (dest, src) -> dest[name] = src[name] for name in src when src[name] and !dest[name] dest
# Utility functions --------------------------------------- extend = (dest, src) -> dest[key] = value for key, value of src when !dest[key] dest
Fix bug (with my understanding of CoffeeScript)
Fix bug (with my understanding of CoffeeScript)
CoffeeScript
bsd-3-clause
myna/myna-js
9ca3081ce85647a0d3b3cc529a58dd8fd863fbaa
plugins/email/index.coffee
plugins/email/index.coffee
NotificationPlugin = require "../../notification-plugin" class Email extends NotificationPlugin SIDEKIQ_WORKER = "ErrorEmailWorker" SIDEKIQ_QUEUE = "error_emails" @receiveEvent: (config, event, callback) -> sidekiq = config.sidekiq delete config.sidekiq sidekiq.enqueue SIDEKIQ_WORKER, [event.trigge...
NotificationPlugin = require "../../notification-plugin" class Email extends NotificationPlugin SIDEKIQ_WORKER = "ErrorEmailWorker" SIDEKIQ_QUEUE = "error_emails" @receiveEvent: (config, event, callback) -> sidekiq = config.sidekiq delete config.sidekiq sidekiq.enqueue SIDEKIQ_WORKER, [event.trigge...
Send entire payload to Sidekiq
Send entire payload to Sidekiq
CoffeeScript
mit
sharesight/bugsnag-notification-plugins,cagedata/bugsnag-notification-plugins,6wunderkinder/bugsnag-notification-plugins,indirect/bugsnag-notification-plugins,korealert/bugsnag-notification-plugins,jacobmarshall/bugsnag-notification-plugins,korealert/bugsnag-notification-plugins,kstream001/bugsnag-notification-plugins,...
1811fd18d0554bef905872fdf3c91220de8237b0
app/pages/lab/science-case.cjsx
app/pages/lab/science-case.cjsx
React = require 'react' AutoSave = require '../../components/auto-save' handleInputChange = require '../../lib/handle-input-change' module.exports = React.createClass displayName: 'EditProjectScienceCase' getDefaultProps: -> project: {} render: -> <div> <p className="form-help">This page is for y...
React = require 'react' AutoSave = require '../../components/auto-save' handleInputChange = require '../../lib/handle-input-change' module.exports = React.createClass displayName: 'EditProjectScienceCase' getDefaultProps: -> project: {} render: -> <div> <p className="form-help">This page is for y...
Update science page help text
Update science page help text
CoffeeScript
apache-2.0
alexbfree/Panoptes-Front-End,edpaget/Panoptes-Front-End,fmnhExhibits/Panoptes-Front-End,zooniverse/Panoptes-Front-End,amyrebecca/Panoptes-Front-End,edpaget/Panoptes-Front-End,alexbfree/Panoptes-Front-End,jelliotartz/Panoptes-Front-End,amyrebecca/Panoptes-Front-End,CKrawczyk/Panoptes-Front-End,alexbfree/Panoptes-Front-E...
fb659301965d99291c40b7531f0460e005b87ead
app/assets/javascripts/sprangular/directives/checkoutButton.coffee
app/assets/javascripts/sprangular/directives/checkoutButton.coffee
'use strict' Sprangular.directive 'checkoutButton', -> restrict: 'E' scope: user: '=' templateUrl: 'directives/checkout_button.html' controller: ($scope, $location, Cart, Checkout) -> $scope.allowOneClick = false $scope.processing = false $scope.$watch 'user', (user) -> $scope.allowOneCl...
'use strict' Sprangular.directive 'checkoutButton', -> restrict: 'E' scope: user: '=' templateUrl: 'directives/checkout_button.html' controller: ($scope, $location, Cart, Checkout) -> $scope.processing = false $scope.checkout = -> $scope.processing = true $location.path("/checkout")
Refactor checkout button to remove one-click-logic (checkout ctrl already doest it)
Refactor checkout button to remove one-click-logic (checkout ctrl already doest it)
CoffeeScript
mit
sprangular/sprangular,sprangular/sprangular,sprangular/sprangular
5a61efbbc23a5382cfd009deea8f9a6147afd61f
js/ab_test_definitions.coffee
js/ab_test_definitions.coffee
# 1. Don't define a test with null as one of the options # 2. If you change a test's options, you must also change the test's name # # You can add overrides, which will set the option if override_p returns true. exports = this exports.ab_test_definitions = options: quick_setup_or_trial: ["14-day free trial.", "...
# 1. Don't define a test with null as one of the options # 2. If you change a test's options, you must also change the test's name # # You can add overrides, which will set the option if override_p returns true. exports = this exports.ab_test_definitions = options: github_warning_modal: [true, false] home_r...
Remove quick-test-or-trial, it's not used.
Remove quick-test-or-trial, it's not used.
CoffeeScript
epl-1.0
prathamesh-sonpatki/frontend,RayRutjes/frontend,circleci/frontend,prathamesh-sonpatki/frontend,RayRutjes/frontend,circleci/frontend,circleci/frontend
2bc74be767bdc8c6b0a44f12147dc4460980f6b6
Gruntfile.coffee
Gruntfile.coffee
module.exports = (grunt) -> grunt.initConfig clean: package: ['lib'] coffee: options: bare: true files: expand: true cwd: 'src' src: ['**/*.coffee'] dest: 'lib' ext: '.js' mochacli: options: compilers: ['coffee:coffee-script/register'] files: ['test/brave-mouse'] grun...
module.exports = (grunt) -> grunt.initConfig clean: package: ['lib'] coffee: options: bare: true files: expand: true cwd: 'src' src: ['**/*.coffee'] dest: 'lib' ext: '.js' mochacli: options: compilers: ['coffee:coffee-script/register'] files: ['test/brave-mouse'] grun...
Add Grunt task alias test
Add Grunt task alias test
CoffeeScript
bsd-2-clause
SonicHedgehog/brave-mouse
bef1fec6fcb7686aa8f0fe5af906fbfcfbcbd9e6
workers/social/lib/social/traits/filterable.coffee
workers/social/lib/social/traits/filterable.coffee
module.exports = class Filterable {secure, ObjectId} = require 'bongo' {permit} = require '../models/group/permissionset' @findSuggestions = ()-> throw new Error "Filterable must implement static method findSuggestions!" @byRelevance = (client, seed, options, callback)-> [callback, options] = [options...
module.exports = class Filterable {secure, ObjectId} = require 'bongo' {permit} = require '../models/group/permissionset' @findSuggestions = ()-> throw new Error "Filterable must implement static method findSuggestions!" @byRelevance = (client, seed, options, callback)-> [callback, options] = [options...
Make sure there are suggestions
Filterable: Make sure there are suggestions
CoffeeScript
agpl-3.0
acbodine/koding,cihangir/koding,gokmen/koding,kwagdy/koding-1,koding/koding,rjeczalik/koding,alex-ionochkin/koding,acbodine/koding,jack89129/koding,sinan/koding,sinan/koding,drewsetski/koding,gokmen/koding,gokmen/koding,drewsetski/koding,mertaytore/koding,sinan/koding,alex-ionochkin/koding,koding/koding,szkl/koding,dre...
2e2268b34e2d6c72ac590ce9252d28d4e765f956
bin/layer-template.coffee
bin/layer-template.coffee
#! /usr/bin/env coffee args = require('../src/args').camelized 'template' templates = require '../src/templates' templates.show args.template
#! /usr/bin/env coffee args = require '../src/args' templates = require '../src/templates' args.withDefaultOptions('template') .option 'show', alias: 's' describe: 'Print the raw template jade and data to the console' type: 'boolean' .option 'new', alias: 'n' describe: 'C...
Add (unimplemented) options to template command
Add (unimplemented) options to template command
CoffeeScript
mit
dp28/layer,dp28/layer
e07972711ed9e9404d4e6051c1ad23275a6d6645
lib/assets/javascripts/cable/connection.coffee
lib/assets/javascripts/cable/connection.coffee
# Encapsulate the cable connection held by the consumer. This is an internal class not intended for direct user manipulation. class Cable.Connection constructor: (@consumer) -> @open() send: (data) -> if @isOpen() @webSocket.send(JSON.stringify(data)) true else false open: -> i...
# Encapsulate the cable connection held by the consumer. This is an internal class not intended for direct user manipulation. class Cable.Connection constructor: (@consumer) -> @open() send: (data) -> if @isOpen() @webSocket.send(JSON.stringify(data)) true else false open: => i...
Improve guard against opening multiple web sockets
Improve guard against opening multiple web sockets
CoffeeScript
mit
printercu/rails,rails/rails,untidy-hair/rails,joonyou/rails,bolek/rails,yasslab/railsguides.jp,kmayer/rails,ngpestelos/rails,prathamesh-sonpatki/rails,starknx/rails,ledestin/rails,kmcphillips/rails,yhirano55/rails,arjes/rails,assain/rails,amoody2108/TechForJustice,ttanimichi/rails,printercu/rails,samphilipd/rails,Stell...
8e452df49254e378f2473a9a0a2ebf77b63e451b
src/object-selection.coffee
src/object-selection.coffee
{Emitter, CompositeDisposable} = require 'event-kit' # The display for a selected object. i.e. the red or blue outline around the # selected object. # # It basically cops the underlying object's attributes (path definition, etc.) module.exports = class ObjectSelection constructor: (@svgDocument, @options={}) -> ...
{CompositeDisposable} = require 'event-kit' # The display for a selected object. i.e. the red or blue outline around the # selected object. # # It basically cops the underlying object's attributes (path definition, etc.) module.exports = class ObjectSelection constructor: (@svgDocument, @options={}) -> @options....
Remove event junk from the obj selection
Remove event junk from the obj selection
CoffeeScript
mit
benogle/curve,benogle/curve
c45241807ee6998dc5e02d85023f31f518b4b8d0
components/logged_in_navigation/components/channel_create/view.coffee
components/logged_in_navigation/components/channel_create/view.coffee
Promise = require 'bluebird-q' Backbone = require 'backbone' template = -> require('./index.jade') arguments... module.exports = class ChannelCreateView extends Backbone.View events: 'mouseover': 'focus' 'input .js-title': 'title' 'click .js-status': 'status' 'click .js-create': 'create' initializ...
Promise = require 'bluebird-q' Backbone = require 'backbone' template = -> require('./index.jade') arguments... module.exports = class ChannelCreateView extends Backbone.View events: 'mouseover': 'focus' 'keyup .js-title': 'onKeyup' 'input .js-title': 'title' 'click .js-status': 'status' 'click ....
Handle <enter> for creating channels
Handle <enter> for creating channels
CoffeeScript
mit
aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell
187e30016799e6d4ea01a12c01d6fbfe59baae57
src/window-bootstrap.coffee
src/window-bootstrap.coffee
# Like sands through the hourglass, so are the days of our lives. startTime = Date.now() require './window' Atom = require './atom' window.atom = Atom.loadOrCreate('editor') atom.initialize() atom.startEditorWindow() window.atom.loadTime = Date.now() - startTime console.log "Window load time: #{atom.getWindowLoadTime...
# Like sands through the hourglass, so are the days of our lives. startTime = Date.now() require './window' Atom = require './atom' window.atom = Atom.loadOrCreate('editor') atom.initialize() atom.startEditorWindow() window.atom.loadTime = Date.now() - startTime console.log "Window load time: #{atom.getWindowLoadTime...
Apply workaround for clearing of focus upon loading of window
Apply workaround for clearing of focus upon loading of window After the first window focus event, the focus is getting cleared back to document.body regardless of the prior active element. Refocusing workspace on a delay after the first window focus event works around the problem.
CoffeeScript
mit
Rodjana/atom,helber/atom,qskycolor/atom,lpommers/atom,kdheepak89/atom,matthewclendening/atom,ivoadf/atom,ykeisuke/atom,CraZySacX/atom,devmario/atom,rlugojr/atom,chengky/atom,champagnez/atom,andrewleverette/atom,originye/atom,folpindo/atom,dannyflax/atom,acontreras89/atom,sekcheong/atom,chengky/atom,Rychard/atom,russles...
e034afbfa918e0c6f1e74132d6c25efac339d466
client/Main/navigation/navigationlist.coffee
client/Main/navigation/navigationlist.coffee
class NavigationList extends KDListView constructor:-> super @viewWidth = 70 @on 'ItemWasAdded', (view)=> view.once 'viewAppended', => view._index ?= @getItemIndex view view.setX view._index * @viewWidth @_width = @viewWidth * @items.length lastChange = 0 v...
class NavigationList extends KDListView constructor:-> super @viewWidth = 70 @on 'ItemWasAdded', (view)=> view.once 'viewAppended', => view._index ?= @getItemIndex view view.setX view._index * @viewWidth @_width = @viewWidth * @items.length lastChange = 0 v...
Fix DND, simple is better
NavigationList: Fix DND, simple is better
CoffeeScript
agpl-3.0
usirin/koding,sinan/koding,kwagdy/koding-1,koding/koding,mertaytore/koding,szkl/koding,rjeczalik/koding,acbodine/koding,jack89129/koding,szkl/koding,gokmen/koding,acbodine/koding,usirin/koding,mertaytore/koding,andrewjcasal/koding,rjeczalik/koding,mertaytore/koding,acbodine/koding,alex-ionochkin/koding,gokmen/koding,ko...
2e42700217497d65d07ececd1413a9dc0bd05545
app/assets/javascripts/priority.js.coffee
app/assets/javascripts/priority.js.coffee
#= require lazysizes/plugins/rias/ls.rias #= require lazysizes/plugins/bgset/ls.bgset #= require lazysizes/plugins/unload/ls.unload #= require lazysizes
#= require lazysizes/plugins/rias/ls.rias #= require lazysizes/plugins/bgset/ls.bgset #= require lazysizes/plugins/respimg/ls.respimg # require lazysizes/plugins/custommedia/ls.custommedia #= require lazysizes
Revert "remove respimg plugin and add unload plugin"
Revert "remove respimg plugin and add unload plugin" This reverts commit f3fd6164a86c2ac25ee4156ee0adb232403d1856.
CoffeeScript
mit
JRF-tw/sunshine.jrf.org.tw,JRF-tw/sunshine.jrf.org.tw,JRF-tw/sunshine.jrf.org.tw
3b9855d641baf9bb88949b709c8be614cfa6a603
client/view/agenda.coffee
client/view/agenda.coffee
mid = new Date('02/25/14 00:00:00') Template.agenda.day1 = -> @items.filter((i) -> i.time < mid).sort((a, b) -> a.time >= b.time) Template.agenda.day2 = -> @items.filter((i) -> i.time > mid).sort((a, b) -> a.time >= b.time) Template.agenda.canSee = -> u = User.current() u and (u.admin() or u.moderator()) Tem...
mid = new Date('02/25/14 00:00:00') Template.agenda.day1 = -> @items.filter((i) -> i.time < mid).sort((a, b) -> a.time > b.time) Template.agenda.day2 = -> @items.filter((i) -> i.time > mid).sort((a, b) -> a.time > b.time) Template.agenda.canSee = -> u = User.current() u and (u.admin() or u.moderator()) Templ...
Change sort to use > and not >=
Change sort to use > and not >=
CoffeeScript
apache-2.0
rantav/reversim-summit-2015,rantav/reversim-summit-2014,rantav/reversim-summit-2015,rantav/reversim-summit-2015,rantav/reversim-summit-2014
650db222af7ff496522ff4f27b9ac502c8399f1f
app/assets/javascripts/sprangular/services/orders.coffee
app/assets/javascripts/sprangular/services/orders.coffee
Sprangular.service "Orders", ($http) -> service = find: (number) -> $http.get("/api/orders/#{number}") .then (response) -> order = new Sprangular.Order order.load(response.data) service
Sprangular.service "Orders", ($http) -> service = find: (number) -> $http.get("/api/orders/#{number}") .then (response) -> Sprangular.extend(response.data, Sprangular.Order) service
Refactor loading of order in Orders.find()
Refactor loading of order in Orders.find()
CoffeeScript
mit
sprangular/sprangular,sprangular/sprangular,sprangular/sprangular
8478c3bfed41dd43671c556b61edb98f8278e412
src/biskoto.coffee
src/biskoto.coffee
define -> class Biskoto encode = encodeURIComponent decode = decodeURIComponent @get: (name) -> if document.cookie cookies = decode(document.cookie).split(/;\s/g) for cookie in cookies if cookie.indexOf(name) is 0 try return JSON.parse(cookie.spl...
define -> class Biskoto encode = encodeURIComponent decode = decodeURIComponent @get: (name) -> if document.cookie cookies = document.cookie.split(/;\s/g) for cookie in cookies if cookie.indexOf(name) is 0 value = decode(cookie.split('=')[1]) try ...
Fix Biskoto to be compatible with PhantomJS's escaping of cookies
Fix Biskoto to be compatible with PhantomJS's escaping of cookies
CoffeeScript
mit
skroutz/analytics.js,skroutz/analytics.js,skroutz/analytics.js
6e1969b4904a149d6cbe73fda4a5c1b9a9a22025
components/ConvertStreetLight.coffee
components/ConvertStreetLight.coffee
noflo = require 'noflo' class ConvertStreetLight extends noflo.Component icon: 'filter' description: 'Convert street light RGB values so we can send them to PWM' constructor: -> @inPorts = new noflo.InPorts colors: datatype: 'array' description: 'Street light values' @outPorts = ne...
noflo = require 'noflo' class ConvertStreetLight extends noflo.Component icon: 'filter' description: 'Convert street light RGB values so we can send them to PWM' constructor: -> @inPorts = new noflo.InPorts colors: datatype: 'array' description: 'Street light values' @outPorts = ne...
Allow street lights to be not connected
Allow street lights to be not connected
CoffeeScript
mit
c-base/ingress-table,c-base/ingress-table,c-base/ingress-table,c-base/ingress-table
98a4e0a9af131625209db641ffe3257362ed5f47
atom/config.cson
atom/config.cson
"*": core: ignoredNames: [ ".DS_Store" ".git" "vendor" ] disabledPackages: [ "center-line" "branch-status" "open-in-atom" "terminal" ] themes: [ "atom-dark-ui" "solarized-dark-syntax" ] destroyEmptyPanes: false editor: fontSize: 1...
"*": core: ignoredNames: [ ".DS_Store" ".git" "vendor" ] disabledPackages: [ "center-line" "branch-status" "open-in-atom" "terminal" ] themes: [ "atom-dark-ui" "solarized-dark-syntax" ] destroyEmptyPanes: false editor: fontSize: 1...
Remove setting for obsolete autocomplete package
Remove setting for obsolete autocomplete package
CoffeeScript
mit
jasonrudolph/dotfiles,jasonrudolph/dotfiles,jasonrudolph/dotfiles,jasonrudolph/dotfiles
8d9b5236ce968d1b1e04babadf89ed9a3400f345
app/assets/javascripts/components/overview/inline_users.cjsx
app/assets/javascripts/components/overview/inline_users.cjsx
React = require 'react' EnrollButton = require '../students/enroll_button' InlineUsers = React.createClass( displayName: 'InlineUsers' render: -> key = @props.title + '_' + @props.role last_user_index = @props.users.length - 1 user_list = @props.users.map (user, index) -> link = ...
React = require 'react' EnrollButton = require '../students/enroll_button' InlineUsers = React.createClass( displayName: 'InlineUsers' render: -> key = @props.title + '_' + @props.role last_user_index = @props.users.length - 1 user_list = @props.users.map (user, index) -> link = ...
Fix warnings caused by invalid nesting of p elems
Fix warnings caused by invalid nesting of p elems
CoffeeScript
mit
alpha721/WikiEduDashboard,Wowu/WikiEduDashboard,Wowu/WikiEduDashboard,WikiEducationFoundation/WikiEduDashboard,WikiEducationFoundation/WikiEduDashboard,alpha721/WikiEduDashboard,KarmaHater/WikiEduDashboard,WikiEducationFoundation/WikiEduDashboard,majakomel/WikiEduDashboard,majakomel/WikiEduDashboard,sejalkhatri/WikiEdu...
685505f7bca0ad35aaf71c6cc016733782f58915
src/scripts/Syntho.coffee
src/scripts/Syntho.coffee
# # Syntho - A Web based Synthesizer # by Michael Marner <michael@20papercups.net> # audioContext = new (window.AudioContext || window.webkitAudioContext)(); vco1 = audioContext.createOscillator() vco1.type = 'square' vco1.frequency.value = 440 vco1.start() gate = audioContext.createGain() gate.gain.value = 0 vco1....
# # Syntho - A Web based Synthesizer # by Michael Marner <michael@20papercups.net> # audioContext = new (window.AudioContext || window.webkitAudioContext)(); vco1 = audioContext.createOscillator() vco1.type = 'square' vco1.frequency.value = 440 vco1.start() gate = audioContext.createGain() gate.gain.value = 0 vco1....
Fix portamento by using setValueAtTime instead of just changing the value.
Fix portamento by using setValueAtTime instead of just changing the value.
CoffeeScript
mit
MichaelMarner/Syntho,MichaelMarner/Syntho
d09e4eaa29375b0c4dd752e14d56675426e55b0b
scripts/configs/github.coffee
scripts/configs/github.coffee
define [], () -> defaultRepo: repoUser: 'oerpub' repoName: 'textbook-demo' branch: 'master'
define [], () -> defaultRepo: repoUser: 'oerpub' repoName: 'textbook-demo' branch: ''
Set the branch to '', that makes it use the default.
Set the branch to '', that makes it use the default. It also means the repo in the url does not by default contain /branch/master.
CoffeeScript
agpl-3.0
oerpub/bookish,oerpub/bookish,oerpub/github-bookeditor,oerpub/github-bookeditor,oerpub/github-bookeditor
c70af5615c0618fd25873ff2d3363247918aee6c
app/views/dialog.coffee
app/views/dialog.coffee
BaseView = require 'views/base_view' class Dialog extends BaseView className: 'dialog' tag: 'div' dialogTemplate: require './templates/dialog' initialize: (options) -> @parent = options.parent close: => @remove() confirm: (e) => unless e.type is 'keypress' and e.which isnt 13 @confir...
BaseView = require 'views/base_view' class Dialog extends BaseView className: 'dialog' tag: 'div' dialogTemplate: require './templates/dialog' initialize: (options) -> @parent = options.parent close: => @remove() confirm: (e) => unless e.type is 'keypress' and e.which isnt 13 e.preve...
Fix param posting in chrome
Fix param posting in chrome
CoffeeScript
apache-2.0
zooniverse/Ubret-Dashboard
4112c3cc75ac3dc4565c8659cad23df4b2746db9
app/assets/javascripts/darkswarm/darkswarm.js.coffee
app/assets/javascripts/darkswarm/darkswarm.js.coffee
window.Darkswarm = angular.module("Darkswarm", ["ngResource", 'mm.foundation', 'LocalStorageModule', 'infinite-scroll', 'angular-flash.service', 'templates', 'ngSanitize', 'ngAnimate', 'google-maps', 'duScroll', 'angularFileUpload', 'angularSlideables' ]).config ($httpProvider, $tooltipProvider,...
window.Darkswarm = angular.module("Darkswarm", ["ngResource", 'mm.foundation', 'LocalStorageModule', 'infinite-scroll', 'angular-flash.service', 'templates', 'ngSanitize', 'ngAnimate', 'google-maps', 'duScroll', 'angularFileUpload', 'angularSlideables' ]).config ($httpProvider, $tooltipProvider,...
Set auth token for all JS HTTP requests
Set auth token for all JS HTTP requests
CoffeeScript
agpl-3.0
oeoeaio/openfoodnetwork,Matt-Yorkley/openfoodnetwork,Matt-Yorkley/openfoodnetwork,openfoodfoundation/openfoodnetwork,openfoodfoundation/openfoodnetwork,KateDavis/openfoodnetwork,mkllnk/openfoodnetwork,openfoodfoundation/openfoodnetwork,mkllnk/openfoodnetwork,KateDavis/openfoodnetwork,oeoeaio/openfoodnetwork,Matt-Yorkle...
30bcd63564e2f6f7aa7c829678e9fc078646c31c
views/outer/about/_team.coffee
views/outer/about/_team.coffee
root = exports ? this root.team = paul: name: "Paul Bigger" role: "Founder" photo: "paul.jpg" github: "pbiggar" email: "paul@circleci.com" bio: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam at eros non dui sollicitudin mattis. Pellentesque habitant morbi tristique senectus e...
root = exports ? this root.team = paul: name: "Paul Bigger" role: "Founder" github: "pbiggar" email: "paul@circleci.com" bio: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam at eros non dui sollicitudin mattis. Pellentesque habitant morbi tristique senectus et netus et malesuada f...
Add Allen's information to team
Add Allen's information to team
CoffeeScript
epl-1.0
circleci/frontend,circleci/frontend,RayRutjes/frontend,RayRutjes/frontend,prathamesh-sonpatki/frontend,prathamesh-sonpatki/frontend,circleci/frontend
d28d1f9b6788f469544277959ee7c5aaded0a6da
core/app/backbone/views/channels/add_channel_to_channels_button_view.coffee
core/app/backbone/views/channels/add_channel_to_channels_button_view.coffee
#= require ./add_channel_to_channels_modal_view class window.AddChannelToChannelsButtonView extends Backbone.Marionette.Layout template: 'channels/add_channel_to_channels_button' events: "click .js-add-to-channel-button": "openAddToChannelModal" initialize: -> @collection = @model.getOwnContainingChann...
#= require ./add_channel_to_channels_modal_view class window.AddChannelToChannelsButtonView extends Backbone.Marionette.Layout template: 'channels/add_channel_to_channels_button' events: "click .js-add-to-channel-button": "openAddToChannelModal" initialize: -> @collection = @model.getOwnContainingChann...
Use suggested_topics passed as parameter, and fall back to collection with the single model
Use suggested_topics passed as parameter, and fall back to collection with the single model
CoffeeScript
mit
Factlink/factlink-core,daukantas/factlink-core,daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core,daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core
4fe02405ae858e4155ef46258a20d1fcf9c2f418
js/libs/github.coffee
js/libs/github.coffee
checkOuterPages = (url) => outerPages = ["docs", "about", "privacy", "pricing"] for page in outerPages if (url.match "^/#{page}.*") return "/" return url CI.github = # we encode each parameter separately (one of them twice!) to get the right format authUrl: (scope=["user:email", "repo"]) => de...
checkOuterPages = (url) => outerPages = ["docs", "about", "privacy", "pricing", "integrations", "features"] for page in outerPages if (url.match "^/#{page}.*") return "/" return url CI.github = # we encode each parameter separately (one of them twice!) to get the right format authUrl: (scope=["use...
Update 'outerPages' so that features/integrations pages don't redirect to themselves
Update 'outerPages' so that features/integrations pages don't redirect to themselves
CoffeeScript
epl-1.0
circleci/frontend,RayRutjes/frontend,prathamesh-sonpatki/frontend,prathamesh-sonpatki/frontend,RayRutjes/frontend,circleci/frontend,circleci/frontend
ce547a97010714337c5d460efe1d2b4a1913bba1
app/assets/javascripts/util/url.js.coffee
app/assets/javascripts/util/url.js.coffee
this.edsc.util.url = do(window, document, History, extend = jQuery.extend, param = jQuery.param) -> pushPath = (path, title=document.title, data=null) -> History.pushState(data, title, path + window.location.search) ...
this.edsc.util.url = do(window, document, History, extend = jQuery.extend, param = jQuery.param) -> cleanPath = -> # Remove everything up to the third slash History.getState().cleanUrl.replace(/^[^\/]*\/\/[^\/]*/,...
Fix landing page behavior when transitioning using the enter key
EDSC-149: Fix landing page behavior when transitioning using the enter key
CoffeeScript
apache-2.0
bilts/earthdata-search,bilts/earthdata-search,mightynimble/earthdata-search,bilts/earthdata-search,mightynimble/earthdata-search,mightynimble/earthdata-search,mightynimble/earthdata-search,bilts/earthdata-search
88f4eb3f5a5026beb5490de71aa9197472268adf
src/coffee/cilantro/utils.coffee
src/coffee/cilantro/utils.coffee
define [ 'jquery' './utils/numbers' './utils/url' './utils/version' ], ($, mods...) -> # Convenience method for getting a value using the dot-notion for # accessing nested structures. getDotProp = (obj, key) -> toks = key.split('.') for tok in toks if not (obj = ...
define [ 'jquery' './utils/numbers' './utils/url' './utils/version' ], ($, mods...) -> # Convenience method for getting a value using the dot-notion for # accessing nested structures. getDotProp = (obj, key) -> toks = key.split('.') for tok in toks if not (obj = ...
Add pprint utility function for JSON-based structures
Add pprint utility function for JSON-based structures
CoffeeScript
bsd-2-clause
chop-dbhi/cilantro,chop-dbhi/cilantro,chop-dbhi/cilantro
f9e2cb7e7363f0ad259e31e71b166027b39e57df
src/utils.coffee
src/utils.coffee
util = require 'util' exports.is = fun: util.isFunction str: util.isString arr: util.isArray obj: util.isObject exports.normalize = (params, options, fn) -> if util.isFunction params fn = params params = null options = null else if util.isFunction options fn = options options = null ...
fun = (f) -> typeof f is 'function' str = (s) -> typeof s is 'string' arr = (a) -> a instanceof Array obj = (o) -> o instanceof Object and not fun(o) and not arr(o) exports.is = fun: fun str: str arr: arr obj: obj exports.normalize = (params, options, fn) -> if fun params fn = params params = null ...
Revert "Replace validation to node built-in functions"
Revert "Replace validation to node built-in functions" This reverts commit 9e4ff9f9d1dfa10098ec9fdbcd44420e2af64332.
CoffeeScript
mit
meritt/easymongo
d8f7c70c5d6544fd819e2dc120b8603ec80c1e49
apps/show/components/related_shows/index.coffee
apps/show/components/related_shows/index.coffee
_ = require 'underscore' { Cities, FeaturedCities } = require 'places' PartnerShows = require '../../../../collections/partner_shows.coffee' RelatedShowsView = require './view.coffee' module.exports = (type, show) -> el = $('.js-related-shows') city = _.findWhere(Cities, name: show.formatCity()) criteria = ...
_ = require 'underscore' { Cities, FeaturedCities } = require 'places' PartnerShows = require '../../../../collections/partner_shows.coffee' RelatedShowsView = require './view.coffee' module.exports = (type, show) -> el = $('.js-related-shows') city = _.findWhere(Cities, name: show.formatCity()) criteria = ...
Include past shows in related shows on gallery pages
Include past shows in related shows on gallery pages
CoffeeScript
mit
izakp/force,kanaabe/force,oxaudo/force,yuki24/force,erikdstock/force,cavvia/force-1,xtina-starr/force,anandaroop/force,dblock/force,joeyAghion/force,yuki24/force,damassi/force,artsy/force-public,cavvia/force-1,yuki24/force,joeyAghion/force,mzikherman/force,mzikherman/force,yuki24/force,kanaabe/force,erikdstock/force,db...
a348026ff3975541e2144a6aa6840fd8571324eb
lib/tag-reader.coffee
lib/tag-reader.coffee
{Task} = require 'atom' ctags = require 'ctags' async = require 'async' getTagsFile = require "./get-tags-file" handlerPath = require.resolve './load-tags-handler' module.exports = find: (editor, callback) -> symbol = editor.getSelectedText() unless symbol cursor = editor.getLastCursor() scopes...
{Task} = require 'atom' ctags = require 'ctags' async = require 'async' getTagsFile = require "./get-tags-file" handlerPath = require.resolve './load-tags-handler' module.exports = find: (editor, callback) -> symbol = editor.getSelectedText() unless symbol cursor = editor.getLastCursor() scopes...
Fix go-to-declaration for various cursor position within Ruby identifier
Fix go-to-declaration for various cursor position within Ruby identifier Even though technically the Ruby "word" can only start with a letter or underscore, in practice it's not a good idea to define such regexp here, because due to Atom's implementation of `editor.scanInBufferRange`, the "word" under cursor will be l...
CoffeeScript
mit
kainwinterheart/symbols-view,atom/symbols-view
22b7d9666d8775b5e4db7ef0e289d72378ce2899
app/assets/javascripts/bsat/sidebar.js.coffee
app/assets/javascripts/bsat/sidebar.js.coffee
window.bsat.utils.readyOrPageChange -> # # Setup sidebar open/close state when the user # clicks on sidebar toggle button. The sidebar # gets closed on small devices using media queries, # so we need to take this into account. # $('#sidebar-toggle-button').click (e) -> e.preventDefault() if $(wind...
window.bsat.utils.readyOrPageChange -> # # Setup sidebar open/close state when the user # clicks on sidebar toggle button. The sidebar # gets closed on small devices using media queries, # so we need to take this into account. # $('#sidebar-toggle-button').click (e) -> e.preventDefault() if $(wind...
Enable click support on mobile devices.
Enable click support on mobile devices.
CoffeeScript
mit
metaminded/bsat,metaminded/bsat
ee01430c52fa6cdc576a403077a3c7b8196e88c4
roles/developer-atom/templates/atom/init.coffee
roles/developer-atom/templates/atom/init.coffee
# Your init script # # Atom will evaluate this file each time a new window is opened. It is run # after packages are loaded/activated and after the previous editor state # has been restored. # # An example hack to log to the console when each text editor is saved. # # atom.workspace.observeTextEditors (editor) -> # e...
# Your init script # # Atom will evaluate this file each time a new window is opened. It is run # after packages are loaded/activated and after the previous editor state # has been restored. # # An example hack to log to the console when each text editor is saved. # # atom.workspace.observeTextEditors (editor) -> # e...
Remove deprecated swig file type
Remove deprecated swig file type
CoffeeScript
mit
luishdez/osx-playbook,ansible-macos/macos-playbook,ansible-macos/macos-playbook
2d90c96aa205d3ffc5fdcda5f270463c22ae5cd5
command-register.coffee
command-register.coffee
commander = require 'commander' meshblu = require 'meshblu' class KeygenCommand parseOptions: => commander .parse process.argv run: => @parseOptions() @config = {server: 'meshblu.octoblu.com', port: 80, uuid: 'wrong'} @conn = meshblu.createConnection @config @conn.on 'notReady', @onRe...
commander = require 'commander' _ = require 'lodash' meshblu = require 'meshblu' url = require 'url' DEFAULT_HOST = 'meshblu.octoblu.com' DEFAULT_PORT = 80 class KeygenCommand parseOptions: => commander .option '-s, --server <host[:port]>', 'Meshblu host' .parse process.argv parse...
Add optional server and port
Add optional server and port
CoffeeScript
mit
octoblu/meshblu-util,octoblu/meshblu-util
1e3ce6ce3efe67adf934eb13d7342d46cce84ea1
lib/main.coffee
lib/main.coffee
GitHubFile = require './github-file' module.exports = config: includeLineNumbersInUrls: default: true type: 'boolean' activate: -> atom.commands.add 'atom-pane', 'open-on-github:file': -> if itemPath = getActivePath() GitHubFile.fromPath(itemPath).open(getSelectedRange...
GitHubFile = require './github-file' module.exports = config: includeLineNumbersInUrls: default: true type: 'boolean' description: 'Include the line range selected in the editor when opening or copying URLs to the clipboard. When opened in the browser, the GitHub page will automatically scroll...
Add description for config setting
Add description for config setting
CoffeeScript
mit
atom/open-on-github
b5e447a21e634d7da2e14259884d2611e3bdb8d5
lib/utilities.coffee
lib/utilities.coffee
fs = require('fs') isFile= (name,foundCB)-> try fs.stat name, (err,stats)-> foundCB(!err && stats.isFile()) isFileSync= (name)-> try fs.statSync(name).isFile() catch e throw e unless e.code == 'ENOENT' false moduleExtensions= ['.js','.coffee','.json'] hasAnExtension= (name,extensions,fou...
fs = require('fs') isFile= (name,foundCB)-> fs.stat name, (err,stats)-> foundCB(!err && stats.isFile()) isFileSync= (name)-> try fs.statSync(name).isFile() catch e throw e unless e.code == 'ENOENT' false moduleExtensions= ['.js','.coffee','.json'] hasAnExtension= (name,extensions,foundCB)-> ...
Remove try without a catch
Remove try without a catch
CoffeeScript
mit
randymized/malifi
9883ba66d731b72a0d010e3f931501bdba41c3c1
src/scripts/loader.coffee
src/scripts/loader.coffee
define (require) -> $ = require('jquery') Backbone = require('backbone') router = require('cs!router') analytics = require('cs!helpers/handlers/analytics') # Setup Analytics Handler # The root URI prefixed on all non-external AJAX and Backbone URIs root = '/' init = (options = {}) -> # Append /test ...
define (require) -> $ = require('jquery') Backbone = require('backbone') router = require('cs!router') analytics = require('cs!helpers/handlers/analytics') # Setup Analytics Handler # The root URI prefixed on all non-external AJAX and Backbone URIs root = '/' init = (options = {}) -> # Append /test ...
Include query strings in backbone history
Include query strings in backbone history
CoffeeScript
agpl-3.0
dak/webview,katalysteducation/webview,katalysteducation/webview,dak/webview,katalysteducation/webview,carolinelane10/webview,Connexions/webview,Connexions/webview,katalysteducation/webview,Connexions/webview,dak/webview,Connexions/webview
acc0a2e4ba6fd5a378956335b2bc04a1606aaaef
lib/image.coffee
lib/image.coffee
### PDFImage - embeds images in PDF documents By Devon Govett ### fs = require 'fs' Data = require './data' JPEG = require './image/jpeg' PNG = require './image/png' class PDFImage @open: (src, label) -> if Buffer.isBuffer(src) data = src else if src[0..4] is 'data:' and src.indexOf(';base64,') ...
### PDFImage - embeds images in PDF documents By Devon Govett ### fs = require 'fs' Data = require './data' JPEG = require './image/jpeg' PNG = require './image/png' class PDFImage @open: (src, label) -> if Buffer.isBuffer(src) data = src else if match = /^data:.+;base64,(.*)$/.exec(src) ...
Use a regex to capture the base64 encoded string
Use a regex to capture the base64 encoded string
CoffeeScript
mit
ixiom/pdfkit,ixiom/pdfkit,greyhwndz/pdfkit,mauricionr/pdfkit,devongovett/pdfkit,datphan/pdfkit,moyogo/pdfkit,pomahtuk/pdfkit,ashelley/pdfkit,gabrieldelatorreicg/pdfkit,jkol/pdfkit,mauricionr/pdfkit,jordonbiondo/pdfkit,gradecam/pdfkit,billcowan/pdfkit,backspace/pdfkit,joadr/pdfkit,jkol/pdfkit,billcowan/pdfkit,gabrieldel...
331bea68bf03b965678d257e097a541586c50076
client/landing/app/Applications/Chat.kdapplication/Views/conversationlistitemtitle.coffee
client/landing/app/Applications/Chat.kdapplication/Views/conversationlistitemtitle.coffee
class ChatConversationListItemTitle extends JView constructor:(options = {}, data)-> options.cssClass = 'chat-item' # data = [nick for nick in data when nick isnt KD.nick()].first super viewAppended:-> invitees = @getData() @accounts = [] for invitee in invitees KD.remote.cacheable...
class ChatConversationListItemTitle extends JView constructor:(options = {}, data)-> options.cssClass = 'chat-item' # data = [nick for nick in data when nick isnt KD.nick()].first super viewAppended:-> invitees = @getData() @accounts = [] for invitee in invitees KD.remote.cacheable...
Check accounts length since its the data
Check accounts length since its the data
CoffeeScript
agpl-3.0
cihangir/koding,andrewjcasal/koding,alex-ionochkin/koding,rjeczalik/koding,acbodine/koding,alex-ionochkin/koding,usirin/koding,gokmen/koding,szkl/koding,mertaytore/koding,gokmen/koding,mertaytore/koding,cihangir/koding,szkl/koding,koding/koding,jack89129/koding,koding/koding,mertaytore/koding,sinan/koding,alex-ionochki...
624c8825c105e16a9671a410466a3b7cdab1039d
lib/Watchers/Template.coffee
lib/Watchers/Template.coffee
fs = require 'graceful-fs' AssetWatcher = require './Asset' class TemplateWatcher extends AssetWatcher constructor: (@config)-> super() pattern: -> super ["**/template.jade"] getPaths: -> ['/templates.js', "/templates-#{@hash()}.js"] getShortPath: (path)-> @pathpart(path) .sub...
fs = require 'graceful-fs' AssetWatcher = require './Asset' class TemplateWatcher extends AssetWatcher constructor: (@config)-> super() pattern: -> super ["**/template.jade"] getPaths: -> ['/templates.js', "/templates-#{@hash()}.js"] getShortPath: (path)-> @pathpart(path) .sub...
Fix for windows template paths.
Fix for windows template paths.
CoffeeScript
isc
DavidSouther/stassets,DavidSouther/stassets,RupertJS/stassets,RupertJS/stassets,RupertJS/stassets,DavidSouther/stassets
80fea416e75782cf219f5e067a83790dc1f7849d
app/assets/asset/pdfViewer.coffee
app/assets/asset/pdfViewer.coffee
'use strict' app.directive 'pdfViewer', [ () -> restrict: 'E' scope: asset: '=asset' link: ($scope, $elem) -> pdfElement = $($elem)[0] objectTag = document.createElement('object') objectTag.setAttribute('data', $scope.asset.downloadRoute(true)) pdfElement.appendChild(object...
'use strict' app.directive 'pdfViewer', [ () -> restrict: 'E' scope: asset: '=asset' link: ($scope, $elem) -> pdfElement = $($elem)[0] objectTag = document.createElement('object') objectTag.setAttribute('data', $scope.asset.downloadRoute(true)) objectTag.setAttribute('width...
Fix width on PDF viewer
Fix width on PDF viewer
CoffeeScript
agpl-3.0
databrary/databrary,databrary/databrary,databrary/databrary,databrary/databrary
76f360d72649ac92737ac1bd59d4d348c3108e16
site/lib/utils.coffee
site/lib/utils.coffee
moment = require('lib/moment') exports.isDev = (req) -> # We are on DEV when Host has string like # '/dev.' or '/staging.' or '.local' or '.dev' or 'localhost' found = req.headers.Host.search(/(\/dev\.|\/staging\.|\.local$|\.dev$|localhost)/) > -1 return found exports.prettyDate = (date) -> moment.utc(da...
moment = require('lib/moment') exports.isDev = (req) -> # We are on DEV when Host has string like # '/dev.' or '/staging.' or '.local' or '.dev' or 'localhost' re = /(\/dev\.|\/staging\.|\.local$|\.dev$|localhost)/ return re.test(req.headers.Host) exports.prettyDate = (date) -> moment.utc(date).local().f...
Change isDev util function to use re.test() instead of search()
Change isDev util function to use re.test() instead of search()
CoffeeScript
mit
markuso/kleks,markuso/kleks
9b32132117c8f9a2a33783c931f2da9051314dcf
src/bang.coffee
src/bang.coffee
program = require "commander" fs = require "fs" path = require "path" bang = process.env.HOME + "/.bang" data = {} if path.existsSync bang data = JSON.parse(fs.readFileSync bang) save = -> console.log "save called" fs.writeFileSync bang, JSON.stringify(data) get = (key) -> console.log data[key] if d...
program = require "commander" fs = require "fs" path = require "path" bang = process.env.HOME + "/.bang" data = {} if path.existsSync bang data = JSON.parse(fs.readFileSync bang) save = -> fs.writeFileSync bang, JSON.stringify(data) get = (key) -> console.log data[key] if data[key] set = (key, value)...
Remove debug message from save method.
Remove debug message from save method.
CoffeeScript
mit
jimmycuadra/bang
9a32c562e0b0522a31fe744ac32bf5ee8d30db3f
collections/user_interests.coffee
collections/user_interests.coffee
_ = require 'underscore' Backbone = require 'backbone' { API_URL } = require('sharify').data UserInterest = require '../models/user_interest.coffee' module.exports = class UserInterests extends Backbone.Collection model: UserInterest url: -> if (id = @collectorProfile?.id)? "#{API_URL}/api/v1/collector_...
_ = require 'underscore' Backbone = require 'backbone' { API_URL } = require('sharify').data UserInterest = require '../models/user_interest.coffee' module.exports = class UserInterests extends Backbone.Collection model: UserInterest interestType: 'Artist' # Should/will be configurable url: -> if @collecto...
Use updated endpoint and fix for legacy endpoint
Use updated endpoint and fix for legacy endpoint
CoffeeScript
mit
artsy/force,TribeMedia/force-public,damassi/force,erikdstock/force,kanaabe/force,erikdstock/force,artsy/force,dblock/force,oxaudo/force,kanaabe/force,dblock/force,TribeMedia/force-public,kanaabe/force,eessex/force,artsy/force,yuki24/force,anandaroop/force,dblock/force,mzikherman/force,oxaudo/force,joeyAghion/force,mzik...
979c369bbb73ec34329ee8cf8d5ae20047f5834a
app/assets/javascripts/components/users/base.js.coffee
app/assets/javascripts/components/users/base.js.coffee
window.UsersComponent = class UsersComponent @initialize: -> @addEventListeners() @addEventListeners: -> @userDetailsTooltip() @respondentsTable() #Enables search through users table enableSearch() @userDetailsTooltip: -> tooltipClass = '.information-tooltip' $(document).on('click', ...
window.UsersComponent = class UsersComponent @initialize: -> @addEventListeners() @addEventListeners: -> @userDetailsTooltip() @respondentsTable() #Enables search through users table enableSearch() @userDetailsTooltip: -> tooltipClass = '.information-tooltip' $(document).on('click', ...
Fix checkbox to slide correctly only when ticked
Fix checkbox to slide correctly only when ticked
CoffeeScript
bsd-3-clause
unepwcmc/ORS,unepwcmc/ORS,unepwcmc/ORS,unepwcmc/ORS,unepwcmc/ORS
93331a516ad18bcb878ce62c001e95dd9fbea14f
test/util/data-gen.coffee
test/util/data-gen.coffee
"use strict" ObjectID = require('mongodb').ObjectID Moniker = require('moniker') rand = (min, max) -> Math.floor (Math.random() * (max - min + 1) + min) lisence = [ "CC BY-NC-ND 3.0 NO" "CC BY-NC 3.0 NO" "CC BY-ND 3.0 NO" "CC BY 3.0 NO" ] provider = [ "DNT" "NRK" "TURAPP" ] tags = [ 'Sted' 'Hytte...
"use strict" ObjectID = require('mongodb').ObjectID Moniker = require('moniker') rand = (min, max) -> Math.floor (Math.random() * (max - min + 1) + min) lisence = [ "CC BY-NC-ND 3.0 NO" "CC BY-NC 3.0 NO" "CC BY-ND 3.0 NO" "CC BY 3.0 NO" ] provider = [ "DNT" "NRK" "TURAPP" ] statuses = [ "Offentlig"...
Add support for document status in data gen
Add support for document status in data gen
CoffeeScript
mit
Turbasen/Turbasen,Turistforeningen/Turbasen
42ed7ea5e34b501e8225dd5cd4f0e84dedc24b1e
core/app/backbone/collections/ndp_evidence_collection.coffee
core/app/backbone/collections/ndp_evidence_collection.coffee
class window.NDPEvidenceCollection extends Backbone.Collection initialize: (models, options) -> @on 'change', @sort, @ @fact = options.fact constructor: (models, options) -> super unless models and models.length > 0 @reset [ new OpinionatersEvidence {type: 'believe'}, collection: t...
class window.NDPEvidenceCollection extends Backbone.Collection initialize: (models, options) -> @on 'change', @sort, @ @fact = options.fact constructor: (models, options) -> super unless models and models.length > 0 @reset [ new OpinionatersEvidence {type: 'believe'}, collection: t...
Revert "Added url for NDPEvidenceCollection"
Revert "Added url for NDPEvidenceCollection" This reverts commit 4cbcb9b3947112bc980da95cc7078bbae0291882.
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
71793054d87e5d6abcfb336f0751a6a1f8b3b215
lib/tab-view.coffee
lib/tab-view.coffee
{$, View} = require 'atom' path = require 'path' module.exports = class TabView extends View @content: -> @li class: 'tab sortable', => @div class: 'title', outlet: 'title' @div class: 'close-icon' initialize: (@item, @pane) -> @item.on? 'title-changed', => @updateTitle() @updateTo...
{$, View} = require 'atom' _ = require 'underscore-plus' path = require 'path' module.exports = class TabView extends View @content: -> @li class: 'tab sortable', => @div class: 'title', outlet: 'title' @div class: 'close-icon' initialize: (@item, @pane) -> @item.on? 'title-changed', => ...
Use _.escape to escape tooltip titles
Use _.escape to escape tooltip titles
CoffeeScript
mit
atom/tabs,harai/tabs,pombredanne/tabs,acontreras89/tabs
5c53dc9b12ccb40aa87e81a1877b5511174a4458
roles/fedora_laptop/files/atom/config.cson
roles/fedora_laptop/files/atom/config.cson
"*": "activate-power-mode": autoToggle: false comboMode: enabled: false plugins: playAudio: true screenShake: true "autocomplete-plus": confirmCompletion: "enter" useCoreMovementCommands: false "autocomplete-python-jedi": fuzzyMatcher: false useSnippets: "required" ...
"*": "activate-power-mode": autoToggle: false comboMode: enabled: false plugins: playAudio: true screenShake: true "autocomplete-plus": confirmCompletion: "enter" useCoreMovementCommands: false "autocomplete-python-jedi": fuzzyMatcher: false useSnippets: "required" ...
Enable soft wrap in Atom for text files.
Enable soft wrap in Atom for text files. Markdown reference: https://discuss.atom.io/t/soft-wrap-support-but-only-for-markdown/46374/2
CoffeeScript
mit
ghyde/my-ansible-playbooks
a7d4fc22c7281e6e93c93fc1d37c9effb426c6e8
algo/binary-search.coffee
algo/binary-search.coffee
{ isListAscending } = require './is-list-ascending.coffee' _binarySearch = (sortedList, needle, start, end)-> return -1 if end < start mid = Math.floor (start + ((end - start) / 2)) return mid if sortedList[mid] is needle if sortedList[mid] > needle return _binarySearch sortedList, needle, start, mid...
{ isListAscending } = require './is-list-ascending.coffee' _binarySearch = (sortedList, needle)-> return -1 if sortedList.length is 0 mid = Math.floor (sortedList.length / 2) return mid if sortedList[mid] is needle if sortedList[mid] > needle return _binarySearch sortedList[0..mid - 1], needle else ...
Revert "Revert "CHECKPOINT re-implemented binarySearch using slices""
Revert "Revert "CHECKPOINT re-implemented binarySearch using slices"" This reverts commit 71ac993cfc9b521cbb2492d2ce31943d08bb84ab.
CoffeeScript
mit
iShafayet/algorithms-in-coffeescript
7d1a6093190f9ff554e1b46760135cdaa748e3ff
components/modalize/view.coffee
components/modalize/view.coffee
_ = require 'underscore' Backbone = require 'backbone' template = require './templates/index.coffee' Scrollbar = require '../scrollbar/index.coffee' module.exports = class Modalize extends Backbone.View className: 'modalize' defaults: dimensions: width: '400px' events: 'click .js-modalize-backdrop': 'maybe...
_ = require 'underscore' Backbone = require 'backbone' template = require './templates/index.coffee' Scrollbar = require '../scrollbar/index.coffee' module.exports = class Modalize extends Backbone.View className: 'modalize' defaults: dimensions: width: '400px' events: 'click .js-modalize-backdrop': 'maybe...
Support ESC key for closing modalize modals
Support ESC key for closing modalize modals
CoffeeScript
mit
artsy/force,artsy/force,kanaabe/force,yuki24/force,TribeMedia/force-public,erikdstock/force,izakp/force,eessex/force,damassi/force,artsy/force-public,joeyAghion/force,dblock/force,erikdstock/force,damassi/force,izakp/force,oxaudo/force,xtina-starr/force,kanaabe/force,anandaroop/force,eessex/force,izakp/force,eessex/for...
0688ddf083fb43edd71fca483fabf6a2eff053d2
exports/atom.coffee
exports/atom.coffee
{Point, Range} = require 'text-buffer' module.exports = _: require 'underscore-plus' BufferedNodeProcess: require '../src/buffered-node-process' BufferedProcess: require '../src/buffered-process' fs: require 'fs-plus' Git: require '../src/git' Point: Point Range: Range # The following classes can't be u...
{Point, Range} = require 'text-buffer' module.exports = BufferedNodeProcess: require '../src/buffered-node-process' BufferedProcess: require '../src/buffered-process' Git: require '../src/git' Point: Point Range: Range # The following classes can't be used from a Task handler and should therefore # only be ...
Remove _ and fs from exports
Remove _ and fs from exports
CoffeeScript
mit
ralphtheninja/atom,decaffeinate-examples/atom,bcoe/atom,nvoron23/atom,johnrizzo1/atom,hagb4rd/atom,Hasimir/atom,ezeoleaf/atom,vcarrera/atom,phord/atom,Jdesk/atom,charleswhchan/atom,dannyflax/atom,gisenberg/atom,codex8/atom,jlord/atom,ali/atom,Arcanemagus/atom,vinodpanicker/atom,mnquintana/atom,ironbox360/atom,kittens/a...
a197a6d3b0c75de92fb4e888d4b3b82f77877736
src/scripts/loader.coffee
src/scripts/loader.coffee
define (require) -> $ = require('jquery') Backbone = require('backbone') router = require('cs!router') analytics = require('cs!helpers/handlers/analytics') # Setup Analytics Handler # The root URI prefixed on all non-external AJAX and Backbone URIs root = '/' init = (options = {}) -> # Append /test ...
define (require) -> $ = require('jquery') Backbone = require('backbone') router = require('cs!router') analytics = require('cs!helpers/handlers/analytics') # Setup Analytics Handler # The root URI prefixed on all non-external AJAX and Backbone URIs root = '/' init = (options = {}) -> # Append /test ...
Include query strings in backbone history
Include query strings in backbone history
CoffeeScript
agpl-3.0
katalysteducation/webview,dak/webview,dak/webview,dak/webview,Connexions/webview,Connexions/webview,katalysteducation/webview,Connexions/webview,katalysteducation/webview,katalysteducation/webview,Connexions/webview,carolinelane10/webview
4fc91d05e0f59d56e1d7ac295e3c519b3dd9c664
app/assets/javascripts/stores/notification_store.coffee
app/assets/javascripts/stores/notification_store.coffee
# Requirements #---------------------------------------- McFly = require 'mcfly' Flux = new McFly() # Data #---------------------------------------- _notifications = [] # Private Methods #---------------------------------------- addNotification = (notification) -> _notifications.push(notification) Notificatio...
# Requirements #---------------------------------------- McFly = require 'mcfly' Flux = new McFly() # Data #---------------------------------------- _notifications = [] # Private Methods #---------------------------------------- addNotification = (notification) -> _notifications.push(notification) Notificatio...
Update notification store to handle notification action
Update notification store to handle notification action
CoffeeScript
mit
MusikAnimal/WikiEduDashboard,sejalkhatri/WikiEduDashboard,KarmaHater/WikiEduDashboard,alpha721/WikiEduDashboard,feelfreelinux/WikiEduDashboard,adamwight/WikiEduDashboard,MusikAnimal/WikiEduDashboard,MusikAnimal/WikiEduDashboard,alpha721/WikiEduDashboard,feelfreelinux/WikiEduDashboard,KarmaHater/WikiEduDashboard,majakom...
ff713f2cd29ad26424995fa31bb1c1e0b0a5e34e
config/social/jkn2-reddit.coffee
config/social/jkn2-reddit.coffee
configs = [] configs.push name: "Reddit Comments" comment: """ We select comments, but not responses. This avoids the need to "j" through endless lists of drivel. """ regexps: "^https?://[a-z]+\\.reddit\\.com/.*/comments/" selectors: [ "div#siteTable div.usertext-body" "div.commentarea > ...
configs = [] # configs.push # name: "Reddit Comments" # comment: # """ # We select comments, but not responses. This avoids the need to "j" through endless lists of drivel. # """ # regexps: "^https?://[a-z]+\\.reddit\\.com/.*/comments/" # selectors: [ # "div#siteTable div.usertext-body" # ...
Disable Reddit (using RES instead).
Disable Reddit (using RES instead).
CoffeeScript
mit
smblott-github/jk-navigator-too
a021704f37ef8c01a477f4f9460952f59d524886
packages/rocketchat-highlight/highlight.coffee
packages/rocketchat-highlight/highlight.coffee
### # Highlight is a named function that will highlight ``` messages # @param {Object} message - The message object ### class Highlight # If message starts with ```, replace it for text formatting constructor: (message) -> if _.trim message.html # Separate text in code blocks and non code blocks msgParts =...
### # Highlight is a named function that will highlight ``` messages # @param {Object} message - The message object ### class Highlight constructor: (message) -> if _.trim message.html # Count occurencies of ``` count = (message.html.match(/```/g) || []).length if count # Check if we need to add a...
Make the pre-formatted code regular expression a lot more permissive
Make the pre-formatted code regular expression a lot more permissive
CoffeeScript
mit
fatihwk/Rocket.Chat,pitamar/Rocket.Chat,pachox/Rocket.Chat,capensisma/Rocket.Chat,thebakeryio/Rocket.Chat,tntobias/Rocket.Chat,tntobias/Rocket.Chat,kkochubey1/Rocket.Chat,Gudii/Rocket.Chat,timkinnane/Rocket.Chat,fduraibi/Rocket.Chat,Flitterkill/Rocket.Chat,haosdent/Rocket.Chat,tzellman/Rocket.Chat,mitar/Rocket.Chat,soo...
ab4b426200c9dfde650e781f7fb883a294b4b2de
lib/command-palette-view.coffee
lib/command-palette-view.coffee
{$$} = require 'space-pen' SelectList = require 'select-list' $ = require 'jquery' _ = require 'underscore' module.exports = class CommandPaletteView extends SelectList @activate: -> new CommandPaletteView @viewClass: -> "#{super} command-palette overlay from-top" filterKey: 'eventDescription' keyBi...
{$$} = require 'space-pen' SelectList = require 'select-list' $ = require 'jquery' _ = require 'underscore' module.exports = class CommandPaletteView extends SelectList @activate: -> new CommandPaletteView @viewClass: -> "#{super} command-palette overlay from-top" filterKey: 'eventDescription' keyBi...
Update for the new theme
Update for the new theme
CoffeeScript
mit
atom/command-palette
0ea643f25c80f8b8eade56fa28ba4d0ede7c41ea
lib/assets/javascripts/services/entity_search.js.coffee
lib/assets/javascripts/services/entity_search.js.coffee
class EntitySearchService constructor: (@options = {}) -> @client = new Marbles.HTTP.Client(middleware: [Marbles.HTTP.Middleware.SerializeJSON]) # options: # - success: fn # - error: fn # - complete: fn search: (query, options = {}) => @client.get @options.api_root, { q: query }, options _.e...
class EntitySearchService constructor: (@options = {}) -> @client = new Marbles.HTTP.Client(middleware: [Marbles.HTTP.Middleware.SerializeJSON]) # callback can either be a function or an object: # - success: fn # - error: fn # - complete: fn search: (query, callback) => @client.get(url: @opti...
Update entity search service to use latest Marbles.HTTP.Client
Update entity search service to use latest Marbles.HTTP.Client
CoffeeScript
bsd-3-clause
tent/tent-status,tent/tent-status
04df516d1d47171ce10d7b840af40f5fa50dc4d1
spec/skr/models/SoLineSpec.coffee
spec/skr/models/SoLineSpec.coffee
describe "Skr.Models.SoLine", -> it "can be instantiated", -> model = new Skr.Models.SoLine() expect(model).toEqual(jasmine.any(Skr.Models.SoLine))
describe "Skr.Models.SoLine", -> it "can sets properties from the uom", -> model = new Skr.Models.SoLine() model.uom = new Skr.Models.Uom(size: 10, code: 'CS') expect(model.uom_size).toEqual(10) expect(model.uom_code).toEqual('CS')
Test that UOM setting propogates
Test that UOM setting propogates
CoffeeScript
agpl-3.0
argosity/stockor,argosity/stockor,argosity/stockor,argosity/stockor
49a7d14eb7311d11bbce277034b092d0d3fa4bcc
lib/content._coffee
lib/content._coffee
config = require '../config' crypto = require 'crypto' redis = require 'redis' # Redis client = redis.createClient() # Keys HASH_ALGORITHM = 'sha256' HASH_ENCODING = 'hex' NEXT_ID_KEY = 'content:next.id' getIdKey = (id) -> "content:id:#{id}" getURLKey = (url) -> hash = crypto.createHash HASH_ALGORITHM hash....
config = require '../config' crypto = require 'crypto' redis = require 'redis' # Redis client = redis.createClient() # Keys HASH_ALGORITHM = 'sha256' HASH_ENCODING = 'hex' NEXT_ID_KEY = 'content:next.id' getIdKey = (id) -> "content:id:#{id}" getURLKey = (url) -> hash = crypto.createHash HASH_ALGORITHM hash....
Add `self` URL to `Content`
Add `self` URL to `Content`
CoffeeScript
mit
zoomhub/zoomhub,zoomhub/zoomhub,zoomhub/zoomhub,zoomhub/zoomhub
2677e887e931cf34732d0ce5fb7fd08442574713
app/scripts/services/domains.coffee
app/scripts/services/domains.coffee
'use strict' class DomainsFactory constructor: (@restangular) -> getDomains: -> @restangular.all('domains-details').getList() getDomainPageCount: (domain) -> @restangular.one('domains', domain.name).one('page-count').get() getDomainReviewCount: (domain) -> @restangular.one('domains', domain.name...
'use strict' class DomainsFactory constructor: (@restangular) -> getDomains: -> @restangular.all('domains-details').getList() getDomainReviews: (domainName, params) -> @restangular.one('domains', domainName).one('reviews').get(params) getDomainGroupedViolations: (domainName) -> @restangular.one(...
Remove unused fetchers, getDomains does it all
Remove unused fetchers, getDomains does it all
CoffeeScript
mit
holmes-app/holmes-web,holmes-app/holmes-web,holmes-app/holmes-web
92b29d765ba46e0d0e2f07138779b2ad5bd45023
vendor/assets/javascripts/gmaps4rails/yandex/objects/map.coffee
vendor/assets/javascripts/gmaps4rails/yandex/objects/map.coffee
class @Gmaps4Rails.Yandex.Map extends Gmaps4Rails.Common @include Gmaps4Rails.Interfaces.Map @include Gmaps4Rails.Map @include Gmaps4Rails.Yandex.Shared @include Gmaps4Rails.Configuration CONF: disableDefaultUI: false disableDoubleClickZoom: false type: "ROADMAP" # HY...
class @Gmaps4Rails.Yandex.Map extends Gmaps4Rails.Common @include Gmaps4Rails.Interfaces.Map @include Gmaps4Rails.Map @include Gmaps4Rails.Yandex.Shared @include Gmaps4Rails.Configuration CONF: disableDefaultUI: false disableDoubleClickZoom: false type: "ROADMAP" # HY...
Set and fit Yandex Map bounds
Set and fit Yandex Map bounds
CoffeeScript
mit
apneadiving/Google-Maps-for-Rails,apneadiving/Google-Maps-for-Rails,ekdin/Google-Maps-for-Rails,michael-gabenna/Google-Maps-for-Rails,ipmobiletech/Google-Maps-for-Rails,ipmobiletech/Google-Maps-for-Rails,michael-gabenna/Google-Maps-for-Rails,oelmekki/Google-Maps-for-Rails,ekdin/Google-Maps-for-Rails,oelmekki/Google-Map...
2f869c3b74db464e3d31ae517e10cbecbb9e376d
packages/rocketchat-oembed/client/oembedUrlWidget.coffee
packages/rocketchat-oembed/client/oembedUrlWidget.coffee
getTitle = (self) -> if not self.meta? return return self.meta.ogTitle or self.meta.twitterTitle or self.meta.title or self.meta.pageTitle getDescription = (self) -> if not self.meta? return description = self.meta.ogDescription or self.meta.twitterDescription or self.meta.description if not description? ...
getTitle = (self) -> if not self.meta? return return self.meta.ogTitle or self.meta.twitterTitle or self.meta.title or self.meta.pageTitle getDescription = (self) -> if not self.meta? return description = self.meta.ogDescription or self.meta.twitterDescription or self.meta.description if not description? ...
Fix XSS error in OEmbed
Fix XSS error in OEmbed
CoffeeScript
mit
JamesHGreen/Rocket.Chat,LearnersGuild/Rocket.Chat,Movile/Rocket.Chat,4thParty/Rocket.Chat,wtsarchive/Rocket.Chat,4thParty/Rocket.Chat,pachox/Rocket.Chat,pachox/Rocket.Chat,wtsarchive/Rocket.Chat,danielbressan/Rocket.Chat,karlprieb/Rocket.Chat,igorstajic/Rocket.Chat,OtkurBiz/Rocket.Chat,flaviogrossi/Rocket.Chat,pitamar/...
32a748f04e565a217a32a33cdf5332aed233b4e4
impls/browser/index.coffee
impls/browser/index.coffee
'use strict' [utils, Model] = ['utils', 'model'].map require exports.Request = require('./request.coffee')() exports.Response = require('./response.coffee')() exports.init = -> # Send internal request to change the page based on the URI changePage = (uri) => # change browser URI in the history history.pushSt...
'use strict' [utils, Model] = ['utils', 'model'].map require exports.Request = require('./request.coffee')() exports.Response = require('./response.coffee')() exports.init = -> # Send internal request to change the page based on the URI changePage = (uri) => # change browser URI in the history history.pushSt...
Support for JSON reponse in browser impl added
Support for JSON reponse in browser impl added
CoffeeScript
apache-2.0
Neft-io/neft,Neft-io/neft,Neft-io/neft,Neft-io/neft,Neft-io/neft,Neft-io/neft
5337b6aacb95b45484bf2a83cbf4fcb3e741e7f5
app/assets/javascripts/store.js.coffee
app/assets/javascripts/store.js.coffee
# http://emberjs.com/guides/models/using-the-store/ ETahi.Store = DS.Store.extend # Override the default adapter with the `DS.ActiveModelAdapter` which # is built to work nicely with the ActiveModel::Serializers gem. adapter: '-active-model' push: (type, data, _partial) -> oldType = type dataType = da...
# http://emberjs.com/guides/models/using-the-store/ ETahi.Store = DS.Store.extend # Override the default adapter with the `DS.ActiveModelAdapter` which # is built to work nicely with the ActiveModel::Serializers gem. adapter: '-active-model' push: (type, data, _partial) -> oldType = type dataType = da...
Add findTask method to store.
Add findTask method to store.
CoffeeScript
mit
johan--/tahi,johan--/tahi,johan--/tahi,johan--/tahi
75818d40f27cbab71e1d0e5caa13ead61990c582
spec/coffeescripts/models/transactions/month_spec.coffee
spec/coffeescripts/models/transactions/month_spec.coffee
describe 'LedgerWeb.Models.Transactions.Month', -> it 'populates transactions attribute as transactions collection', -> month = new LedgerWeb.Models.Transactions.Month month: '2013/12' transactions: [payee: 'my payee'] (expect month.get('transactions') instanceof LedgerWeb.Collections.Transactions...
describe 'LedgerWeb.Models.Transactions.Month', -> it 'populates transactions attribute as transactions collection', -> month = new LedgerWeb.Models.Transactions.Month month: '2013/12' transactions: [payee: 'my payee', date: '2013/12/01'] (expect month.get('transactions') instanceof LedgerWeb.Coll...
Add mandatory transaction date to spec data
Add mandatory transaction date to spec data
CoffeeScript
mit
leoc/ledger-web
c18248beaa45903ed2b03c63725ce0392cc33b7e
src/local_modules/typescript.iced
src/local_modules/typescript.iced
# build task for tsc task 'build', 'build:typescript', (done)-> count = 0 typescriptProjects() .pipe foreach (each,next) -> count++ execute "#{basefolder}/node_modules/.bin/tsc --project #{folder each.path}", (code,stdout,stderr) -> echo stdout.replace("src/next-gen","#{basefolder}/src/ne...
# build task for tsc task 'build', 'build:typescript', (done)-> count = 0 typescriptProjects() .pipe foreach (each,next) -> count++ execute "#{basefolder}/node_modules/.bin/tsc --project #{folder each.path}", (code,stdout,stderr) -> echo stdout.replace("src/next-gen","#{basefolder}/src/ne...
Fix dumb break in script
Fix dumb break in script
CoffeeScript
mit
ljhljh235/AutoRest,veronicagg/autorest,hovsepm/AutoRest,brjohnstmsft/autorest,veronicagg/autorest,sergey-shandar/autorest,vishrutshah/autorest,amarzavery/AutoRest,amarzavery/AutoRest,anudeepsharma/autorest,balajikris/autorest,jianghaolu/AutoRest,Azure/autorest,dsgouda/autorest,lmazuel/autorest,annatisch/autorest,veroni...
dc5b40c2e33a2ff3ae1ac1be0abc2adef294dcf9
features/support/test_system.coffee
features/support/test_system.coffee
Qjs = require '../../lib/qjs' TestSystem = Qjs.parse """ # Nil & others Any = . Nil = .( v | v === null ) # Booleans True = .( b | b === true ) False = .( b | b === false ) Boolean = .Boolean # Numerics Numeric = .Number Integer = .Number( i | noDot: i.toString().indexOf('.') == -1 ) # St...
Qjs = require '../../lib/qjs' TestSystem = Qjs.parse """ # Nil & others Any = . Nil = .( v | v === null ) # Booleans True = .( b | b === true ) False = .( b | b === false ) Boolean = .Boolean # Numerics Numeric = .Number Integer = .Number( i | noDot: i.toString().indexOf('.') == -1 ) # St...
Fix escaping in test system.
Fix escaping in test system.
CoffeeScript
mit
llambeau/finitio.js,llambeau/finitio.js
7618d3161387af054bf6a22dbd5aa0fe02626c82
main.coffee
main.coffee
fs = require 'fs' exports.initialize = (args) -> configName = if args.length isnt 0 then args[0] else 'main' configPath = "#{__dirname}/users/#{configName}.json" fs.exists configPath, (exists) -> if not exists console.log "Config #{configName} doesn't exists." return params = require config...
fs = require 'fs' exports.initialize = (args) -> configName = if args.length isnt 0 then args[0] else 'main' configPath = "#{__dirname}/users/#{configName}.json" fs.exists configPath, (exists) -> if not exists console.log "Config #{configName} doesn't exists." return params = require config...
Set current cwd folder for download by default
Set current cwd folder for download by default
CoffeeScript
mit
MaxSvargal/node-vk-music-sync
ae0e512a10690367ff21b3e53b4d8d6e2271e837
packages/rocketchat-lib/server/methods/sendMessage.coffee
packages/rocketchat-lib/server/methods/sendMessage.coffee
Meteor.methods sendMessage: (message) -> if message.msg?.length > RocketChat.settings.get('Message_MaxAllowedSize') throw new Meteor.Error('error-message-size-exceeded', 'Message size exceeds Message_MaxAllowedSize', { method: 'sendMessage' }) if not Meteor.userId() throw new Meteor.Error('error-invalid-use...
Meteor.methods sendMessage: (message) -> if message.msg?.length > RocketChat.settings.get('Message_MaxAllowedSize') throw new Meteor.Error('error-message-size-exceeded', 'Message size exceeds Message_MaxAllowedSize', { method: 'sendMessage' }) if not Meteor.userId() throw new Meteor.Error('error-invalid-use...
Set user's realname to alias if not set already
Set user's realname to alias if not set already
CoffeeScript
mit
ealbers/Rocket.Chat,LearnersGuild/Rocket.Chat,ealbers/Rocket.Chat,k0nsl/Rocket.Chat,xasx/Rocket.Chat,danielbressan/Rocket.Chat,4thParty/Rocket.Chat,mrsimpson/Rocket.Chat,pitamar/Rocket.Chat,karlprieb/Rocket.Chat,timkinnane/Rocket.Chat,pitamar/Rocket.Chat,Achaikos/Rocket.Chat,Gyubin/Rocket.Chat,subesokun/Rocket.Chat,Lea...
1454b5658d791ee802dc3caa6ccbb6dc757fc86f
app/assets/javascripts/todo_lists.js.coffee
app/assets/javascripts/todo_lists.js.coffee
# Place all the behaviors and hooks related to the matching controller here. # All this logic will automatically be available in application.js. # You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/ OUT.registerCreatedHandler "todo_list", (selector) -> $(selector).find("a.new").click() ...
# Place all the behaviors and hooks related to the matching controller here. # All this logic will automatically be available in application.js. # You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/ OUT.registerCreatedHandler "todo_list", (selector) -> $(selector).find("a.new").click() ...
Move flattening title links for todo_lists in to own function; register updated handler
Move flattening title links for todo_lists in to own function; register updated handler
CoffeeScript
mit
rrrene/outline,rrrene/outline
b518b8d631592db807006c9942bc301b5375db73
scripts/phabricator.coffee
scripts/phabricator.coffee
# Description: # Shows a link to phabricator tasks and issues mentioned in comments # # Dependencies: # None # # Configuration: # None # # Commands: # D#### - show a link to phabricator review # T#### - show a link to phabricator task # # Author: # tzjames module.exports = (robot) -> robot.hear /\b((D|T)...
# Description: # Shows a link to phabricator tasks and issues mentioned in comments # # Dependencies: # None # # Configuration: # None # # Commands: # D#### - show a link to phabricator review # T#### - show a link to phabricator task # # Author: # tzjames module.exports = (robot) -> # We check for white...
Make sure links aren't caught by Phabot Rabbit
Make sure links aren't caught by Phabot Rabbit Test Plan: set /bin/secrets to only be in jamestest room bin/culturecow type D1234 check out D1234 http://phabricator.khanacademy.org/D1234 aD1 Make sure the frist two are responded to, but the last two aren't Reviewers: csilvers Reviewed By: csilvers Differential Rev...
CoffeeScript
mit
Khan/culture-cow,Khan/culture-cow
51e0bc5bc8f88bf84dba709a13000b0043bea29b
lib/package-updates-status-view.coffee
lib/package-updates-status-view.coffee
_ = require 'underscore-plus' {View} = require 'atom' module.exports = class PackageUpdatesStatusView extends View @content: -> @div class: 'inline-block text text-info', => @span class: 'icon icon-package' @span outlet: 'countLabel', class: 'available-updates-status' initialize: (statusBar, p...
_ = require 'underscore-plus' {View} = require 'atom' module.exports = class PackageUpdatesStatusView extends View @content: -> @div class: 'inline-block text text-info', => @span class: 'icon icon-package' @span outlet: 'countLabel', class: 'available-updates-status' initialize: (statusBar, p...
Append after at end of initialize
Append after at end of initialize
CoffeeScript
mit
atom/settings-view
5ed018419c1026e67dd3b8a7868c9fd206c636ae
src/adapters/shell.coffee
src/adapters/shell.coffee
Readline = require 'readline' Robot = require '../robot' Adapter = require '../adapter' class Shell extends Adapter constructor: (robot) -> super robot @repl = null send: (user, strings...) -> console.log str for str in strings @repl.prompt() reply: (user, strings...) -> @send user, st...
Readline = require 'readline' Robot = require '../robot' Adapter = require '../adapter' class Shell extends Adapter send: (user, strings...) -> unless process.platform is "win32" console.log "\033[01;32m#{str}\033[0m" for str in strings else console.log "#{str}" for str in strings @repl....
Update repl prompt to work with async requests
Update repl prompt to work with async requests
CoffeeScript
mit
gojee/gojee-hubot-deprecated,gojee/gojee-hubot-deprecated,gojee/gojee-hubot-deprecated
ec141137cc8d0c3376d0f3dbef20e3260755e3ff
atom/atom.symlink/keymap.cson
atom/atom.symlink/keymap.cson
'atom-text-editor': 'ctrl-i': 'editor:auto-indent' 'atom-text-editor': 'alt-s': 'editor:split-selection-into-lines'
'atom-text-editor': 'ctrl-i': 'editor:auto-indent' 'atom-text-editor': 'ctrl-k p': 'git-plus:push'
Add push keybinding for atom
Add push keybinding for atom
CoffeeScript
mit
abcsds/dotfiles,abcsds/dotfiles
403892ceed361b3951f056e4791e194b2d3e7665
keymaps/keybinding-resolver.cson
keymaps/keybinding-resolver.cson
'.workspace .platform-darwin': 'cmd-.': 'key-binding-resolver:toggle' '.workspace .platform-win32': 'ctrl-.': 'key-binding-resolver:toggle'
'.workspace .platform-darwin': 'cmd-.': 'key-binding-resolver:toggle' '.workspace .platform-win32': 'ctrl-.': 'key-binding-resolver:toggle' '.workspace .platform-linux': 'ctrl-.': 'key-binding-resolver:toggle'
Add ctrl-. keybinding on Linux
:penguin: Add ctrl-. keybinding on Linux
CoffeeScript
mit
atom/keybinding-resolver
a075dc60397d2588045352f667d0811f3401c854
spec/templates/methods/prototypical_methods.coffee
spec/templates/methods/prototypical_methods.coffee
# Public: Here's a class. class Foo # Here's a method, baz. baz: () -> 'baz' # Here is a method on Foo, called bar. Foo::bar = () -> 'bar'
# Public: Here's a class. class Foo # Here's a method, baz. baz: () -> 'baz' # Public: Here is a method on Foo, called bar. Foo::bar = () -> 'bar'
Set this method to public
Set this method to public
CoffeeScript
mit
gjtorikian/biscotto,paulcbetts/biscotto,gjtorikian/biscotto,paulcbetts/biscotto,atom/donna,atom/donna
449749de80d3ee6b8b70eae33c05021a88dc5b47
assets/logic/router.coffee
assets/logic/router.coffee
# Setup router import Vue from 'vue' import VueRouter from 'vue-router' Vue.use VueRouter ### Routing paths `/` - (home) app index `/:location` - (location) weather detail for a specific location ### routes = [ { name: 'home' path: '/' component: require '../components/home' children: [ ...
# Setup router import Vue from 'vue' import VueRouter from 'vue-router' Vue.use VueRouter ### Routing paths `/` - (home) app index `/:location` - (location) weather detail for a specific location ### routes = [ { name: 'home' path: '/' component: require '../components/home' children: [ ...
Revert "trying history mode for gh-pages"
Revert "trying history mode for gh-pages" This reverts commit dfcd5df36658335555caeebcae785bdc120fd976.
CoffeeScript
mit
thelucre/weather,thelucre/weather
f9c02e1410a076f0f295ece833cdd01d72d6f9b3
keymaps/project-manager.cson
keymaps/project-manager.cson
# Keybindings require three things to be fully defined: A selector that is # matched against the focused element, the keystroke and the command to # execute. # # Below is a basic keybinding which registers on all platforms by applying to # the root workspace element. # For more detailed documentation see # https://ato...
'.platform-darwin': 'ctrl-cmd-p': 'project-manager:toggle' '.platform-win32': 'ctrl-alt-p': 'project-manager:toggle' '.platform-linux': 'ctrl-alt-p': 'project-manager:toggle'
Add keybindings for windows and linux
Add keybindings for windows and linux
CoffeeScript
mit
UltCombo/atom-project-manager,douggr/atom-project-manager,danielbrodin/atom-project-manager
98facf9ecc75d8f5d6aabcf434ab929160637c3f
app/assets/javascripts/controllers/transactions-controller.js.coffee
app/assets/javascripts/controllers/transactions-controller.js.coffee
App.TransactionsController = Em.ArrayController.extend App.PagingMixin, needs: ['categories'] perPage: 100 itemController: 'transaction' init: -> @_super() dropped: -> category = @get('controllers.categories.dragSource') selections = @get('model').filterProperty 'selected' promise = App.Matche...
App.TransactionsController = Em.ArrayController.extend App.PagingMixin, needs: ['categories'] perPage: 100 itemController: 'transaction' sortProperties: ['posted_at'] sortAscending: false init: -> @_super() actions: sort: (field) -> @setProperties sortProperties: [field] dropped: -...
Add preliminary sorting functionality to transactions controller
Add preliminary sorting functionality to transactions controller
CoffeeScript
mit
artzte/itcostus,artzte/itcostus
8aff38dfe99c6a502bc4af582cf0e299a54968bd
app/assets/javascripts/neighborly/devise/registrations/new.js.coffee
app/assets/javascripts/neighborly/devise/registrations/new.js.coffee
Neighborly.Devise ?= {} Neighborly.Devise.Registrations ?= {} Neighborly.Devise.Registrations.New = init: -> $('#show_password').change -> $input = $('#show_password') $password = $('#user_password') if $input.is(':checked') $password.prop 'type', 'text' else $password.pr...
Neighborly.Devise ?= {} Neighborly.Devise.Registrations ?= {} Neighborly.Devise.Registrations.New = init: -> $('#show_password').change -> $password = $('#user_password') if $('#show_password').is(':checked') $password.prop 'type', 'text' else $password.prop 'type', 'password'
Refactor the if conditional on show password JS
Refactor the if conditional on show password JS
CoffeeScript
mit
jinutm/silverme,MicroPasts/micropasts-crowdfunding,raksonibs/raimcrowd,jinutm/silverpro,MicroPasts/micropasts-crowdfunding,jinutm/silverpro,jinutm/silveralms.com,jinutm/silverme,jinutm/silverprod,gustavoguichard/neighborly,gustavoguichard/neighborly,raksonibs/raimcrowd,jinutm/silveralms.com,MicroPasts/micropasts-crowdf...
d7d9d6c4439f038d91341988aba39a187f8397db
scripts/models/content/inherits/base.coffee
scripts/models/content/inherits/base.coffee
define [ 'underscore' 'backbone' ], (_, Backbone) -> return Backbone.Model.extend url: () -> return "/api/content/#{ @id }" mediaType: 'application/vnd.org.cnx.module' toJSON: () -> json = Backbone.Model::toJSON.apply(@, arguments) json.mediaType = @mediaType json.id = @id or @cid ...
define [ 'underscore' 'backbone' ], (_, Backbone) -> return Backbone.Model.extend url: () -> return "/api/content/#{ @id }" mediaType: 'application/vnd.org.cnx.module' toJSON: () -> json = Backbone.Model::toJSON.apply(@, arguments) json.mediaType = @mediaType json.id = @id or @cid ...
Allow non-unique media to have their title changed globally
Allow non-unique media to have their title changed globally
CoffeeScript
agpl-3.0
oerpub/bookish,oerpub/github-bookeditor,oerpub/github-bookeditor,oerpub/bookish,oerpub/github-bookeditor
933f941e8f2b4ca1d656275bf201065d2c64592e
atom/packages.cson
atom/packages.cson
packages: [ "autocomplete-emojis" "busy-signal" "editorconfig" "file-icons" "highlight-selected" "intentions" "linter" "linter-coffeelint" "linter-csslint" "linter-eslint" "linter-flake8" "linter-htmlhint" "linter-js-yaml" "linter-jsonlint" "linter-less" "linter-php" "linter-scss-lint"...
packages: [ "autocomplete-emojis" "busy-signal" "editorconfig" "file-icons" "highlight-selected" "intentions" "linter" "linter-coffeelint" "linter-csslint" "linter-eslint" "linter-flake8" "linter-htmlhint" "linter-js-yaml" "linter-jsonlint" "linter-less" "linter-php" "linter-scss-lint"...
Add "permanent-delete" package to Atom
Add "permanent-delete" package to Atom Because Atom can't delete a file without OS trash. :(
CoffeeScript
mit
jmlntw/dotfiles,jmlntw/dotfiles
d79509f1f43b36898161fee7bd1647294ab12073
server/middleware/contact.coffee
server/middleware/contact.coffee
sendwithus = require '../sendwithus' utils = require '../lib/utils' errors = require '../commons/errors' wrap = require 'co-express' database = require '../commons/database' parse = require '../commons/parse' module.exports = sendParentSignupInstructions: wrap (req, res, next) -> context = email_id: sendwi...
sendwithus = require '../sendwithus' utils = require '../lib/utils' errors = require '../commons/errors' wrap = require 'co-express' database = require '../commons/database' parse = require '../commons/parse' module.exports = sendParentSignupInstructions: wrap (req, res, next) -> context = email_id: sendwi...
Fix _.string to _.str on recent server trim check
Fix _.string to _.str on recent server trim check
CoffeeScript
mit
kidaa/codecombat,javatlacati/codecombat,kidaa/codecombat,javatlacati/codecombat,codecombat/codecombat,jeremiahyan/codecombat,jeremiahyan/codecombat,kidaa/codecombat,javatlacati/codecombat,jeremiahyan/codecombat,codecombat/codecombat,javatlacati/codecombat,javatlacati/codecombat,codecombat/codecombat,codecombat/codecomb...
a3383f11a127cd8862459fea5866f13952ac5da1
app/coffee/DraftModeManager.coffee
app/coffee/DraftModeManager.coffee
fs = require "fs" logger = require "logger-sharelatex" module.exports = DraftModeManager = injectDraftMode: (filename, callback = (error) ->) -> fs.readFile filename, "utf8", (error, content) -> return callback(error) if error? modified_content = DraftModeManager._injectDraftOption content logger.log { ...
fs = require "fs" logger = require "logger-sharelatex" module.exports = DraftModeManager = injectDraftMode: (filename, callback = (error) ->) -> fs.readFile filename, "utf8", (error, content) -> return callback(error) if error? modified_content = DraftModeManager._injectDraftOption content logger.log { ...
Make draft mode regex global
Make draft mode regex global
CoffeeScript
agpl-3.0
EDP-Sciences/clsi-sharelatex,sharelatex/clsi-sharelatex,sharelatex/clsi-sharelatex
08bd35718df3400f69ce716691fcce3126d88358
app.coffee
app.coffee
express = require 'express' mongoose = require 'mongoose' ext_type = require 'connect-ext-type' { createServer } = require 'http' { join } = require 'path' module.exports = express().configure -> @set 'port', process.env.PORT or 8070 @set 'view engine', 'jade' @set 'views', join __dirname, 'views' @locals ...
express = require 'express' mongoose = require 'mongoose' ext_type = require 'connect-ext-type' { createServer } = require 'http' { join } = require 'path' module.exports = express().configure -> @set 'port', process.env.PORT or 8070 @set 'view engine', 'jade' @set 'views', join __dirname, 'views' @locals ...
Enable pretty HTML on development
Enable pretty HTML on development
CoffeeScript
agpl-3.0
shesek/bitrated,shesek/bitrated
bcd7e62324594866a6bcb7c08b2d8a9a22c2122d
shared/specs/components/change-student-id-form.spec.coffee
shared/specs/components/change-student-id-form.spec.coffee
{Testing, expect, sinon, _, ReactTestUtils} = require 'shared/specs/helpers' {ChangeStudentIdForm} = require 'shared' describe 'ChangeStudentIdForm Component', -> beforeEach -> @props = onCancel: sinon.spy() onSubmit: sinon.spy() label: 'a test label' saveButtonLabel: 'this is save btn' ...
{Testing, expect, sinon, _, ReactTestUtils} = require 'shared/specs/helpers' {ChangeStudentIdForm} = require 'shared' describe 'ChangeStudentIdForm Component', -> beforeEach -> @props = onCancel: sinon.spy() onSubmit: sinon.spy() label: 'a test label' saveButtonLabel: 'this is save btn' ...
Use class instead of element
Use class instead of element
CoffeeScript
agpl-3.0
openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js
d360b1c24a130a6d2644002e0eaa491689a01825
app/pages/lab/science-case.cjsx
app/pages/lab/science-case.cjsx
React = require 'react' AutoSave = require '../../components/auto-save' handleInputChange = require '../../lib/handle-input-change' module.exports = React.createClass displayName: 'EditProjectScienceCase' getDefaultProps: -> project: {} render: -> <div> <p className="form-help">This page is for y...
React = require 'react' AutoSave = require '../../components/auto-save' handleInputChange = require '../../lib/handle-input-change' PromiseRenderer = require '../../components/promise-renderer' apiClient = require '../../api/client' module.exports = React.createClass displayName: 'EditProjectScienceCase' getDefau...
Update project lab to use new pages resource
Update project lab to use new pages resource
CoffeeScript
apache-2.0
zooniverse/Panoptes-Front-End,camallen/Panoptes-Front-End,jelliotartz/Panoptes-Front-End,edpaget/Panoptes-Front-End,CKrawczyk/Panoptes-Front-End,parrish/Panoptes-Front-End,alexbfree/Panoptes-Front-End,mrniaboc/Panoptes-Front-End,mrniaboc/Panoptes-Front-End,CKrawczyk/Panoptes-Front-End,amyrebecca/Panoptes-Front-End,fmnh...
40891e60400467d152763187243210f0378c200a
core/app/backbone/views/messages/conversation_item_view.coffee
core/app/backbone/views/messages/conversation_item_view.coffee
class window.ConversationItemView extends Backbone.Marionette.ItemView tagName: 'li' className: 'clearfix' template: 'conversations/item' events: 'click' : 'wholeElementClick' templateHelpers: => url: @model.url() wholeElementClick: (e) -> url = @model.url() e.preventDefault() e.stopIm...
class window.ConversationItemView extends Backbone.Marionette.ItemView tagName: 'li' className: 'clearfix' template: 'conversations/item' events: 'click' : 'wholeElementClick' 'click .user-profile-link' : 'userProfileLinkClick' templateHelpers: => url: @model.url() wholeElementClick: (e) -> ...
Allow backbone navigation from conversation index to user profile, in stead of letting the click be handled by the wholeElementClick
Allow backbone navigation from conversation index to user profile, in stead of letting the click be handled by the wholeElementClick
CoffeeScript
mit
Factlink/factlink-core,daukantas/factlink-core,daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core
40caa9666754f61d493a65cdbd73ddd9fde9510c
trinary/trinary_test.spec.coffee
trinary/trinary_test.spec.coffee
Trinary = require './example' describe 'Trinary', -> it '1 is decimal 1', -> expect(1).toEqual new Trinary('1').toDecimal() xit '2 is decimal 2', -> expect(2).toEqual new Trinary('2').toDecimal() xit '10 is decimal 3', -> expect(3).toEqual new Trinary('10').toDecimal() xit '11 is decimal 4', ->...
Trinary = require './example' describe 'Trinary', -> it '1 is decimal 1', -> expect(new Trinary('1').toDecimal()).toEqual 1 xit '2 is decimal 2', -> expect(new Trinary('2').toDecimal()).toEqual 2 xit '10 is decimal 3', -> expect(new Trinary('10').toDecimal()).toEqual 3 xit '11 is decimal 4', ->...
Reorder expectations in trinary test suite
Reorder expectations in trinary test suite This matches the jasmine conventions, and makes error messages less confusing.
CoffeeScript
mit
exercism/xcoffeescript
3b97d6d0082279787f5125ef7e177cc701acaf7a
app/assets/javascripts/eventplug/app/events/_form.js.coffee
app/assets/javascripts/eventplug/app/events/_form.js.coffee
$ -> if isOnPage 'eventplug-events', 'edit' or isOnPage 'eventplug-events', 'new' $("#event_date").datepicker() opts = button: false editor = new EpicEditor(opts).load() editor.on 'save', -> $('#event_description').val(editor.exportFile())
$ -> if isOnPage('eventplug-events', 'new') or isOnPage('eventplug-events', 'edit') $("#event_date").datepicker() opts = button: false editor = new EpicEditor(opts).load() editor.on 'save', -> $('#event_description').val(editor.exportFile())
Correct coffeescript syntax for events
Correct coffeescript syntax for events
CoffeeScript
mit
mconf/mweb_events,mconf/mweb_events,mconf/mweb_events