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 |
|---|---|---|---|---|---|---|---|---|---|
24197ffa4b20fe65fc018919191b79d6d671ce0c | js/outer/error.coffee | js/outer/error.coffee | CI.outer.Error = class Error extends CI.outer.Page
constructor: ->
@name = "error"
@status = renderContext.status or 404
@url = renderContext.githubPrivateAuthURL
title: =>
titles =
401: "Login required"
404: "Page not found"
500: "Internal server error"
titles[@status] or "... | CI.outer.Error = class Error extends CI.outer.Page
constructor: ->
super
@name = "error"
@status = renderContext.status or 404
@url = renderContext.githubPrivateAuthURL
title: =>
titles =
401: "Login required"
404: "Page not found"
500: "Internal server error"
titles[@sta... | Fix the 401 page looking incorrect. | Fix the 401 page looking incorrect.
CI.outer.Error inherited from outer.Page, but wasn't calling super, so variables that Page expected, @opts, wasn't created
Fixes #1740
| CoffeeScript | epl-1.0 | RayRutjes/frontend,circleci/frontend,circleci/frontend,prathamesh-sonpatki/frontend,RayRutjes/frontend,prathamesh-sonpatki/frontend,circleci/frontend |
817b5274d8fe447e02ec4ed163ccf67f034b42c6 | spec/header-cells/string-cell-spec.coffee | spec/header-cells/string-cell-spec.coffee | describe 'HeaderCells StringCell', ->
HeaderCell = require '../../lib/header-cells/string-cell'
initView = ({ model } = {}) ->
model ?= new Backbone.Model label: 'header cell label'
new HeaderCell { model }
showView = ->
initView(arguments...).render()
it 'renders the label', ->
expect(showVi... | describe 'HeaderCells StringCell', ->
HeaderCell = require '../../lib/header-cells/string-cell'
initView = ({ model } = {}) ->
model ?= new Backbone.Model label: 'header cell label'
new HeaderCell { model }
showView = ->
initView(arguments...).render()
it 'renders the label', ->
expect(showVi... | Improve string cell spec coverage | Improve string cell spec coverage
| CoffeeScript | mit | juanca/marionette-tree,juanca/marionette-tree |
34341250628506337a9f220706c93261f770752c | Gruntfile.coffee | Gruntfile.coffee | module.exports = (grunt) ->
documentation = 'doc'
grunt.initConfig
pkg: grunt.file.readJSON 'package.json'
clean: [
'bin'
'.grunt'
documentation
]
jsdoc:
dist:
src: ['topicmap.js', 'README.md']
options:
destination: documentation
template: ... | module.exports = (grunt) ->
documentation = 'doc'
grunt.initConfig
pkg: grunt.file.readJSON 'package.json'
clean: [
'bin'
'.grunt'
documentation
]
jsdoc:
dist:
src: ['topicmap.js', 'README.md']
options:
destination: documentation
template: ... | Set up travis for Topic Map [rev: Alex Scown] | [BIFHI-38] Set up travis for Topic Map [rev: Alex Scown]
| CoffeeScript | mit | hpe-idol/topic-map,hpautonomy/topic-map,hpe-idol/topic-map,hpautonomy/topic-map |
6a5208348117e6b3dcc5fdfe9bb9b3df89bfb5d0 | src/app/common/user-icon/user-icon.coffee | src/app/common/user-icon/user-icon.coffee | #
# User icon via gravatar email address or user initials
#
angular.module('doubtfire.common.user-icon', [])
.directive('userIcon', ->
restrict: 'E'
replace: true
scope:
user: '=?'
size: '=?'
email: '=?'
templateUrl: 'common/user-icon/user-icon.tpl.html'
controller: ($scope, $http, currentUser, md... | #
# User icon via gravatar email address or user initials
#
angular.module('doubtfire.common.user-icon', [])
.directive('userIcon', ->
restrict: 'E'
replace: true
scope:
user: '=?'
size: '=?'
email: '=?'
templateUrl: 'common/user-icon/user-icon.tpl.html'
controller: ($scope, $http, currentUser, md... | Test length of name array in initials | FIX: Test length of name array in initials
| CoffeeScript | agpl-3.0 | doubtfire-lms/doubtfire-web,doubtfire-lms/doubtfire-web,doubtfire-lms/doubtfire-web,doubtfire-lms/doubtfire-web |
d0ac5e17bbd5b81cc092de461bb170af25e82b8b | app/assets/javascripts/projects.coffee | app/assets/javascripts/projects.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://coffeescript.org/
ready = ->
engine = new Bloodhound(
datumTokenizer: (d) ->
console.log d
Bloodhound.tok... |
# 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://coffeescript.org/
ready = ->
engine = new Bloodhound(
datumTokenizer: (d) ->
console.log d
Bloodhound.tok... | Add translation for pop up messages | Add translation for pop up messages
| CoffeeScript | mit | hpi-swt2/wimi-portal,hpi-swt2/wimi-portal,hpi-swt2/wimi-portal |
d270ea812a5cab3704a673f311050cf84b1a7dd2 | lib/init.coffee | lib/init.coffee | {BufferedProcess, CompositeDisposable} = require 'atom'
lsc = require 'atom-livescript'
module.exports =
provideLinter: ->
grammarScopes: ['source.livescript']
scope: 'file'
lintOnFly: true
lint: (textEditor)=>
new Promise (resolve, reject)=>
filePath = textEditor.getPath()
file... | {BufferedProcess, CompositeDisposable} = require 'atom'
lsc = require 'atom-livescript'
module.exports =
provideLinter: ->
grammarScopes: ['source.livescript']
scope: 'file'
lintOnFly: true
lint: (textEditor)=>
new Promise (resolve, reject)=>
filePath = textEditor.getPath()
file... | Fix for another parse error | Fix for another parse error
| CoffeeScript | mit | AtomLinter/linter-lsc |
9843004373d3f0f29a9fc98276ca6bf71b452e8b | lib/main.coffee | lib/main.coffee | grammarListView = null
grammarStatusView = null
module.exports =
config:
showOnRightSideOfStatusBar:
type: 'boolean'
default: true
activate: ->
@commandDisposable = atom.commands.add('atom-text-editor', 'grammar-selector:show', createGrammarListView)
atom.packages.onDidActivateAll(createGr... | commandDisposable = null
grammarListView = null
grammarStatusView = null
module.exports =
config:
showOnRightSideOfStatusBar:
type: 'boolean'
default: true
activate: ->
commandDisposable = atom.commands.add('atom-text-editor', 'grammar-selector:show', createGrammarListView)
atom.packages.o... | Call toggle each time command is dispatched | Call toggle each time command is dispatched
| CoffeeScript | mit | atom/grammar-selector |
83ea606278994d54be2f120f8544c689642a65ab | src/filters/moment-date.filter.coffee | src/filters/moment-date.filter.coffee | angular.module('impac.filters.moment-date', []).filter('momentDate', ($translate, ImpacTheming) ->
(date, component) ->
moment.locale($translate.use().toLowerCase())
validPeriods = ['daily', 'weekly', 'monthly', 'quarterly', 'yearly', 'default']
if !_.isEmpty(component) && validPeriods.includes(componen... | angular.module('impac.filters.moment-date', []).filter('momentDate', ($translate, ImpacTheming) ->
(date, component) ->
moment.locale($translate.use().toLowerCase())
validPeriods = ['daily', 'weekly', 'monthly', 'quarterly', 'yearly', 'default']
if !_.isEmpty(component) && _.includes(validPeriods, compo... | Refactor using lodash for ie11 | Refactor using lodash for ie11
| CoffeeScript | apache-2.0 | xaun/impac-angular,maestrano/impac-angular,xaun/impac-angular,maestrano/impac-angular |
ae3d11bcd9d954a30c10de23d4d5a5d301c23ebd | app/assets/javascripts/sprangular/directives/addressSelection.coffee | app/assets/javascripts/sprangular/directives/addressSelection.coffee | Sprangular.directive 'addressSelection', ->
restrict: 'E'
templateUrl: 'addresses/selection.html'
scope:
address: '='
addresses: '='
countries: '='
disabled: '=disabledFields'
submitted: '='
existingAddress: '='
controller: ($scope) ->
$scope.$watch 'addresses', (addresses) ->
... | Sprangular.directive 'addressSelection', ->
restrict: 'E'
templateUrl: 'addresses/selection.html'
scope:
address: '='
addresses: '='
countries: '='
disabled: '=disabledFields'
submitted: '='
existingAddress: '='
controller: ($scope) ->
$scope.$watch 'addresses', (addresses) ->
... | Add default value for existingAddress attribute in compile stage | Add default value for existingAddress attribute in compile stage
| CoffeeScript | mit | sprangular/sprangular,sprangular/sprangular,sprangular/sprangular |
8e10a31bd3a07c52211f09816c491cea466e0cbd | lib/rails/beforesend.coffee | lib/rails/beforesend.coffee | # Implements global `ajaxBeforeSend` event.
#
# jQuery already provides a handful of global AJAX events. However,
# there is no global version of `beforeSend`, so `ajaxBeforeSend` is
# added to complement it.
#
# Reference: http://docs.jquery.com/Ajax_Events
# Skip for Zepto which doesn't have ajaxSetup but does alrea... | # Implements global `ajaxBeforeSend` event.
#
# jQuery already provides a handful of global AJAX events. However,
# there is no global version of `beforeSend`, so `ajaxBeforeSend` is
# added to complement it.
#
# Reference: http://docs.jquery.com/Ajax_Events
# Skip for Zepto which doesn't have ajaxSetup but does alrea... | Make compatible with coffee 1.1.3 bug | Make compatible with coffee 1.1.3 bug
| CoffeeScript | mit | josh/rails-behaviors,josh/rails-behaviors,josh/rails-behaviors,josh/rails-behaviors |
8b92755236d28e5da19a309f4868d045c4a84747 | menus/find-and-replace.cson | menus/find-and-replace.cson | 'menu': [
'label': 'Find'
'submenu': [
{ 'label': 'Find in Buffer', 'command': 'find-and-replace:show'}
{ 'label': 'Replace in Buffer', 'command': 'find-and-replace:show-replace'}
{ 'label': 'Select Next', 'command': 'find-and-replace:select-next'}
{ 'label': 'Select All', 'command': 'find-and-repla... | 'menu': [
'label': 'Find'
'submenu': [
{ 'label': 'Find in Buffer', 'command': 'find-and-replace:show'}
{ 'label': 'Replace in Buffer', 'command': 'find-and-replace:show-replace'}
{ 'label': 'Select Next', 'command': 'find-and-replace:select-next'}
{ 'label': 'Select All', 'command': 'find-and-repla... | Add toggle menu item for panels | Add toggle menu item for panels
Refs #164
| CoffeeScript | mit | harai/find-and-replace,bmperrea/find-and-replace,trevdor/find-and-replace,atom/find-and-replace |
e6c7444c4528982f86a46e2f9eccedc57f0725f7 | src/scripts/sheits.coffee | src/scripts/sheits.coffee | # Description:
# When you get some bad news sometimes you got to let it out.
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# sheeeit - Display an image or animated gif
#
# Author:
# danishkhan
sheits = [
"http://www.circlenoir.com/forums/attachment.php?attachmentid=478&stc=1#.jpg",
"ht... | # Description:
# When you get some bad news sometimes you got to let it out.
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# sheeeit - Display an image or animated gif
#
# Author:
# danishkhan
sheits = [
"http://www.circlenoir.com/forums/attachment.php?attachmentid=478&stc=1#.jpg",
"ht... | Indent msg.send so that we all can Clay. Sheeeeeeeeeit. | Indent msg.send so that we all can Clay. Sheeeeeeeeeit.
| CoffeeScript | mit | justinwoo/hubot-scripts,davidsulpy/hubot-scripts,zecahnin/hubot-scripts,1stdibs/hubot-scripts,contolini/hubot-scripts,jan0sch/hubot-scripts,chauffer/hubot-scripts,ericjsilva/hubot-scripts,1000hz/hubot-scripts,MaxMEllon/hubot-scripts,jhubert/hubot-scripts,Tyriont/hubot-scripts,DataDog/hubot-scripts,opentable/hubot-scrip... |
b0314408590b53f93734d66b5f7ce96dd265bfc3 | lib/minimap-pigments-binding.coffee | lib/minimap-pigments-binding.coffee | {CompositeDisposable} = require 'atom'
module.exports =
class MinimapPigmentsBinding
constructor: ({@editor, @minimap, @colorBuffer}) ->
@displayedMarkers = []
@subscriptions = new CompositeDisposable
@colorBuffer.initialize().then => @updateMarkers()
@subscriptions.add @colorBuffer.onDidUpdateColo... | {CompositeDisposable} = require 'atom'
module.exports =
class MinimapPigmentsBinding
constructor: ({@editor, @minimap, @colorBuffer}) ->
@displayedMarkers = []
@subscriptions = new CompositeDisposable
@colorBuffer.initialize().then => @updateMarkers()
@subscriptions.add @colorBuffer.editor.displayB... | Fix markers persisting after tokenisation when they should have been hidden | :bug: Fix markers persisting after tokenisation when they should have been hidden
| CoffeeScript | mit | abe33/minimap-pigments |
4baa4f05012480454a79100937589accac4ccc6b | karma.conf.coffee | karma.conf.coffee | webpackConfig = require('./webpack.config.coffee')
webpackConfig.entry = {}
module.exports = (config) ->
config.set
frameworks: ['jasmine']
browsers: ['Chrome']
files: [
'./spec/**/*.coffee'
]
preprocessors:
'./spec/**/*spec.coffee': ['webpack']
webpack: webpackConfig
web... | webpackConfig = require('./webpack.config.coffee')
webpackConfig.entry = {}
module.exports = (config) ->
config.set
frameworks: ['jasmine']
browsers: ['Chrome']
files: [
'./spec/**/*.coffee'
]
preprocessors:
'./spec/**/*': ['webpack']
webpack: webpackConfig
webpackMiddlew... | Simplify spec files regex since webpack should be doing all the heavy lifting | Simplify spec files regex since webpack should be doing all the heavy lifting
| CoffeeScript | mit | juanca/marionette-tree,juanca/marionette-tree |
247cf9d2436a3168addc1ef112c45b48a208d70c | lib/router.coffee | lib/router.coffee | Router.configure
layoutTemplate: 'Layout'
Router.route '/', ->
return @redirect '/course/si'
Router.route '/si', ->
return @redirect '/course/si'
Router.route '/tsi', ->
return @redirect '/course/tsi'
Router.route '/course/:course',
name: 'course'
waitOn: ->
return [
Meteor.subscribe 'Grade'
Mete... | Router.configure
layoutTemplate: 'Layout'
Router.route '/', ->
return @redirect '/course/si'
Router.route '/si', ->
return @redirect '/course/si'
Router.route '/tsi', ->
return @redirect '/course/tsi'
Router.route '/course/:course',
name: 'course'
waitOn: ->
return [
Meteor.subscribe 'Grade'
Mete... | Fix bugs with shared url | Fix bugs with shared url
| CoffeeScript | mit | rodrigok/GradeFaccat,rodrigok/GradeFaccat |
ce1fe207bc3602a80d7eba9787af25b4eaaebeca | test/specs/Piece.spec.coffee | test/specs/Piece.spec.coffee | define (require) ->
Piece = require 'Piece'
ranks = require 'ranks'
describe 'Piece', ->
for rank of ranks
do (rank) ->
it "should not throw if rank #{rank}", ->
expect(->
new Piece
rank: rank
side: 0
).to.not.throw()
it 'should... | define (require) ->
Piece = require 'Piece'
ranks = require 'ranks'
describe 'Piece', ->
it 'should not throw if rank is valid', ->
for rank of ranks
expect(->
new Piece
rank: rank
side: 0
).to.not.throw()
it 'should throw if rank is not valid', ... | Break tests down into one | [master] Break tests down into one
| CoffeeScript | mit | benletchford/stratego.io,benletchford/stratego.io,benletchford/stratego.io |
5235114eed2f53d0aa58e23e616b3f76f58899d4 | spec/spec-suite.coffee | spec/spec-suite.coffee | require 'window'
measure 'spec suite require time', ->
fsUtils = require 'fs-utils'
path = require 'path'
require 'spec-helper'
requireSpecs = (directoryPath, specType) ->
for specPath in fsUtils.listTreeSync(path.join(directoryPath, 'spec')) when /-spec\.coffee$/.test specPath
require specPath
s... | fs = require 'fs'
require 'window'
measure 'spec suite require time', ->
fsUtils = require 'fs-utils'
path = require 'path'
require 'spec-helper'
requireSpecs = (directoryPath, specType) ->
for specPath in fsUtils.listTreeSync(path.join(directoryPath, 'spec')) when /-spec\.coffee$/.test specPath
re... | Use fs.readdirSync() for listing package directories | Use fs.readdirSync() for listing package directories
Previously fsUtils.listTreeSync() was used which returns every path
in the tree, not just paths directly underneath the root path.
This speeds up the spec suite require time by not stat'ing the entire
node_modules directory.
| CoffeeScript | mit | helber/atom,john-kelly/atom,GHackAnonymous/atom,codex8/atom,mnquintana/atom,tanin47/atom,alfredxing/atom,daxlab/atom,mdumrauf/atom,Hasimir/atom,Mokolea/atom,jordanbtucker/atom,CraZySacX/atom,mostafaeweda/atom,crazyquark/atom,Dennis1978/atom,sekcheong/atom,transcranial/atom,davideg/atom,deepfox/atom,abcP9110/atom,0x73/a... |
6ab6145ab8ae052ee4942d524b39c662d0762b89 | server/methods/setAvatarFromService.coffee | server/methods/setAvatarFromService.coffee | Meteor.methods
setAvatarFromService: (image, service) ->
if not Meteor.userId()
throw new Meteor.Error 203, '[methods] typingStatus -> Usuário não logado'
user = Meteor.user()
file = new FS.File image
file.attachData image, ->
file.name user.username
Avatars.insert file, (err, fileObj) ->
Meteo... | Meteor.methods
setAvatarFromService: (image, service) ->
if not Meteor.userId()
throw new Meteor.Error 203, '[methods] typingStatus -> Usuário não logado'
user = Meteor.user()
file = new FS.File image
file.attachData image, ->
file.name user.username
Avatars.insert file, (err, fileObj) ->
Meteo... | Add method to reset avatar | Add method to reset avatar
| CoffeeScript | mit | erikmaarten/Rocket.Chat,haosdent/Rocket.Chat,abduljanjua/TheHub,subesokun/Rocket.Chat,acidicX/Rocket.Chat,hazio/Rocket.Chat,Deepakkothandan/Rocket.Chat,acidsound/Rocket.Chat,matthewshirley/Rocket.Chat,alexbrazier/Rocket.Chat,Gyubin/Rocket.Chat,PavelVanecek/Rocket.Chat,yuyixg/Rocket.Chat,lukaroski/traden,ludiculous/Rock... |
bed87da341c3df5f6b8fb08f10f602001a838711 | app/assets/javascripts/hyper_admin/angularjs/controllers/form_ctrl.js.coffee | app/assets/javascripts/hyper_admin/angularjs/controllers/form_ctrl.js.coffee | angular.module("hyperadmin")
.controller "FormCtrl", ($scope, Restangular) ->
@submit = =>
target = @meta.target
method = @meta.method
onError = (response) =>
errors = response.data
onSuccess = (resource) =>
# Do nothing yet
if method == "post"
Restangular.... | angular.module("hyperadmin")
.controller "FormCtrl", ($scope, Restangular) ->
@submit = =>
target = @meta.target
method = @meta.method
onError = (response) =>
@errors = response.data
onSuccess = (resource) =>
# Do nothing yet
if method == "post"
Restangular... | Fix displaying error messages from forms | Fix displaying error messages from forms
| CoffeeScript | mit | hyperoslo/hyper_admin,hyperoslo/hyper_admin,hyperoslo/hyper_admin |
2687bc6b635b00dc1607c2e0ccee08d958692883 | components/form/utilities.coffee | components/form/utilities.coffee | _ = require 'underscore'
{ isTouchDevice } = require '../util/device.coffee'
module.exports =
firstVisibleInput: ($el) ->
$el.find('input:visible, textarea:visible').first()
moveCursorToEnd: ($input) ->
val = $input.val()
$input.val('').val val
autofocus: ($input, defer = false) ->
return if is... | _ = require 'underscore'
{ isTouchDevice } = require '../util/device.coffee'
module.exports =
firstVisibleInput: ($el) ->
$el.find('input:visible, textarea:visible').first()
moveCursorToEnd: ($input) ->
val = $input.val()
$input.val('').val val
isFocusable: ($el) ->
$el.is('input') or $el.is('t... | Allow autofocus to accept a container element | Allow autofocus to accept a container element
| CoffeeScript | mit | xtina-starr/force,anandaroop/force,oxaudo/force,yuki24/force,joeyAghion/force,anandaroop/force,joeyAghion/force,joeyAghion/force,erikdstock/force,joeyAghion/force,oxaudo/force,cavvia/force-1,yuki24/force,cavvia/force-1,mzikherman/force,izakp/force,kanaabe/force,eessex/force,anandaroop/force,eessex/force,cavvia/force-1,... |
c809c7dd87b39a4b74d2a848194813ae838e522d | components/RandomUuid.coffee | components/RandomUuid.coffee | noflo = require("noflo")
uuid = require("node-uuid")
class RandomUuid extends noflo.Component
description: "Generate a random UUID token"
constructor: ->
@inPorts =
in: new noflo.Port
@outPorts =
out: new noflo.Port
@inPorts.in.on "disconnect", =>
token = uuid.v4()
@outPorts.... | noflo = require('noflo')
uuid = require('node-uuid')
class RandomUuid extends noflo.Component
description: 'Generate a random UUID token'
constructor: ->
@inPorts =
in: new noflo.Port
@outPorts =
out: new noflo.Port
@inPorts.in.on 'begingroup', (group) =>
@outPorts.out.beginGroup g... | Send UUID on 'data' rather than 'disconnect' | Send UUID on 'data' rather than 'disconnect'
| CoffeeScript | mit | kenhkan/noflo-swiss,meticulo3366/noflo-swiss |
6220f78ade4e5b050fe43d007dde14c971b47c98 | server.coffee | server.coffee | require 'js-yaml'
socket = require 'socket.io'
solid = require 'solid'
{Engine} = require './engine'
engine = new Engine
moves: require './data/bw/moves.yml'
io = socket.listen solid (app) ->
app.get '/', @render ->
@doctype 5
@html ->
@head ->
@js '/socket.io/socket.io.js'
@script ... | require 'js-yaml'
socket = require 'socket.io'
solid = require 'solid'
{Engine} = require './engine'
engine = new Engine
moves: require './data/bw/moves.yml'
io = socket.listen solid (app) ->
app.get '/jquery.js', @jquery
app.get '/', @render ->
@doctype 5
@html ->
@head ->
@js '/jquery.j... | Add jQuery and show move data. | Add jQuery and show move data.
| CoffeeScript | mit | 6/battletower,pepijndevos/battletower,sarenji/pokebattle-sim,sarenji/pokebattle-sim,askii93/battletower,sarenji/pokebattle-sim |
eb144a76a04fa4765c26bb1595a173fac11e1aef | grammars/generic-config.cson | grammars/generic-config.cson | 'fileTypes': [
'gitattributes'
'gitignore'
'conf'
'ctags'
'hgignore'
'mailmap'
'stylelintignore'
'cfg'
]
'name': 'Generic Configuration'
'patterns': [
{
'include': '#comment'
}
]
'repository':
'comment':
'captures':
'1':
'name': 'comment.line.number-sign.generic-config'
... | 'fileTypes': [
'gitattributes'
'.config/git/ignore'
'.git/info/exclude'
'gitignore'
'conf'
'ctags'
'hgignore'
'mailmap'
'stylelintignore'
'cfg'
]
'name': 'Generic Configuration'
'patterns': [
{
'include': '#comment'
}
]
'repository':
'comment':
'captures':
'1':
'name': 'c... | Add support for gitignores other than .gitignore | Add support for gitignores other than .gitignore
| CoffeeScript | mit | lee-dohm/language-generic-config |
bf91d3fcc50bc181909794cabfdc01b61f70d102 | test/test_client.coffee | test/test_client.coffee | client = require 'nack/client'
process = require 'nack/process'
config = __dirname + "/fixtures/echo.ru"
exports.testClientRequest = (test) ->
test.expect 8
p = process.createProcess config
p.on 'ready', () ->
c = client.createConnection p.sockPath
test.ok c
request = c.request 'GET', '/foo', {}
... | client = require 'nack/client'
process = require 'nack/process'
config = __dirname + "/fixtures/echo.ru"
exports.testClientRequest = (test) ->
test.expect 10
p = process.createProcess config
p.on 'ready', () ->
c = client.createConnection p.sockPath
test.ok c
request = c.request 'GET', '/foo', {}... | Test client request is a writable stream | Test client request is a writable stream
| CoffeeScript | mit | josh/nack,josh/nack |
80cb00b8ad5f0da94eb359625b15ad56f28b91b0 | spec/file-icons-spec.coffee | spec/file-icons-spec.coffee | DefaultFileIcons = require '../lib/default-file-icons'
FileIcons = require '../lib/file-icons'
describe 'FileIcons', ->
afterEach ->
FileIcons.setService(new DefaultFileIcons)
it 'provides a default', ->
expect(FileIcons.getService()).toBeDefined()
expect(FileIcons.getService()).not.toBeNull()
it '... | DefaultFileIcons = require '../lib/default-file-icons'
FileIcons = require '../lib/file-icons'
describe 'FileIcons', ->
afterEach ->
FileIcons.setService(new DefaultFileIcons)
it 'provides a default', ->
expect(FileIcons.getService()).toBeDefined()
expect(FileIcons.getService()).not.toBeNull()
it '... | Add a spec for class-list enhancements | Add a spec for class-list enhancements
| CoffeeScript | mit | atom/tabs |
67eccb640b03fff0755d4be6417f0959dfd049a2 | app/assets/javascripts/todo_lists.js.coffee | app/assets/javascripts/todo_lists.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/
OUT.registerCreatedHandler "todo_list", (selector) ->
$(selector).find("a.new").click()
... | # 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/
OUT.registerCreatedHandler "todo_list", (selector) ->
$(selector).find("a.new").click()
... | Fix bug in transforming linked todo_list titles into plain text | Fix bug in transforming linked todo_list titles into plain text
| CoffeeScript | mit | rrrene/outline,rrrene/outline |
d8f703e552da06666a0448e2261cd4a143076069 | angular/core/models/stance_model.coffee | angular/core/models/stance_model.coffee | angular.module('loomioApp').factory 'StanceModel', (DraftableModel, AppConfig, MentionLinkService) ->
class StanceModel extends DraftableModel
@singular: 'stance'
@plural: 'stances'
@indices: ['pollId', 'authorId']
@serializableAttributes: AppConfig.permittedParams.stance
@draftParent: 'poll'
... | angular.module('loomioApp').factory 'StanceModel', (DraftableModel, AppConfig, MentionLinkService) ->
class StanceModel extends DraftableModel
@singular: 'stance'
@plural: 'stances'
@indices: ['pollId', 'authorId']
@serializableAttributes: AppConfig.permittedParams.stance
@draftParent: 'poll'
... | Set visitor attributes on stance construction | Set visitor attributes on stance construction
| CoffeeScript | agpl-3.0 | piratas-ar/loomio,piratas-ar/loomio,piratas-ar/loomio,loomio/loomio,loomio/loomio,piratas-ar/loomio,loomio/loomio,loomio/loomio |
12e4e82b915e009103c34d655a0ffaadc180dbae | src/core/types/utils.coffee | src/core/types/utils.coffee | # This file contains utilities to deal with prototype extensions.
#### def
# Defines a non-enumerable property on the specified constructor's `prototype`.
#
# def Object, merge: (o) ->
# # merge implementation
#
# {foo: 10}.merge bar: 20 # {foo: 10, bar: 20}
def = (ctor, o) ->
for name, value of o
... | # This file contains utilities to deal with prototype extensions.
#### def
# Defines a non-enumerable property on the specified constructor's `prototype`.
#
# def Object, merge: (o) ->
# # merge implementation
#
# {foo: 10}.merge bar: 20 # {foo: 10, bar: 20}
def = (ctor, o) ->
for name, value of o
... | Remove existence check in def and set defined properties as writable. | Remove existence check in def and set defined properties as writable.
| CoffeeScript | mit | abe33/neat,abe33/neat,abe33/neat,abe33/neat |
4505664671ba51e058a602e39223d7ae6b7b3cde | scripts/views/layouts/workspace/menu.coffee | scripts/views/layouts/workspace/menu.coffee | define [
'jquery'
'underscore'
'backbone'
'marionette'
'cs!collections/media-types'
'cs!views/workspace/menu/auth'
'cs!views/workspace/menu/add'
'cs!views/workspace/menu/toolbar-search'
'hbs!templates/layouts/workspace/menu'
], ($, _, Backbone, Marionette, mediaTypes, AuthView, AddView, toolbarView, m... | define [
'jquery'
'underscore'
'backbone'
'marionette'
'cs!collections/media-types'
'cs!session'
'cs!views/workspace/menu/auth'
'cs!views/workspace/menu/add'
'cs!views/workspace/menu/toolbar-search'
'hbs!templates/layouts/workspace/menu'
], ($, _, Backbone, Marionette, mediaTypes, session, AuthView,... | Include session in AuthView constructor | Include session in AuthView constructor
| CoffeeScript | agpl-3.0 | oerpub/github-bookeditor,oerpub/github-bookeditor,oerpub/bookish,oerpub/github-bookeditor,oerpub/bookish |
135e453299767efa733e02434f2e7a8a09eb74d6 | server/methods/updateRoom.coffee | server/methods/updateRoom.coffee | Meteor.methods
updateRoom: (rid, name, users, accessPermissions) ->
if not Meteor.userId()
throw new Meteor.Error('invalid-user', "[methods] updateRoom -> Invalid user")
room = ChatRoom.findOne rid
if room.t not in ['d'] and name? and name isnt room.name
Meteor.call 'saveRoomName', rid, name
Meteor.ca... | Meteor.methods
updateRoom: (rid, name, usernames, accessPermissions) ->
console.log '[method] updateRoom -> arguments', arguments
if not Meteor.userId()
throw new Meteor.Error('invalid-user', "[methods] updateRoom -> Requires authenticated user")
# validate params exist
unless rid and name and usernames ... | Validate parameters, and: 1. check that room creator is not removed 2. relabel room if access permissions changed 3. add new members that we're previously in the room 4. remove existing members that should no longer be in the room | Validate parameters, and:
1. check that room creator is not removed
2. relabel room if access permissions changed
3. add new members that we're previously in the room
4. remove existing members that should no longer be in the room
| CoffeeScript | mit | sscpac/chat-locker,sscpac/chat-locker,sscpac/chat-locker |
0ce8f6bf811901d8e4156429b559e8be5c1bc38c | src/trix/views/image_attachment_view.coffee | src/trix/views/image_attachment_view.coffee | class Trix.ImageAttachmentView
constructor: (@attachment) ->
@attachment.delegate = this
@image = document.createElement("img")
render: ->
@loadPreview() if @attachment.isPending()
@updateImageAttributes()
@image
loadPreview: ->
reader = new FileReader
reader.onload = (event) =>
... | class Trix.ImageAttachmentView
constructor: (@attachment) ->
@attachment.delegate = this
@image = document.createElement("img")
render: ->
@loadFile() if @attachment.isPending()
@updateImageAttributes()
@image
loadFile: ->
reader = new FileReader
reader.onload = (event) =>
if @... | Set image dimensions after loading the File | Set image dimensions after loading the File
| CoffeeScript | mit | GabiGrin/trix,basecamp/trix,basecamp/trix,ChenMichael/trix,GabiGrin/trix,urossmolnik/trix,GabiGrin/trix,ChenMichael/trix,basecamp/trix,urossmolnik/trix,urossmolnik/trix,basecamp/trix,ChenMichael/trix |
b36206ca3bc19b06fc460204601eba254ab395b1 | menus/bracket-matcher.cson | menus/bracket-matcher.cson | 'menu': [
{
'label': 'Packages'
'submenu': [
'label': 'Bracket Matcher'
'submenu': [
{ 'label': 'Go To Matching Bracket', 'command': 'bracket-matcher:go-to-matching-bracket' }
{ 'label': 'Select Inside Brackets', 'command': 'bracket-matcher:select-inside-brackets' }
{ 'labe... | 'menu': [
{
'label': 'Packages'
'submenu': [
'label': 'Bracket Matcher'
'submenu': [
{ 'label': 'Go To Matching Bracket', 'command': 'bracket-matcher:go-to-matching-bracket' }
{ 'label': 'Select Inside Brackets', 'command': 'bracket-matcher:select-inside-brackets' }
{ 'labe... | Add Select Inside Brackets to Selection menu | Add Select Inside Brackets to Selection menu
| CoffeeScript | mit | adamCoGithub/Bracket-Matcher-no-smart-quotes,adamCoGithub/Bracket-Matcher-no-autoclose,adamCoGithub/Bracket-Matcher-no-smart-quotes,lpommers/bracket-matcher,lpommers/bracket-matcher,jacekkopecky/bracket-matcher,jacekkopecky/bracket-matcher,atom/bracket-matcher,bwinton/bracket-matcher,adamCoGithub/Bracket-Matcher-no-aut... |
0aee6d89bfbb6b376d918e0028b5a84770eb6b25 | src/the-more-you-know.coffee | src/the-more-you-know.coffee | module.exports = (robot) ->
robot.hear /the more you know/, (msg) ->
msg.reply "http://www.youtube.com/watch?v=v3rhQc666Sg"
| module.exports = (robot) ->
robot.hear /the more you know/, (msg) ->
msg.send "http://www.youtube.com/watch?v=v3rhQc666Sg"
| Change to post in channel not reply. | Change to post in channel not reply.
| CoffeeScript | mit | lightcap/hubot-the-more-you-know |
9130af5295cbebaf143bae7e87c906f294d745fb | community/server/src/main/coffeescript/test/neo4j/webadmin/modules/databrowser/views/TestPropertyContainerView.coffee | community/server/src/main/coffeescript/test/neo4j/webadmin/modules/databrowser/views/TestPropertyContainerView.coffee |
define ['lib/amd/Backbone','neo4j/webadmin/modules/databrowser/views/PropertyContainerView'], (Backbone, PropertyContainerView) ->
# TODO: Refactor out the "shouldBeConvertedToString" into it's own class
describe "PropertyContainerView", ->
pcv = new PropertyContainerView(template:null)
it "recogni... |
define ['lib/amd/Backbone','neo4j/webadmin/modules/databrowser/views/PropertyContainerView'], (Backbone, PropertyContainerView) ->
# TODO: Refactor out the "shouldBeConvertedToString" into it's own class
describe "PropertyContainerView", ->
pcv = new PropertyContainerView(template:null)
it "recogni... | Remove a test that fails in TeamCity. | Remove a test that fails in TeamCity.
There is no obvious reason why this test should fail, but since
Webadmin has been replaced by the Browser, there doesn't seem to be any
point trying to work out what is going on.
| CoffeeScript | apache-2.0 | HuangLS/neo4j,HuangLS/neo4j,HuangLS/neo4j,HuangLS/neo4j,HuangLS/neo4j |
cbd9622719e477ac693abf58fd3e20b1398e4d6a | src/PaginationStream.coffee | src/PaginationStream.coffee | reqr = if global.GENTLY then GENTLY.hijack(require) else require
stream = reqr "stream"
class PaginationStream extends stream.Readable
constructor: (fetchPage) ->
super objectMode: true
@_fetchPage = fetchPage
@_pageno = 0
@_items = []
@_itemsRead = 0
_read: ->
if @... | reqr = if global.GENTLY then GENTLY.hijack(require) else require
TransloaditClient = reqr "./TransloaditClient"
stream = reqr "stream"
class PaginationStream extends stream.Readable
constructor: (@_fetchPage) ->
super objectMode: true
@_pageno = 0
@_items = []
@_itemsRead = 0
... | Revert "Some nice warnings away" | Revert "Some nice warnings away"
This reverts commit 1e04dc556af840e0e4571e287135e510245524d7.
| CoffeeScript | mit | transloadit/node-sdk,adrusi/node-sdk,transloadit/node-sdk |
4d2d1f46760181a403e2e5392848a8faabe71a02 | concerns/observes-viewport.coffee | concerns/observes-viewport.coffee | ###
Use intersection observer to lazy load. Not using vue-in-viewport-mixin since
needs are simpler and I want more control.
###
export default
props:
intersectionOptions:
type: Object
default: -> {}
data: -> inViewport: false
mounted: ->
return unless @shouldObserve and IntersectionObserver?
@obser... | ###
Use intersection observer to lazy load. Not using vue-in-viewport-mixin since
needs are simpler and I want more control.
###
export default
props:
intersectionOptions:
type: Object
default: -> {}
data: -> inViewport: false
# Start observing on init
mounted: -> @startObserving()
computed:
# C... | Move initializing of observing into a method | Move initializing of observing into a method
| CoffeeScript | mit | BKWLD/vue-visual |
959e98543eda4266de4c83d2edece5b110514e12 | test/user/model.spec.coffee | test/user/model.spec.coffee | {Testing, expect, sinon, _} = require 'openstax-react-components/test/helpers'
User = require 'user/model'
describe 'User', ->
it 'defaults to not logged in', ->
expect(User.isLoggedIn()).to.be.false
| {Testing, expect, sinon, _} = require 'openstax-react-components/test/helpers'
User = require 'user/model'
describe 'User', ->
it 'defaults to not logged in', ->
expect(User.isLoggedIn()).to.be.false
it 'resets courses when destroy is called, but still emits signals', ->
fakeCourse =
destroy: -> ... | Test logout signal is emitted after destroy | Test logout signal is emitted after destroy
| CoffeeScript | agpl-3.0 | openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js |
f42bd3f34bdc899e2528aad0a40dc426a147df99 | src/config-observer.coffee | src/config-observer.coffee | module.exports =
observeConfig: (keyPath, args...) ->
@configSubscriptions ?= {}
@configSubscriptions[keyPath] = config.observe(keyPath, args...)
unobserveConfig: ->
for keyPath, subscription of @configSubscriptions ? {}
subscription.cancel()
| module.exports =
observeConfig: (keyPath, args...) ->
@configSubscriptions ?= {}
@configSubscriptions[keyPath] = config.observe(keyPath, args...)
unobserveConfig: ->
if @configSubscriptions?
subscription.cancel() for keyPath, subscription of @configSubscriptions
@configSubscriptions = null
| Clear config subscriptions when unobserving | :non-potable_water: Clear config subscriptions when unobserving
| CoffeeScript | mit | originye/atom,SlimeQ/atom,acontreras89/atom,rmartin/atom,crazyquark/atom,acontreras89/atom,rsvip/aTom,dsandstrom/atom,githubteacher/atom,alfredxing/atom,erikhakansson/atom,NunoEdgarGub1/atom,n-riesco/atom,harshdattani/atom,Jonekee/atom,RobinTec/atom,florianb/atom,qskycolor/atom,DiogoXRP/atom,KENJU/atom,ilovezy/atom,kit... |
2561cef3cd63de769d6e2897dd1e4f97fef3aade | public/coffee/views/databaseItemView.coffee | public/coffee/views/databaseItemView.coffee | class window.DatabaseItemView extends Backbone.View
tagName: 'li'
className: 'databaseItem'
events:
'click .databaseItem span': 'gotoDatabase',
'click .databaseItem a': 'toggleCollections'
initialize: ->
@template = _.template $('#databaseItemTemplate').html()
render: ->
id = @model.get '_i... | class window.DatabaseItemView extends Backbone.View
tagName: 'li'
className: 'databaseItem'
events:
'click .databaseItem span': 'gotoDatabase',
'click .databaseItem a': 'toggleCollections'
initialize: ->
@template = _.template $('#databaseItemTemplate').html()
render: ->
id = @model.get '_i... | Remove function to open collections when clicking on the database label in the tree | Remove function to open collections when clicking on the database label in the tree
| CoffeeScript | mit | stevehook/mongo-manager,stevehook/mongo-manager,stevehook/mongo-manager |
3be91fe6463f4b64474ec9c02b49748be22bd767 | app/assets/javascripts/martian_components/components/utils/full_height_header.coffee | app/assets/javascripts/martian_components/components/utils/full_height_header.coffee | # USE
# If the element is not a component, add full-height-header attribute to the tag.
# With a component, add 'full_height_header: true' to the persisted options
class @MC.Utils.FullHeightHeader
@autoInit: ->
$('[full-height-header]').each (i, el) => new @($(el))
constructor: (@el) ->
@component = @el.da... | # USE
# If the element is not a component, add full-height-header attribute to the tag.
# With a component, add 'full_height_header: true' to the persisted options
class @MC.Utils.FullHeightHeader
@autoInit: ->
$('[full-height-header]').each (i, el) => new @($(el))
constructor: (@el) ->
@el.data('fullHeigh... | Update Utils.FullHeightHeader. Put instance into @el so @el can access @compute() | Update Utils.FullHeightHeader. Put instance into @el so @el can access @compute()
| CoffeeScript | mit | polomarte/martian_components,polomarte/martian_components,polomarte/martian_components |
fcae688b43af527feba63986a9248c6f09d03c91 | app/assets/javascripts/components/GlobalHeader.js.cjsx | app/assets/javascripts/components/GlobalHeader.js.cjsx | $ ->
GlobalHeader = React.createClass
propTypes:
imagePath: React.PropTypes.string.isRequired
imageTitle: React.PropTypes.string.isRequired
render: ->
<h1 className="GlobalHeader-heading">
<img src={@props.imagePath} alt={@props.imageTitle} title={@props.imageTitle} />
</h1>
... | $ ->
GlobalHeader = React.createClass
propTypes:
imagePath: React.PropTypes.string.isRequired
imageTitle: React.PropTypes.string.isRequired
render: ->
<h1 className="GlobalHeader-heading">
<a href="https://github.com/ruedap/nekostagram">
<img src={@props.imagePath} alt={@pr... | Add link to global header | Add link to global header
| CoffeeScript | mit | ruedap/nekostagram,ruedap/nekostagram,ruedap/nekostagram,ruedap/nekostagram |
b4f0b765563f5aae24f33cba3f3cb9875a479d34 | app/assets/javascripts/neighborly/neighborly.js.coffee | app/assets/javascripts/neighborly/neighborly.js.coffee | #= require_self
#= require_tree .
window.Neighborly =
Common:
initPage: ->
that = this
unless window.Turbolinks is undefined
$(document).bind "page:fetch", ->
that.Loading.show()
$(document).bind "page:restore", ->
that.Loading.hide()
$(document).bind "pa... | #= require_self
#= require_tree .
window.Neighborly =
Common:
initPage: ->
that = this
unless window.Turbolinks is undefined
$(document).bind "page:fetch", ->
that.Loading.show()
$(document).bind "page:restore", ->
that.Loading.hide()
$(document).bind "pa... | Add javascript for search button | Add javascript for search button
| CoffeeScript | mit | MicroPasts/micropasts-crowdfunding,jinutm/silverprod,raksonibs/raimcrowd,MicroPasts/micropasts-crowdfunding,rockkhuya/taydantay,jinutm/silverme,jinutm/silverclass,jinutm/silverclass,jinutm/silvfinal,raksonibs/raimcrowd,raksonibs/raimcrowd,jinutm/silveralms.com,jinutm/silverclass,jinutm/silveralms.com,jinutm/silveralms.... |
de635410498f0fb3bd293a8636c20bf759b54c68 | lms/static/coffee/spec/requirejs_spec.coffee | lms/static/coffee/spec/requirejs_spec.coffee | describe "RequireJS", ->
beforeEach ->
@addMatchers
requirejsTobeUndefined: ->
typeof requirejs is "undefined"
requireTobeUndefined: ->
typeof require is "undefined"
defineTobeUndefined: ->
typeof define is "undefined"
it "check that the RequireJS object is present ... | describe "RequireJS", ->
beforeEach ->
@addMatchers
requirejsTobeUndefined: ->
typeof requirejs is "undefined"
requireTobeUndefined: ->
typeof require is "undefined"
defineTobeUndefined: ->
typeof define is "undefined"
it "check that the RequireJS object is present ... | Work on RequireJS Jasmine test. | Work on RequireJS Jasmine test.
| CoffeeScript | agpl-3.0 | motion2015/a3,sameetb-cuelogic/edx-platform-test,UXE/local-edx,CredoReference/edx-platform,JCBarahona/edX,zubair-arbi/edx-platform,tanmaykm/edx-platform,ahmedaljazzar/edx-platform,rationalAgent/edx-platform-custom,kursitet/edx-platform,kxliugang/edx-platform,Shrhawk/edx-platform,xinjiguaike/edx-platform,PepperPD/edx-pe... |
1c5686e9bffb90ccba3e0077e68e1e8f03ac5882 | lib/builder.coffee | lib/builder.coffee | _ = require "underscore-plus"
module.exports =
class Builder
constructor: ->
@envPathKey = switch process.env.platform
when "win32" then "Path"
else "PATH"
run: -> null
constructArgs: -> null
parseLogFile: (texFilePath) -> null
constructChildProcessOptions: ->
env = _.clone(process.env)... | _ = require "underscore-plus"
module.exports =
class Builder
constructor: ->
@envPathKey = switch process.env.platform
when "win32" then "Path"
else "PATH"
run: (args, callback) -> null
constructArgs: (filePath) -> null
parseLogFile: (texFilePath) -> null
constructChildProcessOptions: ->
... | Adjust `Builder` signature to match implementations | Adjust `Builder` signature to match implementations
| CoffeeScript | mit | WoodyWoodsta/atom-latex,thomasjo/atom-latex,thomasjo/atom-latex,WoodyWoodsta/atom-latex,thomasjo/atom-latex |
4efdf95846dcea4b95153fa41f4825a870dd0cfc | lib/builder.coffee | lib/builder.coffee | _ = require "underscore-plus"
module.exports =
class Builder
constructor: ->
@envPathKey = switch process.env.platform
when "win32" then "Path"
else "PATH"
run: (args, callback) -> null
constructArgs: (filePath) -> null
parseLogFile: (texFilePath) -> null
constructChildProcessOptions: ->
... | _ = require "underscore-plus"
path = require "path"
module.exports =
class Builder
constructor: ->
@envPathKey = switch process.env.platform
when "win32" then "Path"
else "PATH"
run: (args, callback) -> null
constructArgs: (filePath) -> null
parseLogFile: (texFilePath) -> null
constructChil... | Fix bug due to accidental use of `path` module | Fix bug due to accidental use of `path` module
The function `Builder::resolveLogFilePath` uses `path` module rather than
the `path` variable. Changes variable name to `childPath` and requires
the `path` module.
Closes #28
| CoffeeScript | mit | thomasjo/atom-latex,WoodyWoodsta/atom-latex,WoodyWoodsta/atom-latex,thomasjo/atom-latex,thomasjo/atom-latex |
19e9388dea8d7b3cdf8991df2f14d04ccd91f8b8 | src/api/settings.coffee | src/api/settings.coffee | settings =
# to customize, set environmental var BASE_URL when building or running webpack-dev-server
# Currently is set on an endpoint by endpoint basis until all are implemented by BE
# baseUrl: process?.env?.BASE_URL
endpoints:
'exercise.*.send.save':
url: 'api/steps/{id}'
method: 'PATCH'
... | settings =
# to customize, set environmental var BASE_URL when building or running webpack-dev-server
# Currently is set on an endpoint by endpoint basis until all are implemented by BE
# baseUrl: process?.env?.BASE_URL
endpoints:
'exercise.*.send.save':
url: 'api/steps/{id}'
method: 'PATCH'
... | Allow /auth/status to use credentials (cookies) | Allow /auth/status to use credentials (cookies)
| CoffeeScript | agpl-3.0 | openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js |
c6847671c9595d47241807146799753e7e37456a | test/user/menu.spec.coffee | test/user/menu.spec.coffee | {Testing, expect, sinon, _} = require 'openstax-react-components/test/helpers'
Menu = require 'user/menu'
User = require 'user/model'
Course = require 'course/model'
sandbox = null
describe 'User menu component', ->
beforeEach ->
@props =
course: new Course(ecosystem_book_uuid: 'test-collection-uuid')
... | {Testing, expect, sinon, _} = require 'openstax-react-components/test/helpers'
Menu = require 'user/menu'
User = require 'user/model'
Course = require 'course/model'
sandbox = null
describe 'User menu component', ->
beforeEach ->
@props =
course: new Course(ecosystem_book_uuid: 'test-collection-uuid')
... | Update menu test to match new options | Update menu test to match new options
| CoffeeScript | agpl-3.0 | openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js |
4507c87d55adbc01040a98d6f3aca9c0bf2d555d | app/js/jail_iframe/classes/notification.coffee | app/js/jail_iframe/classes/notification.coffee | FactlinkJailRoot.showShouldSelectTextNotification = ->
showNotification
message: 'To create an annotation, select a statement and click the Factlink button.'
type_classes: 'fl-message-icon-add'
FactlinkJailRoot.showLoadedNotification = ->
showNotification
message: 'Factlink is loaded!'
type_classes... | FactlinkJailRoot.showShouldSelectTextNotification = ->
showNotification
message: 'To create an annotation, select a statement and click the Factlink button.'
type_classes: 'fl-message-icon-add'
FactlinkJailRoot.showLoadedNotification = ->
showNotification
message: 'Factlink is loaded!'
type_classes... | Trim remove_delay down closer to transition duration | Trim remove_delay down closer to transition duration
| CoffeeScript | mit | Factlink/js-library,Factlink/js-library,Factlink/js-library |
0eefed1e133759afc1f06986bccf2792a9fcefa1 | app/assets/javascripts/events.coffee | app/assets/javascripts/events.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://coffeescript.org/
$ ->
$('#starts-at-datetime-picker').datetimepicker
locale: 'de'
$('#ends-at-datetime-picker').dateti... | # 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://coffeescript.org/
$ ->
$('#starts-at-datetime-picker').datetimepicker
locale: 'de'
$('#ends-at-datetime-picker').dateti... | Fix added shifts' datetimepickers not working | Fix added shifts' datetimepickers not working
| CoffeeScript | agpl-3.0 | where2help/where2help,where2help/where2help,where2help/where2help |
da975b5807d2df8f40266578991646447887adac | 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... | # 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 status jekyll/jekyll 2004
# hubot status 2004
#
# Notes:
# HUBOT_GITHUB_API allow... | Update Commands section of header | Update Commands section of header
| CoffeeScript | mit | jekyll/hyde,octopress/octobopper |
0e478ff501334eddc633cb7384eb087bf51fc2fc | app/assets/javascripts/admin/orders/controllers/bulk_invoice_controller.js.coffee | app/assets/javascripts/admin/orders/controllers/bulk_invoice_controller.js.coffee | angular.module("admin.orders").controller "bulkInvoiceCtrl", ($scope, $http, $timeout) ->
$scope.createBulkInvoice = ->
$scope.invoice_id = null
$scope.poll = 1
$scope.loading = true
$scope.message = null
$scope.error = null
$http.post('/admin/orders/invoices', {order_ids: $scope.selected_ord... | angular.module("admin.orders").controller "bulkInvoiceCtrl", ($scope, $http, $timeout) ->
$scope.createBulkInvoice = ->
$scope.invoice_id = null
$scope.poll = 1
$scope.loading = true
$scope.message = null
$scope.error = null
$http.post('/admin/orders/invoices', {order_ids: $scope.selected_ord... | Increase polling to 150 seconds maximum before showing error message. | Increase polling to 150 seconds maximum before showing error message.
| CoffeeScript | agpl-3.0 | Matt-Yorkley/openfoodnetwork,Matt-Yorkley/openfoodnetwork,lin-d-hop/openfoodnetwork,Matt-Yorkley/openfoodnetwork,openfoodfoundation/openfoodnetwork,openfoodfoundation/openfoodnetwork,openfoodfoundation/openfoodnetwork,lin-d-hop/openfoodnetwork,mkllnk/openfoodnetwork,mkllnk/openfoodnetwork,lin-d-hop/openfoodnetwork,mkll... |
96f22912dc92880700cae88feea12c7af87edd48 | spec/helpers-spec.coffee | spec/helpers-spec.coffee | describe 'helpers', ->
helpers = require('../lib/helpers')
beforeEach ->
atom.notifications.clear()
describe '::error', ->
it 'adds an error notification', ->
helpers.error(new Error())
expect(atom.notifications.getNotifications().length).toBe(1)
describe '::shouldTriggerLinter', ->
no... | describe 'helpers', ->
helpers = require('../lib/helpers')
beforeEach ->
atom.notifications.clear()
describe '::showError', ->
it 'adds an error notification', ->
helpers.showError(new Error())
expect(atom.notifications.getNotifications().length).toBe(1)
describe '::shouldTriggerLinter', -... | Upgrade helper specs to match latest module | :arrow_up: Upgrade helper specs to match latest module
| CoffeeScript | mit | steelbrain/linter,atom-community/linter,AtomLinter/Linter |
6fac942cbaad10e2531492b0020f0df0ae8a05b6 | js/binding/src/binding.coffee | js/binding/src/binding.coffee | do (_=_, $ = jQuery || null, JEFRi = JEFRi) ->
JEFRi.Template.rendered.entity :> ([entity, $render]) ->
definition = entity._definition()
for field, property of definition.properties
behaviors.editField entity, field, property, $render
behaviors =
editField: (entity, field, property, $parent) ->
$view = ... | do (_=_, $ = jQuery || null, JEFRi = JEFRi) ->
JEFRi.Template.rendered.entity :> ([entity, $render]) ->
definition = entity._definition()
for field, property of definition.properties
behaviors.editField entity, field, property, $render
behaviors =
editField: (entity, field, property, $parent) ->
$view = ... | Update view and entity on value change. | Update view and entity on value change.
| CoffeeScript | mit | DavidSouther/JEFRi,DavidSouther/JEFRi,DavidSouther/JEFRi,DavidSouther/JEFRi |
ea88407f92ff18acdcd7dadef4cb7b0ec322f9bc | app/assets/javascripts/repositories.js.coffee | app/assets/javascripts/repositories.js.coffee | #= require leaflet
$ ->
map = L.map('map').setView [51.505, -0.09], 2
L.tileLayer('http://{s}.tile.cloudmade.com/aff7873cf13349fe803e6a003f5c62bc/997/256/{z}/{x}/{y}.png', {
attribution: "Metadata Census",
maxZoom: 18
}).addTo(map)
| #= require leaflet
$ ->
map = L.map('map').setView [51.505, -0.09], 2
L.tileLayer('http://otile{s}.mqcdn.com/tiles/1.0.0/{type}/{z}/{x}/{y}.png', {
attribution: null,
subdomains: '1234',
type: 'osm',
}).addTo(map)
| Replace Leaflet tile with MapQuest tile | Replace Leaflet tile with MapQuest tile
I have replaced the Leaflet tile with the MaoQuest-OSM Tile.
Signed-off-by: Konrad Reiche <4ff0213f56e2082fcd8c882d04c546881c579ce4@gmail.com>
| CoffeeScript | mit | platzhirsch/metadata-census |
0f4d8bf51c8f49a1dd33cca848034e8cb3df630a | src/extensions/outline-view/src/keymap.coffee | src/extensions/outline-view/src/keymap.coffee | window.keymap.bindKeys '.editor'
'meta-j': 'outline-view:toggle'
'f3': 'outline-view:jump-to-declaration'
| window.keymap.bindKeys '.editor'
'meta-j': 'outline-view:toggle'
'meta-.': 'outline-view:jump-to-declaration'
| Use meta-. to jump to declaration | Use meta-. to jump to declaration
| CoffeeScript | mit | woss/atom,Jonekee/atom,bj7/atom,Locke23rus/atom,prembasumatary/atom,svanharmelen/atom,bradgearon/atom,niklabh/atom,matthewclendening/atom,transcranial/atom,chfritz/atom,palita01/atom,harshdattani/atom,tisu2tisu/atom,burodepeper/atom,tjkr/atom,Andrey-Pavlov/atom,SlimeQ/atom,scv119/atom,Shekharrajak/atom,0x73/atom,Jdesk/... |
2d9fac51ced00510d05483790149a0baed18a2e9 | plugins/bitbucket-issues/index.coffee | plugins/bitbucket-issues/index.coffee | NotificationPlugin = require "../../notification-plugin"
url = require "url"
qs = require 'qs'
class BitbucketIssue extends NotificationPlugin
@receiveEvent: (config, event, callback) ->
query_object =
"title": @title(event)
"content": @markdownBody(event)
"kind": config.kind
"prior... | NotificationPlugin = require "../../notification-plugin"
url = require "url"
qs = require 'qs'
class BitbucketIssue extends NotificationPlugin
BASE_URL = "https://bitbucket.org"
@receiveEvent: (config, event, callback) ->
query_object =
"title": @title(event)
"content": @markdownBody(event)
... | Fix Bitbucket to use url | Fix Bitbucket to use url | CoffeeScript | mit | kstream001/bugsnag-notification-plugins,6wunderkinder/bugsnag-notification-plugins,korealert/bugsnag-notification-plugins,sharesight/bugsnag-notification-plugins,indirect/bugsnag-notification-plugins,korealert/bugsnag-notification-plugins,6wunderkinder/bugsnag-notification-plugins,jacobmarshall/bugsnag-notification-plu... |
b36c3209ff60f93387e9ed91e7b0ad1d211b7d1e | src/set/set_proxy.coffee | src/set/set_proxy.coffee | #= require ../object
#= require ./set
class Batman.SetProxy extends Batman.Object
constructor: (@base) ->
super()
@length = @base.length
@base.on 'itemsWereAdded', (items...) =>
@set 'length', @base.length
@fire('itemsWereAdded', items...)
@base.on 'itemsWereRemoved', (items...) =>
... | #= require ../object
#= require ./set
class Batman.SetProxy extends Batman.Object
constructor: (@base) ->
super()
@length = @base.length
@base.on 'itemsWereAdded', (items...) =>
@set 'length', @base.length
@fire('itemsWereAdded', items...)
@base.on 'itemsWereRemoved', (items...) =>
... | Apply setAccessors to SetSort before we override them. | Apply setAccessors to SetSort before we override them.
| CoffeeScript | mit | getshuvo/batman,getshuvo/batman |
97ed1072c8041693ae2a262800791ea1268e6b84 | test/runtime_test.coffee | test/runtime_test.coffee | assert = require("assert")
SpyReader = require "./helpers/spy_reader"
ts = require("..")
{ repeat, seq } = ts.rules
grammar = ts.grammar
name: 'trivial_grammar'
start: 'paragraph'
rules:
paragraph: -> repeat(@sentence)
sentence: -> seq repeat(@word), "."
word: -> /\w+/
cCode = ts.compile(grammar)
li... | assert = require("assert")
SpyReader = require "./helpers/spy_reader"
ts = require("..")
{ repeat, seq } = ts.rules
grammar = ts.grammar
name: 'trivial_grammar'
rules:
paragraph: -> repeat(@sentence)
sentence: -> seq repeat(@word), "."
word: -> /\w+/
cCode = ts.compile(grammar)
libPath = ts.buildParse... | Remove unused grammar property in runtime test | Remove unused grammar property in runtime test | CoffeeScript | mit | tree-sitter/node-tree-sitter,maxbrunsfeld/node-tree-sitter,maxbrunsfeld/node-tree-sitter,tree-sitter/node-tree-sitter,maxbrunsfeld/node-tree-sitter,tree-sitter/node-tree-sitter |
e8a7687236ef360c929a31e14a03ad78842ac74e | app/assets/javascripts/sprangular/services/status.coffee | app/assets/javascripts/sprangular/services/status.coffee | Sprangular.service "Status", ($rootScope, $translate) ->
status =
initialized: false
pageTitle: "Home"
bodyClasses: {default: true}
requestedPath: null
httpLoading: false
routeChanging: false
cachedProducts: []
meta: {}
isLoading: ->
@httpLoading || @routeChanging
cach... | Sprangular.service "Status", ($rootScope, $translate) ->
status =
initialized: false
pageTitle: "Home"
bodyClasses: {default: true}
requestedPath: null
httpLoading: false
routeChanging: false
cachedProducts: []
meta: {}
isLoading: ->
@httpLoading || @routeChanging
cach... | Add `.loading` class to body when `Status.isLoading` | Add `.loading` class to body when `Status.isLoading`
| CoffeeScript | mit | sprangular/sprangular,sprangular/sprangular,sprangular/sprangular |
48dc6bf0f07bc909ed7b26e7fd495a2b0b5dc37d | apps/pro_buyer/index.coffee | apps/pro_buyer/index.coffee | express = require 'express'
adminOnly = require '../../lib/middleware/admin_only'
JSONPage = require '../../components/json_page'
app = module.exports = express()
app.set 'views', __dirname
app.set 'view engine', 'jade'
page = new JSONPage
name: 'professional-buyer',
paths:
show: '/professional-buyer'
edi... | express = require 'express'
adminOnly = require '../../lib/middleware/admin_only'
JSONPage = require '../../components/json_page'
app = module.exports = express()
app.set 'views', __dirname
app.set 'view engine', 'jade'
page = new JSONPage
name: 'professional-buyer',
paths:
show: '/professional-buyer'
edi... | Update naming and remove admin restrictions | Update naming and remove admin restrictions
| CoffeeScript | mit | anandaroop/force,izakp/force,kanaabe/force,dblock/force,yuki24/force,izakp/force,kanaabe/force,erikdstock/force,izakp/force,dblock/force,kanaabe/force,anandaroop/force,damassi/force,mzikherman/force,cavvia/force-1,mzikherman/force,kanaabe/force,joeyAghion/force,oxaudo/force,eessex/force,artsy/force,artsy/force-public,d... |
4f67758caa6097e5b78b809b6711b37c1e05e9bf | server/controllers/stack_application.coffee | server/controllers/stack_application.coffee | request = require("request-json")
fs = require('fs')
slugify = require 'cozy-slug'
{AppManager} = require '../lib/paas'
spawn = require('child_process').spawn
log = require('printit')
prefix: "applications"
StackApplication = require ... | request = require("request-json")
fs = require('fs')
slugify = require 'cozy-slug'
spawn = require('child_process').spawn
log = require('printit')
prefix: "applications"
{AppManager} = require '../lib/paas'
StackApplication = require ... | Clean requires in stack application module (server) | Clean requires in stack application module (server)
| CoffeeScript | agpl-3.0 | frankrousseau/cozy-home,jsilvestre/cozy-home,frankrousseau/cozy-home,jsilvestre/cozy-home,clochix/cozy-home,lemelon/cozy-home,clochix/cozy-home,babolivier/cozy-home,babolivier/cozy-home,lemelon/cozy-home |
533bb0a832f47886d749b1303b2de567c4c86ee6 | test/integration/home_nologin.coffee | test/integration/home_nologin.coffee | should = require 'should'
{wd40, browser} = require('../wd40')
url = 'http://localhost:3001'
describe 'Home page (not logged in)', ->
before (done) ->
wd40.init ->
browser.get url, done
before (done) =>
wd40.getText 'body', (err, text) =>
@bodyText = text
done()
it 'tells me about th... | should = require 'should'
{wd40, browser} = require('../wd40')
url = 'http://localhost:3001'
describe 'Home page (not logged in)', ->
before (done) ->
wd40.init ->
browser.get url, done
before (done) =>
wd40.getText 'body', (err, text) =>
@bodyText = text
done()
it 'tells me about th... | Fix home not logged in test | Fix home not logged in test
| CoffeeScript | agpl-3.0 | scraperwiki/custard,scraperwiki/custard,scraperwiki/custard |
ab53865d66ca40fd705aa251598458f010c47fbd | test/node_http_client.spec.coffee | test/node_http_client.spec.coffee | # Copyright 2012-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You
# may not use this file except in compliance with the License. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" fil... | # Copyright 2012-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You
# may not use this file except in compliance with the License. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" fil... | Build correct endpoint in NodeHttpClient test | Build correct endpoint in NodeHttpClient test
| CoffeeScript | apache-2.0 | chrisradek/aws-sdk-js,GlideMe/aws-sdk-js,ugie/aws-sdk-js,prestomation/aws-sdk-js,odeke-em/aws-sdk-js,guymguym/aws-sdk-js,aws/aws-sdk-js,LiuJoyceC/aws-sdk-js,jippeholwerda/aws-sdk-js,mapbox/aws-sdk-js,jmswhll/aws-sdk-js,GlideMe/aws-sdk-js,dconnolly/aws-sdk-js,AdityaManohar/aws-sdk-js,misfitdavidl/aws-sdk-js,j3tm0t0/aws-... |
61031e8a31884da551f8b596bd48be83767d3402 | lib/markdown-preview-view.coffee | lib/markdown-preview-view.coffee | fs = require 'fs'
$ = require 'jquery'
ScrollView = require 'scroll-view'
{$$$} = require 'space-pen'
module.exports =
class MarkdownPreviewView extends ScrollView
registerDeserializer(this)
@deserialize: ({path}) ->
new MarkdownPreviewView(project.bufferForPath(path))
@content: ->
@div class: 'markdow... | fs = require 'fs'
$ = require 'jquery'
ScrollView = require 'scroll-view'
{$$$} = require 'space-pen'
module.exports =
class MarkdownPreviewView extends ScrollView
registerDeserializer(this)
@deserialize: ({path}) ->
new MarkdownPreviewView(project.bufferForPath(path))
@content: ->
@div class: 'markdow... | Allow markdown preview view to be scrolled with core:move-up/move-down | Allow markdown preview view to be scrolled with core:move-up/move-down
| CoffeeScript | mit | makyo/markdown-preview,atom/markdown-preview,danielgtaylor/atom-api-blueprint-preview,rugk/markdown-preview,ArnaudRinquin/markdown-preview,Galadirith/markdown-preview,grimmer0125/markdown-preview-kramdown,tkssharma/markdown-preview,sctlee/markdown-preview |
71ac993cfc9b521cbb2492d2ce31943d08bb84ab | algo/binary-search.coffee | algo/binary-search.coffee |
{ isListAscending } = require './is-list-ascending.coffee'
_binarySearch = (sortedList, needle)->
return -1 if sortedList.length is 0
mid = Math.floor (sortedList.length / 2)
return mid if sortedList[mid] is needle
if sortedList[mid] > needle
return _binarySearch sortedList[0..mid - 1], needle
else
... |
{ isListAscending } = require './is-list-ascending.coffee'
_binarySearch = (sortedList, needle, start, end)->
return -1 if end < start
mid = Math.floor (start + ((end - start) / 2))
return mid if sortedList[mid] is needle
if sortedList[mid] > needle
return _binarySearch sortedList, needle, start, mid... | Revert "CHECKPOINT re-implemented binarySearch using slices" | Revert "CHECKPOINT re-implemented binarySearch using slices"
This reverts commit 4454540a3858f512861e376414f8ab41e9da7662.
| CoffeeScript | mit | iShafayet/algorithms-in-coffeescript |
be40525798064ebf2401b9a1822e140727860c8d | lib/main.coffee | lib/main.coffee | IncompatiblePackagesView = null
viewUri = 'atom://incompatible-packages'
createView = (state) ->
IncompatiblePackagesView ?= require './incompatible-packages-view'
new IncompatiblePackagesView(state)
atom.deserializers.add
name: 'IncompatiblePackagesView'
deserialize: (state) -> createView(state)
incompatibl... | IncompatiblePackagesView = null
viewUri = 'atom://incompatible-packages'
createView = (state) ->
IncompatiblePackagesView ?= require './incompatible-packages-view'
new IncompatiblePackagesView(state)
atom.deserializers.add
name: 'IncompatiblePackagesView'
deserialize: (state) -> createView(state)
incompatibl... | Add command to clear the cache | Add command to clear the cache
| CoffeeScript | mit | atom/incompatible-packages |
4fff25007461efd6713770c6d74929c16d8254e6 | index.coffee | index.coffee | __doc__ = """
An application that provides a service for confirming mobile numbers
"""
koa = require 'koa'
gzip = require 'koa-gzip'
router = require 'koa-router'
formatApiErrors = require './response/formatApiErrors'
secret = require './secret'
# The server is implemented using Koa and generators. See http://koajs... | __doc__ = """
An application that provides a service for confirming mobile numbers
"""
koa = require 'koa'
gzip = require 'koa-gzip'
router = require 'koa-router'
formatApiErrors = require './response/formatApiErrors'
secret = require './secret'
# The server is implemented using Koa and generators. See http://koajs... | Create two routers, one for the site and another for API responses | [Routes] Create two routers, one for the site and another for API responses
This makes it easier to add middleware just for our API responses ex: CORS headers
| CoffeeScript | mit | digitimate/digitimate,digitimate/digitimate,jacob-ebey/digitimate,jacob-ebey/digitimate |
1580e32e82d12db6f65a09a47f19c96775567b4b | lib/main.coffee | lib/main.coffee | {CompositeDisposable} = require 'atom'
HistoryView = null
ChangesView = null
HISTORY_URI = 'atom://git-experiment/view-history'
CHANGES_URI = 'atom://git-experiment/view-changes'
module.exports = GitExperiment =
subscriptions: null
activate: (state) ->
# Events subscribed to in atom's system can be easily cl... | {CompositeDisposable} = require 'atom'
HistoryView = null
ChangesView = null
HISTORY_URI = 'atom://git-experiment/view-history'
CHANGES_URI = 'atom://git-experiment/view-changes'
module.exports = GitExperiment =
subscriptions: null
activate: (state) ->
# Events subscribed to in atom's system can be easily cl... | Remove console log and don't open view on load | Remove console log and don't open view on load | CoffeeScript | mit | atom/github,atom/github,atom/github |
9b617fabf009b0d6605fd9fc17e0d10bcf5659e1 | resources/assets/coffee/bootstrap-modal.coffee | resources/assets/coffee/bootstrap-modal.coffee | ###
Copyright 2015 ppy Pty. Ltd.
This file is part of osu!web. osu!web is distributed with the hope of
attracting more community contributions to the core ecosystem of osu!.
osu!web is free software: you can redistribute it and/or modify
it under the terms of the Affero GNU General Public License as published by
the ... | ###
Copyright 2015 ppy Pty. Ltd.
This file is part of osu!web. osu!web is distributed with the hope of
attracting more community contributions to the core ecosystem of osu!.
osu!web is free software: you can redistribute it and/or modify
it under the terms of the Affero GNU General Public License as published by
the ... | Remove all backdrops when modal is hidden | Remove all backdrops when modal is hidden
And reset the padding as well.
Still Not sure how to properly fix this.
At least this one will prevent black page when the avatar is clicked repeatedly.
Closes #54.
| CoffeeScript | agpl-3.0 | ameliaikeda/osu-web,marcostudios/osu-web,Bobo1239/osu-web,notbakaneko/osu-web,ppy/osu-web,dvcrn/osu-web,notbakaneko/osu-web,nanaya/osu-web,Nekonyx/osu-web,Xyloo/osu-web,Kuron-kun/osu-web,MasterBugPatch/osu-web,Kuron-kun/osu-web,omkelderman/osu-web,marcostudios/osu-web,dvcrn/osu-web,Kuron-kun/osu-web,LiquidPL/osu-web,Ma... |
ed3b385e34671121be6769125de6a8c56b526156 | app/assets/javascripts/application.js.coffee | app/assets/javascripts/application.js.coffee | #= require jquery.js
#= require bootstrap.js
#= require jquery_ujs
#= require jquery-ui.js
#= require jquery.cookie
#= require jquery.titlealert
#= require jquery.mousewheel
#= require jquery.expanding
#= require jquery.iframe-transport
#= require jquery.liveready
#= require jquery.resizestop
#= require simply-scroll
#... | #= require jquery.js
#= require bootstrap.js
#= require jquery_ujs
#= require jquery-ui.js
#= require jquery.cookie
#= require jquery.titlealert
#= require jquery.mousewheel
#= require jquery.expanding
#= require jquery.iframe-transport
#= require jquery.liveready
#= require jquery.resizestop
#= require simply-scroll
#... | Add a method to check if the javascript is working. | Add a method to check if the javascript is working.
| CoffeeScript | mit | cloudsdaleapp/cloudsdale-web,cloudsdaleapp/cloudsdale-web,cloudsdaleapp/cloudsdale-web,cloudsdaleapp/cloudsdale-web |
cc49ee974b65b52e815d23446f8815ed1b81e52a | src/components/cc-dashboard/blank-course.cjsx | src/components/cc-dashboard/blank-course.cjsx | _ = require 'underscore'
React = require 'react'
BS = require 'react-bootstrap'
DesktopImage = require './desktop-image'
BlankCourse = React.createClass
propTypes:
courseId: React.PropTypes.string
render: ->
<div className="blank-course">
<h3 className="title">
Welcome to your OpenStax Conc... | _ = require 'underscore'
React = require 'react'
BS = require 'react-bootstrap'
DesktopImage = require './desktop-image'
CourseGroupingLabel = require '../course-grouping-label'
BlankCourse = React.createClass
propTypes:
courseId: React.PropTypes.string
render: ->
<div className="blank-course">
<h3 ... | Use CourseGroupingLabel when referring to sections | Use CourseGroupingLabel when referring to sections
| CoffeeScript | agpl-3.0 | openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js |
567f0f4db99fd503f9569531ba8215f04cfca16b | app/assets/javascripts/links.js.coffee | app/assets/javascripts/links.js.coffee | # Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
$(document).ready () ->
$('.line a').live 'click', (event) ->
window.open $(this).att... | # Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
$(document).ready () ->
$('.line a').on 'click', (event) ->
window.open $(this).attr(... | Replace jQuery .live method by .on | Replace jQuery .live method by .on | CoffeeScript | mit | AlSquire/WebLapine,AlSquire/WebLapine |
be964a2631b95f4d89a8923a1b55653131aee7be | src/beans/MongooseLogger.coffee | src/beans/MongooseLogger.coffee | util = require 'util'
module.exports = (logger, depth = 2) ->
(collection, method, query, doc, options) ->
logger.info 'mongoose', '"#{collection}.#{method}(#{util.inspect(query, depth: depth)}) - #{util.inspect(doc, depth: depth)} [#{options}]"
| util = require 'util'
module.exports = (logger, depth = 2) ->
(collection, method, query, doc, options) ->
logger.info 'mongoose', "#{collection}.#{method}(#{util.inspect(query, depth: depth)}) - #{util.inspect(doc, depth: depth)} [#{options}]"
| Add prefix to mongoose logs. | Add prefix to mongoose logs.
| CoffeeScript | mit | sekko27/node-wire-helper |
57a00f5f3689e750b135021aff595c5162a7b724 | resources/assets/coffee/_classes/profile-page-hash.coffee | resources/assets/coffee/_classes/profile-page-hash.coffee | ###
# Copyright 2015-2017 ppy Pty. Ltd.
#
# This file is part of osu!web. osu!web is distributed with the hope of
# attracting more community contributions to the core ecosystem of osu!.
#
# osu!web is free software: you can redistribute it and/or modify
# it under the terms of the Affero GNU General Pub... | ###
# Copyright 2015-2017 ppy Pty. Ltd.
#
# This file is part of osu!web. osu!web is distributed with the hope of
# attracting more community contributions to the core ecosystem of osu!.
#
# osu!web is free software: you can redistribute it and/or modify
# it under the terms of the Affero GNU General Pub... | Fix starting mode when loading user profile page | Fix starting mode when loading user profile page
Splitting empty string results in single element array of empty string
| CoffeeScript | agpl-3.0 | Kuron-kun/osu-web,nanaya/osu-web,notbakaneko/osu-web,nekodex/osu-web,ppy/osu-web,ppy/osu-web,kj415j45/osu-web,comentarinformal/osu-web,Kuron-kun/osu-web,LiquidPL/osu-web,comentarinformal/osu-web,kj415j45/osu-web,comentarinformal/osu-web,Kuron-kun/osu-web,nekodex/osu-web,omkelderman/osu-web,LiquidPL/osu-web,notbakaneko/... |
5c5db0e546a0dd9dc5d122fe79db70a4ca044042 | server/classrooms/Classroom.coffee | server/classrooms/Classroom.coffee | mongoose = require 'mongoose'
log = require 'winston'
config = require '../../server_config'
plugins = require '../plugins/plugins'
User = require '../users/User'
jsonSchema = require '../../app/schemas/models/classroom.schema'
ClassroomSchema = new mongoose.Schema {}, {strict: false, minimize: false, read:config.mong... | mongoose = require 'mongoose'
log = require 'winston'
config = require '../../server_config'
plugins = require '../plugins/plugins'
User = require '../users/User'
jsonSchema = require '../../app/schemas/models/classroom.schema'
ClassroomSchema = new mongoose.Schema {}, {strict: false, minimize: false, read:config.mong... | Remove named plugin from classroom | Remove named plugin from classroom
Since we're sourcing from course instances which did not have such a limitation
| CoffeeScript | mit | Zacharias030/codecombat,codecombat/codecombat,jeremiahyan/codecombat,duybkict/codecombat,edtrist/codecombat,laituan245/codecombat,MonkStrom/codecombat,aashaka/codecombat,Zacharias030/codecombat,tpai/codecombat,weevilgenius/codecombat,probil/codecombat,icodegame/codecombat,wgsu/codecombat,differentmatt/codecombat,jeremi... |
827ec007e934e2170aa5fea3455612c6a27f0804 | app/routes/application.coffee | app/routes/application.coffee | Route = Ember.Route.extend
model: ->
# return the current user as the model if authenticated, otherwise a blank object
new Promise (resolve, reject) =>
promise = $.ajax
url: '/api/me'
dataType: 'json'
promise.done (result) =>
user = Ember.Object.create(result)
if re... | Route = Ember.Route.extend
model: ->
# return the current user as the model if authenticated, otherwise a blank object
new Promise (resolve, reject) =>
promise = $.ajax
url: '/api/me'
dataType: 'json'
promise.done (result) =>
user = Ember.Object.create(result)
if re... | Clear the session if a 403 occurs | Clear the session if a 403 occurs | CoffeeScript | mit | artzte/fightbook-app |
a3859064d681b98aa3dea9f65e7e38fd757e4cb5 | test/index.coffee | test/index.coffee | assert = require 'assert'
request = require 'supertest'
req = request require '../src/server'
describe '/CloudHealthCheck', ->
it 'should return 200 for OPTIONS request', (done) ->
req.options '/CloudHealthCheck'
.expect 200
.end done
it 'shoudl return 200 for GET request', (done) ->
req.get... | assert = require 'assert'
request = require 'supertest'
req = request require '../src/server'
describe '/CloudHealthCheck', ->
it 'should return 200 for OPTIONS request', (done) ->
req.options '/CloudHealthCheck'
.expect 200
.end done
it 'should return 200 for GET request', (done) ->
req.get... | Fix spelling misstake in test case | Fix spelling misstake in test case
| CoffeeScript | mit | Turistforeningen/Jotunheimr |
a022f4e83974bf9b4001ff86d41f4080d0650a2b | lib/project-config.coffee | lib/project-config.coffee | fs = require 'fs'
path = require 'path'
module.exports =
class ProjectConfig
data: {}
disposables: []
constructor: ->
@load(atom.project.getPaths())
@disposables.push(atom.project.onDidChangePaths(@load))
load: (paths) ->
for dir in paths
if @isDirectory(dir)
... | fs = require 'fs'
path = require 'path'
$ = require('jquery')
defaultConfig = {
"server": "http://localhost:8080/exist",
"user": "guest",
"password": "guest",
"root": "/db"
}
module.exports =
class ProjectConfig
data: {}
disposables: []
constructor: ->
@load(atom.project.getPaths... | Use default configuration if no project config is available | Use default configuration if no project config is available
| CoffeeScript | mit | wolfgangmm/atom-existdb |
d3c9e1e060b4babb243f5ac90331c229d69e3e66 | Gruntfile.coffee | Gruntfile.coffee | module.exports = (grunt) ->
grunt.initConfig
clean:
package: ['lib']
coffee:
options:
bare: true
files:
expand: true
cwd: 'src'
src: ['**/*.coffee']
dest: 'lib'
ext: '.js'
grunt.loadNpmTasks 'grunt-contrib-clean'
grunt.loadNpmTasks 'grunt-contrib-coffee'
grunt.registerTask 'de... | module.exports = (grunt) ->
grunt.initConfig
clean:
package: ['lib']
coffee:
options:
bare: true
files:
expand: true
cwd: 'src'
src: ['**/*.coffee']
dest: 'lib'
ext: '.js'
grunt.loadNpmTasks 'grunt-contrib-clean'
grunt.loadNpmTasks 'grunt-contrib-coffee'
grunt.registerTask 'bu... | Add Grunt task alias ‘build’ | Add Grunt task alias ‘build’
| CoffeeScript | bsd-2-clause | SonicHedgehog/judge |
ac6330c0485a38c6eddf210374f355b8a6275079 | configs/test/jest.setup.coffee | configs/test/jest.setup.coffee | chai = require('chai')
sinon = require('sinon')
sinonChai = require('sinon-chai')
chai.use(sinonChai)
isFunction = require('lodash/isFunction')
global.enzyme = require 'enzyme'
chaiEnzyme = require('chai-enzyme')
chai.use(chaiEnzyme())
global.Promise = require.requireActual('es6-promise')
# https://github.com/facebo... | chai = require('chai')
sinon = require('sinon')
sinonChai = require('sinon-chai')
chai.use(sinonChai)
isFunction = require('lodash/isFunction')
global.enzyme = require 'enzyme'
chaiEnzyme = require('chai-enzyme')
chai.use(chaiEnzyme())
global.Promise = require.requireActual('es6-promise')
# https://github.com/facebo... | Update timeout to 5 seconds | Update timeout to 5 seconds
| CoffeeScript | agpl-3.0 | openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js |
e220ed3037e5c7afd893582a60636e05ec7dce86 | server/calculations/ratingConstants.coffee | server/calculations/ratingConstants.coffee | export startDayForWeeks =
"lic40": "2019-09-04"
"lic87": "2019-09-02"
"zaoch": "2019-09-01"
"stud": "2019-09-02"
"notnnov": "2019-09-02"
"graduated": "2019-09-02"
"unknown": "2019-09-02"
export WEEK_ACTIVITY_EXP = 0.55
export LEVEL_RATING_EXP = 2.5
export ACTIVITY_THRESHOLD = 0.1
export MSE... | export startDayForWeeks =
"lic40": "2019-09-04"
"lic87": "2019-08-31"
"zaoch": "2019-09-01"
"stud": "2019-09-02"
"notnnov": "2019-09-02"
"graduated": "2019-09-02"
"unknown": "2019-09-02"
export WEEK_ACTIVITY_EXP = 0.55
export LEVEL_RATING_EXP = 2.5
export ACTIVITY_THRESHOLD = 0.1
export MSE... | Set start day for lic87 | Set start day for lic87
| CoffeeScript | agpl-3.0 | petr-kalinin/algoprog,petr-kalinin/algoprog,petr-kalinin/algoprog,petr-kalinin/algoprog |
343a7a35b0e71b82e85ad1331527b0b9efc1d8d9 | lib/pdf-status-bar-view.coffee | lib/pdf-status-bar-view.coffee | {View} = require 'atom'
module.exports =
class PdfStatusBarView extends View
@content: ->
@div class: 'status-image inline-block', =>
@span class: 'pdf-status', outlet: 'pdfStatus'
initialize: (@statusBar) ->
@attach()
@subscribe atom.workspaceView, 'pane-container:active-pane-item-changed', =>... | {View} = require 'atom'
module.exports =
class PdfStatusBarView extends View
@content: ->
@div class: 'status-image inline-block', =>
@span class: 'pdf-status', outlet: 'pdfStatus'
initialize: (@statusBar) ->
@attach()
@subscribe atom.workspaceView, 'pane-container:active-pane-item-changed', =>... | Check if view is available | Check if view is available
| CoffeeScript | mit | epimorphic/atom-pdf-view,izuzak/atom-pdf-view |
6808f0c309adb5900d3b4e1d3e00089c33ef7052 | Gruntfile.coffee | Gruntfile.coffee | module.exports = (grunt) ->
path = require 'path'
require('time-grunt')(grunt)
require('jit-grunt')(grunt, {
express: 'grunt-express-server'
})
require('load-grunt-tasks')(grunt, {
pattern: ['main-bower-files']
})
require('load-grunt-config')(grunt, {
configPath: path.join __dirname, 'g... | module.exports = (grunt) ->
path = require 'path'
require('time-grunt')(grunt)
require('jit-grunt')(grunt, {
express: 'grunt-express-server'
})
require('load-grunt-tasks')(grunt, {
pattern: ['main-bower-files']
})
require('load-grunt-config')(grunt, {
configPath: path.join __dirname, 'g... | Refactor Grunt build into dev and dist | Refactor Grunt build into dev and dist
| CoffeeScript | agpl-3.0 | vaaralav/servicemap,City-of-Helsinki/servicemap,vaaralav/servicemap,City-of-Helsinki/servicemap,vaaralav/servicemap,City-of-Helsinki/servicemap |
c7b404a7cc17cfb56cc92e45a0230aa345f36051 | Gruntfile.coffee | Gruntfile.coffee | module.exports = (grunt) ->
# Project configuration.
grunt.initConfig
coffee:
default:
files: [
expand: true # Enable dynamic expansion.
cwd: 'src/' # Src matches are relative to this path.
src: ['**/*.coffee'] # Actual pattern(s) to match.
... | module.exports = (grunt) ->
# Project configuration.
grunt.initConfig
coffee:
default:
files: [
expand: true # Enable dynamic expansion.
cwd: 'src/' # Src matches are relative to this path.
src: ['**/*.coffee'] # Actual pattern(s) to match.
... | Watch CoffeeScript files, not compiled JS files | Grunt: Watch CoffeeScript files, not compiled JS files
| CoffeeScript | mit | impromptu/impromptu,impromptu/impromptu |
bf73b88965d2efb463a3052cbc3f2e896f177d78 | lib/provider.coffee | lib/provider.coffee | module.exports =
selector: ['.source.css.scss', '.source.sass']
id: 'aligner-scss' # package name
config:
':-alignment':
title: 'Padding for :'
description: 'Pad left or right of the character'
type: 'string'
default: 'right'
':-leftSpace':
title: 'Left space for :'
des... | module.exports =
selector: ['.source.css.scss', '.source.sass']
id: 'aligner-scss' # package name
config:
':-enabled':
title: 'Enable aligning :'
type: 'boolean'
default: true
':-alignment':
title: 'Padding for :'
description: 'Pad left or right of the character'
type: ... | Add { as alignable character (disabled by default) | Add { as alignable character (disabled by default)
| CoffeeScript | mit | adrianlee44/atom-aligner-scss |
b913118e0720292289da90bb50b717cc0b2e23ba | services/web/public/coffee/ide/FeatureOnboardingController.coffee | services/web/public/coffee/ide/FeatureOnboardingController.coffee | define [
"base"
], (App) ->
App.controller "FeatureOnboardingController", ($scope, settings) ->
$scope.isFeatureSettingDefined = window.userSettings.syntaxValidation?;
$scope.innerStep = 1
$scope.turnCodeCheckOn = () ->
settings.saveProjectSettings({ syntaxValidation: true })
navToInnerStep2()
$sc... | define [
"base"
], (App) ->
App.controller "FeatureOnboardingController", ($scope, settings) ->
$scope.isFeatureSettingDefined = window.userSettings.syntaxValidation?;
$scope.innerStep = 1
$scope.turnCodeCheckOn = () ->
settings.saveSettings({ syntaxValidation: true })
navToInnerStep2()
$scope.tur... | Save the syntax validation setting in the onboarding view. | Save the syntax validation setting in the onboarding view.
| CoffeeScript | agpl-3.0 | sharelatex/sharelatex |
027bada7d5ae1fd92f51e12af2142f604e66f21d | src/app/editor-config-panel.coffee | src/app/editor-config-panel.coffee | ConfigPanel = require 'config-panel'
module.exports =
class EditorConfigPanel extends ConfigPanel
@content: ->
@div class: 'config-panel', =>
@div class: 'row', =>
@label for: 'editor.fontSize', "Font Size:"
@input id: 'editor.fontSize', type: 'int', size: 2
@div class: 'row', =>
... | ConfigPanel = require 'config-panel'
module.exports =
class EditorConfigPanel extends ConfigPanel
@content: ->
@div class: 'config-panel', =>
@div class: 'row', =>
@label for: 'editor.fontSize', "Font Size:"
@input id: 'editor.fontSize', type: 'int', size: 2
@div class: 'row', =>
... | Add editor.nonWordCharacters to editor config panel | Add editor.nonWordCharacters to editor config panel
| CoffeeScript | mit | harshdattani/atom,Neron-X5/atom,rlugojr/atom,KENJU/atom,stinsonga/atom,palita01/atom,isghe/atom,kittens/atom,Dennis1978/atom,Ingramz/atom,synaptek/atom,tjkr/atom,GHackAnonymous/atom,bencolon/atom,sxgao3001/atom,gontadu/atom,AlexxNica/atom,mostafaeweda/atom,sebmck/atom,tony612/atom,hakatashi/atom,vjeux/atom,svanharmelen... |
ccecd4466ecc392e05a0dcdb45fcf1e150dae0b4 | src/language/modules/shapes.coffee | src/language/modules/shapes.coffee | session = require '../session'
utils = require '../utils'
rectangle = (width, height) ->
utils.startShape()
x = session.pos.x * session.ratio
y = session.pos.y * session.ratio
width *= session.ratio
height *= session.ratio
session.ctx.rect x, y, width, height
utils.endShape()
square = (... | session = require '../session'
utils = require '../utils'
rectangle = (width, height) ->
utils.startShape()
x = session.pos.x * session.ratio
y = session.pos.y * session.ratio
width *= session.ratio
height *= session.ratio
session.ctx.rect x, y, width, height
utils.endShape()
square = (... | Add support for firefox by getting rid of new implementation of ellipse method on canvas context | Add support for firefox by getting rid of new implementation of ellipse method on canvas context
| CoffeeScript | mit | tancredi/draw,tancredi/draw,tancredi/draw |
01138bc401e051661aa8250401fcecc625e0df9f | lib/parsers/log-parser.coffee | lib/parsers/log-parser.coffee | fs = require 'fs-plus'
path = require 'path'
outputPattern = ///
^Output\swritten\son\s # Leading text.
(.*) # Output path.
\s\(.*\)\.$ # Trailing text.
///
errorPattern = ///
^(.*): # File path.
(\d+): # Line number.
\sLaTeX\sError:\s # Marker.
... | fs = require 'fs-plus'
path = require 'path'
outputPattern = ///
^Output\swritten\son\s # Leading text.
(.*) # Output path.
\s\(.*\)\.$ # Trailing text.
///
errorPattern = ///
^(.*): # File path.
(\d+): # Line number.
\sLaTeX\sError:\s # Marker.
... | Fix bug related to paths containing spaces | Fix bug related to paths containing spaces
Resolves #42
| CoffeeScript | mit | WoodyWoodsta/atom-latex,thomasjo/atom-latex,thomasjo/atom-latex,WoodyWoodsta/atom-latex,thomasjo/atom-latex |
2bb272dc7123c59a5001d095331c691256d39992 | resources/choices.coffee | resources/choices.coffee | {models, Resource, filters} = require '../resource_helper'
ChoiceResource = new Resource
resourceNameMany: 'choices'
resourceNameOne: 'choice'
model: models.choice
module.exports = ChoiceResource | {models, Resource, filters} = require '../resource_helper'
crud = require 'bloops/crud'
errors = require 'bloops/errors'
ChoiceResource = new Resource
resourceNameMany: 'choices'
resourceNameOne: 'choice'
model: models.choice
getEndpoints: -> [
'show'
'update'
'destroy'
'patch'
'index'
... | Create choice and get-by-competitionId routes | Create choice and get-by-competitionId routes
| CoffeeScript | mit | bosgood/votewithme-server |
88fd39299d718d402886cbb99b1ca2b7ed62629f | assets/javascripts/custom_rx_operators.coffee | assets/javascripts/custom_rx_operators.coffee | Rx = require 'rx/index.js'
R = require 'ramda'
Rx.Observable.fromTime = (timesAndValues, scheduler) ->
timers = R.keys(timesAndValues)
.map (relativeTime) -> [parseInt(relativeTime), timesAndValues[relativeTime]]
.map ([time, value]) ->
# 1 is substracted at the moment to not distract users
# wit... | Rx = require 'rx/index.js'
R = require 'ramda'
Rx.Observable.fromTime = (timesAndValues, scheduler) ->
timers = R.keys(timesAndValues)
.map (relativeTime) -> [parseInt(relativeTime), timesAndValues[relativeTime]]
.map ([time, value]) ->
Rx.Observable.timer(time, scheduler).map R.I(value)
Rx.Observab... | Revert "Take 1 ms off the fromTime operator" | Revert "Take 1 ms off the fromTime operator"
This reverts commit fe0ab48c9e442534edb7cb8ad7d058a07a39e68f.
| CoffeeScript | mit | urmastalimaa/reactive-visualizer,urmastalimaa/reactive-visualizer,urmastalimaa/reactive-visualizer,urmastalimaa/reactive-visualizer |
b24f853a27c95d1382a79a60de343643d4c71b93 | Gruntfile.coffee | Gruntfile.coffee | module.exports = (grunt) ->
grunt.loadNpmTasks 'grunt-contrib-coffee'
grunt.initConfig
coffee:
compile:
files:
'lib/shuss-cli.js': 'src/shuss-cli.coffee'
'lib/shuss-config.js': 'src/shuss-config.coffee'
'lib/shuss-logger.js': 'src/shuss-logger.coffee'
'lib/... | module.exports = (grunt) ->
grunt.loadNpmTasks 'grunt-contrib-coffee'
grunt.initConfig
coffee:
compile:
expand: true
flatten: true
cwd: 'src/'
src: ['*.coffee']
dest: 'lib/'
ext: '.js'
grunt.registerTask 'default', ['coffee:compile']
| Simplify Grunt CoffeeScript compile syntax | Simplify Grunt CoffeeScript compile syntax
| CoffeeScript | mit | ArnaudRinquin/shuss |
6332ecad34016f73a0059dacf5614ce159e99c96 | app/assets/javascripts/select2-rails.coffee | app/assets/javascripts/select2-rails.coffee | window.Binco.Select2 =
load: (selector) ->
selector = if typeof selector == 'undefined' then '.select2-rails' else selector
$(selector).select2()
$(document).ready window.Binco.Select2
$(document).on 'page:load', window.Binco.Select2
| window.Binco.Select2 =
load: (selector) ->
selector = if typeof selector == 'undefined' then '.select2-rails' else selector
$(selector).select2()
$(document).ready window.Binco.Select2.load
$(document).on 'page:load', window.Binco.Select2.load
| Add correct function call on load | Add correct function call on load
| CoffeeScript | mit | codn/binco,codn/binco,codn/binco |
e0f3c3d95d2d45daa4d47bc9830efc323233f85a | src/utils/query-string-encoder.coffee | src/utils/query-string-encoder.coffee | Qs = require('qs');
module.exports =
encode : (data)->
Qs.stringify(data)
decode : (search)->
return Qs.parse(window.location.search.slice(1)) unless search
Qs.parse(search)
| Qs = require('qs');
keywords =
true: true
false: false
null: null
undefined: undefined
decoder = (value) ->
return parseFloat(value) if (/^(\d+|\d*\.\d+)$/.test(value))
return keywords[value] if (value of keywords)
return value
module.exports =
encode : (data)->
Qs.stringify(data)... | Improve querystring serializer to detect numbers, nulls, undefined and booleans | Improve querystring serializer to detect numbers, nulls, undefined and booleans
| CoffeeScript | mit | hull/hull-js,hull/hull-js,hull/hull-js |
3c55b860b61c086a3b77c46fa10803a67c14a8bc | atom/packages.cson | atom/packages.cson | packages: [
"auto-indent"
"emmet"
"expand-region"
"git-diff-popup"
"git-plus"
"git-time-machine"
"language-javascript-jsx"
"linter"
"linter-eslint"
"linter-rubocop"
"linter-sass-lint"
"list-edit"
"markdown-scroll-sync"
"merge-conflicts"
"package-sync"
"project-manager"
"rails-open-rspe... | packages: [
"auto-indent"
"emmet"
"expand-region"
"file-icons"
"git-diff-popup"
"git-plus"
"git-time-machine"
"language-javascript-jsx"
"linter"
"linter-eslint"
"linter-rubocop"
"linter-sass-lint"
"list-edit"
"markdown-scroll-sync"
"merge-conflicts"
"package-sync"
"project-manager"
"... | Add file-icons package to Atom | Add file-icons package to Atom
| CoffeeScript | mit | randycoulman/dotfiles |
fb786b76db5dfbefd0f208269c3990f53c853289 | lib/exception-reporting.coffee | lib/exception-reporting.coffee | {_} = require 'atom'
Guid = require 'guid'
Reporter = require './reporter'
module.exports =
activate: ->
atom.config.set('exception-reporting.userId', Guid.raw()) unless atom.config.get('exception-reporting.userId')
atom.on 'error.exception-reporting', (message, url, line) ->
Reporter.send(message, ur... | {_} = require 'atom'
Guid = require 'guid'
Reporter = require './reporter'
module.exports =
activate: ->
atom.config.set('exception-reporting.userId', Guid.raw()) unless atom.config.get('exception-reporting.userId')
atom.on 'uncaught-error.exception', (message, url, line) ->
Reporter.send(message, url... | Use 'uncaught-error' event from atom | Use 'uncaught-error' event from atom | CoffeeScript | mit | atom/exception-reporting |
499936999f566db8a94a01d01e42cda3355ff44e | atom/config.cson | atom/config.cson | "*":
core:
disabledPackages: [
"wrap-guide"
"activate-power-mode"
]
themes: [
"one-light-ui"
"one-light-syntax"
]
editor: {}
"exception-reporting":
userId: "79967b20-c933-87c9-85b8-ea6b20c3a648"
"linter-puppet-lint":
oldVersion: false
skip140Chars: true
sk... | "*":
core:
disabledPackages: [
"wrap-guide"
"activate-power-mode"
]
editor: {}
"exception-reporting":
userId: "79967b20-c933-87c9-85b8-ea6b20c3a648"
"linter-puppet-lint":
oldVersion: false
skip140Chars: true
skip80Chars: true
minimap:
plugins:
cursorline: true
... | Change sunset hours for atom | Change sunset hours for atom
| CoffeeScript | mit | domingusj/dotfiles |
c2c8e86ae6498ef26b920bb1ecb753610a1b990b | coffee/main.coffee | coffee/main.coffee | $ ->
$input = $('input')
$button = $('button')
$dicIframe = $('.dic')
$imagesIframe = $('.images')
search = ->
query = $input.val()
return if query is ''
dicUrlPrefix = 'http://endic.naver.com/search.nhn?sLn=en&searchOption=all&query='
imagesUrlPrefix = 'http://images.search.yahoo.com/search/... | $ ->
$input = $('input')
$button = $('button')
$dicIframe = $('.dic')
$imagesIframe = $('.images')
search = ->
query = $input.val()
return if query is ''
dicUrlPrefix = 'http://dic.daum.net/search.do?dic=eng&q='
imagesUrlPrefix = 'http://images.search.yahoo.com/search/images?p='
$dicIfram... | Change dictionary url to Daum | Change dictionary url to Daum
| CoffeeScript | mit | Sangdol/imationary |
783e231369ccb2b7f8170f06aebd1fa451ec45b8 | src/read_aggregate_root.coffee | src/read_aggregate_root.coffee | eventric = require 'eventric'
ReadAggregateEntity = eventric 'ReadAggregateEntity'
class ReadAggregateRoot extends ReadAggregateEntity
module.exports = ReadAggregateRoot | _ = require 'underscore'
Backbone = require 'backbone'
eventric = require 'eventric'
ReadAggregateEntity = eventric 'ReadAggregateEntity'
class ReadAggregateRoot extends ReadAggregateEntity
_.extend @prototype, Backbone.Events
module.exports = ReadAggregateRoot | Refactor CardQuestionView to use new Command/Aggregate structure | Refactor CardQuestionView to use new Command/Aggregate structure
| CoffeeScript | mit | efacilitation/eventric |
b3e5b44023e3462a3a36225468051e43cda16ad3 | client/controller/speakers-controller.coffee | client/controller/speakers-controller.coffee | class @SpeakersController extends RouteController
waitOn: -> Meteor.subscribe('speakers')
after: -> document.title = "Speakers | Reversim Summit 2014"
tempalte: 'speakers'
data: ->
page: 'speakers'
speakers: User.allSpeakers() | class @SpeakersController extends RouteController
waitOn: -> Meteor.subscribe('proposals')
after: -> document.title = "Speakers | Reversim Summit 2014"
tempalte: 'speakers'
data: ->
page: 'speakers'
speakers: User.allSpeakers() | Modify the speakers page to include only accepted speakers | Modify the speakers page to include only accepted speakers
| CoffeeScript | apache-2.0 | rantav/reversim-summit-2015,rantav/reversim-summit-2014,rantav/reversim-summit-2015,rantav/reversim-summit-2014,rantav/reversim-summit-2015 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.