commit
stringlengths
40
40
old_file
stringlengths
4
264
new_file
stringlengths
4
264
old_contents
stringlengths
0
4.24k
new_contents
stringlengths
1
5.44k
subject
stringlengths
14
778
message
stringlengths
15
9.92k
lang
stringclasses
277 values
license
stringclasses
13 values
repos
stringlengths
5
127k
fb0a43c337c0f73a6cc88fd489add990e78d40b9
lib/js/integrations/slack_integration.coffee
lib/js/integrations/slack_integration.coffee
Slack = require('slack-client') require('events').EventEmitter config = require('../../../config.json').slack; class SlackIntegration constructor: (opts)-> { @token } = opts @slack = new Slack(@token, true, true) @slack.login() @slack_channels = [] @config_channels = config.channels ...
Slack = require('slack-client') require('events').EventEmitter config = require('../../../config.json').slack; class SlackIntegration DEFAULT_MESSAGE = "#{player} is playing #{game}. Go join them!" constructor: (opts)-> { @token } = opts @slack = new Slack(@token, true, true) @slack.login()...
Add default message if none defined in config
Add default message if none defined in config
CoffeeScript
mit
aleccool213/steam-buddy
e551905e2dae5d850f333a8fb249af01cd1d06c1
src/js/tael.coffee
src/js/tael.coffee
# tael.js # Copyright (c) 2015 Carter Hinsley # MIT License module.exports = -> ($ document).ready -> ($ '.tael-container') .append( ($ '<div>') .addClass 'tael-node-leaf' .text 'Hello, world!' )
# tael.js # Copyright (c) 2015 Carter Hinsley # MIT License tiles = [{ type: 'container' }] newTile = (parent) -> # Add a new tile to the `tiles` array. pushTile = -> # Push a new tile to the `tiles` array and return its index. ( tiles.push type: 'leaf' ...
Add `tiles` array and `newTile` function
Add `tiles` array and `newTile` function
CoffeeScript
mit
hinsley-it/maestro,hinsley-it/maestro
3aea8b2900084e40b0a8eff4f440c75ac918a981
spec/spec-helper.coffee
spec/spec-helper.coffee
helper = settingsPath: "#{__dirname}/projects.test.cson" savedProjects: null readFile: (callback) -> callback(helper.projects) writeFile: (projects, callback) -> helper.projects = projects callback?() projects: testproject1: title: "Test project 1" group: "Test" paths: [ ...
helper = settingsPath: "#{__dirname}/projects.test.cson" savedProjects: null readFile: (callback) -> callback(helper.projects) writeFile: (projects, callback) -> helper.projects = projects callback?() projects: testproject1: title: "Test project 1" group: "Test" paths: [ ...
Make test projects diff more
Make test projects diff more
CoffeeScript
mit
douggr/atom-project-manager,UltCombo/atom-project-manager,danielbrodin/atom-project-manager
079505cc1b74323b0b190412624d511461a11e8e
gulp/development/index.coffee
gulp/development/index.coffee
gulp = require 'gulp' sequence = require 'gulp-run-sequence' require('./clean') gulp require('./coffee') gulp require('./jade') gulp require('./scss') gulp require('./vendor') gulp require('./watch') gulp require('./webserver') gulp require('./specs') gulp module.exports = (gulp) -> gulp.task 'build', -> ...
gulp = require 'gulp' sequence = require 'gulp-run-sequence' require('./clean') gulp require('./coffee') gulp require('./jade') gulp require('./scss') gulp require('./vendor') gulp require('./watch') gulp require('./webserver') gulp require('./specs') gulp module.exports = (gulp) -> gulp.task 'build', -> ...
Add "build:once" task without webserver and watcher
Add "build:once" task without webserver and watcher
CoffeeScript
mit
sm0k1nggnu/entertain.io
9a29f976c8055820702e60e593144796cae1e7b7
app/imports/models.coffee
app/imports/models.coffee
if Meteor.isServer Parse = require 'parse/node' else Parse = require 'parse' exports.Survey = Parse.Object.extend 'Survey', getForms: (returnMeteorCollection, collection) -> query = @relation('forms').query() query.find().then (forms) -> if returnMeteorCollection and forms formCollection = ...
if Meteor.isServer Parse = require 'parse/node' else Parse = require 'parse' exports.Survey = Parse.Object.extend 'Survey', getForms: (returnMeteorCollection, collection) -> query = @relation('forms').query() query.find().then (forms) -> if returnMeteorCollection and forms formCollection = ...
Add getQuestions method to Form class
Add getQuestions method to Form class
CoffeeScript
apache-2.0
ecohealthalliance/mobile-survey,ecohealthalliance/mobile-survey,ecohealthalliance/mobile-survey
4c0947a76840cc3c91694f025806df63b2d24b4e
scripts/magnum-ci.coffee
scripts/magnum-ci.coffee
# Description: # Find the build status of an open-source project on Travis # Can also notify about builds, just enable the webhook notification on travis http://about.travis-ci.org/docs/user/build-configuration/ -> 'Webhook notification' # # Dependencies: # # Configuration: # None # # Commands: # hubot travis m...
# Description: # Find the build status of an open-source project on Travis # Can also notify about builds, just enable the webhook notification on travis http://about.travis-ci.org/docs/user/build-configuration/ -> 'Webhook notification' # # Dependencies: # # Configuration: # None # # Commands: # hubot travis m...
Use the slack way of sending message
Use the slack way of sending message
CoffeeScript
mit
ballyhooit/jarvis
c0291513220b954d9a5732f8b0bf365474db9160
spec/title-bar-spec.coffee
spec/title-bar-spec.coffee
TitleBar = require '../src/title-bar' describe "TitleBar", -> it 'updates the title based on document.title when the active pane item changes', -> titleBar = new TitleBar({ workspace: atom.workspace, themes: atom.themes, applicationDelegate: atom.applicationDelegate, }) expect(titleBar...
TitleBar = require '../src/title-bar' describe "TitleBar", -> it "updates the title based on document.title when the active pane item changes", -> titleBar = new TitleBar({ workspace: atom.workspace, themes: atom.themes, applicationDelegate: atom.applicationDelegate, }) expect(titleBar...
Test that updateWindowSheetOffset can be called
Test that updateWindowSheetOffset can be called Testing the wiring to themes isn't worth it, but this at least makes sure we don't break if Electron APIs change.
CoffeeScript
mit
stinsonga/atom,andrewleverette/atom,t9md/atom,FIT-CSE2410-A-Bombs/atom,brettle/atom,andrewleverette/atom,PKRoma/atom,decaffeinate-examples/atom,me-benni/atom,kevinrenaers/atom,Ingramz/atom,helber/atom,Arcanemagus/atom,helber/atom,t9md/atom,tjkr/atom,tjkr/atom,atom/atom,stinsonga/atom,PKRoma/atom,FIT-CSE2410-A-Bombs/ato...
5a10f9e33dfd1aa19c9b3cc794ad23a28fa6e554
app/assets/javascripts/rglossa/data/store.coffee
app/assets/javascripts/rglossa/data/store.coffee
App.Store = DS.Store.extend revision: 11 adapter: App.Adapter.create()
App.Store = DS.Store.extend revision: 11 adapter: 'App.Adapter'
Use a string to specify adapter
Use a string to specify adapter
CoffeeScript
mit
textlab/rglossa,textlab/glossa,textlab/glossa,textlab/rglossa,textlab/glossa,textlab/rglossa,textlab/glossa,textlab/glossa,textlab/rglossa,textlab/rglossa
5dd92c4eebe27d5277314f32063b834a70138ea2
client/app/lib/activity/sidebar/sidebarsharedmachineslist.coffee
client/app/lib/activity/sidebar/sidebarsharedmachineslist.coffee
SidebarMachineList = require './sidebarmachinelist' module.exports = class SidebarSharedMachinesList extends SidebarMachineList constructor: (options = {}, data) -> options.title = 'Shared VMs' options.hasPlusIcon = no options.cssClass = 'shared-machines' { shared, collaboration } = data...
SidebarMachineList = require './sidebarmachinelist' kd = require 'kd' module.exports = class SidebarSharedMachinesList extends SidebarMachineList constructor: (options = {}, data) -> options.title = 'Shared VMs' options.hasPlusIcon = no options.cssClass = 'shared-machines' { shared, coll...
Hide if there is no machine.
SidebarSharedMachinesList: Hide if there is no machine.
CoffeeScript
agpl-3.0
acbodine/koding,alex-ionochkin/koding,koding/koding,usirin/koding,acbodine/koding,gokmen/koding,rjeczalik/koding,szkl/koding,mertaytore/koding,acbodine/koding,cihangir/koding,gokmen/koding,cihangir/koding,usirin/koding,mertaytore/koding,rjeczalik/koding,gokmen/koding,rjeczalik/koding,alex-ionochkin/koding,jack89129/kod...
e50a063814321aa096dd9413dd2887255c9391e5
lib/minimap-highlight-selected-view.coffee
lib/minimap-highlight-selected-view.coffee
module.exports = -> highlightSelectedPackage = atom.packages.getLoadedPackage('highlight-selected') highlightSelected = require (highlightSelectedPackage.path) HighlightedAreaView = require (highlightSelectedPackage.path + '/lib/highlighted-area-view') class FakeEditor constructor: (@minimap) -> getA...
module.exports = -> highlightSelectedPackage = atom.packages.getLoadedPackage('highlight-selected') highlightSelected = require (highlightSelectedPackage.path) HighlightedAreaView = require (highlightSelectedPackage.path + '/lib/highlighted-area-view') class FakeEditor constructor: (@minimap) -> getA...
Fix plugin broken by latest highlight-selected update
:bug: Fix plugin broken by latest highlight-selected update Fixes #8, Closes #7
CoffeeScript
mit
atom-minimap/minimap-highlight-selected
27add78240b95f645117608e6e9c08c3e564c60e
test/features/support/setup.coffee
test/features/support/setup.coffee
module.exports = -> chai = require 'chai' chai.use require 'chai-as-promised' @World.prototype.expect = chai.expect
module.exports = -> chai = require 'chai' @World.prototype.expect = chai.expect
Remove chai-as-promised; it isn’t working properly.
Remove chai-as-promised; it isn’t working properly.
CoffeeScript
mit
marnen/angular-automata,marnen/angular-automata
222f9bb81cdf1be87a15a076594fbeee671188ea
app/assets/javascripts/photographs.js.coffee
app/assets/javascripts/photographs.js.coffee
$(document).ready -> # Photo grid photoGrid = $(".photo-grid") photoGrid.imagesLoaded -> photoGrid.trigger "reload:grid" $(window).resize -> photoGrid.trigger "reload:grid" photoGrid.on "reload:grid", -> opts = wookmarkOptions(calculateGridWidth()) photoGrid.find(".photo, .user-block").wookm...
$(document).ready -> # Photo grid photoGrid = $(".photo-grid") photoGrid.imagesLoaded -> photoGrid.trigger "reload:grid" $(window).resize -> photoGrid.trigger "reload:grid" photoGrid.on "reload:grid", -> opts = wookmarkOptions(calculateGridWidth()) photoGrid.find(".photo, .user-block").wookm...
Fix for slow loading images
Fix for slow loading images
CoffeeScript
mit
robotmay/photographer-io,wangjun/photographer-io,damoguyan8844/photographer-io,laputaer/photographer-io,laputaer/photographer-io,xuewenfei/photographer-io,wangjun/photographer-io,damoguyan8844/photographer-io,xuewenfei/photographer-io,arnkorty/photographer-io,robotmay/photographer-io,wangjun/photographer-io,laputaer/ph...
4a1f5ec0412feae5c67a89c6dd03cee0148a23c0
app/assets/javascripts/rglossa/react/components/centre/search_inputs/cwb_simple_input.jsx.coffee
app/assets/javascripts/rglossa/react/components/centre/search_inputs/cwb_simple_input.jsx.coffee
###* @jsx React.DOM ### window.CwbSimpleInput = React.createClass getInitialState: -> searchText: '' displayedQuery: -> '' handleTextChange: (e) -> console.log('text') @setState(searchText: e.target.value) handleSearch: (e) -> console.log('search') render: -> `<div className="row-...
###* @jsx React.DOM ### window.CwbSimpleInput = React.createClass propTypes: query: React.PropTypes.string.isRequired handleQueryChanged: React.PropTypes.func.isRequired displayedQuery: -> # Take the CQP expression and just remove quotes @props.query.replace(/"/g, '') handleTextChange: (e) -> ...
Convert to and from underlying query in CwbSimpleInput
Convert to and from underlying query in CwbSimpleInput
CoffeeScript
mit
textlab/rglossa,textlab/glossa,textlab/glossa,textlab/glossa,textlab/rglossa,textlab/glossa,textlab/rglossa,textlab/glossa,textlab/rglossa,textlab/rglossa
bd95c44ddbfb605492210326fafdb6b47641bff9
lib/update-package-dependencies.coffee
lib/update-package-dependencies.coffee
{$$, BufferedNodeProcess} = require 'atom' module.exports = activate: -> atom.workspaceView.command 'update-package-dependencies:update', => @update() update: -> view = @createProgressView() atom.workspaceView.append(view) command = atom.packages.getApmPath() args = ['install'] options = ...
{$$, BufferedProcess} = require 'atom' module.exports = activate: -> atom.workspaceView.command 'update-package-dependencies:update', => @update() update: -> view = @createProgressView() atom.workspaceView.append(view) command = atom.packages.getApmPath() args = ['install'] options = {cwd...
Use BufferedProcess instead of BufferedNodeProcess
Use BufferedProcess instead of BufferedNodeProcess
CoffeeScript
mit
atom/update-package-dependencies
34b8f149efd53b7028baf18c8e2bf497e4142b2d
lib/helpers.coffee
lib/helpers.coffee
{Range} = require('atom') path = require 'path' child_process = require('child_process') Helpers = module.exports = error: (e) -> atom.notifications.addError(e.toString(), {detail: e.stack or '', dismissable: true}) shouldTriggerLinter: (linter, onChange, scopes) -> # Trigger lint-on-Fly linters on both ev...
{Range} = require('atom') path = require 'path' child_process = require('child_process') minimatch = require('minimatch') Helpers = module.exports = error: (e) -> atom.notifications.addError(e.toString(), {detail: e.stack or '', dismissable: true}) shouldTriggerLinter: (linter, onChange, scopes) -> # Trigg...
Add minimatch to ignore files matching glob
:new: Add minimatch to ignore files matching glob
CoffeeScript
mit
steelbrain/linter,AtomLinter/Linter,atom-community/linter,Arcanemagus/linter,e-jigsaw/Linter
90a70bb921e16a0e787f33582446d8dd3c00d05a
src/utils/register-foreign.coffee
src/utils/register-foreign.coffee
program = require 'commander' msgflo_nodejs = require 'msgflo-nodejs' fs = require 'fs' path = require 'path' foreigner = require '../foreign-participant' yaml = require 'js-yaml' onError = (err) -> console.log err process.exit 1 onComplete = -> process.exit 0 main = -> program .option('--broker <uri>', ...
program = require 'commander' msgflo_nodejs = require 'msgflo-nodejs' fs = require 'fs' path = require 'path' foreigner = require '../foreign-participant' yaml = require 'js-yaml' onError = (err) -> console.log err process.exit 1 onComplete = -> process.exit 0 main = -> program .option('--broker <uri>', ...
Connect to broker before registering
Connect to broker before registering
CoffeeScript
mit
msgflo/msgflo,msgflo/msgflo,msgflo/msgflo
d9c9a4ada44ed4f2d45e88d73a8af8ea054b909e
client/html.coffee
client/html.coffee
make_element = (name, v) -> e = $ "<#{name}>" e.append v for n in ["label", "div", "span", "button", "img", "figure", "figcaption", "h1", "h2", "h3", "table", "thead", "tfoot", "tbody", "tr", "th", "td", "form", "select", "option"] @[n] = do (n) -> (v) -> make_element n, v
make_element = (name, v) -> e = $ "<#{name}>" e.append v # Make HTML element constructors of the same names as the elements. for n in [# Root element "html", # Document metadata "head", "title", "base", "link", "meta", "style", # Scripting "script", "noscript", "te...
Make constructors for all HTML5 elements.
Make constructors for all HTML5 elements.
CoffeeScript
mit
SvenMichaelKlose/cjx,SvenMichaelKlose/cjx
b9533e4ad7d3075f2effdeeb4cc6d994692fddd6
app/assets/javascripts/google-analytics.js.coffee
app/assets/javascripts/google-analytics.js.coffee
$(document).on 'page:change', -> if window._gaq? _gaq.push ['_trackPageview'] else if window.pageTracker? pageTracker._trackPageview()
if window.history?.pushState and window.history.replaceState document.addEventListener 'page:change', (event) => # Google Analytics if window.ga != undefined ga('set', 'location', location.href.split('#')[0]) ga('send', 'pageview', {"title": document.title}) else if window._gaq != undefined ...
Update Google Analytics script to reflect location of the user
Update Google Analytics script to reflect location of the user
CoffeeScript
mit
Green-Squad/Release-DB,Green-Squad/Release-DB,Green-Squad/Release-DB
e691d4725c5393ab48c916f6024fcea375641d69
atom/dot-atom/projects.glasbren-oryxpro.cson
atom/dot-atom/projects.glasbren-oryxpro.cson
[ { title: "CDS-411 Instructors" group: "CDS-411" paths: [ "~/Courses/CDS-411/instructors" ] } { title: "Spyns" group: "Development" paths: [ "~/Development/spyns" ] } { title: "CSI-702 Spr17: Homework02 Instructor Attempt" group: "CSI-702" paths: [ ...
[ { title: "CDS-411 Instructors" group: "CDS-411" paths: [ "~/Courses/CDS-411/instructors" ] } { title: "Spyns" group: "Development" paths: [ "~/Development/spyns" ] } { title: "CSI-702 Spr17: Homework02 Instructor Attempt" group: "CSI-702" paths: [ ...
Add javascript Ising Model as project
Add javascript Ising Model as project
CoffeeScript
unlicense
jkglasbrenner/dotfiles,jkglasbrenner/dotfiles,jkglasbrenner/dotfiles,jkglasbrenner/dotfiles,jkglasbrenner/dotfiles,jkglasbrenner/dotfiles
d488e79dffd850c48b7792998af007f196425087
client/lanes/components/grid/Selections.cjsx
client/lanes/components/grid/Selections.cjsx
class Lanes.Components.Grid.Selections id: 'selected' query: false textAlign: 'center' fixedWidth: 90 defaultClicked: true constructor: (options) -> @onChange = options.onChange @choices = {} _.bindAll(@, 'onColumnClick') @render = _.partial(@render, _, @) on...
class CheckBox extends Lanes.React.BaseComponent d: -> @props.query.results.xtraData(@props.row) onChange: (ev) -> #, me, results, index) -> @d().selected = ev.target.checked @props.selections.onChange?(@props) @forceUpdate() render: -> selected = @d().selected sele...
Break logic out into a CheckBox component
Break logic out into a CheckBox component
CoffeeScript
mit
argosity/hippo,argosity/lanes,argosity/hippo,argosity/lanes,argosity/hippo,argosity/lanes
ce166d0f1e46a73619c64c1bd27bdd486bd98afc
app/scripts/services.coffee
app/scripts/services.coffee
'use strict' apiResource = ($resource, resource, args) -> $resource "/api/#{resource}/:id" , # Default arguments args , # Override methods query: method: 'GET' isArray: false angular.module('taarifaWaterpointsApp') .factory 'Waterpoint', ($resource) -> apiResource $resource, 'waterpoin...
'use strict' apiResource = ($resource, resource, args) -> $resource "/api/#{resource}/:id" , # Default arguments args , # Override methods query: method: 'GET' isArray: false update: method: 'PUT' angular.module('taarifaWaterpointsApp') .factory 'Waterpoint', ($resource) -> a...
Add update method using PUT to resource factory
Add update method using PUT to resource factory
CoffeeScript
apache-2.0
gwob/Maarifa,gwob/Maarifa,gwob/Maarifa,gwob/Maarifa,gwob/Maarifa
c79eb4f22aebba76668c14514864706477c70a31
client/skr/components/CustomerProjectFinder.cjsx
client/skr/components/CustomerProjectFinder.cjsx
class Skr.Components.CustomerProjectFinder extends Lanes.React.Component propTypes: onModelSet: React.PropTypes.func commands: React.PropTypes.object autoFocus: React.PropTypes.bool name: React.PropTypes.string selectField: React.PropTypes.bool getDefaultProp...
class Skr.Components.CustomerProjectFinder extends Lanes.React.Component propTypes: onModelSet: React.PropTypes.func commands: React.PropTypes.object autoFocus: React.PropTypes.bool name: React.PropTypes.string selectField: React.PropTypes.bool getDefaultProp...
Update fields that are shown
Update fields that are shown
CoffeeScript
agpl-3.0
argosity/stockor,argosity/stockor,argosity/stockor,argosity/stockor
707002707e2d50cf6b61763fce2d477dc0420ec9
client/admin/lib/views/stacks/editors/stacktemplateeditorview.coffee
client/admin/lib/views/stacks/editors/stacktemplateeditorview.coffee
BaseStackEditorView = require './basestackeditorview' module.exports = class StackTemplateEditorView extends BaseStackEditorView constructor: (options = {}, data) -> unless options.content options.content = require '../defaulttemplate' super options, data
BaseStackEditorView = require './basestackeditorview' module.exports = class StackTemplateEditorView extends BaseStackEditorView constructor: (options = {}, data) -> unless options.content options.content = require '../defaulttemplate' super options, data @on 'EditorReady', => return i...
Put introduction text into editor when ready.
StackTemplateEditorView: Put introduction text into editor when ready.
CoffeeScript
agpl-3.0
cihangir/koding,mertaytore/koding,acbodine/koding,usirin/koding,rjeczalik/koding,gokmen/koding,rjeczalik/koding,gokmen/koding,szkl/koding,jack89129/koding,usirin/koding,andrewjcasal/koding,rjeczalik/koding,usirin/koding,drewsetski/koding,koding/koding,koding/koding,kwagdy/koding-1,mertaytore/koding,alex-ionochkin/kodin...
4de78d1705303ed383243a61e0ae60ea695c6b3a
src/scripts/helpers/handlers/analytics.coffee
src/scripts/helpers/handlers/analytics.coffee
define (require) -> Backbone = require('backbone') settings = require('settings') # Class to handle loading analytics scripts and wrapping # handlers around them so that modules don't have to # interact with global variables directly return new class AnalyticsHandler constructor: () -> # Setup te...
define (require) -> Backbone = require('backbone') settings = require('settings') # Class to handle loading analytics scripts and wrapping # handlers around them so that modules don't have to # interact with global variables directly return new class AnalyticsHandler constructor: () -> # Setup te...
Fix issue where not all arguments would be pushed to GA
Fix issue where not all arguments would be pushed to GA
CoffeeScript
agpl-3.0
Connexions/webview,katalysteducation/webview,katalysteducation/webview,dak/webview,Connexions/webview,Connexions/webview,dak/webview,dak/webview,katalysteducation/webview,carolinelane10/webview,katalysteducation/webview,Connexions/webview
e8c694a31f4af7567d12d5281979ee9d379c6225
class/BaseController.coffee
class/BaseController.coffee
class Controller _redirecting: false constructor: (@request, @response, view, layout) -> View = Import 'class.View$cs' @view = new View view, @response @view.setLayout layout beforeLoad: -> beforeRender: -> redirect: (args...) -> if args.length is 2 @response.redirect args[0], args[1] else @re...
class Controller _redirecting: false constructor: (@request, @response, view, layout) -> View = Import 'class.View$cs' @view = new View view, @response @view.setLayout layout beforeAction: -> beforeRender: -> redirect: (args...) -> if args.length is 2 @response.redirect args[0], args[1] else @...
Update base controller to use new beforeLoad api
Update base controller to use new beforeLoad api
CoffeeScript
mpl-2.0
CentricWebEstate/zaphire-framework
c2bb592c9c60cd7c730b61b98dfcb8301ca7536a
lib/toggle-quotes.coffee
lib/toggle-quotes.coffee
toggleQuotes = (editor) -> editor.transact -> for cursor in editor.getCursors() position = cursor.getBufferPosition() toggleQuoteAtPosition(editor, position) cursor.setBufferPosition(position) toggleQuoteAtPosition = (editor, position) -> range = editor.displayBuffer.bufferRangeForScopeAtPosi...
toggleQuotes = (editor) -> editor.transact -> for cursor in editor.getCursors() position = cursor.getBufferPosition() toggleQuoteAtPosition(editor, position) cursor.setBufferPosition(position) toggleQuoteAtPosition = (editor, position) -> range = editor.displayBuffer.bufferRangeForScopeAtPosi...
Handle toggling quoted invalid regions
Handle toggling quoted invalid regions
CoffeeScript
mit
atom/toggle-quotes
f48321779b38d1b580bac121821dcc67b31e8cd8
lib/tempfile-repo-lib.coffee
lib/tempfile-repo-lib.coffee
{File} = require 'file-utils' fs = require 'fs' class LocaleTempFileRepository items : null constructor : (@items = {}) -> setInterval (=> @gc()), 60000 gc : -> console.log 'LocaleTempFileRepository.gc' now = new Date() validUntil = now - 60 for id, item of @items #when item.created < vali...
{File} = require 'file-utils' fs = require 'fs' class LocaleTempFileRepository items : null constructor : (@items = {}) -> setInterval (=> @gc()), 60000 gc : -> console.log 'LocaleTempFileRepository.gc' now = new Date() validUntil = now - 60 for id, item of @items when item.created.getTime...
Delete only files which are generated at least 60 seconds ago.
Delete only files which are generated at least 60 seconds ago.
CoffeeScript
mit
knalli/jenkins-nodejs-watcher
b30e98a5c57c48714a7b1699ebb7536175c8bd95
lib/diff-list-view.coffee
lib/diff-list-view.coffee
{$$, SelectListView} = require 'atom' module.exports = class DiffListView extends SelectListView initialize: -> super @addClass('diff-list-view overlay from-top') getEmptyMessage: -> 'No diffs' getFilterKey: -> 'lineText' attach: -> @storeFocusedElement() atom.workspaceView.appendToT...
{$$, SelectListView} = require 'atom' module.exports = class DiffListView extends SelectListView initialize: -> super @addClass('diff-list-view overlay from-top') getEmptyMessage: (itemCount) -> if itemCount is 0 'No diffs in file' else super getFilterKey: -> 'lineText' attac...
Use default empty message when items exist
Use default empty message when items exist
CoffeeScript
mit
UltCombo/git-diff,atom/git-diff,anjerodesu/git-diff
a1a5ce97ab51a50f80964d35489cbd3b63f0072e
resources/assets/coffee/react/contest-voting.coffee
resources/assets/coffee/react/contest-voting.coffee
# Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0. # See the LICENCE file in the repository root for full licence text. import core from 'osu-core-singleton' import { createElement } from 'react' import { ArtEntryList } from './contest-voting/art-entry-list' import...
# Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0. # See the LICENCE file in the repository root for full licence text. import core from 'osu-core-singleton' import { createElement } from 'react' import { ArtEntryList } from './contest-voting/art-entry-list' import...
Fix render error of contest voting page
Fix render error of contest voting page
CoffeeScript
agpl-3.0
nanaya/osu-web,nanaya/osu-web,nanaya/osu-web,notbakaneko/osu-web,notbakaneko/osu-web,ppy/osu-web,LiquidPL/osu-web,nanaya/osu-web,ppy/osu-web,ppy/osu-web,notbakaneko/osu-web,LiquidPL/osu-web,notbakaneko/osu-web,LiquidPL/osu-web,ppy/osu-web,LiquidPL/osu-web,LiquidPL/osu-web,ppy/osu-web,notbakaneko/osu-web,nanaya/osu-web
f1e7d9c48d120b2cdf09ba197cee0459fa7c5b77
src/util.coffee
src/util.coffee
module.exports = class Util @log: console.log.bind console @logError: console.error.bind console @debug: (object) -> if @isDebug() @log object @isDebug: -> process.env.HUBOT_FLEEP_DEBUG is 'true' or false @parseOptions: -> email : process.env.HUBOT_FLEEP_EMAIL password : proce...
module.exports = class Util @log: console.log.bind console @logError: console.error.bind console @debug: (object) -> if @isDebug() @log object @isDebug: -> process.env.HUBOT_FLEEP_DEBUG is 'true' @parseOptions: -> email : process.env.HUBOT_FLEEP_EMAIL password : process.env.HU...
Remove dangling references to conv IDs and bot name env options
Remove dangling references to conv IDs and bot name env options
CoffeeScript
mit
anroots/hubot-fleep
ff88cd649812a1422ddb186a02299dab589c698c
src/theme-package.coffee
src/theme-package.coffee
Q = require 'q' Package = require './package' module.exports = class ThemePackage extends Package getType: -> 'theme' getStyleSheetPriority: -> 1 enable: -> atom.config.unshiftAtKeyPath('core.themes', @name) disable: -> atom.config.removeAtKeyPath('core.themes', @name) load: -> this activa...
Q = require 'q' Package = require './package' module.exports = class ThemePackage extends Package getType: -> 'theme' getStyleSheetPriority: -> 1 enable: -> atom.config.unshiftAtKeyPath('core.themes', @name) disable: -> atom.config.removeAtKeyPath('core.themes', @name) load: -> @loadTime = 0 ...
Add 0 load time for no-op ThemePackage::load
Add 0 load time for no-op ThemePackage::load
CoffeeScript
mit
n-riesco/atom,FIT-CSE2410-A-Bombs/atom,woss/atom,amine7536/atom,tmunro/atom,acontreras89/atom,ali/atom,ralphtheninja/atom,ReddTea/atom,tisu2tisu/atom,hharchani/atom,synaptek/atom,G-Baby/atom,Dennis1978/atom,gisenberg/atom,Shekharrajak/atom,acontreras89/atom,SlimeQ/atom,alexandergmann/atom,gisenberg/atom,crazyquark/atom...
c33a446759c4a33bb898581c5e64f4fecd0f9433
packages/rocketchat-ui/lib/cordova/urls.coffee
packages/rocketchat-ui/lib/cordova/urls.coffee
Meteor.startup -> return unless Meteor.isCordova # Handle click events for all external URLs $(document).on 'deviceready', -> platform = device.platform.toLowerCase() $(document).on 'click', (e) -> $link = $(e.target).closest('a[href]') return unless $link.length > 0 url = $link.attr('href') if /^h...
Meteor.startup -> return unless Meteor.isCordova # Handle click events for all external URLs $(document).on 'deviceready', -> platform = device.platform.toLowerCase() $(document).on 'click', (e) -> $link = $(e.target).closest('a[href]') return unless $link.length > 0 url = $link.attr('href') if /^h...
Fix open links for Android
Fix open links for Android
CoffeeScript
mit
LeonardOliveros/Rocket.Chat,subesokun/Rocket.Chat,nishimaki10/Rocket.Chat,amaapp/ama,Deepakkothandan/Rocket.Chat,NMandapaty/Rocket.Chat,org100h1/Rocket.Panda,mrinaldhar/Rocket.Chat,Movile/Rocket.Chat,Kiran-Rao/Rocket.Chat,jbsavoy18/rocketchat-1,AlecTroemel/Rocket.Chat,karlprieb/Rocket.Chat,inoxth/Rocket.Chat,Sing-Li/Ro...
61d3da8b8ac6fe8e96c7f1d94f1b40b8546d63e8
src/views/feature-tour-start.coffee
src/views/feature-tour-start.coffee
define [ 'app/views/base', 'app/tour' ], ( base, tour, ) -> class TourStartButton extends base.SMItemView className: 'feature-tour-start' template: 'feature-tour-start' events: 'click .close-button' : 'hideTour' 'click .prompt-button' : 'showTour' ...
define [ 'app/views/base', 'app/tour' ], ( base, tour, ) -> class TourStartButton extends base.SMItemView className: 'feature-tour-start' template: 'feature-tour-start' events: 'click .close-button' : 'hideTour' 'click .prompt-button' : 'showTour' ...
Revert "Prevent tour wizard button from disappearing"
Revert "Prevent tour wizard button from disappearing" This reverts commit 685e422eb1c9897cf1f9a4143a8845a1d186c3ae.
CoffeeScript
agpl-3.0
Zeukkari/servicemap,vaaralav/servicemap,City-of-Helsinki/servicemap,City-of-Helsinki/servicemap,City-of-Helsinki/servicemap,vaaralav/servicemap,Zeukkari/servicemap,vaaralav/servicemap
6f92b9c26d2ed1e29d96d136047666bac981d7c5
lib/search-results-view.coffee
lib/search-results-view.coffee
_ = require 'underscore' {View} = require 'space-pen' Selection = require 'selection' MarkerView = require './marker-view' SearchResultsModel = require './search-results-model' # Will be one of these created per editor. module.exports = class SearchResultsView extends View @content: -> @div class: 'search-resul...
_ = require 'underscore' {View} = require 'space-pen' Selection = require 'selection' MarkerView = require './marker-view' SearchResultsModel = require './search-results-model' # Will be one of these created per editor. module.exports = class SearchResultsView extends View @content: -> @div class: 'search-resul...
Remove the marker views when hideResults
Remove the marker views when hideResults
CoffeeScript
mit
trevdor/find-and-replace,atom/find-and-replace,harai/find-and-replace,bmperrea/find-and-replace
2d9c5d7af46da59a3aa90e5866e839659a1fc921
js/main.coffee
js/main.coffee
--- --- pow2 = (exp) -> base = 1 base *= 2 while exp-- > 0 base recalculate = -> val = 0 for el in document.querySelectorAll '.flag-list input' val += pow2 el.getAttribute 'value' if el.checked document.getElementById('flag').value = val return document.addEventListener 'DOMContentLoaded', -> for el in d...
--- --- pow2 = (exp) -> base = 1 base *= 2 while exp-- > 0 base parse = -> flags = document.querySelectorAll('.flag-list input') max = pow2 flags.length + 1 newValue = parseInt document.getElementById('flag').value, 10 if !newValue return for flag in [flags.length - 1..0] pow = pow2 flag if newValue >=...
Update flag selection on value input
Update flag selection on value input
CoffeeScript
mit
ranisalt/flags-calculator
965fb5153f1825b0c1c8919b589ae3af6624159f
src/coffee/quality.coffee
src/coffee/quality.coffee
edsl = (id, name, description, args = {}) -> {defaultValue, defaultProgress, maxProgress, hasProgress, visible} = args defaultValue ?= 0 defaultProgress ?= 0 maxProgress ?= if hasProgress then 100 else 0 visible ?= true Object.freeze new Quality(id, name, description, defaultValue, defaultProgress, maxProgr...
edsl = (id, name, description, args = {}) -> {defaultValue, defaultProgress, maxProgress, hasProgress, progressEscalation, visible} = args defaultValue ?= 0 defaultProgress ?= 0 maxProgress ?= if hasProgress then 100 else 0 progressEscalation ?= 0.10 visible ?= true Object.freeze new Quality(id, name, des...
Add Increasing Logic to Quality
Add Increasing Logic to Quality
CoffeeScript
unlicense
arashikou/exper3-2015
5442f21ea88df40fa842ee679f04e5b5e382814a
src/aliasify.coffee
src/aliasify.coffee
path = require 'path' transformTools = require 'browserify-transform-tools' getReplacement = (file, aliases)-> if aliases[file] return aliases[file] else fileParts = /^([^\/]*)(\/.*)$/.exec(file) pkg = aliases[fileParts?[1]] if pkg? return pkg+fileParts[2] return...
path = require 'path' transformTools = require 'browserify-transform-tools' getReplacement = (file, aliases)-> if aliases[file] return aliases[file] else fileParts = /^([^\/]*)(\/.*)$/.exec(file) pkg = aliases[fileParts?[1]] if pkg? return pkg+fileParts[2] return...
Fix replacement paths that are absolute paths on Windows
Fix replacement paths that are absolute paths on Windows There is a bug where absolute paths have their backslashes replaced as forward slashes. For relative paths, this is not a problem. However, especially with joeybaker/remapify, it is possible to have absolute paths passed into aliasify, and getting the backslas...
CoffeeScript
mit
benbria/aliasify
293a9e7a7ede35198270842d639cf1b13b1b27f1
test/helper.coffee
test/helper.coffee
prettyPrint = require('html').prettyPrint React = require 'react' assertRendersHtml = (reactComponent, done, expectedHtml) -> if typeof(document) == 'undefined' React.renderComponentToString reactComponent, (html) -> html = html.replace /data-reactid="(.*?)"/g, '' html = html.replace /data-reac...
prettyPrint = require('html').prettyPrint React = require 'react' assertRendersHtml = (reactComponent, done, expectedHtml) -> if typeof(document) == 'undefined' React.renderComponentToString reactComponent, (html) -> html = html.replace /data-reactid="(.*?)"/g, '' html = html.replace /data-reac...
Change how we construct ClickEvents to satisfy PhantomJS.
Change how we construct ClickEvents to satisfy PhantomJS.
CoffeeScript
mit
danielstutzman/basicruby-backend,danielstutzman/basicruby-backend,danielstutzman/basicruby-backend
eaf48706ee41e55f0b51ee55a0688a670c77ac4b
client/ide/lib/views/collaboration/limitedvideocollaborationmodal.coffee
client/ide/lib/views/collaboration/limitedvideocollaborationmodal.coffee
kd = require 'kd' KDView = kd.View KDModalView = kd.ModalView CustomLinkView = require 'app/customlinkview' ComputePlansModalFooterLink = require 'app/providers/computeplansmodalfooterlink' MESSAGES = { free : 'Free accounts are restricted t...
kd = require 'kd' KDView = kd.View KDModalView = kd.ModalView CustomLinkView = require 'app/customlinkview' ComputePlansModalFooterLink = require 'app/providers/computeplansmodalfooterlink' MESSAGES = { free : 'Free accounts are restricted t...
Add defensive check for options.plan
Add defensive check for options.plan
CoffeeScript
agpl-3.0
jack89129/koding,mertaytore/koding,andrewjcasal/koding,cihangir/koding,usirin/koding,acbodine/koding,jack89129/koding,jack89129/koding,drewsetski/koding,sinan/koding,jack89129/koding,gokmen/koding,sinan/koding,kwagdy/koding-1,mertaytore/koding,andrewjcasal/koding,cihangir/koding,usirin/koding,drewsetski/koding,cihangir...
45592e81e4b97fbf7c7a01cef7c2b0897158dcac
app/assets/javascripts/views/textarea.js.coffee
app/assets/javascripts/views/textarea.js.coffee
ETahi.TextArea = Ember.TextArea.extend attributeBindings: [ "name", "type", "value", "model"] focusOut: -> @get('model').save()
ETahi.TextArea = Ember.TextArea.extend attributeBindings: ["name", "type", "value"] focusOut: -> @get('model').save()
Remove model attribute binding from TextArea view
Remove model attribute binding from TextArea view
CoffeeScript
mit
johan--/tahi,johan--/tahi,johan--/tahi,johan--/tahi
da97fcb0abdc2b9b217233cef24ce9b3d6291fb5
app/talk/comment-help.cjsx
app/talk/comment-help.cjsx
React = require 'react' module?.exports = React.createClass displayName: 'TalkCommentHelp' render: -> <div className="talk-comment-help"> <h1>Guide to commenting on talk</h1> <p>Talk comments are written in <a href='http://daringfireball.net/projects/markdown/basics'>markdown</a></p> <p>Ment...
React = require 'react' module?.exports = React.createClass displayName: 'TalkCommentHelp' render: -> <div className="talk-comment-help"> <h1>Guide to commenting on talk</h1> <p>Talk comments are written in <a href='http://daringfireball.net/projects/markdown/basics'>markdown</a></p> <p>Ment...
Add space to help text
Add space to help text - Closes #1376
CoffeeScript
apache-2.0
alexbfree/Panoptes-Front-End,fmnhExhibits/Panoptes-Front-End,alexbfree/Panoptes-Front-End,amyrebecca/Panoptes-Front-End,fmnhExhibits/Panoptes-Front-End,parrish/Panoptes-Front-End,edpaget/Panoptes-Front-End,camallen/Panoptes-Front-End,parrish/Panoptes-Front-End,camallen/Panoptes-Front-End,fmnhExhibits/Panoptes-Front-End...
bdc4270fca98d368cf66950f678443a9a2a2fc82
src/app/pages/tasks/tsTaskEdit.directive.spec.coffee
src/app/pages/tasks/tsTaskEdit.directive.spec.coffee
# Disabled because unittests for directives is extra efforts at the point xdescribe 'tsTaskEdit', () -> beforeEach(module('trackSeatsApp')) beforeEach inject (@$compile, $rootScope, $httpBackend) => $httpBackend.when('GET', '/v1/user/session/').respond({}) @scope = $rootScope.$new() it 'The form has val...
# Disabled because unittests for directives is extra efforts at the point ### xdescribe 'tsTaskEdit', () -> beforeEach(module('trackSeatsApp')) beforeEach inject (@$compile, $rootScope, $httpBackend) => $httpBackend.when('GET', '/v1/user/session/').respond({}) @scope = $rootScope.$new() it 'The form has...
Comment out unittest prototype for ts-task-edit because affected coverage.
Comment out unittest prototype for ts-task-edit because affected coverage.
CoffeeScript
mit
pavelkuchin/tracktrains-ui
75f4748dfa8ed56d10d6316725fa4b4a92d5e102
spec/editor-linter-spec.coffee
spec/editor-linter-spec.coffee
describe 'editor-linter', -> EditorLinter = require('../lib/editor-linter') editorLinter = null textEditor = null beforeEach -> waitsForPromise -> atom.workspace.destroyActivePaneItem() atom.workspace.open('test.txt').then -> editorLinter?.deactivate() textEditor = atom.workspace...
describe 'editor-linter', -> EditorLinter = require('../lib/editor-linter') editorLinter = null textEditor = null beforeEach -> waitsForPromise -> atom.workspace.destroyActivePaneItem() atom.workspace.open('/tmp/test.txt').then -> editorLinter?.deactivate() textEditor = atom.work...
Fix a spec that was saving a test file to disk it no longer saves to cwd now, it saves to tmp
:bug: Fix a spec that was saving a test file to disk it no longer saves to cwd now, it saves to tmp
CoffeeScript
mit
JohnMurga/linter,e-jigsaw/Linter,atom-community/linter,AtomLinter/Linter,steelbrain/linter,shawninder/linter,blakeembrey/linter,levity/linter,Arcanemagus/linter,DanPurdy/linter,UltCombo/linter,AsaAyers/linter
9a5f4bfae5e1d801e4bf926efb621fc4d041ed2a
client/src/views/section_navigation_view.coffee
client/src/views/section_navigation_view.coffee
window.Backbone ||= {} window.Backbone.Views ||= {} class Backbone.Views.SectionNavigationView extends Backbone.View template: Handlebars.templates['section_navigation.hbs'] className: 'section-navigation' initialize: (options) -> @sections = options.sections @listenTo @sections, 'add', @render @li...
window.Backbone ||= {} window.Backbone.Views ||= {} class Backbone.Views.SectionNavigationView extends Backbone.View template: Handlebars.templates['section_navigation.hbs'] className: 'section-navigation' initialize: (options) -> @sections = options.sections @listenTo @sections, 'add', @render @li...
Make reordering sections save them
Make reordering sections save them
CoffeeScript
bsd-3-clause
unepwcmc/NRT,unepwcmc/NRT
57dfed9f17fa108d00eca4efc5b3620ee9fc12e3
app/assets/javascripts/foundation_extras.js.coffee
app/assets/javascripts/foundation_extras.js.coffee
App.FoundationExtras = initialize: -> $(document).foundation() $(window).trigger "load.zf.sticky" $(window).trigger "resize" clearSticky = -> $("[data-sticky]").foundation("destroy") if $("[data-sticky]").length $(document).on("page:before-unload", clearSticky)
App.FoundationExtras = initialize: -> $(document).foundation() $(window).trigger "load.zf.sticky" $(window).trigger "resize" clearSticky = -> $("[data-sticky]").foundation("destroy") if $("[data-sticky]").length $(document).on("page:before-unload", clearSticky) window.addEventListene...
Reset sticky component before clicking back button on browser
Reset sticky component before clicking back button on browser
CoffeeScript
agpl-3.0
AyuntamientoMadrid/consul,AyuntamientoMadrid/consul,AyuntamientoMadrid/consul,AyuntamientoMadrid/consul
2455919853624d74cc927adc9f902bef0f5642b4
src/stats.coffee
src/stats.coffee
#<< main lol.stats = names: armor: "Armor" ap: "Ability Power" ad: "Attack Damage" as: "Attack Speed" crit: "Critical Hit Chance" critDmg: "Critical Hit Damage" health: "Health" mana: "Mana" mr: "Magic Resist" ms: "Movement Speed" aPen: "Armor Penetration" mPen: "Magic ...
#<< main lol.stats = names: armor: "Armor" ap: "Ability Power" ad: "Attack Damage" as: "Attack Speed" crit: "Critical Hit Chance" critDmg: "Critical Hit Damage" health: "Health" mana: "Mana" mr: "Magic Resist" ms: "Movement Speed" aPen: "Armor Penetration" mPen: "Magic ...
Add auras, passives, and actives
Add auras, passives, and actives Signed-off-by: Ian Macalinao <08370e385f4778cad8fe504ec5445edd3d45bd9a@gmail.com>
CoffeeScript
mit
simplyianm/liblol
fc5e8996aa6298c24c4020fecc808bb11445b9d5
snippets/objects.cson
snippets/objects.cson
".source.js": "Object.assign": prefix: "assign" body: "Object.assign(${1:dest}, ${2:source})" "Object.assign +": prefix: "Object.assign" body: "Object.assign(${1:dest}, ${2:source})" "Object.create": prefix: "create" body: "Object.create(${1:object})" "Object.create +": prefix: "Obj...
".source.js": "Object.assign": prefix: "assign" body: "Object.assign(${1:dest}, ${2:source})" "Object.assign +": prefix: "Object.assign" body: "Object.assign(${1:dest}, ${2:source})" "Object.create": prefix: "create" body: "Object.create(${1:object})" "Object.create +": prefix: "Obj...
Fix object arrow method snippet
Fix object arrow method snippet
CoffeeScript
mit
kswedberg/atom-js-extras
4bca575a403150ff8dc23da4c2eeb1f4c44f908d
src/generation/items.coffee
src/generation/items.coffee
game = require '../game' items = require '../definitions/items' {MapItem} = require '../entities' exports.asMapItem = (x, y, item) -> new MapItem null, x, y, item exports.generatePeculiarObject = -> new items.PeculiarObject exports.generateGun = (type, name) -> type ?= game.random.sample ['handgun', 'shotgun'] ...
game = require '../game' items = require '../definitions/items' {MapItem} = require '../entities' exports.asMapItem = (x, y, item) -> new MapItem null, x, y, item exports.generatePeculiarObject = -> new items.PeculiarObject exports.generateGun = (type, name) -> type ?= game.random.sample ['handgun', 'shotgun'] ...
Refactor gun generation, shotguns range change
Refactor gun generation, shotguns range change
CoffeeScript
mit
raymond-h/krogue
213ca3fa325f3299386cb32b9bf3d8015e78913e
lms/static/coffee/spec/requirejs_spec.coffee
lms/static/coffee/spec/requirejs_spec.coffee
describe "RequireJS namespacing", -> beforeEach -> @addMatchers requirejsTobeUndefined: -> typeof requirejs is "undefined" requireTobeUndefined: -> typeof require is "undefined" defineTobeUndefined: -> typeof define is "undefined" it "check that the RequireJS object...
describe "RequireJS namespacing", -> beforeEach -> @addMatchers requirejsTobeUndefined: -> typeof requirejs is "undefined" requireTobeUndefined: -> typeof require is "undefined" defineTobeUndefined: -> typeof define is "undefined" it "check that the RequireJS object...
Work on RequireJS Jasmine test.
Work on RequireJS Jasmine test.
CoffeeScript
agpl-3.0
vikas1885/test1,sameetb-cuelogic/edx-platform-test,ampax/edx-platform,hmcmooc/muddx-platform,hmcmooc/muddx-platform,xuxiao19910803/edx,beni55/edx-platform,stvstnfrd/edx-platform,hkawasaki/kawasaki-aio8-1,JCBarahona/edX,eduNEXT/edx-platform,nttks/jenkins-test,edry/edx-platform,jelugbo/tundex,Edraak/edraak-platform,utecu...
4620606a2dbfbea0a5a5af2352a2b44c7237cfa2
src/io/web-keyhandling.coffee
src/io/web-keyhandling.coffee
log = require '../log' events = [] handleEvent = (game, event) -> events.push event if events.length is 1 process.nextTick -> processEvents game, events events = [] processEvents = (game, events) -> [downEvent, pressEvent] = events log.silly 'Key events:', events ch = undefined name = mapKey (downEve...
log = require '../log' events = [] handleEvent = (game, event) -> events.push event if events.length is 1 process.nextTick -> processEvents game, events events = [] processEvents = (game, events) -> [downEvent, pressEvent] = events log.silly 'Key events:', events ch = undefined name = mapKey downEven...
Use KeyboardEvent.which instead of .key
Use KeyboardEvent.which instead of .key
CoffeeScript
mit
raymond-h/krogue
eaf024d912f9cec168b59569674c4e42ed4384d7
app/assets/javascripts/views/node-popup.view.js.coffee
app/assets/javascripts/views/node-popup.view.js.coffee
Wheelmap.NodePopupView = Ember.View.extend templateName: 'node-popup' classNames: ['node-popup-view'] aboutFaqLink: (()-> if I18n.locale == 'de' then 'http://wheelmap.org/about/faqs/' else 'http://wheelmap.org/en/faqs/' ).property() linkTarget: (()-> if ENV.EMBEDDED then '_blank' else null ).prope...
Wheelmap.NodePopupView = Ember.View.extend templateName: 'node-popup' classNames: ['node-popup-view'] aboutFaqLink: (()-> if I18n.locale == 'de' then 'http://wheelmap.org/about/faqs/' else 'http://wheelmap.org/en/faqs/' ).property() linkTarget: (()-> if Ember.ENV.EMBEDDED then '_blank' else null )...
Use correct ENV variable for node popup link targets.
Use correct ENV variable for node popup link targets.
CoffeeScript
agpl-3.0
sozialhelden/wheelmap,sozialhelden/wheelmap,sozialhelden/wheelmap,sozialhelden/wheelmap,sozialhelden/wheelmap
e61aba978680eb9a058ea4b1a2fe8049ae921236
javascript/outer.coffee
javascript/outer.coffee
# Placeholder Polyfill # https://github.com/mathiasbynens/jquery-placeholder ($ window).load -> ($ 'input, textarea').placeholder();
# Placeholder Polyfill # https://github.com/mathiasbynens/jquery-placeholder $(window).load -> $('input, textarea').placeholder()
Use proper convention for jQuery
Use proper convention for jQuery
CoffeeScript
epl-1.0
prathamesh-sonpatki/frontend,RayRutjes/frontend,circleci/frontend,circleci/frontend,circleci/frontend,prathamesh-sonpatki/frontend,RayRutjes/frontend
572fd99df7b869102a1d9b9f22f574d3ab213cce
servers/lib/server/handlers/impersonate.coffee
servers/lib/server/handlers/impersonate.coffee
koding = require './../bongo' module.exports = (req, res) -> { JAccount, JSession } = koding.models { nickname } = req.params { clientId } = req.cookies JSession.fetchSession clientId, (err, result) -> return res.status(400).end() if err or not result { session } = result { ...
koding = require './../bongo' { setSessionCookie } = require '../helpers' module.exports = (req, res) -> { JAccount, JSession } = koding.models { nickname } = req.params { clientId } = req.cookies JSession.fetchSession clientId, (err, result) -> return res.status(400).end() if err ...
Update impersonation session cookie using helper
Update impersonation session cookie using helper
CoffeeScript
agpl-3.0
andrewjcasal/koding,kwagdy/koding-1,usirin/koding,cihangir/koding,acbodine/koding,mertaytore/koding,usirin/koding,drewsetski/koding,gokmen/koding,koding/koding,cihangir/koding,usirin/koding,gokmen/koding,cihangir/koding,koding/koding,alex-ionochkin/koding,acbodine/koding,drewsetski/koding,rjeczalik/koding,szkl/koding,u...
1e1283c594a696bf016e231dff36d2466c42bcc8
annotran/static/scripts/annotator/plugin/sentenceselection.coffee
annotran/static/scripts/annotator/plugin/sentenceselection.coffee
Annotator = require('annotator') $ = Annotator.$ xpathRange = Annotator.Range Util = Annotator.Util # This plugin implements the UI code for selecting sentences by clicking module.exports = class SentenceSelection extends Annotator.Plugin pluginInit: -> # Register the event handlers required for creating a sele...
Annotator = require('annotator') $ = Annotator.$ xpathRange = Annotator.Range Util = Annotator.Util # This plugin implements the UI code for selecting sentences by clicking module.exports = class SentenceSelection extends Annotator.Plugin pluginInit: -> # Register the event handlers required for creating a sele...
Add recursive loop to escape from formatting cells. Change to use jQuery based objects (accessed through Annotator reference).
Add recursive loop to escape from formatting cells. Change to use jQuery based objects (accessed through Annotator reference).
CoffeeScript
mit
birkbeckOLH/annotran,birkbeckOLH/annotran,birkbeckOLH/annotran
4f556803a53261eabf355647b971d8f3b4af15ac
app/js/jail_iframe/classes/control_iframe.coffee
app/js/jail_iframe/classes/control_iframe.coffee
class FactlinkJailRoot.ControlIframe constructor: -> @el = document.createElement('iframe') @el.className = 'factlink-control-frame' #need to append to outer document before we can access frame document. FactlinkJailRoot.$factlinkCoreContainer.append(@el) @$el = $(@el) @doc = @el.contentWindow...
control_visibility_transition_time = 300+1000/60 #keep in sync with scss class FactlinkJailRoot.ControlIframe constructor: -> @el = document.createElement('iframe') @el.className = 'factlink-control-frame' #need to append to outer document before we can access frame document. FactlinkJailRoot.$factli...
Implement fadeout/in in control iframe; return deferred for completion handlers
Implement fadeout/in in control iframe; return deferred for completion handlers
CoffeeScript
mit
Factlink/js-library,Factlink/js-library,Factlink/js-library
069cb923d05d28a3e6cd0d0e1ea31df618d718da
app/assets/javascripts/voluntary_music_metadata_enrichment/library/index.js.coffee
app/assets/javascripts/voluntary_music_metadata_enrichment/library/index.js.coffee
$(document).ready -> $(document.body).on "change", "select[name^=\"year\"]", -> $.ajax( url: "/users/" + user_id + "/library/music/releases" data: year: $(this).val() type: "GET" dataType: "html" ).success (data) -> $("#releases").empty() $("#releases").append data ...
$(document).ready -> $(document.body).on "change", "select[name^=\"year\"]", -> $.ajax( url: "/users/" + user_id + "/library/music/releases" data: year: $(this).val() type: "GET" dataType: "html" ).success (data) -> $("#releases").empty() $("#releases").append data ...
Initialize window.VoluntaryMusicMetadataEnrichment.Library.YearInReviewTracks.IndexView on music library index page ready.
Initialize window.VoluntaryMusicMetadataEnrichment.Library.YearInReviewTracks.IndexView on music library index page ready.
CoffeeScript
mit
volontariat/voluntary_music_metadata_enrichment,volontariat/voluntary_music_metadata_enrichment,volontariat/voluntary_music_metadata_enrichment
f53d610e36185917e196d98ee6ace2da6ee2896d
app/models/task.coffee
app/models/task.coffee
Spine = require('spine') class window.Task extends Spine.Model @configure 'Task', 'name', 'completed', 'priority', 'list' @extend @Local @active: (list) => @select (task) -> !task.completed and (if list then (task.list is list) else yes) @completed: (list) => @select (task) -> task.comple...
Spine = require('spine') class window.Task extends Spine.Model @configure 'Task', 'name', 'completed', 'priority', 'list' @extend @Local @active: (list) => @select (task) -> !task.completed and (if list then (task.list is list) else yes) @completed: (list) => @select (task) -> task.comple...
Change list to listId for clarification
Change list to listId for clarification
CoffeeScript
unknown
nitrotasks/nitro,CaffeinatedCode/nitro,nitrotasks/nitro
3e8a0e92c4f52388bcf8d42f6d2851ce517b026f
code/some_pleasant.coffee
code/some_pleasant.coffee
# Constant strings to print on certain error SYNTAX_ERROR = 'unrecognised syntax: ' # Lexical matchers isString = (str) -> str[0] == '\'' and str[str.length - 1] == '\'' isNumber = (str) -> not isNaN(str) isIdentifier = (str) -> /// ^ [^\s(),'] # anything but whitespace, '(', ')', ',', or '''. + # on...
# Constant strings to print on certain error SYNTAX_ERROR = 'unrecognised syntax: ' # Lexical matchers isString = (str) -> str[0] == '\'' and str[str.length - 1] == '\'' isNumber = (str) -> not isNaN(str) isIdentifier = (str) -> /^[^\s(),']+$/.exec str isCall = (str) -> str[0] == '(' and str[str.length - 1] == ')' ...
Change regex formatting to improve readability on GitHub
Change regex formatting to improve readability on GitHub
CoffeeScript
bsd-2-clause
joshhartigan/semicircle,joshhartigan/semicircle,joshhartigan/semicircle,joshhartigan/semicircle,joshhartigan/semicircle,joshhartigan/semicircle,joshhartigan/semicircle,joshhartigan/semicircle,joshhartigan/semicircle,joshhartigan/semicircle,joshhartigan/semicircle
33ad522254eb9b292e1bacdf40829bce7e68fd82
scripts/turtleme.coffee
scripts/turtleme.coffee
# Description: # hubotに亀の写真を拾ってきてもらう # # Commands: # hubot turtle me - Queries Google Images for turtle and returns a random top result. # Hubotのスクリプトはモジュールとして記述し, # Hubot起動時にrequireされてexportした関数が呼び出されます module.exports = (robot) -> robot.respond /turtle me/i, (msg) -> turtleMe msg, (url) -> msg.send u...
# Description: # hubotに亀の写真を拾ってきてもらう # # Commands: # hubot turtleme - Queries Google Images for turtle and returns a random top result. # Hubotのスクリプトはモジュールとして記述し, # Hubot起動時にrequireされてexportした関数が呼び出されます module.exports = (robot) -> robot.respond /turtleme/i, (msg) -> turtleMe msg, (url) -> msg.send url...
Revert "Fix command name =>"
Revert "Fix command name =>" This reverts commit 998f44f98862d96fae2f91e33e19ed2a6e064db4.
CoffeeScript
mit
hokuken/hubot
4549f52a3f1142c32b0d1c017f1e23d8156df24d
client/lanes/components/record-finder/RecordFinder.cjsx
client/lanes/components/record-finder/RecordFinder.cjsx
class Lanes.Components.RecordFinder extends Lanes.React.Component propTypes: query: Lanes.PropTypes.State.isRequired model: Lanes.PropTypes.State.isRequired commands: React.PropTypes.object.isRequired contextTypes: viewport: Lanes.PropTypes.State.isRequired showFind...
class Lanes.Components.RecordFinder extends Lanes.React.Component propTypes: query: Lanes.PropTypes.State.isRequired model: Lanes.PropTypes.State.isRequired commands: React.PropTypes.object onModelSet: React.PropTypes.func contextTypes: viewport: Lanes.PropTypes.S...
Use fieldmixin, support rendering as read-only
Use fieldmixin, support rendering as read-only
CoffeeScript
mit
argosity/hippo,argosity/lanes,argosity/lanes,argosity/hippo,argosity/lanes,argosity/hippo
e6befce555b9dd53ee9180ffc275757a0ce0e88f
app/assets/javascripts/views/map_view.js.coffee
app/assets/javascripts/views/map_view.js.coffee
Wmsb.Views.MapView = Backbone.View.extend events: 'click a.student-name': 'updateCurrentStudent' initialize: (options) -> @mapEl = document.getElementById 'map-canvas' @currentAssignment = @collection.find (assignment) -> assignment.get('token') is cookie.get('current_assignment') ...
Wmsb.Views.MapView = Backbone.View.extend events: 'click a.student-name': 'updateCurrentStudent' initialize: (options) -> @mapEl = document.getElementById 'map-canvas' @currentAssignment = @collection.find (assignment) -> assignment.get('token') is cookie.get('current_assignment') ...
Update map center when selecting bus
Update map center when selecting bus
CoffeeScript
mit
Vermonster/wmsb,Vermonster/wmsb
6dd386b1bb7115a32a49623ae5aa1c6e6ade5eb0
lib/changes/changes.coffee
lib/changes/changes.coffee
GitChanges = require './git-changes' module.exports = class Changes # The view-model for the root ChangesView constructor: -> @git = new GitChanges
# This is the view-model for the root view of the "view and commit changes" tab # It seems as good a place as any to describe the approximate architecture of this # element and how the component parts work together. # # There is one data model, `GitChanges` that can be considered the foundational # object. It performs ...
Add explanatory comment for model, view-models, and views
Add explanatory comment for model, view-models, and views
CoffeeScript
mit
atom/github,atom/github,atom/github
fbdf16a8faa0f644cc3c8589d13e2c8bcbb20b15
dot-atom/init.coffee
dot-atom/init.coffee
# Your init script # # Atom will evaluate this file each time a new window is opened. It is run # after packages are loaded/activated and after the previous editor state # has been restored. # # An example hack to make opened Markdown files have larger text: # # path = require 'path' # # atom.workspaceView.eachEditorVi...
# Your init script # # Atom will evaluate this file each time a new window is opened. It is run # after packages are loaded/activated and after the previous editor state # has been restored. # # An example hack to make opened Markdown files always be soft wrapped: # # path = require 'path' # # atom.workspaceView.eachEd...
Use soft wrap instead of font size in example hack
Use soft wrap instead of font size in example hack
CoffeeScript
mit
rsvip/aTom,me6iaton/atom,sekcheong/atom,palita01/atom,prembasumatary/atom,ppamorim/atom,hagb4rd/atom,avdg/atom,johnrizzo1/atom,ReddTea/atom,nvoron23/atom,toqz/atom,targeter21/atom,deoxilix/atom,phord/atom,yomybaby/atom,xream/atom,sebmck/atom,jacekkopecky/atom,hagb4rd/atom,jtrose2/atom,0x73/atom,tony612/atom,sxgao3001/a...
4e563a99cab45487bfbcd0c0f50e5446405fa9cb
core/app/backbone/views/react_install_extension_button.coffee
core/app/backbone/views/react_install_extension_button.coffee
determineBrowser = -> [ 'chrome', 'firefox', 'safari', 'phantom_js', 'unsupported-browser' ] .filter( (browser) -> $('html.'+browser).length )[0] window.ReactInstallExtensionButton = React.createClass displayName: 'ReactInstallExtensionButton' render: -> extra_class = if @props.huge_button then 'button-hu...
determineBrowser = -> [ 'chrome', 'firefox', 'safari', 'phantom_js', 'unsupported-browser' ] .filter( (browser) -> $('html.'+browser).length )[0] window.ReactInstallExtensionButton = React.createClass displayName: 'ReactInstallExtensionButton' render: -> browserName = determineBrowser() extra_class = ...
Use same code to print extension-installation message
Use same code to print extension-installation message
CoffeeScript
mit
Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core,daukantas/factlink-core,daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core
dbccc525c2b0302d4d111b6f45063d39a5f0c63e
test/mailers/mailerTest.coffee
test/mailers/mailerTest.coffee
mailer = null describe "Salad.Mailer", -> before -> mailer = new App.WelcomeMailer describe "#render", -> it "should render templates", -> content = mailer.render "rendering/test" content.should.equal "<h1>Hello World!</h1>" describe "#mail", -> todo = null beforeEach (done) -> ...
mailer = null describe "Salad.Mailer", -> before -> mailer = new App.WelcomeMailer describe "#render", -> it "should render templates", -> content = mailer.render "rendering/test" content.should.equal "<h1>Hello World!</h1>" describe "#mail", -> todo = null beforeEach (done) -> ...
Fix test according to changes in smtp mailer.
Fix test according to changes in smtp mailer.
CoffeeScript
mit
komola/salad
2549e5b94db23d2da1fc1ba241fec79f5f380577
lib/assets/javascript/init.js.coffee
lib/assets/javascript/init.js.coffee
window.Initjs = initialize: -> infos = $("#init-js") controllerClass = infos.data("controller-class") controllerName = infos.data("controller-name") action = infos.data("action") this.execFilter('init') this.exec(controllerClass, controllerName, action) this.execFilter('finish') this.a...
window.Initjs = initialize: -> infos = $("#init-js") controllerClass = infos.data("controller-class") controllerName = infos.data("controller-name") action = infos.data("action") this.execFilter('init') this.exec(controllerClass, controllerName, action) this.execFilter('finish') this.a...
Solve undefined for App.Common when is no App defined
Solve undefined for App.Common when is no App defined
CoffeeScript
mit
josemarluedke/initjs,josemarluedke/initjs,josemarluedke/initjs
de062fefb97e9f38e542248767ee0d69a1c878e6
Gruntfile.coffee
Gruntfile.coffee
module.exports = (grunt) -> grunt.initConfig coffee: compile: files: 'test/test.js': 'test/*.coffee', 'dist/lib/geekywalletlib.js': 'lib/geekywalletlib.coffee' mochaTest: test: src: ['test/**/*.js'] grunt.loadNpmTasks 'grunt-contrib-coffee' grunt.loadNpm...
module.exports = (grunt) -> grunt.initConfig coffee: compile: files: 'test/test.js': 'test/*.coffee', 'dist/lib/geekywalletlib.js': 'lib/geekywalletlib.coffee' mochaTest: test: options: reporter: 'spec' src: ['test/**/*.js'] grunt.loadNpm...
Change mocha reported to 'spec'
Change mocha reported to 'spec'
CoffeeScript
mit
cashpad-app/cashpad,cashpad-app/cashpad
82ae0554aa9802180812209692faa9b82107b4f6
Gruntfile.coffee
Gruntfile.coffee
module.exports = (grunt) -> # Project configuration grunt.initConfig { pkg: grunt.file.readJSON 'package.json' uglify: { options: { banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n' } } coffee: { options: { sourceMap: true } compile: { files: { '...
module.exports = (grunt) -> # Project configuration grunt.initConfig { pkg: grunt.file.readJSON 'package.json' uglify: { options: { banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n' } } coffee: { options: { sourceMap: true } compile: { files: { '...
Add flattening for grunt copy
Add flattening for grunt copy
CoffeeScript
apache-2.0
berwyn/tyrian-explorer-chrome
d376a093d7c50c4050430870e6feefad53228784
lib/autocomplete/syntax.coffee
lib/autocomplete/syntax.coffee
{ Disposable } = require 'atom' module.exports = class Syntax extends Disposable constructor: (latex) -> @latex = latex dollarsign: -> editor = atom.workspace.getActiveTextEditor() selected = editor.getSelectedText() if selected range = editor.getSelectedBufferRange() range.start.colum...
{ Disposable } = require 'atom' module.exports = class Syntax extends Disposable constructor: (latex) -> @latex = latex dollarsign: -> editor = atom.workspace.getActiveTextEditor() selected = editor.getSelectedText() if selected range = editor.getSelectedBufferRange() range.start.colum...
Allow double dollar before period
Allow double dollar before period
CoffeeScript
mit
James-Yu/Atom-LaTeX,ashthespy/Atom-LaTeX,ashthespy/Atom-LaTeX,James-Yu/Atom-LaTeX
06a2fcc00fb0f000b8023df7bc3958afab98514b
index.coffee
index.coffee
fs = require 'fs' path = require 'path' scripts = ['github-event-announcer.coffee'] module.exports = (robot) -> scriptsPath = path.resolve(__dirname, 'src') fs.exists scriptsPath, (exists) -> if exists for script in fs.readdirSync(scriptsPath) if scripts? and '*' not in scripts robot....
fs = require 'fs' path = require 'path' scripts = [ 'github-event-announcer.coffee' 'github-hook-manager.coffee' ] module.exports = (robot) -> scriptsPath = path.resolve(__dirname, 'src') fs.exists scriptsPath, (exists) -> if exists for script in fs.readdirSync(scriptsPath) if scripts? and ...
Add github-hook-manager to list of scripts
Add github-hook-manager to list of scripts
CoffeeScript
mit
lifted-studios/hubot-github-event-announcer
91670bd28f4ddd5cafb94c274de0a0269fcbd5eb
index.coffee
index.coffee
upnp = require 'upnp' config = app: name: 'Bragi' version: '0.0.1' url: 'http://' device: type: 'MediaServer' version: '1.0' upnp.start config, -> console.log 'Bragi running! :-)'
fs = require 'fs' upnp = require 'upnp-server' Tag = require('taglib').Tag mediaServer = upnp.createDevice 'MediaServer', 'Bragi', (err, device, msg) -> throw err if err device.start (err) -> throw err if err fs.readdir dir, (err, files) -> for file in files try ...
Update to use new upnp-device API
Update to use new upnp-device API
CoffeeScript
mit
jacobrask/bragi
dea2c2b87909cad067e1cbe4482209ae59438bff
prototypes/load_maps/coffeescripts/main.coffee
prototypes/load_maps/coffeescripts/main.coffee
$ -> myOptions = center: new google.maps.LatLng(-34.397, 150.644) zoom: 8 disableDefaultUI: true mapTypeId: google.maps.MapTypeId.ROADMAP map = new google.maps.Map(document.getElementById("centermap"), myOptions)
$ -> myOptions = center: new google.maps.LatLng(37.76918346431238, -122.43491845703124) zoom: 15 disableDefaultUI: true mapTypeId: google.maps.MapTypeId.ROADMAP map = new google.maps.Map(document.getElementById("centermap"), myOptions) wiggleCoords = [ [37.7743227590708, -122.4358840522766] # Fell and Sc...
Add wiggle coordinates, show markers, polylines
Add wiggle coordinates, show markers, polylines
CoffeeScript
bsd-2-clause
akurzhan/scenario-editor,akurzhan/scenario-editor,calpath/scenario-editor,calpath/scenario-editor,calpath/scenario-editor,akurzhan/scenario-editor
ec9cae52e629601c64cf04163d976665632116a7
test/e2e/support/world.coffee
test/e2e/support/world.coffee
assert = require 'assert' webdriver = require 'selenium-webdriver' protractor = require 'protractor' dbhelper = require '../../lib/dbhelper' worldDefinition = () -> ptor = null driver = null class World constructor: (callback) -> @browser = ptor @By = protractor.By @assert = assert ...
assert = require 'assert' webdriver = require 'selenium-webdriver' protractor = require 'protractor' dbhelper = require '../../lib/dbhelper' worldDefinition = () -> ptor = null driver = null class World constructor: (callback) -> @browser = ptor @By = protractor.By @assert = assert ...
Use firefox until chrome driver fixed on OSX 10.9
Use firefox until chrome driver fixed on OSX 10.9
CoffeeScript
apache-2.0
GoIncremental/gi-security,GoIncremental/gi-security
7573dc919420977901a9f1276b4ac76f055409f0
app/assets/javascripts/rails_admin/custom/ui.coffee
app/assets/javascripts/rails_admin/custom/ui.coffee
#= override this file in your application to add custom behaviour $ -> $(".tinymce-trigger").click -> tinymce.init selector:'.tinymce-editable', plugins: "image link table media print charmap preview code"
#= override this file in your application to add custom behaviour $ -> $(".tinymce-trigger").click -> tinymce.init selector:'.tinymce-editable', plugins: "image link table media print charmap preview code" convert_urls: false
Disable URL corruption by TinyMCE
Disable URL corruption by TinyMCE
CoffeeScript
mit
lokalebasen/rails_admin,lokalebasen/rails_admin,lokalebasen/rails_admin
8417ae9782819e3af5ff01507ae2854aeee969df
packages/emberella/lib/mixins/focusable_mixin.coffee
packages/emberella/lib/mixins/focusable_mixin.coffee
Emberella = window.Emberella get = Ember.get set = Ember.set Emberella.FocusableMixin = Ember.Mixin.create ### @property isFocusable @type Boolean @default true @final ### isFocusable: true attributeBindings: ['tabindex'] tabindex: 0 classNameBindings: [ 'hasFocus:focused' ] hasFocus...
Emberella = window.Emberella get = Ember.get set = Ember.set Emberella.FocusableMixin = Ember.Mixin.create ### @property isFocusable @type Boolean @default true @final ### isFocusable: true attributeBindings: ['tabindex'] tabindex: 0 classNameBindings: [ 'hasFocus:focused' ] hasFocus...
Check for event object before stopping its propagation
Check for event object before stopping its propagation
CoffeeScript
mit
realityendshere/emberella,realityendshere/emberella,realityendshere/emberella
41571786d61b9ea4ab8fe7e4a8944bdb252834e8
coffee/furatto-demo.coffee
coffee/furatto-demo.coffee
jQuery -> #Pagination Demo $(".pagination a").click (e) -> e.preventDefault() if (!$(this).parent().hasClass("previous") && !$(this).parent().hasClass("next")) $(this).parent().siblings("li").removeClass("active") $(this).parent().addClass("active") $('.panel-content').scroll -> sideba...
jQuery -> #Pagination Demo $(".pagination a").click (e) -> e.preventDefault() if (!$(this).parent().hasClass("previous") && !$(this).parent().hasClass("next")) $(this).parent().siblings("li").removeClass("active") $(this).parent().addClass("active") $('.panel-content').scroll -> sideba...
Remove console log on furatto demo
Remove console log on furatto demo
CoffeeScript
mit
zhangjingpu/furatto,zerin108/furatto,zhangjingpu/furatto,IcaliaLabs/furatto,oelizondo/furatto,zerin108/furatto,oelizondo/furatto,IcaliaLabs/furatto
a3591aaa0c584edd504de81428a155c0f31fe39b
src/intermediate/IntermediateModel.coffee
src/intermediate/IntermediateModel.coffee
class @IntermediateModel _events: {} data: [] constructor: -> @fetch() get: (key) -> @[key] set: (key, value, silent) -> @[key] = value if not @_events[key] or silent return for callback in @_events[key] (callback)() onChange: (key, callback) -> @_events[key] = @_even...
class @IntermediateModel _events: {} data: [] constructor: -> @fetch() get: (key) -> @[key] set: (key, value) -> @[key] = value on: (eventName, callback) -> @_events[eventName] = @_events[eventName] or [] @_events[eventName].push(callback) onChange: (key, callback) -> @on('cha...
Remove black-magic from set method
Remove black-magic from set method
CoffeeScript
apache-2.0
khirayama/handson-front-end,khirayama/handson-front-end
eada366436f04f4e8bc4f0edbe20d9cadb27ae63
lib/wrap-guide-view.coffee
lib/wrap-guide-view.coffee
{View} = require 'space-pen' $ = require 'jquery' _ = require 'underscore' module.exports = class WrapGuideView extends View @activate: -> rootView.eachEditor (editor) => editor.underlayer.append(new WrapGuideView(editor)) if editor.attached @content: -> @div class: 'wrap-guide' defaultColumn: 80...
{View} = require 'space-pen' $ = require 'jquery' _ = require 'underscore' module.exports = class WrapGuideView extends View @activate: -> rootView.eachEditor (editor) -> editor.underlayer.append(new WrapGuideView(editor)) if editor.attached @content: -> @div class: 'wrap-guide' defaultColumn: 80...
Use skinny arrow for rootView.eachEditor callback
Use skinny arrow for rootView.eachEditor callback
CoffeeScript
mit
atom/wrap-guide
4f9a3ddc393f6dafdef4ea664ea5bec2f1019795
app/js/jail_iframe/classes/proxy_message.coffee
app/js/jail_iframe/classes/proxy_message.coffee
FactlinkJailRoot.showProxyMessage = -> content = """ <div class="proxy-message"> <strong>Factlink Browser</strong> <ul> <li>Get the <a target="_blank" href="https://factlink.com">extension</a> to add discussions on every site</li> <li>Or <a target="_blank" href="https://factlink.com/p/...
FactlinkJailRoot.showProxyMessage = -> content = """ <div class="proxy-message"> <strong>Factlink Browser</strong> <ul> <li>Get the <a target="_blank" href="https://factlink.com">extension</a> to add discussions on every site</li> <li>Or <a target="_blank" href="https://factlink.com/p/...
Use position: absolute instead of relative for better positioning
Use position: absolute instead of relative for better positioning @martijn?
CoffeeScript
mit
Factlink/js-library,Factlink/js-library,Factlink/js-library
e7bc1177d20dca744b7126390d55df104fbe0f9c
demo/app/application.coffee
demo/app/application.coffee
class App Routers: {} Models: {} Collections: {} Views: {} init: -> window.flight = new Flight() new @Routers.AppRouter Backbone.history.start() @Collections.Activities.fetch() window.app = new App ` String.prototype.trim = function() { return this.replace(/^\s+|\s+$/g, ''); }; Str...
class App Routers: {} Models: {} Collections: {} Views: {} init: -> window.flight = new Flight stylesheetPath: '../lib/' new @Routers.AppRouter Backbone.history.start() @Collections.Activities.fetch() window.app = new App ` String.prototype.trim = function() { return this.re...
Set stylesheet path for old android fallback
Set stylesheet path for old android fallback
CoffeeScript
mit
zestia/glide
6dcda394ed1a9e1a917c056e53564da68b81c1a4
app/server/index.coffee
app/server/index.coffee
config = require './config' if !config.env.development || require('piping')() # Server-side Google Closure for development. if config.env.development require '../../bower_components/closure-library/closure/goog/bootstrap/nodejs.js' require '../../tmp/deps.js' # Mock client-side stuff for server-side. ...
config = require './config' if !config.env.development || require('piping')() # Server-side Google Closure for development. if config.env.development require '../../bower_components/closure-library/closure/goog/bootstrap/nodejs.js' require '../../tmp/deps.js' # Mock client-side stuff for server-side. ...
Use server React with addons by default.
Use server React with addons by default.
CoffeeScript
mit
vacuumlabs/este,glaserp/Maturita-Project,robinpokorny/este,neozhangthe1/framedrop-web,shawn-dsz/este,blueberryapps/este,neozhangthe1/framedrop-web,AlesJiranek/este,jaeh/este,langpavel/este,christophediprima/este,abelaska/este,vacuumlabs/este,aindre/este-example,este/este,amrsekilly/updatedEste,aindre/este-example,chris...
32b4b073ce72ed84fd79f1bcddca108bab41bad2
extension/login/authentication.coffee
extension/login/authentication.coffee
authentication = require 'passport' {Strategy} = require 'passport-linkedin' {VIE} = require "#{__dirname}/../palsu/static/deps/vie-2.0.0.js" vieRedis = require "#{__dirname}/../../lib/vie-redis" exports.getAuthentication = (config) -> vie = new VIE vie.namespaces.add 'foaf', 'http://xmlns.com/foaf/0.1/' vie.nam...
authentication = require 'passport' {Strategy} = require 'passport-linkedin' {VIE} = require "#{__dirname}/../palsu/static/deps/vie-2.0.0.js" vieRedis = require "#{__dirname}/../../lib/vie-redis" exports.getAuthentication = (config) -> vie = new VIE vie.namespaces.add 'foaf', 'http://xmlns.com/foaf/0.1/' vie.nam...
Allow reading API and secret keys from env vars
Allow reading API and secret keys from env vars
CoffeeScript
mit
bergie/ViePalsu
0270d34d0f3b3a22d0037d94cac86b5c0d158179
services/web/app/coffee/Features/Analytics/AnalyticsManager.coffee
services/web/app/coffee/Features/Analytics/AnalyticsManager.coffee
Settings = require "settings-sharelatex" logger = require "logger-sharelatex" _ = require "underscore" if !Settings.analytics?.postgres? module.exports = recordEvent: (user_id, event, segmentation, callback = () ->) -> logger.log {user_id, event, segmentation}, "no event tracking configured, logging event" ca...
Settings = require "settings-sharelatex" logger = require "logger-sharelatex" _ = require "underscore" if !Settings.analytics?.postgres? module.exports = recordEvent: (user_id, event, segmentation, callback = () ->) -> logger.log {user_id, event, segmentation}, "no event tracking configured, logging event" ca...
Use JSONB not JSON column type
Use JSONB not JSON column type
CoffeeScript
agpl-3.0
sharelatex/sharelatex
cbce088f05210ebffe84aadb43fa8d554f80231a
app/assets/javascripts/player/data_unpacker.js.coffee
app/assets/javascripts/player/data_unpacker.js.coffee
class AsciiIo.DataUnpacker unpack: (base64BzippedData, callback) -> data = atob base64BzippedData if data[0] == 'B' and data[1] == 'Z' if window.Worker worker = new Worker(window.unpackWorkerPath) worker.onmessage = (event) => callback event.data worker.postMessage data el...
class AsciiIo.DataUnpacker unpack: (base64BzippedData, callback) -> data = atob base64BzippedData if data[0] == 'B' and data[1] == 'Z' if window.Worker worker = new Worker(window.unpackWorkerPath) worker.onmessage = (event) => callback event.data worker.postMessage data el...
Revert "Call the callback, really"
Revert "Call the callback, really" This reverts commit fe3af22bf22254ce3c39112c347763451dbf2979.
CoffeeScript
apache-2.0
asciinema/asciinema-server,radare/radare.tv,asciinema/asciinema-server,SunDi3yansyah/asciinema.org,radare/radare.tv,SunDi3yansyah/asciinema.org,asciinema/asciinema-server,radare/radare.tv,asciinema/asciinema-server,asciinema/asciinema.org,asciinema/asciinema.org,radare/radare.tv,SunDi3yansyah/asciinema.org,SunDi3yansya...
0951317724a086dac25f63274b92b9731a586048
examples/collection.coffee
examples/collection.coffee
Monkey.registerView 'post', ''' div[id="monkey"] h1 title p body h3 "Comments" form[submit=postComment] p textarea[change=commentEdited] p input[type="submit" value="Post"] ul - collection comments - view comment ''' Monkey.registerView 'comment', ''' l...
Monkey.registerView 'post', ''' div[id="monkey"] h1 title p body h3 "Comments" form[submit=postComment] p textarea[change=commentEdited] p input[type="submit" value="Post"] ul - collection comments - view comment ''' Monkey.registerView 'comment', ''' l...
Update example to take advantage of improved setters
Update example to take advantage of improved setters
CoffeeScript
mit
elabs/serenade.js
62a871773bd208353f8b5bec37fbc71554ab7bab
examples/web_server.coffee
examples/web_server.coffee
# Contributed by Jason Huggins http: require 'http' server: http.createServer (req, res) -> res.writeHeader 200, {'Content-Type': 'text/plain'} res.write 'Hello, World!' res.close() server.listen 3000 puts "Server running at http://localhost:3000/"
# Contributed by Jason Huggins process.mixin require 'sys' http: require 'http' server: http.createServer (req, res) -> res.writeHeader 200, {'Content-Type': 'text/plain'} res.write 'Hello, World!' res.close() server.listen 3000 puts "Server running at http://localhost:3000/"
Include an extra line `process.mixin require 'sys'` on the top to let the .js output run using node (v0.1.31)
Include an extra line `process.mixin require 'sys'` on the top to let the .js output run using node (v0.1.31)
CoffeeScript
mit
RobLoach/LiveScript,wangyue-ramy/coffeescript,lieuwex/coffeescript-to-typescript,tempbottle/coffeescript,Kingson4Wu/coffee-script,schory/coffee-script,guzhaoyuan/coffee-script,lukhnos/doubleshot,ls2uper/coffeescript,caolan/coffee-script,bolinfest/coffee-script,mrmowgli/coffeescript,will-weiss/coffeescript,jamesknelson/...
4052878d5cf884f886ecea0a9d89e6d26fbdbf8d
async.coffee
async.coffee
ZXCVBN_SRC = '//dl.dropbox.com/u/209/zxcvbn/zxcvbn.js' # adapted from http://friendlybit.com/js/lazy-loading-asyncronous-javascript/ async_load = -> s = document.createElement 'script' s.src = ZXCVBN_SRC s.type = 'text/javascript' s.async = true first = document.getElementsByTagName('script')[0] first.par...
ZXCVBN_SRC = 'zxcvbn.js' # adapted from http://friendlybit.com/js/lazy-loading-asyncronous-javascript/ async_load = -> s = document.createElement 'script' s.src = ZXCVBN_SRC s.type = 'text/javascript' s.async = true first = document.getElementsByTagName('script')[0] first.parentNode.insertBefore s, first ...
Fix path to use local files
Fix path to use local files Fixes #67
CoffeeScript
mit
fo0nikens/zxcvbn,varenc/zxcvbn,shotishu/zxcvbn,monsterwater/zxcvbn,varenc/zxcvbn,valeriansaliou/zxcvbn,dockbiz/zxcvbn,dockbiz/zxcvbn,hnq90/zxcvbn,monsterwater/zxcvbn,dropbox/zxcvbn,shotishu/zxcvbn,TheeGrassHopper/zxcvbn,alextekartik/zxcvbn,monsterwater/zxcvbn,fo0nikens/zxcvbn,dockbiz/zxcvbn,TheeGrassHopper/zxcvbn,hn300...
5dc88e1b925b7eb6a51e3f37a7263da770e2b4f7
web/service/upload.coffee
web/service/upload.coffee
'use strict' app.factory('uploadService', [ '$q', '$sce', 'constantService', 'routerService', 'messageService', ($q, $sce, constants, router, messages) -> removedAsset: undefined flowOptions: () -> target: router.controllers.uploadChunk.route() method: 'octet' # chunkSize: 4194304 ...
'use strict' app.factory('uploadService', [ '$q', '$sce', 'constantService', 'routerService', 'messageService', ($q, $sce, constants, router, messages) -> removedAsset: undefined flowOptions: () -> target: router.controllers.uploadChunk.route() method: 'octet' chunkSize: 4194304 # ...
Undo some temporary settings for ngflow chunk size
Undo some temporary settings for ngflow chunk size We need the settings lower to get around an unresolved problem with large uploads on staging. Can reverse once debugging is done.
CoffeeScript
agpl-3.0
databrary/databrary,databrary/databrary,databrary/databrary,databrary/databrary
f98c56f63d5c5b9f5e207de8005e680db4ba361e
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 javascript for search button
Add javascript for search button
CoffeeScript
mit
raksonibs/raimcrowd,jinutm/silvfinal,MicroPasts/micropasts-crowdfunding,raksonibs/raimcrowd,MicroPasts/micropasts-crowdfunding,jinutm/silverprod,jinutm/silverme,raksonibs/raimcrowd,jinutm/silverpro,gustavoguichard/neighborly,jinutm/silvfinal,jinutm/silverpro,rockkhuya/taydantay,rockkhuya/taydantay,gustavoguichard/neigh...
5ac9014696b9f445ea5cd1002021e43e6cfe6780
core/app/backbone/views/react_feed_selection.coffee
core/app/backbone/views/react_feed_selection.coffee
window.ReactFeedSelection = React.createClass displayName: 'ReactFeedSelection' getInitialState: -> feedChoice: 'global' feeds: global: new GlobalFeedActivities personal: new PersonalFeedActivities handleFeedChoiceChange: (e) -> console.log(e,e.target,e.target.checked, e.target.value) ...
window.ReactFeedSelection = React.createClass displayName: 'ReactFeedSelection' getInitialState: -> feedChoice: 'global' feeds: global: new GlobalFeedActivities personal: new PersonalFeedActivities handleFeedChoiceChange: (e) -> console.log(e,e.target,e.target.checked, e.target.value) ...
Add classes to feed selection to allow styling
Add classes to feed selection to allow styling
CoffeeScript
mit
daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core,Factlink/factlink-core,daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core
00094f78e0af00e7d56a2f642657c8577a6e8684
app/assets/javascripts/services/cache_service.coffee
app/assets/javascripts/services/cache_service.coffee
angular.module('kassa').factory('CacheService', [ '$q' '$parse' ($q, $parse)-> cache = {} [isUndefined, copy] = [angular.isUndefined, angular.copy] _writeToCache = (cacheObj, obj, key)-> if isUndefined(cacheObj[key]) cacheObj[key] = obj else #copy to ensure object referenc...
angular.module('kassa').factory('CacheService', [ '$q' '$parse' ($q, $parse)-> cache = {} [isUndefined, copy] = [angular.isUndefined, angular.copy] set = (obj, prefix, field='id')-> $q.when(obj).then (obj)-> $parse("#{prefix}.#{obj[field]}").assign(cache, obj) get = (key, prefix)-> $...
Remove accidentally left unused function from CacheService
Remove accidentally left unused function from CacheService
CoffeeScript
mit
flipflops/kassa,flipflops/kassa
13c6fcb8d908cc27f0f7c352f2e6a3a3987f6d96
services/web/app/coffee/Features/Wiki/WikiController.coffee
services/web/app/coffee/Features/Wiki/WikiController.coffee
request = require("request") settings = require("settings-sharelatex") logger = require("logger-sharelatex") ErrorController = require "../Errors/ErrorController" module.exports = WikiController = getPage: (req, res, next) -> page = req.url.replace(/^\/learn/, "").replace(/^\//, "") if page == "" page = "Main...
request = require("request") settings = require("settings-sharelatex") logger = require("logger-sharelatex") ErrorController = require "../Errors/ErrorController" module.exports = WikiController = getPage: (req, res, next) -> page = req.url.replace(/^\/learn/, "").replace(/^\//, "") if page == "" page = "Main...
Handle encoded parameters in request URL to wiki
Handle encoded parameters in request URL to wiki
CoffeeScript
agpl-3.0
sharelatex/sharelatex
9f09861d8b72f00af3baecf0e94fa55bb9fbfb6d
app/assets/javascripts/admin/index_utils/controllers/columns_controller.js.coffee
app/assets/javascripts/admin/index_utils/controllers/columns_controller.js.coffee
angular.module("admin.indexUtils").controller "ColumnsCtrl", ($scope, Columns) -> $scope.columns = Columns.columns $scope.predicate = "" $scope.reverse = false
angular.module("admin.indexUtils").controller "ColumnsCtrl", ($scope, Columns) -> $scope.columns = Columns.columns $scope.predicate = "" $scope.reverse = true
Change sorting to be done in ascending order first
Change sorting to be done in ascending order first Currently, we always toggle "reverse" when triggering a sort. If "reverse" is initially set to false, triggering a sort for the first time then toggles this to true. The effect is that, the first time that sorting is done, the rows are sorted in reverse order. This ...
CoffeeScript
agpl-3.0
lin-d-hop/openfoodnetwork,openfoodfoundation/openfoodnetwork,openfoodfoundation/openfoodnetwork,Matt-Yorkley/openfoodnetwork,Matt-Yorkley/openfoodnetwork,openfoodfoundation/openfoodnetwork,Matt-Yorkley/openfoodnetwork,lin-d-hop/openfoodnetwork,lin-d-hop/openfoodnetwork,mkllnk/openfoodnetwork,mkllnk/openfoodnetwork,mkll...
c6a0b61ab6cd27dd13ab2da5b7a8b302aa1fa5b4
grunt/jasmine_nodejs.coffee
grunt/jasmine_nodejs.coffee
module.exports = { options: helperNameSuffix: '.js' specNameSuffix: 'spec.coffee' useHelpers: true unit: specs: [ 'test/unit/**' ] helpers: [ 'test/helpers/**' ] integration: specs: [ 'test/integration/**' ] helpers: [ 'test/helpers/**' ] }
module.exports = { options: helperNameSuffix: '.js' specNameSuffix: 'spec.coffee' stopOnFailure: true useHelpers: true unit: specs: [ 'test/unit/**' ] helpers: [ 'test/helpers/**' ] integration: specs: [ 'test/integration/**' ] helpers: [ 'test/h...
Stop jasmine tests at the first sign of problems
Stop jasmine tests at the first sign of problems #8 QueryHandlers should also handle query transmission
CoffeeScript
mit
LoveIsGrief/generic-dht
731b7b4ec9de13bb592e5d826f5c7d53b69a1c14
lib/config/provider.coffee
lib/config/provider.coffee
module.exports = [{ # Bitbucket exps: [ /^git@(bitbucket\.org):(.+)\/(.+)\.git$/ /^https:\/\/(bitbucket\.org)\/(.+)\/(.+)\.git$/ /^https:\/\/.+@(bitbucket\.org)\/(.+)\/(.+)\.git$/ ] template: "https://{host}/{user}/{repo}/commits/{hash}" },{ # Generic (Github, GitLab and others) exps: [ /^gi...
module.exports = [{ # Bitbucket exps: [ /^git@(bitbucket\.org):(.+)\/(.+)\.git$/ /^https:\/\/(bitbucket\.org)\/(.+)\/(.+)(\.git)?$/ /^https:\/\/.+@(bitbucket\.org)\/(.+)\/(.+)(\.git)?$/ ] template: "https://{host}/{user}/{repo}/commits/{hash}" },{ # Generic (Github, GitLab and others) exps: [ ...
Fix URL parsing for bitbucket
Fix URL parsing for bitbucket
CoffeeScript
mit
pabra/atom-blame
0fa1f3e7909563404aaf85c42c7a3fdff7d34065
lib/wrap-guide-view.coffee
lib/wrap-guide-view.coffee
{_, $, View} = require 'atom' module.exports = class WrapGuideView extends View @activate: -> atom.workspaceView.eachEditorView (editorView) -> if editorView.attached and editorView.getPane() editorView.underlayer.append(new WrapGuideView(editorView)) @content: -> @div class: 'wrap-guide' ...
{_, $, View} = require 'atom' module.exports = class WrapGuideView extends View @activate: -> atom.workspaceView.eachEditorView (editorView) -> if editorView.attached and editorView.getPane() editorView.underlayer.append(new WrapGuideView(editorView)) @content: -> @div class: 'wrap-guide' ...
Use package name as config prefix
Use package name as config prefix
CoffeeScript
mit
atom/wrap-guide
24176fbcf39ed5d070a68119561d73e61f1acee3
client/Social/Activity/sidebar/sidebarmachinebox.coffee
client/Social/Activity/sidebar/sidebarmachinebox.coffee
class SidebarMachineBox extends KDView constructor: (options = {}, data) -> super options, data { machine } = data @addSubView @machineItem = new NavigationMachineItem {}, machine @createWorkspacesLabel() @createWorkspacesList() createWorkspacesList: -> { machine, workspaces } = @get...
class SidebarMachineBox extends KDView constructor: (options = {}, data) -> super options, data { machine } = data @machine = new Machine machine: KD.remote.revive machine @addSubView @machineItem = new NavigationMachineItem {}, @machine @createWorkspacesLabel() @createWorkspacesList() ...
Make data a Machine instance.
SidebarMachineBox: Make data a Machine instance.
CoffeeScript
agpl-3.0
sinan/koding,kwagdy/koding-1,gokmen/koding,rjeczalik/koding,jack89129/koding,rjeczalik/koding,usirin/koding,alex-ionochkin/koding,drewsetski/koding,alex-ionochkin/koding,cihangir/koding,gokmen/koding,gokmen/koding,alex-ionochkin/koding,alex-ionochkin/koding,koding/koding,rjeczalik/koding,usirin/koding,kwagdy/koding-1,m...
0f23ddded8357bc0f3b5a0050510ada64bb1e236
src/config.coffee
src/config.coffee
module.exports = config = apiEndpoint: process.env.API_ENDPOINT ? 'https://api.resin.io' registryEndpoint: process.env.REGISTRY_ENDPOINT ? 'registry.resin.io' pubnub: subscribe_key: process.env.PUBNUB_SUBSCRIBE_KEY ? 'sub-c-bananas' publish_key: process.env.PUBNUB_PUBLISH_KEY ? 'pub-c-bananas' mixpanelToken: pr...
module.exports = config = apiEndpoint: process.env.API_ENDPOINT ? 'https://api.resin.io' registryEndpoint: process.env.REGISTRY_ENDPOINT ? 'registry.resin.io' pubnub: subscribe_key: process.env.PUBNUB_SUBSCRIBE_KEY ? 'sub-c-bananas' publish_key: process.env.PUBNUB_PUBLISH_KEY ? 'pub-c-bananas' mixpanelToken: pr...
Change the data mount point to /resin-data
Change the data mount point to /resin-data
CoffeeScript
apache-2.0
nghiant2710/resin-supervisor,resin-io/resin-multivisor,deviceMP/resin-supervisor,nghiant2710/resin-supervisor,deviceMP/resin-supervisor
98ffb15f3be782ec88aa7a3f8990b42de5cc4706
lib/table-component.coffee
lib/table-component.coffee
React = require 'react-atom-fork' {div} = require 'reactionary-atom-fork' module.exports = React.createClass getInitialState: -> firstRow: 0 lastRow: 0 totalRows: 0 rowHeight: 0 columnsWidth: [] render: -> {firstRow, lastRow, rowHeight, columnsWidth} = @state console.log columnsWidth ...
React = require 'react-atom-fork' {div} = require 'reactionary-atom-fork' module.exports = React.createClass getInitialState: -> firstRow: 0 lastRow: 0 totalRows: 0 rowHeight: 0 columnsWidth: [] render: -> {firstRow, lastRow, rowHeight, columnsWidth} = @state rows = for row in [firstR...
Fix react warning when rendering collection without keys
:bug: Fix react warning when rendering collection without keys
CoffeeScript
mit
abe33/atom-tablr
028c030e76697ccdb2262d95df58f6605ed2d27b
src/postie.coffee
src/postie.coffee
class Postie listenCallback: null constructor: (options = {}) -> send: (frames, data, callback) -> console.log frames # Public: assign listener callback function listen: (callback) -> @listenCallback = callback @bindEventListener onMessage: (event) -> event = @parseEvent(event) ...
class Postie listenCallback: null domain: '*' constructor: (options = {}) -> send: (frames, data, callback) -> console.log frames # Public: assign listener callback function listen: (callback) -> @listenCallback = callback @bindEventListener onMessage: (event) -> event = @parseE...
Set cross-domain allowed to default to '*'
Set cross-domain allowed to default to '*'
CoffeeScript
mit
paulspringett/postie.js