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 |
|---|---|---|---|---|---|---|---|---|---|
9ba3ec88b4761bbb74a939ae49b76f9c7f590857 | app/assets/javascripts/initialize_foundation.coffee | app/assets/javascripts/initialize_foundation.coffee | $(document).foundation()
hash = window.location.hash
if hash
# Open the Foundation tab whose URL matches the requested hash.
# http://foundation.zurb.com/sites/docs/tabs.html
$("[data-tabs] [href=\"#{hash}\"]").click()
| $(document).foundation()
$(document).on 'change.zf.tabs', (event) ->
if href = $('.is-active a', event.target).attr 'href'
if window.location.hash != href
window.history.pushState null, '', href
true
onHashChange = ->
hash = window.location.hash
if hash
# Open the Foundation tab whose URL matche... | Update location hash when Foundation tabs change. | Update location hash when Foundation tabs change.
| CoffeeScript | mit | pwnall/igor,pwnall/seven,spark008/igor,spark008/igor,spark008/seven,pwnall/igor,spark008/igor,spark008/seven,pwnall/igor,pwnall/igor,spark008/seven,pwnall/seven,spark008/igor,spark008/seven,spark008/igor,pwnall/seven,pwnall/seven,pwnall/seven,pwnall/igor,spark008/seven |
0da3e597fd41f091fdc8ccb2476b7b2fb7204f7b | lib/whitespace.coffee | lib/whitespace.coffee | {Subscriber} = require 'emissary'
module.exports =
class Whitespace
Subscriber.includeInto(this)
constructor: ->
atom.workspace.eachEditor (editor) =>
@handleEditorEvents(editor)
destroy: ->
@unsubscribe()
handleEditorEvents: (editor) ->
@subscribe editor, 'will-be-saved', =>
editor.... | {Subscriber} = require 'emissary'
module.exports =
class Whitespace
Subscriber.includeInto(this)
constructor: ->
atom.workspace.eachEditor (editor) =>
@handleBufferEvents(editor)
destroy: ->
@unsubscribe()
handleBufferEvents: (editor) ->
buffer = editor.getBuffer()
@subscribe buffer, '... | Use Buffer API instead of Editor API | Use Buffer API instead of Editor API | CoffeeScript | mit | atom/whitespace |
86b4a5d17307c9c9dbd653331dc36f99e9c71a21 | client/index.coffee | client/index.coffee | window.Messages = new Meteor.Collection('messages')
Template.chatTemplate.messages = ->
Messages.find()
$ ->
$('#enter').submit( ->
Meteor.subscribe('channel', $('#channel').val(), $('#user').val())
)
| window.Messages = new Meteor.Collection('messages')
Template.chatTemplate.messages = ->
Messages.find()
$ ->
$('#enter').submit( (e) ->
e.preventDefault()
Meteor.subscribe('channel', $('#channel').val(), $('#user').val())
)
| Fix submitting will a new page | Fix submitting will a new page
| CoffeeScript | mit | alFReD-NSH/cool-irc |
92f212ead5ad240dc55e5e0f703a3fbe56ed1b44 | app/assets/javascripts/select2-rails.coffee | app/assets/javascripts/select2-rails.coffee | window.Binco.Select2 =
load: (selector) ->
selector = if typeof selector == 'string' then selector else '.select2-rails'
$(selector).each((i,e) ->
$(e).select2('destroy') if $(e).hasClass("select2-hidden-accessible")
$(e).select2()
)
$(document).on 'turbolinks:load', window.Binco.Select2.load... | window.Binco.Select2 =
load: (selector) ->
selector = if typeof selector == 'string' then selector else '.select2-rails'
$(selector).select2()
destroy: (selector) ->
selector = if typeof selector == 'string' then selector else '.select2-rails'
$(selector).each((i,e) ->
$(e).select2('destroy')
... | Destroy select2 before cache happens to avoid duplication | Destroy select2 before cache happens to avoid duplication
| CoffeeScript | mit | codn/binco,codn/binco,codn/binco |
853eba49b1079d43e82438d6e022483022efcec6 | app/assets/javascripts/backbone/views/home_view.js.coffee | app/assets/javascripts/backbone/views/home_view.js.coffee | ProjectMonitor.Views ||= {}
class ProjectMonitor.Views.HomeView extends Backbone.View
tagName: "ol"
className: "projects"
template: JST["backbone/templates/home"]
initialize: (options) ->
@_addTileView(tile) for tile in @collection.models
@collection.on 'reset', =>
@.tearDownRegisteredSubViews(... | ProjectMonitor.Views ||= {}
class ProjectMonitor.Views.HomeView extends Backbone.View
tagName: "ol"
className: "projects"
template: JST["backbone/templates/home"]
initialize: (options) ->
@_addTileView(tile) for tile in @collection.models
@collection.on 'reset', =>
@.tearDownRegisteredSubViews(... | Append HomeView subviews in 1 operation | Append HomeView subviews in 1 operation
| CoffeeScript | mit | dgodd/projectmonitor,pivotal/projectmonitor,BuildingSync/projectmonitor,genebygene/projectmonitor,BuildingSync/projectmonitor,genebygene/projectmonitor,genebygene/projectmonitor,BuildingSync/projectmonitor,pivotal/projectmonitor,mabounassif/projectmonitor-docker,remind101/projectmonitor,dgodd/projectmonitor,remind101/p... |
5f134ece622768bdbf2ee503a53609dd0bc8c55f | lib/minimap-pigments.coffee | lib/minimap-pigments.coffee | {CompositeDisposable} = require 'event-kit'
MinimapPigmentsBinding = require './minimap-pigments-binding'
module.exports =
active: false
bindings: {}
isActive: -> @active
activate: (state) ->
@subscriptions = new CompositeDisposable
consumeMinimapServiceV1: (@minimap) ->
@minimap.registerPlugin 'p... | {CompositeDisposable} = require 'event-kit'
MinimapPigmentsBinding = require './minimap-pigments-binding'
module.exports =
active: false
bindings: {}
isActive: -> @active
activate: (state) ->
@subscriptions = new CompositeDisposable
consumeMinimapServiceV1: (@minimap) ->
@minimap.registerPlugin 'p... | Fix persisting reference to pigments after package deactivation | :bug: Fix persisting reference to pigments after package deactivation
Fixes abe33/atom-pigments#66
| CoffeeScript | mit | abe33/minimap-pigments |
e43b8884bd9bc424141856bb4052bc5fcbff7c76 | app/shrink.coffee | app/shrink.coffee | # Lookup table for compressing data
tableTo =
# User
email: "@"
password: "X"
has_pro: "$"
created_at: ":"
updated_at: "#"
data_Task: "dT"
data_List: "dL"
data_Time: "dX"
# Class names
Task: "T"
List: "L"
Time: "M"
# Properties
name: "n"
completed: "c"
id: "i"... | # Lookup table for compressing data
tableTo =
# User
email: "@"
password: "X"
has_pro: "$"
created_at: ":"
updated_at: "#"
data_Task: "dT"
data_List: "dL"
data_Time: "dX"
# Class names
Task: "T"
List: "L"
Time: "M"
# Properties
name: "n"
completed: "c"
id: "i"... | Stop converting arrays into objects | Stop converting arrays into objects
| CoffeeScript | unknown | nitrotasks/nitro-server,nitrotasks/nitro-server,CaffeinatedCode/nitro-server |
ae86b17ca1fa4735529b7fc1b17a4aa4dce36222 | lib/views/general/admin.coffee | lib/views/general/admin.coffee | jQuery ->
$('.locales a:first').tab('show')
$('.accordion-body').on('hidden', ->
$(@).prev().find('i').first().removeClass().addClass('icon-chevron-right')
)
$('.accordion-body').on('shown', ->
$(@).prev().find('i').first().removeClass().addClass('icon-chevron-down'))
$('.toggle-... | jQuery ->
$('.locales a:first').tab('show')
$('.accordion-body').on('hidden', ->
$(@).prev().find('i').first().removeClass().addClass('icon-chevron-right')
)
$('.accordion-body').on('shown', ->
$(@).prev().find('i').first().removeClass().addClass('icon-chevron-down'))
$('.toggle-... | Fix ERB tag syntax in the source | Fix ERB tag syntax in the source
| CoffeeScript | mit | sebbacon/adminbootstraptheme,mysociety/adminbootstraptheme,mysociety/adminbootstraptheme,sebbacon/adminbootstraptheme |
a0dd9e745bddbcd01d545c37a8461eb354763613 | server/config.coffee | server/config.coffee | americano = require 'americano'
fs = require 'fs'
path = require 'path'
realtimer = require './utils/realtimer'
localizationManager = require './utils/localization_manager'
useBuildView = fs.existsSync path.resolve(__dirname, 'views', 'index.js')
config =
common:
set:
'view engine... | americano = require 'americano'
fs = require 'fs'
path = require 'path'
realtimer = require './utils/realtimer'
localizationManager = require './utils/localization_manager'
useBuildView = fs.existsSync path.resolve(__dirname, 'views', 'index.js')
config =
common:
set:
'view engine... | Fix typo that prevented assets from being loaded | Fix typo that prevented assets from being loaded
| CoffeeScript | mit | poupotte/leave-google,clochix/leave-google,cozy-labs/leave-google,jacquarg/leave-google,clochix/leave-google,cozy-labs/import-from-google,poupotte/leave-google,nono/import-from-google,jacquarg/leave-google,cozy-labs/leave-google,cozy-labs/import-from-google,nono/import-from-google |
5f5c5654d8f0dd82437c0c20735dd38650521923 | jquery.transparency.coffee | jquery.transparency.coffee | _ = require 'underscore'
$ = jQuery
assign = (node, attribute, value) ->
if attribute
node.attr attribute, value
else
children = node.children().detach()
node.text value
node.append(children)
$.fn.render = (data) ->
data = [data] unless $.isArray(data)
context = this
template = this.clo... | _ = require 'underscore'
$ = jQuery
assign = (node, attribute, value) ->
if attribute
node.attr attribute, value
else
children = node.children().detach()
node.text value
node.append(children)
select = (hash, fn) ->
result = {}
for key, value of hash
(result[key] = value) if fn key, value
... | Use select to create hashes for list comprehensions | Use select to create hashes for list comprehensions
| CoffeeScript | mit | leonidas/transparency,cravelight/transparency,webmechanicx/fill,phcomputer/template,cravelight/transparency,chorks/transparency,phcomputer/template,webmechanicx/fill,laomu1988/transparency,leonidas/transparency,laomu1988/transparency,chorks/transparency |
48871e81178347c81a941102f6dacd8ec0d0e90e | core/app/backbone/controllers/client_controller.coffee | core/app/backbone/controllers/client_controller.coffee | window.ClientController =
showFact: (fact_id) ->
fact = new Fact id: fact_id
fact.on 'destroy', ->
parent.remote.hide()
parent.remote.stopHighlightingFactlink fact_id
fact.fetch success: ->
newClientModal = new DiscussionModalContainer
FactlinkApp.discussionModalRegion.show newCl... | window.ClientController =
showFact: (fact_id) ->
fact = new Fact id: fact_id
fact.on 'destroy', ->
parent.remote.hide()
parent.remote.stopHighlightingFactlink fact_id
fact.fetch success: ->
newClientModal = new DiscussionModalContainer
FactlinkApp.discussionModalRegion.show newCl... | Allow opening client controller in tests | Allow opening client controller in tests
| CoffeeScript | mit | daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core,Factlink/factlink-core,daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core |
d5d9e3ac895f52e4a9e58b2cc5033c84725ec4c4 | packages/rocketchat-api/server/api.coffee | packages/rocketchat-api/server/api.coffee | class API extends Restivus
constructor: ->
@authMethods = []
super
addAuthMethod: (method) ->
@authMethods.push method
success: (result={}) ->
if _.isObject(result)
result.success = true
return {} =
statusCode: 200
body: result
failure: (result) ->
if _.isObject(result)
result.success = ... | class API extends Restivus
constructor: ->
@authMethods = []
super
addAuthMethod: (method) ->
@authMethods.push method
success: (result={}) ->
if _.isObject(result)
result.success = true
return {} =
statusCode: 200
body: result
failure: (result) ->
if _.isObject(result)
result.success = ... | Use status code 403 forbidden instead of 401 unauthorized | Use status code 403 forbidden instead of 401 unauthorized
Also returns a pretty JSON | CoffeeScript | mit | NMandapaty/Rocket.Chat,ggazzo/Rocket.Chat,ealbers/Rocket.Chat,alexbrazier/Rocket.Chat,Sing-Li/Rocket.Chat,subesokun/Rocket.Chat,mrsimpson/Rocket.Chat,fatihwk/Rocket.Chat,mrinaldhar/Rocket.Chat,xasx/Rocket.Chat,Gyubin/Rocket.Chat,igorstajic/Rocket.Chat,danielbressan/Rocket.Chat,4thParty/Rocket.Chat,subesokun/Rocket.Chat... |
d3c59e26cee06d04e733bae83a9fd13439ea22d2 | client/Workspace/panes/pane.coffee | client/Workspace/panes/pane.coffee | class Pane extends JView
constructor: (options = {}, data) ->
options.cssClass = KD.utils.curry "ws-pane", options.cssClass
super options, data
@headerButtons = {}
@createHeader()
@createButtons() if options.buttons?.length
@on "PaneResized", @bound "handlePaneResized"
createHeader:... | class Pane extends JView
constructor: (options = {}, data) ->
options.cssClass = KD.utils.curry "ws-pane", options.cssClass
super options, data
@headerButtons = {}
@createHeader()
@createButtons() if options.buttons?.length
@on "PaneResized", @bound "handlePaneResized"
createHeader:... | Make header.title as a separate object | Pane: Make header.title as a separate object
| CoffeeScript | agpl-3.0 | mertaytore/koding,kwagdy/koding-1,koding/koding,koding/koding,andrewjcasal/koding,mertaytore/koding,koding/koding,gokmen/koding,kwagdy/koding-1,jack89129/koding,gokmen/koding,kwagdy/koding-1,andrewjcasal/koding,sinan/koding,alex-ionochkin/koding,sinan/koding,cihangir/koding,acbodine/koding,andrewjcasal/koding,szkl/kodi... |
d6aa1274ffd77500730bbee9d8ae61b22e72bb47 | app/src/bitcoin/networks.coffee | app/src/bitcoin/networks.coffee | ledger.bitcoin ||= {}
ledger.bitcoin.Networks =
bitcoin:
name: 'bitcoin'
ticker: 'btc'
bip44_coin_type: '0'
version:
regular: 0
P2SH: 5
bitcoinjs: bitcoin.networks.bitcoin
ws_chain: 'bitcoin'
testnet:
name: 'testnet'
ticker: 'btctest'
bip44_coin_type: '0'
version:... | ledger.bitcoin ||= {}
ledger.bitcoin.Networks =
bitcoin:
name: 'bitcoin'
ticker: 'btc'
bip44_coin_type: '0'
version:
regular: 0
P2SH: 5
bitcoinjs: bitcoin.networks.bitcoin
ws_chain: 'bitcoin'
testnet:
name: 'testnet'
ticker: 'btctest'
bip44_coin_type: '1'
version:... | Set testnet BIP44 coin type to 1 | Set testnet BIP44 coin type to 1
| CoffeeScript | mit | LedgerHQ/ledger-wallet-chrome,LedgerHQ/ledger-wallet-chrome |
2752f93efb6247464fde02f48ddff3e4134ee123 | Learn-server/handleImage.coffee | Learn-server/handleImage.coffee |
fs = require 'fs'
crypto = require 'crypto'
createHashID = ->
crypto.createHash('sha1').update("#{Math.random()}").digest('hex');
module.exports = (file, callback) ->
return callback("No `image` file. Make sure the `image` field is being set.") unless file
path = "#{global.image_path}#{createHashID()}_#{file.... |
fs = require 'fs'
crypto = require 'crypto'
path = require 'path'
createHashID = ->
crypto.createHash('sha1').update("#{Math.random()}").digest('hex');
module.exports = (file, callback) ->
return callback("No `image` file. Make sure the `image` field is being set.") unless file
path = path.normalize "#{global... | Fix path encoding on server | Fix path encoding on server
| CoffeeScript | apache-2.0 | balazspete/smart-collaborations,balazspete/smart-collaborations |
0dd427c6fdf54e52ee5b66f86f26d127f86c29f6 | src/layout.coffee | src/layout.coffee | #
# layout.coffee
#
# Role: configure the interface for a level
#
# Responsibility:
# * create dictionaries describing the interface elements
# * associate them as children of the level
{my} = require './my'
{vector} = require './god/vector'
{header} = require './layout/header'
{controls} = require './layout/controls... | #
# layout.coffee
#
# Role: configure the interface for a level
#
# Responsibility:
# * create dictionaries describing the interface elements
# * associate them as children of the level
{my} = require './my'
{vector} = require './god/vector'
{header} = require './layout/header'
{controls} = require './layout/controls... | Move custom level link to more conspicious place | Move custom level link to more conspicious place
| CoffeeScript | isc | TheSwanFactory/hourofnode,TheSwanFactory/hourofnode |
115a21da6f5d94f6d63deea74f4f909eda32c335 | gulp/dev.coffee | gulp/dev.coffee | browserify = require "browserify"
connect = require "gulp-connect"
error = require "./error.coffee"
gulp = require "gulp"
gutil = require "gulp-util"
notify = require "gulp-notify"
path = require "path"
source = require "vinyl-source-stream"
timer = require "gulp-duration"
watchify... | browserify = require "browserify"
connect = require "gulp-connect"
error = require "./error.coffee"
gulp = require "gulp"
gutil = require "gulp-util"
notify = require "gulp-notify"
path = require "path"
source = require "vinyl-source-stream"
timer = require "gulp-duration"
watchify... | Revert "temorarily removed connect server gulp code" | Revert "temorarily removed connect server gulp code"
This reverts commit 8ef5cd25289cc215599ffa7c5e70dcbce78e03e5.
| CoffeeScript | mit | CodeCutterUK/d3plus,bryanph/d3plus,alexandersimoes/d3plus |
42cca50f777a562d31b969fe0ff3a1551e3ee8eb | views/2574.coffee | views/2574.coffee | mapboxgl.accessToken = 'pk.eyJ1IjoibWg2MTUwMzg5MSIsImEiOiJjaWhxbTJjOGMwNGt4dHBtMjczbzhieXZkIn0.J8-B8U-8nCtqiZ2CfxbV0g'
position = new mapboxgl.LngLat(133.842941, 35.375086).wrap()
map = new mapboxgl.Map {
container: 'map'
style: 'mapbox://styles/mapbox/streets-v8'
center: [position.lng, position.lat]
zoom: 8
}
... | mapboxgl.accessToken = 'pk.eyJ1IjoibWg2MTUwMzg5MSIsImEiOiJjaWhxbTJjOGMwNGt4dHBtMjczbzhieXZkIn0.J8-B8U-8nCtqiZ2CfxbV0g'
position = new mapboxgl.LngLat(133.842941, 35.375086).wrap()
map = new mapboxgl.Map {
container: 'map'
style: 'mapbox://styles/mapbox/streets-v8'
center: [position.lng, position.lat]
zoom: 8
}
... | Change zoom level from 15 to 14 | Change zoom level from 15 to 14
| CoffeeScript | mit | mh61503891/2574,mh61503891/2574 |
1512029864c7f27f12c39e28e3c7cdae683dc072 | tasks/clean-task.coffee | tasks/clean-task.coffee | path = require 'path'
module.exports = (grunt) ->
{rm} = require('./task-helpers')(grunt)
grunt.registerTask 'partial-clean', 'Delete some of the build files', ->
rm grunt.config.get('atom.buildDir')
rm '/tmp/atom-coffee-cache'
rm '/tmp/atom-cached-atom-shells'
rm 'node'
rm 'atom-shell'
gru... | path = require 'path'
module.exports = (grunt) ->
{rm} = require('./task-helpers')(grunt)
grunt.registerTask 'partial-clean', 'Delete some of the build files', ->
rm grunt.config.get('atom.buildDir')
rm '/tmp/atom-coffee-cache'
rm '/tmp/atom-cached-atom-shells'
rm 'atom-shell'
grunt.registerTas... | Remove deletion of node directory | Remove deletion of node directory
This directory is no longer at the root of the repo
| CoffeeScript | mit | kc8wxm/atom,fedorov/atom,niklabh/atom,Shekharrajak/atom,vinodpanicker/atom,tony612/atom,ardeshirj/atom,yamhon/atom,Shekharrajak/atom,qskycolor/atom,crazyquark/atom,fang-yufeng/atom,YunchengLiao/atom,Jandersoft/atom,fang-yufeng/atom,Sangaroonaom/atom,hagb4rd/atom,kandros/atom,atom/atom,Ju2ender/atom,nvoron23/atom,target... |
9f0389dec942552236714eb55fd8b3d84554b784 | lib/main.coffee | lib/main.coffee | SpellCheckView = null
module.exports =
config:
grammars:
type: 'array'
default: [
'source.gfm'
'text.git-commit'
'text.plain'
'text.plain.null-grammar'
]
activate: ->
@disposable = atom.workspace.observeTextEditors(addViewToEditor)
deactivate: ->
@d... | SpellCheckView = null
module.exports =
config:
grammars:
type: 'array'
default: [
'source.asciidoc'
'source.gfm'
'text.git-commit'
'text.plain'
'text.plain.null-grammar'
]
activate: ->
@disposable = atom.workspace.observeTextEditors(addViewToEditor... | Add asciidoc grammar to defaults | Add asciidoc grammar to defaults
| CoffeeScript | mit | atom/spell-check |
df115d4cd7ef02c46cde4f0fdf35791509bead74 | lib/psc-ide.coffee | lib/psc-ide.coffee | {BufferedProcess} = require 'atom'
class PscIde
constructor: ->
@pscIde = atom.config.get("linter-purescript.pscIdeExe")
@getModules()
.then (output) ->
console.log output
runCmd: (str) ->
return new Promise (resolve,reject) =>
command = @pscIde
args = []
stdout = (outp... | {BufferedProcess} = require 'atom'
class PscIde
constructor: ->
@pscIde = atom.config.get("ide-purescript.pscIdeExe")
@getModules()
.then (output) ->
console.log output
runCmd: (str) ->
return new Promise (resolve,reject) =>
command = @pscIde
args = []
stdout = (output)... | Fix config, log a completion type | Fix config, log a completion type [WIP]
| CoffeeScript | mit | nwolverson/atom-ide-purescript,nwolverson/atom-linter-purescript,kRITZCREEK/atom-ide-purescript |
be13a0bebbc672a6a324bcd6db79b57f4a529cc1 | keymaps/markdown-preview.cson | keymaps/markdown-preview.cson | '.workspace, .workspace .editor':
'ctrl-M': 'markdown-preview:toggle'
'.platform-darwin .markdown-preview':
'cmd-+': 'markdown-preview:zoom-in'
'cmd-=': 'markdown-preview:zoom-in'
'cmd--': 'markdown-preview:zoom-out'
'cmd-_': 'markdown-preview:zoom-out'
'cmd-0': 'markdown-preview:reset-zoom'
'.platform-wi... | 'atom-workspace, atom-workspace atom-text-editor':
'ctrl-M': 'markdown-preview:toggle'
'.platform-darwin .markdown-preview':
'cmd-+': 'markdown-preview:zoom-in'
'cmd-=': 'markdown-preview:zoom-in'
'cmd--': 'markdown-preview:zoom-out'
'cmd-_': 'markdown-preview:zoom-out'
'cmd-0': 'markdown-preview:reset-zoo... | Update deprecated selector in keymap | Update deprecated selector in keymap
| CoffeeScript | mit | sctlee/markdown-preview,atom/markdown-preview,grimmer0125/markdown-preview-kramdown,rugk/markdown-preview,ArnaudRinquin/markdown-preview,Galadirith/markdown-preview,makyo/markdown-preview,tkssharma/markdown-preview |
9fa16d2aa8d770abcd3df4d6765430dc86eb5d69 | server/routes/indicators.coffee | server/routes/indicators.coffee | Indicator = require('../models/indicator').model
Theme = require('../models/theme').model
_ = require('underscore')
async = require('async')
csv = require('express-csv')
exports.index = (req, res) ->
Theme.getFatThemes( (err, themes) ->
if err?
console.error err
return res.render(500, "Error fetching... | Indicator = require('../models/indicator').model
Theme = require('../models/theme').model
_ = require('underscore')
async = require('async')
csv = require('express-csv')
exports.index = (req, res) ->
Theme.getFatThemes( (err, themes) ->
if err?
console.error err
return res.render(500, "Error fetching... | Make indicator page show the page correctly | Make indicator page show the page correctly
| CoffeeScript | bsd-3-clause | unepwcmc/NRT,unepwcmc/NRT |
52daba470612c374fe3e9e5caece5cd8a9900326 | models/base.coffee | models/base.coffee | _ = require 'underscore'
class Base
constructor: (props) ->
_.each props, (v, k) =>
@[k] = v
validate: ->
validProperty = (property)=>
valid = false
valid = typeof @[property] isnt 'undefined'
if @validator and @validator[property]
valid = @validator[property]()
vali... | _ = require 'underscore'
class Base
constructor: (props) ->
_.each props, (v, k) =>
@[k] = v
validate: ->
validProperty = (property)=>
valid = false
valid = typeof @[property] isnt 'undefined'
if @validator and @validator[property]
valid = @validator[property]()
vali... | Add in the optional propertys when present | Add in the optional propertys when present
| CoffeeScript | bsd-3-clause | t3mpus/tempus-api |
412f8dfabe8b1f08347be6d26951b8474f3af172 | lib/broadcast.coffee | lib/broadcast.coffee | BroadcastServer = require './broadcast-server.coffee'
module.exports =
configDefaults:
hostname: 'localhost'
port: 8000
getEmojisFromCheatSheetSite: false
automaticallyOpenInBrowser: true
broadcastToOthers: false
codeHighlight: true
server: null
activate: ->
atom.workspaceView.comma... | BroadcastServer = require './broadcast-server.coffee'
module.exports =
configDefaults:
hostname: 'localhost'
port: 8000
getEmojisFromCheatSheetSite: false
automaticallyOpenInBrowser: true
broadcastToOthers: false
codeHighlight: true
server: null
activate: ->
atom.commands.add 'atom-... | Fix warning to use deprecated calls | Fix warning to use deprecated calls
| CoffeeScript | mit | eqot/atom-broadcast,eqot/atom-broadcast |
e622a53ed84e729a08abc141215f6351852e004f | test/test_daemon.coffee | test/test_daemon.coffee | net = require "net"
{testCase} = require "nodeunit"
{Configuration, Daemon} = require ".."
{prepareFixtures, fixturePath} = require "./lib/test_helper"
module.exports = testCase
setUp: (proceed) ->
prepareFixtures proceed
"start and stop": (test) ->
test.expect 2
configuration = new Configuration hos... | net = require "net"
{testCase} = require "nodeunit"
{Configuration, Daemon} = require ".."
{prepareFixtures, fixturePath} = require "./lib/test_helper"
module.exports = testCase
setUp: (proceed) ->
prepareFixtures proceed
"start and stop": (test) ->
test.expect 2
configuration = new Configuration POW... | Fix Configuration initialization in daemon tests | Fix Configuration initialization in daemon tests
| CoffeeScript | mit | ysbaddaden/pow,nlarso/pow,eileencodes/pow,ysbaddaden/pow,ysbaddaden/pow,basecamp/pow,ariporad/pow,basecamp/pow,statwonk/pow,statwonk/pow,ariporad/pow,eileencodes/pow,nlarso/pow |
825de9897a52cefeb93126e52a42b3235f93d0f2 | app/scripts/components/BsPill.coffee | app/scripts/components/BsPill.coffee | Bootstrap.BsPill = Bootstrap.ItemView.extend(Bootstrap.NavItem, Bootstrap.ItemSelection,
template: Ember.Handlebars.compile '''
{{#if view.content.linkTo}}
{{#linkTo view.content.linkTo}}{{view.title}}{{/linkTo}}
{{else}}
{{view view.pillAsLinkView}}
{{/if}}
'''
... | Bootstrap.BsPill = Bootstrap.ItemView.extend(Bootstrap.NavItem, Bootstrap.ItemSelection,
template: Ember.Handlebars.compile '''
{{#if view.content.linkTo}}
{{#if view.parentView.dynamicLink}}
{{#link-to view.content.linkTo model}}{{view.title}}{{/link-to}}
{{else}}
... | Support dynamic segment in links when model is provided in pills by providing a "dynamicLink" boolean property. | Support dynamic segment in links when model is provided in pills
by providing a "dynamicLink" boolean property.
| CoffeeScript | apache-2.0 | ember-addons/bootstrap-for-ember,ritesh83/bootstrap-for-ember,rpharrison/bootstrap-for-ember,duereg/bootstrap-for-ember,rpharrison/bootstrap-for-ember,ritesh83/bootstrap-for-ember |
00455c2521534d8be0eb7bdf72614334b33f938d | lib/base_task.coffee | lib/base_task.coffee | Q = require 'q'
{Base} = require "#{__dirname}/base"
{Wrappers} = require "#{__dirname}/helpers/wrappers"
{BeanBuilder} = require "#{__dirname}/helpers/bean_builder"
class BaseTask extends Base
app: null
actions: null
actionBuilder: null
constructor: ->
@actions = []
@actionBuilder = new BeanBuild... | Q = require 'q'
{Base} = require "#{__dirname}/base"
{Wrappers} = require "#{__dirname}/helpers/wrappers"
{BeanBuilder} = require "#{__dirname}/helpers/bean_builder"
class BaseTask extends Base
app: null
actions: null
actionBuilder: null
constructor: ->
@actions = []
@actionBuilder = new BeanBuild... | Fix returned promise wasn't deep enough. | Fix returned promise wasn't deep enough.
| CoffeeScript | mit | knalli/pi-jenkins,knalli/pi-jenkins |
5476c5fdf6c672ae1729967e8b2b8753e865eb6f | SingularityUI/app/models/RequestHistory.coffee | SingularityUI/app/models/RequestHistory.coffee | Model = require './model'
class RequestHistory extends Model
url: -> "#{ env.SINGULARITY_BASE }/#{ constants.apiBase }/history/request/#{ @requestId }/requests"
initialize: (models, { @requestId }) =>
parse: (requestHistoryObjects) ->
requestHistory = {}
requestHistory.requestId = @reque... | Model = require './model'
class RequestHistory extends Model
url: -> "#{ env.SINGULARITY_BASE }/#{ constants.apiBase }/history/request/#{ @requestId }/requests"
initialize: (models, { @requestId }) =>
parse: (requestHistoryObjects) ->
requestHistory = {}
requestHistory.requestId = @reque... | Sort requestHistory requestUpdates by createdAt (so new items are at the top) | Sort requestHistory requestUpdates by createdAt (so new items are at the top) | CoffeeScript | apache-2.0 | mjball/Singularity,tejasmanohar/Singularity,mjball/Singularity,acbellini/Singularity,andrhamm/Singularity,nvoron23/Singularity,hs-jenkins-bot/Singularity,HubSpot/Singularity,grepsr/Singularity,nvoron23/Singularity,stevenschlansker/Singularity,stevenschlansker/Singularity,mjball/Singularity,calebTomlinson/Singularity,gr... |
b2c641de219d3aba8f1fce758b2f05ca8233e2d6 | app/assets/javascripts/autosave.js.coffee | app/assets/javascripts/autosave.js.coffee | class @Autosave
constructor: (field, key) ->
@field = field
key = key.join("/") if key.join?
@key = "autosave/#{key}"
@field.data "autosave", this
@restore()
@field.on "input", => @save()
restore: ->
return unless window.localStorage?
try
text = window.localStorage.getIte... | class @Autosave
constructor: (field, key) ->
@field = field
key = key.join("/") if key.join?
@key = "autosave/#{key}"
@field.data "autosave", this
@restore()
@field.on "input", => @save()
restore: ->
return unless window.localStorage?
try
text = window.localStorage.getIte... | Fix syntax error in autosave coffeescript. | Fix syntax error in autosave coffeescript.
| CoffeeScript | mit | mr-dxdy/gitlabhq,axilleas/gitlabhq,mmkassem/gitlabhq,daiyu/gitlab-zh,mmkassem/gitlabhq,Soullivaneuh/gitlabhq,dreampet/gitlab,larryli/gitlabhq,jirutka/gitlabhq,daiyu/gitlab-zh,LUMC/gitlabhq,axilleas/gitlabhq,iiet/iiet-git,screenpages/gitlabhq,icedwater/gitlabhq,dplarson/gitlabhq,htve/GitlabForChinese,iiet/iiet-git,SVAra... |
fe38a652f68e9aafbeac59539038467f74e6fee8 | app/api/client.coffee | app/api/client.coffee | JSONAPIClient = {Resource} = require 'json-api-client'
config = require './config'
apiClient = new JSONAPIClient config.host + '/api',
'Content-Type': 'application/json'
'Accept': 'application/vnd.api+json; version=1'
apiClient.type('classifications').Resource = require './classification'
apiClient.handleError =... | JSONAPIClient = {Resource} = require 'json-api-client'
config = require './config'
apiClient = new JSONAPIClient config.host + '/api',
'Content-Type': 'application/json'
'Accept': 'application/vnd.api+json; version=1'
apiClient.type('classifications').Resource = require './classification'
apiClient.handleError =... | Set manual error message for 500 responses | Set manual error message for 500 responses | CoffeeScript | apache-2.0 | mrniaboc/Panoptes-Front-End,edpaget/Panoptes-Front-End,alexbfree/Panoptes-Front-End,parrish/Panoptes-Front-End,marten/Panoptes-Front-End,CKrawczyk/Panoptes-Front-End,alexbfree/Panoptes-Front-End,fmnhExhibits/Panoptes-Front-End,aliburchard/Panoptes-Front-End,parrish/Panoptes-Front-End,camallen/Panoptes-Front-End,edpaget... |
2c24909581c739848bd808e945c389df2ab7426c | menus/tree-view.cson | menus/tree-view.cson | 'menu': [
{
'label': 'View'
'submenu': [
'label': 'Toggle Treeview'
'command': 'tree-view:toggle'
]
}
{
'label': 'Packages'
'submenu': [
'label': 'Tree View'
'submenu': [
{ 'label': 'Focus', 'command': 'tree-view:toggle-focus' }
{ 'label': 'Toggle', 'com... | 'menu': [
{
'label': 'View'
'submenu': [
'label': 'Toggle Tree View'
'command': 'tree-view:toggle'
]
}
{
'label': 'Packages'
'submenu': [
'label': 'Tree View'
'submenu': [
{ 'label': 'Focus', 'command': 'tree-view:toggle-focus' }
{ 'label': 'Toggle', 'co... | Rename Treeview to Tree View in View menu | Rename Treeview to Tree View in View menu
Synchronizes it to the same label used in the Packages menu.
| CoffeeScript | mit | tbryant/tree-view,ayumi/tree-view,jarig/tree-view,rajendrant/tree-view-remote,benjaminRomano/tree-view,Galactix/tree-view,jasonhinkle/tree-view,thgaskell/tree-view,samu/tree-view,atom/tree-view,tomekwi/tree-view,learn-co/learn-ide-tree,ALEXGUOQ/tree-view,laituan245/tree-view,pombredanne/tree-view-1,matthewbauer/tree-vi... |
3e753858a3547fa9ad3970036f8623b5f3a584aa | src/scripts/models/role-acceptances.coffee | src/scripts/models/role-acceptances.coffee | define (require) ->
Backbone = require('backbone')
settings = require('settings')
router = require('router')
AUTHORING = "#{location.protocol}//#{settings.cnxauthoring.host}:#{settings.cnxauthoring.port}"
return class RoleAcceptance extends Backbone.Model
id = window.location.pathname.match(/\/[^\/]+$/)... | define (require) ->
Backbone = require('backbone')
settings = require('settings')
router = require('router')
AUTHORING = "#{location.protocol}//#{settings.cnxauthoring.host}:#{settings.cnxauthoring.port}"
return class RoleAcceptance extends Backbone.Model
id = window.location.pathname.match(/\/[^\/]+$/)... | Send cookie info on role updates | Send cookie info on role updates
| CoffeeScript | agpl-3.0 | dak/webview,katalysteducation/webview,Connexions/webview,dak/webview,dak/webview,Connexions/webview,Connexions/webview,Connexions/webview,katalysteducation/webview,katalysteducation/webview,katalysteducation/webview |
f477b519870afbeea18624024ef9cf91c448dc96 | lib/minimap-selection.coffee | lib/minimap-selection.coffee | MinimapSelectionView = require './minimap-selection-view'
module.exports =
active: false
views: {}
activate: (state) ->
try
atom.packages.activatePackage('minimap').then (minimapPackage) =>
@minimap = require minimapPackage.path
return @deactivate() unless @minimap.versionMatch('3.x')... | MinimapSelectionView = require './minimap-selection-view'
module.exports =
active: false
views: {}
activate: (state) ->
try
atom.packages.activatePackage('minimap').then (minimapPackage) =>
@minimap = require minimapPackage.path
return @deactivate() unless @minimap.versionMatch('3.x')... | Fix use of deprecated minimap API | :bug: Fix use of deprecated minimap API
| CoffeeScript | mit | atom-minimap/minimap-selection |
9938aa5814a11e5d6d0d6ed99569914916227598 | ngtuvok/src/app/blog/blog.service.coffee | ngtuvok/src/app/blog/blog.service.coffee | angular.module 'ngtuvok'
.factory "BlogService", (DataFactory) ->
# $resource '/api/posts'
posts = DataFactory.query ->
console.log posts
return
getLastPost: ->
# return $resource.query ->
return posts
| angular.module 'ngtuvok'
.factory "BlogService", (DataFactory) ->
# $resource '/api/posts'
posts = DataFactory.query ->
# console.log posts
return
getLastPost: ->
# return $resource.query ->
return posts
getPostById: (id) ->
post = DataFactory.get({ id: id }, ->
... | Add methods to get posts | Add methods to get posts
| CoffeeScript | mit | TuvokVersatileKolinahr/website,TuvokVersatileKolinahr/website |
d773bdb2f5d4e4566467431738b2093f74f8a767 | app/assets/javascripts/neighborly/projects/new.js.coffee | app/assets/javascripts/neighborly/projects/new.js.coffee | Neighborly.Projects = {} if Neighborly.Projects is undefined
Neighborly.Projects.New =
init: Backbone.View.extend
el: '.new-project-page'
initialize: ->
_.bindAll(this, 'changeCategoryImage')
this.$('#project_category_id').change this.changeCategoryImage
changeCategoryImage: (event)->
... | Neighborly.Projects ?= {}
Neighborly.Channels ?= {}
Neighborly.Channels.Projects ?= {}
Neighborly.Channels.Projects.New =
modules: -> [Neighborly.Projects.New]
Neighborly.Projects.New =
init: Backbone.View.extend
el: '.new-project-page'
initialize: ->
_.bindAll(this, 'changeCategoryImage')
th... | Make the javascript for new project work on channel new project | Make the javascript for new project work on channel new project
| CoffeeScript | mit | raksonibs/raimcrowd,raksonibs/raimcrowd,jinutm/silverme,jinutm/silverprod,jinutm/silveralms.com,jinutm/silverme,jinutm/silverprod,raksonibs/raimcrowd,jinutm/silverpro,jinutm/silverme,rockkhuya/taydantay,MicroPasts/micropasts-crowdfunding,jinutm/silveralms.com,jinutm/silvfinal,MicroPasts/micropasts-crowdfunding,gustavog... |
6690a7c317b8e770e5514716b0f3f094600cb671 | src/app/config/vendor-dependencies/vendor-dependencies.coffee | src/app/config/vendor-dependencies/vendor-dependencies.coffee | #
# Use this module to define all third-party dependencies
# that are used in Doubtfire
#
angular.module('doubtfire.config.vendor-dependencies', [
# ng*
'ngCookies'
'ngCsv'
'ngSanitize'
# templates
'templates-app'
'templates-common'
# ui.*
'ui.router'
'ui.bootstrap'
'ui.codemirror'
# other li... | #
# Use this module to define all third-party dependencies
# that are used in Doubtfire
#
angular.module('doubtfire.config.vendor-dependencies', [
# ng*
'ngCookies'
'ngCsv'
'ngSanitize'
# templates
'templates-app'
# ui.*
'ui.router'
'ui.bootstrap'
'ui.codemirror'
# other libraries
'angularFil... | Remove import of empty templates-common.js | QUALITY: Remove import of empty templates-common.js
| CoffeeScript | agpl-3.0 | doubtfire-lms/doubtfire-web,doubtfire-lms/doubtfire-web,doubtfire-lms/doubtfire-web,doubtfire-lms/doubtfire-web |
6aa68ec594bec30c27515a795f7e2769e70e5054 | app/assets/javascripts/components/revisions/revision_list.cjsx | app/assets/javascripts/components/revisions/revision_list.cjsx | React = require 'react/addons'
Editable = require '../high_order/editable'
List = require '../common/list'
Revision = require './revision'
RevisionStore = require '../../stores/revision_store'
ServerActions = require '../../actions/server_actions'
getState = ->
rev... | React = require 'react/addons'
Editable = require '../high_order/editable'
List = require '../common/list'
Revision = require './revision'
RevisionStore = require '../../stores/revision_store'
ServerActions = require '../../actions/server_actions'
getState = ->
rev... | Fix message keys in RevisionList | Fix message keys in RevisionList
Resolves #471
| CoffeeScript | mit | Wowu/WikiEduDashboard,alpha721/WikiEduDashboard,majakomel/WikiEduDashboard,sejalkhatri/WikiEduDashboard,WikiEducationFoundation/WikiEduDashboard,MusikAnimal/WikiEduDashboard,majakomel/WikiEduDashboard,WikiEducationFoundation/WikiEduDashboard,adamwight/WikiEduDashboard,majakomel/WikiEduDashboard,MusikAnimal/WikiEduDashb... |
66f124ecb892c531adb1c5b97c202fd9790d0bf7 | src/utilities/set_drag_image.coffee | src/utilities/set_drag_image.coffee | module.exports = (e, dataTransfer, iconAndSize) ->
image = iconAndSize[0]
if image instanceof Image && !image.complete
# Early exit; not loaded image will not work and more importantly it craches Safari 6
return
if dataTransfer.setDragImage
if image instanceof HTMLElement
# Chrome hack; positio... | module.exports = (e, dataTransfer, iconAndSize) ->
image = iconAndSize[0]
if image instanceof Image && !image.complete
# Early exit; not loaded image will not work and more importantly it craches Safari 6
return
if dataTransfer.setDragImage
if image instanceof HTMLElement
# Chrome hack; positio... | Update chrome hack to use position: fixed | Update chrome hack to use position: fixed
For reasons unknown, we were experiencing UI bugginess with the drag image
after updating jQuery.
Chaging the position to fixed instead of absolute fixed the problem.
| CoffeeScript | mit | flowapp/droppable.js |
aaf14a1d04cd93265e5ffa5d2ef777d483e5bba2 | lib/grammar-utils/operating-system.coffee | lib/grammar-utils/operating-system.coffee | # Public: GrammarUtils.OperatingSystem - a module which exposes different
# platform related helper functions.
module.exports =
isDarwin: ->
@platform() is 'darwin'
isWindows: ->
@platform() is 'win32'
isLinux: ->
@platform() is 'linux'
platform: ->
process.platform
| # Public: GrammarUtils.OperatingSystem - a module which exposes different
# platform related helper functions.
module.exports =
isDarwin: ->
@platform() is 'darwin'
isWindows: ->
@platform() is 'win32'
isLinux: ->
@platform() is 'linux'
platform: ->
process.platform
release: ->
proce... | Enable the reading of the OS release number | Enable the reading of the OS release number | CoffeeScript | mit | idleberg/atom-script,fscherwi/atom-script,rgbkrk/atom-script |
92b19f89d97ab6c7be95263cbb258229c96d9670 | spec/modules-spec.coffee | spec/modules-spec.coffee | assert = require 'assert'
fs = require 'fs'
path = require 'path'
describe 'third-party module', ->
fixtures = path.join __dirname, 'fixtures'
xdescribe 'unzip', ->
unzip = require 'unzip'
it 'fires close event', (done) ->
fs.createReadStream(path.join(fixtures, 'zip', 'a.zip'))
.pipe... | assert = require 'assert'
fs = require 'fs'
path = require 'path'
describe 'third-party module', ->
fixtures = path.join __dirname, 'fixtures'
describe 'runas', ->
it 'can be required in renderer', ->
require 'runas'
it 'can be required in node binary', (done) ->
runas = path.join fixtu... | Remove the unzip spec completely. | Remove the unzip spec completely.
| CoffeeScript | mit | simongregory/electron,jonatasfreitasv/electron,setzer777/electron,biblerule/UMCTelnetHub,edulan/electron,adamjgray/electron,kazupon/electron,nicobot/electron,abhishekgahlot/electron,arusakov/electron,greyhwndz/electron,minggo/electron,mattdesl/electron,medixdev/electron,mattdesl/electron,Faiz7412/electron,rsvip/electro... |
316369c44da5e943cc1edc16d393a2e5594b23e8 | src/components/learning-guide/chapter-section-type.coffee | src/components/learning-guide/chapter-section-type.coffee | React = require 'react'
module.exports = React.PropTypes.shape(
title: React.PropTypes.string
children: React.PropTypes.array
chapter_section: React.PropTypes.array
current_level: React.PropTypes.number
questions_answered_count: React.PropTypes.number
)
| React = require 'react'
module.exports = React.PropTypes.shape(
title: React.PropTypes.string
children: React.PropTypes.array
chapter_section: React.PropTypes.array
clue: React.PropTypes.object
questions_answered_count: React.PropTypes.number
)
| Add clue parameter to validation | Add clue parameter to validation
| CoffeeScript | agpl-3.0 | openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js |
da40e416ab6d2385cd3c388e917e4c5a68237ded | Daily_Apple/da.coffee | Daily_Apple/da.coffee | class Article
constructor: ->
set_title: (@title) ->
set_content: (@content) ->
set_date: (@date) ->
set_section: (@section) ->
parse: (html) ->
page = $(html)
@set_title page.find("#articleContent h1").text()
raw_content = page.find("#masterContent .ArticleContent_Inner")
... | class Article
constructor: ->
set_title: (@title) ->
set_content: (@content) ->
set_date: (@date) ->
set_section: (@section) ->
parse: (html) ->
page = $(html)
@set_title page.find("#articleContent h1").text()
raw_content = page.find("#masterContent .ArticleContent_Inner")
... | Insert subtitle to the content | Insert subtitle to the content
Signed-off-by: Lincoln Lee <46f1a0bd5592a2f9244ca321b129902a06b53e03@lincoln.hk>
| CoffeeScript | mit | linc01n/Daily-Apple |
3e7c07d96806db132643c9fe06bcc052b0d088ea | app/assets/javascripts/kiitos/messages_dashboard.js.coffee | app/assets/javascripts/kiitos/messages_dashboard.js.coffee | $(document).ready ->
$('#messages-kiitos li').on 'click', (event) ->
event.preventDefault()
id = $(@).data('id')
$.get "messages/#{id}" | $(document).ready ->
$('#messages-kiitos .list-group li').on 'click', (event) ->
event.preventDefault()
id = $(@).data('id')
$.get "messages/#{id}" | Implement 'recent' link on messages section | Implement 'recent' link on messages section
| CoffeeScript | mit | crowdint/kiitos,crowdint/kiitos |
85dd503b5353a51733388a654bf18d17971e18cc | src/app/Objects/StrictObject.coffee | src/app/Objects/StrictObject.coffee | #<< AppEngine/Helpers/Helpers
class StrictObject extends Backbone.Events
@expectedParameters: []
@applyParameters: []
@isAbstract: -> @ == StrictObject
constructor: (conf) ->
#check that this is not an abstract class
if @__proto__.constructor.isAbstract()
throw new Error "Unable to create instan... | #<< AppEngine/Helpers/Helpers
class StrictObject extends Backbone.Events
@expectedParameters: []
@applyParameters: []
@isAbstract: -> @ == StrictObject
constructor: (conf) ->
#check that this is not an abstract class
if @__proto__.constructor.isAbstract()
throw new Error "Unable to create instan... | Fix parameter asserting when the options passed through are undefined | Fix parameter asserting when the options passed through are undefined
| CoffeeScript | mit | jono-tt/App-Engine |
584e7b7859651288cdea9f00cfae98f2e0ca47be | menus/sort-lines.cson | menus/sort-lines.cson | 'menu': [
{
'label': 'Edit'
'submenu': [
'label': 'Lines'
'submenu': [
{ 'label': 'Sort', 'command': 'sort-lines:sort' }
{ 'label': 'Reverse Sort', 'command': 'sort-lines:reverse-sort' }
{ 'label': 'Unique', 'command': 'sort-lines:unique' }
{ 'label': 'Case-insensit... | 'menu': [
{
'label': 'Edit'
'submenu': [
'label': 'Lines'
'submenu': [
{ 'label': 'Sort', 'command': 'sort-lines:sort' }
{ 'label': 'Reverse Sort', 'command': 'sort-lines:reverse-sort' }
{ 'label': 'Unique', 'command': 'sort-lines:unique' }
{ 'label': 'Sort (Case In... | Tweak menu label for case insensitive sort | Tweak menu label for case insensitive sort
| CoffeeScript | mit | atom/sort-lines,garethbjohnson/sort-css |
13ffde3552b2321af9402e31664de7195d44e325 | text-fade-in-demo.js.coffee | text-fade-in-demo.js.coffee | $(document).ready ->
assert = (condition) -> throw 'Assertion failed' unless condition
contents = """
#################################################################
#################################################################
#################################################################
#####... | $(document).ready ->
assert = (condition) -> throw 'Assertion failed' unless condition
contents = """
#################################################################
#################################################################
#################################################################
#####... | Decrease threads number in order to show threads working | Decrease threads number in order to show threads working
| CoffeeScript | mit | mdesantis/jquery-textfade,mdesantis/jquery-textfade |
36021edafc9dc51d19f93ef0759a31ec72d5425d | test/src/trix/text_view_test.coffee | test/src/trix/text_view_test.coffee | #= require trix/views/text_view
#= require fixtures
module "Trix.TextView"
test "#createElementsForText", ->
text = fixture("plain")
elements = getElementsForText(text)
equal elements.length, 1, "one element for plain string"
el = elements[0]
equal el.tagName.toLowerCase(), "span", "container element is a... | #= require trix/views/text_view
#= require fixtures
module "Trix.TextView"
test "#createElementsForText", ->
text = fixture("plain")
elements = getElementsForText(text)
equal elements.length, 1, "one element for plain string"
el = elements[0]
equal el.tagName.toLowerCase(), "span", "container element is a... | Load fixture instead of relying on exitisting var | Load fixture instead of relying on exitisting var
| CoffeeScript | mit | basecamp/trix,GabiGrin/trix,urossmolnik/trix,basecamp/trix,GabiGrin/trix,basecamp/trix,urossmolnik/trix,ChenMichael/trix,ChenMichael/trix,GabiGrin/trix,urossmolnik/trix,basecamp/trix,ChenMichael/trix |
e76823a133ae10332b353c92ef1e7a8af78fb7f2 | atom.cson | atom.cson | '*':
'editor':
'fontFamily': 'Fira Mono OT'
'showIndentGuide': true
'tabLength': 4
'softWrap': true
'invisibles': {}
'zoomFontWhenCtrlScrolling': false
'core':
'disabledPackages': [
'language-objective-c'
'archive-view'
'autosave'
'bookmarks'
'language-cloju... | '*':
'editor':
'fontFamily': 'Fira Mono OT'
'showIndentGuide': true
'tabLength': 4
'softWrap': true
'invisibles': {}
'zoomFontWhenCtrlScrolling': false
'core':
'disabledPackages': [
'language-objective-c'
'archive-view'
'autosave'
'bookmarks'
'language-cloju... | Change tab size for Ruby, Coffee and Sass | Change tab size for Ruby, Coffee and Sass
| CoffeeScript | mit | ai/environment,ai/environment |
89bdb2cd13608ec82846d0e7b10f12e2ed176c18 | app/assets/javascripts/application.js.coffee | app/assets/javascripts/application.js.coffee | # This is a manifest file that'll be compiled into application.js, which will include all the files
# listed below.
#
# Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
# or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
#
... | # This is a manifest file that'll be compiled into application.js, which will include all the files
# listed below.
#
# Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
# or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
#
... | Add jQuery notify back in | Add jQuery notify back in
| CoffeeScript | mit | Shopify/shipit-engine,ershad/shipit-engine,ershad/shipit-engine,perobertson/shipit-engine,Shopify/shipit-engine,perobertson/shipit-engine,Shopify/shipit-engine,perobertson/shipit-engine,Shopify/shipit-engine,Shopify/shipit-engine,ershad/shipit-engine,perobertson/shipit-engine,perobertson/shipit-engine,ershad/shipit-eng... |
03b462187e78fb4d34d721f91708abd40b5d29c3 | server/methods/setAvatarFromService.coffee | server/methods/setAvatarFromService.coffee | Meteor.methods
setAvatarFromService: (dataURI, service) ->
if not Meteor.userId()
throw new Meteor.Error 203, '[methods] typingStatus -> Usuário não logado'
user = Meteor.user()
{image, contentType} = RocketFile.dataURIParse dataURI
rs = RocketFile.bufferToStream new Buffer(image, 'base64')
ws = Rocket... | Meteor.methods
setAvatarFromService: (dataURI, service) ->
if not Meteor.userId()
throw new Meteor.Error 203, '[methods] typingStatus -> Usuário não logado'
user = Meteor.user()
{image, contentType} = RocketFile.dataURIParse dataURI
rs = RocketFile.bufferToStream new Buffer(image, 'base64')
ws = Rocket... | Change method 'resetAvatar' to use RocketFile | Change method 'resetAvatar' to use RocketFile
| CoffeeScript | mit | umeshrs/rocket-chat,mhurwi/Rocket.Chat,capensisma/Rocket.Chat,karlprieb/Rocket.Chat,gitaboard/Rocket.Chat,psadaic/Rocket.Chat,christmo/Rocket.Chat,atyenoria/Rocket.Chat,lonbaker/Rocket.Chat,wicked539/Rocket.Chat,xasx/Rocket.Chat,psadaic/Rocket.Chat,j-ew-s/Rocket.Chat,jonathanhartman/Rocket.Chat,JisuPark/Rocket.Chat,abd... |
fb2e9898592e5ceb3be5915ffadb5c7b79365c25 | app/assets/javascripts/videos/destroy.js.coffee | app/assets/javascripts/videos/destroy.js.coffee | $ ->
$.rails.allowAction = (element) ->
message = element.data('confirm')
fire = $.rails.fire
if message and fire(element, 'confirm')
title = if $(document.body).hasClass('videos') then 'Delete this video' else 'Delete your account'
dialog = new Dialog(title, message, confirmLabel: '<i class="... | $ ->
$.rails.allowAction = (element) ->
message = element.data('confirm')
fire = $.rails.fire
if message and fire(element, 'confirm')
title = if $(document.body).hasClass('videos') then 'Delete this video' else 'Delete your account'
dialog = new Dialog(title, message, confirmLabel: '<i class="... | Destroy confirm dialog when user has confirmed | Destroy confirm dialog when user has confirmed
| CoffeeScript | mit | BrettBukowski/CatchLater,BrettBukowski/CatchLater,BrettBukowski/CatchLater |
83f5c2019d63a6666d97039284f9fc0edf00ab89 | lib/load-paths-task.coffee | lib/load-paths-task.coffee | _ = require 'underscore'
BufferedProcess = require 'buffered-process'
$ = require 'jquery'
module.exports =
class LoadPathsTask
constructor: (@callback) ->
start: ->
rootPath = project.getPath()
ignoredNames = config.get('fuzzyFinder.ignoredNames') ? []
ignoredNames = ignoredNames.concat(config.get('c... | _ = require 'underscore'
BufferedProcess = require 'buffered-process'
$ = require 'jquery'
module.exports =
class LoadPathsTask
constructor: (@callback) ->
start: ->
rootPath = project.getPath()
ignoredNames = config.get('fuzzyFinder.ignoredNames') ? []
ignoredNames = ignoredNames.concat(config.get('c... | Use splat instead of apply | Use splat instead of apply
| CoffeeScript | mit | toshi-saito/fuzzy-finder,atom/fuzzy-finder,pombredanne/fuzzy-finder,nielsAD/fuzzy-finder,segiddins/fuzzy-finder,pombredanne/fuzzy-finder,Spy-Seth/fuzzy-finder,viddo/fuzzy-finder,nielsAD/fuzzy-finder,gvanderest/fuzzy-finder,viddo/fuzzy-finder,segiddins/fuzzy-finder,Spy-Seth/fuzzy-finder,gvanderest/fuzzy-finder,Kerruba/f... |
37a7cfaf9af9a825e823f713ac468dafe79d8cb5 | spec/panel-container-spec.coffee | spec/panel-container-spec.coffee | ViewRegistry = require '../src/view-registry'
Panel = require '../src/panel'
PanelContainer = require '../src/panel-container'
describe "PanelContainer", ->
[container] = []
class TestPanelItem
constructior: ->
beforeEach ->
viewRegistry = new ViewRegistry
container = new PanelContainer({viewRegist... | ViewRegistry = require '../src/view-registry'
Panel = require '../src/panel'
PanelContainer = require '../src/panel-container'
describe "PanelContainer", ->
[container] = []
class TestPanelItem
constructior: ->
beforeEach ->
viewRegistry = new ViewRegistry
container = new PanelContainer({viewRegist... | Remove location junk from panel creation | Remove location junk from panel creation | CoffeeScript | mit | originye/atom,ilovezy/atom,pkdevbox/atom,darwin/atom,vhutheesing/atom,jacekkopecky/atom,CraZySacX/atom,FoldingText/atom,sillvan/atom,efatsi/atom,Jandersoft/atom,kc8wxm/atom,mnquintana/atom,tjkr/atom,Jandersolutions/atom,rookie125/atom,matthewclendening/atom,BogusCurry/atom,pkdevbox/atom,fedorov/atom,dsandstrom/atom,dec... |
8b3d615ac93c7ca18370addc022959cc5a82770f | source/core/attributes.coffee | source/core/attributes.coffee | ###
HTML Renderer
@namespace Atoms.Core
@class Attributes
@author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
###
"use strict"
Atoms.Core.Attributes =
###
Set the parent instance to current instance.
@method setParent
###
scaffold: ->
# Assign Parrent
@parent = {}
if @attributes?.paren... | ###
HTML Renderer
@namespace Atoms.Core
@class Attributes
@author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
###
"use strict"
Atoms.Core.Attributes =
###
Set the parent instance to current instance.
@method setParent
###
scaffold: ->
# Assign Parrent
@parent = {}
if @attributes?.paren... | Check available when creates a new instance | Check available when creates a new instance
| CoffeeScript | mit | tapquo/atoms |
fc44662ba3fab11aa373f4a6f991f7626d4c4b8d | spec/module-cache-spec.coffee | spec/module-cache-spec.coffee | path = require 'path'
Module = require 'module'
ModuleCache = require '../src/module-cache'
describe 'ModuleCache', ->
beforeEach ->
spyOn(Module, '_findPath').andCallThrough()
it 'resolves atom shell module paths without hitting the filesystem', ->
require.resolve('shell')
expect(Module._findPath.cal... | path = require 'path'
Module = require 'module'
fs = require 'fs-plus'
temp = require 'temp'
ModuleCache = require '../src/module-cache'
describe 'ModuleCache', ->
beforeEach ->
spyOn(Module, '_findPath').andCallThrough()
it 'resolves atom shell module paths without hitting the filesystem', ->
require.res... | Add spec for resolving compatible module paths | Add spec for resolving compatible module paths
| CoffeeScript | mit | Huaraz2/atom,tisu2tisu/atom,oggy/atom,Jonekee/atom,qiujuer/atom,kittens/atom,kaicataldo/atom,rjattrill/atom,isghe/atom,Andrey-Pavlov/atom,boomwaiza/atom,einarmagnus/atom,sebmck/atom,vcarrera/atom,elkingtonmcb/atom,GHackAnonymous/atom,mostafaeweda/atom,dsandstrom/atom,jordanbtucker/atom,vinodpanicker/atom,johnhaley81/at... |
273832122c80c13bff399242f9139067ca518ef5 | docpad.coffee | docpad.coffee | # Define the Configuration
docpadConfig = {
templateData:
site:
title: "Dorian Patterson"
getPreparedTitle: -> if @document.title then "#{@document.title} | #{@site.title}" else @site.title
}
# Export the Configuration
module.exports = docpadConfig
| # Define the Configuration
docpadConfig = {
templateData:
site:
title: "Curly Hair Coder"
getPreparedTitle: -> if @document.title then "#{@document.title} | #{@site.title}" else @site.title
collections:
pages: ->
@getCollection("html").findAllLive({isPage:true})
}
# Export the Configuration
module.... | Change site title and add collection function. | Change site title and add collection function.
| CoffeeScript | mit | imaginationac/imaginationac.github.com |
fa36ab1a5ce265829649554807b6b44ec8aed491 | exports/atom.coffee | exports/atom.coffee | {Document, Point, Range, Site} = require 'telepath'
_ = require 'underscore-plus'
module.exports =
_: _
BufferedNodeProcess: require '../src/buffered-node-process'
BufferedProcess: require '../src/buffered-process'
Directory: require '../src/directory'
Document: Document
File: require '../src/file'
fs: r... | {Document, Point, Range, Site} = require 'telepath'
_ = require 'underscore-plus'
module.exports =
_: _
apm: require 'atom-package-manager'
BufferedNodeProcess: require '../src/buffered-node-process'
BufferedProcess: require '../src/buffered-process'
Directory: require '../src/directory'
Document: Document... | Add apm to public API | Add apm to public API
| CoffeeScript | mit | abcP9110/atom,brumm/atom,svanharmelen/atom,scv119/atom,me6iaton/atom,bj7/atom,fredericksilva/atom,sxgao3001/atom,ezeoleaf/atom,nrodriguez13/atom,wiggzz/atom,liuderchi/atom,Jandersoft/atom,transcranial/atom,johnhaley81/atom,n-riesco/atom,john-kelly/atom,Arcanemagus/atom,woss/atom,matthewclendening/atom,Ingramz/atom,hhar... |
1fc1a437e9af63cdd4f3b0012797d3ffab45fecd | app/assets/javascripts/emoji.js.coffee | app/assets/javascripts/emoji.js.coffee | $ ->
$(".js-emoji").each ->
$(@).html(emojione.toImage($(@).text()))
| window.emojify = ->
$(".js-emoji").each ->
$(@).html(emojione.toImage($(@).text()))
$ -> emojify()
| Make an emojify global function | Make an emojify global function | CoffeeScript | mit | tegon/24pullrequests,vyorkin-forks/24pullrequests,24pullrequests/24pullrequests,jasnow/24pullrequests,wadtech/24pullrequests,24pullrequests/24pullrequests,24pullrequests/24pullrequests,arumoy-shome/24pullrequests,tarebyte/24pullrequests,arumoy-shome/24pullrequests,jasnow/24pullrequests5,vyorkin-forks/24pullrequests,pim... |
c3ebd313ab72ee35fd9f9f086e9a88b0128da8ba | coffee/lib/callback-data-source.coffee | coffee/lib/callback-data-source.coffee | class CallbackDataSource extends DataSource
constructor: (form_field, source) ->
super(form_field, source)
@results = {}
search: (chosen, response_cb) ->
ds = this
# Call @source function, setting this to the chosen object
# @param request
# @param response_cb
@source.call chosen, ... | class CallbackDataSource extends DataSource
constructor: (form_field, source) ->
super(form_field, source)
@results = {}
search: (chosen, response_cb) ->
ds = this
# Call @source function, setting this to the chosen object
# @param request
# @param response_cb
@source.call chosen, ... | Fix issue where item.text is not defined as expected | Fix issue where item.text is not defined as expected
| CoffeeScript | mit | bryankaplan/chosen,bryankaplan/chosen |
1b3dafc39d147b3491f358db80d435a7ff608c75 | core/app/backbone/views/tour/tour_users_list_view.coffee | core/app/backbone/views/tour/tour_users_list_view.coffee | class TourUserView extends ActionButtonView
template: 'tour/interesting_user'
className: 'tour-interesting-user'
templateHelpers: =>
disabled_label: Factlink.Global.t.follow_user.capitalize()
disable_label: Factlink.Global.t.unfollow.capitalize()
enabled_label: Factlink.Global.t.following.capitalize... | class TourUserView extends ActionButtonView
template: 'tour/interesting_user'
className: 'tour-interesting-user'
templateHelpers: =>
disabled_label: Factlink.Global.t.follow_user.capitalize()
disable_label: Factlink.Global.t.unfollow.capitalize()
enabled_label: Factlink.Global.t.following.capitalize... | Fix button interaction logic: disable hoverstate on click. | Fix button interaction logic: disable hoverstate on click.
| CoffeeScript | mit | daukantas/factlink-core,daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core |
d2893bec1bbd34fa325d8a1c5b50e9bf7699cc9e | frontend/app/scripts/Router.coffee | frontend/app/scripts/Router.coffee | define [
"backbone"
"sp-utils-middleware"
"common"
"view/page"
"view/modal"
],(
Backbone
Middleware
common
Page
Modal
)->
showPage=(View,options={},callback)->
common.app.content.show View, options, callback
class MiddlewareRouter extends Middleware
auth:(async,args)->
async.reso... | define [
"backbone"
"sp-utils-middleware"
"common"
"view/page"
"view/modal"
],(
Backbone
Middleware
common
Page
Modal
)->
showPage=(View,options={},callback)->
common.app.content.show View, options, callback
class MiddlewareRouter extends Middleware
auth:(async,args)->
async.reso... | Fix add room route work | Fix add room route work
| CoffeeScript | mit | jukebuzz/jb-backend,jukebuzz/jb-backend,jukebuzz/jb-frontend |
ffe5ca2cd9532fc1e8be45eb2c3f5da02b5e7553 | findaconf/blueprints/site/coffeescript/init.coffee | findaconf/blueprints/site/coffeescript/init.coffee | $(document).ready ->
$('#query').autocompleter {
source: '/autocomplete/keywords',
offset: 'results',
highlightMatches: true
}
$('#location').autocompleter {
source: '/autocomplete/places',
offset: 'results',
minLength: 4,
highlightMatches: true
}
$('#flash a.close').click(sweet... | $(document).ready ->
$('#query').autocompleter {
source: '/autocomplete/keywords',
offset: 'results',
highlightMatches: true
}
$('#location').autocompleter {
source: '/autocomplete/places',
offset: 'results',
minLength: 4,
highlightMatches: true
}
$('#flash a.close').click(sweet... | Fix flash message dismiss bug | Fix flash message dismiss bug | CoffeeScript | mit | koorukuroo/findaconf,cuducos/findaconf,koorukuroo/findaconf,cuducos/findaconf,cuducos/findaconf,koorukuroo/findaconf |
0f1b5a1388704b9a0b6546319aba27be52ab3e73 | lib/views/cherry-pick-select-branch-view.coffee | lib/views/cherry-pick-select-branch-view.coffee | {$$, BufferedProcess, SelectListView} = require 'atom'
git = require '../git'
StatusView = require './status-view'
CherryPickSelectCommits = require './cherry-pick-select-commits-view'
module.exports =
class CherryPickSelectBranch extends SelectListView
initialize: (items, @currentHead) ->
super
@addClass ... | {BufferedProcess} = require 'atom'
{$$, SelectListView} = require 'atom-space-pen-views'
git = require '../git'
StatusView = require './status-view'
CherryPickSelectCommits = require './cherry-pick-select-commits-view'
module.exports =
class CherryPickSelectBranch extends SelectListView
initialize: (items, @curren... | Upgrade cherry pick select branch | Upgrade cherry pick select branch
| CoffeeScript | mit | akonwi/git-plus,akonwi/git-plus |
8db29fbd3673f96a34d2d8ca1a42f336169a4065 | client/Workspace/panes/terminalpane.coffee | client/Workspace/panes/terminalpane.coffee | class TerminalPane extends Pane
constructor: (options = {}, data) ->
options.cssClass = "terminal-pane terminal"
options.delay ?= 0
super options, data
@createWebTermView()
@webterm.on "WebTermConnected", (@remote) =>
@emit "WebtermCreated"
@onWebTermConnected()
createWebTer... | class TerminalPane extends Pane
constructor: (options = {}, data) ->
options.cssClass = "terminal-pane terminal"
options.delay ?= 0
super options, data
@createWebTermView()
createWebTermView: ->
KD.singletons.vmController.fetchDefaultVm (err, vm)=>
@webterm = new WebTe... | Fix TerminalPane until we support for multiple vms | Fix TerminalPane until we support for multiple vms
| CoffeeScript | agpl-3.0 | kwagdy/koding-1,rjeczalik/koding,kwagdy/koding-1,drewsetski/koding,mertaytore/koding,alex-ionochkin/koding,alex-ionochkin/koding,alex-ionochkin/koding,jack89129/koding,szkl/koding,acbodine/koding,usirin/koding,cihangir/koding,jack89129/koding,alex-ionochkin/koding,cihangir/koding,acbodine/koding,alex-ionochkin/koding,k... |
8919292702bb181b635d231034c27988a9473866 | app/assets/javascripts/rglossa/react/components/app.jsx.coffee | app/assets/javascripts/rglossa/react/components/app.jsx.coffee | #= require ./top/navbar
#= require ./centre/main_area
###* @jsx React.DOM ###
window.App = React.createClass
render: ->
`<span>
<Navbar/>
<MainArea/>
</span>`
| #= require ../store
#= require ../statechart
#= require ./top/navbar
#= require ./centre/main_area
###* @jsx React.DOM ###
models = [
'corpora'
]
states =
start: {}
results: {}
window.App = React.createClass
getInitialState: ->
store: new Store(models, (store) => @setState(store: store))
statechart:... | Add store and statechart to the App component | Add store and statechart to the App component
| CoffeeScript | mit | textlab/glossa,textlab/rglossa,textlab/glossa,textlab/rglossa,textlab/glossa,textlab/rglossa,textlab/glossa,textlab/glossa,textlab/rglossa,textlab/rglossa |
a0492d43c5dba469bcbdfabdbb78cfae42fab620 | lib/main.coffee | lib/main.coffee | SpellCheckView = null
module.exports =
config:
grammars:
type: 'array'
default: [
'source.asciidoc'
'source.gfm'
'text.git-commit'
'text.plain'
'text.plain.null-grammar'
]
activate: ->
@disposable = atom.workspace.observeTextEditors(addViewToEditor... | SpellCheckView = null
module.exports =
config:
grammars:
type: 'array'
default: [
'source.asciidoc'
'source.gfm'
'text.git-commit'
'text.plain'
'text.plain.null-grammar'
]
description: 'List of scopes for languages which will be checked for misspell... | Add description for config setting | Add description for config setting
| CoffeeScript | mit | atom/spell-check |
3ab6df0abe49ac02923112a1f595a231638e1b73 | client/landing/app/MainApp/VirtualizationController.coffee | client/landing/app/MainApp/VirtualizationController.coffee | class VirtualizationController extends KDController
constructor:->
super
@kc = KD.singletons.kiteController
@lastState =
state : 'STOPPED'
run:(command, callback, emitStateChanged=yes)->
@kc.run
kiteName : 'os'
method : command
, @_cbWrapper callback, emitStateChanged
... | class VirtualizationController extends KDController
constructor:->
super
@kc = KD.singletons.kiteController
@lastState =
state : 'STOPPED'
run:(command, callback, emitStateChanged=yes)->
@kc.run
kiteName : 'os'
method : command
, @_cbWrapper callback, emitStateChanged
... | Add askToTurnOn helper method to turn VM on globally | Add askToTurnOn helper method to turn VM on globally
| CoffeeScript | agpl-3.0 | gokmen/koding,kwagdy/koding-1,sinan/koding,cihangir/koding,andrewjcasal/koding,szkl/koding,cihangir/koding,kwagdy/koding-1,mertaytore/koding,szkl/koding,alex-ionochkin/koding,sinan/koding,jack89129/koding,alex-ionochkin/koding,usirin/koding,rjeczalik/koding,mertaytore/koding,drewsetski/koding,alex-ionochkin/koding,andr... |
b595cd2b54d0df4270bf948c9266476b9f8b16fa | client/source/views/users/edit.coffee | client/source/views/users/edit.coffee | _ = require 'underscore'
View = require 'lib/view'
tpl = require 'templates/users/edit'
mediator = require('chaplin').mediator
module.exports = class EditUserView extends View
template: tpl
autoRender: yes
events:
'submit form': 'submitForm'
'click [href="#remove"]': 'clickRemove'
getTemplateData: ... | _ = require 'underscore'
View = require 'lib/view'
tpl = require 'templates/users/edit'
mediator = require('chaplin').mediator
module.exports = class EditUserView extends View
template: tpl
autoRender: yes
events:
'submit form': 'submitForm'
'click [href="#remove"]': 'clickRemove'
getTemplateData: ... | Add confirm to user delete | Add confirm to user delete
| CoffeeScript | agpl-3.0 | edolyne/buckets,dut3062796s/buckets,edolyne/hive,artelse/buckets,mamute/buckets,dut3062796s/buckets,asm-products/buckets,mikesmithmsm/buckets,asm-products/buckets,artelse/buckets,mikesmithmsm/buckets,edolyne/hive,bucketsio/buckets,bucketsio/buckets,edolyne/buckets,nishant8BITS/buckets,mamute/buckets,nishant8BITS/bucket... |
b7a34b6178f06030604479590b2e226da85b5912 | lib/langs/sql-beautify.coffee | lib/langs/sql-beautify.coffee | ###
Requires https://github.com/andialbrecht/sqlparse
###
getCmd = (inputPath, outputPath, options) ->
path = options.sqlformat_path
optionsStr = " --indent_width={0} --keywords={1} --identifiers={2} --reindent"
optionsStr = optionsStr.replace("{0}", options.indent_size)
.replace("{1}", opt... | ###
Requires https://github.com/andialbrecht/sqlparse
###
getCmd = (inputPath, outputPath, options) ->
path = options.sqlformat_path
optionsStr = "--reindent"
if options.indent_size?
optionsStr += " --indent_width=#{options.indent_size}"
if options.keywords?
optionsStr += " --keywords=#{options.keyword... | Improve SQL Beautifier to support missing config options. | Improve SQL Beautifier to support missing config options.
Fixes #67.
| CoffeeScript | mit | danielbayley/atom-beautify,Asp1d/atom-beautify,basarat/atom-beautify,basarat/atom-beautify,prettydiff/atom-beautify,vingorius/atom-beautify,MeetMe/atom-beautify,fscherwi/atom-beautify,prettydiff/atom-beautify,MeetMe/atom-beautify,thedadams/atom-beautify,Asp1d/atom-beautify,biancarosa/atom-beautify,Asp1d/atom-beautify,T... |
64f8d6a3a30ab0c057bd698b43549dad93af65ea | tests/training1st_test.coffee | tests/training1st_test.coffee | Helper = require('hubot-test-helper')
chai = require 'chai'
expect = chai.expect
helper = new Helper('../scripts/hello.coffee')
describe 'Training 1', ->
beforeEach ->
@room = helper.createRoom()
afterEach ->
@room.destroy()
it 'start Training 1', ->
@room.user.say('miura', '@customer 三浦と申します。監視ソ... | Helper = require('hubot-test-helper')
chai = require 'chai'
expect = chai.expect
helper = new Helper('../scripts/training1st.coffee')
describe 'The 1st day of Training', ->
beforeEach ->
@room = helper.createRoom()
afterEach ->
@room.destroy()
it 'should reply greeting to trainee', ->
@room.user.... | Change description on tests of training. | Change description on tests of training.
| CoffeeScript | mit | simpline/TrainingBotCustomer |
1dea55d8f2c920721ef6b3ed94c9378115b5081c | libraries/metrics/http.coffee | libraries/metrics/http.coffee | os = require("os")
module.exports.monitor = (logger) ->
return (req, res, next) ->
Metrics = require("./metrics")
startTime = new Date()
end = res.end
res.end = () ->
end.apply(this, arguments)
responseTime = new Date() - startTime
routePath = req.route.path.toString().replace(/\//g, '_').replace(/\:... | os = require("os")
module.exports.monitor = (logger) ->
return (req, res, next) ->
Metrics = require("./metrics")
startTime = new Date()
end = res.end
res.end = () ->
end.apply(this, arguments)
responseTime = new Date() - startTime
if req.route?.path?
routePath = req.route.path.toString().replace... | Check that req.route.path is set | Check that req.route.path is set
| CoffeeScript | agpl-3.0 | sharelatex/sharelatex |
793230ba713e3e7e360870bf52a9651d7bbec6f1 | models/user_credential.coffee | models/user_credential.coffee | BaseModel = require './base'
crypto = require 'crypto'
uuid = require 'uuid'
_ = require 'underscore'
class UserCredential extends BaseModel
constructor: (options) ->
super options
@required = ['userid', 'secret']
if not @secret
@genSecret()
genSecret: () ->
sha = crypto.createHash 'sha256... | BaseModel = require './base'
crypto = require 'crypto'
uuid = require 'uuid'
_ = require 'underscore'
class UserCredential extends BaseModel
constructor: (options) ->
super options
@required = ['userid', 'secret', 'user_identifier']
if not @secret
@genSecret()
if not @user_identifier
@... | Add user_identifier to UserCredential Model | Add user_identifier to UserCredential Model
| CoffeeScript | bsd-3-clause | t3mpus/tempus-api |
28c3b412438689fb344cadda95e3b05f7e173068 | app/stores/subject-store.coffee | app/stores/subject-store.coffee | Reflux = require 'reflux'
{api} = require '../api/client'
classifierActions = require '../actions/classifier-actions'
workflowStore = require './workflow-store'
module.exports = Reflux.createStore
subjects: []
subject: null
init: ->
@listenTo workflowStore, @changeWorkflow
@listenTo classifierActions.mo... | Reflux = require 'reflux'
{api} = require '../api/client'
classifierActions = require '../actions/classifier-actions'
workflowStore = require './workflow-store'
module.exports = Reflux.createStore
subjects: []
subject: null
init: ->
@listenTo workflowStore, @changeWorkflow
@listenTo classifierActions.mo... | Switch to using new subject selection URL | Switch to using new subject selection URL
| CoffeeScript | apache-2.0 | zooniverse/wildcam-gorongosa,zooniverse/wildcam-gorongosa |
19f14b2c853557df33984eb0bb52a2e7bee7d996 | js-library/app/js/jail_iframe/util/create.coffee | js-library/app/js/jail_iframe/util/create.coffee | FactlinkJailRoot.createFactFromSelection = (current_user_opinion) ->
success = ->
FactlinkJailRoot.createButton.hide()
FactlinkJailRoot.off 'modalOpened', success
selInfo =
text: window.document.getSelection().toString()
title: window.document.title
text = selInfo.text
siteUrl = FactlinkJailRo... | FactlinkJailRoot.createFactFromSelection = (current_user_opinion) ->
success = ->
window.document.getSelection().removeAllRanges()
FactlinkJailRoot.createButton.hide()
FactlinkJailRoot.off 'modalOpened', success
selInfo =
text: window.document.getSelection().toString()
title: window.document.ti... | Remove selection when added a discussion | Remove selection when added a discussion
| 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 |
912394108f4000803c71396d13b83b1588a29d9e | app/assets/javascripts/application.js.coffee | app/assets/javascripts/application.js.coffee | #= require jquery
#= require bootstrap-fix
#= require jquery_ujs
#= require jquery-ui.js
#= require jquery.cookie
#= require jquery.titlealert
#= require jquery.mousewheel
#= require jquery.expanding
#= require jquery.iframe-transport
#= require simply-scroll
# require jquery.purr
#= require hamlcoffee
#= require date
... | #= require jquery
#= require bootstrap
#= require jquery_ujs
#= require jquery-ui.js
#= require jquery.cookie
#= require jquery.titlealert
#= require jquery.mousewheel
#= require jquery.expanding
#= require jquery.iframe-transport
#= require simply-scroll
# require jquery.purr
#= require hamlcoffee
#= require date
#= r... | Use actual bootstrap javascript, not some weird homebrew version? :3 | Use actual bootstrap javascript, not some weird homebrew version? :3
| CoffeeScript | mit | cloudsdaleapp/cloudsdale-web,cloudsdaleapp/cloudsdale-web,cloudsdaleapp/cloudsdale-web,cloudsdaleapp/cloudsdale-web |
82004b0d100b745e65180bf01444a9d9d7e0f851 | lib/assets/javascripts/bug_file_formatter.js.coffee | lib/assets/javascripts/bug_file_formatter.js.coffee | # Copyright 2013 Square Inc.
#
# 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 ... | # Copyright 2013 Square Inc.
#
# 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 ... | Fix bug list display issue | Fix bug list display issue
| CoffeeScript | apache-2.0 | SquareSquash/web,SquareSquash/web,powershop/SquareSquash-web,mojacc/web,mojacc/web,powershop/SquareSquash-web,powershop/SquareSquash-web,yonglehou/web-1,mojacc/web,yonglehou/web-1,SquareSquash/web,yonglehou/web-1,yonglehou/web-1,SquareSquash/web,mojacc/web,powershop/SquareSquash-web |
40a6adc69d66bd041a854628fe3d3e11900965e0 | dashboard_spec.coffee | dashboard_spec.coffee | #= require dashboard
#= require mock-ajax
describe "Dashboard - getData()", ->
beforeEach ->
jasmine.Ajax.useMock()
@dashboard = Dashboard
describe "when the report is ready on the first iteration", ->
it "should return the dashboard data", ->
that = this
@dashboard.getData 'lesson_leader... | #= require lib/dashboard_poller
#= require mock-ajax
describe "Dashboard - getData()", ->
beforeEach ->
jasmine.Ajax.useMock()
@dashboard = ttm.lib.DashboardPoller.build()
describe "when the report is ready on the first iteration", ->
it "should return the dashboard data", ->
that = this
... | Move the poller into the lib and mix it with the other classmixer stuffs. Update the test. | Move the poller into the lib and mix it with the other classmixer stuffs.
Update the test.
| CoffeeScript | mit | thinkthroughmath/ttm-coffeescript-utilities |
22e34474b5a2c995ac9e67de212719f28a88c98b | src/scripts/views/site-menu.coffee | src/scripts/views/site-menu.coffee | React = require 'react'
ReactRedux = require 'react-redux'
moment = require 'moment'
createFactory = require '../create-factory.coffee'
Elements = require '../elements.coffee'
selectors = require '../selectors/app-selectors.coffee'
userActions = require '../actions/user-actions.coffee'
URL = require '../url.coffee'
{... | React = require 'react'
ReactRedux = require 'react-redux'
moment = require 'moment'
createFactory = require '../create-factory.coffee'
Elements = require '../elements.coffee'
selectors = require '../selectors/app-selectors.coffee'
userActions = require '../actions/user-actions.coffee'
URL = require '../url.coffee'
{... | Remove duplicate user path from logout link. | Remove duplicate user path from logout link.
| CoffeeScript | mit | thirdhand/3rdhand.info,thirdhand/3rdhand.info |
47ec59650508fd1096e6a5d2a683ff363c5f9732 | core/app/backbone/components/time_ago.coffee | core/app/backbone/components/time_ago.coffee | window.TimeAgo = React.createClass
mixins: [SetIntervalMixin]
getInitialState: ->
now: Date.now()
componentDidMount: ->
@setInterval(@update_time, 1000)
update_time: ->
@setState now: Date.now()
seconds_lapsed: ->
(@state.now - Date.parse(@props.time)) / 1000
showNr: (nr, unit) ->
"... | window.TimeAgo = React.createClass
mixins: [SetIntervalMixin]
getInitialState: ->
now: Date.now()
componentDidMount: ->
@setInterval(@update_time, 1000)
update_time: ->
@setState now: Date.now()
seconds_lapsed: ->
(@state.now - Date.parse(@props.time)) / 1000
showNr: (nr, unit) ->
"... | Make a difference between minutes and months. They both used to have an "m" as indicator | Make a difference between minutes and months. They both used to have an "m" as indicator
| CoffeeScript | mit | Factlink/factlink-core,Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core,daukantas/factlink-core,daukantas/factlink-core |
d0e7e53b3931a1db1a469515e269e63f9fb5a3ae | test/blob.test.coffee | test/blob.test.coffee | should = require 'should'
fixtures = require './fixtures'
git = require '../src'
Blob = require '../src/blob'
describe "Blob", ->
describe "constructor", ->
repo = fixtures.branched
blob = new Blob repo, {name: "X", mode: "Y", id: "abc"}
it "assigns @name", ->
blob.name.should.eql "X"
... | should = require 'should'
fixtures = require './fixtures'
git = require '../src'
Blob = require '../src/blob'
describe "Blob", ->
describe "constructor", ->
repo = fixtures.branched
blob = new Blob repo, {name: "X", mode: "Y", id: "abc"}
it "assigns @name", ->
blob.name.should.eql "X"
... | Test fix: corrected use of should to assert typeof | Test fix: corrected use of should to assert typeof
| CoffeeScript | mit | gtanner/gift,notatestuser/gift,PeterDaveHello/gift |
4a9fe70ce8d346c5f7620c1835bf3195ff991a00 | lib/ui-watcher.coffee | lib/ui-watcher.coffee | ThemeWatcher = require './theme-watcher'
BaseThemeWatcher = require './base-theme-watcher'
module.exports =
class UIWatcher
constructor: ({@themeManager}) ->
@baseTheme = new BaseThemeWatcher()
for theme in @themeManager.getActiveThemes()
@createThemeWatcher(theme)
@themeManager.on 'theme-activated... | BaseThemeWatcher = require './base-theme-watcher'
ThemeWatcher = require './theme-watcher'
PackageWatcher = require './package-watcher'
module.exports =
class UIWatcher
constructor: ({@themeManager}) ->
@watchers = []
@baseTheme = @createWatcher(BaseThemeWatcher)
@watchThemes()
@watchPackages()
wa... | Refactor ui watcher to use packageWatcher | Refactor ui watcher to use packageWatcher | CoffeeScript | mit | atom/dev-live-reload |
354a41335552d56aa773a2042e49b7d15b9d102a | atom/.atom/keymap.cson | atom/.atom/keymap.cson | # Your keymap
#
# Atom keymaps work similarly to style sheets. Just as style sheets use
# selectors to apply styles to elements, Atom keymaps use selectors to associate
# keystrokes with events in specific contexts. Unlike style sheets however,
# each selector can only be declared once.
#
# You can create a new keybind... | # Your keymap
#
# Atom keymaps work similarly to style sheets. Just as style sheets use
# selectors to apply styles to elements, Atom keymaps use selectors to associate
# keystrokes with events in specific contexts. Unlike style sheets however,
# each selector can only be declared once.
#
# You can create a new keybind... | Update to Atom 1.15.0 default | Update to Atom 1.15.0 default | CoffeeScript | mit | jeffwidman/dotfiles |
7270b080bd16ea7253103600fdfef65585111cb6 | elements/league-controller.coffee | elements/league-controller.coffee | Polymer
is: 'league-controller'
properties:
league: Object
leagueId:
type: String,
observer: '_leagueIdChanged'
leagueAttrs: Object
players:
type: Object
observer: '_onPlayersChange'
playerModels: Array
newPlayer: ->
event.preventDefault()
league = @league
... | Polymer
is: 'league-controller'
properties:
league: Object
leagueId:
type: String,
observer: '_leagueIdChanged'
leagueAttrs: Object
players:
type: Object
observer: '_onPlayersChange'
playerModels: Array
newPlayer: ->
event.preventDefault()
league = @league
... | Add confirmation to player delete | Add confirmation to player delete
| CoffeeScript | mit | RedBulli/LiveSnooker,RedBulli/LiveSnooker,RedBulli/LiveSnooker |
2f89df1fd95e6f9d9087b6f8d7c3ba1847e943e0 | src/renderer/scripts/views/main/layout.coffee | src/renderer/scripts/views/main/layout.coffee | Marionette = require "marionette"
CommentCollectionView = require "./comment/collectionView"
PlayingNotifierView = require "./nowPlaying/nowPlayingView"
module.exports =
class NcoMainLayout extends Marionette.LayoutView
template : require "./view.jade"
regions :
comment : "#nco-comm... | Marionette = require "marionette"
CommentCollectionView = require "./comment/collectionView"
NotifyView = require "./notify/NotifyView"
module.exports =
class NcoMainLayout extends Marionette.LayoutView
template : require "./view.jade"
regions :
comment : "#nco-comments"
notify ... | Replace notify view to NotifyView | [Dev] Replace notify view to NotifyView
| CoffeeScript | mit | Ragg-/nco,Ragg-/nco |
0cab691b966c7eb365af056f8e049e95366c2d43 | src/demo/index.cjsx | src/demo/index.cjsx | React = require 'react'
BS = require 'react-bootstrap'
UserStatus = require '../user/status'
{ExerciseStep} = require '../exercise'
STEP_ID = '4571'
Demo = React.createClass
displayName: 'Demo'
render: ->
demos =
exercise: <ExerciseStep id={STEP_ID}/>
demos = _.map(demos, (demo, name) ->
<BS... | React = require 'react'
BS = require 'react-bootstrap'
UserStatus = require '../user/status'
UserLoginButton = require '../user/login-button'
UserLogin = require '../user/login'
{ExerciseStep} = require '../exercise'
STEP_ID = '4571'
Demo = React.createClass
displayName: 'Demo'
onAttemptLogin: ->
@setState... | Switch out view to login and back on completion | Switch out view to login and back on completion
| CoffeeScript | agpl-3.0 | openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js |
77f9fdba1bb4f9ac46acd13c7d8b939c63b00e2f | menus/tabs.cson | menus/tabs.cson | 'context-menu':
'.tab': [
{label: 'Close Tab', command: 'tabs:close-tab'}
{label: 'Close Other Tabs', command: 'tabs:close-other-tabs'}
{label: 'Close Tabs to the Right', command: 'tabs:close-tabs-to-right'}
{label: 'Close Saved Tabs', command: 'tabs:close-saved-tabs'}
{label: 'Close All Tabs', co... | 'context-menu':
'tabs-tab': [
{label: 'Close Tab', command: 'tabs:close-tab'}
{label: 'Close Other Tabs', command: 'tabs:close-other-tabs'}
{label: 'Close Tabs to the Right', command: 'tabs:close-tabs-to-right'}
{label: 'Close Saved Tabs', command: 'tabs:close-saved-tabs'}
{label: 'Close All Tabs'... | Update menus to use custom tag selectors | Update menus to use custom tag selectors | CoffeeScript | mit | pombredanne/tabs,acontreras89/tabs,harai/tabs,atom/tabs |
798c6b98840d23532ea97a62aa3b8acf38a485ca | app/assets/javascripts/voluntary_ranking/routes/arguments/index_route.js.coffee | app/assets/javascripts/voluntary_ranking/routes/arguments/index_route.js.coffee | Volontariat.ArgumentsIndexRoute = Ember.Route.extend
model: (params) ->
@controllerFor('arguments.index').set 'page', parseInt(params.page)
@controllerFor('arguments.index').set 'thingId', @modelFor('thing').id
@store.find 'argument', thing_id: @modelFor('thing').id, page: params.page
setupContr... | Volontariat.ArgumentsIndexRoute = Ember.Route.extend
model: (params) ->
@controllerFor('arguments.index').set 'page', parseInt(params.page)
@controllerFor('arguments.index').set 'thingName', @modelFor('thing')._data.name
@store.find 'argument', thing_id: @modelFor('thing').id, page: params.page
... | Change thing by ID to thing by name route and close new argument modal right. | Change thing by ID to thing by name route and close new argument modal right.
| CoffeeScript | mit | volontariat/voluntary_ranking,volontariat/voluntary_ranking,volontariat/voluntary_ranking |
1bd0903bb5b7b7fd50f92b5ec03de9e7bc14ebcd | src/coffee/run.coffee | src/coffee/run.coffee | StockXmlImport = require('../main').StockXmlImport
fs = require 'fs'
argv = require('optimist')
.usage('Usage: $0 --projectKey key --clientId id --clientSecret secret --xmlfile file')
.demand(['projectKey', 'clientId', 'clientSecret', 'xmlfile'])
.argv
options =
config:
project_key: argv.projectKey
cli... | StockXmlImport = require('../main').StockXmlImport
fs = require 'fs'
argv = require('optimist')
.usage('Usage: $0 --projectKey key --clientId id --clientSecret secret --xmlfile file --timeout timeout')
.demand(['projectKey', 'clientId', 'clientSecret', 'xmlfile'])
.argv
timeout = argv.timeout
timeout or= 60000
... | Enable to set timeout as command line option. | Enable to set timeout as command line option.
| CoffeeScript | mit | sphereio/sphere-stock-import,sphereio/sphere-stock-import,sphereio/sphere-stock-import |
b893db96047998f6f57d061ba69390415ebd1d4c | src/coffee/run.coffee | src/coffee/run.coffee | fs = require 'fs'
package_json = require '../package.json'
StockXmlImport = require('../main').StockXmlImport
argv = require('optimist')
.usage('Usage: $0 --projectKey key --clientId id --clientSecret secret --xmlfile file --timeout timeout')
.default('timeout', 300000)
.describe('projectKey', 'your SPHERE.IO pro... | fs = require 'fs'
package_json = require '../package.json'
StockXmlImport = require('../main').StockXmlImport
argv = require('optimist')
.usage('Usage: $0 --projectKey [key] --clientId [id] --clientSecret [secret] --xmlfile [file] --timeout [timeout]')
.default('timeout', 300000)
.describe('projectKey', 'your SPH... | Add some layaut to command line usage. | Add some layaut to command line usage. | CoffeeScript | mit | sphereio/sphere-stock-import,sphereio/sphere-stock-import,sphereio/sphere-stock-import |
d7bffc9e0b158fb2ec187a5e5b90ab3266f8d9dc | src/code/views/wireframes/inspector-panel-view.coffee | src/code/views/wireframes/inspector-panel-view.coffee | NodeEditView= React.createFactory require '../node-edit-view'
LinkEditView= React.createFactory require '../link-edit-view'
{div, i} = React.DOM
module.exports = React.createClass
displayName: 'InspectorPanelView'
getInitialState: ->
expanded: true
collapse: ->
@setState {expanded: false}
expand: ... | NodeEditView= React.createFactory require '../node-edit-view'
LinkEditView= React.createFactory require '../link-edit-view'
{div, i} = React.DOM
module.exports = React.createClass
displayName: 'InspectorPanelView'
getInitialState: ->
expanded: true
collapse: ->
@setState {expanded: false}
expand: ... | Correct bad property name mapping in inspector-panel | Correct bad property name mapping in inspector-panel
| CoffeeScript | mit | concord-consortium/building-models,concord-consortium/building-models,concord-consortium/building-models,concord-consortium/building-models,concord-consortium/building-models |
0b47eef77b01d12fa6ec7b841ffff7262137920c | lib/archive-edit-session.coffee | lib/archive-edit-session.coffee | fsUtils = require 'fs-utils'
path = require 'path'
_ = require 'underscore'
archive = require 'ls-archive'
File = require 'file'
module.exports=
class ArchiveEditSession
registerDeserializer(this)
@activate: ->
Project = require 'project'
Project.registerOpener (filePath) ->
new ArchiveEditSession(f... | fsUtils = require 'fs-utils'
path = require 'path'
_ = require 'underscore'
archive = require 'ls-archive'
File = require 'file'
module.exports=
class ArchiveEditSession
registerDeserializer(this)
@version: 1
@activate: ->
Project = require 'project'
Project.registerOpener (filePath) ->
new Archiv... | Add serialization version to image and archive edit sessions | Add serialization version to image and archive edit sessions
| CoffeeScript | mit | atom/archive-view |
6f37f431d966636a43fb70294477a070ea716ac9 | app/assets/javascripts/controllers/paper_manage_controller.js.coffee | app/assets/javascripts/controllers/paper_manage_controller.js.coffee | ETahi.PaperManageController = Ember.ObjectController.extend
sortedPhases: ( ->
Ember.ArrayProxy.createWithMixins(Em.SortableMixin, {
content: @get('model.phases')
sortProperties: ['position']
})
).property('model.phases.@each')
actions:
addPhase: (position) ->
paper = @get('model')
... | ETahi.PaperManageController = Ember.ObjectController.extend
sortedPhases: ( ->
Ember.ArrayProxy.createWithMixins(Em.SortableMixin, {
content: @get('model.phases')
sortProperties: ['position']
})
).property('model.phases.@each')
updatePositions: (phase)->
relevantPhases = _(this.get('model... | Set phase positions on client side to prevent awkward position correction in callback | Set phase positions on client side to prevent awkward position
correction in callback
| CoffeeScript | mit | johan--/tahi,johan--/tahi,johan--/tahi,johan--/tahi |
caf637e8eef829203052eff57407f98e2e4fd682 | packages/rocketchat-message-pin/server/settings.coffee | packages/rocketchat-message-pin/server/settings.coffee | Meteor.startup ->
RocketChat.settings.add 'Message_AllowPinning', true, { type: 'boolean', group: 'Message', public: true }
RocketChat.models.Permissions.upsert('pin-message', {$addToSet: {roles: {$each: ['owner', 'moderator', 'admin']}}})
| Meteor.startup ->
RocketChat.settings.add 'Message_AllowPinning', true, { type: 'boolean', group: 'Message', public: true }
RocketChat.models.Permissions.upsert('pin-message', { $setOnInsert: { roles: ['owner', 'moderator', 'admin'] } });
| Set pin-message permissions only on insert | Set pin-message permissions only on insert
| CoffeeScript | mit | Movile/Rocket.Chat,subesokun/Rocket.Chat,4thParty/Rocket.Chat,JamesHGreen/Rocket.Chat,wtsarchive/Rocket.Chat,JamesHGreen/Rocket_API,Sing-Li/Rocket.Chat,JamesHGreen/Rocket.Chat,pachox/Rocket.Chat,LearnersGuild/echo-chat,marzieh312/Rocket.Chat,ahmadassaf/Rocket.Chat,4thParty/Rocket.Chat,danielbressan/Rocket.Chat,galrotem... |
9f683ee217460f5a9d5a935e9551775854b903f5 | app/assets/javascripts/front.js.coffee | app/assets/javascripts/front.js.coffee | #= require jquery
#= require jquery_ujs
#= require common
#= require front/cufon-yui
#= require front/Aller.font
#= require front/slides.min.jquery
#= require front/front
#= require_self | #= require jquery
#= require jquery-ujs
#= require common
#= require front/cufon-yui
#= require front/Aller.font
#= require front/slides.min.jquery
#= require front/front
#= require_self
| Fix wrong require for javascript. | Fix wrong require for javascript.
| CoffeeScript | mit | osaris/sp-gestion,osaris/sp-gestion,osaris/sp-gestion |
d32d4c7cea92155c76e1425aa450b0fa835a0662 | app/assets/javascripts/active_admin/base.js.coffee | app/assets/javascripts/active_admin/base.js.coffee | #= require jquery2
#= require ./jquery_ui
#= require jquery_ujs
#= require_self
#= require_tree ./lib
#= require_tree ./ext
#= require_tree ./initializers
window.ActiveAdmin = {}
| #= require jquery
#= require ./jquery_ui
#= require jquery_ujs
#= require_self
#= require_tree ./lib
#= require_tree ./ext
#= require_tree ./initializers
window.ActiveAdmin = {}
| Revert "force usage of jQuery 2 from jquery-rails" | Revert "force usage of jQuery 2 from jquery-rails"
| CoffeeScript | mit | mrjman/activeadmin,mateusg/active_admin,vytenis-s/activeadmin,cmunozgar/activeadmin,maysam/activeadmin,SoftSwiss/active_admin,wspurgin/activeadmin,activeadmin/activeadmin,deivid-rodriguez/activeadmin,javierjulio/activeadmin,mauriciopasquier/active_admin,quikly/active_admin,vytenis-s/activeadmin,waymondo/active_admin,vr... |
5165396596a5388ede8142dcc6cf3f221aed7440 | server/packages/user/login.coffee | server/packages/user/login.coffee |
errors = require 'errors'
{threshold} = require 'limits'
exports.$endpoint = ->
limiter:
message: "You are logging in too much."
threshold: threshold(3).every(30).seconds()
receiver: (req, fn) ->
switch req.body.method
when 'local'
(req.passport.authenticate 'local', (error, user, info) ... |
Promise = require 'bluebird'
errors = require 'errors'
{threshold} = require 'limits'
exports.$endpoint = ->
limiter:
message: "You are logging in too much."
threshold: threshold(3).every(30).seconds()
receiver: (req, fn) ->
{passport} = req
loginPromise = switch req.body.method
when 'loca... | Make authentication take at least one second, to prevent revealing whether a username exists based on timing | Make authentication take at least one second, to prevent revealing whether a username exists based on timing
| CoffeeScript | mit | cha0s/shrub,cha0s/shrub,cha0s/shrub |
210bc9eaa31d35cf5ba1d94acd5918468fe16e61 | desktop/apps/artsy_primer/personalize/client/views/price_range.coffee | desktop/apps/artsy_primer/personalize/client/views/price_range.coffee | { formatMoney } = require 'accounting'
StepView = require './step.coffee'
createSlider = require '../../../../../components/slider/index.coffee'
template = -> require('../../templates/price_range.jade') arguments...
module.exports = class PriceRangeView extends StepView
formatter: (val, index) ->
if index is 0
... | { formatMoney } = require 'accounting'
StepView = require './step.coffee'
createSlider = require '../../../../../components/slider/index.coffee'
template = -> require('../../templates/price_range.jade') arguments...
module.exports = class PriceRangeView extends StepView
events:
'keyup #anything-else' : 'update... | Update user notes on text change | Update user notes on text change
| CoffeeScript | mit | anandaroop/force,dblock/force,cavvia/force-1,izakp/force,joeyAghion/force,kanaabe/force,kanaabe/force,dblock/force,erikdstock/force,mzikherman/force,damassi/force,izakp/force,joeyAghion/force,erikdstock/force,mzikherman/force,joeyAghion/force,yuki24/force,artsy/force-public,xtina-starr/force,mzikherman/force,anandaroop... |
b4818ff7387b19d83d607bcd28aad826a3ce41c7 | keymaps/pdf-view.cson | keymaps/pdf-view.cson | '.platform-darwin .pdf-view':
'cmd-+': 'pdf-view:zoom-in'
'cmd-=': 'pdf-view:zoom-in'
'cmd--': 'pdf-view:zoom-out'
'cmd-_': 'pdf-view:zoom-out'
'cmd-0': 'pdf-view:reset-zoom'
'.platform-win32 .pdf-view, .platform-linux .pdf-view':
'ctrl-+': 'pdf-view:zoom-in'
'ctrl-=': 'pdf-view:zoom-in'
'ctrl--': 'pdf... | '.pdf-view':
'ctrl-g': 'pdf-view:go-to-page'
'.platform-darwin .pdf-view':
'cmd-+': 'pdf-view:zoom-in'
'cmd-=': 'pdf-view:zoom-in'
'cmd--': 'pdf-view:zoom-out'
'cmd-_': 'pdf-view:zoom-out'
'cmd-0': 'pdf-view:reset-zoom'
'.platform-win32 .pdf-view, .platform-linux .pdf-view':
'ctrl-+': 'pdf-view:zoom-in'... | Add default keybinding for go-to-page command | Add default keybinding for go-to-page command
| CoffeeScript | mit | epimorphic/atom-pdf-view,izuzak/atom-pdf-view |
c69930c46e3669e53cf13e320884f83e141de35e | app/assets/javascripts/angular/controllers/RegistryLoginCtrl.coffee | app/assets/javascripts/angular/controllers/RegistryLoginCtrl.coffee |
@registryadmin.controller 'RegistryLoginCtrl', [
"$scope"
"registrydataService"
"registryloginService"
"$q"
"$location"
"$rootScope"
($scope,registrydataService,registryloginService,$q,$location,$rootScope) ->
scopeDestroyed = false
registryloginService.clearCredentials()
$scope.error = ''
... |
@registryadmin.controller 'RegistryLoginCtrl', [
"$scope"
"registrydataService"
"registryloginService"
"$q"
"$location"
"$rootScope"
($scope,registrydataService,registryloginService,$q,$location,$rootScope) ->
scopeDestroyed = false
registryloginService.clearCredentials()
$scope.error = ''
... | Handle back path for login page | Handle back path for login page
| CoffeeScript | apache-2.0 | Messinger/docker-redmine-auth,Messinger/docker-redmine-auth,Messinger/docker-redmine-auth,Messinger/docker-redmine-auth |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.