commit
stringlengths
40
40
old_file
stringlengths
9
134
new_file
stringlengths
9
134
old_contents
stringlengths
0
2.21k
new_contents
stringlengths
34
3.19k
subject
stringlengths
14
340
message
stringlengths
15
1.43k
lang
stringclasses
1 value
license
stringclasses
13 values
repos
stringlengths
9
29k
f138a4860fcaefd277acfb3d11effde7d962ed8e
client/src/views/section_view.coffee
client/src/views/section_view.coffee
window.Backbone ||= {} window.Backbone.Views ||= {} class Backbone.Views.SectionView extends Backbone.Diorama.NestingView template: Handlebars.templates['section.hbs'] tagName: 'section' className: 'section-view' events: "click .add-narrative": "addNarrative" "click .add-visualisation": "addVisualisat...
window.Backbone ||= {} window.Backbone.Views ||= {} class Backbone.Views.SectionView extends Backbone.Diorama.NestingView template: Handlebars.templates['section.hbs'] tagName: 'section' className: 'section-view' events: "click .add-narrative": "addNarrative" "click .add-visualisation": "addVisualisat...
Add missing ? to conditional
Add missing ? to conditional
CoffeeScript
bsd-3-clause
unepwcmc/NRT,unepwcmc/NRT
028157ea21c17e264baaee12baef9a508e2f1e00
client/source/views/base/mixins/form.coffee
client/source/views/base/mixins/form.coffee
_ = require 'underscore' module.exports = render: -> # Prepare any submit buttons for Ladda @$btn = @$('.ladda-button').ladda() # Automatically focus the first visible input _.defer => @$('.form-control:visible').eq(0).focus() formParams: -> # Uses jQuery formParams, but don't try to co...
_ = require 'underscore' module.exports = render: -> # Prepare any submit buttons for Ladda @$btn = @$('.ladda-button').ladda() # Automatically focus the first visible input _.defer => @$('.form-control:visible').eq(0).focus() formParams: -> # Uses jQuery formParams, but don't try to co...
Fix for rendering server errors in new Form mixin
Fix for rendering server errors in new Form mixin
CoffeeScript
agpl-3.0
dut3062796s/buckets,nishant8BITS/buckets,edolyne/hive,bucketsio/buckets,mikesmithmsm/buckets,dut3062796s/buckets,bucketsio/buckets,mamute/buckets,edolyne/buckets,edolyne/buckets,asm-products/buckets,asm-products/buckets,edolyne/hive,artelse/buckets,mikesmithmsm/buckets,nishant8BITS/buckets,mamute/buckets,artelse/bucket...
59d8095c1d6f3b1951663c875eb75ac0272384c7
client/skr/components/PrintFormChooser.cjsx
client/skr/components/PrintFormChooser.cjsx
class Skr.Components.PrintFormChooser extends Lanes.React.Component propTypes: label: React.PropTypes.string model: Lanes.PropTypes.Model.isRequired mixins: [ Lanes.React.Mixins.ReadEditingState ] onChange: -> (f) => @invoice.form = f renderEdit: (value) -> ...
class Skr.Components.PrintFormChooser extends Lanes.React.Component propTypes: label: React.PropTypes.string.isRequired model: Lanes.PropTypes.Model.isRequired choices: React.PropTypes.array mixins: [ Lanes.React.Mixins.ReadEditingState ] onChange: (val) -> if ...
Allow overriding get/set from props
Allow overriding get/set from props
CoffeeScript
agpl-3.0
argosity/stockor,argosity/stockor,argosity/stockor,argosity/stockor
8c43567e4ade481eb43b1d4246bc16c5514e8573
lib/sockets.coffee
lib/sockets.coffee
app = require('../config/app').app io = require('socket.io').listen(app) RepositorySchema = require('../models/repository').RepositorySchema io.sockets.on 'connection', (socket) -> RepositorySchema.pre 'save', (next) -> console.log 'socket.io sending repository event' socket.emit 'repository...
app = require('../config/app').app io = require('socket.io').listen(app) RepositorySchema = require('../models/repository').RepositorySchema io.sockets.on 'connection', (socket) -> RepositorySchema.pre 'save', (next) -> console.log 'socket.io sending repository event' socket.emit 'repository...
Make sure to execute the next filter.
Make sure to execute the next filter.
CoffeeScript
mit
drip/drip
ef0bba68c7cfc3961a567fde6245779c33b27ce9
lib/helpers.coffee
lib/helpers.coffee
mkdirp = require 'mkdirp' fs = require 'fs' # # Convenient method for writing a file on # a path that might not exist. This function # will create all folders provided in the # path to the file. # # # writeToFile('/tmp/hi/folder/file.js', "console.log('hi')") # # will create a file at /tmp/hi/folder/file.js with...
mkdirp = require 'mkdirp' fs = require 'fs' # # Convenient method for writing a file on # a path that might not exist. This function # will create all folders provided in the # path to the file. # # # writeToFile('/tmp/hi/folder/file.js', "console.log('hi')") # # will create a file at /tmp/hi/folder/file.js with...
Fix url normalization for Windows
Fix url normalization for Windows When bundle-up is called from Windows, it uses the file path to generate the compiled assets url, resulting in things like "/\generated\bundle\asdfg.css". This little patch fixes that.
CoffeeScript
mit
FGRibreau/bundle-up,Cowboy-coder/bundle-up,FGRibreau/bundle-up
ae85e3e2372b09afa1be5b49532ca99aca08e3ae
public/js/main.coffee
public/js/main.coffee
$ -> data = [ name: 'Original' participants: 100 conversions: 45 color: '#00aa00' , name: 'Variation' participants: 100 conversions: 50 color: 'blue' ] variations = [] variations.push new App.Variation item.name, item.color, item.participants, item.conversions for item in data calculato...
$ -> data = title: 'Original vs Variation' variations: [ name: 'Original' participants: 100 conversions: 45 color: '#00aa00' , name: 'Variation' participants: 100 conversions: 50 color: '#0000ff' ] variations = [] variations.push new App.Variation item.name, item.color, item...
Add title to the chart
Add title to the chart
CoffeeScript
mit
mattm/abtestcalculator,mattm/abtestcalculator
93f3d0883c5701ee76902c0c857aa5af33a31153
client/ide/workspace/panel.coffee
client/ide/workspace/panel.coffee
class IDE.Panel extends KDView constructor: (options = {}, data) -> options.cssClass = KD.utils.curry 'panel', options.cssClass super options, data @panesContainer = [] @panes = [] @panesByName = {} @createLayout() createLayout: -> {layoutOptions} = @getOptions() u...
class IDE.Panel extends KDView constructor: (options = {}, data) -> options.cssClass = KD.utils.curry 'panel', options.cssClass super options, data @panesContainer = [] @panes = [] @panesByName = {} @createLayout() createLayout: -> {layoutOptions} = @getOptions() ...
Fix for new layout builder in Panel.
Fix for new layout builder in Panel.
CoffeeScript
agpl-3.0
mertaytore/koding,kwagdy/koding-1,cihangir/koding,mertaytore/koding,gokmen/koding,andrewjcasal/koding,alex-ionochkin/koding,alex-ionochkin/koding,koding/koding,mertaytore/koding,cihangir/koding,cihangir/koding,koding/koding,kwagdy/koding-1,jack89129/koding,rjeczalik/koding,jack89129/koding,gokmen/koding,jack89129/kodin...
9fc631f515b9c072710385288da10a85b1ddad27
client/controllers/smartEvents/smartEvent.coffee
client/controllers/smartEvents/smartEvent.coffee
SmartEvents = require '/imports/collections/smartEvents' Incidents = require '/imports/collections/incidentReports' #Allow multiple modals or the suggested locations list won't show after the #loading modal is hidden Modal.allowMultiple = true Template.smartEvent.onCreated -> @editState = new ReactiveVar false @ev...
SmartEvents = require '/imports/collections/smartEvents' Incidents = require '/imports/collections/incidentReports' #Allow multiple modals or the suggested locations list won't show after the #loading modal is hidden Modal.allowMultiple = true Template.smartEvent.onCreated -> @editState = new ReactiveVar false @ev...
Make IR query reactive when smart event is edited
Make IR query reactive when smart event is edited
CoffeeScript
apache-2.0
ecohealthalliance/eidr-connect,ecohealthalliance/eidr-connect,ecohealthalliance/eidr-connect,ecohealthalliance/eidr-connect
794cf80c7467758fba1a86c3adf38899577ada5d
src/app/units/unit-student-plagiarism-list/unit-student-plagiarism-list.coffee
src/app/units/unit-student-plagiarism-list/unit-student-plagiarism-list.coffee
angular.module('doubtfire.units.partials.unit-student-plagiarism-list',[]) # # List of all possible plagiarism detected in student's work # .directive('unitStudentPlagiarismList', -> replace: true restrict: 'E' templateUrl: 'units/unit-student-plagiarism-list/unit-student-plagiarism-list.tpl.html' controller: ...
angular.module('doubtfire.units.unit-student-plagiarism-list',[]) # # List of all possible plagiarism detected in student's work # .directive('unitStudentPlagiarismList', -> replace: true restrict: 'E' templateUrl: 'units/unit-student-plagiarism-list/unit-student-plagiarism-list.tpl.html' controller: ($scope, ...
Remove 'partials' from module name of student plagiarism list
FIX: Remove 'partials' from module name of student plagiarism list
CoffeeScript
agpl-3.0
alexcu/doubtfire-web,final-year-project/doubtfire-web,doubtfire-lms/doubtfire-web,doubtfire-lms/doubtfire-web,final-year-project/doubtfire-web,alexcu/doubtfire-web,doubtfire-lms/doubtfire-web,doubtfire-lms/doubtfire-web
75f2f25bcec0233a3a3aa224914749255774dae5
src/keyboard-layout.coffee
src/keyboard-layout.coffee
{Emitter} = require 'event-kit' {KeyboardLayoutObserver} = require '../build/Release/keyboard-layout-observer.node' emitter = new Emitter observer = new KeyboardLayoutObserver -> emitter.emit 'did-change-current-keyboard-layout', getCurrentKeyboardLayout() getCurrentKeyboardLayout = -> observer.getCurrentKeyboardLa...
{Emitter} = require 'event-kit' {KeyboardLayoutObserver} = require '../build/Release/keyboard-layout-observer.node' emitter = new Emitter observer = new KeyboardLayoutObserver -> emitter.emit 'did-change-current-keyboard-layout', getCurrentKeyboardLayout() getCurrentKeyboardLayout = -> observer.getCurrentKeyboardLa...
Comment why we have this method
Comment why we have this method
CoffeeScript
mit
atom/keyboard-layout,atom/keyboard-layout,atom/keyboard-layout
507e56025f3830fcfe0a9abf70a33f996efb9bc7
client/landing/app/Applications/Chat.kdapplication/Controllers/conversationlistcontroller.coffee
client/landing/app/Applications/Chat.kdapplication/Controllers/conversationlistcontroller.coffee
class ChatConversationListController extends CommonChatController constructor:-> super @getListView().on 'moveToIndexRequested', @bound 'moveItemToIndex' # loadItems:(callback)-> # super # @me.fetchFollowersWithRelationship {}, {}, (err, accounts)=> # @instantiateListItems accounts unless e...
class ChatConversationListController extends CommonChatController constructor:-> super @getListView().on 'moveToIndexRequested', @bound 'moveItemToIndex' addItem:(data)-> # Make sure there is one conversation with same channel name {chatChannel} = data for chat in @itemsOrdered return i...
Make sure there is one conversation with same channel name in the conversation list
Make sure there is one conversation with same channel name in the conversation list
CoffeeScript
agpl-3.0
gokmen/koding,andrewjcasal/koding,alex-ionochkin/koding,sinan/koding,drewsetski/koding,acbodine/koding,usirin/koding,jack89129/koding,mertaytore/koding,mertaytore/koding,mertaytore/koding,kwagdy/koding-1,drewsetski/koding,alex-ionochkin/koding,andrewjcasal/koding,alex-ionochkin/koding,andrewjcasal/koding,drewsetski/kod...
683eee1ffd48af59b13274c7415bc26d6718f1ce
src/scripts/corgime.coffee
src/scripts/corgime.coffee
# Description: # Corgime # # Dependencies: # None # # Configuration: # None # # Commands: # hubot corgi me - Receive a corgi # hubot corgi bomb N - get N corgis # # Author: # alexgodin module.exports = (robot) -> robot.respond /corgi me/i, (msg) -> msg.http("http://corginator.herokuapp.com/random") ...
# Description: # Corgime # # Dependencies: # None # # Configuration: # None # # Commands: # hubot corgi me - Receive a corgi # hubot corgi bomb N - get N corgis # # Author: # alexgodin module.exports = (robot) -> robot.respond /corgi me/i, (msg) -> msg.http("http://corginator.herokuapp.com/random") ...
Fix corgi bomb backend url
Fix corgi bomb backend url Let corgis fly in.
CoffeeScript
mit
yigitbey/hubot-scripts,dbkaplun/hubot-scripts,phillipalexander/hubot-scripts,n0mer/hubot-scripts,Ev1l/hubot-scripts,opentable/hubot-scripts,iilab/hubot-scripts,zecahnin/hubot-scripts,MaxMEllon/hubot-scripts,sklise/hubot-scripts,wsoula/hubot-scripts,alexhouse/hubot-scripts,jacobtomlinson/hubot-scripts,ambikads/hubot-scr...
6e73b436f7831999bc6c2f100153a68aa91d4705
core/app/backbone/factlink/tooltip_marionette.coffee
core/app/backbone/factlink/tooltip_marionette.coffee
Backbone.Factlink ||= {} do -> #options: # parentView: marionette view # tooltipViewFactory: -> view # selector: selector identifying what can be hovered over. # $offsetParent: a dom node within which to position the # tooltip with respect to the target (hovered) node. By # default, uses parent...
Backbone.Factlink ||= {} #options: # parentView: marionette view # tooltipViewFactory: -> view # selector: selector identifying what can be hovered over. # $offsetParent: a dom node within which to position the # tooltip with respect to the target (hovered) node. By # default, uses parentView.$el. Backbone....
Remove unnecessary do nesting; there are no private variables in this scope.
Remove unnecessary do nesting; there are no private variables in this scope.
CoffeeScript
mit
Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core,daukantas/factlink-core,daukantas/factlink-core
5d60b9ba4e8f0048b8f22098fd186e7979136529
spec/body-spec.coffee
spec/body-spec.coffee
describe 'Body', -> Body = require '../lib/javascripts/body' view = null initView = ({ collection } = {}) -> collection ?= new Backbone.Collection [ { foo: 'foo', bar: 'bar' } ] view = new Body { collection } showView = -> initView(arguments...).render() afterEach -> view?.destro...
describe 'Body', -> Body = require '../lib/javascripts/body' view = null initView = ({ collection } = {}) -> collection ?= new Backbone.Collection [ { foo: 'foo', bar: 'bar' } ] view = new Body { collection } showView = -> initView(arguments...).render() afterEach -> view?.destro...
Fix bad spec: children is a function and it should actually assert the collection view not to be empty
Fix bad spec: children is a function and it should actually assert the collection view not to be empty
CoffeeScript
mit
juanca/marionette-tree,juanca/marionette-tree
8430e991d6913651a025c01474fcb09def14a9ae
app/assets/javascripts/application.js.coffee
app/assets/javascripts/application.js.coffee
# This is a manifest file that'll be compiled into including all the files listed below. # Add new JavaScript/Coffee code in separate files in this directory and they'll automatically # be included in the compiled file accessible from http://example.com/assets/application.js # It's not advisable to add code directly he...
# This is a manifest file that'll be compiled into including all the files listed below. # Add new JavaScript/Coffee code in separate files in this directory and they'll automatically # be included in the compiled file accessible from http://example.com/assets/application.js # It's not advisable to add code directly he...
Remove slide animation for alerts
Remove slide animation for alerts
CoffeeScript
apache-2.0
martinisoft/funnies,martinisoft/funnies
c7373ebbe2d08ab5c5699d88e51becbbc343c73f
src/librato.coffee
src/librato.coffee
Client = require 'librato' module.exports = new Client \ process.env.LIBRATO_USER, \ process.env.LIBRATO_TOKEN, \ prefix: process.env.LIBRATO_PREFIX, source: process.env.DOTCLOUD_SERVICE_ID
Client = require 'librato' module.exports = new Client \ process.env.LIBRATO_USER, \ process.env.LIBRATO_TOKEN, \ prefix: process.env.LIBRATO_PREFIX, source: process.env.DOTCLOUD_SERVICE_ID or 'test'
Add default Librato source as "test"
Add default Librato source as "test"
CoffeeScript
mit
Turistforeningen/Jotunheimr
32753fc4ab5c5ea45f8760be53815ec2b4977bd3
stress_test.coffee
stress_test.coffee
# vim: ts=2:sw=2:sta io = require('socket.io-client') url = process.env.TEST_TARGET || 'https://snap-backend-dev.herokuapp.com' #'http://localhost:8080' users = process.env.USERS || 50 randWord = (len) -> Math.random().toString(36).substr(2, len) startPlayer = (name) -> socket = io(url, {multiplex: false}) s...
# vim: ts=2:sw=2:sta io = require('socket.io-client') url = process.env.TEST_TARGET || 'https://snap-backend-dev.herokuapp.com' #'http://localhost:8080' users = process.env.USERS || 50 WORD_CHARS = "abcdefghijklmnopqrstuvwxyz" randWord = (len) -> word = "" for c in [1..len] index = Math.floor(Math.random() ...
Fix up the stress tester
Fix up the stress tester - bring players out at 10 players/s - bring back 2-letter words (no numbers)
CoffeeScript
mit
CMS611-snap/snap-backend,CMS611-snap/snap-backend,CMS611-snap/snap-backend
96d8721c9e378f0e0d22c8a1de1d97ab88d58276
src/message.coffee
src/message.coffee
module.exports = class Message constructor: (@type, @message, @options={}) -> getType: -> @type getMessage: -> @message isClosable: -> !!@options.closable getIcon: -> return @options.icon if @options.icon? switch @type when 'fatal' then 'flame' when 'error' then 'bug' when 'w...
# Experimental: This will likely change, do not use. module.exports = class Message constructor: (@type, @message, @options={}) -> getOptions: -> @options getType: -> @type getMessage: -> @message getDetail: -> @optons.detail isClosable: -> !!@options.closable getIcon: -> return @options.ic...
Add some things to Message
Add some things to Message
CoffeeScript
mit
bsmr-x-script/atom,acontreras89/atom,yomybaby/atom,dannyflax/atom,qskycolor/atom,jordanbtucker/atom,SlimeQ/atom,omarhuanca/atom,basarat/atom,tony612/atom,Jandersolutions/atom,KENJU/atom,mrodalgaard/atom,synaptek/atom,targeter21/atom,rsvip/aTom,pengshp/atom,bcoe/atom,nvoron23/atom,sillvan/atom,mertkahyaoglu/atom,rmartin...
0f5ab3ff78a8d7ae47254343ad996b53e2142959
app/assets/javascripts/components/shortcut.coffee
app/assets/javascripts/components/shortcut.coffee
# ************************************* # # Shortcut # -> Trigger clicking an element after keyup # # ************************************* # # Dependencies # - Orientation.keyCodes # # ************************************* # # @param $element { jQuery object } # @param dataAttribute { string } # @param ke...
# ************************************* # # Shortcut # -> Trigger clicking an element after keyup # # ************************************* # # Dependencies # - Orientation.keyCodes # # ************************************* # # @param $element { jQuery object } # @param dataAttribute { string } # @param ke...
Add shift-modified keys to Shortcut script
Add shift-modified keys to Shortcut script
CoffeeScript
mit
cmckni3/orientation,splicers/orientation,cmckni3/orientation,orientation/orientation,cmckni3/orientation,orientation/orientation,codeschool/orientation,liufffan/orientation,hashrocket/orientation,IZEA/orientation,smashingboxes/orientation,orientation/orientation,liufffan/orientation,orientation/orientation,jefmathiot/o...
363e714601632c67acd350994c6e5894f1b0f01d
app/assets/javascripts/notebook/magic/tabs.coffee
app/assets/javascripts/notebook/magic/tabs.coffee
define([ 'observable' 'knockout' 'd3' 'dimple' ], (Observable, ko, d3, dimple) -> (dataO, container, options) -> ulId = @genId $('#ul'+ulId+' a').click( (e) -> e.preventDefault() e.stopImmediatePropagation() $('#tab'+ulId+' div.active').removeClass('active') $('#ul'+ul...
define([ 'jquery' 'observable' 'knockout' 'd3' 'dimple' ], ($, Observable, ko, d3, dimple) -> (dataO, container, options) -> ulId = @genId $('#ul'+ulId+' a').click( (e) -> e.preventDefault() e.stopImmediatePropagation() $('#tab'+ulId+' div.active').removeClass('active') ...
Select the first tab automatically
Select the first tab automatically
CoffeeScript
apache-2.0
radek1st/spark-notebook,minyk/spark-notebook,maasg/spark-notebook,spark-notebook/spark-notebook,antonkulaga/spark-notebook,meh-ninja/spark-notebook,meh-ninja/spark-notebook,0asa/spark-notebook,0asa/spark-notebook,deanwampler/spark-notebook,radek1st/spark-notebook,minyk/spark-notebook,deanwampler/spark-notebook,andypetr...
d07cc5d6ac09bb2fb677bbcbcb044f0fb9718950
app/assets/javascripts/asset_gallery/agbase.js.coffee
app/assets/javascripts/asset_gallery/agbase.js.coffee
### Welcome to AssetGallery -- http://github.com/ewr/AssetGallery ### # stub console.log() for IE if !window.console class window.console @log: -> AssetGallery ?= {}
### Welcome to AssetGallery -- http://github.com/ewr/AssetGallery ### # stub console.log() for IE if !window.console class window.console @log: -> window.AssetGallery ?= {}
Update AssetGallery definition to be compatible with CS 1.3.3
Update AssetGallery definition to be compatible with CS 1.3.3
CoffeeScript
mit
ewr/AssetGallery,ewr/AssetGallery,ewr/AssetGallery
e200bbe06b408e1ca3773ddeef81bb50e29cd432
.atom/packages.cson
.atom/packages.cson
packages: [ "autocomplete-python" "fold-functions" "language-ini" "linter" "linter-pep8" "linter-python-pep8" "markdown-preview-plus" "package-sync" "python-indent" ]
packages: [ "auto-detect-indentation" "autocomplete-python" "fold-functions" "language-ini" "linter" "linter-pep8" "linter-python-pep8" "markdown-preview-plus" "package-sync" "python-indent" ]
Add indentation auto detection to Atom
Add indentation auto detection to Atom
CoffeeScript
mit
janwh/dotfiles
ed11be52a3e18ee345e80513d5a8d8de66d952b2
.config/config.cson
.config/config.cson
"*": editor: tabLength: 4 fontFamily: "Menlo" softTabs: false autoIndentOnPaste: false invisibles: {} lineHeight: 1.3 fontSize: 11 core: themes: [ "atom-light-ui" "phoenix-syntax" ] disabledPackages: [ "snippets" "SFTP-deployment" "spell-check" ...
"*": editor: tabLength: 4 fontFamily: "Menlo" softTabs: false autoIndentOnPaste: false invisibles: {} lineHeight: 1.3 fontSize: 11 core: themes: [ "atom-light-ui" "phoenix-syntax" ] disabledPackages: [ "snippets" "SFTP-deployment" "spell-check" ...
Add setting for proposed "Show Wrap Icon" option
Add setting for proposed "Show Wrap Icon" option Fingers crossed this gets merged into the package's upstream. See also: atom/find-and-replace#618
CoffeeScript
isc
Alhadis/Atom-PhoenixTheme
a740f049c1bd25a3b6b5004ceb5a73b923c94bbe
src/scripts/workbench/views/sensor/map_view.js.coffee
src/scripts/workbench/views/sensor/map_view.js.coffee
class Workbench.Views.SensorMapView extends Backbone.Marionette.ItemView template: false initialize: -> @zoom = 13 onDestroy: -> @map.remove() if @map onShow: -> if @el.id is "" console.warn "No Map Element" else @location = [@model.get("latitude"), @model.get("longitude")] ...
class Workbench.Views.SensorMapView extends Backbone.Marionette.ItemView template: false initialize: -> @zoom = 13 onDestroy: -> @map.remove() if @map onShow: -> if @el.id is "" console.warn "No Map Element" else @location = [@model.get("latitude"), @model.get("longitude")] ...
Use AWM tiles for small sensor map
Use AWM tiles for small sensor map
CoffeeScript
mit
GeoSensorWebLab/asw-workbench,GeoSensorWebLab/Arctic-Scholar-Portal,GeoSensorWebLab/Arctic-Scholar-Portal,GeoSensorWebLab/asw-workbench,GeoSensorWebLab/asw-workbench
be75e1f10893b2b88a463918ff51e2cc4adf5a3d
app/assets/javascripts/utils.js.coffee
app/assets/javascripts/utils.js.coffee
window.Tahi ||= {} Tahi.utils = toCamel: (string) -> string.replace /(\-[a-z])/g, ($1) -> $1.toUpperCase().replace "-", "" windowHistory: -> window.history bindColumnResize: -> $(window).off('resize.columns').on 'resize.columns', => @resizeColumnHeaders() resizeColumnHeaders: -> $...
window.Tahi ||= {} Tahi.utils = toCamel: (string) -> string.replace /(\-[a-z])/g, ($1) -> $1.toUpperCase().replace "-", "" windowHistory: -> window.history bindColumnResize: -> $(window).off('resize.columns').on 'resize.columns', => @resizeColumnHeaders() resizeColumnHeaders: -> $...
Support logging correctly when msg is mutated
Support logging correctly when msg is mutated
CoffeeScript
mit
johan--/tahi,johan--/tahi,johan--/tahi,johan--/tahi
c2c07bba0c8ab8cb5271a9c80b43d62be073e0f4
config/plugins/coffeelint.coffee
config/plugins/coffeelint.coffee
module.exports = (lineman) -> config: loadNpmTasks: lineman.config.application.loadNpmTasks.concat('grunt-coffeelint') prependTasks: common: lineman.config.application.prependTasks.common.concat('coffeelint') coffeelint: app: [ lineman.config.files.coffee.app ]
module.exports = (lineman) -> config: loadNpmTasks: lineman.config.application.loadNpmTasks.concat('grunt-coffeelint') prependTasks: common: lineman.config.application.prependTasks.common.concat('coffeelint') coffeelint: app: ["<%= files.coffee.app %>", "<%= files.coffee.spec %>"] watch...
Add watch support + use grunt variable expansion
Add watch support + use grunt variable expansion * `lineman run` will now catch linting problems as you work * Spec files will now trigger lint failures * Switched to the familiar (at least relative to the rest of lineman), string-variable expansion version of specifying glob references. This is nice because it exp...
CoffeeScript
bsd-3-clause
aranasoft/lineman-coffeelint
c77feac9c0a7ef93f914c03c06f7fe913293765a
client/components/LangCorrector.coffee
client/components/LangCorrector.coffee
React = require('react') import { withRouter, Redirect } from 'react-router' import stripLabel from '../lib/stripLabel' import withLang from '../lib/withLang' correctUrl = (url, lang) -> if not url.startsWith("/material/") return url url = stripLabel(url) if lang == "ru" return url.replac...
React = require('react') import { withRouter, Redirect } from 'react-router' import stripLabel from '../lib/stripLabel' import withLang from '../lib/withLang' correctUrl = (url, lang) -> if not url.startsWith("/material/") return url url = stripLabel(url) if lang == "ru" return url #.repl...
Fix redirects for cf problems
Fix redirects for cf problems
CoffeeScript
agpl-3.0
petr-kalinin/algoprog,petr-kalinin/algoprog,petr-kalinin/algoprog,petr-kalinin/algoprog
302c0ab3ddbce7e1d953a322f4e5f3837490749e
menus/latex-friend.cson
menus/latex-friend.cson
'context-menu': 'atom-text-editor': [ { 'label': 'Sync PDF' 'command': 'latex-friend:syncpdf' } { 'label': 'Show structure' 'command': 'latex-friend:showNavigation' } { 'label': 'Show structure pane' 'command': 'latex-friend:showNavigationPane' } { ...
'context-menu': 'atom-text-editor[data-grammar*="text tex"]': [ { 'label': 'Sync PDF' 'command': 'latex-friend:syncpdf' } { 'label': 'Show structure' 'command': 'latex-friend:showNavigation' } { 'label': 'Show structure pane' 'command': 'latex-friend:showNavigat...
Hide menu items in non-latex environment.
Hide menu items in non-latex environment. Hide latex-related menu items in non-latex environment, as the menu items are not working in other source files except for tex files.
CoffeeScript
mit
ruivieira/latex-friend
e227d54e31e98192b940d15723f83fe5ee0bad3f
menus/symbols-view.cson
menus/symbols-view.cson
'menu': [ { 'label': 'Packages' 'submenu': [ 'label': 'Symbols' 'submenu': [ { 'label': 'File Symbols', 'command': 'symbols-view:toggle-file-symbols' } { 'label': 'Project Symbols', 'command': 'symbols-view:toggle-project-symbols' } ] ] } ] 'context-menu': '.overlaye...
'menu': [ { 'label': 'Packages' 'submenu': [ 'label': 'Symbols' 'submenu': [ { 'label': 'File Symbols', 'command': 'symbols-view:toggle-file-symbols' } { 'label': 'Project Symbols', 'command': 'symbols-view:toggle-project-symbols' } ] ] } ] 'context-menu': '.overlaye...
Use next context menu format
Use next context menu format
CoffeeScript
mit
changjej/symbols-view,spencerlyon2/symbols-view,harai/atom-gnu-global,spencerlyon2/symbols-view,rodumani/symbols-view,atom/symbols-view,rodumani/symbols-view,changjej/symbols-view,kainwinterheart/symbols-view,harai/atom-gnu-global
b3cbb015a5c28589b03cf44adb7079645fbda2da
Gulpfile.coffee
Gulpfile.coffee
require 'coffee-script/register' gulp = require 'gulp' coffee = require 'gulp-coffee' mocha = require 'gulp-mocha' shell = require 'gulp-shell' gulp.task 'coffee', -> gulp.src(['retro.coffee', 'libretro_h.coffee']) .pipe(coffee()) .pipe(gulp.dest '.') gulp.task 'mocha', ['gyp', 'coffee'], -> gulp.src(['test.co...
require 'coffee-script/register' gulp = require 'gulp' coffee = require 'gulp-coffee' mocha = require 'gulp-mocha' shell = require 'gulp-shell' gulp.task 'coffee', -> gulp.src(['retro.coffee', 'libretro_h.coffee']) .pipe(coffee()) .pipe(gulp.dest '.') gulp.task 'mocha', ['gyp', 'coffee'], -> gulp.src(['test.co...
Make build script work on Win32.
Make build script work on Win32.
CoffeeScript
mit
matthewbauer/node-retro,matthewbauer/node-retro,matthewbauer/node-retro,matthewbauer/node-retro
7f1b41e12253512c2365dd3495c27870ac07f70a
src/assets/javascripts/backdrop.coffee
src/assets/javascripts/backdrop.coffee
imagesLoaded = require 'imagesloaded' module.exports = class Backdrop constructor: ({ @$el, @$window, @$body }) -> # Wait for images to load before scaling @$el.imagesLoaded => @scale() scale: -> [width, height] = dimensions = @dimensions() @$el .addClass('is-ready') .css ...
imagesLoaded = require 'imagesloaded' module.exports = class Backdrop constructor: ({ @$el, @$window, @$body }) -> # Wait for images to load before scaling @$el.imagesLoaded => @scale() scale: -> { width, height } = dimensions = @dimensions() @$el .addClass('is-ready') .css tr...
Fix bug with off screen images
Fix bug with off screen images
CoffeeScript
mit
artsy/2014.artsy.net,ladanazita/2014.artsy.net,ladanazita/2014.artsy.net,artsy/2014.artsy.net,ladanazita/2014.artsy.net,artsy/2014.artsy.net
40948c2641dfeb6b8d37893b198bc8f7ecdec577
webpack.config.coffee
webpack.config.coffee
'use strict' pkg = require './package.json' node_modules = __dirname + '/node_modules' ExtractTextPlugin = require('extract-text-webpack-plugin') environment = process.env.NODE_ENV module.exports = cache : true resolve : extensions: ['', '.cjsx', '.coffee', '.js', '.json', '...
'use strict' pkg = require './package.json' node_modules = __dirname + '/node_modules' ExtractTextPlugin = require('extract-text-webpack-plugin') environment = process.env.NODE_ENV module.exports = cache : true resolve : extensions: ['', '.cjsx', '.coffee', '.js', '.json', '...
Configure webpack dev server to accept connections from mobile
Configure webpack dev server to accept connections from mobile
CoffeeScript
mit
KerenChandran/react-toolbox,react-toolbox/react-toolbox,showings/react-toolbox,KerenChandran/react-toolbox,showings/react-toolbox,DigitalRiver/react-atlas,rubenmoya/react-toolbox,soyjavi/react-toolbox,jasonleibowitz/react-toolbox,rubenmoya/react-toolbox,react-toolbox/react-toolbox,jasonleibowitz/react-toolbox,Magneticm...
64f87a5961f177d51b3a68198a4a0b85376d1298
app/assets/javascripts/jazz.js.coffee
app/assets/javascripts/jazz.js.coffee
# http://stackoverflow.com/questions/4214731/coffeescript-global-variables root = exports ? this root.decorate_minus_button = (e) -> e.click -> target_name = $(this).data('for') target = $('input#'+target_name) min = if target.attr('min') then target.attr('min') else 0 if target.val() val = Math...
# http://stackoverflow.com/questions/4214731/coffeescript-global-variables root = exports ? this root.decorate_minus_button = (e) -> e.click -> target_name = $(this).data('for') target = $('input#'+target_name) min = if target.attr('min') then target.attr('min') else 0 if target.val() val = Math...
Allow links to still 'work' within tr[data-target]
Allow links to still 'work' within tr[data-target]
CoffeeScript
mit
aisrael/jazz,aisrael/jazz
118e62143c41288209872a0980905764b7fe393f
scripts/views/workspace/content/search-results-item.coffee
scripts/views/workspace/content/search-results-item.coffee
define [ 'jquery' 'underscore' 'backbone' 'marionette' 'cs!collections/media-types' 'cs!helpers/enable-dnd' 'hbs!templates/workspace/content/search-results-item' ], ($, _, Backbone, Marionette, mediaTypes, enableContentDragging, searchResultsItemTemplate) -> # Search Result Views (workspace) # ------...
define [ 'jquery' 'underscore' 'backbone' 'marionette' 'cs!collections/media-types' 'cs!helpers/enable-dnd' 'hbs!templates/workspace/content/search-results-item' ], ($, _, Backbone, Marionette, mediaTypes, enableContentDragging, searchResultsItemTemplate) -> # Search Result Views (workspace) # ------...
Fix broken editor link for new media
Fix broken editor link for new media
CoffeeScript
agpl-3.0
oerpub/bookish,oerpub/github-bookeditor,oerpub/bookish,oerpub/github-bookeditor,oerpub/github-bookeditor
f86dd2b9562456ef5e43d2450c32b25c60ba18e1
gulpfile.coffee
gulpfile.coffee
gulp = require 'gulp' webserver = require 'gulp-webserver' coffee = require 'gulp-coffee' concat = require 'gulp-concat' filter = require 'gulp-filter' uglify = require 'gulp-uglify' main_bf = require 'main-bower-files' gulp.task 'webserver', -> gulp.src './' .pipe webserver livereload: ...
gulp = require 'gulp' webserver = require 'gulp-webserver' coffee = require 'gulp-coffee' concat = require 'gulp-concat' filter = require 'gulp-filter' uglify = require 'gulp-uglify' main_bf = require 'main-bower-files' gulp.task 'webserver', -> gulp.src './' .pipe webserver livereload: ...
Move gulp watch to top level task
Move gulp watch to top level task
CoffeeScript
mit
sortelli/tankbeta,sortelli/tankbeta,sortelli/tankbeta,sortelli/tankbeta
d78ed248fbc6926145cc4d47888edbf3d0ba521c
server/entry.coffee
server/entry.coffee
Meteor.startup -> Accounts.urls.resetPassword = (token) -> Meteor.absoluteUrl('reset-password/' + token) AccountsEntry = settings: {} config: (appConfig) -> @settings = _.extend(@settings, appConfig) @AccountsEntry = AccountsEntry Meteor.methods entryValidateSignupCode: (signupCode) ->...
Meteor.startup -> Accounts.urls.resetPassword = (token) -> Meteor.absoluteUrl('reset-password/' + token) AccountsEntry = settings: {} config: (appConfig) -> @settings = _.extend(@settings, appConfig) @AccountsEntry = AccountsEntry Meteor.methods entryValidateSignupCode: (signupCode) ->...
Add profile to server account create user
Add profile to server account create user
CoffeeScript
mit
vhmh2005/accounts-entry,jpatzer/accounts-entry,andykingking/accounts-entry,andykingking/accounts-entry,dovrosenberg/accounts-entry,meteorblackbelt/accounts-entry,RiffynInc/meteor-accounts-entry,benmgreene/accounts-entry,jg3526/accounts-entry,mauriciovieira/accounts-entry,dovrosenberg/accounts-entry,maxkferg/accounts-en...
9091b79ee41675a2ca99c38ab76d95e113ce6d77
brunch-config.coffee
brunch-config.coffee
exports.config = # See http://brunch.readthedocs.org/en/latest/config.html for documentation. paths: public: 'public' files: javascripts: joinTo: 'js/app.js': /^app/ stylesheets: joinTo: 'ss/app.css': /^app\/styles/ plugins: sass: debug: 'comments' so...
exports.config = # See http://brunch.readthedocs.org/en/latest/config.html for documentation. paths: public: 'public' files: javascripts: joinTo: 'js/app.js': /^app/ stylesheets: joinTo: 'ss/app.css': /^app\/styles/
Add sourcemaps back for devtools use
Add sourcemaps back for devtools use
CoffeeScript
mit
mgarbacz/existential.io
977d39fcaaec8efea60f78d21a66c3f0824bee4f
KVEnumeration.coffee
KVEnumeration.coffee
extend = (object, properties) -> for key, val of properties object[key] = val object enumNames=[] #C like enum class KVEnumeration #Registered enums #Static function that creates an enum object value. Uniqueness guarantied by object reference. #This objects's unique own field is the KVEnumeration name. ...
extend = (object, properties) -> for key, val of properties object[key] = val object enumNames=[] #C like enum class Enumeration #Registered enums #Static function that creates an enum object value. Uniqueness guarantied by object reference. #This objects's unique own field is the Enumeration name. It's...
Update to Enumeration + pretty function updated
Update to Enumeration + pretty function updated
CoffeeScript
mit
sveinburne/enumerationjs,sveinburne/enumerationjs
6670d0714c6bcb587cfc0b92ff0eba8fbcf8929f
home/.atom/config.cson
home/.atom/config.cson
"*": "exception-reporting": userId: "1e725750-c66d-33e4-9fce-f627ac32bde5" "release-notes": viewedVersion: "0.94.0" welcome: showOnStartup: false metrics: userId: "c2f08243ecb4a9bc44bd9e46d4f067086d9357e3" editor: fontSize: 11 showInvisibles: true showIndentGuide: true invisibl...
"*": "exception-reporting": userId: "1e725750-c66d-33e4-9fce-f627ac32bde5" "release-notes": viewedVersion: "0.94.0" welcome: showOnStartup: false metrics: userId: "c2f08243ecb4a9bc44bd9e46d4f067086d9357e3" editor: fontSize: 11 showInvisibles: true showIndentGuide: true invisibl...
Set various dotfile file types using the file-types package in atom.
Set various dotfile file types using the file-types package in atom.
CoffeeScript
mit
alphabetum/dotfiles,alphabetum/dotfiles,alphabetum/dotfiles,alphabetum/dotfiles
060f46be0bb339537ac1be8a4e4e542702baa9ff
app/assets/javascripts/startups.js.coffee
app/assets/javascripts/startups.js.coffee
initialize = () -> $markets = $("#startup_market_list") $markets.tokenInput "http://api.angel.co/1/search?type=MarketTag", crossDomain: true, queryParam: "query", prePopulate: $markets.data('pre'), theme: "facebook", tokenLimit: 3, tokenValue: "name" $ -> $body = $('bod...
$ -> $body = $('body') bodyClass = $body.attr 'class' routes = ['startups-new', 'startups-edit'] if bodyClass in ['startups-new', 'startups-edit'] $markets = $("#startup_market_list") $markets.tokenInput "http://api.angel.co/1/search?type=MarketTag", crossDomain: true, ...
Add equalHeights to Startup cards
Add equalHeights to Startup cards
CoffeeScript
mit
SoPR/sopr-platform,SoPR/sopr-platform
3f0e94296245c64ad338623a16f30f717ec04212
lib/image-editor-status-view.coffee
lib/image-editor-status-view.coffee
{$, View} = require 'atom-space-pen-views' {CompositeDisposable} = require 'atom' ImageEditor = require './image-editor' module.exports = class ImageEditorStatusView extends View @content: -> @div class: 'status-image inline-block', => @span class: 'image-size', outlet: 'imageSizeStatus' initialize: (@s...
{$, View} = require 'atom-space-pen-views' {CompositeDisposable} = require 'atom' ImageEditor = require './image-editor' module.exports = class ImageEditorStatusView extends View @content: -> @div class: 'status-image inline-block', => @span class: 'image-size', outlet: 'imageSizeStatus' initialize: (@s...
Use new status bar tile API
Use new status bar tile API
CoffeeScript
mit
atom/image-view
a1171a497e6dbadfa9c626947c077c6c75352217
client/router.coffee
client/router.coffee
parse_pararms = (querystring) -> params = {} querystring = querystring.split('&') for qs in querystring continue if not qs pair = qs.split('=') params[decodeURIComponent pair[0]] = decodeURIComponent pair[1] params Meteor.Router.add '/': -> Session.set('params', parse_pararms @querystring) ...
parse_pararms = (querystring) -> params = {} querystring = querystring.split('&') for qs in querystring continue if not qs pair = qs.split('=') params[decodeURIComponent pair[0]] = decodeURIComponent pair[1] params Meteor.Router.add '/': -> Session.set('params', parse_pararms @querystring) ...
Clarify wording in comment about routing deprecated event URLs
Clarify wording in comment about routing deprecated event URLs
CoffeeScript
mit
pennlabs/eventsatpenn-meteor
14dca91f3fba869d0783384272b8dfb702476f64
protractor.conf.coffee
protractor.conf.coffee
config = seleniumAddress: 'http://localhost:4444/wd/hub' specs: [ 'docs/app/src/**/.coffee' ] module.exports = config
config = seleniumAddress: 'http://localhost:4444/wd/hub' specs: [ 'docs/app/src/**/*.coffee' ] module.exports = config
Fix ptrotractor missing coffee files
Fix ptrotractor missing coffee files
CoffeeScript
mit
efacilitation/eventric
7de9da49ac5353fca4b830d4c83504c524966771
components/inquiry_questionnaire/views/inquiry.coffee
components/inquiry_questionnaire/views/inquiry.coffee
_ = require 'underscore' StepView = require './step.coffee' Form = require '../../form/index.coffee' ArtworkInquiry = require '../../../models/artwork_inquiry.coffee' defaultMessage = require '../../contact/default_message.coffee' template = -> require('../templates/inquiry.jade') arguments... module.exports = class I...
_ = require 'underscore' StepView = require './step.coffee' Form = require '../../form/index.coffee' ArtworkInquiry = require '../../../models/artwork_inquiry.coffee' defaultMessage = require '../../contact/default_message.coffee' template = -> require('../templates/inquiry.jade') arguments... module.exports = class I...
Handle form validation properly when setting
Handle form validation properly when setting
CoffeeScript
mit
eessex/force,cavvia/force-1,dblock/force,erikdstock/force,cavvia/force-1,joeyAghion/force,eessex/force,izakp/force,artsy/force-public,eessex/force,dblock/force,oxaudo/force,anandaroop/force,TribeMedia/force-public,damassi/force,damassi/force,yuki24/force,mzikherman/force,oxaudo/force,cavvia/force-1,anandaroop/force,joe...
d6351d1c7b2128241ed0e48c3c8b0aa835e646b3
lib/utils/web-entry.cjsx
lib/utils/web-entry.cjsx
React = require 'react' Router = require 'react-router' find = require 'lodash/collection/find' filter = require 'lodash/collection/filter' createRoutes = require 'create-routes' app = require 'app' # TODO add extra file watcher here to reload config when file add/removed # TODO check if this is called when a new file...
React = require 'react' Router = require 'react-router' find = require 'lodash/collection/find' filter = require 'lodash/collection/filter' createRoutes = require 'create-routes' app = require 'app' # TODO add extra file watcher here to reload config when file add/removed # TODO check if this is called when a new file...
Add hook so sites can respond to route changes
Add hook so sites can respond to route changes
CoffeeScript
mit
gatsbyjs/gatsby,mingaldrichgan/gatsby,mickeyreiss/gatsby,gesposito/gatsby,chiedo/gatsby,chiedo/gatsby,gatsbyjs/gatsby,danielfarrell/gatsby,ChristopherBiscardi/gatsby,fk/gatsby,gatsbyjs/gatsby,Khaledgarbaya/gatsby,gatsbyjs/gatsby,0x80/gatsby,fabrictech/gatsby,mingaldrichgan/gatsby,okcoker/gatsby,Khaledgarbaya/gatsby,rot...
f84402c4cfe44ed0ca32cd80053a0beafb293731
src/app/text-mate-scope-selector.coffee
src/app/text-mate-scope-selector.coffee
PEG = require 'pegjs' fsUtils = require 'fs-utils' module.exports = class TextMateScopeSelector @parser: null @createParser: -> unless TextMateScopeSelector.parser? patternPath = require.resolve('text-mate-scope-selector-pattern.pegjs') TextMateScopeSelector.parser = PEG.buildParser(fsUtils.read(p...
PEG = require 'pegjs' fsUtils = require 'fs-utils' module.exports = class TextMateScopeSelector @parser: null @createParser: -> unless TextMateScopeSelector.parser? patternPath = require.resolve('text-mate-scope-selector-pattern.pegjs') TextMateScopeSelector.parser = PEG.buildParser(fsUtils.read(p...
Rename selector ivar to source
Rename selector ivar to source
CoffeeScript
mit
SlimeQ/atom,abcP9110/atom,charleswhchan/atom,0x73/atom,pengshp/atom,AlisaKiatkongkumthon/atom,rlugojr/atom,n-riesco/atom,Arcanemagus/atom,devoncarew/atom,tjkr/atom,matthewclendening/atom,KENJU/atom,abcP9110/atom,constanzaurzua/atom,Jdesk/atom,jacekkopecky/atom,alfredxing/atom,hpham04/atom,devoncarew/atom,chfritz/atom,s...
715594ad6086df24c0be034741489f9cbc524cc4
app/assets/javascripts/common.js.coffee
app/assets/javascripts/common.js.coffee
initYandexShare = (element) -> setTimeout (() -> Ya.share2(element)), 0 $ -> simplemdeId = document.querySelectorAll('.edit_event')[0].id if simplemdeId? new SimpleMDE element: document.getElementById("event_description") indentWithTabs: false promptURLs: true spellChecker: false ...
initYandexShare = (element) -> setTimeout (() -> Ya.share2(element)), 0 $ -> simplemdeId = document.querySelectorAll('.edit_event')[0]?.id simplemdeId ||= document.getElementById('new_event')?.id if simplemdeId? new SimpleMDE element: document.getElementById("event_description") indentWithTabs: ...
Fix md editor on event creation
Fix md editor on event creation
CoffeeScript
mit
NNRUG/it52-rails,NNRUG/it52-rails,NNRUG/it52-rails,NNRUG/it52-rails,NNRUG/it52-rails
de41e7a3da92d6f3ef9ad608732ef96c9019724a
app/assets/javascripts/commits.js.coffee
app/assets/javascripts/commits.js.coffee
class CommitsList @data = ref: null limit: 0 offset: 0 @disable = false @showProgress: -> $('.loading').show() @hideProgress: -> $('.loading').hide() @init: (ref, limit) -> $(".day-commits-table li.commit").live 'click', (event) -> if event.target.nodeName != "A" locat...
class CommitsList @data = ref: null limit: 0 offset: 0 @disable = false @showProgress: -> $('.loading').show() @hideProgress: -> $('.loading').hide() @init: (ref, limit) -> $("body").on "click", ".day-commits-table li.commit", (event) -> if event.target.nodeName != "A" ...
Replace jquery deprecated .live with .on
Replace jquery deprecated .live with .on
CoffeeScript
mit
ksoichiro/gitlabhq,ksoichiro/gitlabhq,kotaro-dev/gitlab-6-9,ksoichiro/gitlabhq,kotaro-dev/gitlab-6-9,kotaro-dev/gitlab-6-9,ksoichiro/gitlabhq
aca0ba79acc90c3a212e3dc4d7c86c3ad1f43e63
app/assets/utensils/detect/detect.coffee
app/assets/utensils/detect/detect.coffee
#= require utensils/utensils class utensils.Detect # Describes browser detection for transition end events # utensils.Detect.transition.end # utensils.Detect.hasTransition @transition = (=> transitionEnd = (-> el = document.createElement("tranny") transEndEventNames = WebkitTransition:...
#= require utensils/utensils class utensils.Detect # Describes browser detection for transition end events # utensils.Detect.transition.end # utensils.Detect.hasTransition @transition = (=> transitionEnd = (-> el = document.createElement("tranny") transEndEventNames = WebkitTransition:...
Remove transition end for MS and Opera
Remove transition end for MS and Opera MS has moved to the standard and Opera is moving to blink
CoffeeScript
mit
modeset/utensils,modeset/utensils,modeset/utensils
f3a20bdc85358944a6c03e4701659f55d039c4b6
coffee/cilantro/ui/concept/search.coffee
coffee/cilantro/ui/concept/search.coffee
define [ '../core' '../search' ], (c, search)-> # Takes a collection of concepts to filter/get the concept model instances # for rendering class ConceptSearch extends search.Search className: 'concept-search search' events: 'input typeahead:selected': 'focusConcept' ...
define [ '../core' '../search' ], (c, search)-> # Takes a collection of concepts to filter/get the concept model instances # for rendering class ConceptSearch extends search.Search className: 'concept-search search' events: 'typeahead:selected input': 'focusConcept' ...
Fix reversed events hash for ConceptSearch, add autocomplete handler
Fix reversed events hash for ConceptSearch, add autocomplete handler
CoffeeScript
bsd-2-clause
chop-dbhi/cilantro,chop-dbhi/cilantro,chop-dbhi/cilantro
b6e92f815ee73283590865c06f41ae840169b1a2
spec/header-cells/string-cell-spec.coffee
spec/header-cells/string-cell-spec.coffee
describe 'HeaderCells StringCell', -> HeaderCell = require '../../lib/javascripts/header-cells/string-cell' initView = ({ model } = {}) -> model ?= new Backbone.Model label: 'header cell label' new HeaderCell { model } showView = -> initView(arguments...).render() it 'renders the label', -> e...
describe 'HeaderCells StringCell', -> HeaderCell = require '../../lib/javascripts/header-cells/string-cell' initView = ({ model } = {}) -> model ?= new Backbone.Model label: 'header cell label' new HeaderCell { model } showView = -> initView(arguments...).render() it 'renders the label', -> e...
Fix header cells string cell className spec
Fix header cells string cell className spec
CoffeeScript
mit
juanca/marionette-tree,juanca/marionette-tree
6e83c10e0ef2732e48cf6cf895a7fee308212e59
src/coffee/cilantro/models/query.coffee
src/coffee/cilantro/models/query.coffee
define [ '../core' './base' ], (c, base) -> class QueryModel extends base.Model parse: (attrs) -> if attrs? and not attrs.shared_users? attrs.shared_users = [] return attrs class QueryCollection extends base.Collection model: QueryModel ...
define [ '../core' './base' ], (c, base) -> class QueryModel extends base.Model parse: (attrs) -> super if attrs? and not attrs.shared_users? attrs.shared_users = [] return attrs class QueryCollection extends base.Collection model: ...
Add call to super in QueryModel parse() method
Add call to super in QueryModel parse() method
CoffeeScript
bsd-2-clause
chop-dbhi/cilantro,chop-dbhi/cilantro,chop-dbhi/cilantro
e25aece700363a318c903a37bdc43001bdd02d17
src/app/repository-status-handler.coffee
src/app/repository-status-handler.coffee
Git = require 'git-utils' fsUtils = require 'fs-utils' path = require 'path' module.exports = loadStatuses: (repoPath) -> repo = Git.open(repoPath) if repo? workingDirectoryPath = repo.getWorkingDirectory() statuses = {} for path, status of repo.getStatus() statuses[path.join(workin...
Git = require 'git-utils' fsUtils = require 'fs-utils' path = require 'path' module.exports = loadStatuses: (repoPath) -> repo = Git.open(repoPath) if repo? workingDirectoryPath = repo.getWorkingDirectory() statuses = {} for filePath, status of repo.getStatus() statuses[path.join(wo...
Use filePath instead of path as variable name
Use filePath instead of path as variable name
CoffeeScript
mit
yalexx/atom,deoxilix/atom,chfritz/atom,ppamorim/atom,Galactix/atom,woss/atom,lpommers/atom,liuderchi/atom,mdumrauf/atom,seedtigo/atom,kc8wxm/atom,devmario/atom,rlugojr/atom,chengky/atom,helber/atom,seedtigo/atom,DiogoXRP/atom,Abdillah/atom,acontreras89/atom,Klozz/atom,Austen-G/BlockBuilder,vjeux/atom,brumm/atom,yalexx/...
5d4cf8581b47963388c1b587c0ea2c3c98167f16
src/scripts/models/search-results.coffee
src/scripts/models/search-results.coffee
define (require) -> Backbone = require('backbone') settings = require('cs!settings') SEARCH_URI = "#{location.protocol}//#{settings.cnxarchive.host}:#{settings.cnxarchive.port}/search" return class SearchResults extends Backbone.Model url: () -> "#{SEARCH_URI}#{@query}" defaults: query: ...
define (require) -> Backbone = require('backbone') settings = require('cs!settings') SEARCH_URI = "#{location.protocol}//#{settings.cnxarchive.host}:#{settings.cnxarchive.port}/search" FILTER_NAMES = { "authorID": "Author" "keyword": "Keyword" "type": "Type" "pubYear": "Publication Date" "...
Update parser to handle new search api response
Update parser to handle new search api response
CoffeeScript
agpl-3.0
Connexions/webview,dak/webview,Connexions/webview,katalysteducation/webview,carolinelane10/webview,dak/webview,katalysteducation/webview,dak/webview,katalysteducation/webview,Connexions/webview,Connexions/webview,katalysteducation/webview
450068dba26f05ac5445fd3d3621074f8972c2d1
test/support/test_helpers.coffee
test/support/test_helpers.coffee
Walrus = require '../../bin/walrus' fs = require 'fs' path = require 'path' exec = require( 'child_process' ).exec TestHelpers = read : ( filename ) -> fs.readFileSync filename, 'utf8' if path.existsSync filename pass : ( specs, suffix='' ) -> for file in fs.readdirSync specs when path.extname( file ) is...
Walrus = require '../../bin/walrus' fs = require 'fs' path = require 'path' exec = require( 'child_process' ).exec TestHelpers = read : ( filename ) -> fs.readFileSync filename, 'utf8' if path.existsSync filename pass : ( specs, suffix='' ) -> for file in fs.readdirSync specs when path.extname( file ) is...
Fix diffing when using fallback spec
Fix diffing when using fallback spec
CoffeeScript
mit
jeremyruppel/walrus
a5723e36b29f9db233a61c04e69f476957cce0e0
src/components/icon.cjsx
src/components/icon.cjsx
React = require 'react' BS = require 'react-bootstrap' module.exports = React.createClass displayName: 'Icon' propTypes: type: React.PropTypes.string className: React.PropTypes.string tooltip: React.PropTypes.string tooltipProps: React.PropTypes.object getDefaultProps: -> tooltipPro...
React = require 'react' BS = require 'react-bootstrap' classnames = require 'classnames' module.exports = React.createClass displayName: 'Icon' propTypes: type: React.PropTypes.string.isRequired spin: React.PropTypes.bool className: React.PropTypes.string tooltip: React.PropTypes.string ...
Use classnames and add spin animation support
Use classnames and add spin animation support
CoffeeScript
agpl-3.0
openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js
e8d68d577804dcfd67a6707d18a031a2f2d113b7
menus/tree-view.cson
menus/tree-view.cson
'menu': [ { 'label': 'View' 'submenu': [ 'label': 'Toggle Tree View' 'command': 'tree-view:toggle' ] } { 'label': 'Packages' 'submenu': [ 'label': 'Tree View' 'submenu': [ { 'label': 'Focus', 'command': 'tree-view:toggle-focus' } { 'label': 'Toggle', 'co...
'menu': [ { 'label': 'View' 'submenu': [ 'label': 'Toggle Tree View' 'command': 'tree-view:toggle' ] } { 'label': 'Packages' 'submenu': [ 'label': 'Tree View' 'submenu': [ { 'label': 'Focus', 'command': 'tree-view:toggle-focus' } { 'label': 'Toggle', 'co...
Add Reveal context menu to pane item views
Add Reveal context menu to pane item views Closes #70
CoffeeScript
mit
Galactix/tree-view,laituan245/tree-view,cgrabowski/webgl-studio-tree-view,samu/tree-view,tbryant/tree-view,tomekwi/tree-view,atom/tree-view,jarig/tree-view,learn-co/learn-ide-tree,pombredanne/tree-view-1,ALEXGUOQ/tree-view,matthewbauer/tree-view,jasonhinkle/tree-view,thgaskell/tree-view,rajendrant/tree-view-remote,ayum...
496597950f0751e68e5eb22199b445c4ca744d66
client/lanes/extension/Extensions.coffee
client/lanes/extension/Extensions.coffee
Lanes.Extensions = { instances: {} register: (klass)-> instance = new klass this.instances[klass.prototype.identifier] = instance instance.onRegistered?() fireOnAvailable: (application)-> instance.onAvailable?(application) for identifier, instance of @instances setBoo...
Lanes.Extensions = { instances: {} register: (klass)-> instance = new klass this.instances[klass.prototype.identifier] = instance instance.onRegistered?() fireOnAvailable: (application)-> instance.onAvailable?(application) for identifier, instance of @instances setBoo...
Make NS for components on extensions
Make NS for components on extensions
CoffeeScript
mit
argosity/lanes,argosity/hippo,argosity/hippo,argosity/lanes,argosity/lanes,argosity/hippo
ea3e09b0336a19049eb3bd681099c7f6a34ad224
core/app/backbone/models/evidence.coffee
core/app/backbone/models/evidence.coffee
class window.Evidence extends Backbone.Model class window.OpinionatersEvidence extends Evidence # TODO: eventually, fetching this model should populate # the collection, not the other way around initialize: (attributes, options) -> @_fact_id = options.fact_id ? @collection.fact.id @on 'change:use...
class window.Evidence extends Backbone.Model class window.OpinionatersEvidence extends Evidence # TODO: eventually, fetching this model should populate # the collection, not the other way around initialize: (attributes, options) -> @_fact_id = options.fact_id ? @collection.fact.id @on 'change', =...
Use 'parse' function to set necessary properties on the page
Use 'parse' function to set necessary properties on the page
CoffeeScript
mit
Factlink/factlink-core,Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core,daukantas/factlink-core,daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core
0d4ba9c51bc0fb34a943a15811853a32fbd110bd
workers/auth/lib/auth/main.coffee
workers/auth/lib/auth/main.coffee
{argv} = require 'optimist' koding = require './bongo' koding.connect() AuthWorker = require './authworker' {authWorker} = require argv.c authWorker = new AuthWorker koding, authWorker.authResourceName authWorker.connect()
{argv} = require 'optimist' koding = require './bongo' koding.connect() AuthWorker = require './authworker' {authWorker,librato} = require argv.c processMonitor = (require 'processes-monitor').start name : "Auth Worker #{process.pid}" stats_id: "worker.auth." + process.pid interval : 30000 librato: librato ...
Add auth stats to librato
Add auth stats to librato
CoffeeScript
agpl-3.0
jack89129/koding,rjeczalik/koding,rjeczalik/koding,rjeczalik/koding,alex-ionochkin/koding,usirin/koding,acbodine/koding,gokmen/koding,jack89129/koding,acbodine/koding,andrewjcasal/koding,sinan/koding,kwagdy/koding-1,szkl/koding,mertaytore/koding,gokmen/koding,gokmen/koding,koding/koding,szkl/koding,mertaytore/koding,ko...
df4ee31aaf9ed9ea265216bbb5620a117babb68f
app/assets/javascripts/commits.js.coffee
app/assets/javascripts/commits.js.coffee
class CommitsList @data = ref: null limit: 0 offset: 0 @disable = false @showProgress: -> $('.loading').show() @hideProgress: -> $('.loading').hide() @init: (ref, limit) -> $(".day-commits-table li.commit").live 'click', (event) -> if event.target.nodeName != "A" locat...
class CommitsList @data = ref: null limit: 0 offset: 0 @disable = false @showProgress: -> $('.loading').show() @hideProgress: -> $('.loading').hide() @init: (ref, limit) -> $("body").on "click", ".day-commits-table li.commit", (event) -> if event.target.nodeName != "A" ...
Replace jquery deprecated .live with .on
Replace jquery deprecated .live with .on
CoffeeScript
mit
8thcolor/rubyconfau2015-sadr,8thcolor/eurucamp2014-htdsadr,8thcolor/eurucamp2014-htdsadr,8thcolor/rubyconfau2015-sadr,8thcolor/rubyconfau2015-sadr,8thcolor/eurucamp2014-htdsadr
26f21abcf3ca15eb91b00820a3220c79381b2382
src/browser/atom-protocol-handler.coffee
src/browser/atom-protocol-handler.coffee
app = require 'app' fs = require 'fs' path = require 'path' protocol = require 'protocol' # Handles requests with 'atom' protocol. # # It's created by {AtomApplication} upon instantiation and is used to create a # custom resource loader for 'atom://' URLs. # # The following directories are searched in order: # * ~/....
app = require 'app' fs = require 'fs' path = require 'path' protocol = require 'protocol' # Handles requests with 'atom' protocol. # # It's created by {AtomApplication} upon instantiation and is used to create a # custom resource loader for 'atom://' URLs. # # The following directories are searched in order: # * ~/....
Remove ivar only used in constructor
Remove ivar only used in constructor
CoffeeScript
mit
ppamorim/atom,brettle/atom,BogusCurry/atom,fedorov/atom,florianb/atom,Abdillah/atom,ivoadf/atom,FoldingText/atom,dannyflax/atom,medovob/atom,Mokolea/atom,toqz/atom,matthewclendening/atom,johnrizzo1/atom,AlisaKiatkongkumthon/atom,bolinfest/atom,beni55/atom,jordanbtucker/atom,atom/atom,darwin/atom,SlimeQ/atom,vcarrera/at...
bf0b596073218c84e8336d73ba9cc944af6af51b
src/views/service-map-disclaimers.coffee
src/views/service-map-disclaimers.coffee
define [ 'i18next', 'app/views/base' ], ( {t: t}, {SMItemView: SMItemView} ) -> ServiceMapDisclaimersView: class ServiceMapDisclaimersView extends SMItemView template: 'description-of-service' className: 'content modal-dialog about' serializeData: -> lang: p13n.ge...
define [ 'i18next', 'app/views/base' ], ( {t: t}, {SMItemView: SMItemView} ) -> ServiceMapDisclaimersView: class ServiceMapDisclaimersView extends SMItemView template: 'description-of-service' className: 'content modal-dialog about' events: 'click .uservoice-link'...
Make feedback link work in service description.
Make feedback link work in service description.
CoffeeScript
agpl-3.0
City-of-Helsinki/servicemap,vaaralav/servicemap,vaaralav/servicemap,City-of-Helsinki/servicemap,vaaralav/servicemap,City-of-Helsinki/servicemap
26b296f488c104a99cfde7000e2e8af7488ec792
app/assets/javascripts/backbone/views/home_view.js.coffee
app/assets/javascripts/backbone/views/home_view.js.coffee
ProjectMonitor.Views ||= {} class ProjectMonitor.Views.HomeView extends Backbone.View tagName: "ol" className: "projects" template: JST["backbone/templates/home"] initialize: (options) -> @subviews = [] @addTileView(tile) for tile in @collection.models @collection.on 'reset', => for view in...
ProjectMonitor.Views ||= {} class ProjectMonitor.Views.HomeView extends Backbone.View tagName: "ol" className: "projects" template: JST["backbone/templates/home"] initialize: (options) -> @_addTileView(tile) for tile in @collection.models @collection.on 'reset', => for cid,view of @subViews ...
Remove subviews array from home view
Remove subviews array from home view
CoffeeScript
mit
BuildingSync/projectmonitor,pivotal/projectmonitor,dgodd/projectmonitor,pivotal/projectmonitor,mabounassif/projectmonitor-docker,remind101/projectmonitor,genebygene/projectmonitor,mabounassif/projectmonitor-docker,BuildingSync/projectmonitor,remind101/projectmonitor,BuildingSync/projectmonitor,remind101/projectmonitor,...
d65cfcf1042a3069a52e7917c2064dcdae8a9215
app/assets/javascripts/home.js.coffee
app/assets/javascripts/home.js.coffee
# Place all the behaviors and hooks related to the matching controller here. # All this logic will automatically be available in application.js. # You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/ $("document").ready -> $(".point1").popover placement: "right" content: "We have...
# 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/ $("document").ready -> $(".point1").popover placement: "right" content: "We have...
Fix embarassing typo in one of the popovers on the homepage
Fix embarassing typo in one of the popovers on the homepage
CoffeeScript
mit
coshx/coshx,coshx/coshx,coshx/coshx
771eff2608637d35db204321e2c23dcc3d02815d
apps/user/profile/index.coffee
apps/user/profile/index.coffee
Backbone = require 'backbone' mediator = require '../../../lib/mediator.coffee' template = -> require('../templates/partials/_channel_groups.jade') arguments... { QUERY } = require("sharify").data class ProfileView extends Backbone.View loading: false disabled: false threshold: -500 page: 2 initialize: -> ...
Backbone = require 'backbone' { QUERY, PROFILE_CHANNELS, SORT } = require("sharify").data mediator = require '../../../lib/mediator.coffee' ChannelGroupView = require '../../../components/channel_block_group/view.coffee' template = -> require('../templates/partials/_channel_groups.jade') arguments... class ProfileVie...
Handle random sort on the client
Handle random sort on the client
CoffeeScript
mit
aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell
008e47dc65de9e5a8b818f711a077b8c6b29e9f9
client/lanes/components/shared/Input.cjsx
client/lanes/components/shared/Input.cjsx
class Lanes.Components.Input extends Lanes.React.Component mixins: [ Lanes.Components.Form.FieldMixin ] formGroupClass: 'input' getDefaultProps: -> type: 'text' propTypes: unlabled: React.PropTypes.bool getValue: -> @refs.input.getValue() handleKeyDown: ...
class Lanes.Components.Input extends Lanes.React.Component NUMBER_TEST: /^-?\d+(\.\d+)?$/ mixins: [ Lanes.Components.Form.FieldMixin ] propTypes: unlabled: React.PropTypes.bool onlyNumeric: React.PropTypes.bool getDefaultProps: -> type: 'text' getValue: -> ...
Store invalid decimal values in state, apply later
Store invalid decimal values in state, apply later This is needed so you can type '0.' before finishing with 0.2 for instance
CoffeeScript
mit
argosity/hippo,argosity/lanes,argosity/lanes,argosity/hippo,argosity/lanes,argosity/hippo
d981bfd791ef247b6daae7aac24cbde56641f320
src/app/components/directive.coffee
src/app/components/directive.coffee
'use strict' angular.module("ngFillHeight.directives") .directive 'ngFillHeight', ($parse) -> ngFillHeightLink = (scope, element, attrs) -> ngFillHeightOption = ($parse attrs.ngFillHeight)(scope) if typeof ngFillHeightOption isnt 'object' console.error 'The value of ngFillHeight has to be a...
'use strict' angular.module("ngFillHeight.directives") .directive 'ngFillHeight', ($parse) -> ngFillHeightLink = (scope, element, attrs) -> ngFillHeightOption = ($parse attrs.ngFillHeight)(scope) if typeof ngFillHeightOption isnt 'object' console.error 'The value of ngFillHeight has to be a...
Add capacity to inform a minHeight property
Add capacity to inform a minHeight property
CoffeeScript
mit
TimeoutZero/ng-fill-height
28da62349852a8944f9c3b82ee4db86e163d1b2c
app/assets/javascripts/residences.js.coffee
app/assets/javascripts/residences.js.coffee
# This function handles copying address fields from existing addresses. copyAddress = -> selected_address_id = +$(this)[0].value match = null address_fields = $(this).closest('div.address-fields') addresses = address_fields.find('div.applicant-addresses').data('applicant-addresses') for address in addresses ...
# This function handles copying address fields from existing addresses. copyAddress = -> selected_address_id = +$(this)[0].value match = null address_fields = $(this).closest('div.address-fields') addresses = address_fields.find('div.applicant-addresses').data('applicant-addresses') for address in addresses ...
Fix copying state from addresses
Fix copying state from addresses
CoffeeScript
mit
dclegalhackers/districthousing,adelevie/districthousing,jrunningen/districthousing,dmjurg/districthousing,dmjurg/districthousing,jrunningen/districthousing,MetricMike/districthousing,jrunningen/districthousing,uncompiled/districthousing,jrunningen/districthousing,lankyfrenchman/dchousing-apps,uncompiled/districthousing...
fabd19f43cf278edd779285c22de32ada699d047
lib/app/logout.coffee
lib/app/logout.coffee
# # Logout helpers. # request = require 'superagent' opts = require '../options' { parse } = require 'url' redirectBack = require './redirectback' @denyBadLogoutLinks = (req, res, next) -> if parse(req.get 'Referrer').hostname.match 'artsy.net' next() else next new Error "Malicious logout link." @logout ...
# # Logout helpers. # request = require 'superagent' opts = require '../options' { parse } = require 'url' redirectBack = require './redirectback' @denyBadLogoutLinks = (req, res, next) -> if parse(req.get 'Referrer').hostname.match 'artsy.net' next() else next new Error "Malicious logout link." @logout ...
Make sure to clear session explicitly when logging out
[Logout] Make sure to clear session explicitly when logging out
CoffeeScript
mit
artsy/artsy-passport
945db9572f60770c64d7c0b72e93fac89ca15ff7
lib/linter-php.coffee
lib/linter-php.coffee
linterPath = atom.packages.getLoadedPackage("linter").path Linter = require "#{linterPath}/lib/linter" class LinterPhp extends Linter # The syntax that the linter handles. May be a string or # list/tuple of strings. Names should be all lowercase. @syntax: ['text.html.php', 'source.php'] # A string, list, tupl...
linterPath = atom.packages.getLoadedPackage("linter").path Linter = require "#{linterPath}/lib/linter" {CompositeDisposable} = require 'atom' class LinterPhp extends Linter # The syntax that the linter handles. May be a string or # list/tuple of strings. Names should be all lowercase. @syntax: ['text.html.php', ...
Revert "Use options to observe phpExecutablePath config"
Revert "Use options to observe phpExecutablePath config" This reverts commit 4f52e2ca452c18dedc15d01ffb9acdeed28d8964.
CoffeeScript
mit
AtomLinter/linter-php,AtomLinter/linter-php
8736a4d89a30d90ebe3cb098c4c9b497260a9a93
lib/deprecation-cop-view.coffee
lib/deprecation-cop-view.coffee
{$, $$, ScrollView} = require 'atom' Grim = require 'grim' module.exports = class DeprecationCopView extends ScrollView @content: -> @div class: 'deprecation-cop pane-item', tabindex: -1, => @div class: 'panel', => @div class: 'panel-heading', "Deprecated calls" @ul outlet: 'list', class: '...
{$, $$, ScrollView} = require 'atom' Grim = require 'grim' module.exports = class DeprecationCopView extends ScrollView @content: -> @div class: 'deprecation-cop pane-item', tabindex: -1, => @div class: 'panel', => @div class: 'panel-heading', "Deprecated calls" @ul outlet: 'list', class: '...
Sort by deprecated method calls
Sort by deprecated method calls
CoffeeScript
mit
atom/deprecation-cop
250e25765471df8c58dceea0ccaf65d8054e147a
lib/sensu-dashboard/assets/javascripts/views/events/list.coffee
lib/sensu-dashboard/assets/javascripts/views/events/list.coffee
namespace 'SensuDashboard.Views.Events', (exports) -> class exports.List extends SensuDashboard.Views.List name: 'events/list' initialize: -> @autocomplete_view = @options.autocomplete_view @autocomplete_view.delegate = this super itemClass: -> exports.ListItem resolvedCol...
namespace 'SensuDashboard.Views.Events', (exports) -> class exports.List extends SensuDashboard.Views.List name: 'events/list' initialize: -> @autocomplete_view = @options.autocomplete_view @autocomplete_view.delegate = this super itemClass: -> exports.ListItem resolvedCol...
Use strpos for faster event output filtering
Use strpos for faster event output filtering
CoffeeScript
mit
pantheon-systems/sensu-dashboard,pantheon-systems/sensu-dashboard,sensu/sensu-dashboard,sensu/sensu-dashboard
9da5772148174a4a09932935c5a0e4b87a3644a1
lineman/app/js/controllers/proposal_pie_chart_controller.coffee
lineman/app/js/controllers/proposal_pie_chart_controller.coffee
angular.module('loomioApp').controller 'ProposalPieChartController', ($scope) -> $scope.pieChartData = [ { value : 0, color : "#90D490" }, { value : 0, color : "#F0BB67" }, { value : 0, color : "#D49090" }, { value : 0, color : "#dd0000"} ] $scope.pieChartOptions = animation: false segme...
angular.module('loomioApp').controller 'ProposalPieChartController', ($scope) -> $scope.pieChartData = [ { value : 0, color : "#90D490" }, { value : 0, color : "#F0BB67" }, { value : 0, color : "#D49090" }, { value : 0, color : "#dd0000" }, { value : 0, color : "#cccccc" } ] $scope.pieChartO...
Make empty pie chart appear on proposal page
Make empty pie chart appear on proposal page
CoffeeScript
agpl-3.0
mhjb/loomio,mhjb/loomio,tachyons/loomio,aca13jmf/loomio,Collabforge/site-collabio,isomerase/loomio,digideskio/loomio,juliagra/loomio,wangjun/loomio,wangjun/loomio,codingnutty/loomio,FSFTN/Loomio,Collabforge/site-collabio,HadoDokis/loomio,juliagra/loomio,FSFTN/Loomio,aca13jmf/loomio,piratas-ar/loomio,isomerase/loomio,do...
e0f09b4fd3ce603ae7de83eb89b0aa6efeb89ec6
src/rebuild-module-cache.coffee
src/rebuild-module-cache.coffee
path = require 'path' async = require 'async' Command = require './command' config = require './config' fs = require './fs' module.exports = class RebuildModuleCache extends Command @commandNames: ['rebuild-module-cache'] constructor: -> @atomPackagesDirectory = path.join(config.getAtomDirectory(), 'packages'...
path = require 'path' async = require 'async' Command = require './command' config = require './config' fs = require './fs' module.exports = class RebuildModuleCache extends Command @commandNames: ['rebuild-module-cache'] constructor: -> @atomPackagesDirectory = path.join(config.getAtomDirectory(), 'packages'...
Use forEach to iterate over package folders
Use forEach to iterate over package folders
CoffeeScript
mit
gutsy/apm,bronson/apm,ethanp/apm,bcoe/apm,jlord/apm,jlord/apm,AtaraxiaEta/apm,AtaraxiaEta/apm,jlord/apm,ethanp/apm,jlord/apm,VandeurenGlenn/apm,pusateri/apm,ethanp/apm,jlord/apm,ethanp/apm,gutsy/apm,atom/apm,bcoe/apm,bronson/apm,VandeurenGlenn/apm,fscherwi/apm,bronson/apm,atom/apm,pusateri/apm,bcoe/apm,VandeurenGlenn/a...
0536ff00707cc9ddab3a4ba0740bca0e435c291e
widgets/lecturelist/lecturelist.coffee
widgets/lecturelist/lecturelist.coffee
class Dashing.Lecturelist extends Dashing.Widget ready: -> @currentIndex = 0 @items = $(@node).find('li') @items.hide() @nextItem() @startCarousel() onData: (data) -> @currentIndex = 0 i = 0 if data.items.length == 0 @set 'empty', true startCarousel: -> setInterval...
class Dashing.Lecturelist extends Dashing.Widget ready: -> @currentIndex = 0 @items = $(@node).find('li') @items.hide() @nextItem() @startCarousel() onData: (data) -> @currentIndex = 0 i = 0 if data.items.length == 0 @set 'empty', true startCarousel: -> setInterval...
Change opacity of dots as lectures fade out and in
Change opacity of dots as lectures fade out and in
CoffeeScript
mit
theodi/dashboards,theodi/dashboards,theodi/dashboards
b2d05d2135a573e5bead0800e59f5ee7788aab3e
app/assets/javascripts/neighborly/modules/infinite-scroll.js.coffee
app/assets/javascripts/neighborly/modules/infinite-scroll.js.coffee
Neighborly.InfiniteScroll = setupScroll: -> _.bindAll(this, 'onScroll', 'onSuccess') this.$window().scroll(this.onScroll) fetchPage: -> # the isLoaderDivVisible check if the div is already in the view pane to load more content # the $loader.is(:visible) is here to avoid trigerring two concurrent fe...
Neighborly.InfiniteScroll = setupScroll: -> _.bindAll(this, 'onScroll', 'onSuccess') this.$window().scroll(this.onScroll) fetchPage: -> # the isLoaderDivVisible check if the div is already in the view pane to load more content # the $loader.is(:visible) is here to avoid trigerring two concurrent fe...
Add option to not append the data on infinite scroll module
Add option to not append the data on infinite scroll module
CoffeeScript
mit
jinutm/silverclass,jinutm/silveralms.com,jinutm/silveralms.com,rockkhuya/taydantay,jinutm/silverpro,rockkhuya/taydantay,raksonibs/raimcrowd,MicroPasts/micropasts-crowdfunding,jinutm/silverpro,gustavoguichard/neighborly,jinutm/silverprod,jinutm/silvfinal,jinutm/silverclass,gustavoguichard/neighborly,jinutm/silverme,jinu...
cc2da735c738852fcfaf4d60946b0e47c7eeac13
app/assets/javascripts/polls.js.coffee
app/assets/javascripts/polls.js.coffee
App.Polls = generateToken: -> rand = Math.random().toString(36).substr(2) # remove `0.` token = rand + rand # to make it longer return token replaceToken: -> for link in $('.js-question-answer') token_param = link.search.slice(-6) if token_param == "token=" link.href = link.href...
App.Polls = generateToken: -> token = '' for n in [0..5] rand = Math.random().toString(36).substr(2) # remove `0.` token = token + rand; token = token.substring(0, 64) return token replaceToken: -> for link in $('.js-question-answer') token_param = link.search.slice(-6) ...
Set token to 64 characters
Set token to 64 characters
CoffeeScript
agpl-3.0
consul/consul,consul/consul,AjuntamentdeCastello/consul,consul/consul,usabi/consul_san_borondon,AyuntamientoPuertoReal/decidePuertoReal,AyuntamientoMadrid/participacion,CDJ11/CDJ,AyuntamientoMadrid/participacion,lalibertad/consul,deivid-rodriguez/participacion,AjuntamentdeCastello/consul,AyuntamientoMadrid/consul,lalib...
c8a420e9311d48b7bcc02c19bad009b701d33de0
keymaps/tree-view.cson
keymaps/tree-view.cson
'body': 'meta-\\': 'tree-view:toggle' 'meta-|': 'tree-view:reveal-active-file' '.tree-view': 'right': 'tree-view:expand-directory' 'ctrl-]': 'tree-view:expand-directory' 'left': 'tree-view:collapse-directory' 'ctrl-[': 'tree-view:collapse-directory' 'enter': 'tree-view:open-selected-entry' 'm': 'tree-v...
'body': 'meta-\\': 'tree-view:toggle' 'meta-|': 'tree-view:reveal-active-file' '.tree-view': 'right': 'tree-view:expand-directory' 'ctrl-]': 'tree-view:expand-directory' 'left': 'tree-view:collapse-directory' 'ctrl-[': 'tree-view:collapse-directory' 'enter': 'tree-view:open-selected-entry' 'm': 'tree-v...
Support moving up/down in tree view with k/j keys
Support moving up/down in tree view with k/j keys
CoffeeScript
mit
tomekwi/tree-view,ayumi/tree-view,samu/tree-view,ALEXGUOQ/tree-view,jarig/tree-view,learn-co/learn-ide-tree,Galactix/tree-view,thgaskell/tree-view,cgrabowski/webgl-studio-tree-view,matthewbauer/tree-view,tbryant/tree-view,benjaminRomano/tree-view,atom/tree-view,rajendrant/tree-view-remote,jasonhinkle/tree-view,pombreda...
df44a3c1e2268d623366e2d9ad9379548c9f4f92
atom/snippets.cson
atom/snippets.cson
# Your snippets # # Atom snippets allow you to enter a simple prefix in the editor and hit tab to # expand the prefix into a larger code block with templated values. # # You can create a new snippet in this file by typing "snip" and then hitting # tab. # # An example CoffeeScript snippet to expand log to console.log: #...
# Your snippets # # Atom snippets allow you to enter a simple prefix in the editor and hit tab to # expand the prefix into a larger code block with templated values. # # You can create a new snippet in this file by typing "snip" and then hitting # tab. # # An example CoffeeScript snippet to expand log to console.log: #...
Add a placeholder to rnss snippet
Add a placeholder to rnss snippet That way, the cursor ends up at the right place for entering styles.
CoffeeScript
mit
randycoulman/dotfiles
7736e14ded0029545b2ba05b00b0d25dfbe9fe4a
src/util/render.coffee
src/util/render.coffee
{my} = require '../my' {draw} = require './draw' exports.render = (root) -> T = root.T() get_style = (world) -> { border: "1px solid #{world.get('stroke')}" background: world.get 'fill' height: world.get 'height' width: world.get 'width' } render_children = (world) -> world.ma...
{my} = require '../my' {draw} = require './draw' exports.render = (root) -> T = root.T() get_style = (world) -> { border: "1px solid #{world.get('stroke')}" background: world.get 'fill' height: world.get 'height' width: world.get 'width' position: 'absolute' left: world.get ...
Use x y positioning for controls
Use x y positioning for controls
CoffeeScript
isc
TheSwanFactory/hourofnode,TheSwanFactory/hourofnode
a239fe2ee74e1db0f2aea62458d57a25265a9130
lms/static/coffee/src/main.coffee
lms/static/coffee/src/main.coffee
AjaxPrefix.addAjaxPrefix(jQuery, -> Courseware.prefix) $ -> $.ajaxSetup headers : { 'X-CSRFToken': $.cookie 'csrftoken' } dataType: 'json' window.onTouchBasedDevice = -> navigator.userAgent.match /iPhone|iPod|iPad/i $('body').addClass 'touch-based-device' if onTouchBasedDevice() # $("a[rel*=lean...
AjaxPrefix.addAjaxPrefix(jQuery, -> Courseware.prefix) $ -> $.ajaxSetup headers : { 'X-CSRFToken': $.cookie 'csrftoken' } dataType: 'json' window.onTouchBasedDevice = -> navigator.userAgent.match /iPhone|iPod|iPad/i $('body').addClass 'touch-based-device' if onTouchBasedDevice() # $("a[rel*=lean...
Add google analytics to model signup and login panels
Add google analytics to model signup and login panels [# 40805407]
CoffeeScript
agpl-3.0
wwj718/ANALYSE,cpennington/edx-platform,hamzehd/edx-platform,benpatterson/edx-platform,cecep-edu/edx-platform,Livit/Livit.Learn.EdX,eestay/edx-platform,chauhanhardik/populo,openfun/edx-platform,UOMx/edx-platform,OmarIthawi/edx-platform,kamalx/edx-platform,playm2mboy/edx-platform,pepeportela/edx-platform,apigee/edx-plat...
e4e6957e020de574ee2d455bdbf8f19659ec4b39
components/Store.coffee
components/Store.coffee
noflo = require 'noflo' debug = require('debug') 'noflo-ui:store' exports.getComponent = -> c = new noflo.Component c.inPorts.add 'action', datatype: 'all' c.inPorts.add 'state', datatype: 'object' c.outPorts.add 'pass', datatype: 'object' scoped: false c.state = {} c.tearDown = (callback)...
noflo = require 'noflo' debug = require('debug') 'noflo-ui:store' exports.getComponent = -> c = new noflo.Component c.inPorts.add 'action', datatype: 'all' c.inPorts.add 'state', datatype: 'object' c.outPorts.add 'pass', datatype: 'object' scoped: false c.state = {} c.tearDown = (callback)...
Drop support for legacy bracketed actions
Drop support for legacy bracketed actions
CoffeeScript
mit
noflo/noflo-ui,noflo/noflo-ui
3d78a2f89d57ef29557b44bcc1608243a5133270
lib/minimap-highlight-selected-view.coffee
lib/minimap-highlight-selected-view.coffee
{View} = require 'atom' module.exports = -> highlightSelectedPackage = atom.packages.getLoadedPackage('highlight-selected') highlightSelected = require (highlightSelectedPackage.path) HighlightedAreaView = require (highlightSelectedPackage.path + '/lib/highlighted-area-view') class FakeEditor constructor...
{View} = require 'atom' module.exports = -> highlightSelectedPackage = atom.packages.getLoadedPackage('highlight-selected') highlightSelected = require (highlightSelectedPackage.path) HighlightedAreaView = require (highlightSelectedPackage.path + '/lib/highlighted-area-view') class FakeEditor constructor...
Fix error raised when typing in a mini editor
:bug: Fix error raised when typing in a mini editor
CoffeeScript
mit
atom-minimap/minimap-highlight-selected
7feb9b65333b8009951695e2cc897758f0ae0f36
app/assets/javascripts/videos/infinitescroll.js.coffee
app/assets/javascripts/videos/infinitescroll.js.coffee
$ -> # Don't run on non-video pages return if not $('.videos').length nearBottom = () -> $(window).scrollTop() > $(document).height() - $(window).height() - 600 page = 1 loading = false infiniteScroll = every 200, () -> if not loading and nearBottom() loading = true $('.queue').append...
$ -> # Don't run on non-video pages return if not $('.videos .videoList').length nearBottom = () -> $(window).scrollTop() > $(document).height() - $(window).height() - 600 page = 1 loading = false infiniteScroll = every 200, () -> if not loading and nearBottom() loading = true $('.que...
Return on all videos pages
Return on all videos pages
CoffeeScript
mit
BrettBukowski/CatchLater,BrettBukowski/CatchLater,BrettBukowski/CatchLater
39892b9eebe1633741f57d686fc92b1b378ff15a
tutor/src/components/student-dashboard/event-info-icon.cjsx
tutor/src/components/student-dashboard/event-info-icon.cjsx
React = require 'react' BS = require 'react-bootstrap' S = require '../../helpers/string' {TimeStore} = require '../../flux/time' moment = require 'moment' TH = require '../../helpers/task' module.exports = React.createClass displayName: 'EventInfoIcon' propTypes: event: React.PropTypes.object.isRe...
React = require 'react' BS = require 'react-bootstrap' S = require '../../helpers/string' {TimeStore} = require '../../flux/time' moment = require 'moment' module.exports = React.createClass displayName: 'EventInfoIcon' propTypes: event: React.PropTypes.object.isRequired render: -> {event} =...
Fix logic, task lacks correct keys forTaskHelper
Fix logic, task lacks correct keys forTaskHelper
CoffeeScript
agpl-3.0
openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js
4449d9565b055a576940dc4eb3fda6b75159258b
app/assets/javascripts/helpers/formatted_timestamp.js.coffee
app/assets/javascripts/helpers/formatted_timestamp.js.coffee
Ember.Handlebars.helper 'formattedTime', (time) -> new Handlebars.SafeString $.timeago(time)
Ember.Handlebars.helper 'formattedTime', (time) -> time ||= new Date() new Handlebars.SafeString $.timeago(time)
Set timeago to current time if no time is given
Set timeago to current time if no time is given When objects are initially created by ember, they don't have a 'createdAt' attribute until the promise resolves. new Date() will result in the same markup, so the user won't see a difference when the app receives the server response.
CoffeeScript
mit
johan--/tahi,johan--/tahi,johan--/tahi,johan--/tahi
fd11d1c765b52d370971ef68498bf9ceb79821b4
app/assets/javascripts/neighborly/neighborly.js.coffee
app/assets/javascripts/neighborly/neighborly.js.coffee
#= require_self #= require_tree . window.Neighborly = Common: initPage: -> that = this unless window.Turbolinks is undefined $(document).bind "page:fetch", -> that.Loading.show() $(document).bind "page:restore", -> that.Loading.hide() $(document).bind "pa...
#= require_self #= require_tree . window.Neighborly = Common: initPage: -> that = this unless window.Turbolinks is undefined $(document).bind "page:fetch", -> that.Loading.show() $(document).bind "page:restore", -> that.Loading.hide() $(document).bind "pa...
Add default behavior on disabled buttons
Add default behavior on disabled buttons
CoffeeScript
mit
MicroPasts/micropasts-crowdfunding,rockkhuya/taydantay,jinutm/silverprod,jinutm/silverme,jinutm/silverpro,jinutm/silverprod,jinutm/silvfinal,jinutm/silverclass,jinutm/silverme,raksonibs/raimcrowd,raksonibs/raimcrowd,jinutm/silverme,MicroPasts/micropasts-crowdfunding,MicroPasts/micropasts-crowdfunding,raksonibs/raimcrow...
605000c98ffd25f75b236e460076a8940d9b8cfc
client/app/js/collections/user_list.coffee
client/app/js/collections/user_list.coffee
class @UserList extends Backbone.Collection model: User comparator: (a, b) => aAuthority = a.get('authority') bAuthority = b.get('authority') aName = a.id.toLowerCase() bName = b.id.toLowerCase() if aAuthority < bAuthority then 1 else if aAuthority > bAuthority then -1 else if aNa...
class @UserList extends Backbone.Collection model: User comparator: (a, b) => aAuthority = a.get('authority') bAuthority = b.get('authority') aName = "#{a.id}".toLowerCase() bName = "#{b.id}".toLowerCase() if aAuthority < bAuthority then 1 else if aAuthority > bAuthority then -1 e...
Fix problem with numeric alt names.
Client: Fix problem with numeric alt names. But we should probably be disallowing that anyway...
CoffeeScript
mit
sarenji/pokebattle-sim,sarenji/pokebattle-sim,sarenji/pokebattle-sim
86cba6e9044040baf7b2b411e7faeffe5afb9a85
app/assets/javascripts/admin/products/controllers/edit_units_controller.js.coffee
app/assets/javascripts/admin/products/controllers/edit_units_controller.js.coffee
angular.module("admin.products").controller "editUnitsCtrl", ($scope, VariantUnitManager) -> $scope.product = variant_unit: angular.element('#variant_unit').val() variant_unit_scale: angular.element('#variant_unit_scale').val() $scope.variant_unit_options = VariantUnitManager.variantUnitOptions() if $s...
angular.module("admin.products").controller "editUnitsCtrl", ($scope, VariantUnitManager) -> $scope.product = variant_unit: angular.element('#variant_unit').val() variant_unit_scale: angular.element('#variant_unit_scale').val() $scope.variant_unit_options = VariantUnitManager.variantUnitOptions() if $s...
Remove trailing `.0` from variant unit scale
Remove trailing `.0` from variant unit scale - As VariantUnitManager.variantUnitOptions() returns array formatted like this: `"Weight (g)", "weight_1"` and `product.variant_unit_scale` is formatted like this `weight_1.0` there is no possible match for the <select /> element - So, remove the trailing `.0` from `produ...
CoffeeScript
agpl-3.0
mkllnk/openfoodnetwork,mkllnk/openfoodnetwork,openfoodfoundation/openfoodnetwork,mkllnk/openfoodnetwork,lin-d-hop/openfoodnetwork,mkllnk/openfoodnetwork,Matt-Yorkley/openfoodnetwork,Matt-Yorkley/openfoodnetwork,lin-d-hop/openfoodnetwork,openfoodfoundation/openfoodnetwork,lin-d-hop/openfoodnetwork,Matt-Yorkley/openfoodn...
7e61a188ed04c239842aa4db83905b11e2d94f38
src/utils.coffee
src/utils.coffee
_ = require "underscore" Fuse = require "fuse.js" class Utils @robot: null @findRoom: (msg) -> room = msg.envelope.room if _.isUndefined(room) room = msg.envelope.user.reply_to room @getRoom: (context) -> room = @robot.adapter.client.rtm.dataStore.getChannelOrGroupByName context.message.r...
_ = require "underscore" Fuse = require "fuse.js" class Utils @robot: null @findRoom: (msg) -> room = msg.envelope.room if _.isUndefined(room) room = msg.envelope.user.reply_to room @getRoom: (context) -> room = @robot.adapter.client.rtm.dataStore.getChannelOrGroupByName context.message.r...
Allow for discovery of users for DMs
Allow for discovery of users for DMs
CoffeeScript
mit
ndaversa/hubot-github-bot
b8b507c8f58e69d7df0866b42cc6343f5bc5bedb
src/routing/params.coffee
src/routing/params.coffee
#= require ../hash/hash class Batman.Params extends Batman.Hash constructor: (@hash, @navigator) -> super(@hash) @url = new Batman.UrlParams({}, @navigator, this) @accessor 'url', -> @url class Batman.UrlParams extends Batman.Hash constructor: (@hash, @navigator, @params) -> super(@hash) @rep...
#= require ../hash/hash class Batman.Params extends Batman.Hash constructor: (@hash, @navigator) -> super(@hash) @url = new Batman.UrlParams({}, @navigator, this) @accessor 'url', -> @url class Batman.UrlParams extends Batman.Hash constructor: (@hash, @navigator, @params) -> super(@hash) @rep...
Mark all methods as private
Mark all methods as private
CoffeeScript
mit
getshuvo/batman,getshuvo/batman
8dbd3f8c3b80e0af6a19397759e9701183046e3c
apps/artist/client/index.coffee
apps/artist/client/index.coffee
_ = require 'underscore' Backbone = require 'backbone' Artist = require '../../../models/artist.coffee' CurrentUser = require '../../../models/current_user.coffee' ArtistRouter = require './router.coffee' analytics = require './analytics.coffee' attachArtworkModal = require '../../../components/page_modal/index.coffee'...
_ = require 'underscore' Backbone = require 'backbone' Artist = require '../../../models/artist.coffee' CurrentUser = require '../../../models/current_user.coffee' ArtistRouter = require './router.coffee' analytics = require './analytics.coffee' attachArtworkModal = require '../../../components/page_modal/index.coffee'...
Fix selectors for enabled test
Fix selectors for enabled test
CoffeeScript
mit
oxaudo/force,mzikherman/force,cavvia/force-1,yuki24/force,xtina-starr/force,izakp/force,cavvia/force-1,xtina-starr/force,damassi/force,cavvia/force-1,joeyAghion/force,mzikherman/force,TribeMedia/force-public,kanaabe/force,joeyAghion/force,anandaroop/force,izakp/force,artsy/force,kanaabe/force,dblock/force,joeyAghion/fo...
feed995848a16c370b421bc8ce9f9fab724ad822
atom.symlink/config.cson
atom.symlink/config.cson
"*": core: disabledPackages: [ "linter-pylint" ] themes: [ "seti-ui" "base16-tomorrow-dark-theme" ] editor: fontSize: 13 invisibles: {} "exception-reporting": userId: "da976a4b-6a5d-3f34-7d9b-6bfdb74474ed" "git-diff": showIconsInEditorGutter: true "git-plus": ...
"*": core: disabledPackages: [ "linter-pylint" ] themes: [ "seti-ui" "base16-tomorrow-dark-theme" ] editor: fontSize: 13 invisibles: {} "exception-reporting": userId: "da976a4b-6a5d-3f34-7d9b-6bfdb74474ed" "git-diff": showIconsInEditorGutter: true "git-plus": ...
Change atom seti theme colour to steel
Change atom seti theme colour to steel
CoffeeScript
mit
jamesnoble/dotfiles,jamesnoble/dotfiles,jamesnoble/dotfiles
196e92582c1ca9618b6aef43d64b8fb4358e5c5c
spec/javascripts/fixtures/users.coffee
spec/javascripts/fixtures/users.coffee
window.FIXTURES = {} if window.FIXTURES is undefined FIXTURES.user = (id = 1)-> user: id: id bio: null created_at: "2014-07-04T12:42:41+00:00" email: "foo@bar.name" facebook_url: null linkedin_url: null other_url: null profile_type: "personal" twitter_url: null name: "Foo Bar"...
window.FIXTURES = {} if window.FIXTURES is undefined FIXTURES.user = (id = 1)-> user: id: id bio: null created_at: "2014-07-04T12:42:41+00:00" email: "foo@bar.name" facebook_url: null linkedin_url: null other_url: null profile_type: "personal" twitter_url: null name: "Foo Bar"...
Change user fixture to be an admin
Change user fixture to be an admin
CoffeeScript
mit
FromUte/dune-dashboard,FromUte/dune-dashboard,FromUte/dune-dashboard
2bce35c579a030bf62a8c61c9eeba6c016679b55
src/view/bindings/insertion_binding.coffee
src/view/bindings/insertion_binding.coffee
class Batman.DOM.InsertionBinding extends Batman.DOM.AbstractBinding onlyObserve: Batman.BindingDefinitionOnlyObserve.Data bindImmediately: false constructor: (definition) -> {@invert} = definition super @placeholderNode = document.createComment("batman-insertif=\"#{@keyPath}\"") ready: -> @b...
class Batman.DOM.InsertionBinding extends Batman.DOM.AbstractBinding onlyObserve: Batman.BindingDefinitionOnlyObserve.Data bindImmediately: false constructor: (definition) -> {@invert} = definition super @placeholderNode = document.createComment("batman-insertif=\"#{@keyPath}\"") ready: -> @b...
Fix insertion bindings destroying their nodes rather than removing them
Fix insertion bindings destroying their nodes rather than removing them
CoffeeScript
mit
getshuvo/batman,getshuvo/batman
779b8aa9af73015e83626170a81989d6f3ba9065
app/assets/javascripts/tenon/features/date_time_picker.js.coffee
app/assets/javascripts/tenon/features/date_time_picker.js.coffee
class Tenon.features.DateTimePicker constructor: -> @$els = $("[data-behaviour~='datetime-picker']") @format = "MMM. DD, YYYY [at] hh:mm A" $.each(@$els, @_formatDate) @_enableDateTimePicker() @_setupUnfocus() _formatDate: (i, el) => $el = $(el) if $el.val() != '' && $el.val().match(/^\...
class Tenon.features.DateTimePicker constructor: -> @$els = $("[data-behaviour~='datetime-picker']") @format = "MMM. DD, YYYY [at] hh:mm A Z" $.each(@$els, @_formatDate) @_enableDateTimePicker() @_setupUnfocus() _formatDate: (i, el) => $el = $(el) if $el.val() != '' && $el.val().match(/...
Add UTC offset to the datetime format
Add UTC offset to the datetime format
CoffeeScript
mit
factore/tenon,factore/tenon,factore/tenon,factore/tenon
2662dc8c023afd7a38fb4cc366cb73ae7b8026a4
servers/lib/server/handlers/api/gitlab/testhelpers.coffee
servers/lib/server/handlers/api/gitlab/testhelpers.coffee
# Export generic testhelpers testhelpers = require '../../../../../testhelper' { expect request generateUrl checkBongoConnectivity generateRequestParamsEncodeBody } = testhelpers utils = require './utils' testhelpers.gitlabApiUrl = generateUrl { route : '-/api/gitlab' } testhelpers.gitlabDefaultHeaders = { ...
# Export generic testhelpers testhelpers = require '../../../../../testhelper' { expect request generateUrl checkBongoConnectivity generateRequestParamsEncodeBody } = testhelpers utils = require './utils' testhelpers.gitlabApiUrl = generateUrl { route : '-/api/gitlab' } testhelpers.gitlabDefaultHeaders = { ...
Test helpers for generic requests on tests
GitLab: Test helpers for generic requests on tests
CoffeeScript
agpl-3.0
sinan/koding,acbodine/koding,usirin/koding,mertaytore/koding,kwagdy/koding-1,andrewjcasal/koding,rjeczalik/koding,szkl/koding,cihangir/koding,usirin/koding,mertaytore/koding,jack89129/koding,andrewjcasal/koding,kwagdy/koding-1,usirin/koding,gokmen/koding,drewsetski/koding,acbodine/koding,jack89129/koding,rjeczalik/kodi...
580b9eef2ef2e7f0cfd7dc04d4d7207a2a87dc27
src/RuleProcessor.coffee
src/RuleProcessor.coffee
regexes = nonEnglishOperators: /[&|\||\=]{2}|\!\=/ module.exports = class RuleProcessor rule: name: 'prefer_english_operator' description: ''' This rule prohibits &&, ||, == and !=. Use and, or, is, and isnt instead. ''' level: 'warn' message: 'Don\'t use &&, ||, == and !=' lin...
module.exports = class RuleProcessor rule: name: 'prefer_english_operator' description: ''' This rule prohibits &&, ||, ==, != and !. Use and, or, is, isnt, and not instead. !! for converting to a boolean is ignored. ''' level: 'ignore' doubleNotLevel: 'ignore' message: 'Don\'t use...
Update source to latest in `coffeelint`
Update source to latest in `coffeelint`
CoffeeScript
mit
gasi/coffeelint-prefer-english-operator-streamline
ca8a5f77ce6ce79cad7d22745832d9a79ef26096
app/assets/javascripts/controllers/projects/index.coffee
app/assets/javascripts/controllers/projects/index.coffee
Dashboard.ProjectsTabController = Ember.Controller.extend Dashboard.SearchableBaseController, baseRouteName: 'projects' search: pg_search: null Dashboard.ProjectsSearchController = Dashboard.ProjectsTabController.extend Dashboard.SearchableController, baseRouteName: 'projects'
Dashboard.ProjectsTabController = Ember.Controller.extend Dashboard.SearchableBaseController, baseRouteName: 'projects' search: query: null between_created_at: starts_at: null ends_at: null between_expires_at: starts_at: null ends_at: null between_online_date: starts_a...
Define search fields for projects
Define search fields for projects
CoffeeScript
mit
FromUte/dune-dashboard,FromUte/dune-dashboard,FromUte/dune-dashboard