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 |
|---|---|---|---|---|---|---|---|---|---|
5678e0e2c93e6e7386d2c24518af24b51e588f65 | test/test-cmp.coffee | test/test-cmp.coffee | fs = require "fs"
env = do -> this
env.eval(fs.readFileSync("../curve255.js").toString())
stdout = process.stdout
stderr = process.stderr
write = (x) -> stdout.write x
echo = (x) -> write x + "\n"
fromHex = env.c255lhexdecode
toHex = env.c255lhexencode
hex2ibh = (x) ->
x = new Array(64 + 1 - x.length).... | Add a test for the comparison function c255lbigintcmp | Add a test for the comparison function c255lbigintcmp
| CoffeeScript | mit | rev22/jodid25519,meganz/jodid25519,meganz/jodid25519 | |
25ee3ac61f3cc4300c2a768078070cb88019543b | app/assets/javascripts/login_menu.coffee | app/assets/javascripts/login_menu.coffee | class LoginMenu
constructor: (@trigger=$('.login_portal_widget_toggle')) ->
@trigger = $('.login_portal_widget_toggle')
@menu = $('.login_portals_widget')
@register_handlers()
position_menu: () ->
o = @trigger.offset()
parent = @trigger.parent().parent()
po = parent.offset()
margin =... | Use simple JS menu to choose login portal. (missed one file in commit) | Use simple JS menu to choose login portal. (missed one file in commit)
[#66918404] Clarify login procedure
https://www.pivotaltracker.com/story/show/66918404
| CoffeeScript | mit | concord-consortium/lara,concord-consortium/lara,concord-consortium/lara,concord-consortium/lara,concord-consortium/lara | |
3a82364fa0ee0dc814d5ffd64a80aaffe7ed1bf5 | SingularityUI/app/collections/TasksActive.coffee | SingularityUI/app/collections/TasksActive.coffee | Tasks = require './Tasks'
Task = require '../models/Task'
class TasksActive extends Tasks
model: Task
url: "#{ env.SINGULARITY_BASE }/#{ constants.apiBase }/tasks/active"
parse: (tasks) ->
_.each tasks, (task, i) =>
task.JSONString = utils.stringJSON task
task.id = task.t... | Tasks = require './Tasks'
Task = require '../models/Task'
class TasksActive extends Tasks
model: Task
url: "#{ env.SINGULARITY_BASE }/#{ constants.apiBase }/tasks/active"
parse: (tasks) ->
_.each tasks, (task, i) =>
task.JSONString = utils.stringJSON task
task.id = task.t... | Add requestId as a top-level attribute of an active task | Add requestId as a top-level attribute of an active task | CoffeeScript | apache-2.0 | andrhamm/Singularity,calebTomlinson/Singularity,andrhamm/Singularity,evertrue/Singularity,calebTomlinson/Singularity,hs-jenkins-bot/Singularity,tejasmanohar/Singularity,nvoron23/Singularity,hs-jenkins-bot/Singularity,mjball/Singularity,stevenschlansker/Singularity,HubSpot/Singularity,grepsr/Singularity,HubSpot/Singular... |
fd88caba5d7c27200c5109f55027996782ec0fb4 | test/javascripts/letterclick_test.coffee | test/javascripts/letterclick_test.coffee | #= require test_helper
suite 'Letterclick', ->
test 'exists in the global namespace', ->
expect(Letterclick.Models).to.be.an 'object'
test 'has namespaces', ->
expect(Letterclick.Models).to.be.an 'object'
expect(Letterclick.Collections).to.be.an 'object'
expect(Letterclick.Views).to.be.an 'object'... | Add tests for the Letterclick app initializer. | Add tests for the Letterclick app initializer.
| CoffeeScript | agpl-3.0 | dougo/letterclick,dougo/letterclick | |
b8eb105f8cf2f7e92eb2d69a1c1d906d43d98ac3 | source/javascripts/tests/preflight_cors_spdy.coffee | source/javascripts/tests/preflight_cors_spdy.coffee | class PreflightCorsSpdyTest extends Test
constructor: ->
super
@display_name = "Preflight CORS over SPDY"
@url = "https://corstest-api.coshx.com:4002"
run: ->
[a, b] = super
@$http(
method: "POST"
url: @url
headers: {"x-a": a, "x-b": b}
).success((data, status, headers, c... | Add preflight cors over spdy | Add preflight cors over spdy
| CoffeeScript | mit | gkop/corstest-client,gkop/corstest-client | |
518ec66b70291fd624534e1be077724e1607d4bb | specs/unit/type_error_spec.coffee | specs/unit/type_error_spec.coffee | {TypeError} = require('../../src/finitio/errors')
should = require('should')
_ = require('underscore')
describe "TypeError", ->
error = new TypeError({
context: "{{x: Posint}}"
typeName: "Hobbies"
error: ["Invalid ${typeName}", [ "Relation" ]]
children: [
{
location: 1
context:... | Add missing spec for TypeError. | Add missing spec for TypeError.
| CoffeeScript | mit | llambeau/finitio.js,llambeau/finitio.js | |
c3120428c5679c8f4b67977ded57516935b760ef | src/infinite_scroll.coffee | src/infinite_scroll.coffee | angular.module('infinite-scroll', []).directive 'infiniteScroll', [->
link: (scope, elem, attrs) ->
$window = angular.element(window)
$document = angular.element(document)
# infinite-scroll-distance specifies how close to the bottom of the page
# the window is allowed to be before we trigger a new ... | Add current version of infinite-scroll script | Add current version of infinite-scroll script
| CoffeeScript | mit | maksimr/ngInfiniteScroll,tianyawy/ngInfiniteScroll,seawenzhu/ngInfiniteScroll,cloudnode-app/ngInfiniteScroll,itkin/ngInfiniteScroll,emmafaye/ngInfiniteScroll-PureJS,msbit/ngInfiniteScroll,yesmeck/ngInfiniteScroll,uzen/angular-infinitescroll,aisharagheb/ngInfiniteScroll,just-boris/ngInfiniteScroll,Masadow/ngInfiniteScro... | |
120339a4380d7411032b929ef877d34113a4b3ad | app/assets/javascripts/services/session_service.coffee | app/assets/javascripts/services/session_service.coffee | angular.module('kassa').service('SessionService',[
'$http'
'$q'
($http, $q)->
currentUser = null
setAuthenticated = (promise)-> promise.then (resp)-> currentUser = resp.data
checkStatus = -> setAuthenticated $http.get('/users/me')
signIn = (email, password)-> setAuthenticated $http.post('/se... | Add service skeleton for handling session state on client | Add service skeleton for handling session state on client
| CoffeeScript | mit | flipflops/kassa,flipflops/kassa | |
5316b4be2fc6841c9cd5b2c394e6351909465a56 | components/commercial_filter/models/params.coffee | components/commercial_filter/models/params.coffee | _ = require 'underscore'
Backbone = require 'backbone'
module.exports = class Params extends Backbone.Model
urlWhitelist:[
'page'
'medium'
'color',
'price_range',
'width',
'height',
'gene_id',
'sort',
'major_periods',
'partner_cities'
]
defaults:
size: 50
page: 1
... | _ = require 'underscore'
Backbone = require 'backbone'
module.exports = class Params extends Backbone.Model
urlWhitelist:[
'page'
'medium'
'color',
'price_range',
'width',
'height',
'gene_id',
'sort',
'major_periods',
'partner_cities'
]
defaults:
size: 50
page: 1
... | Use uniq to filter out dupes | Use uniq to filter out dupes
| CoffeeScript | mit | joeyAghion/force,oxaudo/force,damassi/force,anandaroop/force,joeyAghion/force,kanaabe/force,cavvia/force-1,yuki24/force,izakp/force,izakp/force,eessex/force,mzikherman/force,eessex/force,cavvia/force-1,mzikherman/force,erikdstock/force,yuki24/force,artsy/force,artsy/force-public,kanaabe/force,mzikherman/force,joeyAghio... |
1f2c18f29bc89dc23a30251c25a9973ba83d54de | client/admin/lib/views/stacksv2/definestackview.coffee | client/admin/lib/views/stacksv2/definestackview.coffee | kd = require 'kd'
JView = require 'app/jview'
curryIn = require 'app/util/curryIn'
showError = require 'app/util/showError'
{yamlToJson} = require './yamlutils'
StackEditorView = require './stackeditorview'
updateStackTemplate = require './updatestacktem... | Define Stack View: base stack editing view. Currently supports to create new stack templates and update existings if provided | StacksV2: Define Stack View: base stack editing view. Currently supports to create new stack templates and update existings if provided
| CoffeeScript | agpl-3.0 | rjeczalik/koding,szkl/koding,szkl/koding,kwagdy/koding-1,drewsetski/koding,drewsetski/koding,cihangir/koding,jack89129/koding,mertaytore/koding,szkl/koding,andrewjcasal/koding,koding/koding,gokmen/koding,kwagdy/koding-1,rjeczalik/koding,andrewjcasal/koding,jack89129/koding,koding/koding,jack89129/koding,acbodine/koding... | |
4b50d0078415ae4a56e76253ba4abf783ff4c6cf | scripts/worldcup.coffee | scripts/worldcup.coffee | # Description:
# World Cup 2014 matches and scores
#
# Commands:
# hubot world cup schedule - World Cup schedule for today
# hubot world cup score - Match scores
module.exports = (robot) ->
robot.respond /world cup( schedule| matches)?/i, (msg) ->
robot.http('http://worldcup.sfg.io/matches/today')
.g... | Add World Cup schedule and match scores | Add World Cup schedule and match scores
| CoffeeScript | mit | TheLevelUp/hubot-ralph | |
303ec1949308506d9975d3d6963383cd66089e47 | app/assets/javascripts/views/paper_edit_view.js.coffee | app/assets/javascripts/views/paper_edit_view.js.coffee | ETahi.PaperEditView = Ember.View.extend
setBackgroundColor:(->
$('body').addClass('matte')
).on('didInsertElement')
resetBackgroundColor:(->
$('body').removeClass('matte')
).on('willDestroyElement')
| Set background color on Paper edit screen | Set background color on Paper edit screen
| CoffeeScript | mit | johan--/tahi,johan--/tahi,johan--/tahi,johan--/tahi | |
ee72de365105760ec9afaff666b6f486c70c69ea | spec/linter-helperexec-spec.coffee | spec/linter-helperexec-spec.coffee | #!/usr/bin/env coffee
#
# This spec file validates:
# * The atom-linter method used by linter-mypy.
# * Make sure that over time the behavior is as expected.
#
# If it fails:
# * Validate everywhere in the code where the problematic method is used and validate that linter-mypy still works.
{CompositeDisposable} ... | Add spec to validate invalid executable error message | Add spec to validate invalid executable error message
| CoffeeScript | mit | elarivie/linter-mypy | |
381839884134f1931a3ab65f840cce12bb442e80 | src/mobile/apps/artwork/components/meta_data/view.coffee | src/mobile/apps/artwork/components/meta_data/view.coffee | Backbone = require 'backbone'
{ acquireArtwork } = require('../../../../components/acquire/view.coffee')
module.exports = class MetaDataView extends Backbone.View
events:
'click #artwork-page-edition-sets input[type=radio]': 'addEditionToOrder'
'click .js-purchase': 'buy'
initialize: ->
@editionSetId... | Backbone = require 'backbone'
CurrentUser = require '../../../../models/current_user.coffee'
{ createOrder } = require '../../../../../lib/components/create_order'
{ acquireArtwork } = require('../../../../components/acquire/view.coffee')
module.exports = class MetaDataView extends Backbone.View
events:
'click ... | Update mobile logic to use new buy flow if lab feature enabled | Update mobile logic to use new buy flow if lab feature enabled
| CoffeeScript | mit | oxaudo/force,oxaudo/force,yuki24/force,yuki24/force,cavvia/force-1,artsy/force,joeyAghion/force,joeyAghion/force,oxaudo/force,joeyAghion/force,anandaroop/force,artsy/force-public,erikdstock/force,damassi/force,eessex/force,erikdstock/force,erikdstock/force,joeyAghion/force,erikdstock/force,eessex/force,mzikherman/force... |
877c45487bc5cdfa0a4f18a26b7a9557297a351a | test/unit/bin.coffee | test/unit/bin.coffee | chai = require('chai')
sinon = require("sinon")
sinonChai = require("sinon-chai")
chai.should()
chai.use(sinonChai)
Pioneer = require("../../lib/pioneer.js")
describe "Pioneer Kickoff File", ->
describe "isVersionRequested()", ->
it "should return true when --version is pas... | Add test coverage for kickoff class | Add test coverage for kickoff class
| CoffeeScript | mit | mojotech/pioneer,bluespeckfinancial/pioneer,mojotech/pioneer,mojotech/pioneer,mAiNiNfEcTiOn/pioneer,bruz/pioneer,bluespeckfinancial/pioneer,bruz/pioneer,bluespeckfinancial/pioneer,bruz/pioneer,mAiNiNfEcTiOn/pioneer,mAiNiNfEcTiOn/pioneer | |
4a1fb1678f1353b9372b8677e26523695580be27 | app/assets/javascripts/main_form.js.coffee | app/assets/javascripts/main_form.js.coffee | if window.location.pathname.match(/\/apply$/)
$ ->
changeSection = ->
hash = window.location.hash
sectionId = hash.substring 1
$('.section').each ()->
section = $ @
if section.attr('id') is sectionId
section.toggleClass 'hide', false
else
section.togg... | changeSection = ->
hash = window.location.hash
sectionId = hash.substring 1
$('.section').each ()->
section = $ @
if section.attr('id') is sectionId
section.toggleClass 'hide', false
else
section.toggleClass 'hide', true
$('.wizard-nav a').each ()->
link = $ @
parent = link.paren... | Move main_form function definitions out of nesting | Move main_form function definitions out of nesting
| CoffeeScript | mit | uncompiled/districthousing,MetricMike/districthousing,dmjurg/districthousing,meiao/districthousing,dmjurg/districthousing,meiao/districthousing,adelevie/districthousing,uncompiled/districthousing,dmjurg/districthousing,dclegalhackers/districthousing,codefordc/districthousing,jrunningen/districthousing,dclegalhackers/di... |
1e46c34e9e31450385ac1f5f8b277eb339c91d08 | projects.cson | projects.cson | [
{
title: "Lloyd Flanagan Word Count"
group: "Atom"
paths: [
"/home/aflanagan/Devel/atom/lloyd-flanagan-word-count"
]
devMode: true
}
{
title: "Atom Configuration"
group: "Atom"
paths: [
"/home/aflanagan/Devel/atom/atom_configuration"
]
}
{
title: "Atom Utl... | Add porojects, will need customizing | Add porojects, will need customizing
| CoffeeScript | agpl-3.0 | alflanagan/atom_configuration,alflanagan/atom_configuration,alflanagan/atom_configuration | |
fbfe734deb906e21ad659eed8182f2a595a168e6 | spec/buffer-modifying-provider-spec.coffee | spec/buffer-modifying-provider-spec.coffee | describe 'buffer modifying linters', ->
getModuleMain = -> atom.packages.getActivePackage('linter').mainModule.instance
beforeEach ->
waitsForPromise ->
atom.packages.activatePackage('status-bar')
.catch (err)->
console.log err
waitsForPromise ->
atom.packages.activatePackage('lint... | Add a buffer modifying linter spec | :new: Add a buffer modifying linter spec
| CoffeeScript | mit | Arcanemagus/linter,AtomLinter/Linter,shawninder/linter,steelbrain/linter,e-jigsaw/Linter,atom-community/linter,mdgriffith/linter,AsaAyers/linter,levity/linter,DanPurdy/linter,elkeis/linter,kaeluka/linter,blakeembrey/linter,UltCombo/linter,JohnMurga/linter,iam4x/linter | |
4e3934917220e43085b0693b7d9f1971336570de | client/skr/components/SalesOrderFinder.cjsx | client/skr/components/SalesOrderFinder.cjsx | class Skr.Components.SalesOrderFinder extends Lanes.React.Component
propTypes:
onModelSet: React.PropTypes.func
commands: React.PropTypes.object
dataObjects:
sales_order: ->
@props.sales_order || new Skr.Models.SalesOrder
query: ->
new Lanes.Models.Quer... | Split code for finding sales orders into component | Split code for finding sales orders into component
| CoffeeScript | agpl-3.0 | argosity/stockor,argosity/stockor,argosity/stockor,argosity/stockor | |
8b9ed9df5f47a75dcaf8c40573a06ad1ede99bd6 | packages/rocketchat-lib/lib/startup/settingsOnLoadSiteUrl.coffee | packages/rocketchat-lib/lib/startup/settingsOnLoadSiteUrl.coffee | RocketChat.settings.onload 'Site_Url', (key, value, initialLoad) ->
if value?.trim() isnt ''
__meteor_runtime_config__.ROOT_URL = value
if Meteor.absoluteUrl.defaultOptions?.rootUrl?
Meteor.absoluteUrl.defaultOptions.rootUrl = value
| RocketChat.settings.get 'Site_Url', (key, value) ->
if value?.trim() isnt ''
__meteor_runtime_config__.ROOT_URL = value
if Meteor.absoluteUrl.defaultOptions?.rootUrl?
Meteor.absoluteUrl.defaultOptions.rootUrl = value
| Fix root url on server side | Fix root url on server side
| CoffeeScript | mit | mwharrison/Rocket.Chat,k0nsl/Rocket.Chat,Movile/Rocket.Chat,nishimaki10/Rocket.Chat,mwharrison/Rocket.Chat,Sing-Li/Rocket.Chat,pitamar/Rocket.Chat,trt15-ssci-organization/Rocket.Chat,fduraibi/Rocket.Chat,ziedmahdi/Rocket.Chat,ealbers/Rocket.Chat,matthewshirley/Rocket.Chat,snaiperskaya96/Rocket.Chat,amaapp/ama,mwharriso... |
a6b7c2c4051db28164342b73c7ea14878cf78896 | keymaps/git-plus.cson | keymaps/git-plus.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... | Add key bindings for frequently used commands. | Add key bindings for frequently used commands.
| CoffeeScript | mit | akonwi/git-plus,akonwi/git-plus | |
a3b5a3a298e99fda22daa039cd875ac67e5741f9 | spec/linter-indie-api.coffee | spec/linter-indie-api.coffee | describe 'Linter Indie API', ->
linter = null
{wait} = require('./common')
Remote = require('remote')
beforeEach ->
global.setTimeout = Remote.getGlobal('setTimeout')
global.setInterval = Remote.getGlobal('setInterval')
waitsForPromise ->
atom.packages.activate('linter').then ->
lint... | Add linter indie API usage spec | :new: Add linter indie API usage spec
| CoffeeScript | mit | AtomLinter/Linter,atom-community/linter,Arcanemagus/linter,e-jigsaw/Linter,steelbrain/linter | |
e5c584b5e7a72a191d8456ad7efc80003416b2fb | app/assets/javascripts/backbone/views/chatbox.js.coffee | app/assets/javascripts/backbone/views/chatbox.js.coffee | class Kandan.Views.Chatbox extends Backbone.View
template: JST['chatbox']
tagName: 'div'
className: 'chatbox'
events:
"keypress .chat-input": 'postMessageOnEnter'
"click .post" : 'postMessage'
postMessageOnEnter: (event)->
if event.keyCode == 13
@postMessage(event)
even... | class Kandan.Views.Chatbox extends Backbone.View
template: JST['chatbox']
tagName: 'div'
className: 'chatbox'
events:
"keypress .chat-input": 'postMessageOnEnter'
"click .post" : 'postMessage'
postMessageOnEnter: (event)->
if event.keyCode == 13
@postMessage(event)
even... | Fix message sender pastie link | Fix message sender pastie link
| CoffeeScript | agpl-3.0 | cloudstead/kandan,kandanapp/kandan,yfix/kandan,sai43/kandan,kandanapp/kandan,codefellows/kandan,sai43/kandan,cloudstead/kandan,kandanapp/kandan,yfix/kandan,Stackato-Apps/kandan,ipmobiletech/kandan,dz0ny/kandan,ych06/kandan,sai43/kandan,dz0ny/kandan,sai43/kandan,moss-zc/kandan,leohmoraes/kandan,miurahr/kandan,ych06/kand... |
bd68f8a330df8fae48b62effb26914d89e993fbc | app/assets/javascripts/users.js.coffee | app/assets/javascripts/users.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/
jQuery ->
$('#user_area_tokens').tokenInput '/areas.json'
theme: 'facebook'
prePo... | Initialize user's area tokens field with data | Initialize user's area tokens field with data
| CoffeeScript | mit | volontariat/volontari.at,volontariat/volontari.at,volontariat/volontari.at,volontariat/volontari.at | |
c6334ffab719d7120e175c4bb3a8341a203a95f4 | services/web/public/coffee/filters/wrapLongWords.coffee | services/web/public/coffee/filters/wrapLongWords.coffee | define [
"base"
], (App) ->
DEF_MIN_LENGTH = 20
_getWrappedWordsString = (baseStr, wrapperElName, minLength) ->
minLength = minLength || DEF_MIN_LENGTH
findWordsRegEx = new RegExp "\\w{#{minLength},}", "g"
wrappingTemplate = "<#{wrapperElName} style='word-break: break-all;'>$&</#{wrapperElName}>"
baseStr.... | Add Angular filter for wrapping words larger than N characters. | Add Angular filter for wrapping words larger than N characters.
| CoffeeScript | agpl-3.0 | sharelatex/sharelatex | |
aff1f9c05eeeb523394b5744d66b7e8e4f6a460b | client/app/models/settings.coffee | client/app/models/settings.coffee | module.exports = class Settings extends Backbone.Model
urlRoot: 'settings'
# Make sure that put requests doesn't add id to the url.
sync: (method, model, options) ->
options.url ='settings'
return Backbone.sync method, model, options
| Add Settings model on client side | Add Settings model on client side
| CoffeeScript | agpl-3.0 | cozy/cozy-calendar,cozy/cozy-calendar | |
6f078d5c7cbe97c8dc1613ba4ecf47d9589421d9 | lib/move-dialog.coffee | lib/move-dialog.coffee | path = require 'path'
{fs} = require 'atom'
Dialog = require './dialog'
module.exports =
class MoveDialog extends Dialog
constructor: (@initialPath) ->
if fs.isDirectorySync(@initialPath)
prompt = 'Enter the new path for the directory.'
else
prompt = 'Enter the new path for the file.'
supe... | path = require 'path'
{fs} = require 'atom'
Dialog = require './dialog'
module.exports =
class MoveDialog extends Dialog
constructor: (@initialPath) ->
if fs.isDirectorySync(@initialPath)
prompt = 'Enter the new path for the directory.'
else
prompt = 'Enter the new path for the file.'
supe... | Allow changing of filename on a case insensitive fs | Allow changing of filename on a case insensitive fs
Closes atom/atom#1359
| CoffeeScript | mit | laituan245/tree-view,thgaskell/tree-view,pombredanne/tree-view-1,ayumi/tree-view,matthewbauer/tree-view,jarig/tree-view,tomekwi/tree-view,Galactix/tree-view,cgrabowski/webgl-studio-tree-view,rajendrant/tree-view-remote,benjaminRomano/tree-view,learn-co/learn-ide-tree,jasonhinkle/tree-view,samu/tree-view,tbryant/tree-vi... |
d6497b37ac8d5bc34542d549c515ca70591824b2 | app/assets/javascripts/backbone/views/home_view.js.coffee | app/assets/javascripts/backbone/views/home_view.js.coffee | ProjectMonitor.Views ||= {}
class ProjectMonitor.Views.HomeView extends Backbone.View
tagName: "ol"
className: "projects"
template: JST["backbone/templates/home"]
initialize: (options) ->
@_addTileView(tile) for tile in @collection.models
@collection.on 'reset', =>
for cid,view of @subViews
... | ProjectMonitor.Views ||= {}
class ProjectMonitor.Views.HomeView extends Backbone.View
tagName: "ol"
className: "projects"
template: JST["backbone/templates/home"]
initialize: (options) ->
@_addTileView(tile) for tile in @collection.models
@collection.on 'reset', =>
@.tearDownRegisteredSubViews(... | Use coccyx subview tear down helper | Use coccyx subview tear down helper
| CoffeeScript | mit | genebygene/projectmonitor,genebygene/projectmonitor,dgodd/projectmonitor,mabounassif/projectmonitor-docker,pivotal/projectmonitor,BuildingSync/projectmonitor,dgodd/projectmonitor,dgodd/projectmonitor,remind101/projectmonitor,BuildingSync/projectmonitor,dgodd/projectmonitor,mabounassif/projectmonitor-docker,BuildingSync... |
e9c25458c97e8d3c4aa94803838d7f1f9ddbc228 | src/scripts/thanks-obama.coffee | src/scripts/thanks-obama.coffee | # Description
# Blames Obama for everything that's bad in your life.
#
# Dependencies:
# "cheerio": "0.10.7",
# "request": "2.14.0"
#
# Configuration:
# None
#
# Commands:
# thanks obama - A random image from http://thanks-obama.tumblr.com
#
# Notes:
# It would be nice if we could load a larger sample of im... | # Description
# Blames Obama for everything that's bad in your life.
#
# Dependencies:
# "cheerio": "0.10.7",
# "request": "2.14.0"
#
# Configuration:
# None
#
# Commands:
# thanks obama - A random image from http://thanks-obama.tumblr.com
#
# Notes:
# It would be nice if we could load a larger sample of im... | Expand the "Thanks Obama" responses | Expand the "Thanks Obama" responses
Pick randomly from the 8 available pages on the thanks-obama site.
Then pick a random image off that page.
| CoffeeScript | mit | chauffer/hubot-scripts,cycomachead/hubot-scripts,dbkaplun/hubot-scripts,zecahnin/hubot-scripts,davidsulpy/hubot-scripts,yigitbey/hubot-scripts,jacobtomlinson/hubot-scripts,1000hz/hubot-scripts,justinwoo/hubot-scripts,modulexcite/hubot-scripts,jan0sch/hubot-scripts,ericjsilva/hubot-scripts,ambikads/hubot-scripts,sklise/... |
444052382f0bdf773840c37ad93a7c2501219eee | lib/fuzzy-finder.coffee | lib/fuzzy-finder.coffee | _ = require 'underscore'
module.exports =
projectPaths: null
fuzzyFinderView: null
loadPathsTask: null
activate: (state) ->
rootView.command 'fuzzy-finder:toggle-file-finder', =>
@createView().toggleFileFinder()
rootView.command 'fuzzy-finder:toggle-buffer-finder', =>
@createView().toggleB... | _ = require 'underscore'
module.exports =
projectPaths: null
fuzzyFinderView: null
loadPathsTask: null
activate: (state) ->
rootView.command 'fuzzy-finder:toggle-file-finder', =>
@createView().toggleFileFinder()
rootView.command 'fuzzy-finder:toggle-buffer-finder', =>
@createView().toggleB... | Clear project paths after view is created | :non-potable-water: Clear project paths after view is created
This array can be very large and there is no reason to hold onto
it once it is passed on to the view.
| CoffeeScript | mit | nielsAD/fuzzy-finder,Spy-Seth/fuzzy-finder,pombredanne/fuzzy-finder,viddo/fuzzy-finder,gvanderest/fuzzy-finder,segiddins/fuzzy-finder,nielsAD/fuzzy-finder,pombredanne/fuzzy-finder,Kerruba/fuzzy-finder,gvanderest/fuzzy-finder,atom/fuzzy-finder,Spy-Seth/fuzzy-finder,Kerruba/fuzzy-finder,viddo/fuzzy-finder,segiddins/fuzzy... |
962d5f641e4d599610da5f8ddd03d9b8feac9fce | app/assets/javascripts/housing_locations.js.coffee | app/assets/javascripts/housing_locations.js.coffee | $ ->
$('.housing-location-table').DataTable({
dom: "<'row-fluid'<'span6'l><'span6'f>r>t<'row-fluid'<'span6'i><'span6'p>>",
pagingType: "simple_numbers",
"columnDefs": [
{
"orderable": false,
"targets": [5,6,7,8]
},
{
"searchable": false,
"targets": [2,3,4... | $ ->
$('.housing-location-table').DataTable({
dom: "<'row-fluid'<'span6'l><'span6'f>r>t<'row-fluid'<'span6'i><'span6'p>>",
pagingType: "simple_numbers",
"columnDefs": [
{
"orderable": false,
"targets": [2,3,7,8]
},
{
"searchable": false,
"targets": [2,3,4... | Fix HousingForm DataTable column properties | Fix HousingForm DataTable column properties
| CoffeeScript | mit | adelevie/districthousing,adelevie/districthousing,uncompiled/districthousing,uncompiled/districthousing,MetricMike/districthousing,dclegalhackers/districthousing,dmjurg/districthousing,codefordc/districthousing,MetricMike/districthousing,meiao/districthousing,uncompiled/districthousing,jrunningen/districthousing,lankyf... |
4843ba96d360ed59b7b37b8498c629a33c58c834 | app/assets/javascript/the_merger/insert_field.js.coffee | app/assets/javascript/the_merger/insert_field.js.coffee | class window.TheMerger
foobar: ->
alert 'foo'
insert_field: (body) ->
alert body
# start=$(".mail_merge_body").caret().start;
# first_half=$(".mail_merge_body").val().slice(0, start);
# last_half=$(".mail_merge_body").val().slice(start, $(".mail_merge_body").len);
# text = first_half + "[" + $... | Add the insert field coffeescript | Add the insert field coffeescript
| CoffeeScript | mit | map7/the_merger,map7/the_merger | |
ffa5ae2bfb23cd3d7d12e926daf6b3e9ff5e5a62 | test/system-spec.coffee | test/system-spec.coffee | "use strict"
request = require 'supertest'
assert = require 'assert'
app = req = null
before ->
app = module.parent.exports.app
req = request(app)
describe '/CloudHealthCheck', ->
it 'should return status for MongoDB and Redis', (done) ->
key = 'b523ceb5e16fb92b2a999676a87698d1'
req.get('/CloudHe... | Add unit test for GET /CloudHealthCheck | Add unit test for GET /CloudHealthCheck
| CoffeeScript | mit | Turbasen/Turbasen,Turistforeningen/Turbasen | |
edbd29290d49ba34b8a08cca88fbba3d54e5ef85 | lib/load-paths-task.coffee | lib/load-paths-task.coffee | _ = require 'underscore'
BufferedProcess = require 'buffered-process'
$ = require 'jquery'
module.exports =
class LoadPathsTask
aborted: false
constructor: (@callback) ->
start: ->
rootPath = project.getPath()
ignoredNames = config.get('fuzzyFinder.ignoredNames') ? []
ignoredNames = ignoredNames.co... | _ = require 'underscore'
BufferedProcess = require 'buffered-process'
$ = require 'jquery'
module.exports =
class LoadPathsTask
aborted: false
constructor: (@callback) ->
start: ->
rootPath = project.getPath()
ignoredNames = config.get('fuzzyFinder.ignoredNames') ? []
ignoredNames = ignoredNames.co... | Kill process when task is aborted | Kill process when task is aborted
| CoffeeScript | mit | Spy-Seth/fuzzy-finder,Kerruba/fuzzy-finder,Spy-Seth/fuzzy-finder,segiddins/fuzzy-finder,viddo/fuzzy-finder,viddo/fuzzy-finder,pombredanne/fuzzy-finder,atom/fuzzy-finder,Kerruba/fuzzy-finder,nielsAD/fuzzy-finder,toshi-saito/fuzzy-finder,gvanderest/fuzzy-finder,pombredanne/fuzzy-finder,nielsAD/fuzzy-finder,gvanderest/fuz... |
e53f91f7a2cce9055f4603591587ccc78039abf1 | src/scripts/lolz.coffee | src/scripts/lolz.coffee | # lulz - BRING THE LOLZ from bukk.it
Select = require("soupselect").select
HtmlParser = require "htmlparser"
util = require 'util'
module.exports = (robot) ->
robot.respond /l[ou]lz/i, (msg) ->
msg.http("http://bukk.it")
.get() (err, res, body) ->
handler = new HtmlParser.DefaultHandler()
... | # lulz - BRING THE LOLZ from bukk.it
Select = require("soupselect").select
HtmlParser = require "htmlparser"
module.exports = (robot) ->
robot.respond /.*l[ou]lz/i, (msg) ->
msg.http("http://bukk.it")
.get() (err, res, body) ->
handler = new HtmlParser.DefaultHandler()
parser = new Ht... | Allow any comment about l[ou]lz | Allow any comment about l[ou]lz
| CoffeeScript | mit | DataDog/hubot-scripts,Tyriont/hubot-scripts,chauffer/hubot-scripts,n0mer/hubot-scripts,iilab/hubot-scripts,ambikads/hubot-scripts,DataDog/hubot-scripts,azimman/hubot-scripts,dhfromkorea/hubot-scripts,bruno/hubot-scripts,1000hz/hubot-scripts,1stdibs/hubot-scripts,ericjsilva/hubot-scripts,arcaartem/hubot-scripts,zecahnin... |
2de8ebd32e56bb690bd8596fcadd69d75365d613 | spec/Graph.coffee | spec/Graph.coffee | {expect} = require 'chai'
graph = require '../src/lib/Graph.coffee'
describe 'Graph instance', ->
g = null
it 'should have no nodes initially', ->
g = new graph.Graph
expect(g.nodes.length).to.equal 0
| Prepare for using Mocha for cross-platform testing | Prepare for using Mocha for cross-platform testing
| CoffeeScript | mit | lxfschr/noflo,trustmaster/noflo,lxfschr/noflo,saurabhsood91/noflo,trustmaster/noflo,npmcomponent/noflo-noflo,jonnor/noflo,saurabhsood91/noflo,noflo/noflo,jonnor/noflo | |
9d9e33161309c3127ba89726a6deb67b6c835501 | app/assets/javascripts/views/auto-save-checkbox.coffee | app/assets/javascripts/views/auto-save-checkbox.coffee | Dashboard.AutoSaveCheckboxView = Ember.View.extend
template: Ember.Handlebars.compile("{{input type='checkbox' checked=view.attr}}")
tagName: 'span'
attributeBindings: [
'attr'
'resource'
]
didInsertElement: ->
self = this
@$('input').on 'change', ->
self.set('attr', $(this).is(':check... | Create view to auto save a checkbox | Create view to auto save a checkbox
| CoffeeScript | mit | FromUte/dune-dashboard,FromUte/dune-dashboard,FromUte/dune-dashboard | |
f01d006e251b649e4d794b63e8262a0377ae848d | tasks/publish-packages.coffee | tasks/publish-packages.coffee | async = require 'async'
request = require 'request'
# Configure and publish all packages in package.json to atom.io
#
# This task should be run whenever you want to be sure that atom.io contains
# all the packages and versions referenced in Atom's package.json file.
module.exports = (grunt) ->
baseUrl = "https://git... | Add task to publish packages | Add task to publish packages
| CoffeeScript | mit | tisu2tisu/atom,yangchenghu/atom,tmunro/atom,synaptek/atom,synaptek/atom,qskycolor/atom,ilovezy/atom,Klozz/atom,hellendag/atom,Jonekee/atom,t9md/atom,woss/atom,wiggzz/atom,yomybaby/atom,mertkahyaoglu/atom,NunoEdgarGub1/atom,RobinTec/atom,svanharmelen/atom,GHackAnonymous/atom,FoldingText/atom,NunoEdgarGub1/atom,champagne... | |
27fbde8743e2db0ca38bf98e64288f4a1b788193 | scripts/pjc.coffee | scripts/pjc.coffee | module.exports = (robot) ->
lulz = ['lol', 'rofl', 'lmao']
robot.respond /lulz/i, (res) ->
res.send res.random lulz
robot.listenerMiddleware (context, next, done) ->
# console.log context.response.message
if context.response.message.text == 'pjcbot help'
context.response.send context.response.... | Disable built-in help for the lulz | Disable built-in help for the lulz | CoffeeScript | mit | pjcabrera/pjc-hubot | |
2e248ed14ab56b66cec079b5cef79f10c439abeb | spec/viewCacheSpec.coffee | spec/viewCacheSpec.coffee | describe "Marowak.ViewCache", ->
beforeEach ->
@cache = new Marowak.ViewCache
@view = new Backbone.View
@cid = 1
@cache.add @cid, @view
describe "#fetch", ->
it 'retrieves a view by a corresponding id', ->
expect(@cache.fetch(@cid)).toBe @view
describe "#remove", ->
it 'deletes a ... | Write test coverage for ViewCache | Write test coverage for ViewCache
| CoffeeScript | mit | acumenbrands/marowak,acumenbrands/marowak | |
68fd13f58934add7e4b91b6096de66a0dd9b0bf3 | client/test/src/indicator_model.coffee | client/test/src/indicator_model.coffee | suite('Indicator Model')
test('when initialised with no section attribute, it creates and empty section collection', ->
indicator = new Backbone.Models.Indicator(section: null)
assert.strictEqual indicator.get('sections').constructor.name, 'SectionCollection'
)
test('when initialised with sections attributes,
... | Add expected section relationship behavior of indicators | Add expected section relationship behavior of indicators
| CoffeeScript | bsd-3-clause | unepwcmc/NRT,unepwcmc/NRT | |
336d000db44b23210065f87a4c86f8d9287d3190 | menus/debugger-ui-default.cson | menus/debugger-ui-default.cson | 'context-menu':
'atom-text-editor': [
{
label: 'Debug'
submenu: [
{label: 'Toggle Breakpoint', command: 'debugger:toggle-breakpoint-at-current-line'}
]
}
]
| Add context menu entry for setting a breakpoint | Add context menu entry for setting a breakpoint
| CoffeeScript | mit | AtomDebugger/debugger-ui-default | |
aa356690f50b5111230fae18e3c2911397b47cae | src/vars/index.coffee | src/vars/index.coffee | ###*
# @overview This module loads default variables in to the Stout UI variable
# system which can shared compiled variables between SASS and JavaScript with
# support for extension.
# @module vars/default
###
err = require 'stout-core/err'
reduce = require 'lodash/reduce'
variables = {}
###*
# Parses the passed... | Add simple variable default and retrieve module. | Add simple variable default and retrieve module.
| CoffeeScript | agpl-3.0 | JoshuaToenyes/stout-ui,JoshuaToenyes/stout-ui,JoshuaToenyes/stout-ui | |
93c8917460a878a068d05638a5d380f0d9e3d8e4 | spec/minimap-model-spec.coffee | spec/minimap-model-spec.coffee |
describe 'MinimapModel', ->
[workspaceElement, editor, editorView] = []
beforeEach ->
waitsForPromise ->
atom.workspace.open('sample.js')
runs ->
workspaceElement = atom.views.getView(atom.workspace)
jasmine.attachToDOM(workspaceElement)
atom.config.set 'minimap.autoToggle', false... | Add stub for model tests | :construction: Add stub for model tests
| CoffeeScript | mit | atom-minimap/minimap,xndcn/atom-minimap | |
71adb7400d446236d1f14e7c0f5c5e9a94895d38 | menus/command-palette.cson | menus/command-palette.cson | 'menu': [
{
'label': 'View'
'submenu': [
{
'label': 'Toggle Command Palette'
'command': 'command-palette:toggle'
}
]
}
{
'label': 'Packages'
'submenu': [
{
'label': 'Command Palette',
'submenu': [
{
'label': 'Toggle'
... | Add menu to toggle command palette | Add menu to toggle command palette
Closes atom/atom#1339
| CoffeeScript | mit | atom/command-palette | |
1afa02cdd121e0cc9d332d3193bc1da510b9acbd | base/assets/javascripts/tumblr.coffee | base/assets/javascripts/tumblr.coffee | Tumblr = Tumblr or {}
Tumblr.RecentPosts = (el, postsCount) ->
apiUrl = "http://blog.hello-base.com/api/read/json?callback=?&filter=text&num=" + (postsCount or 10)
titleTypes =
regular: "regular-title"
link: "link-text"
quote: "quote-source"
photo: "photo-caption"
conversation: "conversation-tit... | Add some Coffeescript to fetch our latest Tumblr blog post. | Add some Coffeescript to fetch our latest Tumblr blog post.
| CoffeeScript | apache-2.0 | hello-base/web,hello-base/web,hello-base/web,hello-base/web | |
e7c7ed547bf2088916e8e069ff674bc955310e6b | components/ResizeBuffer-node.coffee | components/ResizeBuffer-node.coffee | noflo = require 'noflo'
sharp = require 'sharp'
Canvas = require('noflo-canvas').canvas
# @runtime noflo-nodejs
# @name ResizeBuffer
exports.getComponent = ->
c = new noflo.Component
c.icon = 'expand'
c.description = 'Resize a given image buffer to a new dimension'
c.inPorts.add 'buffer',
datatype: 'obj... | Add component to resize buffers | Add component to resize buffers
| CoffeeScript | mit | noflo/noflo-sharp | |
d53aff1745bf1124ff823c850b95cf2e10dc2e9a | lib/messages.coffee | lib/messages.coffee |
class MessageRegistry
constructor: (@linter)->
@messages = new Map()
set: (linter, messages) ->
@classifyMessages(messages)
@messages.set(linter, messages)
delete: (linter) ->
@messages.delete(linter)
get: ->
@messages
classifyMessages: (messages)->
isProject = @linter.state.scop... | Add basic Message Registry class | :new: Add basic Message Registry class
| CoffeeScript | mit | levity/linter,mdgriffith/linter,DanPurdy/linter,kaeluka/linter,atom-community/linter,shawninder/linter,UltCombo/linter,AtomLinter/Linter,e-jigsaw/Linter,elkeis/linter,JohnMurga/linter,steelbrain/linter,AsaAyers/linter,Arcanemagus/linter,blakeembrey/linter,iam4x/linter | |
1f7118ca936e22b93fa29cc1c85e41d6d3a40a33 | scripts/pr-status.coffee | scripts/pr-status.coffee | # Description:
# Get the CI status reported to GitHub for a repo and pull request
#
# Dependencies:
# "githubot": "0.4.x"
#
# Configuration:
# HUBOT_GITHUB_TOKEN
# HUBOT_GITHUB_USER
# HUBOT_GITHUB_API
#
# Commands:
# hubot repo show <repo> - shows activity of repository
#
# Notes:
# HUBOT_GITHUB_API allow... | Add the ability to query status for a PR | Add the ability to query status for a PR
Example:
`hubot status jekyll/jekyll 2001` will give you back
```
https://github.com/jekyll/jekyll/pull/2001 - error - The Travis CI build could not complete due to an error
```
| CoffeeScript | mit | octopress/octobopper,jekyll/hyde | |
798c9490b523529c1c90b9d119783b4817c75480 | spec/messages-spec.coffee | spec/messages-spec.coffee | describe 'message-registry', ->
MessageRegistry = require('../lib/messages')
EditorLinter = require('../lib/editor-linter')
LinterRegistry = require('../lib/linter-registry')
getLinterRegistry = ->
linterRegistry = new LinterRegistry
editorLinter = new EditorLinter(atom.workspace.getActiveTextEditor())
... | Add specs for Message Registry | :new: Add specs for Message Registry
| CoffeeScript | mit | mdgriffith/linter,levity/linter,e-jigsaw/Linter,AtomLinter/Linter,atom-community/linter,blakeembrey/linter,elkeis/linter,JohnMurga/linter,DanPurdy/linter,shawninder/linter,steelbrain/linter,UltCombo/linter,kaeluka/linter,AsaAyers/linter,Arcanemagus/linter | |
92a38587a867f638e4e2687fdcc00e4d5bc008a4 | app/assets/javascripts/components/moving_records/charts.js.coffee | app/assets/javascripts/components/moving_records/charts.js.coffee | # # https://github.com/jhudson8/react-chartjs/blob/master/dist/react-chartjs.js
## Example
# PieChart = CustomChart.Pie
# MyComponent = React.createClass
# render: ->
# React.createElement PieChart
# data: chartData
# options: chartOptions
@CustomChart = (chartType) ->
console.log chartType
c... | Add indementent chart component draft | Add indementent chart component draft
| CoffeeScript | mit | mnishiguchi/moving_estimator,mnishiguchi/moving_estimator,mnishiguchi/moving_estimator | |
be716def010751e729bd54b179ce7d1d39e9855c | src/lib/dbc/entities/area-table.coffee | src/lib/dbc/entities/area-table.coffee | r = require('restructure')
Entity = require('../entity')
LocalizedStringRef = require('../localized-string-ref')
module.exports = Entity(
id: r.uint32le
mapID: r.uint32le
parentID: r.uint32le
areaBit: r.uint32le
flags: r.uint32le
soundPreferenceID: r.uint32le
underwaterSoundPreferenceID: r.uint32le
so... | Include source file for AreaTable entity | Include source file for AreaTable entity
| CoffeeScript | mit | fallenoak/blizzardry,timkurvers/blizzardry,wowserhq/blizzardry | |
b489223c5b48b3c761d95542da91dceeddf2077a | src/daemon/app/env.coffee | src/daemon/app/env.coffee | fs = require 'fs'
p = require 'path'
minimatch = require 'minimatch'
clone = require 'clone'
util = require './util'
config = require '../config'
module.exports =
read: (path) ->
fs.readFileSync(path)
.toString()
.trim()
find: (path, version) ->
try
util.log path, "Looking for #{version... | fs = require 'fs'
p = require 'path'
minimatch = require 'minimatch'
clone = require 'clone'
util = require './util'
config = require '../config'
module.exports =
read: (path) ->
fs.readFileSync(path)
.toString()
.trim()
find: (path, version) ->
try
util.log path, "Looking for #{version... | Add error message if node version not found | Add error message if node version not found
| CoffeeScript | mit | typicode/katon,typicode/katon,twindagger/katon,typicode/katon,twindagger/katon,nooks/katon,twindagger/katon,nooks/katon,nooks/katon |
005344f8d1cd5087816f3e832bdae774d53d713d | spec/rubocop-auto-correct-spec.coffee | spec/rubocop-auto-correct-spec.coffee | RubocopAutoCorrect = require '../lib/rubocop-auto-correct'
describe "RubocopAutoCorrect", ->
beforeEach ->
atom.config.set('rubocop-auto-correct.autoRun', false)
it "toggle auto run", ->
@rubocopAutoCorrect = new RubocopAutoCorrect
expect(atom.config.get('rubocop-auto-correct').autoRun).toBe false
... | Add spec toggle auto run | Add spec toggle auto run
| CoffeeScript | mit | tomoya/rubocop-auto-correct | |
92a3d69403654c3162310e2b14e47e1b8cc5fa47 | src/app/api/models/rollover-unit.coffee | src/app/api/models/rollover-unit.coffee | angular.module("doubtfire.api.models.rollover-unit", [])
.factory("RolloverUnit", (resourcePlus, api, currentUser) ->
DuplicatedUnit = resourcePlus "/units/:id/rollover", { id: "@id" }
return DuplicatedUnit
)
| Add rollover API call to models | NEW: Add rollover API call to models
| CoffeeScript | agpl-3.0 | doubtfire-lms/doubtfire-web,doubtfire-lms/doubtfire-web,doubtfire-lms/doubtfire-web,doubtfire-lms/doubtfire-web | |
fc0558df0e7cdb16fa55e81c81dabe34b3311fc2 | components/commercial_filter/filters/category/category_filter_view.coffee | components/commercial_filter/filters/category/category_filter_view.coffee | Backbone = require 'backbone'
template = -> require('./index.jade') arguments...
module.exports = class CategoryFilterView extends Backbone.View
events:
'click .cf-categories__category' : 'toggleCategory'
initialize: ({ @params, @aggregations, @categoryMap }) ->
throw new Error "Requires a params model" ... | Backbone = require 'backbone'
template = -> require('./index.jade') arguments...
module.exports = class CategoryFilterView extends Backbone.View
events:
'click .cf-categories__category' : 'toggleCategory'
initialize: ({ @params, @aggregations, @categoryMap }) ->
throw new Error "Requires a params model" ... | Hide and unset categories when filtering by followed artists | Hide and unset categories when filtering by followed artists
| CoffeeScript | mit | oxaudo/force,izakp/force,izakp/force,artsy/force,mzikherman/force,cavvia/force-1,dblock/force,oxaudo/force,yuki24/force,yuki24/force,xtina-starr/force,anandaroop/force,artsy/force-public,oxaudo/force,anandaroop/force,erikdstock/force,artsy/force,erikdstock/force,kanaabe/force,dblock/force,kanaabe/force,mzikherman/force... |
ead89d2404a7d459cf66270bbb423efbee11c50a | script/list-options-and-languages.coffee | script/list-options-and-languages.coffee | jsonStringify = require('json-stable-stringify')
Languages = require('../src/languages')
languages = new Languages().languages
# console.log(languages.length)
_ = require('lodash')
# options = _.chain(languages)
# .map((lang) -> return lang.options or [])
# .flatten()
# .reduce((resu... | Add helper script for extracting list of options and languages | Add helper script for extracting list of options and languages
| CoffeeScript | mit | prettydiff/atom-beautify,Glavin001/atom-beautify,Glavin001/atom-beautify,Glavin001/atom-beautify,Glavin001/atom-beautify,prettydiff/atom-beautify,prettydiff/atom-beautify,Glavin001/atom-beautify,prettydiff/atom-beautify | |
40f3f702117b74bc4480ba8932b8379ff77af635 | core/htdocs_source/src/pods/oxisection-main/component.coffee | core/htdocs_source/src/pods/oxisection-main/component.coffee | `import Em from "vendor/ember"`
Component = Em.Component.extend
type: Em.computed "content.type", -> "oxisection-" + @get "content.type"
actions:
buttonClick: (button) ->
Em.set button, "loading", true
if button.action
@container.lookup("route:openxpki").sendAjax... | `import Em from "vendor/ember"`
Component = Em.Component.extend
classNameBindings: ["type"]
type: Em.computed "content.type", -> "oxisection-" + @get "content.type"
actions:
buttonClick: (button) ->
Em.set button, "loading", true
if button.action
@container... | Add class on main section. | Add class on main section.
| CoffeeScript | apache-2.0 | aleibl/openxpki,oliwel/openxpki,oliwel/openxpki,oliwel/openxpki,stefanomarty/openxpki,stefanomarty/openxpki,aleibl/openxpki,openxpki/openxpki,aleibl/openxpki,stefanomarty/openxpki,stefanomarty/openxpki,stefanomarty/openxpki,aleibl/openxpki,oliwel/openxpki,oliwel/openxpki,oliwel/openxpki,openxpki/openxpki,stefanomarty/o... |
49c2c5df3915ac4b1020fe402acc1356b7fa73b4 | Framework/Views/Controls/ImageButton_Framework_Android.coffee | Framework/Views/Controls/ImageButton_Framework_Android.coffee | root.ImageButton_Framework_Android = class ImageButton_Framework_Android extends root.ImageButton_Framework
constructor:(options = {}) ->
options = root._.extend {}, options
super options
createBackButton: (settings) =>
createButton: (settings) =>
@button = Ti.UI.createView {
height: ... | Update to imageButton for android | Update to imageButton for android
| CoffeeScript | mit | GavinJoyce/TitaniumAppFramework | |
3cfe386f4074176f396e2cfea226aa282d83ee54 | backend/spec/javascripts/comable/admin/order_item_builder_spec.coffee | backend/spec/javascripts/comable/admin/order_item_builder_spec.coffee | #= require jquery
#= require jasmine-jquery
#= require comable/admin/order_item_builder
describe 'OrderItemBuilder', ->
described_class = null
subject = null
beforeEach ->
described_class = OrderItemBuilder
subject = described_class.prototype
describe '#fillOrderItem', ->
variant = {
id: 1
... | Add the test cases for OrderItemBuilder.coffee | Add the test cases for OrderItemBuilder.coffee
| CoffeeScript | mit | appirits/comable,hyoshida/comable,appirits/comable,appirits/comable,hyoshida/comable,hyoshida/comable | |
55191f460829484edb4f7899255a18125490419f | server/models/requests.coffee | server/models/requests.coffee | cozydb = require 'cozydb'
tagsView =
map: (doc) ->
doc.tags?.forEach? (tag, index) ->
type = if index is 0 then 'calendar' else 'tag'
emit [type, tag], true
reduce: "_count"
module.exports =
tag:
byName : cozydb.defaultRequests.by 'name'
alarm:
a... | cozydb = require 'cozydb'
tagsView =
map: (doc) ->
doc.tags?.forEach? (tag, index) ->
type = if index is 0 then 'calendar' else 'tag'
emit [type, tag], true
reduce: "_count"
module.exports =
tag:
byName : cozydb.defaultRequests.by 'name'
alarm:
a... | Add a request to get all recurring events | Add a request to get all recurring events
| CoffeeScript | agpl-3.0 | nono/cozy-calendar,frankrousseau/cozy-calendar,nono/cozy-calendar,cozy/cozy-calendar,frankrousseau/cozy-calendar,cozy/cozy-calendar,clochix/cozy-calendar |
4d4d3c2bdc8f07de9e3343e65cd898b16acd2a3d | app/assets/javascripts/projects.js.coffee | app/assets/javascripts/projects.js.coffee | $ ->
projects = $('#projects').clone()
$('#languages a').click (e) ->
language = $(this).data().language
$('#noprojects').hide()
if language?
language = [language] unless $.isArray(language)
$('#languages li')
.addClass('disabled')
.find($.map(language, (l) -> "a[data-lan... | $ ->
projects = $('#projects').clone()
languages = []
$('#languages a').click (e) ->
clicked_language = $(this).data().language
unless clicked_language?
$('#languages li').removeClass('disabled')
$('#projects').html(projects.find('.project'))
projects = $('#projects').clone()
$('... | Enable multi language filter in projects_path | Enable multi language filter in projects_path
To filter more than two language projects_path, use Cmd or Ctrl key
when selecting language.
This behavior is well known in many OS, so people will be want to use
this when filtering multi languages.
| CoffeeScript | mit | vyorkin-forks/24pullrequests,jasnow/24pullrequests5,acrogenesis-lab/24pullrequests,tarebyte/24pullrequests,davefp/24pullrequests,tarebyte/24pullrequests,pimterry/24pullrequests,jasnow/24pullrequests5,jasnow/24pullrequests5,tarebyte/24pullrequests,acrogenesis-lab/24pullrequests,tegon/24pullrequests,wadtech/24pullrequest... |
8e3fbf9b6e28626ac69dcea866871840a4ed85e2 | src/spec/integration/states.spec.coffee | src/spec/integration/states.spec.coffee | _ = require 'underscore'
Q = require 'q'
SphereClient = require '../../lib/client'
Config = require('../../config').config
uniqueId = (prefix) ->
_.uniqueId "#{prefix}#{new Date().getTime()}_"
newState = ->
key: uniqueId 's'
type: 'LineItemState'
updateState = (version) ->
version: version
actions: [
{... | Add integration test for states (create, update, delete) | Add integration test for states (create, update, delete)
| CoffeeScript | mit | panshul007/sphere-node-sdk,sphereio/sphere-node-sdk,sphereio/sphere-node-sdk,panshul007/sphere-node-sdk | |
9e9cece6e2e8ea46f7f860f28d37f2fd6ede1a97 | quests/outputexample/outputexample.coffee | quests/outputexample/outputexample.coffee | Quest = require '../../src/quest'
module.exports =
class OutputExampleQuest extends Quest
adventure: ->
console.log "So, what's a person like?".bold
@sql """
CREATE TEMP TABLE people (
name varchar(256),
birthdate date,
title varchar(256)
);
"""
... | Add example purely for output demonstration | Add example purely for output demonstration
| CoffeeScript | apache-2.0 | scopely/sqlquest | |
43df44948087c07f8ebe9bf531420a4a86ebbf7c | home/.atom/init.coffee | home/.atom/init.coffee | # Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# e... | Disable code folding in Atom | Disable code folding in Atom
| CoffeeScript | mit | fabschurt/dotfiles | |
a7d331702997dcf444db77cce003df59d783632e | test/spec/invoke.spec.coffee | test/spec/invoke.spec.coffee | describe 'Overloadad functions', ->
overloadableFunction = null
spiedFunction = jasmine.createSpy()
describe 'Default function', ->
it 'should throw error when default function isn\'t undefined or a function', ->
func = null
for item in [7, 'foo', true, null, {}... | Test cases for handling default function | Test cases for handling default function
| CoffeeScript | mit | JakubJagoda/Overloadable | |
f1f436cf8e6e6f153315e0f526a5e19c55c27e22 | tasks/download-github-releases-task.coffee | tasks/download-github-releases-task.coffee | fs = require 'fs'
path = require 'path'
os = require 'os'
minimatch = require 'minimatch'
GitHub = require '../lib/github'
module.exports = (grunt) ->
taskName = 'download-github-releases'
grunt.registerTask taskName, 'Download assets from GitHub Releases', ->
done = @async()
config ... | Add grunt task to download release assets. | Add grunt task to download release assets.
| CoffeeScript | mit | atom/node-github-releases | |
875397b360337c49c8f30fde92ff32a2459a7c4e | test/unit/preprocessor.spec.coffee | test/unit/preprocessor.spec.coffee | #==============================================================================
# lib/preprocessor.js module
#==============================================================================
describe 'preprocessor', ->
util = require '../test-util'
mocks = require 'mocks'
m = pp = mockFs = doneSpy = fakePreprocess... | Add some unit tests for preprocessor | Add some unit tests for preprocessor | CoffeeScript | mit | KidkArolis/karma,ryankask/testacular,NimaVaziri/karma,ashtuchkin/testacular,harme199497/karma,xdissent/karma,aiboy/karma,buley/karma,wilkerlucio/karma,maksimr/karma,ajoslin/karma,KevinOrtman/testacular,KrekkieD/karma,viruschidai/karma,rageshkrishna/karma,ernsheong/karma,gdi2290/karma,jbdeboer/karma,machuga/karma,jamest... | |
7a2c43e6fe86e3691fb42d56a7c98cdf5707460e | app/assets/javascripts/admin/views/home/index.js.coffee | app/assets/javascripts/admin/views/home/index.js.coffee | Augury.Views.Home.Index = Backbone.View.extend(
initialize: ->
render: ->
@env = _(Augury.connections).findWhere(id: Augury.env.id)
@$el.html JST["admin/templates/home/index"](env: @env)
$('#content-header').find('.page-title').text('Overview')
this
)
| Augury.Views.Home.Index = Backbone.View.extend(
initialize: ->
render: ->
@env = _(Augury.connections).findWhere(id: Augury.env.id)
@$el.html JST["admin/templates/home/index"](env: @env)
$('#content-header').find('.page-actions').remove()
$('#content-header').find('.page-title').text('Overview')
... | Remove page actions buttons on overview section | Remove page actions buttons on overview section
| CoffeeScript | bsd-3-clause | spree/spree_hub_connector,spree/spree_hub_connector |
1a89567419d219df488de23e4b7f28dae466d3f7 | desktop/apps/partnerships/client/router.coffee | desktop/apps/partnerships/client/router.coffee | _ = require 'underscore'
Backbone = require 'backbone'
View = require './view.coffee'
Jump = require '../../../components/jump/view.coffee'
module.exports = class PartnershipsRouter extends Backbone.Router
routes:
'gallery-partnerships': 'toTop'
'gallery-partnerships/:slug': 'toSection'
'institution-part... | _ = require 'underscore'
Backbone = require 'backbone'
View = require './view.coffee'
Jump = require '../../../components/jump/view.coffee'
module.exports = class PartnershipsRouter extends Backbone.Router
routes:
'gallery-partnerships': 'toTop'
'gallery-partnerships/:slug': 'toSection'
'institution-part... | Apply button does not jump to "Apply" | BUGFIX: Apply button does not jump to "Apply"
| CoffeeScript | mit | artsy/force-public,joeyAghion/force,joeyAghion/force,cavvia/force-1,izakp/force,yuki24/force,mzikherman/force,cavvia/force-1,joeyAghion/force,kanaabe/force,izakp/force,kanaabe/force,damassi/force,erikdstock/force,anandaroop/force,erikdstock/force,eessex/force,yuki24/force,oxaudo/force,cavvia/force-1,mzikherman/force,ee... |
3f03c44d51f201ad53cd4a978b6f12a720ecba14 | apps/artist/index.coffee | apps/artist/index.coffee | #
# The artist page found at /artist/:id.
#
express = require 'express'
routes = require './routes'
sections = require './sections'
timeout = require 'connect-timeout'
uncapitalize = require 'express-uncapitalize'
app = module.exports = express()
app.set 'views', __dirname + '/templates'
app.set 'view engine', 'jade'... | #
# The artist page found at /artist/:id.
#
express = require 'express'
routes = require './routes'
sections = require './sections'
timeout = require 'connect-timeout'
app = module.exports = express()
app.set 'views', __dirname + '/templates'
app.set 'view engine', 'jade'
app.get '/artist/:id/follow', routes.follow
... | Remove uncapitalize from artist route | Remove uncapitalize from artist route
| CoffeeScript | mit | oxaudo/force,dblock/force,cavvia/force-1,kanaabe/force,yuki24/force,izakp/force,izakp/force,dblock/force,joeyAghion/force,kanaabe/force,oxaudo/force,kanaabe/force,xtina-starr/force,artsy/force,mzikherman/force,cavvia/force-1,erikdstock/force,mzikherman/force,joeyAghion/force,anandaroop/force,cavvia/force-1,eessex/force... |
74cfbadd97f4e5cc59ba9169294de685f4b1f9ec | src/scripts/newrelic.coffee | src/scripts/newrelic.coffee | # Display current app performance stats from New Relic
#
# You need to set the following variables:
# HUBOT_NEWRELIC_ACCOUNT_ID = "<Account ID>"
# HUBOT_NEWRELIC_APP_ID = "<Application ID>"
# HUBOT_NEWRELIC_API_KEY = "<API Key>"
#
# How to find these settings:
# After signing into New Relic, select your... | Allow Hubot to fetch app performance stats from New Relic | Allow Hubot to fetch app performance stats from New Relic
| CoffeeScript | mit | Tyriont/hubot-scripts,amhorton/hubot-scripts,cycomachead/hubot-scripts,dbkaplun/hubot-scripts,github/hubot-scripts,jan0sch/hubot-scripts,modulexcite/hubot-scripts,fromonesrc/hubot-scripts,DataDog/hubot-scripts,flores/hubot-scripts,GrimDerp/hubot-scripts,flores/hubot-scripts,janx/hubot-scripts,opentable/hubot-scripts,ma... | |
4f06097ffdd3b817f26c9576fbee7debbfa8717c | src/scripts/reddit-jokes.coffee | src/scripts/reddit-jokes.coffee | # joke me - Pull a random joke from /r/jokes
module.exports = (robot) ->
robot.respond /joke me/i, (msg) ->
msg.http('http://www.reddit.com/r/jokes.json')
.get() (err, res, body) ->
try
data = JSON.parse body
children = data.data.children
joke = msg.random(children).d... | Add joke me from /r/jokes | Add joke me from /r/jokes
| CoffeeScript | mit | fromonesrc/hubot-scripts,ericjsilva/hubot-scripts,iilab/hubot-scripts,magicstone1412/hubot-scripts,davidsulpy/hubot-scripts,jacobtomlinson/hubot-scripts,alexhouse/hubot-scripts,ambikads/hubot-scripts,yigitbey/hubot-scripts,arcaartem/hubot-scripts,chauffer/hubot-scripts,gregburek/emojibot,amhorton/hubot-scripts,1000hz/h... | |
3dbb52205768eb9b4c5e2b49fd91b822bffae229 | client/app/lib/stacks/basestacktemplatelistitem.coffee | client/app/lib/stacks/basestacktemplatelistitem.coffee | kd = require 'kd'
JView = require 'app/jview'
KDButtonViewWithMenu = kd.ButtonViewWithMenu
ActivityItemMenuItem = require 'activity/views/activityitemmenuitem'
module.exports = class BaseStackTemplateListItem extends kd.ListItemView
JView.mixin @prototype
constructor: (optio... | Create base class for common context menu on credential and stack list. | Teams: Create base class for common context menu on credential and stack list.
| CoffeeScript | agpl-3.0 | usirin/koding,szkl/koding,jack89129/koding,mertaytore/koding,koding/koding,cihangir/koding,rjeczalik/koding,jack89129/koding,acbodine/koding,szkl/koding,andrewjcasal/koding,acbodine/koding,jack89129/koding,usirin/koding,rjeczalik/koding,jack89129/koding,szkl/koding,andrewjcasal/koding,sinan/koding,mertaytore/koding,cih... | |
f10cac828d522e813b7ccfeda3aad27ae09fe331 | index.coffee | index.coffee | DeferredAtomPackage = require 'deferred-atom-package'
LoadPathsTask = require './src/load-paths-task'
module.exports =
class FuzzyFinder extends DeferredAtomPackage
loadEvents: [
'fuzzy-finder:toggle-file-finder'
'fuzzy-finder:toggle-buffer-finder'
'fuzzy-finder:find-under-cursor'
]
instanceClass: '... | DeferredAtomPackage = require 'deferred-atom-package'
LoadPathsTask = require './src/load-paths-task'
module.exports =
class FuzzyFinder extends DeferredAtomPackage
loadEvents: [
'fuzzy-finder:toggle-file-finder'
'fuzzy-finder:toggle-buffer-finder'
'fuzzy-finder:find-under-cursor'
]
instanceClass: '... | Use parameter instead of ivar | Use parameter instead of ivar
| CoffeeScript | mit | nielsAD/fuzzy-finder,viddo/fuzzy-finder,viddo/fuzzy-finder,Kerruba/fuzzy-finder,Spy-Seth/fuzzy-finder,Kerruba/fuzzy-finder,atom/fuzzy-finder,gvanderest/fuzzy-finder,nielsAD/fuzzy-finder,Spy-Seth/fuzzy-finder,segiddins/fuzzy-finder,gvanderest/fuzzy-finder,toshi-saito/fuzzy-finder,pombredanne/fuzzy-finder,segiddins/fuzzy... |
70efffabcaa1bbfc811ee440a001952fa592ac31 | assets/javascripts/react_nodes/bootstrap_slider.coffee | assets/javascripts/react_nodes/bootstrap_slider.coffee | Slider = React.createClass(
getDefaultProps: ->
{
min: 0
max: 100
step: 1
value: 50
toolTip: false
onSlide: ->
}
handleSlide: (event) ->
@props.onSlide event.value
componentWillUpdate: (nextProps, nextState) ->
nextState.slider.val nextProps.value
component... | Add bootstrap slider react component | Add bootstrap slider react component
| CoffeeScript | mit | urmastalimaa/reactive-visualizer,urmastalimaa/reactive-visualizer,urmastalimaa/reactive-visualizer,urmastalimaa/reactive-visualizer | |
1d440547357bd4fa746913c9c8ecfe8c4f07e1b4 | app/js/publisher_poc/publisher_plugin.user.coffee | app/js/publisher_poc/publisher_plugin.user.coffee | ###
// ==UserScript==
// @name Factlink Publisher Pluging for Nu.nl
// @description Enable Factlink on Nu.nl
// @include http*://*.nu.nl/*
// @version 0.0.1
// @grant unsafeWindow
// ==/UserScript==
###
# Compile this file using: coffee -c <filename>
# Drag the compiled file (<name>.user.js) to chrome://extensions to... | Add publisher script for Nu.nl | Add publisher script for Nu.nl
This can be compiled locally using coffee -c <filename>. No need to compile this in Grunt, since the script will only be installed locally into Chrome.
| CoffeeScript | mit | Factlink/js-library,Factlink/js-library,Factlink/js-library | |
e3c98ca759a033952427576f1baaf6923d3b078c | src/coffee/kopi/utils/jsonrpc.coffee | src/coffee/kopi/utils/jsonrpc.coffee | kopi.module("kopi.jsonrpc")
.require("kopi.exceptions")
.request("kopi.utils")
.define (exports, exceptions, utils) ->
###
A lightweight JSON-RPC message wrapper
###
MESSAGE_PREFIX = "kopi-message"
JSON_RPC_VERSION = "2.0"
###
Build a request
###
request = (id, method, params... | Add a lightweight JSON-RPC implementation | Add a lightweight JSON-RPC implementation
| CoffeeScript | mit | wuyuntao/kopi,wuyuntao/kopi,wuyuntao/kopi,wuyuntao/kopi | |
1fb70812303a5efeb3c373511c0d6bd24a8a5539 | init.coffee | init.coffee | # Taken from https://gist.github.com/leshniak/f3b163b23bbfac5dad313b628f3c09ac
# Fixes scrolling on space key in atom-text-editor.mini
fixScrollOnSpace = () =>
editorSelector = 'atom-text-editor[mini]'
handleSpace = (event) =>
return if event.keyCode != 32 # do nothing if not a space key
el = ... | Fix scroll on spacebar press | Fix scroll on spacebar press
| CoffeeScript | mit | hebaishi/atom-config,hebaishi/atom-config | |
d7caf41f3a55e340d6067da54135dc0072e2ed73 | test/auth-spec.coffee | test/auth-spec.coffee | "use strict"
assert = require 'assert'
server = require '../coffee/server.coffee'
exports.cookie = cookie = null
describe '/login', ->
it 'should server a login page', (done) ->
server.inject method: 'GET', url: '/login', (res) ->
assert.equal res.statusCode, 200
assert /<input type="text" name="us... | Add unit tests for /login and /logout | Add unit tests for /login and /logout
| CoffeeScript | mit | Turistforeningen/hytteadmin_old | |
87c10ca9d34cf81e4e624eef28de0951325df768 | components/artwork_filter/index.coffee | components/artwork_filter/index.coffee | Backbone = require 'backbone'
ArtworkFilterRouter = require './router.coffee'
module.exports.init = (options = {}) ->
new ArtworkFilterRouter options
require './analytics.coffee'
Backbone.history.start(pushState: true) unless Backbone.History.started
| Backbone = require 'backbone'
ArtworkFilterRouter = require './router.coffee'
module.exports.init = (options = {}) ->
router = new ArtworkFilterRouter options
require './analytics.coffee'
Backbone.history.start(pushState: true) unless Backbone.History.started
router
| Return the router object when initializing filter | Return the router object when initializing filter
| CoffeeScript | mit | eessex/force,mzikherman/force,joeyAghion/force,xtina-starr/force,TribeMedia/force-public,izakp/force,cavvia/force-1,izakp/force,damassi/force,joeyAghion/force,cavvia/force-1,artsy/force,damassi/force,xtina-starr/force,cavvia/force-1,artsy/force-public,damassi/force,erikdstock/force,artsy/force,joeyAghion/force,yuki24/f... |
00a91656a459ddfec017c8d5e76c3c2451f5af0a | spec/installer-spec.coffee | spec/installer-spec.coffee | fs = require 'fs'
path = require 'path'
grunt = require 'grunt'
temp = require 'temp'
describe 'create-windows-installer task', ->
it 'creates a nuget package', ->
outputDirectory = __dirname
grunt.config.init
pkg: grunt.file.readJSON(path.join(__dirname, 'fixtures', 'app', 'resources', 'app', 'packa... | fs = require 'fs'
path = require 'path'
grunt = require 'grunt'
temp = require 'temp'
describe 'create-windows-installer task', ->
it 'creates a nuget package', ->
outputDirectory = temp.mkdirSync('grunt-atom-shell-installer-')
grunt.config.init
pkg: grunt.file.readJSON(path.join(__dirname, 'fixtures... | Use temp dir in specs | Use temp dir in specs
| CoffeeScript | apache-2.0 | mongodb-js/electron-installer-squirrel-windows,domderen/atom-shell-installer,domderen/atom-shell-installer,coderhaoxin/grunt-electron-installer,electronjs/windows-installer |
d6f3e3098016e2d2c615241017bfb4fef0a7f1da | test/rewind/rewinder.coffee | test/rewind/rewinder.coffee | RewindBuffer = $src "rewind_buffer"
FileSource = $src "sources/file"
Logger = $src "logger"
mp3 = $file "mp3/mp3-44100-128-s.mp3"
class BytesReceived extends require("stream").Writable
constructor: ->
super
@bytes = 0
_write: (chunk,encoding,cb) ->
@bytes += chunk.len... | Add Rewinder test. Works on Node 0.10, fails on Node 0.12 | Tests: Add Rewinder test. Works on Node 0.10, fails on Node 0.12
Non-pump outputs are failing on Node 0.12 and iojs, apparently because their
writable streams don't try calling read again when a `readable` is emitted.
| CoffeeScript | mit | pedropapa/StreamMachine,StreamMachine/StreamMachine,pedropapa/StreamMachine,DreamNetwork/StreamMachine,cdgraff/StreamMachine,SCPR/StreamMachine,cdgraff/StreamMachine,pteich/StreamMachine,pteich/StreamMachine,StreamMachine/StreamMachine,DreamNetwork/StreamMachine,SCPR/StreamMachine | |
7ecd3b13af3fbc9e63223f6c70c67e8088a66dfc | SingularityUI/app/lib/view_helper.coffee | SingularityUI/app/lib/view_helper.coffee | Handlebars.registerHelper 'ifEqual', (v1, v2, options) -> if v1 is v2 then options.fn @ else options.inverse @
Handlebars.registerHelper 'ifLT', (v1, v2, options) -> if v1 < v2 then options.fn @ else options.inverse @
Handlebars.registerHelper 'ifGT', (v1, v2, options) -> if v1 > v2 then options.fn @ else options.inver... | Handlebars.registerHelper 'ifEqual', (v1, v2, options) -> if v1 is v2 then options.fn @ else options.inverse @
Handlebars.registerHelper 'ifLT', (v1, v2, options) -> if v1 < v2 then options.fn @ else options.inverse @
Handlebars.registerHelper 'ifGT', (v1, v2, options) -> if v1 > v2 then options.fn @ else options.inver... | Create view helper for getShortTaskIDMiddleEllipsis utils method | Create view helper for getShortTaskIDMiddleEllipsis utils method | CoffeeScript | apache-2.0 | tejasmanohar/Singularity,stevenschlansker/Singularity,mjball/Singularity,mjball/Singularity,evertrue/Singularity,acbellini/Singularity,acbellini/Singularity,calebTomlinson/Singularity,calebTomlinson/Singularity,hs-jenkins-bot/Singularity,acbellini/Singularity,HubSpot/Singularity,grepsr/Singularity,andrhamm/Singularity,... |
b1b535e417c37e15f5a35e7509b35730c6428b28 | client/app/modules/store2.coffee | client/app/modules/store2.coffee | # TODO-2 try to load the state from local storage.
# BUT if there's no cookie, then act like local storage isn't there.
# Also, state changes should update the data in local storage as well.
listeners = []
state = window.preload or {}
reducer = ->
module.exports = {
setReducer: (fn) ->
reducer = fn
s... | Add a redux like store as the successor | Add a redux like store as the successor
| CoffeeScript | apache-2.0 | heiskr/sagefy,heiskr/sagefy,heiskr/sagefy,heiskr/sagefy | |
d4c1775cf7f5306af193643e2a1a9b0c9adc4363 | src/notification.coffee | src/notification.coffee | {Emitter} = require 'event-kit'
# Experimental: This will likely change, do not use.
module.exports =
class Notification
constructor: (@type, @message, @options={}) ->
@emitter = new Emitter
@timestamp = new Date()
@dismissed = true
@dismissed = false if @isDismissable()
@displayed = false
onD... | {Emitter} = require 'event-kit'
# Public: A notification to the user containing a message and type.
module.exports =
class Notification
constructor: (@type, @message, @options={}) ->
@emitter = new Emitter
@timestamp = new Date()
@dismissed = true
@dismissed = false if @isDismissable()
@displayed... | Mark Notification public and add docs | Mark Notification public and add docs
| CoffeeScript | mit | Neron-X5/atom,tony612/atom,sxgao3001/atom,liuderchi/atom,lovesnow/atom,Sangaroonaom/atom,sekcheong/atom,ObviouslyGreen/atom,rsvip/aTom,mnquintana/atom,KENJU/atom,pkdevbox/atom,yomybaby/atom,sxgao3001/atom,n-riesco/atom,jtrose2/atom,targeter21/atom,Austen-G/BlockBuilder,Andrey-Pavlov/atom,Ingramz/atom,DiogoXRP/atom,nuck... |
4d5b5e088c760ba94731b12436ee2f58660a52e3 | app/assets/javascripts/radio_buttons.coffee | app/assets/javascripts/radio_buttons.coffee | root = exports ? this
RadioButtonsModule =
bindToRadioButtons: ->
$('input[type=radio]').on 'change', ->
$("[name='" + $(this).attr('name') + "']").parent().removeClass("selected")
$(this).parent().addClass('selected')
setup: ->
RadioButtonsModule.bindToRadioButtons()
root.RadioButtonsModule... | Create radio button coffee script | Create radio button coffee script
| CoffeeScript | mit | ministryofjustice/fr-staffapp,ministryofjustice/fr-staffapp,ministryofjustice/fr-staffapp,ministryofjustice/fr-staffapp | |
7d7f5daf5557f7e2f717e1b4aa62f81b7c311d22 | atom.symlink/keymap.cson | atom.symlink/keymap.cson | '.atom-text-editor':
'alt-g down': 'unset!'
'alt-g j': 'git-diff:move-to-next-diff'
'alt-g up': 'unset!'
'alt-g k': 'git-diff:move-to-previous-diff'
| Change git next/prev diff keys | Change git next/prev diff keys
| CoffeeScript | mit | tchajed/dotfiles-osx,tchajed/dotfiles-osx,tchajed/dotfiles-osx | |
09c70a14df6107c448efadc5201e8ab1ae1005bd | js/utils.coffee | js/utils.coffee | {toString} = Object.prototype
# Uppercase the first letter of a string
ucFirst = (value) ->
value.replace /\b(\w)(.*$)/g, (match, firstLetter, remainder) ->
firstLetter.toUpperCase() + remainder
# Type-checking helpers
isArray = (value) -> "[object Array]" is toString.call(value)
isObject = (value) -> "[object ... | Add a suite of helper functions in CoffeeScript | Add a suite of helper functions in CoffeeScript
| CoffeeScript | isc | Alhadis/Snippets,Alhadis/Snippets,Alhadis/Snippets,Alhadis/Snippets,Alhadis/Snippets | |
b30190654f8ef3ccb3f902f42e8ae10d13ee4f5d | spec/installer-spec.coffee | spec/installer-spec.coffee | fs = require 'fs'
path = require 'path'
grunt = require 'grunt'
temp = require 'temp'
describe 'create-windows-installer task', ->
it 'creates a nuget package', ->
outputDirectory = temp.mkdirSync('grunt-atom-shell-installer-')
grunt.config.init
pkg: grunt.file.readJSON(path.join(__dirname, 'fixtures... | fs = require 'fs'
path = require 'path'
grunt = require 'grunt'
temp = require 'temp'
describe 'create-windows-installer task', ->
it 'creates a nuget package', ->
outputDirectory = temp.mkdirSync('grunt-atom-shell-installer-')
grunt.config.init
pkg: grunt.file.readJSON(path.join(__dirname, 'fixtures... | Add version to expected .nupkg path | Add version to expected .nupkg path
| CoffeeScript | apache-2.0 | mongodb-js/electron-installer-squirrel-windows,domderen/atom-shell-installer,electronjs/windows-installer,domderen/atom-shell-installer,coderhaoxin/grunt-electron-installer |
88f1992d5051c74eb6fb081dca7b6a93d3e34689 | lib/assets/javascripts/bobcat.js.coffee | lib/assets/javascripts/bobcat.js.coffee | # Require 'nyulibraries'
# = require nyulibraries
$ ->
# BobCat Tabs Tips
new window.popover.Popover(".nav-tabs li a").init()
new window.popover.PartialHoverPopover("#account h2 a").init()
| Add BobCat JS file for BobCat files. | Add BobCat JS file for BobCat files.
| CoffeeScript | mit | cul/fabl-assets,NYULibraries/nyulibraries-assets,NYULibraries/nyulibraries-assets,cul/fabl-assets,NYULibraries/nyulibraries-assets,cul/fabl-assets | |
f6c9000f5f33601e333b1c0e73f136e3b3de571f | spec/api-desktop-capturer.coffee | spec/api-desktop-capturer.coffee | assert = require 'assert'
{desktopCapturer} = require 'electron'
describe 'desktopCapturer', ->
it 'should returns something', (done) ->
desktopCapturer.getSources {types: ['window', 'screen']}, (error, sources) ->
assert.equal error, null
assert.notEqual sources.length, 0
done()
| Add a simple test case for desktopCapturer | spec: Add a simple test case for desktopCapturer
| CoffeeScript | mit | bpasero/electron,tonyganch/electron,simongregory/electron,electron/electron,the-ress/electron,simongregory/electron,stevekinney/electron,pombredanne/electron,dongjoon-hyun/electron,minggo/electron,rajatsingla28/electron,shiftkey/electron,aichingm/electron,seanchas116/electron,gabriel/electron,felixrieseberg/electron,ev... | |
0e024f1c86a97ac5cb4877cca3b4f2d0bb8a0b97 | coffee/app.coffee | coffee/app.coffee | sys = require 'sys'
http = require 'http'
http.createServer((request, response) ->
sys.puts 'I got kicked'
response.writeHeader 200, {"Content-Type": "text/plain"}
response.write 'It works!'
response.end()
).listen 8080
sys.puts 'Listening on port 8080'
| Add basic request handling node server | Add basic request handling node server
| CoffeeScript | mit | ramonh/homesick-server | |
b2c836e5b2794ac0080a42349c0da348a1a8a7ba | app/assets/javascripts/interaction_web_tools/app.coffee | app/assets/javascripts/interaction_web_tools/app.coffee | window.InteractionWebTools ||= {}
window.InteractionWebTools.chat = new Chat
$ ->
InteractionWebTools.chat.receiveMessages()
$(document).on 'submit', 'form.chat-message-form', (e) ->
e.preventDefault()
input = $(@).find 'input[name=content]'
InteractionWebTools.chat.sendMessage input.val()
input.val ''
fa... | Add Chat js handling logic | Add Chat js handling logic
| CoffeeScript | mit | folkia/interaction_web_tools_rails,folkia/interaction_web_tools_rails,folkia/interaction_web_tools_rails | |
5bd4fb46937433374248fe8047ca94a93af69e86 | spec/Component.coffee | spec/Component.coffee | if typeof process isnt 'undefined' and process.execPath and process.execPath.indexOf('node') isnt -1
chai = require 'chai' unless chai
component = require '../src/lib/Component.coffee'
port = require '../src/lib/Port.coffee'
socket = require '../src/lib/InternalSocket.coffee'
else
component = require 'noflo/s... | Add spec for required ports | Add spec for required ports
| CoffeeScript | mit | saurabhsood91/noflo,npmcomponent/noflo-noflo,trustmaster/noflo,jonnor/noflo,lxfschr/noflo,saurabhsood91/noflo,trustmaster/noflo,jonnor/noflo,lxfschr/noflo,noflo/noflo | |
6edd3fde76c7bae866afdd3e168bea1a80ae465f | spec/token-iterator-spec.coffee | spec/token-iterator-spec.coffee | TextBuffer = require 'text-buffer'
TokenizedBuffer = require '../src/tokenized-buffer'
describe "TokenIterator", ->
it "correctly terminates scopes at the beginning of the line (regression)", ->
grammar = atom.grammars.createGrammar('test', {
'scopeName': 'text.broken'
'name': 'Broken grammar'
... | Add spec for token iterator regression | Add spec for token iterator regression
| CoffeeScript | mit | hellendag/atom,AlbertoBarrago/atom,lovesnow/atom,pkdevbox/atom,folpindo/atom,boomwaiza/atom,yangchenghu/atom,Mokolea/atom,gisenberg/atom,sotayamashita/atom,lovesnow/atom,AlexxNica/atom,johnhaley81/atom,ivoadf/atom,RuiDGoncalves/atom,kevinrenaers/atom,scippio/atom,florianb/atom,johnrizzo1/atom,001szymon/atom,mrodalgaard... | |
f0e33a99e12c3a27b8d396edd8c6b39f42282215 | scripts/mcstatus.coffee | scripts/mcstatus.coffee | # Description:
# Report the status of a Minecraft server
# Uses http://api.syfaro.net/
#
# Dependencies:
# None
#
# Configuration:
# server_url and server_port, below
#
# Commands:
# mcstatus - Report the status of the configured minecraft server.
#
# Author:
# annabunches
default_url = 'mc.wtf.cat'
defaul... | # Description:
# Report the status of a Minecraft server
# Uses http://api.syfaro.net/
#
# Dependencies:
# None
#
# Configuration:
# server_url and server_port, below
#
# Commands:
# mcstatus - Report the status of the configured minecraft server.
#
# Author:
# annabunches
default_url = 'mc.wtf.cat'
defaul... | Fix a silly error from changing approach midway. | Fix a silly error from changing approach midway.
| CoffeeScript | mit | skalnik/hayt,desert-planet/hayt,drobati/hayt,websages/hayt,Drewzar/arrakis-hubot,n1ckn4m3/hayt,thecodercody/hayt,sbryant/arrakis-hubot,pmn/hayt |
62dda64e4f35fd8fdb2c6cddc3730286a1695202 | scripts/dialog.coffee | scripts/dialog.coffee | Path = require "path"
Dialog = require Path.join __dirname, "..", "src", "dialog"
module.exports = (robot) ->
# robot.hear /.*/i, (msg) ->
# dialog = Dialog.getDialog msg.envelope.user.name, msg.envelope.room
# console.log dialog
# dialog?.callback.call dialog, msg
robot.respond /dialog/i, (msg) ->
... | Add test script using Dialog | Add test script using Dialog
| CoffeeScript | mit | hokuken/hubot | |
5c680ada963876e231e1ec419fc05025b51df01e | models/featured_link.coffee | models/featured_link.coffee | _ = require 'underscore'
Backbone = require 'backbone'
Items = require '../collections/items.coffee'
LayoutSyle = require './mixins/layout_style.coffee'
{ Image, Markdown } = require 'artsy-backbone-mixins'
{ SECURE_IMAGES_URL } = require('sharify').data
module.exports = class FeaturedLink extends Backbone.Model
_.e... | _ = require 'underscore'
Backbone = require 'backbone'
Items = require '../collections/items.coffee'
LayoutSyle = require './mixins/layout_style.coffee'
{ Image, Markdown } = require 'artsy-backbone-mixins'
{ SECURE_IMAGES_URL } = require('sharify').data
ImageSizes = require './mixins/image_sizes.coffee'
module.export... | Include ImageSizes for featured links | Include ImageSizes for featured links
| CoffeeScript | mit | erikdstock/force,yuki24/force,mzikherman/force,izakp/force,oxaudo/force,joeyAghion/force,dblock/force,dblock/force,anandaroop/force,eessex/force,cavvia/force-1,kanaabe/force,kanaabe/force,damassi/force,kanaabe/force,anandaroop/force,mzikherman/force,TribeMedia/force-public,artsy/force,yuki24/force,TribeMedia/force-publ... |
3e385252043bd620f90e7faf0ec861307ac12df1 | spec/linter-behavior-spec.coffee | spec/linter-behavior-spec.coffee | describe 'Linter Behavior', ->
linter = null
linterState = null
bottomContainer = null
trigger = (el, name) ->
event = document.createEvent('HTMLEvents');
event.initEvent(name, true, false);
el.dispatchEvent(event);
beforeEach ->
waitsForPromise ->
atom.packages.activatePackage('linter... | Add some basic linter-behavior specs | :new: Add some basic linter-behavior specs
| CoffeeScript | mit | elkeis/linter,AsaAyers/linter,levity/linter,Arcanemagus/linter,shawninder/linter,AtomLinter/Linter,DanPurdy/linter,steelbrain/linter,atom-community/linter,blakeembrey/linter,JohnMurga/linter,e-jigsaw/Linter,UltCombo/linter |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.