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
f89187d998bf684c5fe39e35fe4286bbd5f2f04f
app/assets/javascripts/devtools.coffee
app/assets/javascripts/devtools.coffee
getResponse = -> Screensmart.store.getState().response delay = (ms, func) -> setTimeout func, ms window.autofill = -> delay 20, -> unless getResponse().loading lastQuestion = getResponse().questions[getResponse().questions.length - 1] # Pick random option options = lastQuestion.answerOptionSet...
getResponse = -> Screensmart.store.getState().response delay = (ms, func) -> setTimeout func, ms window.autofill = -> delay 20, -> autofill() unless getResponse().done unless getResponse().loading lastQuestion = getResponse().questions[getResponse().questions.length - 1] # Pick random option ...
Call next autofill iteration before it starts loading again
Call next autofill iteration before it starts loading again
CoffeeScript
mit
roqua/screensmart,roqua/screensmart,roqua/screensmart
11a5159c124e2344ca00f39d16bda908f74c144e
lib/file-view.coffee
lib/file-view.coffee
{View} = require 'space-pen' $ = require 'jquery' Git = require 'git' fs = require 'fs' module.exports = class FileView extends View @content: ({file} = {}) -> @li class: 'file entry', => @span file.getBaseName(), class: 'name', outlet: 'fileName' @span '', class: 'highlight' file: null initia...
{View} = require 'space-pen' $ = require 'jquery' Git = require 'git' fs = require 'fs' module.exports = class FileView extends View @content: ({file} = {}) -> @li class: 'file entry', => @span file.getBaseName(), class: 'name', outlet: 'fileName' @span '', class: 'highlight' file: null initia...
Use binary icon for .woff and .DS_Store extensions
Use binary icon for .woff and .DS_Store extensions
CoffeeScript
mit
jasonhinkle/tree-view,samu/tree-view,tbryant/tree-view,benjaminRomano/tree-view,rajendrant/tree-view-remote,thgaskell/tree-view,cgrabowski/webgl-studio-tree-view,ALEXGUOQ/tree-view,laituan245/tree-view,matthewbauer/tree-view,ayumi/tree-view,learn-co/learn-ide-tree,tomekwi/tree-view,jarig/tree-view,Galactix/tree-view,po...
802e37bcabb4ad3ee28354862bf5a0fd2f7e404a
src/scripts/ping.coffee
src/scripts/ping.coffee
# Description: # Utility commands surrounding Hubot uptime. # # Commands: # hubot ping - Reply with pong # hubot echo <text> - Reply back with <text> # hubot time - Reply with current time # hubot die - End hubot process module.exports = (robot) -> robot.respond /PING$/i, (msg) -> msg.send "PONG" ro...
# Description: # Utility commands surrounding Hubot uptime. # # Commands: # hubot ping - Reply with pong # hubot adapter - Reply with the adapter # hubot echo <text> - Reply back with <text> # hubot time - Reply with current time # hubot die - End hubot process module.exports = (robot) -> robot.respond /...
Add help for adapter command.
Add help for adapter command.
CoffeeScript
mit
Drooids/hubot,geoffreyanderson/hubot,b3nj4m/hubot,RiddickSky/hubot,RavenB/hubot,cameronmcefee/hubot,daudich/hubot,Mattlk13/Hubot,kkirsche/hubot,lukw00/hubot,ykelvis/hubot,hubotio/hubot,rafaell-lycan/Hubot-X9,CobyR/hubot,WaleedAshraf/hubot,AlexandrPuryshev/hubot,wyncode/hubot,julianromera/hubot,bradparks/hubot__github_c...
b6326ecee52bfe1a3b432efa087c821aa70c891a
client/lanes/screens/CommonComponents.cjsx
client/lanes/screens/CommonComponents.cjsx
class Lanes.Screens.CommonComponents extends Lanes.React.Component propTypes: commands: React.PropTypes.instanceOf(Lanes.Screens.Commands).isRequired errors: React.PropTypes.bool networkActivity: React.PropTypes.bool toolbarProps: React.PropTypes.object ren...
class Lanes.Screens.CommonComponents extends Lanes.React.Component propTypes: commands: React.PropTypes.object.isRequired errors: React.PropTypes.bool networkActivity: React.PropTypes.bool toolbarProps: React.PropTypes.object render: -> model = @pro...
Allow commands to be any object
Allow commands to be any object
CoffeeScript
mit
argosity/lanes,argosity/hippo,argosity/hippo,argosity/hippo,argosity/lanes,argosity/lanes
b9a19ca3eda27b149706d92282972c9c2b968fe0
app/src/controllers/wallet/send/wallet_send_mobile_dialog_view_controller.coffee
app/src/controllers/wallet/send/wallet_send_mobile_dialog_view_controller.coffee
class @WalletSendMobileDialogViewController extends @DialogViewController view: mobileName: "#mobile_name" cancel: -> Api.callback_cancel 'send_payment', t('wallet.send.errors.cancelled') @dismiss() initialize: -> super @_request = ledger.m2fa.requestValidation(@params.transaction, @params....
class @WalletSendMobileDialogViewController extends @DialogViewController view: mobileName: "#mobile_name" cancel: -> Api.callback_cancel 'send_payment', t('wallet.send.errors.cancelled') @dismiss() initialize: -> super @_request = ledger.m2fa.requestValidation(@params.transaction, @params....
Fix wrong arrow in send mobile view controller
Fix wrong arrow in send mobile view controller
CoffeeScript
mit
LedgerHQ/ledger-wallet-chrome,LedgerHQ/ledger-wallet-chrome
4a5f03c77cdc0b3f6fe7cf4d68cac9f5aa61188c
index.coffee
index.coffee
fs = require "fs" path = require "path" module.exports = (robot, scripts) -> scriptsPath = path.resolve(__dirname, "src") fs.exists scriptsPath, (exists) -> if exists for script in fs.readdirSync(scriptsPath) if scripts? and "*" not in scripts robot.loadF...
fs = require 'fs' path = require 'path' module.exports = (robot, scripts) -> scriptsPath = path.resolve(__dirname, 'src') if fs.existsSync scriptsPath for script in fs.readdirSync(scriptsPath).sort() if scripts? and '*' not in scripts robot.loadFile(scriptsPath, script) if s...
Load / run scripts synchronously
Load / run scripts synchronously
CoffeeScript
mit
ClaudeBot/hubot-mail,ClaudeBot/hubot-mail
addfed586ba957d39ef3711fe84e5aa6101f59c1
index.coffee
index.coffee
fs = require('fs-extra-promise') fm = require('fastmatter') moment = require('moment') markdown = require('marked') glob = require('glob-promise') Promise = require('bluebird') S = require('string') class Post constructor: (post) -> @post = post body = fs.readFileSync @post, 'utf-8' @matter = fm(body.toS...
fs = require('fs-extra-promise') fm = require('fastmatter') moment = require('moment') markdown = require('marked') glob = require('glob-promise') Promise = require('bluebird') S = require('string') class Post constructor: (post) -> @post = post body = fs.readFileSync @post, 'utf-8' @matter = fm(body.toS...
Use title and not full path for slugify
Use title and not full path for slugify
CoffeeScript
mit
battlemidget/genc-parse
4cb7fa3fb9591b6e1089309cbfebb830e143b002
util.common.coffee
util.common.coffee
Plugin = require 'plugin' {tr} = require 'i18n' exports.questions = questions = -> [ ["stolen alcohol from my parents", true], ["cheated in a competition", false], ["eaten cake", false] ] exports.indexToQuestion = (q) -> "Never have I ever " + questions[q][0]
Plugin = require 'plugin' {tr} = require 'i18n' exports.questions = questions = -> [ ["stolen alcohol from my parents", true], ["cheated in a competition", false], ["eaten cake", false] ] exports.indexToQuestion = (q) -> stringToQuestion questions[q][0] exports.stringToQuestion = stringToQuestion = (...
Split functionality for printing questions
Split functionality for printing questions
CoffeeScript
mit
StephenSwat/Happening-Never-Have-I-Ever
39e5d22e6938fc8c6582e032ffbf71ea5139ca17
atom/snippets.cson
atom/snippets.cson
".source.ruby": "Hashrocket": prefix: "=" body: " => " "Test block": prefix: "test" body: """ test "$1" do $2 end """ ".source.coffee": "Describe block": prefix: "de" body: """ describe "${1:description}", -> ${2:body} """ "It block": prefi...
".source.ruby": "Hashrocket": prefix: "=" body: " => " "Context block": prefix: "context" body: """ context "$1" do $2 end """ "Test block": prefix: "test" body: """ test "$1" do $2 end """ ".source.coffee": "Describe block": prefix:...
Add Ruby snippet for context blocks
Add Ruby snippet for context blocks
CoffeeScript
mit
jasonrudolph/dotfiles,jasonrudolph/dotfiles,jasonrudolph/dotfiles,jasonrudolph/dotfiles
2f2b0ce66be5a5199d1a09a8df27bc45cb4f5847
app/assets/javascripts/adapter.coffee
app/assets/javascripts/adapter.coffee
#= require models/data_collector adapter = if window.location.search.lastIndexOf('fixture') != -1 DS.FixtureAdapter.extend latency: 250 else DS.RESTAdapter.configure 'plurals', event_search: 'event_searches' DS.RESTAdapter.extend ...
#= require models/data_collector #= require models/event_search adapter = if window.location.search.lastIndexOf('fixture') != -1 DS.FixtureAdapter.extend latency: 250 else DS.RESTAdapter.configure 'plurals', event_search: 'event_searches' DS.RE...
Embed associated data in EventSearch.
Embed associated data in EventSearch. This has a couple benefits: 1. The search becomes self-contained. Combined with persistence on the server, this means that the search parameters remain the same forever. (Or at least as long as Pancakes' database stays intact.) 2. We can send an entire event search in one...
CoffeeScript
mit
NUBIC/ncs_navigator_pancakes,NUBIC/ncs_navigator_pancakes,NUBIC/ncs_navigator_pancakes
2f49297348bd82bd0e2680b57e22f2dd3fcf4ffa
server/index.coffee
server/index.coffee
Messages = new Meteor.Collection('messages') irc = Meteor.require 'irc' clients = {} Meteor.publish 'channel', (channel, nick) -> if channel && nick listen channel, nick Messages.find(channel : channel) listen = (channel, nick) -> console.log(channel, nick) client = clients[nick] = new irc.C...
Messages = new Meteor.Collection('messages') irc = Meteor.require 'irc' clients = {} Meteor.publish 'channel', (channel, nick) -> if channel && nick listen channel, nick Messages.find(channel : channel) listen = (channel, nick) -> console.log(channel, nick) client = clients[nick] = new irc.C...
Fix incoming messages not being shown
Fix incoming messages not being shown
CoffeeScript
mit
alFReD-NSH/cool-irc
8df9a42e23355bc8ae9a5f940b9fb1a71cb678fe
app/components/svg-image.cjsx
app/components/svg-image.cjsx
# @cjsx React.DOM React = require 'react' # React.DOM doesn't include an SVG <image> tag # (because of its namespaced `xlink:href` attribute, I think), # so this fakes one by wrapping it in a <g>. module.exports = React.createClass displayName: 'SVGImage' getDefaultProps: -> src: '' width: 0 height:...
# @cjsx React.DOM React = require 'react' # React.DOM doesn't include an SVG <image> tag # (because of its namespaced `xlink:href` attribute, I think), # so this fakes one by wrapping it in a <g>. module.exports = React.createClass displayName: 'SVGImage' getDefaultProps: -> src: '' width: 0 height:...
Fix SVG image sizing in Safari
Fix SVG image sizing in Safari
CoffeeScript
apache-2.0
camallen/Panoptes-Front-End,amyrebecca/Panoptes-Front-End,alexbfree/Panoptes-Front-End,parrish/Panoptes-Front-End,zooniverse/Panoptes-Front-End,jelliotartz/Panoptes-Front-End,camallen/Panoptes-Front-End,aliburchard/Panoptes-Front-End,CKrawczyk/Panoptes-Front-End,marten/Panoptes-Front-End,tfmorris/Panoptes-Front-End,edp...
e0dcd78ae02c3e7143679d3fa315be06c3baf0f7
app/assets/javascripts/lib/managers/select_group_manager.js.coffee
app/assets/javascripts/lib/managers/select_group_manager.js.coffee
define ['jquery'], ($) -> class SelectGroup constructor: (@parent = null, @callback = false) -> @selectParent = (if @parent != null then $(@parent) else $('.js-select-group')) @addHandlers() addHandlers: -> @selectParent.on 'change', '.js-select', (e) => e.preventDefault() ...
define ['jquery'], ($) -> class SelectGroup constructor: (@parent = null, @callback = false) -> @selectParent = (if @parent != null then $(@parent) else $('.js-select-group')) @addHandlers() addHandlers: -> @selectParent.on 'focus', '.js-select', (e) => @getOverlay(e.target).addCl...
Add keyboard support for navigating custom select box
Add keyboard support for navigating custom select box
CoffeeScript
mit
Lostmyname/rizzo,Lostmyname/rizzo,lonelyplanet/rizzo,Lostmyname/rizzo,lonelyplanet/rizzo,lonelyplanet/rizzo,lonelyplanet/rizzo,Lostmyname/rizzo,lonelyplanet/rizzo,Lostmyname/rizzo
ef9afc45621b8a7f7ffda32ee26658a632dcfaa2
client/app/Applications/WebTerm.kdapplication/AppController.coffee
client/app/Applications/WebTerm.kdapplication/AppController.coffee
class WebTermController extends AppController KD.registerAppClass this, name : "WebTerm" route : "/Develop" multiple : yes hiddenHandle : no behavior : "application" preCondition : condition : (options, cb)-> KD.singletons.vmController.info (err, vm, info...
class WebTermController extends AppController KD.registerAppClass this, name : "WebTerm" route : "/Develop" multiple : yes hiddenHandle : no behavior : "application" preCondition : condition : (options, cb)-> {params} = options vmName = params?....
Fix WebTerm to work correctly with multiple VMs
Fix WebTerm to work correctly with multiple VMs
CoffeeScript
agpl-3.0
usirin/koding,koding/koding,andrewjcasal/koding,usirin/koding,sinan/koding,rjeczalik/koding,gokmen/koding,rjeczalik/koding,mertaytore/koding,rjeczalik/koding,drewsetski/koding,mertaytore/koding,rjeczalik/koding,koding/koding,mertaytore/koding,mertaytore/koding,acbodine/koding,cihangir/koding,jack89129/koding,usirin/kod...
6507050e3ec2f7c5e6ba616f883d81effa60d7ee
.config/atom/config.cson
.config/atom/config.cson
"*": core: audioBeep: false disabledPackages: [ "language-clojure" "language-go" "language-java" "language-perl" "language-objective-c" "language-property-list" "metrics" "open-on-github" "package-generator" "symbols-view" "language-toml" ]...
"*": core: audioBeep: false closeEmptyWindows: false disabledPackages: [ "language-clojure" "language-go" "language-java" "language-perl" "language-objective-c" "language-property-list" "metrics" "open-on-github" "package-generator" "symbols-view...
Disable atom auto-close with last tab
Disable atom auto-close with last tab
CoffeeScript
mit
glepretre/dotfiles
62a4f4dbfe0dd234b6997a77c3adc4e14642f270
src/ext/components/log-file-output.coffee
src/ext/components/log-file-output.coffee
H2O.LogFileOutput = (_, _cloud, _nodeIndex, _fileType, _logFile) -> _exception = signal null #TODO Display in .jade _contents = signal '' _nodes = signal [] _activeNode = signal null _fileTypes = signal ['trace', 'debug', 'info', 'warn', 'error', 'fatal', 'stdout', 'stderr'] _activeFileType = signal null ...
H2O.LogFileOutput = (_, _cloud, _nodeIndex, _fileType, _logFile) -> _exception = signal null #TODO Display in .jade _contents = signal '' _nodes = signal [] _activeNode = signal null _fileTypes = signal ['trace', 'debug', 'info', 'warn', 'error', 'fatal', 'httpd', 'stdout', 'stderr'] _activeFileType = sign...
Add httpd to list of log file types.
Add httpd to list of log file types.
CoffeeScript
mit
nilbody/h2o-flow,junwucs/h2o-flow,nilbody/h2o-flow,nilbody/h2o-flow,h2oai/h2o-flow,printedheart/h2o-flow,junwucs/h2o-flow,printedheart/h2o-flow,junwucs/h2o-flow,printedheart/h2o-flow,h2oai/h2o-flow
a3839c70a5cb5eb5adf697871ca1394e56969dc2
app/scripts/app.coffee
app/scripts/app.coffee
'use strict' angular .module('taarifaWaterpointsApp', [ 'ngResource', 'ngRoute', 'leaflet-directive', 'dynform' ]) .config ($routeProvider) -> $routeProvider .when '/', templateUrl: 'views/main.html' controller: 'MapCtrl' .when '/waterpoints/edit/:id', temp...
'use strict' angular .module('taarifaWaterpointsApp', [ 'ngResource', 'ngRoute', 'leaflet-directive', 'dynform' ]) .config ($routeProvider) -> $routeProvider .when '/', templateUrl: 'views/main.html' controller: 'MapCtrl' .when '/waterpoints/edit/:id', temp...
Add route for waterpoint creation form
Add route for waterpoint creation form
CoffeeScript
apache-2.0
gwob/Maarifa,gwob/Maarifa,gwob/Maarifa,gwob/Maarifa,gwob/Maarifa
50172154c5571f14711072d6d96d0b2a0d35fad6
src/beautifiers/prettier.coffee
src/beautifiers/prettier.coffee
"use strict" Beautifier = require('./beautifier') prettier = require("prettier") module.exports = class Prettier extends Beautifier name: "Prettier" link: "https://github.com/prettier/prettier" options: { _: tabWidth: "indent_size" useTabs: ["indent_with_tabs", "indent_char", (indent_with_tabs, ...
"use strict" Beautifier = require('./beautifier') prettier = require("prettier") path = require("path") module.exports = class Prettier extends Beautifier name: "Prettier" link: "https://github.com/prettier/prettier" options: { _: tabWidth: "indent_size" useTabs: ["indent_with_tabs", "indent_cha...
Use path and context to retrieve the directory
Use path and context to retrieve the directory
CoffeeScript
mit
Glavin001/atom-beautify,Glavin001/atom-beautify,Glavin001/atom-beautify,Glavin001/atom-beautify,Glavin001/atom-beautify
12c315ecfd081e26d988398f311c380da0fa36ee
src/atom/command-interpreter/substitution.coffee
src/atom/command-interpreter/substitution.coffee
module.exports = class Substitution global: false constructor: (@findText, @replaceText, @options) -> @findRegex = new RegExp(@findText, "g") @global = 'g' in @options perform: (editor) -> { buffer } = editor selectedText = editor.getSelectedText() selectionStartIndex = buffer.characterIndex...
module.exports = class Substitution global: false constructor: (@findText, @replaceText, @options) -> @findRegex = new RegExp(@findText) @global = 'g' in @options perform: (editor) -> selectedText = editor.getSelectedText() selectionStartIndex = editor.buffer.characterIndexForPosition(editor.get...
Use recursion to substitute text
Use recursion to substitute text
CoffeeScript
mit
RuiDGoncalves/atom,gisenberg/atom,ppamorim/atom,transcranial/atom,originye/atom,vcarrera/atom,brumm/atom,synaptek/atom,kandros/atom,sekcheong/atom,Jonekee/atom,vjeux/atom,atom/atom,xream/atom,lisonma/atom,palita01/atom,Klozz/atom,lpommers/atom,kandros/atom,hpham04/atom,devmario/atom,davideg/atom,toqz/atom,0x73/atom,and...
0f8bde189999696b05af454e13ccc621891f7716
core/app/backbone/views/channels/suggested_channels_view.coffee
core/app/backbone/views/channels/suggested_channels_view.coffee
class SuggestedTopicsEmptyView extends Backbone.Marionette.ItemView template: text: "No suggestions available." class SuggestedSiteTopicView extends Backbone.Marionette.ItemView tagName: 'li' template: "channels/suggested_channel" events: 'click' : 'clickAdd' clickAdd: -> @model.withCurrentOrCr...
class SuggestedTopicsEmptyView extends Backbone.Marionette.ItemView template: text: "No suggestions available." class SuggestedSiteTopicView extends Backbone.Marionette.ItemView tagName: 'li' template: "channels/suggested_channel" events: 'click' : 'clickAdd' clickAdd: -> @model.withCurrentOrCr...
Use the CollectionUtils difference for suggested channels
Use the CollectionUtils difference for suggested channels
CoffeeScript
mit
daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core,daukantas/factlink-core,Factlink/factlink-core
a9c9ed63f177744016efcfa6cf9ca078758c83f2
app/assets/javascripts/locations.js.coffee
app/assets/javascripts/locations.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/ window.onload = -> handler = Gmaps.build("Google") handler.buildMap provider: {} ...
# 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/ #window.onload = -> $(document).ready(-> handler = Gmaps.build("Google") handler.buildM...
Add example of use Directions
Add example of use Directions Signed-off-by: Gustavo Toshi Komura <4cad6e13d165ce6dbdcf3458fc5cbc27ddef2a34@gmail.com>
CoffeeScript
mit
toshikomura/DiseasesMap,toshikomura/DiseasesMap,toshikomura/DiseasesMap
1afb910ba426c821ead6e04488fdde29321c7721
t/compiler/harness.coffee
t/compiler/harness.coffee
{Client} = require "mysql" fs = require "fs" context = compiler: require "../../lib/compiler" object: { id: 1, rgt: 1, lft: 2, permalink: "home" } reflector: (callback) -> configuration = JSON.parse fs.readFileSync("#{__dirname}/../../configuration.json", "utf8") mysql = configuration.databases.mysql ...
{Client} = require "mysql" fs = require "fs" context = compiler: require "../../lib/compiler" object: { id: 1, rgt: 1, lft: 2, permalink: "home" } reflector: (callback) -> configuration = JSON.parse fs.readFileSync("#{__dirname}/../../configuration.json", "utf8") mysql = configuration.databases.mysql ...
Use schema query from MySQL driver in tests.
Use schema query from MySQL driver in tests. The query that builds a schema object for the compiler tests is returning no rows on Travis CI. In this commit we replace that query with the query from the MySQL driver that appears to be working on Travis CI.
CoffeeScript
mit
bigeasy/relatable,bigeasy/relatable
d0dd0a988200dd34a7f406bdf01ccae74f38aa6d
src/package.coffee
src/package.coffee
path = require 'path' CSON = require 'season' module.exports = class Package @build: (packagePath) -> AtomPackage = require './atom-package' ThemePackage = require './theme-package' try metadata = @loadMetadata(packagePath) if metadata.theme pack = new ThemePackage(packagePath, {meta...
path = require 'path' CSON = require 'season' module.exports = class Package @build: (packagePath) -> AtomPackage = require './atom-package' ThemePackage = require './theme-package' try metadata = @loadMetadata(packagePath) if metadata.theme pack = new ThemePackage(packagePath, {meta...
Rename e variables to error
Rename e variables to error
CoffeeScript
mit
tisu2tisu/atom,medovob/atom,sebmck/atom,KENJU/atom,dkfiresky/atom,fedorov/atom,Jdesk/atom,sebmck/atom,githubteacher/atom,jtrose2/atom,einarmagnus/atom,sillvan/atom,ivoadf/atom,sekcheong/atom,rxkit/atom,hpham04/atom,sillvan/atom,Locke23rus/atom,ali/atom,devmario/atom,Jonekee/atom,helber/atom,toqz/atom,yangchenghu/atom,b...
a33269c964f755985fdd0426ef8afc9e9b6ddc7a
test/sample.coffee
test/sample.coffee
expect = require('chai').expect phantom = require('phantom') url = 'http://localhost:4567' describe 'Load page: http://localhost:4567 and', -> browser = null testOpts = title: 'MyWay!' before -> browser = new Browser() return browser.visit url it "is expected to have a title of '#{testOpts.titl...
expect = require('chai').expect phantom = require('phantom') visitUrl = (url, callback) -> phantom.create (ph) -> ph.createPage (pg) -> pg.open url, (status) -> callback(pg) describe 'On page: http://localhost:4567 and', -> page = null before (done) -> visitUrl 'http://localhost:4567', (p...
Test HTML and CSS with PhantomJS
Test HTML and CSS with PhantomJS - Adds a helper function that'll be extracted later
CoffeeScript
mit
adorableio/gozer
8fd387b3615383d5d09807f4fbb6e075bd8448bb
lib/metrics.coffee
lib/metrics.coffee
crypto = require 'crypto' Reporter = require './reporter' module.exports = activate: ({sessionLength}) -> if atom.config.get('metrics.userId') @begin(sessionLength) else @getUserId (userId) -> atom.config.set('metrics.userId', userId) @begin(sessionLength) serialize: -> sessionLength...
crypto = require 'crypto' Reporter = require './reporter' module.exports = activate: ({sessionLength}) -> if atom.config.get('metrics.userId') @begin(sessionLength) else @getUserId (userId) -> atom.config.set('metrics.userId', userId) @begin(sessionLength) serialize: -> sessionLength...
Throw error if there is no MAC address
Throw error if there is no MAC address
CoffeeScript
mit
atom/metrics
72f7bf20a4ee00ab574487316998236cbb29d00c
lib/link.coffee
lib/link.coffee
# React = require 'react' $ = React.createElement Component = require './component' class Link extends Component @defaultProps = href: '#' role: 'link' tabIndex: 0 focus: => React.findDOMNode(this).focus() prepare: (props) -> super props props.classList.push 'm-focus' if @state.focus ...
# React = require 'react' $ = React.createElement Component = require './component' {BUTTON_LEFT, KEY_ENTER} = require './constants' class Link extends Component @defaultProps = href: '#' role: 'link' tabIndex: 0 focus: => React.findDOMNode(this).focus() prepare: (props) -> super props ...
Drop custom classes from Link
Drop custom classes from Link
CoffeeScript
mit
jgraichen/molecule,jgraichen/molecule
884fb094713962f90fd65a4d6463af04488df9d4
lib/provider.coffee
lib/provider.coffee
module.exports = selector: ['.source.python'] id: 'aligner-python' # package name config: ':-alignment': title: 'Padding for =>' description: 'Pad left or right of the character' type: 'string' enum: ['left', 'right'] default: 'right' ':-leftSpace': title: 'Left space f...
module.exports = selector: ['.source.python'] id: 'aligner-python' # package name config: ':-alignment': title: 'Padding for :' description: 'Pad left or right of the character' type: 'string' enum: ['left', 'right'] default: 'right' ':-leftSpace': title: 'Left space fo...
Fix invalid copy in config
Fix invalid copy in config
CoffeeScript
mit
adrianlee44/atom-aligner-python
35695837e4e10007508efd0fcbf8eb4b5eb4943b
src/scripts/dimmerworld.coffee
src/scripts/dimmerworld.coffee
# Description: # "Your very own Dimmerworld simulator." # # Dependencies: # "cleverbot-node": "0.1.1" # # Configuration: # None # # Commands: # dimmer <input> # # Author: # zachlatta dimmer = require('cleverbot-node') module.exports = (robot) -> d = new dimmer() robot.hear /^dimmer: (.*)/i, (msg) -> ...
# Description: # "Your very own Dimmerworld simulator." # # Dependencies: # "cleverbot-node": "0.1.1" # # Configuration: # None # # Commands: # dimmer <input> # # Author: # zachlatta dimmer = require('cleverbot-node') module.exports = (robot) -> d = new dimmer() robot.respond /^dimmer/i, (msg) -> dat...
Use robot.respond instead of robot.hear.
Use robot.respond instead of robot.hear. Untested. Hopefully this'll work.
CoffeeScript
mit
yigitbey/hubot-scripts,github/hubot-scripts,MaxMEllon/hubot-scripts,zecahnin/hubot-scripts,jankowiakmaria/hubot-scripts,opentable/hubot-scripts,n0mer/hubot-scripts,alexhouse/hubot-scripts,jan0sch/hubot-scripts,chauffer/hubot-scripts,arcaartem/hubot-scripts,jhubert/hubot-scripts,davidsulpy/hubot-scripts,contolini/hubot-...
c06e237e312e5e59985c0a2c18388738c9351abc
libraries/settings/Settings.coffee
libraries/settings/Settings.coffee
fs = require "fs" path = require "path" env = (process.env.NODE_ENV or "development").toLowerCase() if process.env.SHARELATEX_CONFIG? possibleConfigFiles = [process.env.SHARELATEX_CONFIG] else possibleConfigFiles = [ process.cwd() + "/config/settings.#{env}.coffee" path.normalize(__dirname + "/../../config/setti...
fs = require "fs" path = require "path" env = (process.env.NODE_ENV or "development").toLowerCase() merge = (settings, defaults) -> for key, value of settings if typeof(value) == "object" defaults[key] = merge(settings[key], defaults[key] or {}) else defaults[key] = value return defaults defaultSettingsPa...
Load and merge defaults if available
Load and merge defaults if available Load and merge defaults if available
CoffeeScript
agpl-3.0
sharelatex/sharelatex
0ff44544a41b677904931cbdf24cdb6618a4b7f5
lib/toggle-quotes.coffee
lib/toggle-quotes.coffee
toggleQuotes = (editor) -> cursors = editor.getCursors() positions = [] for cursor in cursors do (cursor) -> positions.push(position = cursor.getBufferPosition()) toggleQuoteAtPosition(editor, position) # reset cursors to where they were - first destroy all, then add them back in # at their...
toggleQuotes = (editor) -> cursors = editor.getCursors() for cursor in cursors do (cursor) -> position = cursor.getBufferPosition() toggleQuoteAtPosition(editor, position) cursor.setBufferPosition(position) toggleQuoteAtPosition = (editor, position) -> range = editor.displayBuffer.bufferRa...
Remove odd saving and restoring of cursor positions behaviour, code is now cleaner
Remove odd saving and restoring of cursor positions behaviour, code is now cleaner
CoffeeScript
mit
atom/toggle-quotes
b0831f4f07c2c4780b85f912e00803052b527487
angular/core/components/poll/poll/vote_form/poll_poll_vote_form.coffee
angular/core/components/poll/poll/vote_form/poll_poll_vote_form.coffee
angular.module('loomioApp').directive 'pollPollVoteForm', -> scope: {stance: '='} templateUrl: 'generated/components/poll/poll/vote_form/poll_poll_vote_form.html' controller: ($scope, PollService, MentionService, KeyEventService) -> $scope.vars = {} multipleChoice = $scope.stance.poll().multipleChoice ...
angular.module('loomioApp').directive 'pollPollVoteForm', -> scope: {stance: '='} templateUrl: 'generated/components/poll/poll/vote_form/poll_poll_vote_form.html' controller: ($scope, PollService, MentionService, KeyEventService) -> $scope.vars = {} $scope.pollOptionIdsChecked = {} initForm = do -> ...
Fix for edited mult choice poll no options selected
Fix for edited mult choice poll no options selected
CoffeeScript
agpl-3.0
loomio/loomio,piratas-ar/loomio,piratas-ar/loomio,loomio/loomio,loomio/loomio,loomio/loomio,piratas-ar/loomio,piratas-ar/loomio
1f8e0a657c488de8aae313be2d9a55734a3e4ca3
index.coffee
index.coffee
fs = require 'fs' path = require 'path' module.exports = (robot, scripts) -> scriptsPath = path.resolve(__dirname, 'src') fs.exists scriptsPath, (exists) -> if exists for script in fs.readdirSync(scriptsPath) if scripts? and '*' not in scripts robot.loadF...
fs = require 'fs' path = require 'path' module.exports = (robot, scripts) -> scriptsPath = path.resolve(__dirname, 'src') if fs.existsSync scriptsPath for script in fs.readdirSync(scriptsPath).sort() if scripts? and '*' not in scripts robot.loadFile(scriptsPath, script) if s...
Load / run scripts synchronously
Load / run scripts synchronously
CoffeeScript
mit
ClaudeBot/hubot-hitbox,ClaudeBot/hubot-hitbox
a6803a266acdceef4417d5a156f62fe606acd001
spec/deserializer-manager-spec.coffee
spec/deserializer-manager-spec.coffee
DeserializerManager = require '../src/deserializer-manager' describe ".deserialize(state)", -> deserializer = null class Foo @deserialize: ({name}) -> new Foo(name) constructor: (@name) -> beforeEach -> deserializer = new DeserializerManager() deserializer.registerDeserializer(Foo) it "calls...
DeserializerManager = require '../src/deserializer-manager' describe ".deserialize(state)", -> deserializer = null class Foo @deserialize: ({name}) -> new Foo(name) constructor: (@name) -> beforeEach -> deserializer = new DeserializerManager() deserializer.add(Foo) it "calls deserialize on t...
Call add instead of registerDeserializer
Call add instead of registerDeserializer
CoffeeScript
mit
acontreras89/atom,sekcheong/atom,yamhon/atom,me6iaton/atom,Galactix/atom,oggy/atom,AlbertoBarrago/atom,fang-yufeng/atom,DiogoXRP/atom,NunoEdgarGub1/atom,chfritz/atom,YunchengLiao/atom,Austen-G/BlockBuilder,RobinTec/atom,fang-yufeng/atom,qiujuer/atom,rjattrill/atom,targeter21/atom,PKRoma/atom,abcP9110/atom,mostafaeweda/...
fb55973660640bfd743c666839cd3c1553f8532e
test/integration/dynamodb.spec.coffee
test/integration/dynamodb.spec.coffee
AWS = require('../../lib/aws') config = new AWS.FileSystemConfig('configuration') integration = (test, callback) -> req = test.suite.parentSuite.service[test.suite.description]() resp = null runs -> req.always (respObject) -> resp = respObject waitsFor -> resp != null runs -> callback(resp)...
AWS = require('../../lib/aws') config = new AWS.FileSystemConfig('configuration') integration = (test, callback) -> req = test.suite.parentSuite.service[test.suite.description]() resp = null runs -> req.always (respObject) -> resp = respObject waitsFor -> resp != null runs -> callback(resp)...
Make integration test work in any environment
Make integration test work in any environment
CoffeeScript
apache-2.0
aws/aws-sdk-js,dconnolly/aws-sdk-js,mohamed-kamal/aws-sdk-js,mapbox/aws-sdk-js,dconnolly/aws-sdk-js,AdityaManohar/aws-sdk-js,ugie/aws-sdk-js,chrisradek/aws-sdk-js,chrisradek/aws-sdk-js,guymguym/aws-sdk-js,chrisradek/aws-sdk-js,jeskew/aws-sdk-js,jippeholwerda/aws-sdk-js,misfitdavidl/aws-sdk-js,dconnolly/aws-sdk-js,misfi...
c24638fc07c058888c202872422bbc7c9b296469
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 WORD_CHARS = "abcdefghijklmnopqrstuvwxyz" randWord = (len) -> word = "" for c in [1..len] index = Math.floor(Math.random() ...
# 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 = "abcdefghijklmnopqrstuvwxyz0123456789 " randWord = (len) -> word = "" for c in [1..len] index = Math.floor(Mat...
Expand charset for stress test words again
Expand charset for stress test words again turns out snaps were plenty common!
CoffeeScript
mit
CMS611-snap/snap-backend,CMS611-snap/snap-backend,CMS611-snap/snap-backend
ebdaf28cb8e93f4ab694df25d272765132778823
app/assets/javascripts/backbone/water_backbone.js.coffee
app/assets/javascripts/backbone/water_backbone.js.coffee
#= require_self #= require_tree ./templates #= require_tree ./models #= require_tree ./views #= require_tree ./routers window.Water = Models: {} Collections: {} Routers: {} Views: {} $ -> fetcher = window.tree_fetcher = new Water.TreeFetcher(repository_path: gon.repository_path, ref: gon.ref) tree_view ...
#= require_self #= require_tree ./templates #= require_tree ./models #= require_tree ./views #= require_tree ./routers window.Water = Models: {} Collections: {} Routers: {} Views: {} $ -> fetcher = window.tree_fetcher = new Water.TreeFetcher(repository_path: gon.repository_path, ref: gon.ref) tree_view ...
Add global commit request object
Add global commit request object
CoffeeScript
agpl-3.0
water/mainline,water/mainline,water/mainline
a8eddbfc1b18cfeac79753358e04db4d3a6d3cde
app/js/main.coffee
app/js/main.coffee
window.go = -> window.world = new World "display" window.rect = new Rectangle 5, 0.5, position: [0, 0] inverseMass: 1/10 color: "#F00" window.rect2 = new Rectangle 1, 1, position: [0, 1] inverseMass: 1/1 velocity: [1, -2] color: "#08F" window.rect3 = new Rectangle 1, 1, posit...
window.go = -> window.world = new World "display" window.rect = new Rectangle 5, 0.5, position: [0, 0] density: 4 color: "#F00" window.rect2 = new Rectangle 1, 1, position: [0, 1] velocity: [1, -2] density: 1 color: "#08F" window.rect3 = new Rectangle 1, 1, position: [0,-1] ...
Switch to density for initialization. It's all relative anyway.
Switch to density for initialization. It's all relative anyway.
CoffeeScript
mit
zerowidth/asteroids,zerowidth/asteroids,zerowidth/asteroids
72b77404ff69f372bc7a906a187ec7e4ee9de373
atom/packages.cson
atom/packages.cson
packages: [ "advanced-open-file" "atom-alignment" "auto-update-packages" "docblockr" "editorconfig" "emmet" "expand-region" "language-apache" "language-applescript" "language-awk" "language-env" "language-gitattributes" "language-gitignore" "language-hosts" "language-ini" "language-latex...
packages: [ "advanced-open-file" "atom-alignment" "auto-update-packages" "docblockr" "editorconfig" "emmet" "expand-region" "language-apache" "language-applescript" "language-awk" "language-env" "language-gitattributes" "language-gitignore" "language-hosts" "language-ini" "language-latex...
Add linter-eslint for projects that use ESLint
Add linter-eslint for projects that use ESLint
CoffeeScript
mit
caleb531/dotfiles,caleb531/dotfiles,caleb531/dotfiles,caleb531/dotfiles
e1d0eef92c8925521789958f265c3f07dbb1f384
player.coffee
player.coffee
class Player constructor: (pos) -> @positions = [] @positions.push(pos) lastPos: -> @positions[@positions.length - 1] window.Player = Player
class Player constructor: (pos) -> @positions = [] @positions.push(pos) @current_line = [] lastPos: -> @positions[@positions.length - 1] window.Player = Player
Store current line in Player class
Store current line in Player class
CoffeeScript
agpl-3.0
Aaron1011/beamwars
cc33ecc740a8a0a53c8652ef9f9b7a38ab5fd077
Gruntfile.coffee
Gruntfile.coffee
module.exports = -> @initConfig pkg: @file.readJSON "package.json" meta: file: "request" package: "." temp: "temp" resources: src: [ "src/module.coffee" "src/emitter.coffee" "src/helpers.coffee" "src/request.coffee" ] spec: ["spec/*.co...
module.exports = -> @initConfig pkg: @file.readJSON "package.json" meta: file: "request" package: "." temp: "temp" build: "build" resources: src: [ "src/module.coffee" "src/emitter.coffee" "src/helpers.coffee" "src/request.coffee" ] ...
Split coffee spec and build tasks
Split coffee spec and build tasks
CoffeeScript
mit
philipgiuliani/request-js
db727ab4bcc71dc6aedd611a3734ec0ba54ef535
Gruntfile.coffee
Gruntfile.coffee
module.exports = (grunt) -> grunt.initConfig pkg: grunt.file.readJSON "package.json" clean: main: ["dist/**/*"] fast: ["dist/{/,routes/,bin/,sourcemap/}*{.js,.js.map}"] coffee: main: files: [ expand: true, src: ["{bin,routes,app}/*.coffee"], ...
module.exports = (grunt) -> grunt.initConfig pkg: grunt.file.readJSON "package.json" clean: main: ["dist/**/*"] fast: ["dist/{/,routes/,bin/,sourcemap/}*{.js,.js.map}"] coffee: main: files: [ expand: true, src: ["{bin,routes,app}/*.coffee"], ...
Fix build script adding content files to the build result
Fix build script adding content files to the build result
CoffeeScript
mit
Rezonation/sisetv,Rezonation/sisetv
37158d1052234fb441a860eaef861787d31a40b3
app/assets/javascripts/effective_orders/shipping_address_toggle.js.coffee
app/assets/javascripts/effective_orders/shipping_address_toggle.js.coffee
hideShippingAddressFields = (shipping_address) -> shipping_address.hide().find('input,select').removeProp('required') showShippingAddressFields = (shipping_address) -> shipping_address.show().find("input:not([name$='[address2]']),select:not([name$='[state_code]'])").prop('required', true) initShippingAddressField...
hideShippingAddressFields = (shipping_address) -> shipping_address.hide().find('input, select').prop('required', false) showShippingAddressFields = (shipping_address) -> shipping_address.show().find("input:not([name$='[address2]']),select:not([name$='[state_code]'])").prop('required', true) initShippingAddressFie...
Fix bug when shipping address fields are not getting not required when they are hidden
Fix bug when shipping address fields are not getting not required when they are hidden
CoffeeScript
mit
code-and-effect/effective_orders,code-and-effect/effective_orders,code-and-effect/effective_orders
98dbc13c862156832d9482f9d9b4b28b309d4fae
packages/rocketchat-authorization/server/functions/addUsersToRoles.coffee
packages/rocketchat-authorization/server/functions/addUsersToRoles.coffee
RocketChat.authz.addUsersToRoles = (userIds, roleNames, scope ) -> console.log '[methods] addUserToRoles -> '.green, 'arguments:', arguments if not userIds or not roleNames return false unless _.isArray(userIds) userIds = [userIds] users = Meteor.users.find({_id: {$in : userIds}}).fetch() unless userIds.leng...
RocketChat.authz.addUsersToRoles = (userIds, roleNames, scope ) -> console.log '[methods] addUserToRoles -> '.green, 'arguments:', arguments if not userIds or not roleNames return false unless _.isArray(userIds) userIds = [userIds] users = Meteor.users.find({_id: {$in : userIds}}).fetch() unless userIds.leng...
Create role when adding a user to a non-existing role
Create role when adding a user to a non-existing role
CoffeeScript
mit
ut7/Rocket.Chat,org100h1/Rocket.Panda,ndarilek/Rocket.Chat,pkgodara/Rocket.Chat,mwharrison/Rocket.Chat,Achaikos/Rocket.Chat,mitar/Rocket.Chat,org100h1/Rocket.Panda,LearnersGuild/Rocket.Chat,fatihwk/Rocket.Chat,pkgodara/Rocket.Chat,AimenJoe/Rocket.Chat,JamesHGreen/Rocket_API,flaviogrossi/Rocket.Chat,OtkurBiz/Rocket.Chat...
f16bbe0b946d33552266103cc36edd177c78c044
js-library/app/js/util/annotate.coffee
js-library/app/js/util/annotate.coffee
rightClick = (event=window.event) -> if event.which event.which == 3 else if event.button event.button == 2 else false Factlink.textSelected = (e) -> Factlink.getSelectionInfo().text?.length > 1 timeout = null annotating = false Factlink.startAnnotating = -> return if annotating annotating =...
rightClick = (event=window.event) -> if event.which event.which == 3 else if event.button event.button == 2 else false Factlink.textSelected = (e) -> Factlink.getSelectionInfo().text?.length > 1 timeout = null annotating = false Factlink.startAnnotating = -> return if annotating annotating =...
Disable annotation if there's a factlink button
Disable annotation if there's a factlink button
CoffeeScript
mit
daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core,daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core
dbd20bcd3115d0716858b0d98706be30f9f0faa2
exports/atom.coffee
exports/atom.coffee
{Point, Range} = require 'text-buffer' {File, Directory} = require 'pathwatcher' module.exports = _: require 'underscore-plus' BufferedNodeProcess: require '../src/buffered-node-process' BufferedProcess: require '../src/buffered-process' Directory: Directory File: File fs: require 'fs-plus' Git: require ...
{Point, Range} = require 'text-buffer' module.exports = _: require 'underscore-plus' BufferedNodeProcess: require '../src/buffered-node-process' BufferedProcess: require '../src/buffered-process' fs: require 'fs-plus' Git: require '../src/git' Point: Point Range: Range # The following classes can't be u...
Remove File and Directory exports
Remove File and Directory exports
CoffeeScript
mit
Neron-X5/atom,alexandergmann/atom,abe33/atom,CraZySacX/atom,phord/atom,ironbox360/atom,ppamorim/atom,florianb/atom,jlord/atom,kaicataldo/atom,ardeshirj/atom,RobinTec/atom,mostafaeweda/atom,tmunro/atom,florianb/atom,sotayamashita/atom,darwin/atom,charleswhchan/atom,scippio/atom,abcP9110/atom,Abdillah/atom,NunoEdgarGub1/...
96ee60b467ccaec24d748a939073c866f0d27ea8
src/code/views/alert-dialog-view.coffee
src/code/views/alert-dialog-view.coffee
{div, button} = React.DOM ModalDialog = React.createFactory require './modal-dialog-view' tr = require '../utils/translate' module.exports = React.createClass displayName: 'AlertDialogView' close: -> @props.close?() @props.callback?() render: -> (ModalDialog {title: @props.title or (tr '~ALERT_D...
{div, button} = React.DOM ModalDialog = React.createFactory require './modal-dialog-view' tr = require '../utils/translate' module.exports = React.createClass displayName: 'AlertDialogView' close: -> @props.close?() @props.callback?() render: -> (ModalDialog {title: @props.title or (tr '~ALERT_D...
Fix alert dialog to use raw html like confirm dialog
Fix alert dialog to use raw html like confirm dialog
CoffeeScript
mit
concord-consortium/cloud-file-manager,concord-consortium/cloud-file-manager,concord-consortium/cloud-file-manager,concord-consortium/cloud-file-manager
549a18fc5203dd0e707c3adcdb332fc19a237c16
src/main/webapp/coffeescripts-hidden/weeks-performance-graph.coffee
src/main/webapp/coffeescripts-hidden/weeks-performance-graph.coffee
$(document).ready -> chart = new Highcharts.Chart chart: renderTo: 'weeks-performance-graph', defaultSeriesType: 'spline', backgroundColor: '#f7f7f7', width: 600, animation: false title: [ text: 'Weekly Performance' ], series: [ { name: 'views', ...
$(document).ready -> chart = new Highcharts.Chart chart: renderTo: 'weeks-performance-graph', defaultSeriesType: 'spline', backgroundColor: '#f7f7f7', width: 700, animation: false title: [ text: 'Weekly Performance' ], series: [ { name: 'views', ...
Fix the width of the performance graph on the dashboard.
Fix the width of the performance graph on the dashboard.
CoffeeScript
apache-2.0
farmdawgnation/anchortab,farmdawgnation/anchortab,farmdawgnation/anchortab,farmdawgnation/anchortab
5fa2392bf06383d0d880140819e23e43d8857642
review_front/app/controllers/project/commits.coffee
review_front/app/controllers/project/commits.coffee
`import Ember from 'ember'` ProjectCommitsController = Ember.ArrayController.extend hideAccepted: true searchResults: Ember.computed 'page', 'hideAccepted', 'model', -> searchInput = null @get("model").then (model) => searchInput = model if !searchInput or !(@get('hideAccepted')) @get("ar...
`import Ember from 'ember'` ProjectCommitsController = Ember.ArrayController.extend sortProperties: ['authoredAt'] hideAccepted: true searchResults: Ember.computed.oneWay('arrangedContent') filteredContent: Ember.observer('model', 'hideAccepted', 'page', -> searchInput = @get('model') if !searchInpu...
Revert "fix for show/hide pagination"
Revert "fix for show/hide pagination" This reverts commit 787a47f5112fadc12c85f525d3fcd9d455f02935.
CoffeeScript
mit
Naturaily/review,Naturaily/review,Naturaily/review
b9cf4aa1e6d1077f5adc47fffbf0e79ef190d7c6
app/assets/javascripts/buckets.js.coffee
app/assets/javascripts/buckets.js.coffee
$ -> $(".js-bucket-list").sortable({ connectWith: ".js-bucket-list" update: (event, ui) -> if this == ui.item.parent()[0] window.target = $(event.target) bucket_id = target.data("bucket-id") position = ui.item.index() $.ajax type: "POST" url: ui.i...
makeBucketsSortable = -> $(".js-bucket-list").sortable({ connectWith: ".js-bucket-list" update: (event, ui) -> if this == ui.item.parent()[0] window.target = $(event.target) bucket_id = target.data("bucket-id") position = ui.item.index() $.ajax type: "POST"...
Make list sortable on page load/turbolinks event
Make list sortable on page load/turbolinks event
CoffeeScript
mit
jonmagic/i-got-issues,jonmagic/i-got-issues,jonmagic/i-got-issues
b1ed96e67accf6d86b5d1ecefb75db671b4ed775
app/scripts/ansible/reporters.coffee
app/scripts/ansible/reporters.coffee
angular.module('ansible') # reports the gamepad states .service 'gamepadReporter', [ '$interval' 'ansible' 'AMessage' ($interval, ansible, AMessage) -> update = -> g = navigator.getGamepads()[0] if not g? return # we don't have anything to send content = axes: g.axes ...
angular.module('ansible') # reports the gamepad states .service 'gamepadReporter', [ '$interval' 'ansible' 'AMessage' ($interval, ansible, AMessage) -> # used for not sending redundant gamepad state previousTimestamp = 0 update = -> g = navigator.getGamepads()[0] if not g? or g.timesta...
Implement not sending updates when gamepad hasn't changed.
Implement not sending updates when gamepad hasn't changed.
CoffeeScript
apache-2.0
pioneers/PieCentral,pioneers/PieCentral,pioneers/PieCentral,pioneers/PieCentral,pioneers/PieCentral,pioneers/PieCentral,pioneers/PieCentral
1ea62008797245bc3ab7d9fb919052714092dc50
js-library/app/js/jail_iframe/initializers/scrollbarSuppressor.coffee
js-library/app/js/jail_iframe/initializers/scrollbarSuppressor.coffee
scrollbarWidth = 0 FactlinkJailRoot.loaded_promise.then -> # Create the measurement nod; see http://davidwalsh.name/detect-scrollbar-width scrollDiv = document.createElement("div"); $(scrollDiv).css( width: "100px" height: "100px" overflow: "scroll" position: "absolute" top: "-9999px" ) do...
scrollbarWidth = 0 FactlinkJailRoot.loaded_promise.then -> # Create the measurement nod; see http://davidwalsh.name/detect-scrollbar-width scrollDiv = document.createElement("div"); $(scrollDiv).css( width: "100px" height: "100px" overflow: "scroll" position: "absolute" top: "-9999px" ) do...
Check whether there are currently any scrollbars
Check whether there are currently any scrollbars
CoffeeScript
mit
daukantas/factlink-core,Factlink/factlink-core,daukantas/factlink-core,Factlink/factlink-core,daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core
60e5241706aa71a4883d2932283fd84dfc0c8128
src/ui/views/typinginfo.coffee
src/ui/views/typinginfo.coffee
{scrollToBottom} = require './messages' {nameof} = require '../util' module.exports = view (models) -> {viewstate, conv, entity} = models conv_id = viewstate?.selectedConv c = conv[conv_id] return unless c typing = (t for t in (c.typing or []) when t.status != 'STOPPED') if typing.length ...
{scrollToBottom} = require './messages' {nameof} = require '../util' module.exports = view (models) -> {viewstate, conv, entity} = models conv_id = viewstate?.selectedConv c = conv[conv_id] return unless c if c.typing?.length div class:'typing', -> for t, i in c.typing ...
Revert "fix typing info getting stuck"
Revert "fix typing info getting stuck" This reverts commit 3788f0960aa3d1dfd86642e5a49bfe8bcbfe2780.
CoffeeScript
mit
yakyak/yakyak,monchote/yakyak,yakyak/yakyak,arnriu/yakyak,averissimo/yakyak,bseber/yakyak,averissimo/yakyak,refack/yakyak,yakyak/yakyak,monchote/yakyak,averissimo/yakyak,bseber/yakyak,bseber/yakyak,monchote/yakyak,arnriu/yakyak,refack/yakyak,refack/yakyak,arnriu/yakyak
8cdec9295f6bf5aafcc0a46991c5c1dc84385a5f
assets/javascripts/views/profile_stats.js.coffee
assets/javascripts/views/profile_stats.js.coffee
class TentStatus.Views.ProfileStats extends TentStatus.View templateName: '_profile_stats' initialize: (options) -> super @resources = ['posts', 'followers', 'followings'] for r in @resources do (r) => @on "change:#{r}Count", @render new HTTP 'GET', "#{TentStatus.config.current_...
class TentStatus.Views.ProfileStats extends TentStatus.View templateName: '_profile_stats' initialize: (options) -> super @resources = ['posts', 'followers', 'followings'] for r in @resources do (r) => @on "change:#{r}Count", @render if r == 'posts' params = { ...
Fix posts count on profile
Fix posts count on profile
CoffeeScript
bsd-3-clause
tent/tent-status,tent/tent-status
37da65e90a58c2fb37b5376478d59f886ea759c4
app/assets/javascripts/sprangular/models/user.coffee
app/assets/javascripts/sprangular/models/user.coffee
class Sprangular.User init: -> @addresses = Sprangular.extend(@addresses || [], Sprangular.Address) @billingAddress = @findAddress(@bill_address_id) if @bill_address_id @shippingAddress = @findAddress(@ship_address_id) if @ship_address_id @orders = Sprangular.extend(@completed_orders, Spr...
class Sprangular.User init: -> @addresses = Sprangular.extend(@addresses || [], Sprangular.Address) @billingAddress = @findAddress(@bill_address_id) if @bill_address_id @shippingAddress = @findAddress(@ship_address_id) if @ship_address_id @orders = Sprangular.extend(@completed_orders || [...
Allow payment_sources and completed_orders to be empty
Allow payment_sources and completed_orders to be empty
CoffeeScript
mit
sprangular/sprangular,sprangular/sprangular,sprangular/sprangular
b2476e14eec5a58f8a56f68ee4e2d2d1f267bfc3
vendor/assets/javascripts/neat/renderer/infinite_reveal.coffee
vendor/assets/javascripts/neat/renderer/infinite_reveal.coffee
class window.Neat.Renderer.InfiniteReveal extends window.Neat.Renderer.Basic constructor: (@view, @collection, @options) -> super @scrollHandler = new Neat.ScrollHandler() @scrollHandler.on "scroll", _.bind(@_windowHasBeenScrolled, @) @sensitivity = @options.sensitivity ? 5 @pageSize = @options....
class window.Neat.Renderer.InfiniteReveal extends window.Neat.Renderer.Basic constructor: (@view, @collection, @options) -> super @scrollHandler = new Neat.ScrollHandler() @scrollHandler.on "scroll", _.bind(@_windowHasBeenScrolled, @) @sensitivity = @options.sensitivity ? 5 @pageSize = @options....
Return a boolean in `_loadMore` for if there are more items to load (5m)
[skip] Return a boolean in `_loadMore` for if there are more items to load (5m) In Members we use the `_loadMore` method as an action and a check, so this change allows the action to happen and returns the check.
CoffeeScript
mit
boblail/neat-rails
db00214af2ca2c67a0ae462f5ca18c89e7550848
lib/dart-tools.coffee
lib/dart-tools.coffee
AnalysisComponent = require './analysis_component' AnalysisView = require './views/analysis_view' Utils = require './utils' Formatter = require './formatter' PubComponent = require './pub_component' module.exports = # spooky ( ͡° ͜ʖ ͡°) analysisComponent: null analysisStatusView: null pubComponent: null ac...
AnalysisComponent = require './analysis_component' AnalysisView = require './views/analysis_view' Utils = require './utils' Formatter = require './formatter' PubComponent = require './pub_component' module.exports = # spooky ( ͡° ͜ʖ ͡°) analysisComponent: null analysisStatusView: null pubComponent: null #...
Add option for automatic pub get.
Add option for automatic pub get. Closes #3.
CoffeeScript
mit
radicaled/dart-tools
09b923e4c43ddb92d545b508d2434edaab43e030
app/coffee/DockerRunner.coffee
app/coffee/DockerRunner.coffee
spawn = require("child_process").spawn logger = require "logger-sharelatex" Settings = require "settings-sharelatex" module.exports = DockerRunner = _docker: Settings.clsi?.docker?.binary or 'docker' _baseCommand: ['run', '--rm=true', '-t', '-v', '$COMPILE_DIR:/source', '--name=texlive-$PROJECT_ID'] run: (proj...
spawn = require("child_process").spawn logger = require "logger-sharelatex" Settings = require "settings-sharelatex" module.exports = DockerRunner = _docker: Settings.clsi?.docker?.binary or 'docker' _baseCommand: ['run', '--rm=true', '-t', '-v', '$COMPILE_DIR:/source', '--name=texlive-$PROJECT_ID'] run: (proj...
Fix the double callback call on docker timeout.
Fix the double callback call on docker timeout. When the timeout handler is called, disable the callback in the close handler so that the success of the stop command doesnt produce two calls to the callback, the first one meaning success.
CoffeeScript
agpl-3.0
EDP-Sciences/clsi-sharelatex
ec00d62a88187cfc012402011dc04f56ab8e7c6d
src/reporter.coffee
src/reporter.coffee
define [ 'settings' 'promise' 'helpers/browser_helper' 'helpers/url_helper' ], (Settings, Promise, BrowserHelper, URLHelper)-> unique_id = 1 class Reporter constructor: (options)-> @base = Settings.url.base @queue = [] @transport = 'img' @_determineTransport().then @_enableProp...
define [ 'settings' 'promise' 'helpers/browser_helper' 'helpers/url_helper' ], (Settings, Promise, BrowserHelper, URLHelper)-> unique_id = 1 class Reporter constructor: (options)-> @base = Settings.url.base @queue = [] @transport = 'img' @transport_ready = @_determineTransport(...
Refactor Reporter to be thenable and to use promises
Refactor Reporter to be thenable and to use promises
CoffeeScript
mit
skroutz/analytics.js,skroutz/analytics.js,skroutz/analytics.js
bb0e471e7f76411993142837264ba93819865cf2
app/frontend/scripts/upload.js.coffee
app/frontend/scripts/upload.js.coffee
# Handles HTML5 File API jQuery Drag and Drop interface transmorgifier plugin # stereotypical aphormational gimme the loot putting all the holes in the # sweata biggie smalls. $(document).ready () -> $('#fileupload').fileupload({ dropZone: $('body'), dataType: 'json', sequentialUploads: true, url: '/...
# Handles HTML5 File API jQuery Drag and Drop interface transmorgifier plugin # stereotypical aphormational gimme the loot putting all the holes in the # sweata biggie smalls. $(document).ready () -> # Set up the file upload behavior on the invisa #fileupload box. $('#fileupload').fileupload({ dropZone: $('bod...
Document drag and drop behaviors
Document drag and drop behaviors
CoffeeScript
mit
ojengwa/play,akarshsatija/play,campaigns/whackandblite,tanuki/play,akarshsatija/play,play/play,mailchimp/play,play/play,kidaa/play,play/play,campaigns/whackandblite,mailchimp/play,campaigns/whackandblite,play/play,ojengwa/play,ojengwa/play,akarshsatija/play,campaigns/whackandblite,kidaa/play,mailchimp/play,ojengwa/play...
1df362f78d53b7d967c3916a1b4896326d9de474
client/app/lib/util/shortenUrl.coffee
client/app/lib/util/shortenUrl.coffee
$ = require 'jquery' kd = require 'kd' module.exports = shortenUrl = (longUrl, callback) -> apiUrl = 'https://www.googleapis.com/urlshortener/v1/url' request = $.ajax url : apiUrl type : 'POST' contentType : 'application/json' data : JSON.stringify {longUrl} dataType ...
$ = require 'jquery' kd = require 'kd' globals = require 'globals' module.exports = shortenUrl = (longUrl, callback) -> {apiKey} = globals.config.google apiUrl = "https://www.googleapis.com/urlshortener/v1/url?key=#{apiKey}" request = $.ajax url : apiUrl type : 'POST' contentType : ...
Add Google public API key to urlshorthener request
Add Google public API key to urlshorthener request
CoffeeScript
agpl-3.0
alex-ionochkin/koding,cihangir/koding,rjeczalik/koding,koding/koding,cihangir/koding,kwagdy/koding-1,alex-ionochkin/koding,acbodine/koding,usirin/koding,andrewjcasal/koding,sinan/koding,rjeczalik/koding,usirin/koding,drewsetski/koding,koding/koding,szkl/koding,usirin/koding,sinan/koding,usirin/koding,szkl/koding,acbodi...
08703987d7109bcf0e0646f126001545d45db340
app/assets/javascripts/backend/receptions.js.coffee
app/assets/javascripts/backend/receptions.js.coffee
(($) -> 'use strict' $(document).ready -> $('input[data-warn-if-checked]').behave 'load', -> $('input[data-warn-if-checked]').each -> input = $(this) container = input.parent() if container.find('.warn-message').length is 0 container.append($('<span class="warn-message">...
(($) -> 'use strict' $(document).ready -> $('input[data-warn-if-checked]').behave 'load', -> $('input[data-warn-if-checked]').each -> input = $(this) container = input.parent() if container.find('.warn-message').length is 0 container.append($('<span class="warn-message">...
Fix bug with the warning visibility condition
Fix bug with the warning visibility condition
CoffeeScript
agpl-3.0
ekylibre/ekylibre,ekylibre/ekylibre,ekylibre/ekylibre,ekylibre/ekylibre,ekylibre/ekylibre
768c524d3053aa3f36cdbebcf859960002c646b3
lib/main.coffee
lib/main.coffee
module.exports = instance: null config: lintOnFly: title: 'Lint on fly' description: 'Lint files while typing, without the need to save them' type: 'boolean' default: true showErrorInline: title: "Show Inline Tooltips" descriptions: "Show inline tooltips for errors" ...
module.exports = instance: null config: lintOnFly: title: 'Lint on fly' description: 'Lint files while typing, without the need to save them' type: 'boolean' default: true showErrorInline: title: "Show Inline Tooltips" descriptions: "Show inline tooltips for errors" ...
Move consumerLinter's logic to _consumeLinter it'll help us work with disposables while still working.
:art: Move consumerLinter's logic to _consumeLinter it'll help us work with disposables while still working.
CoffeeScript
mit
steelbrain/linter,JohnMurga/linter,Arcanemagus/linter,blakeembrey/linter,atom-community/linter,AtomLinter/Linter,mdgriffith/linter,iam4x/linter,e-jigsaw/Linter,DanPurdy/linter,levity/linter,kaeluka/linter,AsaAyers/linter,josa42/Linter,UltCombo/linter,elkeis/linter,simurai/linter-plus,shawninder/linter
15a9f38d21748002dd561500f89ab32d17a29e61
client/app/Applications/Chat.kdapplication/Views/conversationlistitemtitle.coffee
client/app/Applications/Chat.kdapplication/Views/conversationlistitemtitle.coffee
class ChatConversationListItemTitle extends JView constructor:(options = {}, data)-> options.cssClass = 'chat-item' # data = [nick for nick in data when nick isnt KD.nick()].first super viewAppended:-> invitees = @getData() @accounts = [] for invitee in invitees KD.remote.cacheable...
class ChatConversationListItemTitle extends JView constructor:(options = {}, data)-> options.cssClass = 'chat-item' # data = [nick for nick in data when nick isnt KD.nick()].first super viewAppended:-> invitees = @getData() @accounts = [] for invitee in invitees KD.remote.cacheable...
Check accounts length since its the data
Check accounts length since its the data
CoffeeScript
agpl-3.0
acbodine/koding,jack89129/koding,szkl/koding,jack89129/koding,koding/koding,rjeczalik/koding,sinan/koding,alex-ionochkin/koding,gokmen/koding,rjeczalik/koding,mertaytore/koding,mertaytore/koding,acbodine/koding,mertaytore/koding,koding/koding,sinan/koding,acbodine/koding,gokmen/koding,szkl/koding,mertaytore/koding,andr...
47ef455e24014fe8629beedef826232e31dc85bc
src/index.coffee
src/index.coffee
React = require 'react' objectAssign = require('react/lib/Object.assign') VerticalRhythm = require 'compass-vertical-rhythm' ms = require 'modularscale' module.exports = (options) -> defaults = baseFontSize: '16px' baseLineHeight: '24px' modularScale: [ 'diminished fourth' { 768: 'minor third...
React = require 'react' objectAssign = require('react/lib/Object.assign') VerticalRhythm = require 'compass-vertical-rhythm' ms = require 'modularscale' module.exports = (options) -> defaults = baseFontSize: '16px' baseLineHeight: '24px' modularScale: [ 'diminished fourth' { 768: 'minor third...
Change adjustFontSizeTo function to fontSizeToPX and add fontSizeToMS
Change adjustFontSizeTo function to fontSizeToPX and add fontSizeToMS The later function is a convenience function used to set fontSize to particular modular scale.
CoffeeScript
mit
KyleAMathews/typography.js
7b483e983d7db007ffe1ce8e9bc0a08b51bd03e9
src/utils.coffee
src/utils.coffee
Promise = require 'bluebird' _ = require 'lodash' fs = Promise.promisifyAll require 'fs' config = require './config' mixpanel = require 'mixpanel' # Parses package.json and returns resin-supervisor's version exports.getSupervisorVersion = -> fs.readFileAsync(__dirname + '/../package.json', 'utf-8') .then (data) -> ...
Promise = require 'bluebird' _ = require 'lodash' fs = Promise.promisifyAll require 'fs' config = require './config' mixpanel = require 'mixpanel' # Parses package.json and returns resin-supervisor's version exports.getSupervisorVersion = -> fs.readFileAsync(__dirname + '/../package.json', 'utf-8') .then (data) -> ...
Fix bug of using mixpanel module as the mixpanel client
Fix bug of using mixpanel module as the mixpanel client
CoffeeScript
apache-2.0
deviceMP/resin-supervisor,deviceMP/resin-supervisor,nghiant2710/resin-supervisor,resin-io/resin-multivisor,nghiant2710/resin-supervisor
308ea13c4b6cf458b15a6d3c0015896b585c9c16
etc/atom/keymap.cson
etc/atom/keymap.cson
# Your keymap # # Atom keymaps work similarly to stylesheets. Just as stylesheets use selectors # to apply styles to elements, Atom keymaps use selectors to associate # keystrokes with events in specific contexts. # # You can create a new keybinding in this file by typing "key" and then hitting # tab. # # Here's an exa...
# Your keymap # # Atom keymaps work similarly to stylesheets. Just as stylesheets use selectors # to apply styles to elements, Atom keymaps use selectors to associate # keystrokes with events in specific contexts. # # You can create a new keybinding in this file by typing "key" and then hitting # tab. # # Here's an exa...
Make ctrl-k work first time
Make ctrl-k work first time
CoffeeScript
apache-2.0
ithinkihaveacat/dotfiles,ithinkihaveacat/dotfiles,ithinkihaveacat/dotfiles
cd5a4e25e7b691ac2bb0e8904615998934c3c9aa
src/components/reference-book/teacher-content-toggle.cjsx
src/components/reference-book/teacher-content-toggle.cjsx
React = require 'react' BS = require 'react-bootstrap' TeacherContentToggle = React.createClass propTypes: onChange: React.PropTypes.func.isRequired isShowing: React.PropTypes.bool.isRequired onClick: -> @props.onChange(not @props.isShowing) render: -> teacherLinkText = if @props.isShowing ...
React = require 'react' BS = require 'react-bootstrap' TEACHER_CONTENT_SELECTOR = '.os-teacher' TeacherContentToggle = React.createClass propTypes: onChange: React.PropTypes.func.isRequired isShowing: React.PropTypes.bool section: React.PropTypes.string windowImpl: React.PropTypes.object g...
Make active only if 'os-teacher' class is present
Make active only if 'os-teacher' class is present
CoffeeScript
agpl-3.0
openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js
7940e2d683952763b5e557c1398a64aafa4d0ab0
Gruntfile.coffee
Gruntfile.coffee
fs = require 'fs' # global module: false module.exports = (grunt) -> # Modules grunt.loadNpmTasks 'grunt-init' grunt.loadNpmTasks 'grunt-contrib-sass' grunt.loadNpmTasks 'grunt-contrib-watch' # Grunt Tasks grunt.initConfig meta: version: '0.0.1' # Sass sass: test: options: styl...
fs = require 'fs' # global module: false module.exports = (grunt) -> # Modules grunt.loadNpmTasks 'grunt-init' grunt.loadNpmTasks 'grunt-contrib-sass' grunt.loadNpmTasks 'grunt-contrib-watch' # Grunt Tasks grunt.initConfig meta: version: '0.0.1' # Sass sass: test: options: styl...
Add Grunt Fatal Error on Fail
Add Grunt Fatal Error on Fail
CoffeeScript
mit
apexskier/bootcamp
dc8b081035ac4f8ee2da36a2160cb5d8c5a734d8
keymaps/minimap.cson
keymaps/minimap.cson
# Keybindings require three things to be fully defined: A selector that is # matched against the focused element, the keystroke and the command to # execute. # # Below is a basic keybinding which registers on all platforms by applying to # the root workspace element. # For more detailed documentation see # https://ato...
# Keybindings require three things to be fully defined: A selector that is # matched against the focused element, the keystroke and the command to # execute. # # Below is a basic keybinding which registers on all platforms by applying to # the root workspace element. # For more detailed documentation see # https://ato...
Fix scope for custom keybinding
:bug: Fix scope for custom keybinding
CoffeeScript
mit
atom-minimap/minimap
cabae882b36be6f97998b94e5b1e98e61d23349b
atom/config.cson
atom/config.cson
'global': 'core': 'ignoredNames': [ '.git' '.svn' '.DS_Store' ] 'disabledPackages': [ 'open-on-github' 'linter-scss-lint' ] 'welcome': 'showOnStartup': false 'exception-reporting': 'userId': '93eefc96-d01a-1960-59e4-71ddef94eb74' 'metrics': 'userId': '9e...
'global': 'core': 'ignoredNames': [ '.git' '.svn' '.DS_Store' ] 'disabledPackages': [ 'open-on-github' 'linter-scss-lint' ] 'welcome': 'showOnStartup': false 'exception-reporting': 'userId': '93eefc96-d01a-1960-59e4-71ddef94eb74' 'metrics': 'userId': '9e...
Change linter settings to be less distractive
Change linter settings to be less distractive
CoffeeScript
mit
haberbyte/dotfiles,habermann24/dotfiles,habermann24/dotfiles,habermann24/dotfiles,haberbyte/dotfiles,haberbyte/dotfiles
4868ec5f4e81e2d5ad931eaf721635bc61c9b6f8
resources/assets/coffee/react/modding-profile/stats.coffee
resources/assets/coffee/react/modding-profile/stats.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 * as React from 'react' import { div, dd, dl, dt } from 'react-dom-factories' el = React.createElement export class Stats extends React....
# 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 * as React from 'react' import { div, dd, dl, dt } from 'react-dom-factories' entries = [ 'ranked_beatmapset_count' 'loved_beatmapset...
Move constant variable outside of class definition
Move constant variable outside of class definition
CoffeeScript
agpl-3.0
notbakaneko/osu-web,LiquidPL/osu-web,nanaya/osu-web,ppy/osu-web,LiquidPL/osu-web,ppy/osu-web,ppy/osu-web,ppy/osu-web,LiquidPL/osu-web,notbakaneko/osu-web,ppy/osu-web,notbakaneko/osu-web,nanaya/osu-web,notbakaneko/osu-web,nanaya/osu-web,nanaya/osu-web,LiquidPL/osu-web,LiquidPL/osu-web,nanaya/osu-web,notbakaneko/osu-web
72ee8562815e134d3d6116b2428058d7f8dc33f0
lib/linter-languagetool.coffee
lib/linter-languagetool.coffee
module.exports = LinterLanguagetool = config: languagetoolServerPath: title: 'Path to local languagetool-server.jar' description: 'If given, the linter tries to start a local languagetool server and connect to it. If left blank, the public languagetool API is used instead.' type: 'string' ...
module.exports = LinterLanguagetool = config: languagetoolServerPath: title: 'Path to local languagetool-server.jar' description: 'If given, the linter tries to start a local languagetool server and connect to it. If left blank, the public languagetool API is used instead.' type: 'string' ...
Add package option to enable linting on document changes. This option is disabled by default.
Add package option to enable linting on document changes. This option is disabled by default.
CoffeeScript
mit
wysiib/linter-languagetool
7f01e3338a113e408dfd41c25f188400f4cfc25a
app.coffee
app.coffee
express = require 'express' io = require 'socket.io' http = require 'http' fs = require 'fs' path = require 'path' logger = require 'winston' routes = require './routes' fs.mkdir './log' unless fs.existsSync './log' logger.add logger.transports.File, filename: './log/flumen.log' handleExceptions: true socketIoApp...
express = require 'express' io = require 'socket.io' http = require 'http' fs = require 'fs' path = require 'path' logger = require 'winston' routes = require './routes' fs.mkdir './log' unless fs.existsSync './log' logger.add logger.transports.File, filename: './log/flumen.log' handleExceptions: true socketIoApp...
Refactor - set port variable before configuration
Refactor - set port variable before configuration fetching the port from the config involves a get method call, which can be confused with a GET route to the untrained eye.
CoffeeScript
agpl-3.0
meducation/flumen
453da83cd847541b5fb39eee657777d1fcd72729
app/assets/javascripts/rglossa/translations/en.coffee
app/assets/javascripts/rglossa/translations/en.coffee
window.translations ||= {} window.translations['en'] = languages: "": lang: "en" "en": [null, "English"] "no": [null, "Norwegian"] "nb": [null, "Norwegian bokmål"] "nn": [null, "Norwegian nynorsk"] "ru": [null, "Russian"]
window.translations ||= {} window.translations['en'] = languages: "": lang: "en" "en": [null, "English"] "no": [null, "Norwegian"] "nb": [null, "Norwegian bokmål"] "nn": [null, "Norwegian nynorsk"] "ru": [null, "Russian"] "fr": [null, "French"] "it": [null, "Italian"] "se": ...
Add a few languages for the language drop-down
Add a few languages for the language drop-down
CoffeeScript
mit
textlab/glossa,textlab/glossa,textlab/glossa,textlab/glossa,textlab/glossa
8924b1f6eacdd19f5e91033d59242688d47dea43
blueprints/service/files/app/services/__name__.coffee
blueprints/service/files/app/services/__name__.coffee
`import Ember from 'ember'` <%= classifiedModuleName %>Service = Ember.Object.extend() `export default <%= classifiedModuleName %>Service`
`import Ember from 'ember'` <%= classifiedModuleName %>Service = Ember.Service.extend() `export default <%= classifiedModuleName %>Service`
Extend from `Ember.Service` instead of `Ember.Object` in service blueprint
Extend from `Ember.Service` instead of `Ember.Object` in service blueprint
CoffeeScript
mit
philipbjorge/ember-cli-typescript-compiler,flcdrg/ember-cli-typescript,flcdrg/ember-cli-typescript,philipbjorge/ember-cli-typescript-compiler,kimroen/ember-cli-coffeescript,philipbjorge/ember-cli-typescript-compiler,bianjp/ember-cli-coffeescript,kimroen/ember-cli-coffeescript,kimroen/ember-cli-coffeescript
9dc53b1c4b8e564bd73bf596b536a4188b2b6e4e
src/config.coffee
src/config.coffee
_ = require('underscore') fs = require('fs') class Config constructor: (filePath) -> filePath = @findConfig() data = @parse(filePath) @validate(data) return Object.freeze(data) findConfig: () -> if(process.env.HUBOT_PULSAR_CONFIG) return process.env.HUBOT_PULSAR_CONFIG hubotConfPath ...
_ = require('underscore') fs = require('fs') class Config constructor: () -> filePath = @findConfig() data = @parse(filePath) @validate(data) return Object.freeze(data) findConfig: () -> if(process.env.HUBOT_PULSAR_CONFIG) return process.env.HUBOT_PULSAR_CONFIG hubotConfPath = './pul...
Remove redundant `filePath` in Config.constructor.
Remove redundant `filePath` in Config.constructor.
CoffeeScript
mit
cargomedia/hubot-pulsar,cargomedia/hubot-pulsar,vogdb/hubot-pulsar,vogdb/hubot-pulsar
e0136a37853be06e7627bcc69084658b98114b46
lib/plugin-api/hydrogen-provider.coffee
lib/plugin-api/hydrogen-provider.coffee
module.exports = class HydrogenProvider constructor: (@_hydrogen) -> @_happy = true onDidChangeKernel: (callback) -> @_hydrogen.emitter.on 'did-change-kernel', (kernel) -> return kernel.getPluginWrapper() getActiveKernel: -> unless @_hydrogen.kernel return n...
module.exports = class HydrogenProvider constructor: (@_hydrogen) -> @_happy = true onDidChangeKernel: (callback) -> @_hydrogen.emitter.on 'did-change-kernel', (kernel) -> if kernel? callback kernel.getPluginWrapper() else callback null ...
Fix onDidChangeKernel in plugin API
Fix onDidChangeKernel in plugin API
CoffeeScript
mit
nteract/hydrogen,nteract/hydrogen,xanecs/hydrogen,rgbkrk/hydrogen,n-riesco/hydrogen,lgeiger/hydrogen
1c996653275ce7b9b046e7081e9f173f99141945
lib/main.coffee
lib/main.coffee
module.exports = instance: null config: lintOnFly: title: 'Lint on fly' description: 'Lint files while typing, without the need to save them' type: 'boolean' default: true showErrorInline: title: "Show Inline Tooltips" descriptions: "Show inline tooltips for errors" ...
module.exports = instance: null config: lintOnFly: title: 'Lint on fly' description: 'Lint files while typing, without the need to save them' type: 'boolean' default: true showErrorInline: title: "Show Inline Tooltips" descriptions: "Show inline tooltips for errors" ...
Move validation part to a separate function
:art: Move validation part to a separate function
CoffeeScript
mit
e-jigsaw/Linter,mdgriffith/linter,DanPurdy/linter,atom-community/linter,AsaAyers/linter,AtomLinter/Linter,elkeis/linter,iam4x/linter,shawninder/linter,josa42/Linter,kaeluka/linter,simurai/linter-plus,levity/linter,steelbrain/linter,Arcanemagus/linter,JohnMurga/linter,UltCombo/linter,blakeembrey/linter
b32fffcaea29306b9f396416326835d9577f26b6
lib/base_task.coffee
lib/base_task.coffee
Q = require 'q' {Base} = require "#{__dirname}/base" {Wrappers} = require "#{__dirname}/helpers/wrappers" {BeanBuilder} = require "#{__dirname}/helpers/bean_builder" class BaseTask extends Base app: null actions: null actionBuilder: null constructor: -> @actions = [] @actionBuilder = new BeanBuild...
Q = require 'q' {Base} = require "#{__dirname}/base" {Wrappers} = require "#{__dirname}/helpers/wrappers" {BeanBuilder} = require "#{__dirname}/helpers/bean_builder" class BaseTask extends Base app: null actions: null actionBuilder: null constructor: -> @actions = [] @actionBuilder = new BeanBuild...
Fix issue of invalid order of task's actions.
Fix issue of invalid order of task's actions. Because of the nature of promises, the callback context is not the same as the (wrapping) for loop. To fix this inconsistency, a new internally used `scope`-property `__idx` was introduced.
CoffeeScript
mit
knalli/pi-jenkins,knalli/pi-jenkins
3233d39ec4775949e3be3e5b21f0271f936e69b3
examples/coffeescript/example.coffee
examples/coffeescript/example.coffee
require "babel-core/polyfill" require("frig").defaultTheme require("frigging_bootstrap") React = require "react/addons" {frig} = require "frig/dsl" {div, h2, h3} = React.DOM AccountForm = React.createClass mixins: [ React.addons.LinkedStateMixin ] getInitialState: -> account: email...
require "babel-core/polyfill" require("frig").defaultTheme require("frigging_bootstrap") React = require "react/addons" {frig} = require "frig/dsl" {div, h2, h3} = React.DOM AccountForm = React.createClass mixins: [ React.addons.LinkedStateMixin ] getInitialState: -> account: email...
Add Switch Component To Example
Add Switch Component To Example
CoffeeScript
mit
frig-js/frig,TouchBistro/frig,frig-js/frig,TouchBistro/frig
ae432a5cf8264484e37dda05ee9850d71337aa85
lib/list-edit.coffee
lib/list-edit.coffee
{CompositeDisposable} = require 'atom' module.exports = ListEdit = listEditView: null modalPanel: null subscriptions: null activate: (state) -> # Events subscribed to in atom's system can be easily cleaned up with a CompositeDisposable @subscriptions = new CompositeDisposable # Register command t...
{CompositeDisposable} = require 'atom' module.exports = subscriptions: null activate: (state) -> # Events subscribed to in atom's system can be easily cleaned up with a CompositeDisposable @subscriptions = new CompositeDisposable # Register command that toggles this view @subscriptions.add atom.c...
Remove some left-over view code
Remove some left-over view code
CoffeeScript
mit
Oblosys/atom-list-edit
2e5633d415e24e2f3c5edfdfa83b8809f58df5b8
app/collections/Products.coffee
app/collections/Products.coffee
CocoCollection = require './CocoCollection' Product = require 'models/Product' utils = require 'core/utils' module.exports = class Products extends CocoCollection model: Product url: '/db/products' getByName: (name) -> @findWhere { name: name } getBasicSubscriptionForUser: (user) -> coupon = user?.get(...
CocoCollection = require './CocoCollection' Product = require 'models/Product' utils = require 'core/utils' module.exports = class Products extends CocoCollection model: Product url: '/db/products' getByName: (name) -> @findWhere { name: name } getBasicSubscriptionForUser: (user) -> coupon = user?.get('s...
Add coupon check for Taiwan
Add coupon check for Taiwan
CoffeeScript
mit
jeremiahyan/codecombat,javatlacati/codecombat,javatlacati/codecombat,codecombat/codecombat,jeremiahyan/codecombat,codecombat/codecombat,javatlacati/codecombat,codecombat/codecombat,codecombat/codecombat,codecombat/codecombat,jeremiahyan/codecombat,jeremiahyan/codecombat,javatlacati/codecombat,javatlacati/codecombat
04f72cdb3e2cdf1516d2d289df2d9a06b0ee7297
assets/logic/router.coffee
assets/logic/router.coffee
# Setup router import Vue from 'vue' import VueRouter from 'vue-router' Vue.use VueRouter ### Routing paths `/` - (home) app index `/:location` - (location) weather detail for a specific location ### routes = [ { name: 'home' path: '/' component: require '../components/home' children: [ ...
# Setup router import Vue from 'vue' import VueRouter from 'vue-router' Vue.use VueRouter ### Routing paths `/` - (home) app index `/:location` - (location) weather detail for a specific location ### routes = [ { name: 'home' path: '/' component: require '../components/home' children: [ ...
Revert "github pages `/weather` for base url"
Revert "github pages `/weather` for base url" This reverts commit cb8c4e52c7f02016cc9b4ab417bb5404c8d0f95d.
CoffeeScript
mit
thelucre/weather,thelucre/weather
a807d1ba39f8b2e2a81123e78cc14f685a177585
Gruntfile.coffee
Gruntfile.coffee
module.exports = (grunt) -> documentation = 'doc' grunt.initConfig pkg: grunt.file.readJSON 'package.json' clean: [ 'bin' '.grunt' documentation ] jsdoc: dist: src: ['topicmap.js', 'README.md'] options: destination: documentation template: ...
module.exports = (grunt) -> documentation = 'doc' grunt.initConfig pkg: grunt.file.readJSON 'package.json' clean: [ 'bin' '.grunt' documentation ] jsdoc: dist: src: ['src/js/topicmap.js', 'README.md'] options: destination: documentation tem...
Set up travis for Topic Map [rev: Alex Scown]
[BIFHI-38] Set up travis for Topic Map [rev: Alex Scown]
CoffeeScript
mit
hpautonomy/topic-map,hpe-idol/topic-map,hpe-idol/topic-map,hpautonomy/topic-map
8b76295e38b53c46352536419569811aefff2818
server/router.coffee
server/router.coffee
mkdirp = Meteor.npmRequire 'mkdirp' Busboy = Meteor.npmRequire "busboy" fs = Npm.require 'fs' os = Npm.require 'os' path = Npm.require 'path' Router.route '/image/:id', name: 'image' where: 'server' onBeforeAction: (req, res, next) -> {id} = @params filenames = [] if req.method is 'POST' busboy...
mkdirp = Meteor.npmRequire 'mkdirp' Busboy = Meteor.npmRequire "busboy" fs = Npm.require 'fs' os = Npm.require 'os' path = Npm.require 'path' Router.route '/image/:id', name: 'image' where: 'server' onBeforeAction: (req, res, next) -> {id} = @params filenames = [] if req.method is 'POST' busboy...
Add server route for serving up images.
Add server route for serving up images.
CoffeeScript
mit
SussexLearningSystems/peakaboo,SussexLearningSystems/peakaboo,SussexLearningSystems/peakaboo
a95e406bf3dbc741f54a05191315cc51099eac44
src/app/directory.coffee
src/app/directory.coffee
_ = require 'underscore' fs = require 'fs' File = require 'file' EventEmitter = require 'event-emitter' module.exports = class Directory @idCounter = 0 path: null constructor: (@path) -> @id = ++Directory.idCounter getName: -> fs.base(@path) + '/' getEntries: -> directories = [] files = [...
_ = require 'underscore' fs = require 'fs' File = require 'file' EventEmitter = require 'event-emitter' module.exports = class Directory path: null constructor: (@path) -> getName: -> fs.base(@path) + '/' getEntries: -> directories = [] files = [] for path in fs.list(@path) if fs.isDir...
Remove unused vars from Directory
Remove unused vars from Directory
CoffeeScript
mit
palita01/atom,russlescai/atom,kjav/atom,g2p/atom,sillvan/atom,pkdevbox/atom,tony612/atom,Austen-G/BlockBuilder,scv119/atom,synaptek/atom,palita01/atom,stuartquin/atom,erikhakansson/atom,matthewclendening/atom,kevinrenaers/atom,einarmagnus/atom,rxkit/atom,beni55/atom,Huaraz2/atom,kaicataldo/atom,Mokolea/atom,nvoron23/at...
60d353d97a07f938fb998fcce6a7c3cf5377681b
lib/tab-view.coffee
lib/tab-view.coffee
{$, fs, View} = require 'atom' path = require 'path' module.exports = class TabView extends View @content: -> @li class: 'tab sortable', => @div class: 'title', outlet: 'title' @div class: 'close-icon' initialize: (@item, @pane) -> @item.on? 'title-changed', => @updateTitle() @item.on? 'mo...
{$, fs, View} = require 'atom' path = require 'path' module.exports = class TabView extends View @content: -> @li class: 'tab sortable', => @div class: 'title', outlet: 'title' @div class: 'close-icon' initialize: (@item, @pane) -> @item.on? 'title-changed', => @updateTitle() @upda...
Update tooltip when title changes
Update tooltip when title changes Closes #12
CoffeeScript
mit
acontreras89/tabs,pombredanne/tabs,atom/tabs,harai/tabs
f2ff08cccd2744aedc723c2fdbbaf10f8bcf8dcf
console/runner.coffee
console/runner.coffee
#!/usr/bin/env coffee fs = require 'fs' jvm = require '../src/jvm' util = require '../src/util' ClassFile = require '../src/class_file' read_binary_file = (filename) -> util.bytestr_to_array fs.readFileSync(filename, 'binary') read_classfile = (cls) -> read_binary_file "third_party/classes/#{cls}.class" # first tw...
#!/usr/bin/env coffee fs = require 'fs' path = require 'path' jvm = require '../src/jvm' util = require '../src/util' ClassFile = require '../src/class_file' read_binary_file = (filename) -> return null unless path.existsSync filename util.bytestr_to_array fs.readFileSync(filename, 'binary') read_classfile = (cls...
Add current directory to the classpath when running from console.
Add current directory to the classpath when running from console. This allows us to obtain nested classes / classes from multi-class Java files.
CoffeeScript
mit
jmptrader/doppio,bpowers/doppio,jmptrader/doppio,Wanderfalke/doppio,plasma-umass/doppio,netopyr/doppio,Wanderfalke/doppio,bpowers/doppio,jmptrader/doppio,Wanderfalke/doppio,netopyr/doppio,bpowers/doppio,plasma-umass/doppio,plasma-umass/doppio,netopyr/doppio
440a47f8d352a3383121242e94a139efa56d3620
src/parsers/slackapp.coffee
src/parsers/slackapp.coffee
# Strict quote parser for the format entered into the clipboard by the Slack thick client. moment = require 'moment' _ = require 'underscore' # RegExp snippets for reuse TS = '\\[(\d{1,2}:\d{2}(?: [aApP][mM])?)\\]' # [11:22 AM] *or* [16:00] # RegExps rxWs = /^\s*$/ rxNickLine = new RegExp("^\s*(\S+)\s+#{TS}\s*$") rx...
# Strict quote parser for the format entered into the clipboard by the Slack thick client. moment = require 'moment' _ = require 'underscore' # RegExp snippets for reuse TS = '\\[(\d{1,2}:\d{2}(?: [aApP][mM])?)\\]' # [11:22 AM] *or* [16:00] # RegExps rxWs = /^\s*$/ rxNickLine = new RegExp("^\s*(\S+)\s+#{TS}\s*$") rx...
Trim `(edited)` from the ends of lines.
Trim `(edited)` from the ends of lines.
CoffeeScript
mit
smashwilson/hubot-quotefile
6cd9c9bf59cb0b049429c0faa041be48d24479a6
karma.conf.coffee
karma.conf.coffee
karmaConfig = require('resin-config-karma') packageJSON = require('./package.json') module.exports = (config) -> karmaConfig.plugins.push(require('karma-chrome-launcher')) karmaConfig.browsers = ['ChromeHeadless'] karmaConfig.logLevel = config.LOG_INFO karmaConfig.sauceLabs = testName: "#{packageJSON.name} v#{...
karmaConfig = require('resin-config-karma') packageJSON = require('./package.json') module.exports = (config) -> karmaConfig.plugins.push(require('karma-chrome-launcher')) karmaConfig.browsers = ['ChromeHeadlessCustom'] karmaConfig.customLaunchers = ChromeHeadlessCustom: base: 'ChromeHeadless' flags: [ ...
Add headless Chrome parameters to work on ResinCi
chore: Add headless Chrome parameters to work on ResinCi Change-type: patch See: https://github.com/resin-io/resin-concourse/pull/248/ See: https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md#running-on-alpine Signed-off-by: Thodoris Greasidis <5791bdc4541e79bd43d586e3c3eff1e39c16665f@resin.i...
CoffeeScript
apache-2.0
resin-io/resin-pine
b070e68b43e671965cd4d54208613de1fddc6196
atom/init.coffee
atom/init.coffee
# Your init script # # Atom will evaluate this file each time a new window is opened. It is run # after packages are loaded/activated and after the previous editor state # has been restored. # # Settings to assign based on grammar name. grammarSettings = 'GitHub Markdown': showInvisibles: false softWrap: tru...
# 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. # # Settings to assign based on grammar name. grammarSettings = 'GitHub Markdown': showInvisibles: false softWrap: tru...
Use four spaces for shell script files
Use four spaces for shell script files
CoffeeScript
mit
lee-dohm/dotfiles,lee-dohm/dotfiles,lee-dohm/dotfiles,lee-dohm/dotfiles
8a5ffd302b384e9246ea92b663c860e61d00e675
src/desktop/apps/home/queries/initial.coffee
src/desktop/apps/home/queries/initial.coffee
module.exports = """ query($showHeroUnits: Boolean!) { home_page { artwork_modules( max_rails: -1, max_followed_gene_rails: -1, order: [ ACTIVE_BIDS, RECENTLY_VIEWED_WORKS, SIMILAR_TO_RECENTLY_VIEWED, SAVED_WORKS, SIMILAR_TO_SAVED_WOR...
module.exports = """ query($showHeroUnits: Boolean!) { home_page { artwork_modules( max_rails: -1, max_followed_gene_rails: -1, order: [ ACTIVE_BIDS, RECENTLY_VIEWED_WORKS RECOMMENDED_WORKS, FOLLOWED_ARTISTS, RELATED_ARTISTS, ...
Revert "add support for new homepage rails and update rails order"
Revert "add support for new homepage rails and update rails order"
CoffeeScript
mit
kanaabe/force,artsy/force,anandaroop/force,xtina-starr/force,erikdstock/force,mzikherman/force,joeyAghion/force,joeyAghion/force,izakp/force,anandaroop/force,cavvia/force-1,yuki24/force,kanaabe/force,oxaudo/force,izakp/force,erikdstock/force,yuki24/force,damassi/force,artsy/force,erikdstock/force,yuki24/force,damassi/f...
b0bc12fb45aa4ea945e915134818622daf370766
source/assets/javascripts/footer.js.coffee
source/assets/javascripts/footer.js.coffee
# Positionning funny elements $RndmElmts = $('span.funnythings') PositionElmts = -> $RndmElmts.each -> left = Math.floor((Math.random() * 90)) top = Math.floor((Math.random() * 90)) $(this).css('top': top + '%', 'left': left + '%') # Stellar js Stellar = -> if window.matchMedia('(min-width: 860px)').m...
# Positionning funny elements $RndmElmts = $('span.funnythings') PositionElmts = -> $RndmElmts.each -> left = Math.floor((Math.random() * 90)) top = Math.floor((Math.random() * 90)) $(this).css('top': top + '%', 'left': left + '%') # Stellar js Stellar = -> if window.matchMedia('(min-width: 860px)').m...
Add Google Analytics tracking code
Add Google Analytics tracking code
CoffeeScript
mit
gregoiredierendonck/MVSport,gregoiredierendonck/MVSport,gregoiredierendonck/MVSport
98bb9c7948ed00f255d12efb05efb59fc136e724
src/lieber.coffee
src/lieber.coffee
# Description: # Hubot gives the ultimate compliment. # # Dependencies: # None # # Configuration: # None # # Commands: # hubot lieber me - "@User, you are the smell of clean laundry." # hubot lieberism @User - "@User is a force to be reckoned with." # # Author: # arosenb2 phrases = require './data/phrases....
# Description: # Hubot gives the ultimate compliment. # # Dependencies: # None # # Configuration: # None # # Commands: # hubot lieber me - "@User, you are the smell of clean laundry." # hubot lieberism @User - "@User is a force to be reckoned with." # # Author: # arosenb2 phrases = require './data/phrases....
Include the user name for `me`
Include the user name for `me`
CoffeeScript
mit
arosenb2/hubot-lieberism
2457061d98f2375a832aee02965c0cc8d834ed7a
src/logger.coffee
src/logger.coffee
winston = require('winston') module.exports = new (winston.Logger)({ transports: [ new (winston.transports.Console)({colorize: true}) ] levels: silly: 14 debug: 13 verbose: 12 info: 11 test: 10 pass: 9 fail: 8 complete: 7 actual: 6 expected: 5 hook: 4 request...
winston = require('winston') module.exports = new (winston.Logger)({ transports: [ new (winston.transports.Console)({colorize: true}) ] levels: silly: 14 debug: 13 verbose: 12 info: 11 test: 10 pass: 9 fail: 8 complete: 7 actual: 6 expected: 5 hook: 4 request...
Make sure 'info' and 'debug' logging levels have different colors
fix: Make sure 'info' and 'debug' logging levels have different colors
CoffeeScript
mit
cranieri/dredd-extended,cranieri/dredd-extended,vladosaurus/dredd,apiaryio/dredd,apiaryio/dredd,apiaryio/dredd,vladosaurus/dredd
636458963006fafe12bda71b3660d7cd1cbb96a9
tasks/task-helpers.coffee
tasks/task-helpers.coffee
fs = require 'fs' path = require 'path' walkdir = require 'walkdir' module.exports = (grunt) -> cp: (source, destination, {filter}={}) -> try walkdir.sync source, (sourcePath, stats) -> return if filter?.test(sourcePath) destinationPath = path.join(destination, path.relative(source, source...
fs = require 'fs' path = require 'path' walkdir = require 'walkdir' module.exports = (grunt) -> cp: (source, destination, {filter}={}) -> unless grunt.file.exists(source) grunt.fatal("Cannot copy non-existent #{source.cyan} to #{destination.cyan}") try walkdir.sync source, (sourcePath, stats) ->...
Check for existence before copying
Check for existence before copying
CoffeeScript
mit
KENJU/atom,execjosh/atom,NunoEdgarGub1/atom,Huaraz2/atom,Neron-X5/atom,matthewclendening/atom,oggy/atom,johnhaley81/atom,vjeux/atom,rlugojr/atom,efatsi/atom,medovob/atom,einarmagnus/atom,matthewclendening/atom,Jdesk/atom,johnhaley81/atom,matthewclendening/atom,hpham04/atom,Galactix/atom,ashneo76/atom,helber/atom,RuiDGo...
ae9e5d95504386fa6df36a7ace6cf748b4a52fdb
test/front.coffee
test/front.coffee
Front = require('../lib/front/front') WebSocket = require('ws') WebSocketServer = require('ws').Server logger.set_levels 'development' describe 'Front', -> beforeEach -> @front = new Front it 'should initialize', -> @front.start it 'should start a WSS', -> stub = new WebSocketServer({port: 3021, ho...
Front = require('../lib/front/front') WebSocket = require('ws') WebSocketServer = require('ws').Server describe 'Front', -> beforeEach -> @front = new Front it 'should initialize', -> @front.start it 'should start a WSS', -> stub = new WebSocketServer({port: 3021, host: "0.0.0.0"}); stub.on 'co...
Disable logging in test again (oops)
Disable logging in test again (oops)
CoffeeScript
mit
bankonme/buttercoin,buttercoin/buttercoin,eXcomm/buttercoin,eXcomm/buttercoin,buttercoin/buttercoin,buttercoin/buttercoin-engine,bankonme/buttercoin
12e44fd153a0aa9cf94df97d1a8a28c890d1b83a
lib/archive-edit-session.coffee
lib/archive-edit-session.coffee
fsUtils = require 'fs-utils' path = require 'path' _ = require 'underscore' archive = require 'ls-archive' File = require 'file' module.exports= class ArchiveEditSession registerDeserializer(this) @version: 1 @activate: -> Project = require 'project' Project.registerOpener (filePath) -> new Archiv...
path = require 'path' _ = require 'underscore' archive = require 'ls-archive' telepath = require 'telepath' fsUtils = require 'fs-utils' File = require 'file' module.exports= class ArchiveEditSession @acceptsDocuments: true registerDeserializer(this) @version: 1 @activate: -> Project = require 'project'...
Store archive edit session state in a telepath document
Store archive edit session state in a telepath document This allows an archive file to be opened during a collaboration session.
CoffeeScript
mit
atom/archive-view
daf58307aed03055c3f4cdce08a28ef26b33c19e
lib/models/git-stash-pop.coffee
lib/models/git-stash-pop.coffee
git = require '../git' notifier = require '../notifier' OutputViewManager = require '../output-view-manager' module.exports = (repo) -> cwd = repo.getWorkingDirectory() git.cmd(['stash', 'pop'], {cwd}, color: true) .then (msg) -> OutputViewManager.getView().showContent(msg) if msg isnt '' .catch (msg) -> ...
git = require('../git-es').default ActivityLogger = require('../activity-logger').default module.exports = (repo) -> cwd = repo.getWorkingDirectory() git(['stash', 'pop'], {cwd, color: true}) .then (result) -> ActivityLogger.record(Object.assign({message: 'Pop from stash'}, result))
Use ActivityLogger in stash pop
Use ActivityLogger in stash pop
CoffeeScript
mit
akonwi/git-plus,akonwi/git-plus
60c5f83712f8df64ef95c9cd7f6212b23ce17620
app/client/survey_admin/survey_admin.coffee
app/client/survey_admin/survey_admin.coffee
Parse = require 'parse' Template.survey_admin.onCreated -> @fetched = new ReactiveVar false surveyId = @data.id self = @ query = new Parse.Query Survey query.get(surveyId).then (survey) -> self.fetched.set true self.survey = survey , (obj, error) -> throw new Meteor.Error 'server',...
Parse = require 'parse' {Survey} = require '../../imports/models' Template.survey_admin.onCreated -> @fetched = new ReactiveVar false surveyId = @data.id instance = @ query = new Parse.Query Survey query.get(surveyId).then (survey) -> instance.fetched.set true instance.survey = survey , ...
Use "instance" as scope reference
Use "instance" as scope reference
CoffeeScript
apache-2.0
ecohealthalliance/mobile-survey,ecohealthalliance/mobile-survey,ecohealthalliance/mobile-survey