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 |
|---|---|---|---|---|---|---|---|---|---|
e6cef21097f0e1233ec5a513aec84574536658be | src/relative-resolve.coffee | src/relative-resolve.coffee | fs = require 'fs'
path = require 'path'
{sync: resolve} = require 'resolve'
CORE_MODULES = require './core-modules'
isCore = require './is-core'
canonicalise = require './canonicalise'
resolvePath = ({extensions, aliases, root, cwd, path: givenPath}, pkgMainField = 'browser') ->
packageFilter = (pkg) ->
if pkg... | fs = require 'fs'
path = require 'path'
{sync: resolve} = require 'resolve'
CORE_MODULES = require './core-modules'
isCore = require './is-core'
canonicalise = require './canonicalise'
resolvePath = ({extensions, aliases, root, cwd, path: givenPath}, pkgMainField = 'browser') ->
packageFilter = (pkg) ->
if pkg... | Fix canonicalization of core modules | Fix canonicalization of core modules
| CoffeeScript | bsd-3-clause | tarruda/powerbuild |
8db4f82dc4e14571716fb6bccbe57a27a60474d6 | src/config-schema.coffee | src/config-schema.coffee | path = require 'path'
fs = require 'fs-plus'
# This is loaded by atom.coffee. See https://atom.io/docs/api/latest/Config for
# more information about config schemas.
module.exports =
core:
type: 'object'
properties:
showUnreadBadge:
type: 'boolean'
default: true
showImportant:
... | path = require 'path'
fs = require 'fs-plus'
# This is loaded by atom.coffee. See https://atom.io/docs/api/latest/Config for
# more information about config schemas.
module.exports =
core:
type: 'object'
properties:
workspace:
type: 'object'
properties:
mode:
type:... | Add to config schema so it defaults to list properly | fix(workspace-mode): Add to config schema so it defaults to list properly
| CoffeeScript | mit | simonft/nylas-mail,nylas/nylas-mail,nylas/nylas-mail,nylas-mail-lives/nylas-mail,nirmit/nylas-mail,nylas-mail-lives/nylas-mail,simonft/nylas-mail,simonft/nylas-mail,nylas-mail-lives/nylas-mail,nylas/nylas-mail,nylas/nylas-mail,nirmit/nylas-mail,nirmit/nylas-mail,simonft/nylas-mail,nylas-mail-lives/nylas-mail,nirmit/nyl... |
66a5c3a5c9d47a1aadf2f68d3adfb7dde327aa50 | lib/markdown-preview.coffee | lib/markdown-preview.coffee | url = require 'url'
fs = require 'fs-plus'
MarkdownPreviewView = require './markdown-preview-view'
module.exports =
configDefaults:
grammars: [
'source.gfm'
'text.plain'
'text.plain.null-grammar'
]
activate: ->
atom.workspaceView.command 'markdown-preview:show', =>
@show()
... | url = require 'url'
fs = require 'fs-plus'
MarkdownPreviewView = require './markdown-preview-view'
module.exports =
configDefaults:
grammars: [
'source.gfm'
'source.litcoffee'
'text.plain'
'text.plain.null-grammar'
]
activate: ->
atom.workspaceView.command 'markdown-preview:sh... | Add source.litcoffee to default grammars | Add source.litcoffee to default grammars
Closes #38
| CoffeeScript | mit | Galadirith/markdown-preview,sctlee/markdown-preview,atom/markdown-preview,tkssharma/markdown-preview,ArnaudRinquin/markdown-preview,rugk/markdown-preview,makyo/markdown-preview,danielgtaylor/atom-api-blueprint-preview,grimmer0125/markdown-preview-kramdown |
c3224c4dede2c8f8aa8ea87edf53d1773dfd7c14 | test/presenters_spec.coffee | test/presenters_spec.coffee | Presenters = require "../lib/presenters"
helpers = require "./helpers"
describe "Presenters", ->
before ->
@prediction1 = new helpers.PredictionStub stopName: "Michigan & 29th Street"
@prediction2 = new helpers.PredictionStub {stopName: "Michigan & 28th Street", minutesFromNow: 1}
@allPredictions = [@pr... | Presenters = require "../lib/presenters"
helpers = require "./helpers"
describe "Presenters", ->
before ->
@prediction1 = new helpers.PredictionStub stopName: "Michigan & 29th Street"
@prediction2 = new helpers.PredictionStub {stopName: "Michigan & 28th Street", minutesFromNow: 1}
@allPredictions = [@pr... | Fix method name in presenter spec | Fix method name in presenter spec
| CoffeeScript | mit | banterability/busted |
709f3f8351915a7041203fdae5159c51a4177042 | src/extensions/wrap-guide/wrap-guide.coffee | src/extensions/wrap-guide/wrap-guide.coffee | {View} = require 'space-pen'
module.exports =
class WrapGuide extends View
@activate: (rootView) ->
requireStylesheet 'wrap-guide.css'
for editor in rootView.getEditors()
@appendToEditorPane(rootView, editor) if rootView.parents('html').length
rootView.on 'editor-open', (e, editor) =>
@appe... | {View} = require 'space-pen'
module.exports =
class WrapGuide extends View
@activate: (rootView) ->
requireStylesheet 'wrap-guide.css'
for editor in rootView.getEditors()
@appendToEditorPane(rootView, editor) if rootView.parents('html').length
rootView.on 'editor-open', (e, editor) =>
@appe... | Use interpolated string for setting left offset | Use interpolated string for setting left offset
| CoffeeScript | mit | anuwat121/atom,ali/atom,Austen-G/BlockBuilder,acontreras89/atom,hagb4rd/atom,rsvip/aTom,jacekkopecky/atom,harshdattani/atom,me6iaton/atom,bolinfest/atom,boomwaiza/atom,tony612/atom,paulcbetts/atom,brettle/atom,ivoadf/atom,qskycolor/atom,fang-yufeng/atom,bcoe/atom,nrodriguez13/atom,Andrey-Pavlov/atom,florianb/atom,hharc... |
a81b380a28bcc3500cd97ebe83aa1b049e69f0a8 | server/browserpolicy.coffee | server/browserpolicy.coffee | logger = new Logger("browserpolicy")
Meteor.startup(->
BrowserPolicy.content.allowImageOrigin(
"https://s3-#{Meteor.settings.AWSRegion}.amazonaws.com")
BrowserPolicy.content.allowImageOrigin("https://*.githubusercontent.com")
BrowserPolicy.content.allowImageOrigin("blob:")
BrowserPolicy.content.allowImageO... | logger = new Logger("browserpolicy")
Meteor.startup(->
BrowserPolicy.content.allowImageOrigin(
"https://s3-#{Meteor.settings.AWSRegion}.amazonaws.com")
BrowserPolicy.content.allowImageOrigin("blob:")
BrowserPolicy.content.allowImageOrigin("https://*")
BrowserPolicy.content.allowImageOrigin("http://*")
Br... | Allow images from any origin | Allow images from any origin
| CoffeeScript | mit | praneybehl/muzhack,muzhack/musitechhub,muzhack/musitechhub,praneybehl/muzhack,praneybehl/muzhack,muzhack/muzhack,muzhack/muzhack,muzhack/musitechhub,muzhack/musitechhub,muzhack/muzhack,muzhack/muzhack,praneybehl/muzhack |
b759f8c5f08eb31b2a03212fa20dfa3aa1d9009b | lib/helpers.coffee | lib/helpers.coffee | SelectorLinter = require 'atom-selector-linter'
CSON = require 'season'
fs = require 'fs-plus'
exports.getSelectorDeprecations = ->
linter = new SelectorLinter(maxPerPackage: 50)
linter.checkPackage(pkg) for pkg in atom.packages.getLoadedPackages()
userKeymapPath = atom.keymaps.getUserKeymapPath()
if fs.... | SelectorLinter = require 'atom-selector-linter'
CSON = require 'season'
fs = require 'fs-plus'
exports.getSelectorDeprecations = ->
linter = new SelectorLinter(maxPerPackage: 50)
linter.checkPackage(pkg) for pkg in atom.packages.getLoadedPackages()
userKeymapPath = atom.keymaps.getUserKeymapPath()
if fs.... | Use isFileSync instead of existsSync for checking file existence | Use isFileSync instead of existsSync for checking file existence
| CoffeeScript | mit | atom/deprecation-cop |
b1c3a65da12cb280fee9b6c27dc9234227a2366f | src/ac-webhooks.coffee | src/ac-webhooks.coffee | # Description:
# Listens for ac webhooks and post in chat
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# None
#
# Notes:
# None
#
# Author:
# digitalsadhu
ac = require('node-activecollab').init process.env.AC_API_URL, process.env.AC_API_KEY
module.exports = (robot) ->
robot.router.po... | # Description:
# Listens for ac webhooks and post in chat
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# None
#
# Notes:
# None
#
# Author:
# digitalsadhu
module.exports = (robot) ->
robot.router.post "/hubot/ac-webhooks", (req, res) ->
data = JSON.parse req.body['data']
conso... | Remove ac node module, handle new data being sent | Remove ac node module, handle new data being sent
| CoffeeScript | mit | mediasuitenz/hubot-ac-webhooks |
6029b3e83c85ec44253763cb3249a7d6a639bbce | app/coffee/app.coffee | app/coffee/app.coffee | angular
.module("angularTodoList", ["ui.router"])
.config(['$stateProvider', '$urlMatcherFactoryProvider',
($stateProvider, $urlMatcherFactoryProvider) ->
$urlMatcherFactoryProvider.strictMode(false)
$stateProvider
.state("index",
url: ""
templa... | angular
.module("angularTodoList", ["ui.router"])
.config(['$stateProvider', '$urlMatcherFactoryProvider',
($stateProvider, $urlMatcherFactoryProvider) ->
$urlMatcherFactoryProvider.strictMode(false)
$stateProvider
.state("index",
url: ""
templat... | Remove trailing whitespace for jshint | Remove trailing whitespace for jshint
| CoffeeScript | mit | MattCain/angular-todo-list |
58960edc40c739215bc7e675ffe5a4010b474489 | app/assets/javascripts/admin/admin.js.coffee | app/assets/javascripts/admin/admin.js.coffee | jQuery ->
$('.locales a:first').tab('show')
$('.accordion-body').on('hidden', ->
$(@).prev().find('i').first().removeClass().addClass('icon-chevron-right')
)
$('.accordion-body').on('shown', ->
$(@).prev().find('i').first().removeClass().addClass('icon-chevron-down'))
$('body').o... | jQuery ->
$('.locales a:first').tab('show')
$('.accordion-body').on('hidden', ->
$(@).prev().find('i').first().removeClass().addClass('icon-chevron-right')
)
$('.accordion-body').on('shown', ->
$(@).prev().find('i').first().removeClass().addClass('icon-chevron-down'))
$('body').o... | Replace .attr("value", val) with .val(val) | Replace .attr("value", val) with .val(val)
Looks like this has changed behviour in the later version of jquery
we now use https://github.com/jquery/jquery-migrate/blob/master/warnings.md#jqmigrate-jqueryfnattrvalue-val-no-longer-sets-properties
| CoffeeScript | agpl-3.0 | nzherald/alaveteli,nzherald/alaveteli,andreicristianpetcu/alaveteli,andreicristianpetcu/alaveteli,andreicristianpetcu/alaveteli,andreicristianpetcu/alaveteli_old,andreicristianpetcu/alaveteli_old,andreicristianpetcu/alaveteli_old,4bic/alaveteli,Br3nda/alaveteli,4bic/alaveteli,nzherald/alaveteli,nzherald/alaveteli,Br3nd... |
e79f8f12e4aef5e93eccf4cf29b4ba4ce290df15 | app/assets/javascripts/application.js.coffee | app/assets/javascripts/application.js.coffee | # This is a manifest file that'll be compiled into including all the files listed below.
# Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
# be included in the compiled file accessible from http://example.com/assets/application.js
# It's not advisable to add code directly he... | # This is a manifest file that'll be compiled into including all the files listed below.
# Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
# be included in the compiled file accessible from http://example.com/assets/application.js
# It's not advisable to add code directly he... | Remove modernizr from app asset precompilation | Remove modernizr from app asset precompilation
| CoffeeScript | apache-2.0 | martinisoft/funnies,martinisoft/funnies |
920185c1be96f58ee6d0ad617d4bda8eb03a9b4f | app/assets/javascripts/application.js.coffee | app/assets/javascripts/application.js.coffee | # This is a manifest file that'll be compiled into application.js, which will include all the files
# listed below.
# Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
# or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
# ... | # This is a manifest file that'll be compiled into application.js, which will include all the files
# listed below.
# Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
# or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
# ... | Remove references to ember dependencies | Remove references to ember dependencies
| CoffeeScript | mit | Naturaily/review,Naturaily/review,Naturaily/review |
4d648ea99a2723243b85f5b6a8fbca5681ae241c | src/components/header.cjsx | src/components/header.cjsx | React = require 'react'
class Header extends React.Component
@displayName = 'Header'
@propTypes:
menuItems: React.PropTypes.array
constructor: (@props) ->
render: =>
<div className="header-inner">
{@_renderLogo()}
<ul className="list list-reset tabs-list">
{@_renderMenuItems()}
... | React = require 'react'
class Header extends React.Component
@displayName = 'Header'
@propTypes:
menuItems: React.PropTypes.array
constructor: (@props) ->
@state =
menuItems: @props.menuItems
render: =>
<div className="header-inner">
{@_renderLogo()}
<ul className="list list-re... | Add ability to close tabs | Add ability to close tabs
| CoffeeScript | mit | zenit/zenit,iiegor/zenit,iiegor/zenit,zenit/zenit |
e44d4748ae716c643825b8c492b720a6f5aed1a3 | gulpfile.coffee | gulpfile.coffee | coffee = require 'gulp-coffee'
gulp = require 'gulp'
gutil = require 'gulp-util'
mocha = require 'gulp-mocha'
rimraf = require 'rimraf'
handleError = (err) ->
gutil.log err
@emit 'end'
gulp.task 'clean', (done) ->
rimraf './lib', done
gulp.task 'build', ['clean'], ->
gulp.src './lib-src/**/*.coffee'
.pip... | coffee = require 'gulp-coffee'
gulp = require 'gulp'
gutil = require 'gulp-util'
mocha = require 'gulp-mocha'
rimraf = require 'rimraf'
errorOccurred = no
process.once 'exit', (code) ->
if errorOccurred and code == 0
process.exit 1
handleError = (err) ->
errorOccurred = yes
gutil.log err
@emit 'end'
gulp... | Fix exit code on error as in felixrabe/gulp-setup | gulp: Fix exit code on error as in felixrabe/gulp-setup
| CoffeeScript | mit | mcrio/smal |
9a18fa41c11b916a8bfc116f6ec8b169bc265cc8 | lib/walrus/ast.coffee | lib/walrus/ast.coffee | AST = { }
class AST.Template
constructor : ( @nodes ) ->
compile : ( context ) -> ( node.compile context for node in @nodes ).join ''
class AST.ContentNode
constructor : ( @content ) ->
compile : ( context ) -> @content
class AST.MemberNode
constructor : ( @path ) ->
compile : ( context ) -> context[ ... | AST = { }
class AST.Template
constructor : ( @nodes ) ->
compile : ( context ) -> ( node.compile context for node in @nodes ).join ''
class AST.ContentNode
constructor : ( @content ) ->
compile : ( context ) -> @content
class AST.MemberNode
constructor : ( @path ) ->
compile : ( context ) -> context[ ... | Tidy up the PathNode compile method a bit | Tidy up the PathNode compile method a bit
| CoffeeScript | mit | jeremyruppel/walrus |
22b52154e9d013645584826337ef377d762e085b | lib/config.coffee | lib/config.coffee | fs = require 'fs'
uuid = require 'node-uuid'
config =
schemaPrefix: do -> 'urn:schemas-upnp-org'
versions: do ->
schema: do -> '1.0'
upnp: do -> '1.0'
devices: do ->
MediaServer: do ->
version: do -> 1
services: do -> [ 'ConnectionManager', 'ContentDirectory'... | fs = require 'fs'
uuid = require 'node-uuid'
config =
schemaPrefix: do -> 'urn:schemas-upnp-org'
versions: do ->
schema: do -> '1.0'
upnp: do -> '1.0'
devices: do ->
MediaServer: do ->
version: do -> 1
services: do -> [ 'ConnectionManager', 'ContentDirectory'... | Fix typo in uuid generation | Fix typo in uuid generation
| CoffeeScript | mit | Loghorn/node-upnp-device,bcaller/node-upnp-device,sigma-random/node-upnp-device,jacobrask/node-upnp-device |
c1ccdddf0c6777162375926e13e5c3828b14527c | grunt/config/requirejs.coffee | grunt/config/requirejs.coffee | module.exports = (grunt, options) ->
return {
options:
baseUrl: '<%= build %>/js'
exclude: ['coffee-script']
stubModules: ['cs/cs']
mainConfigFile: '<%= build %>/js/app/config.js'
optimize: 'uglify2'
generateSourceMaps: true
preserveLicenseComments: false
findNested... | module.exports = (grunt, options) ->
return {
options:
baseUrl: '<%= build %>/js'
exclude: ['coffee-script']
stubModules: ['cs/cs']
mainConfigFile: '<%= build %>/js/app/config.js'
optimize: 'uglify2'
optimizeAllPluginResources: true
generateSourceMaps: true
preserve... | Make source maps work in Sentry. | Make source maps work in Sentry.
Sentry can't seem to handle the unminified,
concatenated eval'd version of the bundle.
Minification loses the js -> coffee mapping
step, but the js stack traces and sources
are clear enough.
| CoffeeScript | agpl-3.0 | City-of-Helsinki/servicemap,City-of-Helsinki/servicemap,City-of-Helsinki/servicemap |
ac78322019802320c99c56b315b3091322642132 | src/kissmetrics-batch.coffee | src/kissmetrics-batch.coffee | # # Kissmetrics Batch
class BatchKissmetricsClient
@HOST: 'api.kissmetrics.com'
@HTTP_METHOD: 'POST'
constructor: (@options) ->
@_validate_queue @options.queue
add: (timestamp, data) ->
data.timestamp = timestamp
@_transformData data
@queue.add data
get: ->
@queue.get()
process: ->... | # # Kissmetrics Batch
class BatchKissmetricsClient
@HOST: 'api.kissmetrics.com'
@HTTP_METHOD: 'POST'
constructor: (@options) ->
@queue = options.queue
@_validate_queue @queue
add: (timestamp, data) ->
data.timestamp = timestamp
@_transformData data
@queue.add data
get: ->
@queue.g... | Set the queue object to a top level property of the batch instance | Set the queue object to a top level property of the batch instance
| CoffeeScript | mit | evansolomon/kissmetrics-js,evansolomon/kissmetrics-js |
1303e2bd7feee78d03381a3bd4f76730632b0022 | client/Bongo/includes.coffee | client/Bongo/includes.coffee | module.exports = [
# the bongo api (or an empty file, depending on the config)
"../../.build/api.js",
"../../.build/logging-api.js",
# --- Bongo Client ---
"sockjs-0.3-patched.js",
"broker.js",
"bongo.js",
]
| module.exports = [
# the bongo api (or an empty file, depending on the config)
"../../.build/api.js",
"../../.build/logging-api.js",
# --- Bongo Client ---
# "sockjs-0.3-patched.js",
"sockjs-0.3.4.js",
"broker.js",
"bongo.js",
]
| Update SockJS-client to 0.3.4 stable | Update SockJS-client to 0.3.4 stable
| CoffeeScript | agpl-3.0 | drewsetski/koding,gokmen/koding,usirin/koding,alex-ionochkin/koding,jack89129/koding,mertaytore/koding,drewsetski/koding,usirin/koding,szkl/koding,gokmen/koding,jack89129/koding,andrewjcasal/koding,andrewjcasal/koding,andrewjcasal/koding,alex-ionochkin/koding,drewsetski/koding,jack89129/koding,usirin/koding,gokmen/kodi... |
2549580beb5b0435cfbcd2ff3c56bb1cb0d6a4ca | menus/jekyll.cson | menus/jekyll.cson | # See https://atom.io/docs/latest/creating-a-package#menus for more details
'menu': [
{
'label': 'Packages'
'submenu': [
'label': 'Jekyll'
'submenu': [
{ 'label': 'Manage Jekyll', 'command': 'jekyll:manage'},
{ 'label': 'New Post', 'command': 'jekyll:new-post' },
{ 'label':... | # See https://atom.io/docs/latest/creating-a-package#menus for more details
'menu': [
{
'label': 'Packages'
'submenu': [
'label': 'Jekyll'
'submenu': [
{ 'label': 'Manage Jekyll', 'command': 'jekyll:manage'},
{ 'label': 'Open Toolbar', 'command': 'jekyll:toolbar'},
{ 'label... | Add the toolbar to the menu | Add the toolbar to the menu
| CoffeeScript | mit | psst/jekyll-atom,Arcath/jekyll-atom,psst/jekyll-atom,Arcath/jekyll-atom |
b93b0ff6941cd09cadc0dd796b8258fe0a54d57e | public/js/main.coffee | public/js/main.coffee | $ ->
variations = [
participants: 100
conversions: 45
,
participants: 100
conversions: 50
]
calculator = new App.Calculator variations
calculator.renderGraph() | $ ->
data = [
name: 'Original'
participants: 100
conversions: 45
color: '#00aa00'
,
name: 'Variation'
participants: 100
conversions: 50
color: 'blue'
]
variations = []
variations.push new App.Variation item.name, item.color, item.participants, item.conversions for item in data
calculato... | Switch data over to use new variation class | Switch data over to use new variation class
| CoffeeScript | mit | mattm/abtestcalculator,mattm/abtestcalculator |
c3a05c1ac23a7120500ff9fb3f0e1d573c7c91d4 | app/gem/actions.coffee | app/gem/actions.coffee | 'use strict'
toggleGem = Reflux.createAction()
module.exports =
toggleGem: toggleGem
| 'use strict'
actions = Reflux.createActions [
'toggleGem'
]
module.exports = actions
| Refactor using Reflux sugar functions | Refactor using Reflux sugar functions
Reflux has quite a few sugar functions that prevent coderz from writing down
useless boilerplate.
- On the actions side, one can simply specify an array of action names
- On the store side, one can listen to an array of actions and handle them
with CoC methods
Beautiful.
| CoffeeScript | apache-2.0 | IngloriousCoderz/reflux-proto,IngloriousCoderz/reflux-proto |
567d87d90f2ba7195901ea24d240686c6030a4a7 | app/assets/javascripts/logo.js.coffee | app/assets/javascripts/logo.js.coffee | NProgress.configure(showSpinner: false)
delay = 150
defaultClass = 'tanuki-shape'
pieces = [
'path#tanuki-right-cheek',
'path#tanuki-right-eye, path#tanuki-right-ear',
'path#tanuki-nose',
'path#tanuki-left-eye, path#tanuki-left-ear',
'path#tanuki-left-cheek',
]
firstPiece = pieces[0]
timeout = null
clearHig... | NProgress.configure(showSpinner: false)
defaultClass = 'tanuki-shape'
pieces = [
'path#tanuki-right-cheek',
'path#tanuki-right-eye, path#tanuki-right-ear',
'path#tanuki-nose',
'path#tanuki-left-eye, path#tanuki-left-ear',
'path#tanuki-left-cheek',
]
pieceIndex = 0
firstPiece = pieces[0]
currentTimer = null
... | Restructure logo JS to use `setInterval` | Restructure logo JS to use `setInterval`
| CoffeeScript | mit | dreampet/gitlab,duduribeiro/gitlabhq,mr-dxdy/gitlabhq,icedwater/gitlabhq,Datacom/gitlabhq,htve/GitlabForChinese,screenpages/gitlabhq,dwrensha/gitlabhq,iiet/iiet-git,openwide-java/gitlabhq,dreampet/gitlab,martijnvermaat/gitlabhq,openwide-java/gitlabhq,daiyu/gitlab-zh,dwrensha/gitlabhq,openwide-java/gitlabhq,htve/GitlabF... |
9f46ca444354d4c6b52de3f23ce17c11f705d006 | app/assets/javascripts/logo.js.coffee | app/assets/javascripts/logo.js.coffee | NProgress.configure(showSpinner: false)
defaultClass = 'tanuki-shape'
pieces = [
'path#tanuki-right-cheek',
'path#tanuki-right-eye, path#tanuki-right-ear',
'path#tanuki-nose',
'path#tanuki-left-eye, path#tanuki-left-ear',
'path#tanuki-left-cheek',
]
firstPiece = pieces[0]
timeout = null
clearHighlights = ->... | NProgress.configure(showSpinner: false)
delay = 150
defaultClass = 'tanuki-shape'
pieces = [
'path#tanuki-right-cheek',
'path#tanuki-right-eye, path#tanuki-right-ear',
'path#tanuki-nose',
'path#tanuki-left-eye, path#tanuki-left-ear',
'path#tanuki-left-cheek',
]
firstPiece = pieces[0]
timeout = null
clearHig... | Decrease the logo sweep delay | Decrease the logo sweep delay
| CoffeeScript | mit | dplarson/gitlabhq,ttasanen/gitlabhq,Soullivaneuh/gitlabhq,iiet/iiet-git,mr-dxdy/gitlabhq,martijnvermaat/gitlabhq,jrjang/gitlabhq,t-zuehlsdorff/gitlabhq,mr-dxdy/gitlabhq,allysonbarros/gitlabhq,SVArago/gitlabhq,Soullivaneuh/gitlabhq,htve/GitlabForChinese,allysonbarros/gitlabhq,SVArago/gitlabhq,daiyu/gitlab-zh,icedwater/g... |
5288666bfce06b05f62717db5ac4f062f9a3bc2b | exports/atom.coffee | exports/atom.coffee | {Point, Range} = require 'text-buffer'
module.exports =
BufferedNodeProcess: require '../src/buffered-node-process'
BufferedProcess: require '../src/buffered-process'
Git: require '../src/git'
Point: Point
Range: Range
# The following classes can't be used from a Task handler and should therefore
# only be ... | {Point, Range} = require 'text-buffer'
module.exports =
BufferedNodeProcess: require '../src/buffered-node-process'
BufferedProcess: require '../src/buffered-process'
Git: require '../src/git'
Point: Point
Range: Range
# The following classes can't be used from a Task handler and should therefore
# only be ... | Revert "Export ReactEditorView as EditorView" | Revert "Export ReactEditorView as EditorView"
This reverts commit be201485188cb8583bbfe0a2dd239a20efa8cbd9.
| CoffeeScript | mit | kandros/atom,pkdevbox/atom,isghe/atom,sotayamashita/atom,kjav/atom,synaptek/atom,Rodjana/atom,Mokolea/atom,sxgao3001/atom,basarat/atom,splodingsocks/atom,prembasumatary/atom,brettle/atom,alexandergmann/atom,YunchengLiao/atom,ilovezy/atom,johnhaley81/atom,mrodalgaard/atom,Jdesk/atom,Andrey-Pavlov/atom,abcP9110/atom,basa... |
d15b1bdf3cdc66bee4eff53cb3097c8d629f6f52 | app/pages/classify.cjsx | app/pages/classify.cjsx | React = require 'react'
apiClient = require '../api/client'
PromiseRenderer = require '../components/promise-renderer'
Classifier = require '../classifier/classifier'
module.exports = React.createClass
displayName: 'ClassifyPage'
render: ->
workflow = @props.project.attr('workflows').then ([workflow]) =>
... | React = require 'react'
apiClient = require '../api/client'
PromiseRenderer = require '../components/promise-renderer'
Classifier = require '../classifier/classifier'
module.exports = React.createClass
displayName: 'ClassifyPage'
render: ->
workflow = @props.project.attr('workflows').then (workflows) ->
... | Choose a random workflow and subject | Choose a random workflow and subject | CoffeeScript | apache-2.0 | fmnhExhibits/Panoptes-Front-End,edpaget/Panoptes-Front-End,tfmorris/Panoptes-Front-End,edpaget/Panoptes-Front-End,jelliotartz/Panoptes-Front-End,edpaget/Panoptes-Front-End,jelliotartz/Panoptes-Front-End,marten/Panoptes-Front-End,camallen/Panoptes-Front-End,alexbfree/Panoptes-Front-End,amyrebecca/Panoptes-Front-End,alex... |
03c5c809083a3826c72616abf8d14d70b7e9ce28 | lib/file-view.coffee | lib/file-view.coffee | SymbolsView = require './symbols-view'
TagGenerator = require './tag-generator'
module.exports =
class FileView extends SymbolsView
constructor: (@stack) ->
super
initialize: ->
super
@cachedTags = {}
@subscribe atom.project.eachBuffer (buffer) =>
@subscribe buffer, 'reloaded saved destroye... | SymbolsView = require './symbols-view'
TagGenerator = require './tag-generator'
module.exports =
class FileView extends SymbolsView
initialize: ->
super
@cachedTags = {}
@subscribe atom.project.eachBuffer (buffer) =>
@subscribe buffer, 'reloaded saved destroyed path-changed', =>
delete @c... | Remove ctor handled in superclass | Remove ctor handled in superclass | CoffeeScript | mit | rodumani/symbols-view,changjej/symbols-view,harai/atom-gnu-global,kainwinterheart/symbols-view,harai/atom-gnu-global,spencerlyon2/symbols-view,rodumani/symbols-view,spencerlyon2/symbols-view,atom/symbols-view,changjej/symbols-view |
2697b937f6070e673eda08c3ed0b2e76b94ad32e | client/views/posts/posts.coffee | client/views/posts/posts.coffee | Meteor.subscribe 'authors';
Meteor.subscribe 'Posts';
Meteor.subscribe 'Comments';
Template['posts'].helpers
'posts': -> Posts.find({}, sort: {createdAt: -1})
Template.post.helpers
'comments': -> Comments.find({post_id: @post._id})
# Template['posts'].events
Template['new-post'].events
'submit .new-post': (e)... | Meteor.subscribe 'authors';
Meteor.subscribe 'Posts';
Meteor.subscribe 'Comments';
Template['posts'].helpers
'posts': -> Posts.find({}, sort: {createdAt: -1})
Template.post.helpers
'comments': -> Comments.find({post_id: @post._id})
# Template['posts'].events
Template['new-post'].events
'submit .new-post': (e)... | Fix on preventDefault method call | Fix on preventDefault method call
| CoffeeScript | mit | grissproject/sbblog,grissproject/sbblog |
3c119811803c2ad25c496b10e82908c50e3b7c6a | lib/save-dialog.coffee | lib/save-dialog.coffee | Dialog = require './dialog'
Project = require './project'
projects = require './projects'
path = require 'path'
changeCase = require 'change-case'
module.exports =
class SaveDialog extends Dialog
filePath: null
constructor: () ->
firstPath = atom.project.getPaths()[0]
title = path.basename(firstPath)
... | Dialog = require './dialog'
Project = require './project'
projects = require './projects'
path = require 'path'
changeCase = require 'change-case'
module.exports =
class SaveDialog extends Dialog
filePath: null
constructor: () ->
firstPath = atom.project.getPaths()[0]
title = path.basename(firstPath)
... | Use method to check root path | Use method to check root path
| CoffeeScript | mit | danielbrodin/atom-project-manager |
148f72c5203205604946cd7f37f0903a63bec093 | routes/main.coffee | routes/main.coffee |
# Argumenta instance
argumenta = require '../app/argumenta'
# Site index
exports.index = (req, res) ->
argumenta.users.latest {limit: 10}, (err, users) ->
argumenta.repos.latest {limit: 20}, (err, repos) ->
res.reply 'index',
latest_users: users
latest_repos: repos
|
# Argumenta instance
argumenta = require '../app/argumenta'
# Site index
exports.index = (req, res) ->
argumenta.users.latest {limit: 10}, (err, users) ->
argumenta.repos.latest {limit: 20, metadata: true}, (err, repos) ->
res.reply 'index',
latest_users: users
latest_repos: repos
| Include metadata for repos on homepage | Include metadata for repos on homepage
| CoffeeScript | mit | argumenta/argumenta,argumenta/argumenta |
a9efe77ceb8c1e08c42c6299794df890f7feeadf | browser/api/lib/auto-updater.coffee | browser/api/lib/auto-updater.coffee | AutoUpdater = process.atomBinding('auto_updater').AutoUpdater
EventEmitter = require('events').EventEmitter
AutoUpdater::__proto__ = EventEmitter.prototype
autoUpdater = new AutoUpdater
autoUpdater.on 'update-downloaded-raw', (args...) ->
args[3] = new Date(args[3]) # releaseDate
@emit 'update-downloaded', args.... | AutoUpdater = process.atomBinding('auto_updater').AutoUpdater
EventEmitter = require('events').EventEmitter
AutoUpdater::__proto__ = EventEmitter.prototype
autoUpdater = new AutoUpdater
autoUpdater.on 'update-downloaded-raw', (args...) ->
args[3] = new Date(args[3]) # releaseDate
@emit 'update-downloaded', args.... | Fix quitAndInstall when there is no window. | Fix quitAndInstall when there is no window.
| CoffeeScript | mit | jhen0409/electron,bobwol/electron,yan-foto/electron,stevemao/electron,faizalpribadi/electron,xiruibing/electron,simonfork/electron,thompsonemerson/electron,bobwol/electron,BionicClick/electron,jlord/electron,aichingm/electron,iftekeriba/electron,tinydew4/electron,GoooIce/electron,etiktin/electron,brave/electron,brave/e... |
f33552475672dd42b86d2d70b61b005a1ff1801f | spec/emmet-spec.coffee | spec/emmet-spec.coffee | Emmet = require '../lib/emmet'
describe "Emmet", ->
it "has one valid test", ->
true
| Emmet = require 'emmet/lib/emmet'
RootView = require 'root-view'
Buffer = require 'text-buffer'
Editor = require 'editor'
describe "Emmet", ->
[buffer, editor, editSession] = []
keymap = null
beforeEach ->
window.rootView = new RootView
rootView.open('sample.js')
editor = rootView.getActiveView()
... | Write a test for expand-abbreviation | Write a test for expand-abbreviation
| CoffeeScript | mit | rkmax/emmet-atom,kebot/emmet-atom,mat-b-/emmet-atom-simplified,alexlecco/emmet-atom-simplified,kebot/emmet-atom,emmetio/emmet-atom,mat-b-/emmet-atom-simplified,davidlormor/emmet-atom,rkmax/emmet-atom,rkmax/emmet-atom,davidlormor/emmet-atom,alexlecco/emmet-atom-simplified,alexlecco/emmet-atom-simplified,mat-b-/emmet-ato... |
48dbdd9d9264a2cb4c7dbfc4bc725aa52bed29c9 | src/filter.coffee | src/filter.coffee | params = (options) ->
url: "https://stream.twitter.com/1.1/statuses/filter.json"
oauth: options.oauth
form:
include_entities: true
track: options.words.join ','
request = require 'request'
makeRequest = (validate, beautify, fn) ->
req = request.post params, (error, response, body) ->
fn error, fal... | params = (options) ->
url: "https://stream.twitter.com/1.1/statuses/filter.json"
oauth: options.oauth
form:
include_entities: true
track: options.words.join ','
request = require 'request'
makeRequest = (validate, beautify, fn) ->
stream = request.post params, (error, response, body) ->
fn error, ... | Add more control on return | Add more control on return
| CoffeeScript | mit | meritt/twtcst |
e9eee6e537e9acacc287bedbabb7f2727b9e5af7 | src/static/guid-convert.coffee | src/static/guid-convert.coffee | # Tool to query and render GUID conversions via REST API
delay = (ms, func) -> setTimeout func, ms
class window.GuidTool
# Initialize on page load
@init: =>
$('#guid').select()
delay 2000, =>
$('.nav, #footer').fadeIn()
$('#submit').click (event) =>
event.prev... | # Tool to query and render GUID conversions via REST API
delay = (ms, func) -> setTimeout func, ms
class window.GuidTool
# Initialize on page load
@init: =>
$('#guid').select()
delay 2000, =>
$('.nav, #footer').fadeIn()
$('#submit').click (event) =>
event.prev... | Add method to generate UUID from javascript | Add method to generate UUID from javascript
| CoffeeScript | mit | danielgtaylor/guid-tool-web |
84696c94dd30462c70bd42cea91054c79f4a82e8 | server/code/lib/throttle.coffee | server/code/lib/throttle.coffee | _ = require 'underscore'
exports.throttle = (getIdentifier, timeout = 1000) ->
cache = {}
throttleInner = (req, resp, next) ->
identifier = getIdentifier(arguments)
unless identifier of cache
cache[identifier] = _.throttle(next, timeout, {trailing: false})
cache[identifier]()
return t... | _ = require 'underscore'
callNext = (next) ->
next()
exports.throttle = (getIdentifier, timeout = 1000) ->
cache = {}
throttleInner = (req, resp, next) ->
identifier = getIdentifier(arguments)
unless identifier of cache
cache[identifier] = _.throttle(callNext, timeout, {trailing: false})
... | Add indirection so that correct next is called. | Add indirection so that correct next is called.
| CoffeeScript | agpl-3.0 | scraperwiki/custard,scraperwiki/custard,scraperwiki/custard |
00d83c1abc883f26b2762c6a1f0ae2997159ad56 | 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/helpers/**/*': ['webpack']
'./spec/**/*': ['webpack']
w... | webpackConfig = require('./webpack.config.coffee')
webpackConfig.entry = {}
webpackConfig.plugins = []
module.exports = (config) ->
config.set
frameworks: ['jasmine']
browsers: ['Chrome']
files: [
'./spec/**/*.coffee'
]
preprocessors:
'./spec/helpers/**/*': ['webpack']
'./spe... | Remove common chunks plugin when testing | Remove common chunks plugin when testing
| CoffeeScript | mit | juanca/marionette-tree,juanca/marionette-tree |
bf456449668b837f95c744099475a037140c23a3 | gulpfile.coffee | gulpfile.coffee | gulp = require 'gulp'
del = require 'del'
haml = require 'gulp-haml'
sourcemaps = require 'gulp-sourcemaps'
coffee = require 'gulp-coffee'
serve = require './serve.coffee'
bower = require 'main-bower-files'
SRC = 'src'
DEST = 'out'
HAML_PATH = "#{SRC}/haml/**/*.haml"
COFFEE_PATH = "#{S... | gulp = require 'gulp'
del = require 'del'
haml = require 'gulp-haml'
sourcemaps = require 'gulp-sourcemaps'
coffee = require 'gulp-coffee'
serve = require './serve.coffee'
bower = require 'main-bower-files'
SRC = 'src'
DEST = 'out'
HAML_PATH = "#{SRC}/haml/**/*.haml"
COFFEE_PATH = "#{S... | Watch & Serve by Default | Watch & Serve by Default
The old default task is now "build".
| CoffeeScript | unlicense | arashikou/exper3-2015 |
c6fff6eb2342523fab3f221a056866f693aec8c2 | snippets/polymer-element.cson | snippets/polymer-element.cson | ".text.html":
"polymer element":
"prefix": "pe"
"body": """
<link rel="import" href="${1:../bower_components}/polymer/polymer.html">
<dom-module id="$2">
<style>
:host {
display: block;
}
</style>
<template>
$4
</template>
</dom-module>
... | ".text.html":
"polymer element":
"prefix": "pe"
"body": """
<link rel="import" href="${1:../bower_components}/polymer/polymer.html">
<dom-module id="$2">
<style>
:host {
$5
}
</style>
<template>
$4
</template>
<script>
Polymer({
... | Remove opinion about element display style | Remove opinion about element display style
This one is give or take.
| CoffeeScript | mit | zacharytamas/atom-polymer |
08d45e10e03ab172f8170ec999a698a66853d76e | lib/reporter.coffee | lib/reporter.coffee | request = require 'request'
module.exports =
class Reporter
constructor: ->
@request = request
send: (eventType, data) ->
params =
timestamp: new Date().getTime() / 1000
dimensions: data
requestOptions =
method: 'POST'
url: "https://collector.githubapp.com/... | request = require 'request'
module.exports =
class Reporter
constructor: ->
@request = request
send: (eventType, data) ->
params =
timestamp: new Date().getTime() / 1000
context: data
requestOptions =
method: 'POST'
url: "https://collector.githubapp.com/ato... | Store data in context instead of dimensions | Store data in context instead of dimensions | CoffeeScript | mit | atom/exception-reporting |
bd68c9cdd88746ec9a60e77049b117a4f8b55bcd | src/aggregate/aggregate.coffee | src/aggregate/aggregate.coffee | class Aggregate
constructor: (@_context, @_eventric, @_name, Root) ->
@_domainEvents = []
if !Root
@root = {}
else
@root = new Root
@root.$emitDomainEvent = @emitDomainEvent
emitDomainEvent: (domainEventName, domainEventPayload) =>
DomainEventClass = @_context.getDomainEvent dom... | class Aggregate
constructor: (@_context, @_eventric, @_name, AggregateClass) ->
@_domainEvents = []
@instance = new AggregateClass
@instance.$emitDomainEvent = @emitDomainEvent
emitDomainEvent: (domainEventName, domainEventPayload) =>
DomainEventClass = @_context.getDomainEvent domainEventName
... | Rename plain object member variable from "root" to "instance" in order to not conflict with DDD terminology | Aggregate: Rename plain object member variable from "root" to "instance" in order to not conflict with DDD terminology
| CoffeeScript | mit | efacilitation/eventric |
1dcab9d5dadf7df876063fd691b2bbb542c4efc8 | src/i18n.coffee | src/i18n.coffee | I18n = (args...) ->
m = chrome.i18n.getMessage(args...)
return escapeHtml(m) if m != ""
m = id.replace(/(.)([A-Z][a-z])/g, (m, p1, p2) -> "#{p1} #{p2.toLowerCase()}")
m = m.replace(/_/g, ' ')
escapeHtml(m)
$(->
pat = /__MSG_([A-Za-z0-9]+)__/
$("a,button").each((i, v) ->
e = $(v)
title = e.attr?("... | I18n = (args...) ->
m = chrome.i18n.getMessage(args...)
return escapeHtml(m) if m != ""
m = args[0].replace(/(.)([A-Z][a-z])/g, (m, p1, p2) -> "#{p1} #{p2.toLowerCase()}")
m = m.replace(/_/g, ' ')
escapeHtml(m)
$(->
pat = /__MSG_([A-Za-z0-9]+)__/
$("a,button").each((i, v) ->
e = $(v)
title = e.at... | Fix I18n error when ID not defined in messages.json | Fix I18n error when ID not defined in messages.json
| CoffeeScript | mit | kimushu/rubic,kimushu/rubic |
dbfeb29431ec1ff7b1327bb872c851606efa1838 | table.coffee | table.coffee |
class Component
constructor: ->
update: ->
stringify: ->
JSON.stringify(@spec)
class $blab.Table extends Component
constructor: (@spec, sheet) ->
randPos = (range, offset)->
"#{Math.round((Math.random()*range+offset)*100)}%"
@spec.x ?= randPos(0.8, ... | class $blab.Table extends $blab.Component
constructor: (@spec, sheet, file) ->
@sheet = sheet[@spec.id]
container = $("##{@spec.containerId}")
container.append("<div id='Table-#{@spec.id}' class='hot'></div>")
hot = $("#Table-#{@spec.id}")
hot.css("position", "absolut... | Remove local Component class. Refactor. | Remove local Component class. Refactor.
| CoffeeScript | mit | stemblab/rgb-calc,stemblab/rgb-calc |
6f48ab0c4dbf1a63ca60fe30cf17f95f6a6b3c15 | app/assets/javascripts/ws.helper.coffee | app/assets/javascripts/ws.helper.coffee | angular.module 'ws.helper', []
.factory 'WebSocketOptions', ->
options = {}
return options
.factory 'UserWebSocket', [
'$timeout'
'WebSocketOptions'
($timeout, options) ->
class UserWebSocket
constructor: (url) ->
@url = url
@handlers = {}
@connect(... | angular.module 'ws.helper', []
.factory 'WebSocketOptions', ->
options = {}
return options
.factory 'UserWebSocket', [
'$timeout'
'WebSocketOptions'
($timeout, options) ->
class UserWebSocket
constructor: (url) ->
@url = url
@handlers = {}
$timeout ... | Put a 2-second delay before websocket connecting | Put a 2-second delay before websocket connecting
| CoffeeScript | apache-2.0 | lizepeng/app.io |
0fe8644ed4765aa725fc22ddcc6e3d86e9e8168b | app/assets/javascripts/embeditor/adapter.js.coffee | app/assets/javascripts/embeditor/adapter.js.coffee | # Your Adapter should define:
# * QueryDefaults - an object of defaults to send as query parameters
class Embeditor.Adapter
className: "Adapter"
constructor: (@element, @options={}) ->
@adapter = Embeditor.Adapters[@className]
@href = @element.attr('href')
@dataOptions... | # Your Adapter SHOULD define:
# * @QueryDefaults - The default parameters if no others are passed in.
class Embeditor.Adapter
className: "Adapter"
@QueryDefaults = {}
constructor: (@element, @options={}) ->
@adapter = Embeditor.Adapters[@className]
@href = @element.attr('... | Add some documentatio and blank QueryDefaults object in Adapter | Add some documentatio and blank QueryDefaults object in Adapter
| CoffeeScript | mit | SCPR/embeditor-rails,bricker/embeditor-rails,bricker/embeditor-rails,SCPR/embeditor-rails |
e7d4578cce9556aa18596b5bfc002d6b5dbc5724 | lib/highlight-selected.coffee | lib/highlight-selected.coffee | HighlightedAreaView = require './highlighted-area-view'
module.exports =
activate: (state) ->
@areas = []
atom.workspaceView.eachEditorView (editorView) =>
area = new HighlightedAreaView(editorView)
area.attach()
@areas.push = area
deactivate: =>
for area in @areas
area.destroy... | HighlightedAreaView = require './highlighted-area-view'
areas = []
module.exports =
activate: (state) ->
atom.workspaceView.eachEditorView (editorView) ->
area = new HighlightedAreaView(editorView)
area.attach()
areas.push = area
deactivate: ->
for area in areas
area.destroy()
| Fix being able to uninstall package | Fix being able to uninstall package
| CoffeeScript | mit | chrisswk/highlight-selected,richrace/highlight-selected,hmatsuda/highlight-selected |
8bd5120440d18ace1dd5541ffc3a72fa8f5d6b20 | lib/metrics.coffee | lib/metrics.coffee | Guid = require 'guid'
Reporter = require './reporter'
module.exports =
activate: ({sessionLength}) ->
atom.config.set('metrics.userId', Guid.raw()) unless atom.config.get('metrics.userId')
@sessionStart = Date.now()
Reporter.sendEvent('ended', sessionLength) if sessionLength
Reporter.sendEvent('star... | Guid = require 'guid'
Reporter = require './reporter'
module.exports =
activate: ({sessionLength}) ->
atom.config.set('metrics.userId', Guid.raw()) unless atom.config.get('metrics.userId')
@sessionStart = Date.now()
Reporter.sendEvent('ended', sessionLength) if sessionLength
Reporter.sendEvent('star... | Use pane:item-added instead of editor:attached | Use pane:item-added instead of editor:attached
Now there is info about what pane item is added. Also we don't get
events for mini-editors being attached. | CoffeeScript | mit | atom/metrics |
8493ac56388c45662ecc8ab40938b7f5be6563a4 | server/startup/i18n-validation.coffee | server/startup/i18n-validation.coffee | flat = (obj, newObj = {}, path = '') ->
for key, value of obj
if _.isObject value
flat value, newObj, key + '.'
else
newObj[path + key] = value
return newObj
Meteor.startup ->
l = {}
errors = []
for lang, value of TAPi18next.options.resStore
l[lang] = flat value
for lang, value of l
for subLang... | flat = (obj, newObj = {}, path = '') ->
for key, value of obj
if _.isObject value
flat value, newObj, key + '.'
else
newObj[path + key] = value
return newObj
Meteor.startup ->
l = {}
errors = []
for lang, value of TAPi18next.options.resStore
l[lang] = flat value
for lang, value of l
for subLang... | Fix log of language validation | Fix log of language validation
| CoffeeScript | mit | Movile/Rocket.Chat,hazio/Rocket.Chat,ggazzo/Rocket.Chat,amaapp/ama,Movile/Rocket.Chat,qnib/Rocket.Chat,liuliming2008/Rocket.Chat,greatdinosaur/Rocket.Chat,xasx/Rocket.Chat,capensisma/Rocket.Chat,PavelVanecek/Rocket.Chat,tntobias/Rocket.Chat,intelradoux/Rocket.Chat,atyenoria/Rocket.Chat,jeanmatheussouto/Rocket.Chat,igor... |
ed821df5dd04b72ae8a9b740c5729cdc34583489 | app/frontend/javascripts/models/visualization.js.coffee | app/frontend/javascripts/models/visualization.js.coffee | class Visualization extends Backbone.Model
paramRoot: 'visualization'
defaults:
parameters: null
module.exports = Visualization | class Visualization extends Backbone.Model
paramRoot: 'visualization'
urlRoot: '/api/visualizations'
defaults:
parameters: null
module.exports = Visualization | Add urlRoot parameter to Visualization model in order to update model parameters via api | Add urlRoot parameter to Visualization model in order to update model parameters via api
| CoffeeScript | agpl-3.0 | civio/onodo,civio/onodo,civio/onodo,civio/onodo |
c89e87907226cd32aaa2c8f79f799a6fc5817684 | lib/status-bar-manager.coffee | lib/status-bar-manager.coffee | {Disposable, CompositeDisposable} = require 'event-kit'
ContentsByMode =
insert: ["status-bar-vim-mode-insert", "Insert"]
command: ["status-bar-vim-mode-command", "Command"]
visual: ["status-bar-vim-mode-visual", "Visual"]
module.exports =
class StatusBarManager
constructor: ->
@element = document.creat... | {Disposable, CompositeDisposable} = require 'event-kit'
ContentsByMode =
insert: ["status-bar-vim-mode-insert", "Insert"]
command: ["status-bar-vim-mode-command", "Command"]
visual: ["status-bar-vim-mode-visual", "Visual"]
module.exports =
class StatusBarManager
constructor: ->
@element = document.creat... | Fix error when deactivating package | Fix error when deactivating package
| CoffeeScript | mit | bronson/vim-mode-next,naorunaoru/vim-mode-next |
1413ee31287c63fab658d8052119452d6ec99f45 | app/controllers/actions.coffee | app/controllers/actions.coffee | Spine = require('spine')
class Actions extends Spine.Controller
elements:
'.deal': 'deal_button'
'.continue': 'continue_button'
'.surrender': 'surrender_button'
'.bet': 'bet_buttons'
'.action': 'action_buttons'
events:
'click .deal': 'deal'
constructor: ->
super
@html require('... | Spine = require('spine')
Player = require('models/player')
$ = Spine.$
class Actions extends Spine.Controller
elements:
'.deal': 'deal_button'
'.continue': 'continue_button'
'.surrender': 'surrender_button'
'.bet': 'bet_buttons'
'.action': 'action_buttons'
events:
'click .deal': 'deal'
... | Disable bet buttons when you don't have that much to bet | Disable bet buttons when you don't have that much to bet
| CoffeeScript | mit | cameronhunter/blackjack-spine,cameronhunter/blackjack-spine |
e86638557e6fdc35de86abdcd91945eed634d772 | keymaps/symbols-view.cson | keymaps/symbols-view.cson | '.platform-darwin .editor':
'cmd-r': 'symbols-view:toggle-file-symbols'
'cmd-alt-down': 'symbols-view:go-to-declaration'
'cmd-alt-up': 'symbols-view:return-from-declaration'
'.platform-win32 .editor':
'ctrl-r': 'symbols-view:toggle-file-symbols'
'.platform-linux .editor':
'ctrl-r': 'symbols-view:toggle-file... | '.platform-darwin atom-text-editor':
'cmd-r': 'symbols-view:toggle-file-symbols'
'cmd-alt-down': 'symbols-view:go-to-declaration'
'cmd-alt-up': 'symbols-view:return-from-declaration'
'.platform-win32 atom-text-editor':
'ctrl-r': 'symbols-view:toggle-file-symbols'
'.platform-linux atom-text-editor':
'ctrl-r'... | Replace .editor -> atom-text-editor in keymap | Replace .editor -> atom-text-editor in keymap
| CoffeeScript | mit | kainwinterheart/symbols-view,changjej/symbols-view,changjej/symbols-view,harai/atom-gnu-global,spencerlyon2/symbols-view,rodumani/symbols-view,spencerlyon2/symbols-view,harai/atom-gnu-global,atom/symbols-view,rodumani/symbols-view |
e96f2757faabcf12b23aa5a500f970cb922c8672 | editor-app/main.coffee | editor-app/main.coffee | $ = window.$ = require("jquery")
Bacon = window.Bacon = require("baconjs")
_ = require("lodash")
$.fn.asEventStream = Bacon.$.asEventStream
examples = require("./examples.coffee")
$code = $("#code #editor")
$run = $(".run")
runBus = new Bacon.Bus()
codeMirror = CodeMirror.fromTextArea $code.get(0), {
lineNumbers: ... | $ = window.$ = require("jquery")
Bacon = window.Bacon = require("baconjs")
_ = require("lodash")
$.fn.asEventStream = Bacon.$.asEventStream
examples = require("./examples.coffee")
$code = $("#code #editor")
$run = $(".run")
runBus = new Bacon.Bus()
codeMirror = CodeMirror.fromTextArea $code.get(0), {
lineNumbers: ... | Revert "use script elem instead of eval" | Revert "use script elem instead of eval"
This reverts commit c6e6adf9eb37da77fa01b0c856ead2e426463530.
| CoffeeScript | mit | raimohanska/write-a-game |
bef4a33176b1874035a3233c6c770611867b6717 | lib/observejs/app/assets/javascripts/observejs/creator.js.coffee | lib/observejs/app/assets/javascripts/observejs/creator.js.coffee | class Creator
update: (el) =>
model = el.getAttribute(ObserveJS.attributeName)
if model?
@create(el, model)
else
@destroy(el)
create: (el) =>
model = el.getAttribute(ObserveJS.attributeName)
if ObserveJS.cache[model]?
if el.instance?
el.instance.loaded()
retur... | class Creator
update: (el) =>
model = el.getAttribute(ObserveJS.attributeName)
if model?
@create(el, model)
else
@destroy(el)
create: (el) =>
model = el.getAttribute(ObserveJS.attributeName)
if ObserveJS.cache[model]?
if el.instance?
el.instance.loaded()
retur... | Delete object to avoid leakage | Delete object to avoid leakage
| CoffeeScript | mit | pothibo/observejs,pothibo/observejs,pothibo/observejs |
9607171b1e58ec55dc00814b1a87a53b8c15b9dc | SingularityUI/app/views/request.coffee | SingularityUI/app/views/request.coffee | View = require './view'
RequestTasks = require '../collections/RequestTasks'
class RequestView extends View
template: require './templates/request'
initialize: =>
@request = app.allRequests[@options.requestId]
@requestTasks = new RequestTasks [], requestId: @options.requestId
@reque... | View = require './view'
RequestTasks = require '../collections/RequestTasks'
class RequestView extends View
template: require './templates/request'
initialize: =>
@request = app.allRequests[@options.requestId]
@requestTasks = new RequestTasks [], requestId: @options.requestId
@reque... | Fix logic bug with fetchDone state | Fix logic bug with fetchDone state | CoffeeScript | apache-2.0 | calebTomlinson/Singularity,grepsr/Singularity,grepsr/Singularity,calebTomlinson/Singularity,evertrue/Singularity,hs-jenkins-bot/Singularity,evertrue/Singularity,andrhamm/Singularity,acbellini/Singularity,tejasmanohar/Singularity,nvoron23/Singularity,calebTomlinson/Singularity,stevenschlansker/Singularity,andrhamm/Singu... |
cab27a20946e093fa527c317e5e427b239beb0ac | app/js/app.coffee | app/js/app.coffee | window.app = _.extend {}, Backbone.Events,
Models: {}
Collections: {}
Views: {}
Routers: {}
init: ->
@auth()
auth: ->
new this.Views.Authenticate()
ready: ->
$('#app').show()
@repositories = new this.Collections.Repositories()
@notifications = new this.Collections.Notifications()
... | window.app = _.extend {}, Backbone.Events,
Models: {}
Collections: {}
Views: {}
Routers: {}
init: ->
@auth()
auth: ->
new this.Views.Authenticate()
ready: ->
$('#app').show()
@repositories = new this.Collections.Repositories()
@notifications = new this.Collections.Notifications()
... | Fix reference to backbone history | Fix reference to backbone history
| CoffeeScript | mit | jerone/github-notifications,bkeepers/github-notifications,jerone/github-notifications,bkeepers/github-notifications |
9736c3c7b1b84a7ec059e23e11e9d0b175f3660e | lib/tintan/tasks.coffee | lib/tintan/tasks.coffee | files = '
fastdev
compile
'.trim().split(/[^a-zA-Z\/\.]+/).map (s)-> './'+s
module.exports = (tintan)->
require(file) tintan for file in files
namespace 'tintan', ->
task 'build', ->
console.log 'building '
| files = '
fastdev
compile
'.trim().split(/[^a-zA-Z\/\.]+/).map (s)-> './'+s
module.exports = (tintan)->
require(file) tintan for file in files
namespace 'tintan', ->
task 'build', ['^compile'], ->
console.log 'done'.green + ' building ' + tintan.constructor.appXML.name()
| Add compile task as prereq of tintan:build | Add compile task as prereq of tintan:build
| CoffeeScript | apache-2.0 | vic/tintan,vic/tintan,vic/tintan |
a867a01e0f09091fc02d84c9169a4c6f30b59f65 | lib/beantest.coffee | lib/beantest.coffee | {exec} = require 'child_process'
path = require 'path'
fs = require 'fs'
REFRESH_RATE = 500 # in msecs
RUN_PATH = path.join __dirname, "run_test.coffee"
seen = {} # cache of file names
shouldRun = true # if a change in file was detected
canRun = true # if tests are... | {exec} = require 'child_process'
path = require 'path'
fs = require 'fs'
REFRESH_RATE = 500 # in msecs
RUN_PATH = path.join __dirname, "run_test.coffee"
seen = {} # cache of file names
shouldRun = true # if a change in file was detected
canRun = true # if tests are... | Fix silly 'this' context error. | Fix silly 'this' context error.
| CoffeeScript | mit | sarenji/beantest |
b64f9aba1573e98c1ebe48de3b53c639f313fb3e | src/deploy-monitor.coffee | src/deploy-monitor.coffee | _ = require('underscore')
class DeployMonitor
timeout = 10000
constructor: ()->
@_deploy = null
@_chat = null
@_currentTimeout = 0
setDeploy: (deploy, chat)->
@_deploy = deploy
@_chat = chat
@_deploy.on('change', ()=>
@_resetTimeoutMonitor()
@_timeoutMonitor()
)
@_d... | _ = require('underscore')
class DeployMonitor
timeout = 10000
constructor: ()->
@_deploy = null
@_chat = null
@_currentTimeout = 0
setDeploy: (deploy, chat)->
@_deploy = deploy
@_chat = chat
@_deploy.on('change', ()=>
@_resetTimeoutMonitor()
@_timeoutMonitor()
)
@_d... | Clean all the data of deploy job when `removeDeploy`. | Clean all the data of deploy job when `removeDeploy`.
| CoffeeScript | mit | cargomedia/hubot-pulsar,vogdb/hubot-pulsar,vogdb/hubot-pulsar,cargomedia/hubot-pulsar |
2ac7b802c97660df188ed64b79001ab4d2a8a7ac | src/scripts/modules/media/header/header.coffee | src/scripts/modules/media/header/header.coffee | define (require) ->
_ = require('underscore')
BaseView = require('cs!helpers/backbone/views/base')
BookPopoverView = require('cs!./popovers/book/book')
template = require('hbs!./header-template')
require('less!./header')
return class MediaHeaderView extends BaseView
template: template
templateHelpe... | define (require) ->
_ = require('underscore')
EditableView = require('cs!helpers/backbone/views/editable')
BookPopoverView = require('cs!./popovers/book/book')
template = require('hbs!./header-template')
require('less!./header')
return class MediaHeaderView extends EditableView
template: template
t... | Convert to using editable view | Convert to using editable view
| CoffeeScript | agpl-3.0 | dak/webview,Connexions/webview,katalysteducation/webview,Connexions/webview,Connexions/webview,carolinelane10/webview,katalysteducation/webview,dak/webview,Connexions/webview,katalysteducation/webview,dak/webview,katalysteducation/webview |
127fcf382a9f970eced2d5fe5a551cafcf0c724f | keymaps/table-edit.cson | keymaps/table-edit.cson | # Keybindings require three things to be fully defined: A selector that is
# matched against the focused element, the keystroke and the command to
# execute.
#
# Below is a basic keybinding which registers on all platforms by applying to
# the root workspace element.
# For more detailed documentation see
# https://ato... | # Keybindings require three things to be fully defined: A selector that is
# matched against the focused element, the keystroke and the command to
# execute.
#
# Below is a basic keybinding which registers on all platforms by applying to
# the root workspace element.
# For more detailed documentation see
# https://ato... | Add keybindings for deletion commands | Add keybindings for deletion commands
| CoffeeScript | mit | abe33/atom-tablr |
02200b63b523f32e8ee4b2a3c0d1de3e0cd582bb | lib/metrics.coffee | lib/metrics.coffee | crypto = require 'crypto'
Reporter = require './reporter'
module.exports =
activate: ({sessionLength}) ->
if atom.config.get('metrics.userId')
@begin(sessionLength)
else
@getUserId (userId) -> atom.config.set('metrics.userId', userId)
@begin(sessionLength)
serialize: ->
sessionLength... | crypto = require 'crypto'
Reporter = require './reporter'
module.exports =
activate: ({sessionLength}) ->
if atom.config.get('metrics.userId')
@begin(sessionLength)
else
@getUserId (userId) -> atom.config.set('metrics.userId', userId)
@begin(sessionLength)
serialize: ->
sessionLength... | Replace guid package call with node-uuid call | Replace guid package call with node-uuid call
| CoffeeScript | mit | atom/metrics |
fb0f1f54746dbc905f839bed53bc5f3ab0f29282 | app/models/task.coffee | app/models/task.coffee | Spine = require('spine')
class window.Task extends Spine.Model
# Set model properties
@configure 'Task',
'name',
'date',
'notes',
'completed',
'priority',
'list'
@extend @Local
@active: (list) =>
@select (task) ->
!task.completed and (if list then (task.list is list) else y... | Spine = require('spine')
class window.Task extends Spine.Model
# Set model properties
@configure 'Task',
'name',
'date',
'notes',
'completed',
'priority',
'list'
@extend @Local
@active: (list) =>
@select (task) ->
!task.completed and (if list then (task.list is list) else y... | Make search better by ignoring word order | Make search better by ignoring word order
| CoffeeScript | unknown | nitrotasks/nitro,nitrotasks/nitro,CaffeinatedCode/nitro |
5a9c54951bf0938c18368357d574836045b26362 | lib/markdown-preview.coffee | lib/markdown-preview.coffee | url = require 'url'
fs = require 'fs-plus'
MarkdownPreviewView = require './markdown-preview-view'
module.exports =
activate: ->
atom.workspaceView.command 'markdown-preview:show', =>
@show()
atom.workspace.registerOpener (uriToOpen) ->
{protocol, host, pathname} = url.parse(uriToOpen)
pa... | url = require 'url'
fs = require 'fs-plus'
MarkdownPreviewView = require './markdown-preview-view'
module.exports =
configDefaults:
grammars: [
'source.gfm'
'text.plain'
'text.plain.null-grammar'
]
activate: ->
atom.workspaceView.command 'markdown-preview:show', =>
@show()
... | Make whitelisted grammars a config setting | Make whitelisted grammars a config setting
| CoffeeScript | mit | sctlee/markdown-preview,ArnaudRinquin/markdown-preview,Galadirith/markdown-preview,makyo/markdown-preview,atom/markdown-preview,grimmer0125/markdown-preview-kramdown,danielgtaylor/atom-api-blueprint-preview,tkssharma/markdown-preview,rugk/markdown-preview |
ce2b507a79a6fbd80183653f616328c31fbaf6bc | keymaps/simple-flake8.cson | keymaps/simple-flake8.cson | '.platform-darwin, .platform-darwin .simple-flake8 .editor':
'cmd-shift-8': 'simple-flake8:toggle'
'.platform-win32, .platform-win32 .simple-flake8 .editor':
'ctrl-shift-8': 'simple-flake8:toggle'
'.platform-linux, .platform-linux .simple-flake8 .editor':
'ctrl-shift-8': 'simple-flake8:toggle'
| '.platform-darwin atom-text-editor, .platform-darwin .simple-flake8':
'cmd-shift-8': 'simple-flake8:toggle'
'.platform-win32 atom-text-editor, .platform-win32 .simple-flake8':
'ctrl-shift-8': 'simple-flake8:toggle'
'.platform-linux atom-text-editor, .platform-linux .simple-flake8':
'ctrl-shift-8': 'simple-flake... | Fix deprecation of editor class in keymap. | Fix deprecation of editor class in keymap.
| CoffeeScript | mit | induane/simple-flake8 |
a39575596b000a31225021fa6933d6f3510481f2 | server/cron/sendMetrics.coffee | server/cron/sendMetrics.coffee | import {GROUPS} from '../../client/lib/informaticsGroups'
import {START_SUBMITS_DATE} from '../api/dashboard'
import send from '../metrics/graphite'
import Result from "../models/result"
export default sendMetrics = () ->
queries =
ok: {ok: 1, lastSubmitTime: {$gt: START_SUBMITS_DATE}},
ps: {ps: 1... | import {GROUPS} from '../../client/lib/informaticsGroups'
import {START_SUBMITS_DATE} from '../api/dashboard'
import send from '../metrics/graphite'
import Result from "../models/result"
export default sendMetrics = () ->
queries =
ok: {ok: 1, lastSubmitTime: {$gt: START_SUBMITS_DATE}},
ps: {ps: 1... | Send metrics only for problems, not for tables | Send metrics only for problems, not for tables | CoffeeScript | agpl-3.0 | petr-kalinin/algoprog,petr-kalinin/algoprog,petr-kalinin/algoprog,petr-kalinin/algoprog |
d891f9771c5565d0e7c01dfc3832aa35b6ec6f5b | src/core/logger.coffee | src/core/logger.coffee | ### logger.coffee ###
colors = require 'colors'
winston = require 'winston'
util = require 'util'
class cli extends winston.Transport
name: 'cli'
constructor: (options) ->
super(options)
@quiet = options.quiet or false
log: (level, msg, meta, callback) ->
if level == 'error'
process.stderr.... | ### logger.coffee ###
colors = require 'colors'
winston = require 'winston'
util = require 'util'
class cli extends winston.Transport
name: 'cli'
constructor: (options) ->
super(options)
@quiet = options.quiet or false
log: (level, msg, meta, callback) ->
if level == 'error'
process.stderr.... | Remove ugly yellow color from verbose log messages | Remove ugly yellow color from verbose log messages | CoffeeScript | mit | mimiflynn/wintersmith,MorJar/wintersmith,pridemusvaire/wintersmith,1upon0/wintersmith,MorJar/wintersmith,mimiflynn/wintersmith,jmptrader/wintersmith,jnordberg/wintersmith,pridemusvaire/wintersmith,jmptrader/wintersmith,taras/embersmith,cwhatley/wintersmith |
0fdb1b7c6c6c34126b39ba7f9e0104dfdd307218 | app/assets/javascripts/toast.js.coffee | app/assets/javascripts/toast.js.coffee | window.Toast = {}
toastQueue = []
showing = false
Toast.processToast = () ->
if toastQueue.length > 0
toast = toastQueue.shift()
$("#toasts").find(':first-child').remove()
if $(toast).data("toast-type") == "error"
Toast.toastError $(toast).text()
else
Toast.toastMessage $(toast).text()
T... | window.Toast = {}
toastQueue = []
showing = false
Toast.processToast = () ->
if toastQueue.length > 0
toast = toastQueue.shift()
$("#toasts").find(':first-child').remove()
if $(toast).data("toast-type") == "error"
Toast.toastError $(toast).text()
else
Toast.toastMessage $(toast).text()
T... | Add error class first for toasts | Add error class first for toasts
| CoffeeScript | mit | CodeForKids/cfk_finder |
b4a253167cfc9cd170cc0caed95de44960830a6b | src/index.coffee | src/index.coffee | "use strict"
filter = require './filter'
search = require './search'
beautify = require './beautify'
validate = require './validate'
defaults =
version: 1.1
retweets: true
mentions: true
default_profile_images: true
count: true
lang: []
mute: []
spam: []
media:
width: 500
height: 500
cl... | "use strict"
filter = require './filter'
search = require './search'
beautify = require './beautify'
validate = require './validate'
defaults =
version: 1.1
retweets: true
mentions: true
default_profile_images: true
count: true
lang: []
mute: []
spam: []
media:
width: 500
height: 500
cl... | Allow multiple using validate and beautify | Allow multiple using validate and beautify
| CoffeeScript | mit | meritt/twtcst |
271d7757b65738bc0ce36175bd79b698670c88ff | src/updateconfig.coffee | src/updateconfig.coffee |
config = require './config'
updateRoleStats = (cfg, stats) ->
if stats.average
delete cfg.p if cfg.p
cfg.process = stats.average
delete cfg.stddev if cfg.stddev # no longer valid
if stats.stddev
cfg.stddev = stats.stddev
updateStats = (cfg, stats) ->
for rolename, rolestats of stats
rolecon... |
config = require './config'
updateRoleStats = (cfg, stats) ->
if stats.average
delete cfg.p if cfg.p
cfg.processing = stats.average
delete cfg.stddev if cfg.stddev # no longer valid
if stats.stddev
cfg.stddev = stats.stddev
updateStats = (cfg, stats) ->
for rolename, rolestats of stats
role... | Fix wrong key being used | guv-update-workerstats: Fix wrong key being used [major]
The tool was using the 'process' config key instead of 'processing'
This would have caused the default (or old value in file) being
used instead, leading to wrong scaling parameters.
| CoffeeScript | mit | the-grid/guv,the-grid/guv,flowhub/guv |
c1f8b1e94199f6a957def106e0e28929e7095082 | tasks/test-task.coffee | tasks/test-task.coffee | fs = require 'fs'
path = require 'path'
async = require 'async'
module.exports = (grunt) ->
{spawn} = require('./task-helpers')(grunt)
grunt.registerTask 'run-specs', 'Run the specs', ->
passed = true
done = @async()
atomPath = path.resolve('atom.sh')
apmPath = path.resolve('node_modules/.bin/apm... | fs = require 'fs'
path = require 'path'
async = require 'async'
module.exports = (grunt) ->
{spawn} = require('./task-helpers')(grunt)
grunt.registerTask 'run-specs', 'Run the specs', ->
passed = true
done = @async()
atomPath = path.resolve('atom.sh')
apmPath = path.resolve('node_modules/.bin/apm... | Use long opts for clarity | :lipstick: Use long opts for clarity
| CoffeeScript | mit | sillvan/atom,hharchani/atom,chengky/atom,kdheepak89/atom,kdheepak89/atom,gisenberg/atom,Rychard/atom,hagb4rd/atom,Sangaroonaom/atom,amine7536/atom,RobinTec/atom,tmunro/atom,deepfox/atom,batjko/atom,dannyflax/atom,constanzaurzua/atom,tony612/atom,ppamorim/atom,beni55/atom,me6iaton/atom,pombredanne/atom,Galactix/atom,elk... |
1c6cc2317668872b499e6d7a5318917f748da22b | apps/tools/components/send_invitation/index.coffee | apps/tools/components/send_invitation/index.coffee | Promise = require 'bluebird-q'
{ API_URL } = require('sharify').data
{ track } = require '../../../../lib/analytics.coffee'
Serializer = require '../../../../components/form/serializer.coffee'
module.exports = ($el) ->
$form = $el.find '.js-form'
$submit = $el.find '.js-submit'
$errors = $el.find '.js-errors'
... | Promise = require 'bluebird-q'
{ API_URL } = require('sharify').data
{ track } = require '../../../../lib/analytics.coffee'
Serializer = require '../../../../components/form/serializer.coffee'
module.exports = ($el) ->
$form = $el.find '.js-form'
$submit = $el.find '.js-submit'
$errors = $el.find '.js-errors'
... | Add catch all error handling in case of AJAX fail response | Add catch all error handling in case of AJAX fail response
- Add `fail` block to form submission request promise chain.
- Add timeout tracking so that old requests dont clear timeouts set by subsequent requests.
| CoffeeScript | mit | aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell |
ebe281102d6a6f6e0de4bb92376589272c02fb58 | lib/file.coffee | lib/file.coffee | uploadPath = "/var/www/rocket.chat/uploads"
store = new FS.Store.FileSystem "avatars",
path: uploadPath
fileKeyMaker: (fileObj) ->
filename = fileObj.name()
filenameInStore = fileObj.name({store: 'avatars'})
return filenameInStore || filename
@Avatars = new FS.Collection "avatars",
stores: [store]
@Avatars... | storeType = 'GridFS'
if Meteor.settings?.public?.avatarStore?.type?
storeType = Meteor.settings.public.avatarStore.type
store = undefined
beforeWrite = (fileObj) ->
fileObj._setInfo 'avatars', 'storeType', storeType, true
if storeType is 'FileSystem'
path = "~/uploads"
if Meteor.settings?.public?.avatarStore?.pa... | Add GridFS as default avatar storage | Add GridFS as default avatar storage
| CoffeeScript | mit | Ninotna/Rocket.Chat,williamfortunademoraes/Rocket.Chat,Dianoga/Rocket.Chat,haoyixin/Rocket.Chat,LeonardOliveros/Rocket.Chat,arvi/Rocket.Chat,alexbrazier/Rocket.Chat,tradetiger/Rocket.Chat,xasx/Rocket.Chat,jonathanhartman/Rocket.Chat,BHWD/noouchat,galrotem1993/Rocket.Chat,dmitrijs-balcers/Rocket.Chat,mhurwi/Rocket.Chat,... |
eb77ee2b4cb1cfcf8531fdcde32e9474faa6a4f2 | app/assets/rui/Form.coffee | app/assets/rui/Form.coffee | core = require './core'
Input = require './Input'
{p, span, label} = require './DOM'
ActivityIndicator = require './ActivityIndicator'
Form =
Input: core.createComponent 'rui.Form.Input',
getInitialState: ->
uniqueId: core.uniqueId()
render: ->
p className: 'rui-form-p', [
label htmlFor... | core = require './core'
Input = require './Input'
{p, span, label} = require './DOM'
ActivityIndicator = require './ActivityIndicator'
Form =
Input: core.createComponent 'rui.Form.Input',
getInitialState: ->
uniqueId: core.uniqueId()
render: ->
p className: 'rui-form-p', [
label htmlFor... | Fix missing label reference to input field | Fix missing label reference to input field
| CoffeeScript | agpl-3.0 | intfrr/redmine_dashboard,intfrr/redmine_dashboard,jmfarina/redmine_dashboard,jmfarina/redmine_dashboard,intfrr/redmine_dashboard,jmfarina/redmine_dashboard,jmfarina/redmine_dashboard,intfrr/redmine_dashboard |
a44b588adb584ebb147b90a98b7389405115758e | src/clinical/encounter.data.coffee | src/clinical/encounter.data.coffee | `import Pathology from "./pathology.data.coffee"`
###*
* The clinical Encounter REST data object extension utility.
*
* @module clinical
* @class ClinicalEncounter
* @static
###
ClinicalEncounter =
###*
* @method extend
* @param encounter the clinical encounter
* @param subject the parent subject REST ... | `import Pathology from "./pathology.data.coffee"`
`import Breast from "./breast.coffee"`
###*
* The clinical Encounter REST data object extension utility.
*
* @module clinical
* @class ClinicalEncounter
* @static
###
ClinicalEncounter =
###*
* @method extend
* @param encounter the clinical encounter
* ... | Extend clinical for breast tumors. | Extend clinical for breast tumors.
| CoffeeScript | bsd-2-clause | ohsu-qin/qiprofile,ohsu-qin/qiprofile,ohsu-qin/qiprofile,ohsu-qin/qiprofile |
d07f15438a727e1597bab39cdf9dc0359c74f975 | SingularityUI/app/collections/TasksScheduled.coffee | SingularityUI/app/collections/TasksScheduled.coffee | Tasks = require './Tasks'
TaskScheduled = require '../models/TaskScheduled'
class TasksScheduled extends Tasks
model: TaskScheduled
url: "#{ env.SINGULARITY_BASE }/#{ constants.apiBase }/tasks/scheduled"
parse: (tasks) ->
_.each tasks, (task, i) =>
task.JSONString = utils.stringJSON ... | Tasks = require './Tasks'
TaskScheduled = require '../models/TaskScheduled'
class TasksScheduled extends Tasks
model: TaskScheduled
url: "#{ env.SINGULARITY_BASE }/#{ constants.apiBase }/tasks/scheduled"
parse: (tasks) ->
_.each tasks, (task, i) =>
task.JSONString = utils.stringJSON ... | Fix scheduled task property changes | Fix scheduled task property changes | CoffeeScript | apache-2.0 | hs-jenkins-bot/Singularity,evertrue/Singularity,nvoron23/Singularity,mjball/Singularity,acbellini/Singularity,evertrue/Singularity,calebTomlinson/Singularity,mjball/Singularity,nvoron23/Singularity,acbellini/Singularity,calebTomlinson/Singularity,nvoron23/Singularity,hs-jenkins-bot/Singularity,grepsr/Singularity,andrha... |
0e9621bfc401dc0218f4c6a1df63cd0f034f06bd | server/routes/reports.coffee | server/routes/reports.coffee | Report = require('../models/report.coffee').model
exports.index = (req, res) ->
Report.find (err, reports) ->
if !err?
res.render "reports/index",
reportsJSON: JSON.stringify(reports)
title: "Report show page"
exports.show = (req, res) ->
reportId = req.params.id
Report.findOne(report... | Report = require('../models/report.coffee').model
exports.index = (req, res) ->
Report.find (err, reports) ->
if !err?
res.render "reports/index",
reportsJSON: JSON.stringify(reports)
title: "Report show page"
exports.show = (req, res) ->
reportId = req.params.id
Report.findOne(report... | Make report page fetch page association | Make report page fetch page association
| CoffeeScript | bsd-3-clause | unepwcmc/NRT,unepwcmc/NRT |
703d0b8a3dde3ee359eba9818bce8ebb55ebbb65 | spec/jquery.turbolinks_spec.coffee | spec/jquery.turbolinks_spec.coffee | require('../src/jquery.turbolinks.coffee')
chai = require('chai')
sinon = require('sinon')
sinonChai = require('sinon-chai')
jQuery = require('jquery')
chai.should()
chai.use(sinonChai)
describe 'jQuery Turbolinks', ->
it '''
should trigger callbacks passed to
`jQuery()` and `jQuery.read... | jsdom = require('jsdom').jsdom
global.document = jsdom()
global.window = document.createWindow()
require('../src/jquery.turbolinks.coffee')
chai = require('chai')
sinon = require('sinon')
sinonChai = require('sinon-chai')
$ = require('jquery')
chai.should()
chai.use(sinonChai)
describe '$ Turbol... | Update test suite, now it works properly | Update test suite, now it works properly
| CoffeeScript | mit | echobobby/jquery.turbolinks,rstacruz/jquery.turbolinks,kossnocorp/jquery.turbolinks |
93434adc1d2233f90b6c210d1b9a7de33ffabcf1 | Gruntfile.coffee | Gruntfile.coffee | module.exports = (grunt) ->
grunt.initConfig
pkg: grunt.file.readJSON('package.json')
coffee:
glob_to_multiple:
expand: true
cwd: 'src'
src: ['*.coffee']
dest: 'lib'
ext: '.js'
coffeelint:
options:
no_empty_param_list:
level: 'error'
... | module.exports = (grunt) ->
grunt.initConfig
pkg: grunt.file.readJSON('package.json')
coffee:
glob_to_multiple:
expand: true
cwd: 'src'
src: ['*.coffee']
dest: 'lib'
ext: '.js'
coffeelint:
options:
no_empty_param_list:
level: 'error'
... | Delete gen/ during clean task | Delete gen/ during clean task
| CoffeeScript | mit | mathiasbynens/highlights,atom/highlights,soldair/highlights,tiffon/highlights,bcoe/highlights,leipert/highlights,davidtheclark/highlights,pouwerkerk/highlights,pombredanne/highlights |
be026d339f664255fc8a0ece9f76cc26a4e8634f | src/quo.style.coffee | src/quo.style.coffee | do ($$ = Quo) ->
VENDORS = [ "-webkit-", "-moz-", "-ms-", "-o-", "" ]
$$.fn.addClass = (name) ->
@each ->
unless _existsClass(name, @className)
@className += " " + name
@className = @className.trim()
$$.fn.removeClass = (name) ->
@each ->
... | do ($$ = Quo) ->
VENDORS = [ "-webkit-", "-moz-", "-ms-", "-o-", "" ]
$$.fn.addClass = (name) ->
@each ->
unless _existsClass(name, @className)
@className += " " + name
@className = @className.trim()
$$.fn.removeClass = (name) ->
@each ->
... | Fix for when the array is empty | Fix for when the array is empty
`$$.fn.hasClass` and `$$.fn.style` will both throw exceptions if the current selection of elements is empty.
| CoffeeScript | mit | soyjavi/QuoJS,xuboso/QuoJS,luiscauro/QuoJS,soyjavi/QuoJS,luiscauro/QuoJS |
68d03eaee75742488b773af5393f8d06f4026793 | src/kissmetrics-batch.coffee | src/kissmetrics-batch.coffee | # # Kissmetrics Batch
class BatchKissmetricsClient
@HOST: 'api.kissmetrics.com'
@HTTP_METHOD: 'POST'
@API_VERSION: 'v1'
@process: (queue, apiKey, apiSecret, productGUID) =>
http = require 'http'
urlPath = "#{@API_VERSION}/products/#{productGUID}/tracking/e"
baseUrl = "http://#{@HOST}/#{urlPat... | # # Kissmetrics Batch
class BatchKissmetricsClient
@HOST: 'api.kissmetrics.com'
@HTTP_METHOD: 'POST'
@API_VERSION: 'v1'
@process: (queue, apiKey, apiSecret, productGUID) =>
http = require 'http'
urlPath = "#{@API_VERSION}/products/#{productGUID}/tracking/e"
baseUrl = "http://#{@HOST}/#{urlPat... | Call queue.done() in the request callback | Call queue.done() in the request callback
| CoffeeScript | mit | evansolomon/kissmetrics-js,evansolomon/kissmetrics-js |
2492fd3840e34d4c85c2976eee3d442f6ed0489d | lib/models/git-init.coffee | lib/models/git-init.coffee | git = require '../git'
ProjectsListView = require '../views/projects-list-view'
StatusView = require '../views/status-view'
gitInit = ->
currentFile = atom.workspace.getActiveTextEditor()?.getPath()
if not currentFile and atom.project.getPaths().length > 1
promise = new ProjectsListView().result.then (path) ->... | git = require '../git'
ProjectsListView = require '../views/projects-list-view'
StatusView = require '../views/status-view'
gitInit = ->
currentFile = atom.workspace.getActiveTextEditor()?.getPath()
if not currentFile and atom.project.getPaths().length > 1
promise = new ProjectsListView().result.then (path) ->... | Fix deprecations in git init command | Fix deprecations in git init command
| CoffeeScript | mit | akonwi/git-plus,akonwi/git-plus |
28f5eafe8b2e34e7a9dc9e2c00cf6881013e2314 | lib/algorhythmic.coffee | lib/algorhythmic.coffee | class Algorhythmic
max: 10
compute: (array) ->
array
.map(@getCharInt)
.reduce((previousInt, currentInt) =>
(previousInt + currentInt) % @max
, 0) + 1
getCharInt: (char) -> parseInt char.charCodeAt(0) or 0
convert: (string) ->
str = string.replace(/\.(png|jpg|gif|)$/g, "")
strin... | class Algorhythmic
max: 10
convert: (string) ->
str = string.replace(/\.(png|jpg|gif|)$/g, "")
stringArray = str.split('')
return @_compute(stringArray)
_compute: (array) ->
array
.map(@_getCharInt)
.reduce((previousInt, currentInt) =>
(previousInt + currentInt) % @max
, 0) + 1... | Use convention for 'private' functions | Use convention for 'private' functions
Move them below public functions, also.
| CoffeeScript | mit | gitblit/avatars-api,mojects/avatars-api,adorableio/avatars-api,mojects/avatars-api,gitblit/avatars-api |
1725008f0022b6213f2f81afa0d9ab14f2e317c0 | src/ks/github/models/repo.coffee | src/ks/github/models/repo.coffee | class Repo extends Backbone.Model
class RepoCollection extends Backbone.Collection
model: Repo
url: 'https://api.github.com/users/trabianmatt/repos'
module.exports = { Repo, RepoCollection }
| class Repo extends Backbone.Model
class RepoCollection extends Backbone.Collection
model: Repo
url: 'https://api.github.com/users/trabian/repos'
module.exports = { Repo, RepoCollection }
| Change sample Github user to 'trabian' from 'trabianmatt' | Change sample Github user to 'trabian' from 'trabianmatt'
| CoffeeScript | mit | trabian/titanium-backbone-ks,trabian/titanium-backbone-ks |
f5ea29b19895ddf454386a22f6419fb41afbe651 | lib/main.coffee | lib/main.coffee | {Disposable} = require('atom')
module.exports =
instance: null
config:
lintOnFly:
title: 'Lint on fly'
description: 'Lint files while typing, without the need to save them'
type: 'boolean'
default: true
showErrorPanel:
title: 'Show Error Panel at the bottom'
type: 'boolea... | {Disposable} = require('atom')
module.exports =
instance: null
config:
lintOnFly:
title: 'Lint on fly'
description: 'Lint files while typing, without the need to save them'
type: 'boolean'
default: true
showErrorPanel:
title: 'Show Error Panel at the bottom'
type: 'boolea... | Fix a critical bug in self service | :bug: Fix a critical bug in self service
| CoffeeScript | mit | mdgriffith/linter,e-jigsaw/Linter,josa42/Linter,blakeembrey/linter,steelbrain/linter,UltCombo/linter,AtomLinter/Linter,JohnMurga/linter,iam4x/linter,levity/linter,elkeis/linter,shawninder/linter,AsaAyers/linter,kaeluka/linter,DanPurdy/linter,Arcanemagus/linter,atom-community/linter |
69089bc3527f60958d1e1c217571df83c91fe8ee | app/assets/javascripts/cmsimple/panels/images/selection.coffee | app/assets/javascripts/cmsimple/panels/images/selection.coffee | class CMSimple.Panels.ImageLibrary.Selection extends Spine.Controller
constructor: ->
super
@bindEvents()
set: (img)->
if @selectedImage
@selectedImage.attr('src', img.src)
snippet = Mercury.Snippet.find @selectedImage.parents('[data-snippet]').data('snippet')
snippet.options.snippet... | class CMSimple.Panels.ImageLibrary.Selection extends Spine.Controller
constructor: ->
super
@bindEvents()
set: (img)->
if @selectedImage
@selectedImage.attr('src', img.src)
@selectedImage.attr('alt', img.alt)
snippet = Mercury.Snippet.find @selectedImage.parents('[data-snippet]').dat... | Set the alt attribute on the image as well. | Set the alt attribute on the image as well. | CoffeeScript | mit | modeset/cmsimple,modeset/cmsimple,modeset/cmsimple |
4e126745e055ee97909f0cb310d2ebc977ed546d | menus/tabs.cson | menus/tabs.cson | 'context-menu':
'.tab': [
{label: 'Close Tab', command: 'tabs:close-tab'}
{label: 'Close Other Tabs', command: 'tabs:close-other-tabs'}
{label: 'Close Tabs to the Right', command: 'tabs:close-tabs-to-right'}
{label: 'Close Saved Tabs', command: 'tabs:close-saved-tabs'}
{label: 'Close All Tabs', co... | menu: [
{
label: 'File'
submenu: [
{label: 'Close All Tabs', command: 'tabs:close-all-tabs'}
]
}
]
'context-menu':
'.tab': [
{label: 'Close Tab', command: 'tabs:close-tab'}
{label: 'Close Other Tabs', command: 'tabs:close-other-tabs'}
{label: 'Close Tabs to the Right', command: 'tab... | Add 'Close All Tabs' to File menu | Add 'Close All Tabs' to File menu
| CoffeeScript | mit | atom/tabs,pombredanne/tabs |
dbb859abfd9813318af8cd24a12a67bb6fd0f3f7 | atom/config.cson | atom/config.cson | '*':
'editor':
'fontFamily': 'PragmataPro'
'showInvisibles': true
'showIndentGuide': true
'invisibles': {}
'core':
'disabledPackages': [
'autocomplete'
'spell-check'
]
'themes': [
'solarized-dark-ui'
'solarized-dark-syntax'
]
'projectHome': '/Users/edgard/... | '*':
'editor':
'fontFamily': 'PragmataPro'
'showInvisibles': true
'showIndentGuide': true
'invisibles': {}
'core':
'disabledPackages': [
'autocomplete'
'spell-check'
]
'themes': [
'solarized-dark-ui'
'solarized-dark-syntax'
]
'projectHome': '/home/edgard/D... | Change default project path for atom | Change default project path for atom
| CoffeeScript | cc0-1.0 | edgard/dotfiles,edgard/dotfiles |
37466f3bc5005ea7fa7e1c2d4ab7492757d88bce | lib/pg-hoff-types.coffee | lib/pg-hoff-types.coffee | class PgHoffTypes
@Type:
'timestamp with time zone':
format: (value) -> return new Date(value).toLocaleString(atom.config.get('pg-hoff.locale'))
'timestamp':
format: (value) -> return new Date(value).toLocaleString(atom.config.get('pg-hoff.locale'))
'j... | timestamp =
format: (value) -> new Date(value).toLocaleString(atom.config.get('pg-hoff.locale'))
time =
format: (value) -> new Date('2000-01-01 ' + value).toLocaleTimeString(atom.config.get('pg-hoff.locale'))
class PgHoffTypes
@Type:
'timestamp with time zone': timestamp
'timestamp without t... | Add support for time data types | Add support for time data types
And remove a tiny bit of duplication.
| CoffeeScript | mit | rikard2/pg-hoff,rikard2/pg-hoff |
9543b6cf4a14af779ad12826adfcffa02a4a16ba | Settings.coffee | Settings.coffee | fs = require "fs"
path = require "path"
env = (process.env.NODE_ENV or "development").toLowerCase()
if process.env.SHARELATEX_CONFIG?
possibleConfigFiles = [process.env.SHARELATEX_CONFIG]
else
possibleConfigFiles = [
process.cwd() + "/config/settings.#{env}.coffee"
path.normalize(__dirname + "/../../config/setti... | fs = require "fs"
path = require "path"
env = (process.env.NODE_ENV or "development").toLowerCase()
merge = (settings, defaults) ->
for key, value of settings
if typeof(value) == "object"
defaults[key] = merge(settings[key], defaults[key] or {})
else
defaults[key] = value
return defaults
defaultSettingsPa... | Load and merge defaults if available | Load and merge defaults if available
Load and merge defaults if available
| CoffeeScript | mit | sharelatex/settings-sharelatex |
011cda615344f144df1577fb275cbc7f559a7e91 | lib/base_task.coffee | lib/base_task.coffee | Q = require 'q'
{Base} = require "#{__dirname}/base"
{Wrappers} = require "#{__dirname}/helpers/wrappers"
{BeanBuilder} = require "#{__dirname}/helpers/bean_builder"
class BaseTask extends Base
app: null
actions: null
actionBuilder: null
constructor: ->
@actions = []
@actionBuilder = new BeanBuild... | Q = require 'q'
{Base} = require "#{__dirname}/base"
{Wrappers} = require "#{__dirname}/helpers/wrappers"
{BeanBuilder} = require "#{__dirname}/helpers/bean_builder"
class BaseTask extends Base
app: null
actions: null
actionBuilder: null
constructor: ->
@actions = []
@actionBuilder = new BeanBuild... | Improve logging out errors when performing task's actions. | Improve logging out errors when performing task's actions.
| CoffeeScript | mit | knalli/pi-jenkins,knalli/pi-jenkins |
7a0f2c0587aa9d76ea3ac9387cf2c14e4f168ad4 | test/test-util.coffee | test/test-util.coffee | QUnit.test "test unique", (assert) ->
input = [5, 6, 7, 5, 5, 6, 7]
output = unique(input)
expected = [5, 6, 7]
assert.deepEqual( output , expected)
| QUnit.test "test unique", (assert) ->
input = [5, 6, 7, 5, 5, 6, 7]
output = unique(input)
expected = [5, 6, 7]
assert.deepEqual(output , expected, "plain")
input = [5, 6, null, 7, 5, 5, 6, 7]
output = unique(input)
assert.deepEqual(output, expected, "with null")
input = [5]
outpu... | Add to unique unit tests | Add to unique unit tests
| CoffeeScript | mit | kbroman/d3panels,kbroman/d3panels |
cfe33dc1e4720bc2371897e19c9a392b72583c58 | client/controller/wish-controller.coffee | client/controller/wish-controller.coffee | class @WishController extends RouteController
waitOn: ->
[Meteor.subscribe('wish', @params.id), subscriptionHandles['users']]
tempalte: 'wish'
renderTemplates:
'nav': to: 'nav'
notFoundTemplate: 'notFound'
data: ->
wish = Wishes.findOne({_id: @params.id})
if not wish then return null
... | class @WishController extends RouteController
waitOn: ->
subs = [subscriptionHandles.users]
if not Wishes.findOne({_id: @params.id})
s = Meteor.subscribe('wish', @params.id)
s.stop = ->
subs.push(s)
subs
tempalte: 'wish'
renderTemplates:
'nav': to: 'nav'
notFoundTemplate: '... | Remove unneeded subscription at the wish page (if the data already exists) | Remove unneeded subscription at the wish page (if the data already exists)
| CoffeeScript | apache-2.0 | rantav/reversim-summit-2014,rantav/reversim-summit-2015,rantav/reversim-summit-2015,rantav/reversim-summit-2014,rantav/reversim-summit-2015 |
a747d38a287f3e7824998793d9a84063d8d662d9 | src/support/index.coffee | src/support/index.coffee | module.exports = ->
@logger = require './logger'
@visit = (path) =>
@driver.get "#{@host}#{path}"
_Before = @Before
_After = @After
@_inFlow = (code, callback) ->
$.createFlow (flow) =>
flow.execute => code.call(@)
.then _.partial(callback, null), callback
@Before = (code) ->
_Bef... | module.exports = ->
@logger = require './logger'
@visit = (path) =>
@driver.get "#{@host}#{path}"
_Before = @Before
_After = @After
@_inFlow = (code, callback) ->
$.createFlow (flow) =>
flow.execute => code.call(@)
.then _.partial(callback, null),
(err) -> throw err
@Before = (c... | Raise error on failed action in flow. | Raise error on failed action in flow.
| CoffeeScript | mit | bluespeckfinancial/pioneer,mojotech/pioneer,mAiNiNfEcTiOn/pioneer,bruz/pioneer,mojotech/pioneer,bruz/pioneer,bluespeckfinancial/pioneer,bruz/pioneer,bluespeckfinancial/pioneer,mojotech/pioneer,mAiNiNfEcTiOn/pioneer,mAiNiNfEcTiOn/pioneer |
3d177dc8308cb7da4dc711077fc41ab68efed52c | keymaps/to-the-hubs.cson | keymaps/to-the-hubs.cson | '.workspace':
'ctrl-g o': 'github:open'
'ctrl-g b': 'github:blame'
'ctrl-g h': 'github:history'
'ctrl-g c': 'github:copy-url'
| '.workspace':
'alt-g o': 'github:open'
'alt-g b': 'github:blame'
'alt-g h': 'github:history'
'alt-g c': 'github:copy-url'
| Use alt instead of ctrl | Use alt instead of ctrl
| CoffeeScript | mit | atom/open-on-github |
b99a3333fa28a6ab36cea6b13387b2e413c1ff8c | test/browser/helper.coffee | test/browser/helper.coffee | chai = require 'chai'
chai.should()
chai.use require 'chai-as-promised'
require 'postmortem/register'
Nightmare = require 'joseph/nightmare'
before ->
browser = Nightmare show: process.env.VERBOSE is 'true'
yield browser.goto 'http://localhost:3333/'
global.browser = browser
after ->
yield browser.end()
| chai = require 'chai'
chai.should()
chai.use require 'chai-as-promised'
require 'postmortem/register'
Nightmare = require 'joseph/nightmare'
before ->
browser = Nightmare
show: process.env.VERBOSE is 'true'
# switches:
# 'proxy-server': 'http://localhost:4010'
# 'ignore-certificate... | Add proxy settings for nightmare. | Add proxy settings for nightmare.
| CoffeeScript | mit | crowdstart/crowdstart.js |
d88affc4e95540afa9a2c1d9c5c365bb28f4b4d2 | gulpfile.coffee | gulpfile.coffee | 'use strict'
gulp = require 'gulp'
$ = (require 'gulp-load-plugins') lazy: false
paths =
jshint: [
'./bin/*.js'
]
coffeelint: [
'./gulpfile.coffee'
'./test/*.coffee'
]
watch: [
'./gulpfile.coffee'
'./bin/**/*.js'
'./test/**/*.coffee'
]
tests: [
'./test/**/*.coffee'
]
gulp.... | 'use strict'
gulp = require 'gulp'
$ = (require 'gulp-load-plugins') lazy: false
paths =
jshint: [
'./bin/*'
]
coffeelint: [
'./gulpfile.coffee'
'./test/*.coffee'
]
watch: [
'./gulpfile.coffee'
'./bin/**/*.js'
'./test/**/*.coffee'
]
tests: [
'./test/**/*.coffee'
]
gulp.tas... | Enable to lint no-extension file | Enable to lint no-extension file
| CoffeeScript | mit | knjcode/sco |
ff9c031f57e5e1b556b9964a16404feb0be5042a | spec/spec-bootstrap.coffee | spec/spec-bootstrap.coffee | # Start the crash reporter before anything else.
require('crash-reporter').start(productName: 'Atom', companyName: 'GitHub')
path = require 'path'
try
require '../src/window'
Atom = require '../src/atom'
window.atom = Atom.loadOrCreate('spec')
# Show window synchronously so a focusout doesn't fire on input e... | # Start the crash reporter before anything else.
require('crash-reporter').start(productName: 'Atom', companyName: 'GitHub')
path = require 'path'
try
require '../src/window'
Atom = require '../src/atom'
window.atom = Atom.loadOrCreate('spec')
# Show window synchronously so a focusout doesn't fire on input e... | Use path.join instead of path.resolve | Use path.join instead of path.resolve
Applies commit 41ab48b to spec-bootstrap.coffee
| CoffeeScript | mit | jjz/atom,bcoe/atom,sillvan/atom,scippio/atom,tmunro/atom,tmunro/atom,fang-yufeng/atom,avdg/atom,decaffeinate-examples/atom,transcranial/atom,h0dgep0dge/atom,nvoron23/atom,bolinfest/atom,charleswhchan/atom,Jonekee/atom,qskycolor/atom,kittens/atom,001szymon/atom,bcoe/atom,me-benni/atom,g2p/atom,mnquintana/atom,vinodpanic... |
d2772e18f243240f1965b531f55f4fe024b7c65b | test/src/system/canceled_input_test.coffee | test/src/system/canceled_input_test.coffee | {pressKey, test, testGroup, typeCharacters} = Trix.TestHelpers
testOptions =
template: "editor_empty"
setup: ->
addEventListener("keydown", cancel, true)
addEventListener "trix-before-initialize", handler = ({target}) ->
removeEventListener("trix-before-initialize", handler)
target.addEventList... | {pressKey, test, testGroup, typeCharacters} = Trix.TestHelpers
testOptions =
template: "editor_empty"
setup: ->
addEventListener("keydown", cancel, true)
addEventListener "trix-before-initialize", handler = ({target}) ->
removeEventListener("trix-before-initialize", handler)
target.addEventList... | Fix tests in IE 11 | Fix tests in IE 11
| CoffeeScript | mit | basecamp/trix,basecamp/trix,basecamp/trix,basecamp/trix |
366a5b83dd696e1b176967d61809f7362c36bea8 | api/v0/models/keys.coffee | api/v0/models/keys.coffee | keysSchema = mongoose.Schema
user:
type: mongoose.Schema.ObjectId
ref: "User"
identifier: String
key: String
created_at:
type: Date
default: Date.now
updated_at:
type: Date
default: Date.now
keysSchema.static "getUserKeyWithIdentifier", (user, ident, cb) ->
this.find
user: user
identifier: ident... | keysSchema = mongoose.Schema
user:
type: mongoose.Schema.ObjectId
ref: "User"
identifier: String
key: String
created_at:
type: Date
default: Date.now
updated_at:
type: Date
default: Date.now
keysSchema.static "getUserKeyWithIdentifier", (user, ident, cb) ->
this.find
user: user.id
identifier: id... | Select by user.id, not the whole user object | Select by user.id, not the whole user object
| CoffeeScript | mit | waltzio/cy,waltzio/cy |
3ff42c9ae52c43965e0fcb698d1b6a797df16d17 | app/scripts/config.coffee | app/scripts/config.coffee | require.config
deps: ["main"]
shim: {
handlebars: exports: "Handlebars"
}
paths:
# RequireJS plugins
text: "../vendor/text/text"
# Third party libraries
jquery: "../vendor/jquery/jquery"
handlebars: "../vendor/handlebars/handlebars"
backbone: "../vendor/backbone-amd/backbone"
... | require.config
deps: ["main"]
shim: {
handlebars: exports: "Handlebars"
}
paths:
# RequireJS plugins
text: "../vendor/text/text"
# Third party libraries
jquery: "../vendor/jquery/jquery"
handlebars: "../vendor/handlebars/handlebars"
backbone: "../vendor/backbone-amd/backbone"
... | Switch over to hosted API | Switch over to hosted API
| CoffeeScript | mit | JoelBesada/Backtick |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.