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
e8006d2fbe2c043f44aef65fe4cc661b6d9c1a0d
atom/init.coffee
atom/init.coffee
path = require 'path' # require('web-frame').setZoomFactor(1.15) oldWindowDimensions = {} atom.commands.add 'atom-workspace', 'custom:insert-timestamp': -> now = new Date() atom.workspace.getActiveTextEditor().insertText(now.toISOString()) 'custom:open-todo-list': -> todoList = path.join(process.env...
path = require 'path' # require('web-frame').setZoomFactor(1.15) oldWindowDimensions = {} atom.commands.add 'atom-workspace', 'custom:wrap-with-strong': -> editor = atom.workspace.getActiveTextEditor() for selection in editor.getSelections() textToWrap = selection.getText() selection.insertText...
Add a couple custom commands for Discuss members
Add a couple custom commands for Discuss members
CoffeeScript
mit
lee-dohm/dotfiles,lee-dohm/dotfiles,lee-dohm/dotfiles,lee-dohm/dotfiles
5393411f37556c9290f13a3b612f6d778955f712
src/config.coffee
src/config.coffee
path = require 'path' module.exports = getAtomDirectory: -> process.env.ATOM_HOME ? path.join(process.env.HOME, '.atom') getResourcePath: -> process.env.ATOM_RESOURCE_PATH ? '/Applications/Atom.app/Contents/Frameworks/Atom.framework/Resources' getNodeUrl: -> process.env.ATOM_NODE_URL ? 'https://gh-...
path = require 'path' module.exports = getAtomDirectory: -> process.env.ATOM_HOME ? path.join(process.env.HOME, '.atom') getResourcePath: -> process.env.ATOM_RESOURCE_PATH ? '/Applications/Atom.app/Contents/Frameworks/Atom.framework/Resources' getNodeUrl: -> process.env.ATOM_NODE_URL ? 'https://gh-...
Upgrade node to v0.10.9 since atom-shell branch has been merged.
Upgrade node to v0.10.9 since atom-shell branch has been merged.
CoffeeScript
mit
jlord/apm,bronson/apm,gutsy/apm,fscherwi/apm,jlord/apm,VandeurenGlenn/apm,jlord/apm,Nikpolik/apm,bcoe/apm,gutsy/apm,ethanp/apm,ethanp/apm,pusateri/apm,AtaraxiaEta/apm,atom/apm,Nikpolik/apm,VandeurenGlenn/apm,Nikpolik/apm,fscherwi/apm,AtaraxiaEta/apm,VandeurenGlenn/apm,bcoe/apm,jlord/apm,bcoe/apm,ethanp/apm,pusateri/apm...
1ab1f1f393df14263ee7c665cb9688fe26e8ea82
show-counts.coffee
show-counts.coffee
currentProject = require 'zooniverse-readymade/current-project' $ = window.jQuery classifyPage = currentProject.classifyPages[0] {subjectViewer, decisionTree} = classifyPage # NOTE: This is super super hacky. # Doing this for real will require a better DecisionTree class. badges = {} $(decisionTree.el).one decision...
currentProject = require 'zooniverse-readymade/current-project' $ = window.jQuery classifyPage = currentProject.classifyPages[0] {subjectViewer, decisionTree} = classifyPage # NOTE: This is super super hacky. # Doing this for real will require a better DecisionTree class. badges = {} $(decisionTree.el).on decisionT...
Fix counts with new tasks
Fix counts with new tasks
CoffeeScript
apache-2.0
zooniverse/penguin-watch-fb,zooniverse/Penguins,zooniverse/penguin-watch-fb,anselmbradford/Penguins,camallen/Penguins
ce11605293ea5b7ab574b68c0cbac9209f14fa30
coffee/controller/cabin.coffee
coffee/controller/cabin.coffee
"use strict" site = require '../model/config' cabin = require '../model/cabin' exports.getList = (request, reply) -> reply.view 'list', site: site user: request.auth.credentials cabins: cabin.getCabins() title: 'List' exports.getCabin = (request, reply) -> cabin.getCabin request.params.id, (err, ...
"use strict" site = require '../model/config' cabin = require '../model/cabin' request = require 'request' fs = require 'fs' exports.getList = (request, reply) -> reply.view 'list', site: site user: request.auth.credentials cabins: cabin.getCabins() title: 'List' exports.getCabin = (request, reply)...
Add local cache to fetchImage() logic
Add local cache to fetchImage() logic
CoffeeScript
mit
Turistforeningen/hytteadmin_old
5f9e10398bfd830286db25eea2ff5062e6d07dc0
src/js/tael.coffee
src/js/tael.coffee
# tael.js # Copyright (c) 2015 Carter Hinsley # MIT License tiles = [{ type: 'container' }] newTile = (parent) -> # Add a new tile to the `tiles` array. pushTile = -> # Push a new tile to the `tiles` array and return its index. ( tiles.push type: 'leaf' ...
# tael.js # Copyright (c) 2015 Carter Hinsley # MIT License tiles = [ type: 'container' ] newTile = (parent) -> # Add a new tile to the `tiles` array. pushTile = -> # Push a new tile to the `tiles` array and return its index. ( tiles.push type: 'leaf' ) ...
Remove unnecessary braces from container tile
Remove unnecessary braces from container tile
CoffeeScript
mit
hinsley-it/maestro,hinsley-it/maestro
8fa006973a7528869b266480330f59037f3a3cb8
test/sample.coffee
test/sample.coffee
Gozer = require('./helpers/gozer') describe 'Gozer', -> gozer = new Gozer(port: 3002) page = null beforeEach -> page = gozer .visit('/') .resize(width: '1024') describe 'HTML tests', -> it 'can evaluate the document markup', -> expect(page.run(-> document.title)) .to.eventua...
Gozer = require('./helpers/gozer') describe 'Gozer', -> gozer = page = null before -> gozer = new Gozer(port: 3002) beforeEach -> page = gozer .visit('/') .resize(width: '1024') describe 'HTML tests', -> it 'can evaluate the document markup', -> expect(page.run(-> document.titl...
Put driver instantiation in beforeAll block
Put driver instantiation in beforeAll block
CoffeeScript
mit
adorableio/gozer
118ab2a26a704d663075766b5e76d786423665b0
keymaps/grammar-selector.cson
keymaps/grammar-selector.cson
'.platform-darwin .editor': 'cmd-L': 'grammar-selector:show' '.platform-win32 .editor': 'ctrl-L': 'grammar-selector:show'
'.platform-darwin .editor': 'ctrl-L': 'grammar-selector:show' '.platform-win32 .editor': 'ctrl-L': 'grammar-selector:show'
Use ctrl-shift-l to select grammar
Use ctrl-shift-l to select grammar This frees up cmd-shift-l to be split selection into lines
CoffeeScript
mit
atom/grammar-selector
a1b418dc75d5a7fb9613e6b36f569064ee319543
AlchemyTasks.coffee
AlchemyTasks.coffee
exports.CoffeeTask = -> dist: options: bare: false sourceMap: true files: # all of the files used in testing and development - configuration, etc. ".tmp/scripts/else.js": [".tmp/scripts/*.coffee", "!.tmp/scripts/alchemy.src....
exports.CoffeeTask = -> dist: options: bare: false sourceMap: true files: # all of the files used in testing and development - configuration, etc. ".tmp/scripts/else.js": [".tmp/scripts/*.coffee", "!.tmp/scripts/alchemy.src....
Load any config file before logic
Load any config file before logic Any file that ends with Conf.coffee (such as testConf.coffee or charlizeConf.coffee) that is in the root alchemy/ directory is loaded before the logic is run. This fixes many bugs that would occur in previous commits.
CoffeeScript
agpl-3.0
mayblue9/Alchemy,jimtom2713/Alchemy,jimtom2713/Alchemy,mayblue9/Alchemy,kylerob/Alchemy,kylerob/Alchemy,MDCox/Alchemy,GraphAlchemist/Alchemy
56db6269bddadf9834539e0c1faf61290b776dde
public/views/cart_view.coffee
public/views/cart_view.coffee
class CartView extends Backbone.View initialize: -> @listenTo @collection, "reset update", @render tagName: "button" className: "epages-cart-button" events: "click": "openCart" template: _.template """ <i class="fa fa-shopping-cart"></i><span><%= count %></span> """ render: -> quanti...
class CartView extends Backbone.View initialize: -> @listenTo @collection, "reset update", @render tagName: "button" className: "epages-cart-button" events: "click": "openCart" template: _.template """ <i class="fa fa-shopping-cart"></i><span><%= count %></span> """ render: -> quanti...
Check if local storege exist
Check if local storege exist
CoffeeScript
mit
ePages-de/site,ePages-de/site,ePages-de/site
2a903cff37b5de96e31057135409f326c363726a
workflows/filter-habitats.coffee
workflows/filter-habitats.coffee
module.exports = label: "Habitat" key: "habitat" values: [{ value: "deciduous" label: "Deciduous woodland" },{ value: "coniforous" label: "Coniforous woodland" },{ value: "grassland" label: "Grassland" },{ value: "heathland" label: "Heathland and moors" },{ value: "mars...
module.exports = label: "Habitat" key: "habitat" values: [{ value: "deciduous" label: "Deciduous woodland" },{ value: "coniferous" label: "Coniferous woodland" },{ value: "grassland" label: "Grassland" },{ value: "heathland" label: "Heathland and moors" },{ value: "mars...
Fix a typo in coniferous
Fix a typo in coniferous
CoffeeScript
apache-2.0
zooniverse/Orchids,zooniverse/Orchids
c861824484d26a7c61333651642d23f4d7da939c
lib/services/disturbance.coffee
lib/services/disturbance.coffee
Base = require './base' class DisturbanceInformation extends Base constructor: (config) -> @key = config.keys.disturbanceInformation @service = 'disturbanceInformation (SL Störningsinformation 2)' super module.exports = (args...) -> service = new DisturbanceInformation args... { deviations: (a...
Base = require './base' class DisturbanceInformation extends Base constructor: (config) -> @key = config.keys.disturbanceInformation @service = 'disturbanceInformation (SL Störningsinformation 2)' super module.exports = (args...) -> service = new DisturbanceInformation args... { deviations: (a...
Change name of deviationsRawData method
Change name of deviationsRawData method New name is deviationsrawdata to be consistent with the api endpoints
CoffeeScript
mit
simon-johansson/SL-api,simon-johansson/SL-api
5beab797cad7d3a31044dc69ba1d3ea63295e61c
lib/exception-reporting.coffee
lib/exception-reporting.coffee
{_} = require 'atom' Reporter = require './reporter' module.exports = activate: (state) -> if _.isFunction(window.onerror) @originalOnError = window.onerror window.onerror = (message, url, line) => Reporter.send(message, url, line) @originalOnError?(arguments...) deactivate: -> if @...
{_} = require 'atom' Reporter = require './reporter' module.exports = activate: (state) -> if _.isFunction(window.onerror) @originalOnError = window.onerror window.onerror = (message, url, line) => Reporter.send(message, url, line) @originalOnError?(arguments...) deactivate: -> if @...
Add ? for null check
Add ? for null check
CoffeeScript
mit
atom/exception-reporting
5ae01b270b90e782f7f056eb9c1b25a79bece273
coffee/cilantro/ui/field/controls/number.coffee
coffee/cilantro/ui/field/controls/number.coffee
define [ '../../core' '../../controls' './base' ], (c, controls, base) -> class NumberControl extends base.FieldControl options: regionViews: value: controls.RangeInput events: -> events = c._.clone base.FieldControl.events events["c...
define [ '../../core' '../../controls' './base' ], (c, controls, base) -> class NumberControl extends base.FieldControl options: regionViews: value: controls.RangeInput events: -> events = c._.clone base.FieldControl::events events["...
Fix incorrect reference to FieldControl events
Fix incorrect reference to FieldControl events This is part of the class definition, and therefore defined on the prototype.
CoffeeScript
bsd-2-clause
chop-dbhi/cilantro,chop-dbhi/cilantro,chop-dbhi/cilantro
1c4e38c86730a488766d0a2e444d790bf455cfc4
src/less-compile-cache.coffee
src/less-compile-cache.coffee
path = require 'path' os = require 'os' LessCache = require 'less-cache' {Subscriber} = require 'emissary' tmpDir = if process.platform is 'win32' then os.tmpdir() else '/tmp' module.exports = class LessCompileCache Subscriber.includeInto(this) @cacheDir: path.join(tmpDir, 'atom-compile-cache', 'less') constr...
path = require 'path' os = require 'os' LessCache = require 'less-cache' {Subscriber} = require 'emissary' tmpDir = if process.platform is 'win32' then os.tmpdir() else '/tmp' module.exports = class LessCompileCache Subscriber.includeInto(this) @cacheDir: path.join(tmpDir, 'atom-compile-cache', 'less') constr...
Set paths before creating cache
Set paths before creating cache
CoffeeScript
mit
Andrey-Pavlov/atom,batjko/atom,burodepeper/atom,NunoEdgarGub1/atom,rlugojr/atom,kandros/atom,sekcheong/atom,hakatashi/atom,acontreras89/atom,stuartquin/atom,Huaraz2/atom,matthewclendening/atom,Ju2ender/atom,sillvan/atom,bsmr-x-script/atom,targeter21/atom,lovesnow/atom,deepfox/atom,kjav/atom,lisonma/atom,ilovezy/atom,da...
ca8a2fa8be1946be43ebaad68a6bf65cba9c0cd9
src/prompt.coffee
src/prompt.coffee
Impromptu = require './impromptu' prompt = # Returns the global connection to the Redis server. redis: Impromptu.db.client get: (id, field, fn) -> @redis().hget(@key(id), field, fn) set: (id, field, value, fn) -> @redis().hset(@key(id), field, value, fn) del: (id, field, fn) -> @redis().hdel(@...
Impromptu = require './impromptu' prompt = # Returns the global connection to the Redis server. redis: Impromptu.db.client get: (id, field, fn) -> @redis().hget(@key(id), field, fn) set: (id, field, value, fn) -> @redis().hset(@key(id), field, value, fn) del: (id, fields..., fn) -> @redis().hd...
Allow multiple fields to be deleted.
Prompt: Allow multiple fields to be deleted.
CoffeeScript
mit
impromptu/impromptu,impromptu/impromptu
62c1c59db1e133239b7319c93b486747406f1f70
app/client/js/react/link.coffee
app/client/js/react/link.coffee
goog.provide 'app.react.Link' class app.react.Link ###* @param {app.Routes} routes @param {app.react.Touch} touch @constructor ### constructor: (@routes, @touch) -> ###* @param {este.Route} route @param {string} text @param {Object=} urlParams @param {Object=} props ### to: (r...
goog.provide 'app.react.Link' goog.require 'goog.asserts' class app.react.Link ###* TODO: Move to este-library once api is stabilized. @param {app.Routes} routes @param {app.react.Touch} touch @constructor ### constructor: (@routes, @touch) -> ###* @typedef {{ route: este.Route, ...
Improve app.react.Link: options and activeFor.
Improve app.react.Link: options and activeFor.
CoffeeScript
mit
steida/songary
4dddf31734612b1c81ddca44b427d3ad972bf38e
server/models/Checkin.coffee
server/models/Checkin.coffee
mongoose = require('mongoose') checkinSchema = new mongoose.Schema user: String session: Number checkinTime: Date deleted: { type: Boolean, default: false } deletedTime: Date checkinSchema.methods.upsert = () -> # https://jira.mongodb.org/browse/SERVER-14322 try @checkinTime = new ...
mongoose = require('mongoose') checkinSchema = new mongoose.Schema user: String session: Number checkinTime: Date deleted: { type: Boolean, default: false } deletedTime: Date checkinSchema.methods.upsert = () -> # https://jira.mongodb.org/browse/SERVER-14322 try @checkinTime = new ...
Set max checkins per session to 23
Set max checkins per session to 23
CoffeeScript
agpl-3.0
petr-kalinin/algoprog,petr-kalinin/algoprog,petr-kalinin/algoprog,petr-kalinin/algoprog
91587c589e53d5927f987f08d9bae43213ac3174
lib/dev-mode-view.coffee
lib/dev-mode-view.coffee
{View} = require 'atom' module.exports = class DevModeView extends View @content: -> @span class: 'inline-block icon icon-primitive-square text-error'
{View} = require 'atom' module.exports = class DevModeView extends View @content: -> @span class: 'inline-block icon icon-color-mode text-error'
Use color mode instead of primitive square
Use color mode instead of primitive square
CoffeeScript
mit
devoncarew/status-bar,mertkahyaoglu/status-bar,pombredanne/status-bar,TShapinsky/status-bar,Abdillah/status-bar,ali/status-bar
4516fdf8af42cc1db60255e10d28775e43782041
views/2574.coffee
views/2574.coffee
mapboxgl.accessToken = 'pk.eyJ1IjoibWg2MTUwMzg5MSIsImEiOiJjaWhxbTJjOGMwNGt4dHBtMjczbzhieXZkIn0.J8-B8U-8nCtqiZ2CfxbV0g' position = new mapboxgl.LngLat(133.842941, 35.375086).wrap() map = new mapboxgl.Map { container: 'map' style: 'mapbox://styles/mapbox/streets-v8' center: [position.lng, position.lat] zoom: 8 } ...
mapboxgl.accessToken = 'pk.eyJ1IjoibWg2MTUwMzg5MSIsImEiOiJjaWhxbTJjOGMwNGt4dHBtMjczbzhieXZkIn0.J8-B8U-8nCtqiZ2CfxbV0g' position = new mapboxgl.LngLat(133.842941, 35.375086).wrap() map = new mapboxgl.Map { container: 'map' style: 'mapbox://styles/mapbox/streets-v8' center: [position.lng, position.lat] zoom: 8 } ...
Fix the visibility of the function 'locale'
Fix the visibility of the function 'locale'
CoffeeScript
mit
mh61503891/2574,mh61503891/2574
42f007c572a65d413407cd05ef24e4a9b4ea549e
src/settings.coffee
src/settings.coffee
define 'app/settings', () -> applyAjaxDefaults = (settings) -> settings.dataType = sm_settings.ajax_format settings.cache = sm_settings.ajax_cache settings.jsonpCallback = sm_settings.ajax_jsonpCallback settings.data = settings.data || {} settings.data.format = sm_settings.a...
define 'app/settings', () -> ie_version = get_ie_version() applyAjaxDefaults = (settings) -> settings.cache = sm_settings.ajax_cache if not ie_version return settings if ie_version >= 10 return settings settings.dataType = sm_settings.ajax_format ...
Use JSONP only with some IE versions
Use JSONP only with some IE versions
CoffeeScript
agpl-3.0
Zeukkari/servicemap,City-of-Helsinki/servicemap,City-of-Helsinki/servicemap,vaaralav/servicemap,vaaralav/servicemap,City-of-Helsinki/servicemap,vaaralav/servicemap,Zeukkari/servicemap
7f077e59f982067c6e4409e6067a9cc166d5da4c
client/lanes/react/mixins/Access.coffee
client/lanes/react/mixins/Access.coffee
calculateAccess = (comp, props) -> model = _.result(comp, 'modelForAccess') || comp.commands?.getModel()?.modelForAccess() || comp.model?.modelForAccess() accessRight = if props.readonly or comp.context?.readonly 'r' else if props.writable or comp.context?.writable or Lanes.current...
calculateAccess = (comp, props) -> model = _.result(comp, 'modelForAccess') || comp.commands?.getModel()?.modelForAccess() || comp.model?.modelForAccess() accessRight = if props.readonly or comp.context?.readonly 'r' else if props.writable or comp.context?.writable or Lanes.current...
Make sure state exists before reading
Make sure state exists before reading
CoffeeScript
mit
argosity/hippo,argosity/lanes,argosity/hippo,argosity/lanes,argosity/hippo,argosity/lanes
466868e63919d6fabb8d75caca930fd348c1908f
src/pane-container-model.coffee
src/pane-container-model.coffee
{Model} = require 'theorist' Serializable = require 'serializable' {find} = require 'underscore-plus' FocusContext = require './focus-context' module.exports = class PaneContainerModel extends Model atom.deserializers.add(this) Serializable.includeInto(this) @properties root: null focusContext: -> new F...
{Model} = require 'theorist' Serializable = require 'serializable' {find} = require 'underscore-plus' FocusContext = require './focus-context' module.exports = class PaneContainerModel extends Model atom.deserializers.add(this) Serializable.includeInto(this) @properties root: null focusContext: -> new F...
Fix access to undefined root property
Fix access to undefined root property The ::filterDefined transform unfortunately doesn't prevent an undefined initial value when applied to behaviors.
CoffeeScript
mit
YunchengLiao/atom,G-Baby/atom,yangchenghu/atom,tony612/atom,florianb/atom,ironbox360/atom,Neron-X5/atom,daxlab/atom,ralphtheninja/atom,andrewleverette/atom,einarmagnus/atom,gisenberg/atom,yamhon/atom,atom/atom,gabrielPeart/atom,cyzn/atom,kandros/atom,kc8wxm/atom,FIT-CSE2410-A-Bombs/atom,nvoron23/atom,omarhuanca/atom,vj...
80c52ff11eb9bf5f069571cc7ac44c2c7503b026
gulp/development/vendor.coffee
gulp/development/vendor.coffee
mainBowerFiles = require 'main-bower-files' concat = require 'gulp-concat' filter = require 'gulp-filter' commonjsWrap = require 'gulp-wrap-commonjs' pickFilesByExtension = (extension) -> filter (file) -> file.path.match new RegExp("." + extension + "$") module.exports = (gulp) -> gulp.task '...
mainBowerFiles = require 'main-bower-files' concat = require 'gulp-concat' filter = require 'gulp-filter' commonjsWrap = require 'gulp-wrap-commonjs' pickFilesByExtension = (extension) -> filter (file) -> file.path.match new RegExp("." + extension + "$") module.exports = (gulp) -> gulp.task '...
Copy eventric js into scripts folder
Copy eventric js into scripts folder
CoffeeScript
mit
sm0k1nggnu/entertain.io
4adffdc9f3de7657a206df17c774342079c33c0a
src/extensions/command-interpreter/regex-address.coffee
src/extensions/command-interpreter/regex-address.coffee
Address = require 'command-interpreter/address' Range = require 'range' module.exports = class RegexAddress extends Address regex: null reverse: null constructor: (pattern, reverse) -> @reverse = reverse @regex = new RegExp(pattern) getRange: (editor, currentRange) -> rangeBefore = new Range([0, ...
Address = require 'command-interpreter/address' Range = require 'range' module.exports = class RegexAddress extends Address regex: null reverse: null constructor: (pattern, isReversed) -> @isReversed = isReversed @regex = new RegExp(pattern) getRange: (editor, currentRange) -> rangeBefore = new R...
Use isReverse instead of reverse in RegexAddress
Use isReverse instead of reverse in RegexAddress
CoffeeScript
mit
oggy/atom,niklabh/atom,kandros/atom,deepfox/atom,kevinrenaers/atom,sekcheong/atom,vjeux/atom,dkfiresky/atom,alexandergmann/atom,vcarrera/atom,dannyflax/atom,gisenberg/atom,Austen-G/BlockBuilder,ezeoleaf/atom,fredericksilva/atom,kevinrenaers/atom,efatsi/atom,beni55/atom,dijs/atom,Hasimir/atom,boomwaiza/atom,avdg/atom,ei...
64eef6abb1f57cf5ea2818f1556e0e36cfc64395
src/turbolinks/snapshot.coffee
src/turbolinks/snapshot.coffee
class Turbolinks.Snapshot @wrap: (value) -> if value instanceof this value else @fromHTML(value) @fromHTML: (html) -> element = document.createElement("html") element.innerHTML = html @fromElement(element) @fromElement: (element) -> new this head: element.querySelector(...
class Turbolinks.Snapshot @wrap: (value) -> if value instanceof this value else @fromHTML(value) @fromHTML: (html) -> element = document.createElement("html") element.innerHTML = html @fromElement(element) @fromElement: (element) -> new this head: element.querySelector(...
Allow hash to match some more ids
Allow hash to match some more ids
CoffeeScript
mit
turbolinks/turbolinks,turbolinks/turbolinks,turbolinks/turbolinks
94278456ddd5095d53d76c599409b3296d2783a4
test/items.coffee
test/items.coffee
items = require("../build/liblol.js").items describe "items", -> describe "find", -> it "should return all items when nothing is passed to it", -> items.find().should.include item for item in items.list it "should throw an error if the parameters are bad", -> try items.find "blah" ...
items = require("../build/liblol.js").items describe "items", -> describe "find", -> it "should return all items when nothing is passed to it", -> items.find().should.include item for item in items.list it "should throw an error if the condition isn't a function", -> try items.find "bl...
Add test for blank array
Add test for blank array Signed-off-by: Ian Macalinao <08370e385f4778cad8fe504ec5445edd3d45bd9a@gmail.com>
CoffeeScript
mit
simplyianm/liblol
2f35e5a1e1a160833e965b0233c99ec194852525
client/skr/components/Currency.cjsx
client/skr/components/Currency.cjsx
class Skr.Components.Currency extends Lanes.React.Component getDefaultProps: -> amount: _.bigDecimal('0.0') propTypes: amount: React.PropTypes.instanceOf(_.bigDecimal) render: -> <span className="currency">{@props.amount.toFixed(2)}</span>
class Skr.Components.Currency extends Lanes.React.Component getDefaultProps: -> amount: _.bigDecimal('0.0') symbol: '$' propTypes: amount: React.PropTypes.instanceOf(_.bigDecimal) symbol: React.PropTypes.string render: -> className = _.classnames 'currency', @props...
Add symbol to currency display
Add symbol to currency display
CoffeeScript
agpl-3.0
argosity/stockor,argosity/stockor,argosity/stockor,argosity/stockor
6b089428055a56b7d15083c27fa07d30514cb966
config.coffee-dist.coffee
config.coffee-dist.coffee
# Facebook config exports.facebook = appId: null secretKey: null
# Facebook config exports.facebook = appId: null secretKey: null # Meetup config exports.meetup = null # API key as string
Add Meetup to example config file
Add Meetup to example config file
CoffeeScript
mit
pilsprog/paraply2,pilsprog/paraply2
ee8422124e56cd9f6b68894e664c5b19df18db50
models/artwork_inquiry.coffee
models/artwork_inquiry.coffee
Backbone = require 'backbone' { API_URL } = require('sharify').data module.exports = class ArtworkInquiry extends Backbone.Model url: "#{API_URL}/api/v1/me/artwork_inquiry_request"
Backbone = require 'backbone' { API_URL, SESSION_ID } = require('sharify').data Cookies = require '../components/cookies/index.coffee' module.exports = class ArtworkInquiry extends Backbone.Model url: "#{API_URL}/api/v1/me/artwork_inquiry_request" defaults: session_id: SESSION_ID referring_url: Cookies.ge...
Set defaults on the inquiry model directly
Set defaults on the inquiry model directly
CoffeeScript
mit
damassi/force,joeyAghion/force,xtina-starr/force,cavvia/force-1,damassi/force,kanaabe/force,TribeMedia/force-public,yuki24/force,izakp/force,erikdstock/force,xtina-starr/force,erikdstock/force,izakp/force,eessex/force,anandaroop/force,artsy/force,yuki24/force,damassi/force,oxaudo/force,joeyAghion/force,xtina-starr/forc...
1ea1f47660f6b25772a36d66c60b54fc3a38dc2e
src/rpgdice.coffee
src/rpgdice.coffee
# Description: # Rolls dice! # # Dependencies: # None # # Configuration: # None # # Commands: # hubot roll 2d6 # # Author: # dualmoon module.exports = (robot) -> # Helpers randint = (sides) -> return Math.round(Math.random()*(sides-1))+1 rolldice = (sides, num) -> if num is 1 return 0+ra...
# Description: # Rolls dice! # # Dependencies: # None # # Configuration: # None # # Commands: # hubot roll 2d6 # # Author: # dualmoon module.exports = (robot) -> # Helpers randint = (sides) -> return Math.round(Math.random()*(sides-1))+1 rolldice = (sides, num) -> if num is 1 return 0+ra...
Update /roll and begin implementation of /ore
Update /roll and begin implementation of /ore
CoffeeScript
mit
dualmoon/dorfbot-rpgdice
2d7382df386b89d09d6a13c7f4c9f980e22bce2c
lib/latexmk.coffee
lib/latexmk.coffee
child_process = require "child_process" path = require "path" module.exports = executable: "latexmk" run: (args) -> # TODO: Add support for killing the process. proc = child_process.exec("#{@executable} #{args.join(" ")}") proc.on "close", (code, signal) => if code == 0 # TODO: Display a...
child_process = require "child_process" path = require "path" module.exports = executable: "latexmk" run: (args) -> # TODO: Add support for killing the process. proc = child_process.exec("#{@executable} #{args.join(" ")}") proc.on "close", (code, signal) => if code == 0 # TODO: Display a...
Enable SyncTeX, and 'file:line' style errors in log files
Enable SyncTeX, and 'file:line' style errors in log files
CoffeeScript
mit
thomasjo/atom-latex,thomasjo/atom-latex,thomasjo/atom-latex,WoodyWoodsta/atom-latex,WoodyWoodsta/atom-latex
9fde7228c5b008c6220a47e8584cd4a16a61a041
src/index.coffee
src/index.coffee
Sortable = require("./sortable") Draggable = require("./draggable") Droppable = require("./droppable") $.fn.droppable = (options = {}) -> values = for element in this (new Droppable(element, options)) values $.fn.draggable = (options = {}) -> values = for element in this (new Draggable(element, options...
Sortable = require("./sortable") Draggable = require("./draggable") Droppable = require("./droppable") factory = ($) -> $.fn.droppable = (options = {}) -> values = for element in this (new Droppable(element, options)) values $.fn.draggable = (options = {}) -> values = for element in this ...
Define droppable as an amd module
Define droppable as an amd module
CoffeeScript
mit
flowapp/droppable.js
8478e5a6f4acada224a60c734cd68789289cfad6
spec/helper-spec.coffee
spec/helper-spec.coffee
describe 'linter helpers', -> helpers = require '../lib/helpers' fs = require 'fs' testFile = __dirname + '/fixtures/test.txt' testContents = fs.readFileSync(testFile).toString() describe '::exec', -> it 'cries when no argument is passed', -> gotError = false try helpers.exec() c...
describe 'linter helpers', -> helpers = require '../lib/helpers' fs = require 'fs' testFile = __dirname + '/fixtures/test.txt' testContents = fs.readFileSync(testFile).toString() describe '::exec', -> it 'cries when no argument is passed', -> gotError = false try helpers.exec() c...
Add a test for ::parse
:new: Add a test for ::parse
CoffeeScript
mit
SpainTrain/atom-linter,SpainTrain/atom-linter,AtomLinter/atom-linter,steelbrain/atom-linter,Arcanemagus/atom-linter,simon04/atom-linter,simon04/atom-linter
d96a9ccd3d006d58548778bad098a910c548e1ec
src/scripts/actions/user-actions.coffee
src/scripts/actions/user-actions.coffee
ReduxRouter = require 'redux-simple-router' API = require 'api' utils = require '../utils.coffee' URL = require '../url.coffee' appActions = require './app-actions.coffee' module.exports = sessionTimeout: -> type: 'SESSION_TIMEOUT' login: (data) -> type: 'LOGIN' payload: promise: API.login(data).then (body...
ReduxRouter = require 'redux-simple-router' API = require 'api' utils = require '../utils.coffee' URL = require '../url.coffee' appActions = require './app-actions.coffee' module.exports = sessionTimeout: -> type: 'SESSION_TIMEOUT' login: (data) -> type: 'LOGIN' payload: promise: API.login(data).then (body...
Use params also when logging out.
Use params also when logging out.
CoffeeScript
mit
thirdhand/3rdhand.info,thirdhand/3rdhand.info
f5fbed8cdbe525eed033d921a9129b572fdf0947
app/coffee/app.coffee
app/coffee/app.coffee
TM = angular.module 'TM', [] # AUTH CLIENT_ID = '522804721863.apps.googleusercontent.com' SCOPES = [ 'https://www.googleapis.com/auth/tasks' 'https://www.googleapis.com/auth/userinfo.profile' ] window.onAuthLibLoad = -> authorize handleAuthResult, true authorize = (callback, immediate) -> setTimeout -> ...
TM = angular.module 'TM', [] # AUTH CLIENT_ID = '522804721863.apps.googleusercontent.com' SCOPES = [ 'https://www.googleapis.com/auth/tasks' 'https://www.googleapis.com/auth/userinfo.profile' ] window.onAuthLibLoad = -> authorize handleAuthResult, true authorize = (callback, immediate) -> setTimeout -> ...
Remove X-Requested-With HTTP header from defaults
Remove X-Requested-With HTTP header from defaults This header prevents Javascript requests to other domains (e.g. https://www.googleapis.com) Fixes #1
CoffeeScript
mit
vojtajina/task-manager,vojtajina/task-manager
f42733fa906c57f5eb5739716395da6f658b49be
src/base/convert.coffee
src/base/convert.coffee
debug = require("debug")("owfs:convert") exports.extractValue = (callback) -> (error, messages) -> if !error if messages.length > 1 debug "Received multiple messages in simple read",messages messageToUse = messages.filter (message) -> debug "Checking Header payload > 0",message.header.payload me...
debug = require("debug")("owfs:convert") exports.extractValue = (callback) -> (error, messages) -> if !error if messages.length > 1 debug "Received multiple messages in simple read",messages messageToUse = messages.filter (message) -> debug "Checking Header payload > 0",message.header.payload me...
Fix exception "cannot read property payload from undefined"
Fix exception "cannot read property payload from undefined"
CoffeeScript
mit
njh/node-owfs,njh/node-owfs
127be5923be62e746cdf0180cc9ff620655733ad
mobile/apps/auth/index.coffee
mobile/apps/auth/index.coffee
# # /login, /sign_up and /forgot # Render the homepage but force open the appropriate modals # express = require 'express' routes = require './routes' { loginPagePath, signupPagePath, twitterLastStepPath } = require('artsy-passport').options app = module.exports = express() app.set 'views', __dirname + '/templates'...
# # /login, /sign_up and /forgot # Render the homepage but force open the appropriate modals # express = require 'express' routes = require './routes' { loginPagePath, signupPagePath, twitterLastStepPath } = require('artsy-passport').options app = module.exports = express() app.set 'views', __dirname + '/templates'...
Add log_in to mobile routes
Add log_in to mobile routes
CoffeeScript
mit
oxaudo/force,izakp/force,cavvia/force-1,eessex/force,damassi/force,oxaudo/force,anandaroop/force,izakp/force,dblock/force,mzikherman/force,anandaroop/force,erikdstock/force,yuki24/force,artsy/force,erikdstock/force,artsy/force-public,izakp/force,anandaroop/force,cavvia/force-1,kanaabe/force,xtina-starr/force,kanaabe/fo...
3f80ce5b53f9b884c657fccf1552aafc3fd9fb41
Web/gruntfile.coffee
Web/gruntfile.coffee
fs = require 'fs' module.exports = (grunt) -> grunt.initConfig pkg: grunt.file.readJSON('package.json') sass: main: files: 'dist/style.css': 'css/rohpod.scss' copy: js: src: 'js/*.js' dest: 'dist/' flatten: true expand: true img: src: 'img/*' dest: 'dist/' flatten: true ...
fs = require 'fs' module.exports = (grunt) -> grunt.initConfig pkg: grunt.file.readJSON('package.json') sass: main: files: 'dist/style.css': 'css/rohpod.scss' copy: js: src: 'js/*.js' dest: 'dist/' flatten: true expand: true img: src: 'img/*' dest: 'dist/' flatten: true ...
Improve the default build task
Improve the default build task
CoffeeScript
mit
arcaneex/hash,arcaneex/hash,arcaneex/hash,Rohansi/RohBot,arcaneex/hash,Rohansi/RohBot,Rohansi/RohBot,Rohansi/RohBot
e18c53edcf3f8cd37eb7944b7d0fadbd5760e3a8
lib/ascii-art.coffee
lib/ascii-art.coffee
module.exports = activate: -> atom.workspaceView.command "ascii-art:convert", => @convert() convert: -> # This assumes the active pane item is an editor selection = atom.workspace.activePane.Item.getSelection() figlet = require 'figlet' figlet selection.getText(), {font: "Larry 3D 2"}, (error,...
module.exports = activate: -> atom.workspaceView.command "ascii-art:convert", => @convert() convert: -> # This assumes the active pane item is an editor selection = atom.workspace.getActiveEditor().getSelection() figlet = require 'figlet' figlet selection.getText(), {font: "Larry 3D 2"}, (erro...
Update package to use `Workspace::getActiveEditor`
Update package to use `Workspace::getActiveEditor`
CoffeeScript
mit
atom/ascii-art
930f56761dba68a81c0567725d93a81e634d5123
client/skr/Extension.coffee
client/skr/Extension.coffee
class Skr.Extension extends Lanes.Extensions.Base identifier: "skr" # Data that is provided by lib/skr/extension.rb's # client_bootstrap_data method ends up here setBootstrapData: (data) -> Skr.Models.GlAccount.initialize( accounts: data.gl_accounts default_ids: data.de...
class Skr.Extension extends Lanes.Extensions.Base identifier: "skr" # Data that is provided by lib/skr/extension.rb's # client_bootstrap_data method ends up here setBootstrapData: (data) -> Lanes.Models.Query.LIKE_QUERY_TYPES.push 'visible_id' Skr.Models.GlAccount.initialize( ...
Set visible_id to use like query
Set visible_id to use like query
CoffeeScript
agpl-3.0
argosity/stockor,argosity/stockor,argosity/stockor,argosity/stockor
7f9e50052308507378784663097d5d00a66a3cc1
plugins/xmatters/index.coffee
plugins/xmatters/index.coffee
NotificationPlugin = require "../../notification-plugin" class xMatters extends NotificationPlugin # Flatten properties e.g. srcObj.project.name -> dstObject.project_name flatten = (dstObj, srcObj, prefix) -> for property of srcObj if typeof srcObj[property] == "object" if prefix ...
NotificationPlugin = require "../../notification-plugin" class xMatters extends NotificationPlugin # Flatten properties e.g. srcObj.project.name -> dstObject.project_name flatten = (dstObj, srcObj, prefix) -> for property of srcObj if typeof srcObj[property] == "object" if prefix ...
Use "." as separator in properties names
Use "." as separator in properties names event.project.name = "project.name"
CoffeeScript
mit
cagedata/bugsnag-notification-plugins,jacobmarshall/bugsnag-notification-plugins,6wunderkinder/bugsnag-notification-plugins,6wunderkinder/bugsnag-notification-plugins,sharesight/bugsnag-notification-plugins,kstream001/bugsnag-notification-plugins,indirect/bugsnag-notification-plugins,korealert/bugsnag-notification-plug...
5cfe798e30a2d86d32cf159c425d010329ced58f
atom/packages.cson
atom/packages.cson
packages: [ "advanced-open-file" "atom-alignment" "atom-handlebars" "auto-update-packages" "docblockr" "editorconfig" "emmet" "expand-region" "language-apache" "language-applescript" "language-awk" "language-env" "language-gitattributes" "language-gitignore" "language-hosts" "language-in...
packages: [ "advanced-open-file" "atom-alignment" "atom-handlebars" "auto-update-packages" "docblockr" "editorconfig" "emmet" "expand-region" "language-apache" "language-applescript" "language-awk" "language-env" "language-gitattributes" "language-gitignore" "language-hosts" "language-in...
Add language-patch package to Atom
Add language-patch package to Atom
CoffeeScript
mit
caleb531/dotfiles,caleb531/dotfiles,caleb531/dotfiles,caleb531/dotfiles
2b0a2095450181eb5b6cfab91edf0d84a3c6e439
atom/snippets.cson
atom/snippets.cson
# Your snippets # # Atom snippets allow you to enter a simple prefix in the editor and hit tab to # expand the prefix into a larger code block with templated values. # # You can create a new snippet in this file by typing "snip" and then hitting # tab. # # An example CoffeeScript snippet to expand log to console.log: #...
# Your snippets # # Atom snippets allow you to enter a simple prefix in the editor and hit tab to # expand the prefix into a larger code block with templated values. # # You can create a new snippet in this file by typing "snip" and then hitting # tab. # # An example CoffeeScript snippet to expand log to console.log: #...
Add a snippet for Octopress code blocks
Add a snippet for Octopress code blocks
CoffeeScript
mit
randycoulman/dotfiles
c35ae336d6675bfa71e4bce2d120bf9553f73c28
lib/latex.coffee
lib/latex.coffee
path = require "path" latexmk = require "./latexmk" ProgressIndicatorView = require "./progress-indicator-view" module.exports = configDefaults: texPath: "$PATH:/usr/texbin" outputDirectory: "" enableShellEscape: false activate: -> atom.workspaceView.command "latex:build", => @build() build: -...
path = require "path" latexmk = require "./latexmk" ProgressIndicatorView = require "./progress-indicator-view" module.exports = configDefaults: texPath: "$PATH:/usr/texbin" outputDirectory: "" enableShellEscape: false activate: -> atom.workspaceView.command "latex:build", => @build() build: -...
Remove more naughty whitespace :lipstick:
Remove more naughty whitespace :lipstick:
CoffeeScript
mit
thomasjo/atom-latex,WoodyWoodsta/atom-latex,thomasjo/atom-latex,thomasjo/atom-latex,WoodyWoodsta/atom-latex
08583961cc0933fd97fa1b24133724482e2fc1a7
layouts/Body.coffee
layouts/Body.coffee
React = require 'react' Nav = React.createFactory require 'antwar-default-theme/Nav' Paths = require('antwar-core/PathsMixin') require 'antwar-default-theme/scss/main.scss' require 'react-ghfork/gh-fork-ribbon.ie.css' # ie support require 'react-ghfork/gh-fork-ribbon.css' Fork = React.createFactory(require 'react-ghfo...
React = require 'react' Nav = React.createFactory require 'antwar-default-theme/Nav' Paths = require('antwar-core/PathsMixin') require 'antwar-default-theme/scss/main.scss' # XXX: this can get compiled before latter... figure out how to force order #require 'react-ghfork/gh-fork-ribbon.ie.css' # ie support require 're...
Drop ie support from ribbon
Drop ie support from ribbon Looks like build might not pick that up in the correct order...
CoffeeScript
mit
Foxandxss/site,Foxandxss/site
aed65cf2fef49531c4e493c7bcbd0b2df8d1ff19
assets/script/StrokeMesh.coffee
assets/script/StrokeMesh.coffee
fs = require 'fs' three = require 'three' module.exports = class StrokeMesh constructor: (scene) -> @nStrokes = 1000 uniforms = bright: type: 'f' value: 0 strokeTexture: type: 't' value: three.ImageUtils.loadTexture 'texture/stroke.png' attributes = strokeColor: type: 'c' v...
fs = require 'fs' three = require 'three' module.exports = class StrokeMesh constructor: (scene) -> @nStrokes = 10000 uniforms = bright: type: 'f' value: 0 strokeTexture: type: 't' value: three.ImageUtils.loadTexture 'texture/stroke.png' attributes = strokeColor: type: 'c' ...
Arrange brush strokes around a sphere
Arrange brush strokes around a sphere
CoffeeScript
mit
ScottTodd/PainterlyRendering,ScottTodd/PainterlyRendering
4c0cef15f406a024b694b11dc467c8b3d7046e12
backend/app/assets/javascripts/spree/backend/taxonomy.js.coffee
backend/app/assets/javascripts/spree/backend/taxonomy.js.coffee
taxons_template = null get_taxonomy = -> Spree.ajax url: "#{Spree.routes.taxonomy_path}?set=nested" draw_tree = (taxonomy) -> $('#taxonomy_tree') .html( taxons_template({ taxons: [taxonomy.root] }) ) .find('ul') .sortable connectWith: '#taxonomy_tree ul' placeholder: 'sortable-placehol...
taxons_template = null get_taxonomy = -> Spree.ajax url: "#{Spree.routes.taxonomy_path}?set=nested" draw_tree = (taxonomy) -> $('#taxonomy_tree') .html( taxons_template({ taxons: [taxonomy.root] }) ) .find('ul') .sortable connectWith: '#taxonomy_tree ul' placeholder: 'sortable-placehol...
Add dynamic sortable placeholder height
Add dynamic sortable placeholder height
CoffeeScript
bsd-3-clause
jordan-brough/solidus,Arpsara/solidus,jordan-brough/solidus,Arpsara/solidus,pervino/solidus,jordan-brough/solidus,pervino/solidus,Arpsara/solidus,jordan-brough/solidus,pervino/solidus,Arpsara/solidus,pervino/solidus
e4e646b09f48d7329caf1ee0683ec93a96f22fc0
src/components/Template.coffee
src/components/Template.coffee
noflo = require "noflo" class Template extends noflo.Component description: "This component receives a templating engine name, a string containing the template, and variables for the template. Then it runs the chosen template engine and sends resulting templated content to the output port" constructor: -> ...
noflo = require "noflo" class Template extends noflo.Component description: "This component receives a templating engine name, a string containing the template, and variables for the template. Then it runs the chosen template engine and sends resulting templated content to the output port" constructor: -> ...
Update Templating component to public Jade API
Update Templating component to public Jade API
CoffeeScript
mit
saurabhsood91/noflo,jonnor/noflo,lxfschr/noflo,jonnor/noflo,trustmaster/noflo,lxfschr/noflo,saurabhsood91/noflo,trustmaster/noflo,npmcomponent/noflo-noflo,noflo/noflo
7f822618e56e0aa024582eb41a7e45e5a5c58720
src/runas.coffee
src/runas.coffee
runas = require('bindings')('runas.node') module.exports = (command, args=[], options={}) -> options.hide ?= false options.admin ?= true runas.runas(command, args, options)
runas = require('bindings')('runas.node') module.exports = (command, args=[], options={}) -> options.hide ?= true options.admin ?= false runas.runas(command, args, options)
Make {hide: true, admin: false} as default option.
Make {hide: true, admin: false} as default option.
CoffeeScript
mit
dustinblackman/node-runas,dbkaplun/node-runas,atom/node-runas,paulcbetts/node-runas,pombredanne/node-runas,atom/node-runas,dustinblackman/node-runas,pombredanne/node-runas,paulcbetts/node-runas,dbkaplun/node-runas
f1079056cfc985f9bd2f424c0a97bd6e3ce0f938
dot-atom/keymap.cson
dot-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...
Update .workspace class with custom element
Update .workspace class with custom element Because of the update with the custom elements, i noticed that `.workspace` hasn't been updated in the `keymap.cson`, but `.editor` has (to `atom-text-editor`).
CoffeeScript
mit
beni55/atom,rookie125/atom,hharchani/atom,einarmagnus/atom,cyzn/atom,devoncarew/atom,bcoe/atom,cyzn/atom,jeremyramin/atom,nvoron23/atom,yomybaby/atom,palita01/atom,mnquintana/atom,RobinTec/atom,nvoron23/atom,folpindo/atom,charleswhchan/atom,synaptek/atom,Shekharrajak/atom,pengshp/atom,stinsonga/atom,rlugojr/atom,ardesh...
935f3ecd0add5dd06dd5c5e1693fbc8e6b6701b8
web/lib/coffeescripts/layout.coffee
web/lib/coffeescripts/layout.coffee
class Layout constructor: (@fn) -> this.resize() this.listen() setTimeout (=> this.resize()), 250 resize: -> this.fill '.x-fill', 'outerWidth', 'width' this.fill '.y-fill', 'outerHeight', 'height' this.fn() fill: (selector, get, set) -> $(selector).each (ix, node) => node = $(n...
class Layout constructor: (@fn) -> this.resize() this.listen() setTimeout (=> this.resize()), 250 resize: -> this.fill '.x-fill', 'outerWidth', 'width' this.fill '.y-fill', 'outerHeight', 'height' this.fn() fill: (selector, get, set) -> $(selector).each (ix, node) => node = $(n...
Include margin in width and height calculations.
Include margin in width and height calculations.
CoffeeScript
mit
negativecode/vines,AliEn707/vines,Zauberstuhl/vines,diaspora/vines,Zauberstuhl/diaspora-vines,artofhuman/vines,negativecode/vines,artofhuman/vines,artofhuman/vines,AliEn707/vines,Zauberstuhl/vines,AliEn707/vines,diaspora/vines,Zauberstuhl/diaspora-vines
c464ed09675404697cd9dcdb7a5a5522b595d2d9
tutor/src/components/icon.cjsx
tutor/src/components/icon.cjsx
React = require 'react' BS = require 'react-bootstrap' classnames = require 'classnames' _ = require 'underscore' module.exports = React.createClass displayName: 'Icon' propTypes: type: React.PropTypes.string.isRequired spin: React.PropTypes.bool className: React.PropTypes.string tooltip: ...
React = require 'react' BS = require 'react-bootstrap' classnames = require 'classnames' _ = require 'underscore' module.exports = React.createClass displayName: 'Icon' propTypes: type: React.PropTypes.string.isRequired spin: React.PropTypes.bool className: React.PropTypes.string tooltip: ...
Set clickable class if onClick is given
Set clickable class if onClick is given
CoffeeScript
agpl-3.0
openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js
2fa0c8c17dd29125039ac2018be33abcd939e5f4
lib/base-theme-watcher.coffee
lib/base-theme-watcher.coffee
{fs} = require 'atom' path = require 'path' Watcher = require './watcher' module.exports = class BaseThemeWatcher extends Watcher constructor: -> super() @stylesheetsPath = path.dirname(window.resolveStylesheet('../static/atom.less')) @watch() watch: -> filePaths = fs.readdirSync(@stylesheetsPath)...
{fs} = require 'atom' path = require 'path' Watcher = require './watcher' module.exports = class BaseThemeWatcher extends Watcher constructor: -> super() @stylesheetsPath = path.dirname(window.resolveStylesheet('../static/atom.less')) @watch() watch: -> filePaths = fs.readdirSync(@stylesheetsPath)...
Make base stylesheet loading work again
Make base stylesheet loading work again We need to watch the absolute path
CoffeeScript
mit
atom/dev-live-reload
64bd8acc1e59b0c948b7be4f3f096720acf585f6
test/app.spec.coffee
test/app.spec.coffee
path = require 'path' helpers = require('yeoman-generator').test describe 'app', -> beforeEach (done) -> helpers.testDirectory path.join(__dirname, 'app.tmp'), (err) => return done(err) if err @app = helpers.createGenerator 'coffee-module:app', ['../../app'] done() it 'creates expected files...
path = require 'path' helpers = require('yeoman-generator').test describe 'app', -> beforeEach (done) -> helpers.testDirectory path.join(__dirname, 'app.tmp'), (err) => return done(err) if err @app = helpers.createGenerator 'coffee-module:app', ['../../app'] done() it 'creates expected files...
Add new gulp files to tests
Add new gulp files to tests
CoffeeScript
mit
alexgorbatchev/generator-coffee-module
1bfdc6558156c83a6d22077b3dac5c34c156f9d7
src/file-view.coffee
src/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 octicon for README files
Use octicon for README files
CoffeeScript
mit
jasonhinkle/tree-view,ALEXGUOQ/tree-view,jarig/tree-view,matthewbauer/tree-view,tbryant/tree-view,learn-co/learn-ide-tree,rajendrant/tree-view-remote,cgrabowski/webgl-studio-tree-view,ayumi/tree-view,pombredanne/tree-view-1,atom/tree-view,benjaminRomano/tree-view,thgaskell/tree-view,laituan245/tree-view,tomekwi/tree-vi...
45a33352db14234836c97c15492a7e828b7a450b
tests/mocha/rock/person/_.coffee
tests/mocha/rock/person/_.coffee
MochaWeb?.testOnly -> describe "Rock person function", -> if Meteor.isClient it "should not exist on the client", -> chai.assert.isUndefined Rock.person return it "should exist", -> chai.assert.isDefined Rock.person it "should be a function", -> chai.assert.isFunction Roc...
MochaWeb?.testOnly -> describe "Rock person function", -> if Meteor.isClient it "should not exist on the client", -> chai.assert.isUndefined Rock.person return it "should exist", -> chai.assert.isDefined Rock.personnnnnnnnnnnnnnn it "should be a function", -> chai.assert....
Make a test fail to test circle ci
Make a test fail to test circle ci
CoffeeScript
mit
normajs/apollos-core,normajs/apollos-core,NewSpring/apollos-core
be822423872b27b0dcf82774af490366ef15c94e
src/coffee/fetchstocks.coffee
src/coffee/fetchstocks.coffee
Promise = require 'bluebird' {SphereClient} = require 'sphere-node-sdk' class FetchStocks constructor: (@logger, options = {}, @channelKey) -> @client = new SphereClient options run: -> if @channelKey @_getChannelId() .then (id) => queryString = 'supplyChannel(id="' + id + '")' ...
Promise = require 'bluebird' {SphereClient} = require 'sphere-node-sdk' class FetchStocks constructor: (@logger, options = {}, @channelKey) -> @client = new SphereClient options run: -> query = @client.inventoryEntries.all().sort('sku').expand('supplyChannel') if @channelKey @_getChannelId() ...
Adjust query for fetchStocks to be more performant.
Adjust query for fetchStocks to be more performant.
CoffeeScript
mit
sphereio/sphere-stock-export,sphereio/sphere-stock-export
610dc3f4422caea0ed59de66c964a607a2b021f2
assets/javascripts/helpers/url.js.coffee
assets/javascripts/helpers/url.js.coffee
_.extend TentStatus.Helpers, postUrl: (post) -> return unless post and post.get entity = post.get('entity') if (new HTTP.URI entity).hostname == TentStatus.config.domain_entity.hostname "/posts/#{post.get('id')}" else if entity.match /\.tent\.is/ "#{entity}/posts/#{post.get 'id'}" els...
_.extend TentStatus.Helpers, postUrl: (post) -> return unless post and post.get entity = post.get('entity') if (new HTTP.URI entity).hostname == TentStatus.config.domain_entity.hostname "/posts/#{post.get('id')}" else if entity.match /\.tent\.is/ "#{entity}/posts/#{post.get 'id'}" els...
Fix in reply to link for tent.is
Fix in reply to link for tent.is
CoffeeScript
bsd-3-clause
tent/tent-status,tent/tent-status
c7b7527454f9f7ec4b9c55ea5a192d9dc46722e9
gulp/helper/child_process.coffee
gulp/helper/child_process.coffee
gutil = require 'gulp-util' child_process = require 'child_process' module.exports = (name, command, next = ->) -> child_process.exec( command (error, stdout, stderr) -> if error and error.code customError = message: "Failed: #{name}" gutil.log stdout gutil.lo...
gutil = require 'gulp-util' child_process = require 'child_process' module.exports = (name, command, callback = ->) -> child_process.exec( command (error, stdout, stderr) -> if error and error.code customError = message: "Failed: #{name}" gutil.log stdout guti...
Fix child process helper (specs)
Fix child process helper (specs)
CoffeeScript
mit
efacilitation/eventric
3ec2d2e2a24bc8f6f54e7e38bdfc78aca2c10f8b
lib/autocomplete/provider.coffee
lib/autocomplete/provider.coffee
{filter} = require 'fuzzaldrin' AutoCompletePlusProvider = selector: '.source.dart' disableForSelector: '.source.dart .comment' inclusionPriority: 1 excludeLowerPriority: true # Our analysis API service object analysisApi: null # Required: Return a promise, an array of suggestions, or null. getSugge...
{filter} = require 'fuzzaldrin' {_} = require 'lodash' AutoCompletePlusProvider = selector: '.source.dart' disableForSelector: '.source.dart .comment' inclusionPriority: 1 excludeLowerPriority: true # Our analysis API service object analysisApi: null # Required: Return a promise, an array of suggestio...
Make some fixes to the autocompleter.
Make some fixes to the autocompleter. Missing "element" no longer causes failures. Also, sorting is slightly improved, maybe. Probably. Possibly.
CoffeeScript
mit
radicaled/dart-tools
6f47b639d38aa9a04f4dbceaef705eec8ecb94bf
assets/index.coffee
assets/index.coffee
#= require ./vendor/qunit QUnit.config.hidepassed = true QUnit.config.testTimeout = 5000 QUnit.begin (suiteDetails) -> Blade.suiteBegin(total: suiteDetails.totalTests) failedAssertions = [] QUnit.testStart (testDetails) -> failedAssertions = [] QUnit.log (assertionDetails) -> unless assertionDetails.result ...
#= require ./vendor/qunit QUnit.config.hidepassed = true QUnit.config.testTimeout = 5000 QUnit.begin (suiteDetails) -> Blade.suiteDidBegin(suiteDetails) failedAssertions = [] QUnit.testStart (testDetails) -> failedAssertions = [] QUnit.log (assertionDetails) -> unless assertionDetails.result failedAssert...
Update for Blade API changes
Update for Blade API changes
CoffeeScript
mit
javan/blade-qunit_adapter,javan/blade-qunit_adapter,javan/blade-qunit_adapter,javan/blade_runner-qunit_adapter,javan/blade_runner-qunit_adapter,javan/blade_runner-qunit_adapter
6e0a97c8740dfa9b9540fce3e5eca0b26e24306f
grammars/manref.cson
grammars/manref.cson
# Injected links to man(1) pages scopeName: "hidden.manref" injectionSelector: "text, comment, docstring, string.quoted.docstring, source.changelogs" patterns: [{ name: "manref" match: "([^\\s()<>/\"'`{}!:&*#?\\\\]+)((\\()([0-9])([^()\\s]*)(\\)))" captures: 1: name: "manref.subject" 2: name: "manref.section" 3...
# Injected links to man(1) pages scopeName: "hidden.manref" injectionSelector: "text, comment, docstring, string.quoted.docstring, source.changelogs" patterns: [{ name: "manref" match: "([^\\s()<>/\"'`{}!:&*#?\\\\]+)((\\()([0-9])(?!\\.|(?<=0)(?:[Xx][0-9A-Fa-f]+|[OoBb][0-9]+))([^()\\s]*)(\\)))" captures: 1: name: "...
Reduce the likelihood of falsely-matched man-links
Reduce the likelihood of falsely-matched man-links This commit ensures that constructs like `foo(1.5)` or `hex(0xB1)` don't get highlighted as references to manual-pages (such as function calls in commented-out code).
CoffeeScript
isc
Alhadis/language-roff,Alhadis/language-roff
52bba002874d89a630e495d75c5edba6b9bbe6bd
lib/latexer.coffee
lib/latexer.coffee
LabelView = require './label-view' CiteView = require './cite-view' LatexerHook = require './latexer-hook' {CompositeDisposable} = require 'atom' module.exports = Latexer = config: parameters_to_search_citations_by: type: "array" default: ["title", "author"] items: type: "string" ...
LabelView = require './label-view' CiteView = require './cite-view' LatexerHook = require './latexer-hook' {CompositeDisposable} = require 'atom' module.exports = Latexer = config: parameters_to_search_citations_by: type: "array" default: ["title", "author"] items: type: "string" ...
Disable pandoc citation autocompletion by default
Disable pandoc citation autocompletion by default
CoffeeScript
mit
Focus/latexer,vitasiku/latexer
bd2f7839c7ff72debe895e9c1d6a0f65dba9e021
collections/search_blocks.coffee
collections/search_blocks.coffee
# # Collection for a group of Blocks (could be users and channels as well) fetched by a search # Blocks = require("./blocks.coffee") sd = require("sharify").data _ = require 'underscore' Block = require("../models/block.coffee") params = require 'query-params' module.exports = class SearchBlocks extends Blocks defa...
# # Collection for a group of Blocks (could be users and channels as well) fetched by a search # Blocks = require("./blocks.coffee") sd = require("sharify").data _ = require 'underscore' Block = require("../models/block.coffee") params = require 'query-params' Fetch = require '../lib/fetch.coffee' AtoZ = require '../l...
Add fetch and a to z lib to SearchBlocks
Add fetch and a to z lib to SearchBlocks
CoffeeScript
mit
aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell
c402282a325870295c765fdbd6f82ae898eb6892
spec/models/git-show-spec.coffee
spec/models/git-show-spec.coffee
fs = require 'fs-plus' Path = require 'flavored-path' Os = require 'os' git = require '../../lib/git' {repo, pathToRepoFile} = require '../fixtures' GitShow = require '../../lib/models/git-show' describe "GitShow", -> beforeEach -> spyOn(git, 'cmd').andReturn Promise.resolve 'foobar' it "calls git.cmd with 's...
fs = require 'fs-plus' Path = require 'flavored-path' Os = require 'os' git = require '../../lib/git' {repo, pathToRepoFile} = require '../fixtures' GitShow = require '../../lib/models/git-show' describe "GitShow", -> beforeEach -> spyOn(git, 'cmd').andReturn Promise.resolve 'foobar' it "calls git.cmd with 's...
Add test for using format option in git show command
Add test for using format option in git show command
CoffeeScript
mit
akonwi/git-plus,akonwi/git-plus
b1fa1862fa9b3d13671bc4bb1965d7a046253c26
dotfiles/.atom/config.cson
dotfiles/.atom/config.cson
"*": core: disabledPackages: [ "minimap" ] telemetryConsent: "limited" editor: fontSize: 13 scrollPastEnd: true zoomFontWhenCtrlScrolling: false linter: {} "linter-eslint": lintHtmlFiles: true welcome: showOnStartup: false
"*": core: disabledPackages: [ "minimap" ] telemetryConsent: "limited" editor: fontSize: 13 scrollPastEnd: true zoomFontWhenCtrlScrolling: false linter: {} "linter-eslint": fixOnSave: true lintHtmlFiles: true welcome: showOnStartup: false
Fix ESLint errors on save
Fix ESLint errors on save
CoffeeScript
mit
strattadb/dotfiles,strattadb/dotfiles
abd3d2d0bdbbc33223e520a784be9b75605829fb
lib/analysis_api/edit_api.coffee
lib/analysis_api/edit_api.coffee
module.exports = class EditAPI constructor: (@api) -> format: (file, offset, length) => @api.perform 'edit.format', file: file selectionOffset: offset selectionLength: length
module.exports = class EditAPI constructor: (@api) -> format: (file, offset, length) => @api.perform 'edit.format', file: file selectionOffset: offset selectionLength: length lineLength: atom.config.get('editor.preferredLineLength')
Send the preferred line length to the analysis_server during formatting
Send the preferred line length to the analysis_server during formatting The parameter is "lineLength" according to the new API Closes #44
CoffeeScript
mit
radicaled/dart-tools
7bed8752af9196ef5e7a18f33ae19d37348c89ec
src/storage.coffee
src/storage.coffee
class Storage images: {} counter: 0 constructor: (repeat) -> @repeat = not not repeat add: (image) -> return false unless image.orig cid = @counter++ fragments = image.orig.split '/' image.hashbang = fragments[fragments.length-1] image.thumb = image.orig unless image.thumb @ima...
class Storage images: {} counter: 0 constructor: (repeat) -> @repeat = not not repeat add: (image) -> return false unless image.orig cid = @counter++ fragments = image.orig.split '/' image.hashbang = fragments[fragments.length-1] image.thumb = image.orig unless image.thumb @ima...
Fix prev method when repeat is on
Fix prev method when repeat is on
CoffeeScript
mit
meritt/chocolate.js,meritt/chocolate.js
b84fcd4f12794e40513cd32bcce22ad77b6c7044
src/Document.coffee
src/Document.coffee
OT = require './' module.exports = class Document constructor: -> @text = "" @revision = 0 @operations = [] apply: (newOperation, revision) -> # Should't happened throw new Error "The operation base revision is greater than the document revision" if revision > @revision if ...
OT = require './' module.exports = class Document constructor: -> @text = "" @operations = [] apply: (newOperation, revision) -> # Should't happened throw new Error "The operation base revision is greater than the document revision" if revision > @operations.length if revision ...
Remove useless revision property on document. Compute it from the operations list.
Remove useless revision property on document. Compute it from the operations list.
CoffeeScript
mit
sparklinlabs/operational-transform,sparklinlabs/operational-transform
0806ebe7da525e2f37af1aa304fb96aadc6bd025
components/auth_modal/maps.coffee
components/auth_modal/maps.coffee
module.exports = templateMap: signup: -> require('./templates/signup.jade') arguments... login: -> require('./templates/login.jade') arguments... register: -> require('./templates/register.jade') arguments... forgot: -> require('./templates/forgot.jade') arguments... reset: -> require('./templates...
module.exports = templateMap: signup: -> require('./templates/signup.jade') arguments... login: -> require('./templates/login.jade') arguments... register: -> require('./templates/register.jade') arguments... forgot: -> require('./templates/forgot.jade') arguments... reset: -> require('./templates...
Add login route copy for /works-for-you
Add login route copy for /works-for-you
CoffeeScript
mit
mzikherman/force,cavvia/force-1,kanaabe/force,damassi/force,artsy/force,dblock/force,cavvia/force-1,TribeMedia/force-public,yuki24/force,anandaroop/force,cavvia/force-1,eessex/force,joeyAghion/force,joeyAghion/force,erikdstock/force,artsy/force,oxaudo/force,eessex/force,xtina-starr/force,izakp/force,oxaudo/force,artsy/...
d0184de1b0a34e504c18802817c4c7c1e0266496
guts/getControllers.coffee
guts/getControllers.coffee
Promise = require 'bluebird' fs = Promise.promisifyAll require 'fs' _ = require 'lodash' module.exports = () -> # For performance reasons, we'll do this asynchronously. fs.readdirAsync('./controllers/').then (controllers) -> #This probably isn't necessary: I wanted to parse t...
Promise = require 'bluebird' fs = Promise.promisifyAll require 'fs' _ = require 'lodash' module.exports = () -> # For performance reasons, we'll do this asynchronously. fs.readdirAsync('./controllers/').then (controllers) -> #This probably isn't necessary: I wanted to parse t...
Make it so we're not creating a redundant wrapper function.
Make it so we're not creating a redundant wrapper function.
CoffeeScript
unlicense
Tombert/frameworkeyPromiseEdition,Tombert/frameworkeyPromiseEdition
d41dd8dcb40d1c84b5edfa225f4b7909deeab0aa
test/integration/new_view.coffee
test/integration/new_view.coffee
should = require 'should' {wd40, browser, login_url, home_url, prepIntegration} = require './helper' describe 'New view tool', -> prepIntegration() before (done) -> wd40.fill '#username', 'ehg', -> wd40.fill '#password', 'testing', -> wd40.click '#login', done context 'when I click on an Apri...
should = require 'should' {wd40, browser, login_url, home_url, prepIntegration} = require './helper' describe 'New view tool', -> prepIntegration() before (done) -> wd40.fill '#username', 'ehg', -> wd40.fill '#password', 'testing', -> wd40.click '#login', done context 'when I click on an Apri...
Fix new view tool wait
Fix new view tool wait
CoffeeScript
agpl-3.0
scraperwiki/custard,scraperwiki/custard,scraperwiki/custard
e76b2d689fa2cd7e9ad7478e539ef39c6435e527
app/assets/javascripts/claim_route.coffee
app/assets/javascripts/claim_route.coffee
document.addEventListener "turbolinks:load", -> $(".img-check").click -> $(this).toggleClass("checked") routePreviewBoards = $('.route-preview.board') if routePreviewBoards.length > 0 routeSVGId = routePreviewBoards.data('routesvgid') route = $('#svg_' + routeSVGId) route.attr('filter', 'url(#gl...
document.addEventListener "turbolinks:load", -> $(".img-check").click -> $(this).toggleClass("checked") routePreviewBoards = $('.route-preview.board') if routePreviewBoards.length > 0 routeSVGId = routePreviewBoards.data('routesvgid') route = $('#svg_' + routeSVGId) route.attr('filter', 'url(#gl...
Change the route preview colour to white.
Change the route preview colour to white.
CoffeeScript
mit
jordancrawfordnz/ticket-to-ride,jordancrawfordnz/ticket-to-ride,jordancrawfordnz/ticket-to-ride
79495e7be8897c371f7b21196e3e866724592089
src/jira/user.coffee
src/jira/user.coffee
Config = require "../config" Utils = require "../utils" class User @withEmail: (email) -> Utils.fetch("#{Config.jira.url}/rest/api/2/user/search?username=#{email}") .then (user) -> jiraUser = user[0] if user and user.length is 1 throw "Cannot find jira user with #{email}, trying myself" unless j...
_ = require "underscore" Config = require "../config" Utils = require "../utils" class User @withEmail: (email) -> Utils.fetch("#{Config.jira.url}/rest/api/2/user/search?username=#{email}") .then (users) -> jiraUser = _(users).findWhere emailAddress: email if users and users.length > 0 throw "...
Fix issue where partial matches of email address are returned from the JIRA api
Fix issue where partial matches of email address are returned from the JIRA api
CoffeeScript
mit
ndaversa/hubot-jira-bot
f88afe01e6b03de12b53f18b8c9c6c579d88a12b
src/js/router.coffee
src/js/router.coffee
'use strict' angular.module 'flickrSimpleReorder' .config [ '$stateProvider' '$urlRouterProvider' ( $stateProvider $urlRouterProvider ) -> $urlRouterProvider.otherwise '/photosets' $stateProvider .state 'login', url: '/login?frob&isFrobInvalid' controller: 'LoginCtrl' te...
'use strict' angular.module 'flickrSimpleReorder' .config [ '$stateProvider' '$urlRouterProvider' ( $stateProvider $urlRouterProvider ) -> $urlRouterProvider.otherwise '/photosets' $stateProvider .state 'login', url: '/login?frob&isFrobInvalid' controller: 'LoginCtrl' te...
Allow about page to be access w/o login
Allow about page to be access w/o login
CoffeeScript
apache-2.0
whitetrefoil/flickr-simple-reorder,whitetrefoil/flickr-simple-reorder,whitetrefoil/flickr-simple-reorder
a814a743dbb81806fc713804562db91b8b2310ff
app/talk/comment-report-form.cjsx
app/talk/comment-report-form.cjsx
React = {findDOMNode} = require 'react' Feedback = require './mixins/feedback' talkClient = require '../api/talk' module?.exports = React.createClass displayName: 'TalkCommentReportForm' mixins: [Feedback] propTypes: comment: React.PropTypes.object error: '' onSubmit: (e) -> e.preventDefault() ...
React = {findDOMNode} = require 'react' Feedback = require './mixins/feedback' talkClient = require '../api/talk' module?.exports = React.createClass displayName: 'TalkCommentReportForm' mixins: [Feedback] propTypes: comment: React.PropTypes.object getInitialState: -> error: '' onSubmit: (e) -> ...
Move report form error to getInitialState
Move report form error to getInitialState
CoffeeScript
apache-2.0
edpaget/Panoptes-Front-End,CKrawczyk/Panoptes-Front-End,edpaget/Panoptes-Front-End,fmnhExhibits/Panoptes-Front-End,fmnhExhibits/Panoptes-Front-End,CKrawczyk/Panoptes-Front-End,alexbfree/Panoptes-Front-End,alexbfree/Panoptes-Front-End,camallen/Panoptes-Front-End,mrniaboc/Panoptes-Front-End,zooniverse/Panoptes-Front-End,...
a18c67a349eb24dd0ff2df06edcb5b20ac85df0f
src/stopwords.coffee
src/stopwords.coffee
path = require('path') fs = require('fs') _ = require('lodash') cache = {} # Given a language, loads a list of stop words for that language # and then returns which of those words exist in the given content module.exports = stopwords = (content, language = 'en') -> filePath = path.join(__dirname, "..", "data", "sto...
path = require('path') fs = require('fs') _ = require('lodash') cache = {} getFilePath = (language) -> path.join(__dirname, "..", "data", "stopwords", "stopwords-#{language}.txt") # Given a language, loads a list of stop words for that language # and then returns which of those words exist in the given content mod...
Handle case where stopword file !exists
Handle case where stopword file !exists Hit an error where unfluff tried to read a file that didn't exist; now the code should default to English. Would welcome a cleaner approach.
CoffeeScript
apache-2.0
ahmadassaf/Node-Goose,pat-riley/node-unfluff,ageitgey/node-unfluff,jeffj/node-unfluff,ageitgey/node-unfluff,ahmadassaf/Node-Goose,jeffj/node-unfluff
ddacb3d79ff89341c1c011200c1af113801d26cc
client/views/widget/latest.coffee
client/views/widget/latest.coffee
Template.blogLatest.rendered = -> num = if @data?.num then @data.num else 3 Deps.autorun -> Meteor.subscribe 'posts', num Template.blogLatest.helpers latest: -> Post.all() date: (date) -> if date date = new Date(date) moment(date).format('MMMM Do, YYYY')
Template.blogLatest.rendered = -> num = if @data?.num then @data.num else 3 @autorun -> Meteor.subscribe 'posts', num Template.blogLatest.helpers latest: -> Post.all() date: (date) -> if date date = new Date(date) moment(date).format('MMMM Do, YYYY')
Use template instance's version of autorun
Use template instance's version of autorun
CoffeeScript
mit
SierraGolf/meteor-blog,NIKKTTO/meteor-blog,issacting93/avenue,SierraGolf/meteor-blog,jmwenda/meteor-blog,jmwenda/meteor-blog,parkeasz/meteor-blog,samcorcos/meteor-blog,johnschult/meteor-blog,Differential/meteor-blog,mcknightg/meteor-blog,waitingkuo/meteor-blog,mcknightg/meteor-blog,meteor-blog/meteor-blog,meteor-blog/m...
4ab329c465224f0d8aa552f2288caa1f8846afc5
app/assets/javascripts/home.coffee
app/assets/javascripts/home.coffee
setup500px = () -> _500px.init { sdk_key: 'fdcaea5c35561158c89cf39bf30efc827d7d88cd' } _500px.on 'authorization_obtained', () -> $('#not_logged_in').hide() $('#logged_in').show() _500px.api '/users', (response) -> me = response.data.user; $('#username').html(username) _500px.on 'l...
# Taken from https://github.com/500px/500px-js-sdk/blob/master/examples/example1.html setup500px = () -> _500px.init { sdk_key: 'fdcaea5c35561158c89cf39bf30efc827d7d88cd' } _500px.on 'authorization_obtained', () -> $('#not_logged_in').hide() $('#logged_in').show() _500px.api '/users', (response)...
Fix missing username and add ref
Fix missing username and add ref
CoffeeScript
mit
hinshun/photo-showcase,hinshun/photo-showcase,hinshun/photo-showcase
714e4717ec0a363c2923e93f48057a99b1ec9232
gulpfile.coffee
gulpfile.coffee
(require "id-project") browserify: enabled: false copy: enabled: false less: enabled: false livereload: enabled: false nodemon: enabled: false forever: enabled: false documentation: enabled: true clean: enabled: true watch: enabled: true tests: enabl...
(require "id-project") browserify: enabled: false copy: enabled: false less: enabled: false livereload: enabled: false nodemon: enabled: false forever: enabled: false documentation: enabled: false clean: enabled: true watch: enabled: true tests: enab...
Disable documentation generation in id-project
Disable documentation generation in id-project
CoffeeScript
mit
viriciti/redis-port
175e48d8cae052e1be202befd5b4014ac670ae6e
gulpfile.coffee
gulpfile.coffee
path = require('path') gulp = require('gulp') mocha = require('gulp-mocha') coffeelint = require('gulp-coffeelint') mochaNotifierReporter = require('mocha-notifier-reporter') OPTIONS = config: coffeelint: path.join(__dirname, 'coffeelint.json') files: coffee: [ 'lib/**/*.coffee', 'gulpfile.coffee' ] tests: 'li...
path = require('path') gulp = require('gulp') mocha = require('gulp-mocha') coffeelint = require('gulp-coffeelint') mochaNotifierReporter = require('mocha-notifier-reporter') OPTIONS = config: coffeelint: path.join(__dirname, 'coffeelint.json') files: coffee: [ 'lib/**/*.coffee', 'gulpfile.coffee' ] tests: 'li...
Use Mocha Landing Strip reporter to prevent long lists
Use Mocha Landing Strip reporter to prevent long lists
CoffeeScript
apache-2.0
resin-io/resin-cli,resin-io/resin-cli,resin-io/resin-cli,resin-io/resin-cli
9a00c1d145c87f90e8d1045b974277ec3d845a4e
workers/social/lib/social/models/computeproviders/machine.coffee
workers/social/lib/social/models/computeproviders/machine.coffee
{ Module } = require 'jraphical' module.exports = class JMachine extends Module { ObjectId } = require 'bongo' @set indexes : kiteId : 'unique' sharedEvents : static : [ ] instance : [ ] schema : kiteId ...
{ Module } = require 'jraphical' module.exports = class JMachine extends Module { ObjectId } = require 'bongo' @set indexes : kiteId : 'unique' sharedEvents : static : [ ] instance : [ ] schema : kiteId ...
Add initScript field which is valid for every JMachines
JMachine: Add initScript field which is valid for every JMachines
CoffeeScript
agpl-3.0
kwagdy/koding-1,alex-ionochkin/koding,drewsetski/koding,szkl/koding,usirin/koding,rjeczalik/koding,mertaytore/koding,cihangir/koding,acbodine/koding,usirin/koding,usirin/koding,gokmen/koding,koding/koding,szkl/koding,jack89129/koding,andrewjcasal/koding,drewsetski/koding,szkl/koding,sinan/koding,mertaytore/koding,kodin...
f53f9947a52245016fd2fa0bd100aaee0dde82c6
app/views/repos-list.coffee
app/views/repos-list.coffee
`import Ember from 'ember'` `import colorForState from 'travis/utils/helpers'` View = Ember.CollectionView.extend elementId: 'repos' tagName: 'ul' emptyView: Ember.View.extend templateName: 'repos-list/empty' itemViewClass: Ember.View.extend repoBinding: 'content' classNames: ['repo'] classNa...
`import Ember from 'ember'` `import { colorForState } from 'travis/utils/helpers'` View = Ember.CollectionView.extend elementId: 'repos' tagName: 'ul' emptyView: Ember.View.extend templateName: 'repos-list/empty' itemViewClass: Ember.View.extend repoBinding: 'content' classNames: ['repo'] cla...
Fix colorForState for repos list
Fix colorForState for repos list
CoffeeScript
mit
2947721120/travis-web,mjlambert/travis-web,fauxton/travis-web,fauxton/travis-web,2947721120/travis-web,fauxton/travis-web,Tiger66639/travis-web,jlrigau/travis-web,2947721120/travis-web,jlrigau/travis-web,fotinakis/travis-web,jlrigau/travis-web,fauxton/travis-web,travis-ci/travis-web,Tiger66639/travis-web,2947721120/tra...
1509b99b7d2011bf0d6eb41bf103042ce984ac72
app/scripts/app.coffee
app/scripts/app.coffee
'use strict' angular .module('taarifaWaterpointsApp', [ 'ngResource', 'ngRoute', 'leaflet-directive', 'dynform', 'angular-flash.service', 'angular-flash.flash-alert-directive' ]) .config ($routeProvider, flashProvider) -> $routeProvider .when '/', templateUrl: 'views/mai...
'use strict' angular .module('taarifaWaterpointsApp', [ 'ngResource', 'ngRoute', 'leaflet-directive', 'dynform', 'angular-flash.service', 'angular-flash.flash-alert-directive' ]) .config ($routeProvider, flashProvider) -> $routeProvider .when '/', templateUrl: 'views/mai...
Add /requests/new route to RequestCreateCtrl
Add /requests/new route to RequestCreateCtrl
CoffeeScript
apache-2.0
gwob/Maarifa,gwob/Maarifa,gwob/Maarifa,gwob/Maarifa,gwob/Maarifa
f2cbe605e8c6cd510e12395cc2f2bd8cf330b2f0
src/atom/keybindings/emacs.coffee
src/atom/keybindings/emacs.coffee
window.keymap.bindKeys '.editor', 'ctrl-f': 'move-right' 'ctrl-b': 'move-left' 'ctrl-p': 'move-up' 'ctrl-n': 'move-down' 'alt-f': 'move-to-next-word' 'alt-b': 'move-to-previous-word' 'ctrl-a': 'move-to-first-character-of-line' 'ctrl-e': 'move-to-end-of-line'
window.keymap.bindKeys '.editor', 'ctrl-f': 'move-right' 'ctrl-b': 'move-left' 'ctrl-p': 'move-up' 'ctrl-n': 'move-down' 'alt-f': 'move-to-next-word' 'alt-b': 'move-to-previous-word' 'ctrl-a': 'move-to-first-character-of-line' 'ctrl-e': 'move-to-end-of-line' 'ctrl-h': 'backspace' 'ctrl-d': 'delete'
Add ctrl-h and ctrl-d bindings
Add ctrl-h and ctrl-d bindings
CoffeeScript
mit
codex8/atom,qskycolor/atom,florianb/atom,gzzhanghao/atom,jtrose2/atom,jordanbtucker/atom,bj7/atom,me-benni/atom,ReddTea/atom,darwin/atom,ali/atom,folpindo/atom,deoxilix/atom,Rychard/atom,gontadu/atom,vjeux/atom,fedorov/atom,NunoEdgarGub1/atom,wiggzz/atom,yomybaby/atom,vcarrera/atom,qskycolor/atom,nrodriguez13/atom,Fold...
8fd87abd3c978c455728d160abd33d378ffd689d
atom/.atom/config.cson
atom/.atom/config.cson
"*": Zen: softWrap: true tabs: "multiple" "block-cursor": global: blinkOn: {} core: disabledPackages: [ "language-c" "language-clojure" "language-coffee-script" "language-csharp" "language-go" "language-java" "language-mustache" "language-make"...
"*": Zen: softWrap: true tabs: "multiple" "block-cursor": global: blinkOn: {} core: disabledPackages: [ "language-c" "language-clojure" "language-coffee-script" "language-csharp" "language-go" "language-java" "language-mustache" "language-make"...
Disable some core atom packages
Disable some core atom packages
CoffeeScript
unlicense
daveaspinall/dotfiles,daveaspinall/dotfiles
c6feb460956d1367e224f92a90d0cf19cbd1695d
framer/Compat.coffee
framer/Compat.coffee
{Layer} = require "./Layer" compatProperty = (name) -> exportable: false get: -> @[name] set: (value) -> @[name] = value class CompatView extends Layer constructor: (options={}) -> console.debug "CompatView.constructor: Views are now called Layers" if options.hasOwnProperty "superView" options.superLaye...
{Layer} = require "./Layer" compatProperty = (name) -> exportable: false get: -> @[name] set: (value) -> @[name] = value class CompatView extends Layer constructor: (options={}) -> console.debug "CompatView.constructor: Views are now called Layers" if options.hasOwnProperty "superView" options.superLaye...
Add image and scroll view
Add image and scroll view
CoffeeScript
mit
DNESS/Framer,tisho/Framer,jchavarri/Framer,qezt/Framer,mattsjohnston/Framer,tisho/Framer,irwansyahwii/Framer,koenbok/Framer,WestonThayer/Framer,calebduren/Framer,mattsjohnston/Framer,awt2542/Framer,koenbok/Framer,awt2542/Framer,mattsjohnston/Framer,qezt/Framer,WestonThayer/Framer,DNESS/Framer,qezt/Framer,jchavarri/Fram...
93e2f430977f334556452595ef2626d1bc2a2a7d
server/database.coffee
server/database.coffee
redis = switch process.env.NODE_ENV when 'test' then require 'redis-mock' else require 'redis' # Connect to redis if process.env.REDIS_DB_URL parts = require("url").parse(process.env.REDIS_DB_URL) db = redis.createClient(parts.port, parts.hostname) db.auth(parts.auth.split(":")[1]) if parts.auth...
redis = require 'redis' # Connect to redis if process.env.REDIS_DB_URL parts = require("url").parse(process.env.REDIS_DB_URL) db = redis.createClient(parts.port, parts.hostname) db.auth(parts.auth.split(":")[1]) if parts.auth else db = redis.createClient() # Export database variable module.exports = db
Use locally running redis for tests.
Use locally running redis for tests. The reason we stopped using redis-mock is because it has no TTL function, and I don't have time to reimplement that.
CoffeeScript
mit
sarenji/pokebattle-sim,sarenji/pokebattle-sim,sarenji/pokebattle-sim
997448e3824875df114eef8fedf2f6f3dd8460ca
server/migrations/migrate.coffee
server/migrations/migrate.coffee
Meteor.startup -> Migrations.migrateTo 'latest'
Meteor.startup -> Migrations.migrateTo 'latest' Meteor.methods migrateTo: (version) -> if not @userId return Migrations.migrateTo version
Add method to execute migration from client
Add method to execute migration from client
CoffeeScript
mit
rodrigok/GradeFaccat,rodrigok/GradeFaccat
c60a3818a31cff9f5ecd3becfbe8db2238182783
lib/citeproc.coffee
lib/citeproc.coffee
module.exports = parse: (cp) => if not Array.isArray(cp) cp = [cp] # Convert citeproc to internal format cp_references = [] for ref in cp cp_object = {} cp_object.citationKey = ref.id cp_object.entryType = ref.type tags = {} # Title tags.title = ref.title ...
module.exports = parse: (cp) => if not Array.isArray(cp) cp = [cp] # Convert citeproc to internal format cp_references = [] for ref in cp cp_object = {} cp_object.citationKey = ref.id cp_object.entryType = ref.type tags = {} # Title tags.title = ref.title ...
Support for literal author names
Support for literal author names
CoffeeScript
mit
mangecoeur/autocomplete-bibtex,apcshields/autocomplete-bibtex,lodestone/autocomplete-bibtex,tpoisot/autocomplete-citeproc,tpoisot/autocomplete-bibtex
584a6c9b09026e36739332ff09d46c5635fe3495
src/code/utils/link-colors.coffee
src/code/utils/link-colors.coffee
RelationFactory = require "../models/relation-factory" linkColors = module.exports = default :'#777' defaultFaded : "rgba(120,120,120,0)" increase : "rgba(232,93,100,1)" decrease : "rgba(142,162,225,1)" transferModifier : "rgba(182,182,182,1)" transferPipe ...
RelationFactory = require "../models/relation-factory" linkColors = module.exports = default :'#777' defaultFaded : "rgba(120,120,120,0)" increase : "rgba(232,93,100,1)" decrease : "rgba(142,162,225,1)" transferModifier : "rgba(232,93,100,1)" transferPipe ...
Update transfer modifier color to be red
Update transfer modifier color to be red
CoffeeScript
mit
concord-consortium/building-models,concord-consortium/building-models,concord-consortium/building-models,concord-consortium/building-models,concord-consortium/building-models
bcea7e296fadb983ae3c583c0dc11bdd32828b1a
app/assets/javascripts/select2-rails.coffee
app/assets/javascripts/select2-rails.coffee
window.Binco.Select2 = load: (selector) -> selector = if typeof selector == 'string' then selector else '.select2-rails' $(selector).select2() $(document).on 'ready page:load', window.Binco.Select2.load
window.Binco.Select2 = load: (selector) -> selector = if typeof selector == 'string' then selector else '.select2-rails' $(selector).select2() $(document).on 'ready turbolinks:load', window.Binco.Select2.load
Add turbolinks 5 event name
Add turbolinks 5 event name
CoffeeScript
mit
codn/binco,codn/binco,codn/binco
9aa4c226e992e0b7b7a75f67ee1901f07d5fc701
src/judge/install-package.coffee
src/judge/install-package.coffee
npmi = require 'npmi' module.exports = (packagePath, callback) -> npmi path: packagePath, (err, result) -> callback err if err callback null, result
npmi = require 'npmi' module.exports = (packageName, packageVersion, targetPath, callback) -> # (packagePath, callback) → `npm install` in targetPath if arguments.length is 2 targetPath = packageName callback = packageVersion npmiOptions = path: targetPath else npmiOptions = name: packageName version...
Add support for installation of a specific package to installPackage()
Add support for installation of a specific package to installPackage()
CoffeeScript
bsd-2-clause
SonicHedgehog/judge
acddff0835dc55ecec746bc030487cae41a1f23c
test/conf/protractor-conf.coffee
test/conf/protractor-conf.coffee
exports.config = # Note: the debug and logLevel options are set in the grunt # protractor task based on whether the grunt command is # executed with the --debug option. # Run under the mocha framework rather than the default jasmine. framework: 'mocha' # If the selenium address is not specified, then prot...
exports.config = # Note: the debug and logLevel options are set in the grunt # protractor task based on whether the grunt command is # executed with the --debug option. # Run under the mocha framework rather than the default jasmine. framework: 'mocha' # If the selenium address is not specified, then prot...
Increase time-out to 5 seconds.
Increase time-out to 5 seconds.
CoffeeScript
bsd-2-clause
ohsu-qin/qiprofile,ohsu-qin/qiprofile,ohsu-qin/qiprofile,ohsu-qin/qiprofile
4787dcff885eabc5930edb91d9f314cdba171a8f
lib/bottom-views.coffee
lib/bottom-views.coffee
Views = { currentFile:(linter) -> root = document.createElement 'div' root.innerHTML = 'Current File' root.classList.add 'linter-tab' root.classList.add 'active' root.addEventListener 'click', -> linter.bottom.barProject.root.classList.remove 'active' root.classList.add 'active' ...
Views = { status: -> root = document.createElement 'div' root.classList.add 'linter-success' root.classList.add 'inline-block' child = document.createElement 'span' child.classList.add 'icon' root.appendChild child return {root, child} } module.exports = Views
Remove file and project from bottom views
:fire: Remove file and project from bottom views
CoffeeScript
mit
kaeluka/linter,DanPurdy/linter,e-jigsaw/Linter,josa42/Linter,JohnMurga/linter,elkeis/linter,simurai/linter-plus,AsaAyers/linter,iam4x/linter,UltCombo/linter,atom-community/linter,mdgriffith/linter,shawninder/linter,AtomLinter/Linter,blakeembrey/linter,Arcanemagus/linter,levity/linter,steelbrain/linter
15348b7aa68741fbd89f7b8c434ba642022d659e
lib/linter-govet.coffee
lib/linter-govet.coffee
linterPath = atom.packages.getLoadedPackage('linter').path Linter = require "#{linterPath}/lib/linter" {CompositeDisposable} = require 'atom' class LinterGovet extends Linter @syntax: ['source.go'] cmd: ['go', 'tool', 'vet', '-v'] errorStream: 'stderr' defaultLevel: 'warning' linterName: 'govet' regex...
linterPath = atom.packages.getLoadedPackage('linter').path Linter = require "#{linterPath}/lib/linter" class LinterGovet extends Linter @syntax: ['source.go'] cmd: ['go', 'tool', 'vet', '-v'] errorStream: 'stderr' linterName: 'govet' regex: '.+?:(?<line>\\d+):((?<col>\\d+):)? (?<warning>.+)' options: ...
Remove obsolete(?) defaultLevel, replace with formatMessage
Remove obsolete(?) defaultLevel, replace with formatMessage Signed-off-by: Max Riveiro <d6057f9977f3a3299068adff565ad43e853028a2@gmail.com>
CoffeeScript
mit
AtomLinter/linter-govet
85844cb14186da50bddd6009b29746c5bb276fc2
app/assets/javascripts/models/user.js.coffee
app/assets/javascripts/models/user.js.coffee
define [ 'chaplin' 'models/base/model' 'models/tags' ], (Chaplin, Model, Tags) -> 'use strict' class User extends Model validation: username: required: true email: pattern: 'email', required: true email_confirmed: fn: 'emailConfirmed' required: t...
define [ 'chaplin' 'models/base/model' 'models/tags' ], (Chaplin, Model, Tags) -> 'use strict' class User extends Model validation: username: required: true email: pattern: 'email', required: true email_confirmation: fn: 'emailConfirmed' password: ...
Fix broken client side validation.
Fix broken client side validation.
CoffeeScript
agpl-3.0
joatuapp/joatu-app,joatuapp/joatu-app
d9d5488985caa161b6e8bb97661161faaea72891
atom/config.cson
atom/config.cson
"*": "exception-reporting": userId: "30e6f2d0-42d3-ab77-4984-dde4c431f019" welcome: showOnStartup: false core: projectHome: "/Users/randy/src" audioBeep: false excludeVcsIgnoredPaths: false editor: invisibles: {} fontFamily: "Hack" showIndentGuide: true fontSize: 15 autosav...
"*": "exception-reporting": userId: "30e6f2d0-42d3-ab77-4984-dde4c431f019" welcome: showOnStartup: false core: projectHome: "/Users/randy/src" audioBeep: false excludeVcsIgnoredPaths: false editor: invisibles: {} fontFamily: "Hack" showIndentGuide: true fontSize: 15 autosav...
Make vagrant spec commands project-specific
Make vagrant spec commands project-specific
CoffeeScript
mit
randycoulman/dotfiles
e4c85a04a410ef44d518133eee9bf5df55480e17
server/initializers/config.coffee
server/initializers/config.coffee
fs = require('fs') path = require('path') _ = require('underscore') APP_CONFIG = null exports.get = (key) -> unless APP_CONFIG? console.log 'no app config' APP_CONFIG = readConfigFile() _.clone(APP_CONFIG[key]) getEnv = -> process.env.NODE_ENV || 'development' readConfigFile = -> env = getEnv() ...
fs = require('fs') path = require('path') _ = require('underscore') APP_CONFIG = null exports.get = (key) -> unless APP_CONFIG? console.log 'no app config' APP_CONFIG = readConfigFile() _.clone(APP_CONFIG[key]) getEnv = -> process.env.NODE_ENV || 'development' readConfigFile = -> env = getEnv() ...
Remove left over console logs
Remove left over console logs
CoffeeScript
bsd-3-clause
unepwcmc/NRT,unepwcmc/NRT
4f6cae1bc08c0bbcc99174a4736a813ed318eddd
tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/init.coffee
tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/init.coffee
# Copyright 2012 The Apache Software Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http:#www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
# Copyright 2012 The Apache Software Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http:#www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
Remove a temporary kludge that is no longer needed
Remove a temporary kludge that is no longer needed
CoffeeScript
apache-2.0
apache/tapestry-5,apache/tapestry-5,apache/tapestry-5,apache/tapestry-5,apache/tapestry-5