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 |
|---|---|---|---|---|---|---|---|---|---|
ea4cb42a3266512991854b69383d19291017be65 | menus/markdown-preview.cson | menus/markdown-preview.cson | 'menu': [
'label': 'Packages'
'submenu': [
'label': 'Markdown'
'submenu': [
'label': 'Toggle Preview'
'command': 'markdown-preview:toggle'
]
]
]
'context-menu':
'.markdown-preview':
'Copy': 'core:copy'
'Save As HTML\u2026': 'core:save-as'
| 'menu': [
'label': 'Packages'
'submenu': [
'label': 'Markdown Preview'
'submenu': [
'label': 'Toggle Preview'
'command': 'markdown-preview:toggle'
]
]
]
'context-menu':
'.markdown-preview':
'Copy': 'core:copy'
'Save As HTML\u2026': 'core:save-as'
| Use package name in menu | Use package name in menu
| CoffeeScript | mit | rugk/markdown-preview,sctlee/markdown-preview,ArnaudRinquin/markdown-preview,atom/markdown-preview,grimmer0125/markdown-preview-kramdown,makyo/markdown-preview,tkssharma/markdown-preview,Galadirith/markdown-preview |
36a1e3161d971e911b4662efce8dd38af4a344ce | lib/providers/abstract-provider.coffee | lib/providers/abstract-provider.coffee | module.exports =
class AbstractProvider
regex: ''
selector: '.source.php'
inclusionPriority: 1
excludeLowerPriority: true
# Build the snippet from the suggestion
getFunctionSnippet: (word, elements) ->
body = word + "("
lastIndex = 0
# Non optional elements
for arg, index in elements.para... | module.exports =
class AbstractProvider
regex: ''
selector: '.source.php'
inclusionPriority: 1
excludeLowerPriority: true
disableForSelector: '.source.php .comment, .source.php .string'
# Build the snippet from the suggestion
getFunctionSnippet: (word, elements) ->
body = word + "("
lastIndex =... | Disable autocomplete in comment and string | Disable autocomplete in comment and string
| CoffeeScript | mit | Adirelle/atom-autocomplete-php,Peekmo/atom-autocomplete-php,CWDN/atom-autocomplete-php |
4ac3c0e6fb9a65b89e328675383f1d51c8506c73 | atom/init.coffee | atom/init.coffee | # Your init script
fs = require 'fs'
path = require 'path'
DEFAULT_WORKON_HOME = path.join(process.env.HOME, '.virtualenvs')
# Get path to directory containing all Python virtualenvs
getVirtualenvHome = ->
if process.env.WORKON_HOME
return process.env.WORKON_HOME
else
return DEFAULT_WORKON_HOME
# Acti... | # Your init script
fs = require 'fs'
path = require 'path'
DEFAULT_WORKON_HOME = path.join(process.env.HOME, '.virtualenvs')
# Get path to directory containing all Python virtualenvs
getVirtualenvHome = ->
if process.env.WORKON_HOME
return process.env.WORKON_HOME
else
return DEFAULT_WORKON_HOME
# Acti... | Add correct virtualenv dir to PATH | Add correct virtualenv dir to PATH
| CoffeeScript | mit | caleb531/dotfiles,caleb531/dotfiles,caleb531/dotfiles,caleb531/dotfiles |
e69b6da6844defc96f16efb6e2136fbff3afb9b6 | services/web/public/coffee/ide/review-panel/directives/reviewPanelSorted.coffee | services/web/public/coffee/ide/review-panel/directives/reviewPanelSorted.coffee | define [
"base"
], (App) ->
App.directive "reviewPanelSorted", ($timeout) ->
return {
link: (scope, element, attrs) ->
layout = () ->
entries = []
for el in element.find(".rp-entry")
entries.push {
el: el
scope: angular.element(el).scope()
}
entries.sort (a,b) -> a.s... | define [
"base"
], (App) ->
App.directive "reviewPanelSorted", ($timeout) ->
return {
link: (scope, element, attrs) ->
layout = () ->
entries = []
for el in element.find(".rp-entry")
entries.push {
el: el
scope: angular.element(el).scope()
}
entries.sort (a,b) -> a.s... | Stop deletes overlapping comments (but leads to occasional flickering) | Stop deletes overlapping comments (but leads to occasional flickering)
| CoffeeScript | agpl-3.0 | sharelatex/sharelatex |
2007e13279b5b2a08c8bbf8a13e722fbc263fcc8 | app/assets/javascripts/neighborly/projects/contributions/new.js.coffee | app/assets/javascripts/neighborly/projects/contributions/new.js.coffee | Neighborly.Projects.Contributions = {} if Neighborly.Projects.Contributions is undefined
Neighborly.Projects.Contributions.New =
modules: -> []
init: ->(
initialize: ->
$('.maturity-option .header').click this.boxClicked
$('.order-size-input').on 'keyup', this.orderSizeChanged
boxClicked: (ev... | Neighborly.Projects.Contributions = {} if Neighborly.Projects.Contributions is undefined
Neighborly.Projects.Contributions.New =
modules: -> []
init: ->(
initialize: ->
$('.maturity-option .header').click this.boxClicked
$('.order-size-input').on 'keyup input', this.orderSizeChanged
boxClicke... | Add oninput to contributions new | Add oninput to contributions new
| CoffeeScript | mit | gustavoguichard/neighborly,gustavoguichard/neighborly,gustavoguichard/neighborly |
f9e9203a36617e75221d91c19373494388a453f9 | lib/model.coffee | lib/model.coffee | { flatten } = require('sdk/util/array');
class Model
constructor : (@sources, @filters) ->
@feeds = flatten(source.getFeeds() for source in @sources)
feed.on("updated", @onFeedUpdated) for feed in @feeds
@requestUpdate()
onFeedUpdated : (feed) =>
for item in feed.items
console.log(item.link)... | { flatten } = require('sdk/util/array');
Promise = require("sdk/core/promise")
class Model
constructor : (@sources, @filters) ->
@feeds = flatten(source.getFeeds() for source in @sources)
feed.on("updated", @onFeedUpdated) for feed in @feeds
@requestUpdate()
onFeedUpdated : (feed) =>
@filter(item)... | Implement item filtering in Model class | Implement item filtering in Model class
| CoffeeScript | mit | maul-esel/feed-ticker,maul-esel/feed-ticker |
880467caa1d25ead4ed5494fbc031574c34edbda | lib/panes.coffee | lib/panes.coffee | class FocusAction
constructor: ->
isComplete: -> true
isRecordable: -> false
focusCursor: ->
editor = atom.workspaceView.getActivePaneItem()
editorView = atom.workspaceView.getActiveView()
if editor? and editorView?
cursorPosition = editor.getCursorBufferPosition()
editorView.scrollToBu... | class FocusAction
constructor: ->
isComplete: -> true
isRecordable: -> false
focusCursor: ->
editor = atom.workspace.getActivePaneItem()
editorView = atom.workspaceView.getActiveView()
if editor? and editorView?
cursorPosition = editor.getCursorBufferPosition()
editorView.scrollToBuffer... | Access active pane item from atom.workspace | Access active pane item from atom.workspace
| CoffeeScript | mit | t9md/atom-vim-mode-plus |
6abf7351fa14c512cad53cda5bd52702e15b10cb | atom.symlink/config.cson | atom.symlink/config.cson | 'editor':
'showIndentGuide': true
'fontFamily': 'Menlo'
'fontSize': 15
'core':
'excludeVcsIgnoredPaths': true
'ignoredNames': [
'.bundle'
'.git'
'log'
'repositories'
'tmp'
'vendor'
]
'themes': [
'unity-ui'
'glacier-syntax'
]
'hideGitIgnoredFiles': true
'disabledPackag... | "*":
editor:
showIndentGuide: true
fontFamily: "Menlo"
fontSize: 15
invisibles: {}
core:
excludeVcsIgnoredPaths: true
ignoredNames: [
".bundle"
".git"
"log"
"repositories"
"tmp"
"vendor"
]
themes: [
"unity-ui"
"glacier-syntax"
]
... | Add atom and xip.io stuff. | Add atom and xip.io stuff.
| CoffeeScript | mit | MickeyKay/.dotfiles,MickeyKay/dotfiles,MickeyKay/dotfiles,MickeyKay/.dotfiles |
104226ec4e7f46dd3cc9c079f5dbf8b44044f745 | 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).on 'ready page:load', window.Binco.Select2.load
| window.Binco.Select2 =
load: (selector) ->
selector = if typeof selector == 'string' then selector else '.select2-rails'
$(selector).select2()
$(document).on 'ready page:load', window.Binco.Select2.load
| Make the selector argument only work on strings | Make the selector argument only work on strings
| CoffeeScript | mit | codn/binco,codn/binco,codn/binco |
03908fbd845c1d0d09efd52d98c75f3d7f3792f3 | internal_packages/thread-list/lib/draft-list-store.coffee | internal_packages/thread-list/lib/draft-list-store.coffee | NylasStore = require 'nylas-store'
Reflux = require 'reflux'
_ = require 'underscore'
{Message,
Actions,
DatabaseStore,
AccountStore,
FocusedContentStore,
DestroyDraftTask,
DatabaseView} = require 'nylas-exports'
class DraftListStore extends NylasStore
constructor: ->
@listenTo DatabaseStore, @_onDataChang... | NylasStore = require 'nylas-store'
Reflux = require 'reflux'
_ = require 'underscore'
{Message,
Actions,
DatabaseStore,
AccountStore,
FocusedContentStore,
DestroyDraftTask,
DatabaseView} = require 'nylas-exports'
class DraftListStore extends NylasStore
constructor: ->
@listenTo DatabaseStore, @_onDataChang... | Refresh view when draft becomes message | fix(drafts): Refresh view when draft becomes message
| CoffeeScript | mit | nylas-mail-lives/nylas-mail,simonft/nylas-mail,nirmit/nylas-mail,simonft/nylas-mail,nylas/nylas-mail,simonft/nylas-mail,nylas-mail-lives/nylas-mail,nirmit/nylas-mail,nylas-mail-lives/nylas-mail,nylas/nylas-mail,nylas-mail-lives/nylas-mail,nirmit/nylas-mail,nylas/nylas-mail,nirmit/nylas-mail,simonft/nylas-mail,nylas-mai... |
06d7c05aa8d138d02f745600096188014789f7db | internal_packages/account-sidebar/lib/components/account-switcher.cjsx | internal_packages/account-sidebar/lib/components/account-switcher.cjsx | React = require 'react'
{Actions} = require 'nylas-exports'
{RetinaImg} = require 'nylas-component-kit'
AccountCommands = require '../account-commands'
class AccountSwitcher extends React.Component
@displayName: 'AccountSwitcher'
@propTypes:
accounts: React.PropTypes.array.isRequired
focusedAccounts: Rea... | React = require 'react'
{Actions} = require 'nylas-exports'
{RetinaImg} = require 'nylas-component-kit'
AccountCommands = require '../account-commands'
class AccountSwitcher extends React.Component
@displayName: 'AccountSwitcher'
@propTypes:
accounts: React.PropTypes.array.isRequired
focusedAccounts: Rea... | Add option to add account from context menu | fix(acct-menu): Add option to add account from context menu
| CoffeeScript | mit | nylas-mail-lives/nylas-mail,nirmit/nylas-mail,nylas/nylas-mail,nirmit/nylas-mail,simonft/nylas-mail,simonft/nylas-mail,nylas-mail-lives/nylas-mail,nylas/nylas-mail,nylas/nylas-mail,nirmit/nylas-mail,nylas/nylas-mail,nirmit/nylas-mail,nylas/nylas-mail,nylas-mail-lives/nylas-mail,simonft/nylas-mail,simonft/nylas-mail,sim... |
0d9be4152234baecab81e754881e175da362084d | lineman/app/components/thread_preview_collection/thread_preview_collection.coffee | lineman/app/components/thread_preview_collection/thread_preview_collection.coffee | angular.module('loomioApp').directive 'threadPreviewCollection', ->
scope: {query: '=', limit: '=?'}
restrict: 'E'
templateUrl: 'generated/components/thread_preview_collection/thread_preview_collection.html'
replace: true
controller: ($scope, Records, CurrentUser) ->
$scope.lastVoteByCurrentUser = (thread... | angular.module('loomioApp').directive 'threadPreviewCollection', ->
scope: {query: '=', limit: '=?'}
restrict: 'E'
templateUrl: 'generated/components/thread_preview_collection/thread_preview_collection.html'
replace: true
controller: ($scope, Records, CurrentUser) ->
$scope.lastVoteByCurrentUser = (thread... | Remove crufty mark as read method | Remove crufty mark as read method
| CoffeeScript | agpl-3.0 | aca13jmf/loomio,piratas-ar/loomio,FSFTN/Loomio,gvalerin/loomio,aca13jmf/loomio,isomerase/loomio,Collabforge/site-collabio,codingnutty/loomio,juliagra/loomio,juliagra/loomio,piratas-ar/loomio,doomergithub/loomio,mlarghydracept/loomio,Collabforge/site-collabio,tachyons/loomio,mhjb/loomio,piratas-ar/loomio,isomerase/loomi... |
1217811402c7a4d36b2ceca29a8c629929bcfbe1 | app/assets/javascripts/admin/products/directives/set_variant_on_demand.js.coffee | app/assets/javascripts/admin/products/directives/set_variant_on_demand.js.coffee | angular.module("admin.products").directive "setOnDemand", ->
link: (scope, element, attr) ->
onHand = element.context.querySelector("#variant_on_hand")
onDemand = element.context.querySelector("#variant_on_demand")
if onDemand.checked
onHand.disabled = 'disabled'
onHand.dataStock = onHand.val... | angular.module("admin.products").directive "setOnDemand", ->
link: (scope, element, attr) ->
onHand = element.context.querySelector("#variant_on_hand")
onDemand = element.context.querySelector("#variant_on_demand")
disableOnHandIfOnDemand = ->
if onDemand.checked
onHand.disabled = 'disabled... | Refactor and remove empty lines | Refactor and remove empty lines
| CoffeeScript | agpl-3.0 | openfoodfoundation/openfoodnetwork,mkllnk/openfoodnetwork,openfoodfoundation/openfoodnetwork,Matt-Yorkley/openfoodnetwork,openfoodfoundation/openfoodnetwork,lin-d-hop/openfoodnetwork,Matt-Yorkley/openfoodnetwork,lin-d-hop/openfoodnetwork,Matt-Yorkley/openfoodnetwork,Matt-Yorkley/openfoodnetwork,mkllnk/openfoodnetwork,o... |
457b26ec3ebb01ef9169fbd9af2cea7619192c8d | 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 '... | fs = require 'fs-plus'
temp = require('temp').track()
path = require 'path'
DefaultFileIcons = require '../lib/default-file-icons'
FileIcons = require '../lib/file-icons'
describe 'FileIcons', ->
afterEach ->
FileIcons.setService(new DefaultFileIcons)
it 'provides a default', ->
expect(FileIcons.getServi... | Add specs for enhanced class-list handling | Add specs for enhanced class-list handling
| CoffeeScript | mit | jarig/tree-view,atom/tree-view,learn-co/learn-ide-tree,samu/tree-view |
4866547541179945d0152f5fdadadfd3b1215c66 | app/assets/javascripts/rglossa/controllers/search/cwb/cwb_searches_controller.coffee | app/assets/javascripts/rglossa/controllers/search/cwb/cwb_searches_controller.coffee | App.CwbSearchesController = Em.ArrayController.extend
needs: 'corpus'
# This will be bound to properties on views for for simple search, multiword
# search and regex search.
query: ''
corpus: null
corpusBinding: 'controllers.corpus.content'
createCwbSearch: ->
metadataValueIds = {}
metadataVal... | App.CwbSearchesController = Em.ArrayController.extend
content: []
needs: 'corpus'
# This will be bound to properties on views for for simple search, multiword
# search and regex search.
query: ''
corpus: null
corpusBinding: 'controllers.corpus.content'
# Action handler
search: -> @createCwbSearch(... | Send search query to server | Send search query to server
| CoffeeScript | mit | textlab/glossa,textlab/rglossa,textlab/rglossa,textlab/glossa,textlab/rglossa,textlab/glossa,textlab/rglossa,textlab/glossa,textlab/glossa,textlab/rglossa |
06defe8bade07cd23019859e4cd11ef9e4bc81fb | bokehjs/src/coffee/node_main.coffee | bokehjs/src/coffee/node_main.coffee | path = require "path"
assert = require "assert"
rootRequire = require("root-require")
root = rootRequire.packpath.parent()
pkg = rootRequire("./package.json")
module.constructor.prototype.require = (modulePath) ->
assert(modulePath, 'missing path')
assert(typeof modulePath == 'string', 'path must be a string')
... | path = require "path"
assert = require "assert"
rootRequire = require("root-require")
root = rootRequire.packpath.parent()
pkg = rootRequire("./package.json")
module.constructor.prototype.require = (modulePath) ->
assert(modulePath, 'missing path')
assert(typeof modulePath == 'string', 'path must be a string')
... | Extend node.js' Bokeh with plotting APIs | Extend node.js' Bokeh with plotting APIs
| CoffeeScript | bsd-3-clause | rs2/bokeh,aavanian/bokeh,bokeh/bokeh,azjps/bokeh,rs2/bokeh,azjps/bokeh,timsnyder/bokeh,Karel-van-de-Plassche/bokeh,timsnyder/bokeh,philippjfr/bokeh,philippjfr/bokeh,percyfal/bokeh,aavanian/bokeh,aavanian/bokeh,Karel-van-de-Plassche/bokeh,stonebig/bokeh,bokeh/bokeh,draperjames/bokeh,DuCorey/bokeh,dennisobrien/bokeh,aigu... |
1ab5efaf8950707e4bd9c7cc8d8eb599d2acc6e8 | spec/dummy/spec/javascripts/validation_message_spec.js.coffee | spec/dummy/spec/javascripts/validation_message_spec.js.coffee | #= require magic_word
describe 'ValidationMessage', ->
messageBox = $('<div>Stuff</div>')
m = new MagicWord.ValidationMessage messageBox
describe '#constructor', ->
it 'creates a validation message div', ->
expect(messageBox.siblings('.validation-msg').length).toBe(1)
describe '#successMessage', ->... | #= require magic_word
describe 'ValidationMessage', ->
beforeEach ->
@messageBox = $('<div>Stuff</div>')
@m = new MagicWord.ValidationMessage @messageBox
describe '#constructor', ->
it 'creates a validation message div', ->
expect(@messageBox.siblings('.validation-msg').length).toBe(1)
descri... | Use beforeEach block in validation message spec | Use beforeEach block in validation message spec
| CoffeeScript | mit | lumoslabs/comply,lumoslabs/comply,lumoslabs/comply |
3016ef3f5463056f2838204248d4e0fbedb65bff | vendor/assets/javascripts/gmaps4rails/yandex/objects/map.coffee | vendor/assets/javascripts/gmaps4rails/yandex/objects/map.coffee | class @Gmaps4Rails.Yandex.Map extends Gmaps4Rails.Common
@include Gmaps4Rails.Interfaces.Map
@include Gmaps4Rails.Map
@include Gmaps4Rails.Yandex.Shared
@include Gmaps4Rails.Configuration
CONF:
disableDefaultUI: false
disableDoubleClickZoom: false
type: "ROADMAP" # HY... | class @Gmaps4Rails.Yandex.Map extends Gmaps4Rails.Common
@include Gmaps4Rails.Interfaces.Map
@include Gmaps4Rails.Map
@include Gmaps4Rails.Yandex.Shared
@include Gmaps4Rails.Configuration
CONF:
disableDefaultUI: false
disableDoubleClickZoom: false
type: "ROADMAP" # HY... | Extend Yandex Map bounds with markers | Extend Yandex Map bounds with markers
| CoffeeScript | mit | oelmekki/Google-Maps-for-Rails,apneadiving/Google-Maps-for-Rails,michael-gabenna/Google-Maps-for-Rails,ipmobiletech/Google-Maps-for-Rails,ipmobiletech/Google-Maps-for-Rails,apneadiving/Google-Maps-for-Rails,michael-gabenna/Google-Maps-for-Rails,ekdin/Google-Maps-for-Rails,oelmekki/Google-Maps-for-Rails,ekdin/Google-Map... |
da8ad2819c37c1ab67736c85c0fe3261511e7e87 | app/packages/results/controllers/types/basic_results_info.coffee | app/packages/results/controllers/types/basic_results_info.coffee | { formatQuestionType } = require 'meteor/gq:helpers'
Template.basic_results_info.helpers
hasRange: ->
@type in ['number', 'scale']
formatQuestionType: -> formatQuestionType(@type)
Template.type_icon.helpers
icon: ->
type = Template.instance().data.type
switch type
when 'checkboxes'
'c... | { formatQuestionType } = require 'meteor/gq:helpers'
Template.basic_results_info.helpers
hasRange: ->
@type in ['number', 'scale']
Template.type_icon.helpers
icon: ->
type = Template.instance().data.type
switch type
when 'checkboxes'
'check-square-o'
when 'datetime'
'clock-... | Move formatQuestionType helper to correct template | Move formatQuestionType helper to correct template
| CoffeeScript | apache-2.0 | ecohealthalliance/mobile-survey,ecohealthalliance/mobile-survey,ecohealthalliance/mobile-survey |
541ca8991700fcbf42546e7a1403e23ef74819ee | app/assets/javascripts/rglossa/speech/components/centre/results/wfplayer.jsx.coffee | app/assets/javascripts/rglossa/speech/components/centre/results/wfplayer.jsx.coffee | ###* @jsx React.DOM ###
window.WFplayer = React.createClass
componentDidMount: ->
$node = $(@getDOMNode())
mediaObj = @props.mediaObj
$(document).tooltip
content: -> $node.prop('title')
corpus_id = mediaObj.corpus_id
line_key = mediaObj.mov.line_key
mov = mediaObj.mov.movie_loc
pa... | ###* @jsx React.DOM ###
window.WFplayer = React.createClass
componentDidMount: ->
$node = $(@getDOMNode())
mediaObj = @props.mediaObj
$(document).tooltip
content: -> $node.prop('title')
corpus_id = mediaObj.corpus_id
line_key = mediaObj.mov.line_key
mov = mediaObj.mov.movie_loc
pa... | Make the iframe with the player higher, to avoid scrolling even when the selection stats are displayed | Make the iframe with the player higher, to avoid scrolling even when the selection stats are displayed
| CoffeeScript | mit | textlab/rglossa,textlab/rglossa,textlab/glossa,textlab/rglossa,textlab/glossa,textlab/glossa,textlab/rglossa,textlab/glossa,textlab/glossa,textlab/rglossa |
99b3cb18b015e352b74e6c154f843c24a9297fe2 | collection-behaviours.coffee | collection-behaviours.coffee | behaviours = {}
share.attach = attach = (behaviour, args...) ->
check behaviour, Match.OneOf Function, String
if Match.test behaviour, String
options = behaviours[behaviour].options
behaviour = behaviours[behaviour].behaviour
if Match.test behaviour, Function
context =
collection: @
opt... | behaviours = {}
share.attach = attach = (behaviour, args...) ->
check behaviour, Match.OneOf Function, String
if Match.test behaviour, String
options = behaviours[behaviour].options
behaviour = behaviours[behaviour].behaviour
if Match.test behaviour, Function
context =
collection: @
opt... | Make options argument optional in define function | Make options argument optional in define function
| CoffeeScript | mit | zimme/meteor-collection-behaviours |
d88ae67a201ff020758c65cc78eae8e1292a5301 | spec/fixtures/packages/package-with-rb-filetype/grammars/rb.cson | spec/fixtures/packages/package-with-rb-filetype/grammars/rb.cson | 'name': 'Test Ruby'
'scopeName': 'test.rb'
'firstLineMatch': '^\\#!.*(?:\\s|\\/)(?:testruby)(?:$|\\s)'
'fileTypes': [
'rb'
]
'patterns': [
{
'match': 'ruby'
'name': 'meta.class.ruby'
}
]
| 'name': 'Test Ruby'
'type': 'tree-sitter'
'scopeName': 'test.rb'
'parser': 'tree-sitter-ruby'
'firstLineRegex': '^\\#!.*(?:\\s|\\/)(?:testruby)(?:$|\\s)'
'fileTypes': [
'rb'
]
| Update fixture package to use a tree-sitter grammar | Update fixture package to use a tree-sitter grammar
| CoffeeScript | mit | brettle/atom,liuderchi/atom,brettle/atom,PKRoma/atom,stinsonga/atom,t9md/atom,liuderchi/atom,Mokolea/atom,t9md/atom,atom/atom,stinsonga/atom,liuderchi/atom,stinsonga/atom,PKRoma/atom,liuderchi/atom,atom/atom,Mokolea/atom,brettle/atom,Mokolea/atom,t9md/atom,atom/atom,stinsonga/atom,PKRoma/atom |
b2eea1d24cad4093e50a3b940733a9adbaa009dc | lib/main.coffee | lib/main.coffee | CompositeDisposable = null
Range = null
module.exports = TranslatorPlusDictionary =
subscriptions: null
activate: (state) ->
# Initialize modules and classes
CompositeDisposable ?= require('atom').CompositeDisposable
Range ?= require('atom').Range
# Initialize fields
@subscriptions = new Comp... | CompositeDisposable = null
Range = null
module.exports = TranslatorPlusDictionary =
subscriptions: null
activate: (state) ->
# Initialize modules and classes
CompositeDisposable ?= require('atom').CompositeDisposable
Range ?= require('atom').Range
# Initialize fields
@subscriptions = new Comp... | Rename a local variable in "translate" function | Rename a local variable in "translate" function
ref #2
| CoffeeScript | mit | HiroakiMikami/atom-translator-plus-dictionary,HiroakiMikami/atom-translator-plus-dictionary |
e172b4fc04d5b77968b1425f143a0107667c5ec9 | extensions/tabs/key-bindings.coffee | extensions/tabs/key-bindings.coffee | tabs:
'cmd-shift-{': (tabs) -> tabs.pane.prevTab()
'cmd-shift-}': (tabs) -> tabs.pane.nextTab()
'cmd-1': (tabs) -> tabs.pane.switchToTab 1
'cmd-2': (tabs) -> tabs.pane.switchToTab 2
'cmd-3': (tabs) -> tabs.pane.switchToTab 3
'cmd-4': (tabs) -> tabs.pane.switchToTab 4
'cmd-5': (tabs) -> tabs.pane.switchToT... | tabs:
'cmd-w': (tabs) -> tabs.pane.closeActiveTab()
'cmd-shift-{': (tabs) -> tabs.pane.prevTab()
'cmd-shift-}': (tabs) -> tabs.pane.nextTab()
'cmd-1': (tabs) -> tabs.pane.switchToTab 1
'cmd-2': (tabs) -> tabs.pane.switchToTab 2
'cmd-3': (tabs) -> tabs.pane.switchToTab 3
'cmd-4': (tabs) -> tabs.pane.switch... | Revert "tabs dont handle cmd-w" | Revert "tabs dont handle cmd-w"
This reverts commit d06e9a1bd0ff6d649cf3a2b14b5c528137f261f7.
| CoffeeScript | mit | basarat/atom,yomybaby/atom,gisenberg/atom,hpham04/atom,Ju2ender/atom,rsvip/aTom,mertkahyaoglu/atom,Arcanemagus/atom,vjeux/atom,sekcheong/atom,mrodalgaard/atom,ironbox360/atom,transcranial/atom,harshdattani/atom,MjAbuz/atom,yalexx/atom,n-riesco/atom,Mokolea/atom,Dennis1978/atom,xream/atom,YunchengLiao/atom,amine7536/ato... |
e8c3bc360506f3edce8078818061b16759c14a69 | gulpfile.coffee | gulpfile.coffee | gulp = require 'gulp'
uglify = require 'gulp-uglify'
rename = require 'gulp-rename'
gulp.task 'compress', ->
gulp.src 'dist/position-sticky.js'
.pipe uglify()
.pipe rename('position-sticky.min.js')
.pipe gulp.dest 'dist'
| gulp = require 'gulp'
uglify = require 'gulp-uglify'
rename = require 'gulp-rename'
gulp.task 'compress', ->
gulp.src 'dist/position-sticky.js'
.pipe uglify()
.pipe rename('position-sticky.min.js')
.pipe gulp.dest 'dist'
gulp.task 'default', ['compress']
| Add compress as default task | Add compress as default task
| CoffeeScript | mit | nouveller/position-sticky-polyfill |
f69c918972f68cf68d942bf40c17d18dedec162f | app/assets/javascripts/neighborly/projects/updates/index.js.coffee | app/assets/javascripts/neighborly/projects/updates/index.js.coffee | Neighborly.Projects = {} if Neighborly.Projects is undefined
Neighborly.Projects.Updates = {} if Neighborly.Projects.Updates is undefined
Neighborly.Projects.Updates.Index =
init: Backbone.View.extend _.extend(
el: '.updates'
events:
"ajax:success form#new_update": "onCreate"
"ajax:success .updat... | Neighborly.Projects = {} if Neighborly.Projects is undefined
Neighborly.Projects.Updates = {} if Neighborly.Projects.Updates is undefined
Neighborly.Projects.Updates.Index =
init: Backbone.View.extend _.extend(
el: '.updates'
events:
"ajax:success form#new_update": "onCreate"
"ajax:success .updat... | Fix parseXFBML on update index | Fix parseXFBML on update index
| CoffeeScript | mit | MicroPasts/micropasts-crowdfunding,raksonibs/raimcrowd,rockkhuya/taydantay,MicroPasts/micropasts-crowdfunding,jinutm/silvfinal,jinutm/silverprod,raksonibs/raimcrowd,raksonibs/raimcrowd,rockkhuya/taydantay,jinutm/silverprod,jinutm/silvfinal,gustavoguichard/neighborly,jinutm/silverme,MicroPasts/micropasts-crowdfunding,ji... |
9e4ff9f9d1dfa10098ec9fdbcd44420e2af64332 | src/utils.coffee | src/utils.coffee | fun = (f) -> typeof f is 'function'
str = (s) -> typeof s is 'string'
arr = (a) -> a instanceof Array
obj = (o) -> o instanceof Object and not fun(o) and not arr(o)
exports.is =
fun: fun
str: str
arr: arr
obj: obj
exports.normalize = (params, options, fn) ->
if fun params
fn = params
params = null
... | util = require 'util'
exports.is =
fun: util.isFunction
str: util.isString
arr: util.isArray
obj: util.isObject
exports.normalize = (params, options, fn) ->
if util.isFunction params
fn = params
params = null
options = null
else if util.isFunction options
fn = options
options = null
... | Replace validation to node built-in functions | Replace validation to node built-in functions
| CoffeeScript | mit | meritt/easymongo |
ba2b577492c8d67413a9153f456980b915431ea3 | src/blueprints/deploy.coffee | src/blueprints/deploy.coffee | {statusCreated, statusNoContent, statusOk} = require '../utils'
endpoint = (x) ->
"/site/#{x.siteId}/deploy"
byId = (x) ->
"#{endpoint x}/#{x.id ? x.deployId}"
upload = (x) ->
"#{byId x}/#{x.path}"
module.exports = (blueprints) ->
blueprints.deploy =
create:
url: endpoint
method: 'POST'... | {statusCreated, statusNoContent, statusOk} = require '../utils'
endpoint = (x) ->
"/site/#{x.siteId}/deploy"
byId = (x) ->
"#{endpoint x}/#{x.id ? x.deployId}"
upload = (x) ->
"#{byId x}/files/#{x.path}"
module.exports = (blueprints) ->
blueprints.deploy =
create:
url: endpoint
method: ... | Use proper path for upload. | Use proper path for upload.
| CoffeeScript | mit | crowdstart/crowdstart.js |
4a14b8300b39c11d7e9ade5a21d79fb9d97da122 | lib/main.coffee | lib/main.coffee | Whitespace = require './whitespace'
module.exports =
configDefaults:
removeTrailingWhitespace: true
ignoreWhitespaceOnCurrentLine: true
ensureSingleTrailingNewline: true
activate: ->
@whitespace = new Whitespace()
deactivate: ->
@whitespace.destroy()
| Whitespace = require './whitespace'
module.exports =
configDefaults:
removeTrailingWhitespace: true
ignoreWhitespaceOnCurrentLine: true
ignoreWhitespaceOnlyLines: false
ensureSingleTrailingNewline: true
activate: ->
@whitespace = new Whitespace()
deactivate: ->
@whitespace.destroy()
| Add ignoreWhitespaceOnlyLines as disabled by default | Add ignoreWhitespaceOnlyLines as disabled by default
| CoffeeScript | mit | atom/whitespace |
204663c1903ce024eddf9d2c3b965a73db80556a | app/assets/javascripts/models/comment.js.coffee | app/assets/javascripts/models/comment.js.coffee | ETahi.Comment = DS.Model.extend
commenter: DS.belongsTo('user')
body: DS.attr('string')
messageTask: DS.belongsTo('messageTask')
| ETahi.Comment = DS.Model.extend
commenter: DS.belongsTo('user')
body: DS.attr('string')
messageTask: DS.belongsTo('messageTask')
createdAt: DS.attr('string')
| Add date to ember comment serializers | Add date to ember comment serializers
| CoffeeScript | mit | johan--/tahi,johan--/tahi,johan--/tahi,johan--/tahi |
5cc67fb21605d248e14621c6b9493e1610cc37f2 | core/app/backbone/views/channels/favourite_topic_button_view.coffee | core/app/backbone/views/channels/favourite_topic_button_view.coffee | class window.FavouriteTopicButtonView extends ActionButtonView
mini: true
onRender: -> @updateButton()
initialize: ->
@user = currentUser
@bindTo @user.favourite_topics, 'add remove change', @updateButton, @
templateHelpers: =>
disabled_label: Factlink.Global.t.favourite.capitalize()
disable_... | class window.FavouriteTopicButtonView extends ActionButtonView
mini: true
onRender: -> @updateButton()
initialize: ->
@user = currentUser
@bindTo @user.favourite_topics, 'add remove change', @updateButton, @
templateHelpers: =>
disabled_label: Factlink.Global.t.favourite.capitalize()
disable_... | CHeck favourited topic on 'slug_title' | CHeck favourited topic on 'slug_title'
| CoffeeScript | mit | Factlink/factlink-core,daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core,Factlink/factlink-core,daukantas/factlink-core |
fdc11a07488f6839042c595543efe0f0fb73cd11 | app/assets/javascripts/controllers/journal_thumbnail_controller.js.coffee | app/assets/javascripts/controllers/journal_thumbnail_controller.js.coffee | ETahi.JournalThumbnailController = Ember.ObjectController.extend
needs: ['application']
currentUser: Ember.computed.alias 'controllers.application.currentUser'
isEditing: (-> @get 'model.isDirty').property()
thumbnailId: (-> "journal-logo-#{@get 'model.id'}").property()
logoUploadUrl: (-> "/admin/journals/#{@... | ETahi.JournalThumbnailController = Ember.ObjectController.extend
needs: ['application']
currentUser: Ember.computed.alias 'controllers.application.currentUser'
isEditing: (-> @get 'model.isDirty').property()
thumbnailId: (-> "journal-logo-#{@get 'model.id'}").property()
logoUploadUrl: (-> "/admin/journals/#{@... | Move journal detail saving to a common function | Move journal detail saving to a common function
| CoffeeScript | mit | johan--/tahi,johan--/tahi,johan--/tahi,johan--/tahi |
cdc9c9a86ad8d9657f6d41698a862ad38e4685ff | lib/merge-conflicts.coffee | lib/merge-conflicts.coffee | MergeConflictsView = require './merge-conflicts-view'
SideView = require './side-view'
NavigationView = require './navigation-view'
Conflict = require './conflict'
module.exports =
activate: (state) ->
atom.workspaceView.command "merge-conflicts:detect", ->
MergeConflictsView.detect()
deactivate: ->
... | MergeConflictsView = require './merge-conflicts-view'
SideView = require './side-view'
NavigationView = require './navigation-view'
Conflict = require './conflict'
module.exports =
activate: (state) ->
atom.workspaceView.command "merge-conflicts:detect", ->
MergeConflictsView.detect()
deactivate: ->
... | Make the git path a configuration setting. | Make the git path a configuration setting.
| CoffeeScript | mit | smashwilson/merge-conflicts,antcodd/merge-conflicts,smashwilson/merge-conflicts |
05c0fbeb27cb76705826f49d25fce97e62a1d64e | app/assets/javascripts/backbone/plugins/me_announce.js.coffee | app/assets/javascripts/backbone/plugins/me_announce.js.coffee | class Kandan.Plugins.MeAnnounce
@regex: /^\/me /
@init: ()->
Kandan.Modifiers.register @regex, (message, state)=>
message.content = message.content.replace @regex, "#{message.user.first_name} "
return Kandan.Helpers.Activities.build_from_base_template(message)
# Kandan.Plugins.register "Kandan.Pl... | class Kandan.Plugins.MeAnnounce
@regex: /^/me /
@init: ()->
Kandan.Modifiers.register @regex, (message, state)=>
message.content = message.content.replace @regex, "#{message.user.first_name} "
return Kandan.Helpers.Activities.build_from_base_template(message)
# Kandan.Plugins.register "Kanda... | Use the escaped regex as a stopgap solution | Use the escaped regex as a stopgap solution
| CoffeeScript | agpl-3.0 | leohmoraes/kandan,dz0ny/kandan,ivanoats/uw-ruby-chat,yfix/kandan,cloudfuji/kandan,yfix/kandan,moss-zc/kandan,sai43/kandan,moss-zc/kandan,leohmoraes/kandan,Stackato-Apps/kandan,codefellows/kandan,ivanoats/kandan,ivanoats/kandan,ivanoats/kandan,kandanapp/kandan,cloudstead/kandan,codefellows/kandan,sai43/kandan,ivanoats/u... |
71cea788cc56a1a394e540d3600a9b0dfccf4590 | 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),
(err) -> throw err
@Before = (c... | module.exports = ->
@logger = require './logger'
@timeout = 5000
@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 ... | Set a default timeout of 5 seconds (instead of infinite). | [bugfix] Set a default timeout of 5 seconds (instead of infinite).
| CoffeeScript | mit | bruz/pioneer,mojotech/pioneer,bruz/pioneer,mAiNiNfEcTiOn/pioneer,mAiNiNfEcTiOn/pioneer,bluespeckfinancial/pioneer,bluespeckfinancial/pioneer,mojotech/pioneer,mojotech/pioneer,mAiNiNfEcTiOn/pioneer,bruz/pioneer,bluespeckfinancial/pioneer |
5c92d0468b337ce706121fba4160e1d6bb7eaae2 | app/assets/javascripts/components/tutorial-text/yale-mark-tutorial-text.cjsx | app/assets/javascripts/components/tutorial-text/yale-mark-tutorial-text.cjsx | module.exports = {
header: 'Help Mark Fields',
pages: [
{
pageNumber: 0,
text: "One Lorem ipsum dolor sit amet, posuere a mauris, nostra quam nonummy, facilisis amet neque. Ut lacus eros venenatis ipsum, erat ut turpis, aliquam metus vitae volutpat sit sed. Eros maecenas malesuada quam leo laoreet, ... | module.exports = {
header: 'Mark the fields to be transcribed',
pages: [
{
pageNumber: 0,
text: "The first step in crowdsourced transcription is to identify and mark the text that should be transcribed.
The scroll bar on the left displays all of the pages in each program. Start by locating the pag... | Replace dummy text with Mark workflow help text | Replace dummy text with Mark workflow help text | CoffeeScript | mit | YaleDHLab/ensemble-at-yale,YaleDHLab/ensemble-at-yale,YaleDHLab/ensemble-at-yale,YaleDHLab/ensemble-at-yale |
a0c0ae5f7fa23564f3606bd60cb9d1c7e9f39119 | t2-people/app/controllers/person/edit.coffee | t2-people/app/controllers/person/edit.coffee | `import Ember from "ember";`
`import { EMPLOYEE_ROLES } from "t2-people/utils/constants";`
PersonEditController = Ember.ObjectController.extend
needs: ['application']
employeeRoles: EMPLOYEE_ROLES
actions:
save: (->
model = @get('model')
if model.get('errors')
model.send('becameValid')
... | `import Ember from "ember";`
`import { EMPLOYEE_ROLES } from "t2-people/utils/constants";`
PersonEditController = Ember.ObjectController.extend
needs: ['application']
employeeRoles: EMPLOYEE_ROLES
actions:
save: (->
model = @get('model')
if model.get('isError')
model.send('becameValid')
... | Change error state check on model. | Change error state check on model.
| CoffeeScript | mit | mhs/t2-people,mhs/t2-people,mhs/t2-people |
1ecabaa611f77d43d4af7124c0d6e636e7186ed4 | services/web/app/coffee/infrastructure/PackageVersions.coffee | services/web/app/coffee/infrastructure/PackageVersions.coffee | version = {
"pdfjs": "1.8.188"
"moment": "2.9.0"
"ace": "1.2.5"
}
module.exports = {
version: version
lib: (name) ->
if version[name]?
return "#{name}-#{version[name]}"
else
return "#{name}"
}
| version = {
"pdfjs": "1.7.225"
"moment": "2.9.0"
"ace": "1.2.5"
}
module.exports = {
version: version
lib: (name) ->
if version[name]?
return "#{name}-#{version[name]}"
else
return "#{name}"
}
| Revert "update pdfjs to v1.8.188" | Revert "update pdfjs to v1.8.188"
This reverts commit 189e48dcc00f530eff674cc4a2b87c06814d45ff.
| CoffeeScript | agpl-3.0 | sharelatex/sharelatex |
bfb3766077898453d0754d798481e081691e8318 | test/pending_test.coffee | test/pending_test.coffee | describe 'Pending', ->
it 'Should test skipHeader option'
it 'Should test initWith option'
it 'Should embed plain JS files'
| describe 'Pending', ->
it 'Should test skipHeader option'
it 'Should test initWith option'
it 'Should embed plain JS files'
it 'Should take a logging callback'
it 'Should test verbose option'
| Add two more pending tests. | Add two more pending tests.
| CoffeeScript | mit | rubenv/node-client-compiler |
da8d30ab987877e54631c11379b20896e0ca0041 | benchmark/benchmark-suite.coffee | benchmark/benchmark-suite.coffee | fs = require 'fs'
require 'benchmark-helper'
describe "Editor", ->
editor = null
beforeEach ->
window.rootViewParentSelector = '#jasmine-content'
window.startup()
editor = rootView.editor
afterEach ->
window.shutdown()
benchmark "inserting and deleting a character", ->
editor.hiddenInput... | fs = require 'fs'
require 'benchmark-helper'
describe "Editor", ->
editor = null
beforeEach ->
window.rootViewParentSelector = '#jasmine-content'
window.startup()
editor = rootView.editor
afterEach ->
window.shutdown()
benchmark "inserting and deleting a character", ->
editor.insertText(... | Call Editor.insertText directly instead of creating a TextInput event | Call Editor.insertText directly instead of creating a TextInput event | CoffeeScript | mit | nvoron23/atom,john-kelly/atom,DiogoXRP/atom,dkfiresky/atom,brettle/atom,crazyquark/atom,Austen-G/BlockBuilder,Shekharrajak/atom,DiogoXRP/atom,gabrielPeart/atom,ReddTea/atom,ashneo76/atom,niklabh/atom,Hasimir/atom,kjav/atom,YunchengLiao/atom,gzzhanghao/atom,devoncarew/atom,dannyflax/atom,yangchenghu/atom,MjAbuz/atom,g2p... |
a225d8b0e0cbed7823d2f88b9d25d1f8fdbdb935 | coffee/app.coffee | coffee/app.coffee | express = require 'express'
bodyParser = require('body-parser')
app = express()
port = process.env.PORT || 5000
app.use express.static __dirname
.use bodyParser.urlencoded {extended: true}
.use bodyParser.json()
require('./routes/routes.js')(app)
app.listen(port)
console.log "Listening on port #{port}"
| express = require 'express'
busyboy = require('connect-busboy')
app = express()
port = process.env.PORT || 5000
app.use express.static __dirname
.use busyboy()
require('./routes/routes.js')(app)
app.listen(port)
console.log "Listening on port #{port}"
| Use busyboy package instead of body-parser | Use busyboy package instead of body-parser
| CoffeeScript | mit | ramonh/homesick-server |
7cac6a305230c50e5f8ff70ccc6c7e13f8cbc29e | app/assets/javascripts/auto_scroll.js.coffee | app/assets/javascripts/auto_scroll.js.coffee | jQuery ->
if User.current().data_object.staff == true
scroll(0,$(".row.osu-purple").offset().top) | jQuery ->
if User.current().data_object.staff == true
scroll(0,$(".row.osu-purple").offset()?.top) | Check for offset being set. | Check for offset being set.
| CoffeeScript | agpl-3.0 | osulp/Room-Reservation,osulp/Room-Reservation,osulp/Room-Reservation |
6ba01136eadc10915e702f78f6e73a1ceebf0b1c | client/views/blog/blog.coffee | client/views/blog/blog.coffee | Template.blogShowBody.rendered = ->
# Hide draft posts from crawlers
if not @data.published
$('<meta>', { name: 'robots', content: 'noindex,nofollow' }).appendTo 'head'
# Twitter
base = "https://twitter.com/intent/tweet"
url = encodeURIComponent location.origin + location.pathname
author = @data.autho... | Template.blogShowBody.rendered = ->
# Hide draft posts from crawlers
if not @data.published
$('<meta>', { name: 'robots', content: 'noindex,nofollow' }).appendTo 'head'
# Twitter
base = "https://twitter.com/intent/tweet"
url = encodeURIComponent location.origin + location.pathname
author = @data.autho... | Handle FB share link when thumbnail URL is relative | Handle FB share link when thumbnail URL is relative
| CoffeeScript | mit | yalexx/meteor-blog,samcorcos/meteor-blog,dubvfan87/meteor-blog,meteor-blog/meteor-blog,bubuzzz/meteor-blog,johnschult/meteor-blog,waitingkuo/meteor-blog,bhirsch42/meteor-blog,yalexx/meteor-blog,waitingkuo/meteor-blog,IQ2022/meteor-blog,NIKKTTO/meteor-blog,hwillson/meteor-blog,bhirsch42/meteor-blog,issacting93/avenue,pa... |
e992343b90a480da7e0f2b0cb8b5f786f092308d | src/view/text_button.js.coffee | src/view/text_button.js.coffee | class CB.TextButton extends CB.Control
constructor: (frame) ->
super(frame)
@_labelView = new CB.LabelView()
@_labelView.frame = new CB.Rect(0, 0, 0, 0)
this.addSubview(@_labelView)
@property "readonly", "labelView"
sizeThatFits: (size) ->
return @labelView.sizeThatFits(size)
layoutSubvie... | class CB.TextButton extends CB.Control
constructor: (frame) ->
super(frame)
@_labelView = new CB.LabelView()
@_labelView.frame = new CB.Rect(0, 0, 0, 0)
this.addSubview(@_labelView)
@cursor = "pointer"
@property "readonly", "labelView"
@property "cursor",
set: (newPointer) ->
@_poi... | Set default cursor pointer for TextButton | Set default cursor pointer for TextButton
| CoffeeScript | mit | cheunghy/CocoaBean,cheunghy/CocoaBean |
73a38b85f5635d8bceb68003329bb3f2b5e865fd | resources/assets/coffee/react/beatmap-discussions/message-icon.coffee | resources/assets/coffee/react/beatmap-discussions/message-icon.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 version ... | ###
# 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 version ... | Use mapping instead of switch | Use mapping instead of switch
| CoffeeScript | agpl-3.0 | Kuron-kun/osu-web,LiquidPL/osu-web,nanaya/osu-web,comentarinformal/osu-web,kj415j45/osu-web,marcostudios/osu-web,Xyloo/osu-web,nanaya/osu-web,notbakaneko/osu-web,LiquidPL/osu-web,marcostudios/osu-web,omkelderman/osu-web,notbakaneko/osu-web,kj415j45/osu-web,nekodex/osu-web,nekodex/osu-web,LiquidPL/osu-web,notbakaneko/os... |
4d4b9336a502f82525d6d3d1142076623adfd3d9 | app/assets/javascripts/species/mixins/document_tag_lookup.js.coffee | app/assets/javascripts/species/mixins/document_tag_lookup.js.coffee | Species.DocumentTagLookup = Ember.Mixin.create
selectedProposalOutcome: null
selectedProposalOutcomeId: null
selectedReviewPhase: null
selectedReviewPhaseId: null
initDocumentTagsSelectors: ->
if @get('selectedProposalOutcomeId')
po = @get('controllers.documentTags.proposalOutcomes').findBy('id', @... | Species.DocumentTagLookup = Ember.Mixin.create
selectedProposalOutcome: null
selectedProposalOutcomeId: null
selectedReviewPhase: null
selectedReviewPhaseId: null
initDocumentTagsSelectors: ->
if @get('selectedProposalOutcomeId')
po = @get('controllers.documentTags.proposalOutcomes').findBy('id', @... | Fix proposal outcome dropdown not showing up when citescop is selected | Fix proposal outcome dropdown not showing up when citescop is selected
| CoffeeScript | bsd-3-clause | unepwcmc/SAPI,unepwcmc/SAPI,unepwcmc/SAPI,unepwcmc/SAPI |
227be379e2a03b09a4149fc9be3ef0f73ffd88f9 | core/app/backbone/app.coffee | core/app/backbone/app.coffee | class FactlinkAppClass extends Backbone.Marionette.Application
startAsSite: ->
@startSiteRegions()
@addInitializer @automaticLogoutInitializer
@addInitializer @notificationsInitializer
@addInitializer @scrollToTopInitializer
@linkTarget = '_self'
@addInitializer (options)->
new Profile... | class FactlinkAppClass extends Backbone.Marionette.Application
startAsSite: ->
@startSiteRegions()
@addInitializer @automaticLogoutInitializer
@addInitializer @notificationsInitializer
@addInitializer @scrollToTopInitializer
@linkTarget = '_self'
@addInitializer (options)->
new Profile... | Fix usage of parent.remote outside of client in client-pages. | Fix usage of parent.remote outside of client in client-pages.
| CoffeeScript | mit | Factlink/factlink-core,daukantas/factlink-core,daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core,Factlink/factlink-core |
a250e0921aea403803cc698b3ba61eefba903a28 | lineman/app/components/profile_page/profile_page_controller.coffee | lineman/app/components/profile_page/profile_page_controller.coffee | angular.module('loomioApp').controller 'ProfilePageController', ($rootScope, Records, FormService, $location, AbilityService, ModalService, ChangePictureForm, ChangePasswordForm, DeactivateUserForm, $translate, CurrentUser, AppConfig) ->
@user = CurrentUser
@init = ->
$translate.use(@user.locale)
@init()
... | angular.module('loomioApp').controller 'ProfilePageController', ($rootScope, Records, FormService, $location, AbilityService, ModalService, ChangePictureForm, ChangePasswordForm, DeactivateUserForm, $translate, CurrentUser, AppConfig) ->
@user = CurrentUser
@init = =>
$translate.use(@user.locale)
@init()
... | Fix javascript error on profile page | Fix javascript error on profile page
| CoffeeScript | agpl-3.0 | sicambria/loomio,sicambria/loomio,piratas-ar/loomio,sicambria/loomio,FSFTN/Loomio,FSFTN/Loomio,mhjb/loomio,piratas-ar/loomio,loomio/loomio,mhjb/loomio,loomio/loomio,mhjb/loomio,FSFTN/Loomio,FSFTN/Loomio,piratas-ar/loomio,mhjb/loomio,loomio/loomio,piratas-ar/loomio,sicambria/loomio,loomio/loomio |
1d478471e38378359fa3b3097b7c02b5d57b62e0 | src/coffee/experimental-controller.coffee | src/coffee/experimental-controller.coffee | qbnApp = angular.module 'qbnApp', []
class Quality
constructor: (@name, @defaultValue) ->
initInstance: () ->
@value = @defaultValue
instantiate = (proto) ->
instance = Object.create proto
instance.initInstance()
return instance
class Storylet
constructor: (@title, @text, @choices) ->
class Choice
... | qbnApp = angular.module 'qbnApp', []
class Quality
constructor: (@name, @defaultValue) ->
instantiate = (proto) ->
instance = Object.create proto
for key, value of proto when /^default\w{2}/.test(key)
[_, first, rest] = /^default(\w)(\w*)/.exec(key)
newName = first.toLowerCase() + rest
instance[newN... | Establish a Convention for Using Reflection to Automate Instantiation | Establish a Convention for Using Reflection to Automate Instantiation
| CoffeeScript | unlicense | arashikou/exper3-2015 |
e629b7b50793719fa7e2fb8c4eb0a59cbe11cb2e | lineman/app/components/thread_page/comment_form/comment_form.coffee | lineman/app/components/thread_page/comment_form/comment_form.coffee | angular.module('loomioApp').directive 'commentForm', ->
scope: {comment: '='}
restrict: 'E'
templateUrl: 'generated/components/thread_page/comment_form/comment_form.html'
replace: true
controller: ($scope, FormService, Records, CurrentUser) ->
group = $scope.comment.discussion().group()
discussion = $... | angular.module('loomioApp').directive 'commentForm', ->
scope: {comment: '='}
restrict: 'E'
templateUrl: 'generated/components/thread_page/comment_form/comment_form.html'
replace: true
controller: ($scope, FormService, Records, CurrentUser) ->
group = $scope.comment.discussion().group()
discussion = $... | Remove unnecessary function naming on comment form submit | Remove unnecessary function naming on comment form submit
| CoffeeScript | agpl-3.0 | piratas-ar/loomio,mlarghydracept/loomio,doomergithub/loomio,FSFTN/Loomio,juliagra/DBCloomio,digideskio/loomio,FSFTN/Loomio,loomio/loomio,mhjb/loomio,sicambria/loomio,juliagra/DBCloomio,piratas-ar/loomio,annewchen/loomio,juliagra/DBCloomio,wangjun/loomio,FSFTN/Loomio,codingnutty/loomio,juliagra/loomio,annewchen/loomio,d... |
69c1898ac2f42ed1b63fa1d149b8a278948be402 | Gruntfile.coffee | Gruntfile.coffee | module.exports = (grunt) ->
grunt.initConfig
pkg: grunt.file.readJSON('package.json')
coffee:
compile:
files:
'drop.js': 'drop.coffee'
'docs/welcome/js/welcome.js': 'docs/welcome/coffee/welcome.coffee'
watch:
coffee:
files: ['*.coffee', 'sass/*', 'docs/**/*... | module.exports = (grunt) ->
grunt.initConfig
pkg: grunt.file.readJSON('package.json')
coffee:
compile:
files:
'drop.js': 'drop.coffee'
'docs/welcome/js/welcome.js': 'docs/welcome/coffee/welcome.coffee'
watch:
coffee:
files: ['*.coffee', 'sass/*', 'docs/**/*... | Put bower grunt task first | Put bower grunt task first
| CoffeeScript | mit | dandv/drop,jacemonje/drop,dieface/drop,UmarMughal/drop,mcanthony/drop,alihalabyah/drop,HubSpot/drop,alexananiev/drop,chrisdrackett/drop |
809e40c046bd426b124dfaa938aff8a4979784ad | 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 breaking tests due to new argument signature | Fix breaking tests due to new argument signature
| CoffeeScript | mit | banterability/busted |
c62741ab5d693bb5e4bc4f66697c9b5053dc63e3 | src/code/data/initial-palette.coffee | src/code/data/initial-palette.coffee | module.exports = [
{
"id": "1",
"title": ""
"image": ""
},
{
"id": "2",
"title": "Egg",
"image": "img/nodes/egg.png",
"metadata": {
"source": "internal",
"title": "Egg",
"link": "https://openclipart.org/detail/166320/egg",
"license": "public domain"
}
},
... | module.exports = [
{
"id": "1",
"title": ""
"image": "img/nodes/blank.png"
},
{
"id": "2",
"title": "Egg",
"image": "img/nodes/egg.png",
"metadata": {
"source": "internal",
"title": "Egg",
"link": "https://openclipart.org/detail/166320/egg",
"license": "public d... | Include link to default image. | Include link to default image.
| CoffeeScript | mit | concord-consortium/building-models,concord-consortium/building-models,concord-consortium/building-models,concord-consortium/building-models,concord-consortium/building-models |
d477122feda64c9e4342020712af062a91fb7132 | app/assets/javascripts/components/annual_report_uploads.js.coffee | app/assets/javascripts/components/annual_report_uploads.js.coffee | {div, h1, h2, p, i, a} = React.DOM
window.AnnualReportUploads = class AnnualReportUploads extends React.Component
constructor: (props, context) ->
super(props, context)
@state = {
data: [],
pageName: props.pageName,
page: props.page,
sandboxEnabled: props.sandboxEnabled
adminUrl:... | {div, h1, h2, p, i, a} = React.DOM
window.AnnualReportUploads = class AnnualReportUploads extends React.Component
constructor: (props, context) ->
super(props, context)
@state = {
data: [],
pageName: props.pageName,
page: props.page,
sandboxEnabled: props.sandboxEnabled
adminUrl:... | Hide spinner when data is loaded | Hide spinner when data is loaded
| CoffeeScript | mit | unepwcmc/trade_reporting_tool,unepwcmc/trade_reporting_tool,unepwcmc/trade_reporting_tool |
ae925488e296f1a1d27eca3a72b7415cce3291c9 | lib/rails/generators/coffee/assets/templates/javascript.js.coffee | lib/rails/generators/coffee/assets/templates/javascript.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/
| # 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/
| Update URL to the CoffeeScript site | Update URL to the CoffeeScript site
| CoffeeScript | mit | rails/coffee-rails,Roonin-mx/livescript-rails,slobodankovacevic/coffee-rails,bianjp/livescript-rails,rails/coffee-rails,bianjp/livescript-rails,rails/coffee-rails |
d940a4af628729c209d8e1f03db5ebfacfe629d9 | src/app/projects/states/dashboard/directives/task-dashboard/directives/task-outcomes-card/task-outcomes-card.coffee | src/app/projects/states/dashboard/directives/task-dashboard/directives/task-outcomes-card/task-outcomes-card.coffee | angular.module('doubtfire.projects.states.dashboard.directives.task-dashboard.directives.task-outcomes-card', [])
#
# Describes more about ILO linkages between a task
#
.directive('taskOutcomesCard', ->
restrict: 'E'
templateUrl: 'projects/states/dashboard/directives/task-dashboard/directives/task-outcomes-card/tas... | angular.module('doubtfire.projects.states.dashboard.directives.task-dashboard.directives.task-outcomes-card', [])
#
# Describes more about ILO linkages between a task
#
.directive('taskOutcomesCard', ->
restrict: 'E'
templateUrl: 'projects/states/dashboard/directives/task-dashboard/directives/task-outcomes-card/tas... | Use unit function for returning alignments | QUALITY: Use unit function for returning alignments
| CoffeeScript | agpl-3.0 | doubtfire-lms/doubtfire-web,alexcu/doubtfire-web,doubtfire-lms/doubtfire-web,doubtfire-lms/doubtfire-web,doubtfire-lms/doubtfire-web,alexcu/doubtfire-web |
b16d80a9a2059523c159efb2af3c555b3aade7d7 | app/assets/javascripts/login_prompt.js.coffee | app/assets/javascripts/login_prompt.js.coffee | $(document).on 'ajax:error', (event, xhr, status, error) ->
if error == 'Unauthorized'
$.fancybox.open
href: '#js-login-prompt'
scrolling: 'visible' # for button outlines and shadows
$('.js-login-confirm').click ->
window.location = '/auth/facebook'
$('.js-login-cancel').click ->
$.fancybox.clos... | $(document).on 'ajax:error', (event, xhr, status, error) ->
if xhr.status == 401
$.fancybox.open
href: '#js-login-prompt'
scrolling: 'visible' # for button outlines and shadows
$('.js-login-confirm').click ->
window.location = '/auth/facebook'
$('.js-login-cancel').click ->
$.fancybox.close()
| Check status instead of error message | Check status instead of error message
| CoffeeScript | mit | RobinClowers/photo-album,RobinClowers/photo-album,RobinClowers/photo-album,RobinClowers/photo-album |
f09698be47785fd0f02d6a56375b88f404f82e06 | app/assets/javascripts/admin/order_cycles/controllers/simple_edit.js.coffee | app/assets/javascripts/admin/order_cycles/controllers/simple_edit.js.coffee | angular.module('admin.order_cycles').controller "AdminSimpleEditOrderCycleCtrl", ($scope, $location, OrderCycle, Enterprise, EnterpriseFee) ->
$scope.orderCycleId = ->
$location.absUrl().match(/\/admin\/order_cycles\/(\d+)/)[1]
$scope.enterprises = Enterprise.index()
$scope.enterprise_fees = EnterpriseFee.in... | angular.module('admin.order_cycles').controller "AdminSimpleEditOrderCycleCtrl", ($scope, $location, OrderCycle, Enterprise, EnterpriseFee) ->
$scope.orderCycleId = ->
$location.absUrl().match(/\/admin\/order_cycles\/(\d+)/)[1]
$scope.enterprises = Enterprise.index()
$scope.enterprise_fees = EnterpriseFee.in... | Select all works on simple order cycles edit interface | Select all works on simple order cycles edit interface
| CoffeeScript | agpl-3.0 | KosenkoDmitriy/openfoodnetwork,Em-AK/openfoodnetwork,ltrls/openfoodnetwork,ltrls/openfoodnetwork,ecocitycore/openfoodnetwork,KateDavis/openfoodnetwork,levent/openfoodnetwork,mkllnk/openfoodnetwork,MikeiLL/openfoodnetwork,Em-AK/openfoodnetwork,RohanM/openfoodnetwork,KosenkoDmitriy/openfoodnetwork,openfoodfoundation/open... |
208108a0e41ac77e4b0b77167585294cb6343b72 | src/scripts/gemwhois.coffee | src/scripts/gemwhois.coffee | # Whois for gems, because gem names are like domains in the 90's
#
# gem whois <gemname> - returns gem details if it exists
#
module.exports = (robot) ->
robot.respond /gem whois (.*)/i, (msg) ->
gemname = escape(msg.match[1])
msg.http("http://rubygems.org/api/v1/gems/#{gemname}.json")
.get() (err, res... | # Whois for gems, because gem names are like domains in the 90's
#
# gem whois <gemname> - returns gem details if it exists
#
module.exports = (robot) ->
robot.respond /gem whois (.*)/i, (msg) ->
gemname = escape(msg.match[1])
msg.http("http://rubygems.org/api/v1/gems/#{gemname}.json")
.get() (err, res... | Add more info in the gem whois response | Add more info in the gem whois response | CoffeeScript | mit | n0mer/hubot-scripts,sklise/hubot-scripts,azimman/hubot-scripts,jhubert/hubot-scripts,amhorton/hubot-scripts,dbkaplun/hubot-scripts,cycomachead/hubot-scripts,justinwoo/hubot-scripts,jankowiakmaria/hubot-scripts,phillipalexander/hubot-scripts,ambikads/hubot-scripts,1stdibs/hubot-scripts,1000hz/hubot-scripts,opentable/hub... |
a42961a443fa103975d0a8dea01e74cfc62e78b7 | metrics.coffee | metrics.coffee | StatsD = require('lynx')
statsd = new StatsD('localhost', 8125, {on_error:->})
name = "unknown"
hostname = require('os').hostname()
buildKey = (key)-> "#{name}.#{hostname}.#{key}"
module.exports =
initialize: (_name) ->
name = _name
set : (key, value, sampleRate = 1)->
statsd.set buildKey(key), value, sampleR... | StatsD = require('lynx')
statsd = new StatsD('localhost', 8125, {on_error:->})
name = "unknown"
hostname = require('os').hostname()
buildKey = (key)-> "#{name}.#{hostname}.#{key}"
module.exports =
initialize: (_name) ->
name = _name
set : (key, value, sampleRate = 1)->
statsd.set buildKey(key), value, sampleR... | Use correct key in Metrics.timing | Use correct key in Metrics.timing
| CoffeeScript | mit | sharelatex/metrics-sharelatex |
9496987da6789bd203412b6fedf173d3ddba7dc3 | app/assets/javascripts/admin/enterprise_groups/controllers/side_menu_controller.js.coffee | app/assets/javascripts/admin/enterprise_groups/controllers/side_menu_controller.js.coffee | angular.module("admin.enterprise_groups")
.controller "sideMenuCtrl", ($scope, SideMenu) ->
$scope.menu = SideMenu
$scope.select = SideMenu.select
$scope.menu.setItems [
{ name: 'Primary Details', icon_class: "icon-user" }
{ name: 'About', icon_class: "icon-pencil" }
{ name: 'Images', i... | angular.module("admin.enterprise_groups")
.controller "sideMenuCtrl", ($scope, SideMenu) ->
$scope.menu = SideMenu
$scope.select = SideMenu.select
$scope.menu.setItems [
{ name: 'Primary Details', icon_class: "icon-user" }
{ name: 'About', icon_class: "icon-pencil" }
{ name: 'Images', i... | Fix display of admin group side menu | Fix display of admin group side menu
| CoffeeScript | agpl-3.0 | ltrls/openfoodnetwork,Em-AK/openfoodnetwork,mkllnk/openfoodnetwork,levent/openfoodnetwork,openfoodfoundation/openfoodnetwork,ecocitycore/openfoodnetwork,KosenkoDmitriy/openfoodnetwork,KateDavis/openfoodnetwork,oeoeaio/openfoodnetwork,Matt-Yorkley/openfoodnetwork,mkllnk/openfoodnetwork,KosenkoDmitriy/openfoodnetwork,eco... |
62a941e9760d9e4431baaf7258442f9185c52b3f | src/plugins/jade-template.coffee | src/plugins/jade-template.coffee |
async = require 'async'
jade = require 'jade'
fs = require 'fs'
{TemplatePlugin} = require './../templates'
class JadeTemplate extends TemplatePlugin
constructor: (@fn) ->
render: (locals, callback) ->
try
callback null, new Buffer @fn(locals)
catch error
callback error
JadeTemplate.fromFi... |
async = require 'async'
jade = require 'jade'
fs = require 'fs'
path = require 'path'
{TemplatePlugin} = require './../templates'
class JadeTemplate extends TemplatePlugin
constructor: (@fn) ->
render: (locals, callback) ->
try
callback null, new Buffer @fn(locals)
catch error
callback erro... | Update jade template plugin to conform with new template plugin structure | Update jade template plugin to conform with new template plugin structure
| CoffeeScript | mit | mimiflynn/wintersmith,mimiflynn/wintersmith,pridemusvaire/wintersmith,MorJar/wintersmith,jmptrader/wintersmith,MorJar/wintersmith,taras/embersmith,pridemusvaire/wintersmith,jmptrader/wintersmith,cwhatley/wintersmith,1upon0/wintersmith,jnordberg/wintersmith |
855a6c598a6104d0729f3d1b7c4c40a1c7bb20c5 | couchbot/scripts/dogatcomputer.coffee | couchbot/scripts/dogatcomputer.coffee | # Description:
# Displays a "I Have No Idea What I'm Doing" image
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# hubot no idea
#
# Notes:
# No idea...
#
# Author:
# Brian Shumate <brian@couchbase.com>
noidea = "http://i.imgur.com/hmTeehN.jpg"
module.exports = (robot) ->
robot.hear /(... | # Description:
# Displays a "I Have No Idea What I'm Doing" image
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# hubot no idea
#
# Notes:
# No idea...
#
# Author:
# Brian Shumate <brian@couchbase.com>
noidea = "http://i.imgur.com/hmTeehN.jpg"
module.exports = (robot) ->
robot.hear /(... | Make no idea dog appear more often | Make no idea dog appear more often
| CoffeeScript | apache-2.0 | couchbaselabs/couchbot |
e313035471313623c8de633f0e4de54bf3d859a3 | src/theme-converter.coffee | src/theme-converter.coffee | path = require 'path'
url = require 'url'
request = require 'request'
fs = require './fs'
TextMateTheme = require './text-mate-theme'
# Convert a TextMate theme to an Atom theme
module.exports =
class ThemeConverter
constructor: (@sourcePath, destinationPath) ->
@destinationPath = path.resolve(destinationPath)
... | path = require 'path'
url = require 'url'
request = require 'request'
fs = require './fs'
TextMateTheme = require './text-mate-theme'
# Convert a TextMate theme to an Atom theme
module.exports =
class ThemeConverter
constructor: (@sourcePath, destinationPath) ->
@destinationPath = path.resolve(destinationPath)
... | Use status header instead of status code | Use status header instead of status code
| CoffeeScript | mit | jlord/apm,bronson/apm,gutsy/apm,atom/apm,ethanp/apm,pusateri/apm,gutsy/apm,jlord/apm,AtaraxiaEta/apm,bronson/apm,bcoe/apm,fscherwi/apm,AtaraxiaEta/apm,atom/apm,bcoe/apm,gutsy/apm,jlord/apm,fscherwi/apm,jlord/apm,pusateri/apm,atom/apm,AtaraxiaEta/apm,Nikpolik/apm,bcoe/apm,gutsy/apm,ethanp/apm,jlord/apm,fscherwi/apm,fsch... |
5ad06cc851338c6edf8cb49d8c009dc5102ae664 | apps/galleries_institutions2/routes.coffee | apps/galleries_institutions2/routes.coffee | PartnerCategories = require '../../collections/partner_categories'
Backbone = require 'backbone'
Q = require 'bluebird-q'
PrimaryCarousel = require './components/primary_carousel/fetch'
CategoryCarousel = require './components/partner_cell_carousel/fetch'
_ = require 'underscore'
fetchCategories = (type) ->
categori... | _ = require 'underscore'
Q = require 'bluebird-q'
Backbone = require 'backbone'
PartnerCategories = require '../../collections/partner_categories'
PrimaryCarousel = require './components/primary_carousel/fetch'
CategoryCarousel = require './components/partner_cell_carousel/fetch'
fetchCategories = (type) ->
categori... | Fix indentation; bootstrap carousels data | Fix indentation; bootstrap carousels data
| CoffeeScript | mit | cavvia/force-1,izakp/force,kanaabe/force,yuki24/force,dblock/force,cavvia/force-1,oxaudo/force,artsy/force-public,anandaroop/force,mzikherman/force,anandaroop/force,erikdstock/force,kanaabe/force,artsy/force,yuki24/force,eessex/force,yuki24/force,oxaudo/force,yuki24/force,eessex/force,cavvia/force-1,cavvia/force-1,oxau... |
c3d4a62d1c5cfbface4235ef3dd7193227c3c238 | packages/rocketchat-oauth2-server-config/oauth/server/default-services.coffee | packages/rocketchat-oauth2-server-config/oauth/server/default-services.coffee | if not RocketChat.models.OAuthApps.findOne('default-zapier')
RocketChat.models.OAuthApps.insert
_id: 'default-zapier'
name: 'Default: Zapier'
default: true
clientId: 'default-zapier'
clientSecret: 'RTK6TlndaCIolhQhZ7_KHIGOKj41RnlaOq_o-7JKwLr'
redirectUri: 'https://zapier.com/dashboard/auth/oauth/return/App... | if not RocketChat.models.OAuthApps.findOne('default-zapier')
RocketChat.models.OAuthApps.insert
_id: 'default-zapier'
name: 'Default: Zapier'
active: false
default: true
clientId: 'default-zapier'
clientSecret: 'RTK6TlndaCIolhQhZ7_KHIGOKj41RnlaOq_o-7JKwLr'
redirectUri: 'https://zapier.com/dashboard/auth/... | Set default integratins as inactive by default | Set default integratins as inactive by default
| CoffeeScript | mit | Kiran-Rao/Rocket.Chat,intelradoux/Rocket.Chat,inoxth/Rocket.Chat,pkgodara/Rocket.Chat,Deepakkothandan/Rocket.Chat,linnovate/hi,ut7/Rocket.Chat,alexbrazier/Rocket.Chat,AlecTroemel/Rocket.Chat,tntobias/Rocket.Chat,karlprieb/Rocket.Chat,pitamar/Rocket.Chat,pkgodara/Rocket.Chat,alexbrazier/Rocket.Chat,OtkurBiz/Rocket.Chat,... |
6feedf55204316e853c5d2f9d8f5c4f09c12a743 | services/web/app/coffee/Features/Project/ProjectTokenGenerator.coffee | services/web/app/coffee/Features/Project/ProjectTokenGenerator.coffee | module.exports = ProjectTokenGenerator =
readOnlyToken: () ->
length = 12
tokenAlpha = 'bcdfghjkmnpqrstvwxyz'
result = ''
for _n in [1..length]
i = Math.floor(Math.floor(Math.random() * tokenAlpha.length))
result += tokenAlpha[i]
return result
readAndWriteToken: () ->
numerics = Math.random().toSt... | crypto = require 'crypto'
module.exports = ProjectTokenGenerator =
readOnlyToken: () ->
length = 12
tokenAlpha = 'bcdfghjkmnpqrstvwxyz'
result = ''
crypto.randomBytes(length).map( (a) -> result += tokenAlpha[a % tokenAlpha.length] )
return result
readAndWriteToken: () ->
numerics = Math.random().toStri... | Use crypto module for token generation | Use crypto module for token generation
| CoffeeScript | agpl-3.0 | sharelatex/sharelatex |
65cfe5df78cc8ba871e46936d2d58e97c5d577ab | lib/spell-check-handler.coffee | lib/spell-check-handler.coffee | SpellChecker = require 'spellchecker'
module.exports =
findMisspellings: (text) ->
wordRegex = /(?:^|[\s\[\]])([a-zA-Z']+)(?=[\s\.\[\]:]|$)/g
row = 0
misspellings = []
for line in text.split('\n')
while matches = wordRegex.exec(line)
word = matches[1]
continue unless SpellChecke... | SpellChecker = require 'spellchecker'
module.exports =
findMisspellings: (text) ->
wordRegex = /(?:^|[\s\[\]])([a-zA-Z']+)(?=[\s\.\[\]:,]|$)/g
row = 0
misspellings = []
for line in text.split('\n')
while matches = wordRegex.exec(line)
word = matches[1]
continue unless SpellCheck... | Include comma as a word boundary | Include comma as a word boundary
| CoffeeScript | mit | atom/spell-check |
ff998afffa8a0684a8b2285ca7ea2c2e69d8a27c | lib/load-paths-handler.coffee | lib/load-paths-handler.coffee | fs = require 'fs'
_ = require 'underscore'
module.exports =
loadPaths: (rootPath, ignoredNames, excludeGitIgnoredPaths) ->
if excludeGitIgnoredPaths
Git = require 'git'
repo = Git.open(rootPath, refreshOnWindowFocus: false)
paths = []
isIgnored = (path) ->
for segment in path.split('/'... | fs = require 'fs'
_ = require 'underscore'
module.exports =
loadPaths: (rootPath, ignoredNames, excludeGitIgnoredPaths) ->
if excludeGitIgnoredPaths
Git = require 'git'
repo = Git.open(rootPath, refreshOnWindowFocus: false)
paths = []
isIgnored = (path) ->
for segment in path.split('/'... | Return absolute paths from $native.traverseTree() | Return absolute paths from $native.traverseTree()
Previously relative paths were generated even though
things like fs.list() and fs.listTree() would just
recombine them with the root path.
Closes #391
| CoffeeScript | mit | gvanderest/fuzzy-finder,Kerruba/fuzzy-finder,gvanderest/fuzzy-finder,Kerruba/fuzzy-finder,viddo/fuzzy-finder,Spy-Seth/fuzzy-finder,Spy-Seth/fuzzy-finder,nielsAD/fuzzy-finder,atom/fuzzy-finder,viddo/fuzzy-finder,pombredanne/fuzzy-finder,pombredanne/fuzzy-finder,toshi-saito/fuzzy-finder,segiddins/fuzzy-finder,segiddins/f... |
77e7aeb04c45838758f4116508d17bd316fe5696 | src/search.coffee | src/search.coffee | define 'app/search', ['typeahead.bundle', 'app/p13n', 'app/settings'], (ta, p13n, settings) ->
lang = p13n.get_language()
engine = new Bloodhound
name: 'suggestions'
remote:
url: sm_settings.backend_url + "/search/?language=#{lang}&input=%QUERY"
ajax: settings.applyAjaxDe... | define 'app/search', ['typeahead.bundle', 'app/p13n', 'app/settings'], (ta, p13n, settings) ->
lang = p13n.get_language()
engine = new Bloodhound
name: 'suggestions'
remote:
url: sm_settings.backend_url + "/search/?language=#{lang}&page_size=5&input=%QUERY"
ajax: settings... | Make typeahead a bit faster | Make typeahead a bit faster
| CoffeeScript | agpl-3.0 | vaaralav/servicemap,vaaralav/servicemap,City-of-Helsinki/servicemap,City-of-Helsinki/servicemap,Zeukkari/servicemap,Zeukkari/servicemap,vaaralav/servicemap,City-of-Helsinki/servicemap |
2153246b7e5fa1d698762ba2421dc34794387587 | src/top.coffee | src/top.coffee | require("./primitive")
require("./es6compat")
require("./es7compat")
require("./bbjscompat")
require("./bootbox-promise")
require("./windowcontroller")
MainController = require("./maincontroller")
MainController.instance.activate()
# List of boards
require("./peridotboard")
require("./wakayamarbboard")
require("./gr... | require("./primitive")
# require("./es6compat") # Chrome supports ES6!
require("./es7compat")
require("./bbjscompat")
require("./bootbox-promise")
require("./windowcontroller")
MainController = require("./maincontroller")
MainController.instance.activate()
# List of boards
require("./peridotboard")
require("./wakay... | Remove ES6 compat from Chrome-app source | Remove ES6 compat from Chrome-app source
| CoffeeScript | mit | kimushu/rubic,kimushu/rubic |
32a74aabbcfd74a878c44f32f0d02518e91746e8 | spec/search-model-spec.coffee | spec/search-model-spec.coffee | RootView = require 'root-view'
SearchModel = require 'search-in-buffer/lib/search-model'
describe 'SearchModel', ->
[goToLine, editor, subject, buffer] = []
beforeEach ->
window.rootView = new RootView
rootView.open('sample.js')
rootView.enableKeymap()
editor = rootView.getActiveView()
buffer ... | RootView = require 'root-view'
SearchModel = require 'search-in-buffer/lib/search-model'
describe 'SearchModel', ->
[goToLine, editor, subject, buffer] = []
beforeEach ->
window.rootView = new RootView
rootView.open('sample.js')
rootView.enableKeymap()
editor = rootView.getActiveView()
buffer ... | Add search with regex option tests to SearchModel spec | Add search with regex option tests to SearchModel spec | CoffeeScript | mit | atom/find-and-replace,harai/find-and-replace,trevdor/find-and-replace,bmperrea/find-and-replace |
5ef46c5a1c99354bffec48e4032b694492e1d65a | src/javascript/game/entity/samus/systems/samus_controller_action.coffee | src/javascript/game/entity/samus/systems/samus_controller_action.coffee |
module.exports =
config:
filters: ['samus','short_beam','controller']
update: (comps,input,u) ->
samus = comps.get('samus')
ctrl = comps.getIn(['controller','states'])
aim = if ctrl.get('up') then 'up' else 'straight'
direction = if ctrl.get('left')
'left'
else if ctrl.get('... |
module.exports =
config:
filters: ['samus','controller']
update: (comps,input,u) ->
samus = comps.get('samus')
ctrl = comps.getIn(['controller','states'])
aim = if ctrl.get('up') then 'up' else 'straight'
direction = if ctrl.get('left')
'left'
else if ctrl.get('right')
... | Remove superfluous change to controller state from within samus controller action system | Remove superfluous change to controller state from within samus controller action system
| CoffeeScript | mit | dcrosby42/metroid-clone,dcrosby42/metroid-clone,dcrosby42/metroid-clone |
53abf822d7c7e8b98984d2426dbd8f5b4aae8eb6 | src/historystep.coffee | src/historystep.coffee | $ ->
$('#reload-consts').on 'click', ReloadK
sources = Bacon.combineTemplate
history: GameState.history
position: GameState.historicalPosition
sources.onValue (x) ->
{history, position} = x
$('#history').empty()
prevElement = null
prevElementCount = 0
prevElementType = null
for ele... | $ ->
$('#reload-consts').on 'click', ReloadK
sources = Bacon.combineTemplate
history: GameState.history
position: GameState.historicalPosition
sources.onValue (x) ->
{history, position} = x
$('#history').empty()
prevElement = null
prevElementCount = 0
prevElementType = null
for ele... | Use a times symbol, not an x | Use a times symbol, not an x
| CoffeeScript | mit | prophile/shipwreck |
f579976096351e129211c562c851e9d6f38862c5 | test/spec/overload.spec.coffee | test/spec/overload.spec.coffee | describe "Overloading functions", ->
overloadableFunc = null;
beforeEach ->
overloadableFunc = new Overloadable();
it "should not allow for passing incorrect arguments to 'overload' function", ->
expect( ->
overloadableFunc.overload()
).toThrow()
expect( ->
... | describe "Overloading functions", ->
overloadableFunc = null;
beforeEach ->
overloadableFunc = new Overloadable();
it "should not allow for passing incorrect arguments to 'overload' function", ->
expect( ->
overloadableFunc.overload()
).toThrow()
expect( ->
... | Test case for accepting object arguments | Test case for accepting object arguments | CoffeeScript | mit | JakubJagoda/Overloadable |
bc80478b87dfb11575972116c7ce1b1c4d0ffbe3 | test/data_tests.coffee | test/data_tests.coffee | should = require('should')
async = require('async')
Client = require('../common/test/client').Client
app = require('../server')
client = new Client("http://localhost:8888/")
describe "Test section", ->
before (done) ->
app.listen(8888)
done()
after (done) ->
app.close()
don... | should = require('should')
async = require('async')
Client = require('../common/test/client').Client
app = require('../server')
client = new Client("http://localhost:8888/")
describe "Test section", ->
before (done) ->
app.listen(8888)
done()
after (done) ->
app.close()
don... | Test d'existence avec un élément dans la base. | Test d'existence avec un élément dans la base.
| CoffeeScript | agpl-3.0 | frankrousseau/cozy-data-system,aenario/cozy-data-system,cozy/cozy-data-system,jsilvestre/cozy-data-system,Gara64/cozy-data-system,nono/cozy-data-system,clochix/cozy-data-system,poupotte/cozy-data-system,cylwin/cozy-data-system |
d58a8ac064b784725071be02edc138df1bc6f4b5 | lib/calatrava/templates/web/app/source/init.coffee | lib/calatrava/templates/web/app/source/init.coffee | root = this
root.calatrava ?= {}
calatrava = root.calatrava
# Hide all the sub-pages when first launching the app
$(document).ready ->
$('body > .container > .page').hide()
window.onpopstate = (event) ->
if event.state
tw.bridge.changePage event.state.page
| root = this
root.calatrava ?= {}
calatrava = root.calatrava
# Hide all the sub-pages when first launching the app
$(document).ready ->
$('body > .container > .page').hide()
window.onpopstate = (event) ->
if event.state
calatrava.bridge.changePage event.state.page
| Fix for back button being broken in web apps | Fix for back button being broken in web apps
It was still referring to the tw.bridge rather than calatrava.bridge
| CoffeeScript | apache-2.0 | calatrava/calatrava,calatrava/calatrava,calatrava/calatrava,calatrava/calatrava,calatrava/calatrava |
afef77985a582145217170136dae72d1eec6a5b7 | test/coffeescripts/Pieces3D_spec.js.coffee | test/coffeescripts/Pieces3D_spec.js.coffee | #= require three.min
#= require roofpig/Pieces3D
mock_scene = { add: -> }
mock_settings = { hover: 1.0, colors: { to_draw: -> { real: true, color: 'red'} } }
describe "Pieces3D", ->
it ".make_stickers() creates Pieces3D.UBL, Pieces3D.UL, Pieces3D.F etc", ->
pieces = new Pieces3D(mock_scene, mock_settings)
... | #= require three.min
#= require roofpig/Pieces3D
mock_scene = { add: -> }
mock_settings = {
hover: 1.0,
colors: {
to_draw: -> { hovers: true, color: 'red'}
of: -> 'black'
}
}
describe "Pieces3D", ->
it ".make_stickers() creates Pieces3D.UBL, Pieces3D.UL, Pieces3D.F etc", ->
pieces = new Pieces3... | Test mocks (again...) out of sync. | Test mocks (again...) out of sync.
| CoffeeScript | mit | andersonaap/Roofpig,andersonaap/Roofpig,andersonaap/Roofpig,larspetrus/Roofpig,larspetrus/Roofpig |
a4309c0ed47c8d81e322219c66206e49f861df6d | scripts/pivotal-listener.coffee | scripts/pivotal-listener.coffee | # Description:
# Receives Pivotal story activity and emits to pivotal-story-tagger
# when a new story is created
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# None
#
# URLS:
# '/hubot/pivotal-listener'
module.exports = (robot) ->
robot.router.post "/hubot/pivotal-listener", (req, res)... | # Description:
# Receives Pivotal story activity and emits to pivotal-story-tagger
# when a new story is created
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# None
#
# URLS:
# '/hubot/pivotal-listener'
module.exports = (robot) ->
robot.router.post "/hubot/pivotal-listener", (req, res)... | Add SAT, salesforce, cck12 design projects | Add SAT, salesforce, cck12 design projects
| CoffeeScript | mit | educationsuperhighway/eshbot |
070fa4c2a92f4ca9743c821eae36b6ed75eee7ad | src/components/WriteFile.coffee | src/components/WriteFile.coffee | fs = require 'fs'
noflo = require '../../lib/NoFlo'
class WriteFile extends noflo.Component
constructor: ->
@data = null
@filename = null
@inPorts =
in: new noflo.Port
filename: new noflo.Port
@outPorts =
out: new noflo.Port
error: new noflo.Port
@inPorts.in.on 'data', (... | fs = require 'fs'
noflo = require '../../lib/NoFlo'
class WriteFile extends noflo.Component
constructor: ->
@data = null
@filename = null
@inPorts =
in: new noflo.Port
filename: new noflo.Port
@outPorts =
out: new noflo.Port
error: new noflo.Port
@inPorts.in.on 'data', (... | Write files when you have both name and content | Write files when you have both name and content
| CoffeeScript | mit | npmcomponent/noflo-noflo,lxfschr/noflo,saurabhsood91/noflo,trustmaster/noflo,saurabhsood91/noflo,noflo/noflo,trustmaster/noflo,jonnor/noflo,jonnor/noflo,lxfschr/noflo |
5a186bc280dcf914130971868725c069aab6503a | src/scripts/thought.coffee | src/scripts/thought.coffee | # Description:
# Deep thoght generator
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# hubot thought - Get a random deep thought.
#
# Notes:
# None
#
# Author:
# @commadelimited
# Configures the plugin
module.exports = (robot) ->
# waits for the string "hubot deep" to occur
robot.respo... | # Description:
# Deep thoght generator
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# hubot thought - Get a random deep thought.
#
# Notes:
# None
#
# Author:
# @commadelimited
# Configures the plugin
module.exports = (robot) ->
# waits for the string "hubot deep" to occur
robot.respo... | Revise for json change in api | Revise for json change in api
it now comes back like
```json
{"id": 384, "thought":"If they ever have a haunted house for dogs, I think a good display would be a bathtub full of soapy water."}
``` | CoffeeScript | mit | alexhouse/hubot-scripts,iilab/hubot-scripts,justinwoo/hubot-scripts,jacobtomlinson/hubot-scripts,arcaartem/hubot-scripts,modulexcite/hubot-scripts,wsoula/hubot-scripts,magicstone1412/hubot-scripts,opentable/hubot-scripts,chauffer/hubot-scripts,Ev1l/hubot-scripts,terryjbates/hubot-scripts,github/hubot-scripts,phillipale... |
c40e0b209c792ae72a174f117fb5cdd4b3763c2c | src/scripts/uptime.coffee | src/scripts/uptime.coffee | # Outputs bot uptime
module.exports = (robot) ->
start = new Date().getTime()
robot.respond /uptime/i, (msg) ->
uptimeMe msg, start, (uptime) ->
msg.send uptime
numPlural = (num) ->
if num != 1 then 's' else ''
uptimeMe = (msg, start, cb) ->
now = new Date().getTime()
uptime_seconds = Math.floo... | # Outputs bot uptime
module.exports = (robot) ->
start = new Date().getTime()
robot.respond /uptime/i, (msg) ->
uptimeMe msg, start, (uptime) ->
msg.send uptime
numPlural = (num) ->
if num != 1 then 's' else ''
uptimeMe = (msg, start, cb) ->
now = new Date().getTime()
uptime_seconds = Math.floo... | Remove var definition - not needed | Remove var definition - not needed
| CoffeeScript | mit | davidsulpy/hubot-scripts,github/hubot-scripts,cycomachead/hubot-scripts,ryantomlinson/hubot-scripts,jan0sch/hubot-scripts,n0mer/hubot-scripts,amhorton/hubot-scripts,josephcarmello/hubot-scripts,phillipalexander/hubot-scripts,marksie531/hubot-scripts,MaxMEllon/hubot-scripts,dyg2104/hubot-scripts,opentable/hubot-scripts,... |
de3d47b8155fea85fc97b65b329229c36f94917e | app/assets/javascripts/sprangular/directives/shippingRatesSelection.coffee | app/assets/javascripts/sprangular/directives/shippingRatesSelection.coffee | Sprangular.directive 'shippingRateSelection', ->
restrict: 'E'
templateUrl: 'shipping/rates.html'
scope:
order: '='
controller: ($scope, Cart) ->
$scope.loading = false
$scope.rates = []
$scope.$watch 'order.shipping_method_id', (shippingMethodId) ->
rate = _.find($scope.rates, (rate) -> ... | Sprangular.directive 'shippingRateSelection', ->
restrict: 'E'
templateUrl: 'shipping/rates.html'
scope:
order: '='
controller: ($scope, Cart) ->
$scope.loading = false
$scope.rates = []
$scope.$watch 'order.shipping_method_id', (shippingMethodId) ->
rate = _.find($scope.rates, (rate) -> ... | Update shipping-rate-selection directive to handle error when retreiving rates | Update shipping-rate-selection directive to handle error when retreiving rates
| CoffeeScript | mit | sprangular/sprangular,sprangular/sprangular,sprangular/sprangular |
d71dfc6ead845a828a0a2f0a7a9ff5a7be75a52d | lib/router.coffee | lib/router.coffee | Router.configure
layoutTemplate: 'layout'
loadingTemplate: 'loading'
notFoundTemplate: 'notFound'
waitOn: -> [Meteor.subscribe('projects'), Meteor.subscribe('notifications')]
Router.route '/projects/new',
name: 'projectNew'
waitOn: -> Meteor.subscribe 'usernames'
Router.route '/projects/:_id',
name: 'pr... | Router.configure
layoutTemplate: 'layout'
loadingTemplate: 'loading'
notFoundTemplate: 'notFound'
waitOn: -> [Meteor.subscribe('projects'),
Meteor.subscribe('notifications'),
Meteor.subscribe('usernames')]
Router.route '/projects/new', name: 'projectNew'
Router.route '/projects/:_i... | Make usernames available in project overview so usernames can be shown. | Make usernames available in project overview so usernames can be shown.
| CoffeeScript | mit | fniessink/findsome,mxipartners/findsome |
c1cb22298f191936bb1156718957e39e7280fd4b | tapestry-core/src/test/coffeescript/org/apache/tapestry5/integration/app1/pages/test-pubsub.coffee | tapestry-core/src/test/coffeescript/org/apache/tapestry5/integration/app1/pages/test-pubsub.coffee | module "PubSub"
require ["core/pubsub"], (pubsub) ->
test "simple on/fire", ->
memoValue = null
expectedMemo = "expected"
pubsub.on "stim", (memo) -> memoValue = memo
pubsub.fire "stim", expectedMemo
ok memoValue is expectedMemo, "responder function was invoked" | module "PubSub"
require ["core/pubsub"], (pubsub) ->
test "export aliases", ->
ok pubsub.on is pubsub.respondTo, "on and respondTo"
ok pubsub.off is pubsub.stopResponding, "off and stopResponding"
test "simple on/fire", ->
memoValue = null
expectedMemo = "expected"
pubsub.on "stim", (memo)... | Add test to ensure that aliases exist | Add test to ensure that aliases exist
| CoffeeScript | apache-2.0 | apache/tapestry-5,apache/tapestry-5,apache/tapestry-5,apache/tapestry-5,apache/tapestry-5 |
819108cb476329dcd79fe3de253cbb44839cd5a4 | lib/utils/post-build.coffee | lib/utils/post-build.coffee | path = require 'path'
glob = require('glob')
fs = require 'fs-extra'
async = require 'async'
parsePath = require 'parse-filepath'
_ = require 'underscore'
globPages = require './glob-pages'
module.exports = (program, cb) ->
{relativeDirectory, directory} = program
globPages directory, (err, pages) ->
# Asyn... | path = require 'path'
glob = require('glob')
fs = require 'fs-extra'
async = require 'async'
parsePath = require 'parse-filepath'
_ = require 'underscore'
globPages = require './glob-pages'
module.exports = (program, cb) ->
{relativeDirectory, directory} = program
globPages directory, (err, pages) ->
# Asyn... | Add more static file types to be copied to public folder | Add more static file types to be copied to public folder
| CoffeeScript | mit | bzero/gatsby,gesposito/gatsby,mickeyreiss/gatsby,ChristopherBiscardi/gatsby,gesposito/gatsby,rothfels/gatsby,ChristopherBiscardi/gatsby,aliswodeck/gatsby,lanastasov/gatsby,MoOx/gatsby,ChristopherBiscardi/gatsby,gatsbyjs/gatsby,alihalabyah/gatsby,chiedo/gatsby,Khaledgarbaya/gatsby,okcoker/gatsby,fabrictech/gatsby,Marius... |
7a4412de88e79255f7635bb20426ea2b6f8361df | app/assets/javascripts/lib/utils/local_store.coffee | app/assets/javascripts/lib/utils/local_store.coffee | # ----------------------------------------------------------
#
# LocalStore (util)
# Serialize key,value into localstorage with cookies fallback
# for browsers that doesn't support localstorage.
#
# ----------------------------------------------------------
define ->
class LocalStore
@version = '0.0.1'
... | # ----------------------------------------------------------
#
# LocalStore (util)
# Serialize key,value into localstorage with cookies fallback
# for browsers that doesn't support localstorage.
#
# ----------------------------------------------------------
define ->
class LocalStore
@version = '0.0.1'
... | Update localstore's get function to actually retrieve the given element when specified | Update localstore's get function to actually retrieve the given element when specified
| CoffeeScript | mit | lonelyplanet/rizzo,lonelyplanet/rizzo,Lostmyname/rizzo,lonelyplanet/rizzo,Lostmyname/rizzo,lonelyplanet/rizzo,Lostmyname/rizzo,lonelyplanet/rizzo,Lostmyname/rizzo,Lostmyname/rizzo |
bec69ab9d8c6585942733bb4b9156a6b00c05d8a | components/embedly/index.coffee | components/embedly/index.coffee | _ = require 'underscore'
qs = require 'querystring'
moment = require 'moment'
Backbone = require 'backbone'
{ EMBEDLY_KEY } = require('sharify').data
{ crop, resize } = require '../resizer/index.coffee'
class Response extends Backbone.Model
resizeUrlFor: ->
resize @get('thumbnail_url'), arguments...
cropUrlFo... | _ = require 'underscore'
qs = require 'querystring'
moment = require 'moment'
Backbone = require 'backbone'
{ EMBEDLY_KEY } = require('sharify').data
{ crop, resize } = require '../resizer/index.coffee'
class Response extends Backbone.Model
resizeUrlFor: ->
resize @get('thumbnail_url'), arguments...
cropUrlFo... | Use https endpoint for Embedly oEmbed | Use https endpoint for Embedly oEmbed
| CoffeeScript | mit | damassi/force,yuki24/force,yuki24/force,izakp/force,joeyAghion/force,kanaabe/force,damassi/force,artsy/force-public,izakp/force,damassi/force,anandaroop/force,erikdstock/force,eessex/force,damassi/force,erikdstock/force,TribeMedia/force-public,oxaudo/force,anandaroop/force,dblock/force,dblock/force,joeyAghion/force,kan... |
ebbd7c38f53fadd5c76c6080299407d70190a245 | code/hash-create.coffee | code/hash-create.coffee | options = {}
options['font_size'] = 10
options['font_family'] = 'Arial'
console.log options
| options = {}
options.font_size = 10
options.font_family = 'Arial'
console.log options
| Access hash with hash.value in coffee | Access hash with hash.value in coffee
| CoffeeScript | mit | evmorov/lang-compare,evmorov/lang-compare,Evmorov/ruby-coffeescript,evmorov/lang-compare,evmorov/lang-compare,evmorov/lang-compare,evmorov/lang-compare,Evmorov/ruby-coffeescript,Evmorov/ruby-coffeescript |
d3b2dfe5459d292574781274052357d45013218e | src/app/units/states/tasks/viewer/directives/unit-task-list/unit-task-list.coffee | src/app/units/states/tasks/viewer/directives/unit-task-list/unit-task-list.coffee | angular.module('doubtfire.units.states.tasks.viewer.directives.unit-task-list', [])
.directive('unitTaskList', ->
restrict: 'E'
templateUrl: 'units/states/tasks/viewer/directives/unit-task-list/unit-task-list.tpl.html'
scope:
unit: '='
# Function to invoke to refresh tasks
refreshTasks: '=?'
unit... | angular.module('doubtfire.units.states.tasks.viewer.directives.unit-task-list', [])
.directive('unitTaskList', ->
restrict: 'E'
templateUrl: 'units/states/tasks/viewer/directives/unit-task-list/unit-task-list.tpl.html'
scope:
unit: '='
# Function to invoke to refresh tasks
refreshTasks: '=?'
unit... | Remove ability to deselect task from task list | FIX: Remove ability to deselect task from task list
| CoffeeScript | agpl-3.0 | doubtfire-lms/doubtfire-web,alexcu/doubtfire-web,doubtfire-lms/doubtfire-web,alexcu/doubtfire-web,doubtfire-lms/doubtfire-web,doubtfire-lms/doubtfire-web |
38f58320584bcf2809b6ea0663b2b39b5317449a | client/views/signIn/signIn.coffee | client/views/signIn/signIn.coffee | Template.entrySignIn.helpers
emailInputType: ->
if AccountsEntry.settings.passwordSignupFields is 'EMAIL_ONLY'
'email'
else
'string'
emailPlaceholder: ->
fields = AccountsEntry.settings.passwordSignupFields
if _.contains([
'USERNAME_AND_EMAIL'
'USERNAME_AND_OPTIONAL_EMAIL'
... | Template.entrySignIn.helpers
emailInputType: ->
if AccountsEntry.settings.passwordSignupFields is 'EMAIL_ONLY'
'email'
else
'string'
emailPlaceholder: ->
fields = AccountsEntry.settings.passwordSignupFields
if _.contains([
'USERNAME_AND_EMAIL'
'USERNAME_AND_OPTIONAL_EMAIL'
... | Fix for possible password exploit | Fix for possible password exploit
The password is stored in the session, so in the client console it could easily be return by "getting" the session value for. This could be done by anybody who get's access to the browser.
Workaround: unset the password, cause it is no longer needed | CoffeeScript | mit | mike623/accounts-entry,selaias/accounts-entry,txs/meteor-wecare-accounts-entry-flow-blaze-global,RiffynInc/meteor-accounts-entry,mike623/accounts-entry,valedaemon/accounts-entry,lnader/meteor-accounts-entry,maxkferg/accounts-entry,dovrosenberg/accounts-entry,Noamyoungerm/accounts-entry,jpatzer/accounts-entry,txs/meteor... |
88d80918a7232c28cf8127ca1a34442d31f66a3f | src/less-compile-cache.coffee | src/less-compile-cache.coffee | path = require 'path'
os = require 'os'
LessCache = require 'less-cache'
{Subscriber} = require 'emissary'
tmpDir = if process.platform is 'win32' then os.tmpdir() else '/tmp'
module.exports =
class LessCompileCache
Subscriber.includeInto(this)
@cacheDir: path.join(tmpDir, 'atom-compile-cache', 'less')
constr... | path = require 'path'
os = require 'os'
LessCache = require 'less-cache'
{Subscriber} = require 'emissary'
tmpDir = if process.platform is 'win32' then os.tmpdir() else '/tmp'
module.exports =
class LessCompileCache
Subscriber.includeInto(this)
@cacheDir: path.join(tmpDir, 'atom-compile-cache', 'less')
constr... | Use local resource path variable | Use local resource path variable | CoffeeScript | mit | isghe/atom,Jdesk/atom,decaffeinate-examples/atom,sebmck/atom,bencolon/atom,ilovezy/atom,folpindo/atom,GHackAnonymous/atom,MjAbuz/atom,charleswhchan/atom,yalexx/atom,ashneo76/atom,RobinTec/atom,nrodriguez13/atom,Jdesk/atom,fredericksilva/atom,n-riesco/atom,jtrose2/atom,bradgearon/atom,bryonwinger/atom,folpindo/atom,hhar... |
59789cf1f4afebea536282791503b2b8b7fff671 | scripts/card-fetcher.coffee | scripts/card-fetcher.coffee | # Description:
# Card image fetcher for Magic: The Gathering cards
#
# Commands:
# [[<card name>]]
#
# Notes:
# Upon failure, returns Dismal Failure
#
# Author:
# JacobGinsparg
rCardNames = /\[\[(.*)\]\]/i
baseUrl = "http://gatherer.wizards.com/Handlers/Image.ashx"
loadCardDatabase = ->
req = new XMLHttpReq... | # Description:
# Card image fetcher for Magic: The Gathering cards
#
# Commands:
# [[<card name>]]
#
# Notes:
# Upon failure, returns Dismal Failure
#
# Author:
# JacobGinsparg
loadCardDatabase = ->
req = new XMLHttpRequest()
req.addEventListener 'readystatechange', ->
if req.readyState is 4 and req.st... | Cut out superfluous code, things are much smoother now | Cut out superfluous code, things are much smoother now
| CoffeeScript | mit | JacobGinsparg/NUMTGBot |
cea565092e389cf875460cc15d77f77f44b6b02b | script.coffee | script.coffee | jQuery(document).ready ->
writeanswer = (ans) ->
jQuery("#answer").html(ans)
jQuery("#answer").attr("class", "answered")
jQuery(".unanswered").attr("class", "none")
question = jQuery("#question").val()
jQuery("#externallink").attr("href", "http://decisiverobot.com/?question=#... | jQuery(document).ready ->
writeanswer = (ans) ->
jQuery("#answer").html(ans)
jQuery("#answer").attr("class", "answered")
jQuery(".unanswered").attr("class", "none")
question = jQuery("#question").val()
jQuery("#externallink").attr("href", "/?question=#{question}")
... | Use relative links not full url | Use relative links not full url
| CoffeeScript | agpl-3.0 | DanielKinsman/decisive-robot |
3475b4dd2de35232ddb9044531c8fba4d7de5bea | tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/select.coffee | tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/select.coffee | # Copyright 2012 The Apache Software Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http:#www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agre... | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http:#www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the... | Tweak code for handling Ajax updates triggered by changing a Select | Tweak code for handling Ajax updates triggered by changing a Select
| CoffeeScript | apache-2.0 | apache/tapestry-5,apache/tapestry-5,apache/tapestry-5,apache/tapestry-5,apache/tapestry-5 |
fe31a088954a379243f45e6f69f0c9b10d301ea1 | core/app/backbone/factlink/tooltip_mixin.coffee | core/app/backbone/factlink/tooltip_mixin.coffee | Backbone.Factlink ||= {}
Backbone.Factlink.TooltipMixin =
default_options:
side: 'left'
align: 'center'
margin: 0
tooltipAdd: (selector, title, text, options) ->
options = _.extend @default_options, options
@_tooltips ?= {}
if @_tooltips[selector]?
throw "Cannot call tooltipAdd mul... | Backbone.Factlink ||= {}
Backbone.Factlink.TooltipMixin =
default_options:
side: 'left'
align: 'center'
margin: 0
tooltipAdd: (selector, title, text, options) ->
options = _.extend @default_options, options
@_tooltips ?= {}
if @_tooltips[selector]?
throw "Cannot call tooltipAdd mul... | Use the same tooltipRemove method | Use the same tooltipRemove method
| CoffeeScript | mit | daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core |
c4b404836016cb1173119aaa9631566c9a03b416 | stress_test.coffee | stress_test.coffee | io = require('socket.io-client')
url = process.env.TEST_TARGET || 'https://snap-backend-dev.herokuapp.com' #'http://localhost:8080'
users = process.env.USERS || 50
randWord = (len) ->
Math.random().toString(36).substr(2, len)
startPlayer = (name) ->
name = name || process.env.TEST_NAME || 'John Smith'
sock... | io = require('socket.io-client')
url = process.env.TEST_TARGET || 'https://snap-backend-dev.herokuapp.com' #'http://localhost:8080'
users = process.env.USERS || 50
randWord = (len) ->
Math.random().toString(36).substr(2, len)
startPlayer = (name) ->
socket = io(url)
socket.on 'connect', ()->
setTimeout... | Fix interval in stress test | Fix interval in stress test
- made it a reasonable 1 word/s
| CoffeeScript | mit | CMS611-snap/snap-backend,CMS611-snap/snap-backend,CMS611-snap/snap-backend |
ff6a6d70eea73851917f53343ecbe69f0631812f | lib/go-plus.coffee | lib/go-plus.coffee | Dispatch = require './dispatch'
module.exports =
configDefaults:
environmentOverridesConfiguration: true
syntaxCheckOnSave: false
formatOnSave: true
gofmtArgs: "-w"
vetOnSave: true
vetArgs: ""
lintOnSave: false
goPath: ""
goExecutablePath: "/usr/local/go/bin/go"
gofmtPath: "/u... | Dispatch = require './dispatch'
module.exports =
configDefaults:
environmentOverridesConfiguration: true
syntaxCheckOnSave: true
formatOnSave: true
formatWithGoImports: true
getMissingTools: true
gofmtArgs: "-w"
vetOnSave: true
vetArgs: ""
lintOnSave: true
goPath: ""
golin... | Remove Preferences, Update Defaults, Add Tools Preferences | Remove Preferences, Update Defaults, Add Tools Preferences
| CoffeeScript | apache-2.0 | alex/go-plus,rodumani/go-plus,timesking/go-plus,alex/go-plus,Gurpartap/go-plus,ma314smith/go-plus,danielchatfield/go-plus,alecthomas/go-plus,akutz/go-plus,crispinb/go-plus,crispinb/go-plus,greensnark/go-plus,rengawm/go-plus |
f2f14c176833f7e6c219a97c12939d1450e7b80f | 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'
... | Enable harmony collections when running specs | Enable harmony collections when running specs
| CoffeeScript | mit | soldair/first-mate,atom/first-mate,Talon1024/first-mate,rameshvarun/first-mate,burodepeper/first-mate,wiggzz/first-mate,hansonw/first-mate,klorenz/first-mate-manual-fork |
05db28dfbaef63cdeedf691a6628d5c7f2e7c07a | atom/config.cson | atom/config.cson | "*":
"atom-ctags": {}
"autocomplete-plus":
enableAutoActivation: false
core:
audioBeep: false
disabledPackages: [
"exception-reporting"
"linter"
]
ignoredNames: [
".bundle"
".git"
"log"
"repositories"
"tmp"
]
themes: [
"atom-dark-ui"
... | "*":
"atom-ctags": {}
"autocomplete-plus":
enableAutoActivation: false
core:
audioBeep: false
disabledPackages: [
"exception-reporting"
"linter"
]
ignoredNames: [
".bundle"
".git"
"_build"
"deps"
"log"
"node_modules"
"repositories"
"t... | Add Elixir project dirs to Atom `ignoredNames` | Add Elixir project dirs to Atom `ignoredNames`
| CoffeeScript | mit | jeffcole/dotfiles-local |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.