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 |
|---|---|---|---|---|---|---|---|---|---|
1a6dc5d7b66105cc0f5454f120bb11aaf019574d | gulpfile.coffee | gulpfile.coffee | {full: version} = require './lib/version'
TARGET = "eyetribe-#{version}"
isDevelopment = version.indexOf 'SNAPSHOT' > 0
gulp = require 'gulp'
browserify = require 'browserify'
uglify = require 'gulp-uglify'
source = require 'vinyl-source-stream'
concat = require 'gulp-concat'
gulp.task 'default', ['compress']
gulp.t... | {full: version} = require './lib/version'
TARGET = "eyetribe-#{version}"
isDevelopment = version.indexOf 'SNAPSHOT' > 0
gulp = require 'gulp'
browserify = require 'browserify'
uglify = require 'gulp-uglify'
source = require 'vinyl-source-stream'
concat = require 'gulp-concat'
gulp.task 'default', ['compress']
gulp.t... | Handle error on browserify to keep watching | Handle error on browserify to keep watching
| CoffeeScript | mit | kzokm/eyetribe-websocket |
492491a94c71782626cb701f66bea63a07e8e69a | src/mobile/apps/user/routes.coffee | src/mobile/apps/user/routes.coffee | CurrentUser = require '../../models/current_user'
module.exports.refresh = (req, res) ->
return res.redirect("/") unless req.user
req.user.fetch
error: res.backboneError
success: ->
req.login req.user, (error) ->
if (error)
next error
else
# Avoid race condition wh... | CurrentUser = require '../../models/current_user'
module.exports.refresh = (req, res, next) ->
return res.redirect("/") unless req.user
req.user.fetch
error: res.backboneError
success: ->
req.login req.user, (error) ->
if (error)
next error
else
# Avoid race condit... | Save session explicitly before returning from user refresh | Save session explicitly before returning from user refresh
| CoffeeScript | mit | anandaroop/force,erikdstock/force,yuki24/force,cavvia/force-1,eessex/force,xtina-starr/force,mzikherman/force,anandaroop/force,artsy/force,artsy/force,yuki24/force,izakp/force,eessex/force,damassi/force,cavvia/force-1,yuki24/force,artsy/force-public,yuki24/force,cavvia/force-1,cavvia/force-1,oxaudo/force,xtina-starr/fo... |
1e50a65e6d0ee11a1229131e947c937a502c6d2d | lib/appBaseComponents/views/BaseView.coffee | lib/appBaseComponents/views/BaseView.coffee | $ = require 'jquery'
_ = require 'underscore'
Marionette = require 'backbone.marionette'
require './helpers/mixinTemplateHelpers'
require './helpers/handlebarsHelpers'
require '../../jquery/toggleWrapper'
# backup the original method
_remove = Marionette.View::remove
module.exports =
###
Adds... | $ = require 'jquery'
_ = require 'underscore'
Marionette = require 'backbone.marionette'
channel = require '../../utilities/appChannel'
require './helpers/mixinTemplateHelpers'
require './helpers/handlebarsHelpers'
require '../../jquery/toggleWrapper'
# backup the original method
_remove = Marion... | Make the global radio channel available to the views | Make the global radio channel available to the views
| CoffeeScript | mit | mosaiqo/frontendAppLib |
b9fe3d8ef00c4aeae36dd99141926596ab9685d3 | lib/views/branch-list-view.coffee | lib/views/branch-list-view.coffee | {$$, SelectListView} = require 'atom'
git = require '../git'
StatusView = require './status-view'
module.exports =
class ListView extends SelectListView
initialize: (@data) ->
super
@addClass 'overlay from-top'
@parseData()
parseData: ->
items = @data.split("\n")
branches = []
for item in... | fs = require 'fs-plus'
{$$, SelectListView} = require 'atom'
git = require '../git'
StatusView = require './status-view'
module.exports =
class ListView extends SelectListView
initialize: (@data) ->
super
@addClass 'overlay from-top'
@parseData()
parseData: ->
items = @data.split("\n")
branch... | Destroy editors without files after checkout | Destroy editors without files after checkout
| CoffeeScript | mit | akonwi/git-plus,akonwi/git-plus |
8c1c12b19089e565b574b3c1bb06270dc287699d | lib/elvis-backbone.coffee | lib/elvis-backbone.coffee | el = @elvis
class Binding
constructor: (@model, @attr, @transform) ->
bindTo: (obj, attr) ->
@model.on "change:#{@attr}", =>
el.setAttr(obj, attr, @getValue())
getValue: ->
value = @model.get(@attr)
if @transform then @transform(value) else value
el.bind = (model, attr, transform) ->
new ... | el = @elvis
class Binding
constructor: (@model, @attr, @transform) ->
bindTo: (obj, attr) ->
@toObj = obj
@toAttr = attr
@model.on("change:#{@attr}", @update, this)
this
getValue: ->
value = @model.get(@attr)
if @transform then @transform(value) else value
update: ->
el.setAttr(@... | Clean up backbone plugin code | Clean up backbone plugin code
| CoffeeScript | isc | myme/elvis |
55739c51381b958eed514c6f7b0b9f0387dfe78a | assets/javascripts/controllers/users_new_controller.js.coffee | assets/javascripts/controllers/users_new_controller.js.coffee | App.UsersNewController = Em.Controller.extend
needs: ["application"]
validRoles: ["admin", "member"]
| App.UsersNewController = Em.Controller.extend
needs: ["application"]
validRoles: ["member", "admin"]
actions:
save: ->
userAttributes = @getProperties(["firstName", "lastName", "role", "password", "email"])
user = @store.createRecord("user", userAttributes)
console.log userAttributes
... | Save action for new user | Save action for new user
| CoffeeScript | mit | louishawkins/mogo-chat,di-stars/mogo-chat,louishawkins/mogo-chat,di-stars/mogo-chat,di-stars/mogo-chat,sashafklein/bloc-mogo,HashNuke/mogo-chat,HashNuke/mogo-chat,sashafklein/bloc-mogo,louishawkins/mogo-chat,sashafklein/bloc-mogo,HashNuke/mogo-chat |
2f1dadb8bac3cb011fba6efa998f226b754bf8b4 | source/scripts/utils/config.coffee | source/scripts/utils/config.coffee |
servers = {
official: 'sync.nitrotasks.com:443'
local: 'localhost:8080'
heroku: 'nitro-server.herokuapp.com'
custom: '192.168.0.100:8080'
}
# Set active server
active = servers.local
module.exports =
server: active
sync: active + '/socket'
email: active + '/email'
|
servers = {
official: 'sync.nitrotasks.com:443'
local: 'localhost:8080'
heroku: 'nitro-server.herokuapp.com'
custom: '192.168.0.100:8080'
}
# Set active server
active = servers.heroku
module.exports =
server: active
sync: active + '/socket'
email: active + '/email'
| Switch servers to use the heroku beta | Switch servers to use the heroku beta
| CoffeeScript | unknown | nitrotasks/nitro,CaffeinatedCode/nitro,nitrotasks/nitro |
c3d7b6797132dbf0219eadff2f5382b11e9dfceb | lib/minimap-selection-view.coffee | lib/minimap-selection-view.coffee | {View} = require 'atom-space-pen-views'
{CompositeDisposable} = require 'event-kit'
module.exports =
class MinimapSelectionView extends View
decorations: []
@content: ->
@div class: 'minimap-selection'
initialize: (@minimapView) ->
@subscriptions = new CompositeDisposable
@subscriptions.add @minimap... | {View} = require 'atom-space-pen-views'
{CompositeDisposable} = require 'event-kit'
module.exports =
class MinimapSelectionView extends View
decorations: []
@content: ->
@div class: 'minimap-selection'
initialize: (@minimapView) ->
@subscriptions = new CompositeDisposable
@subscriptions.add @minimap... | Fix error raised when expanding the number of cursors | :bug: Fix error raised when expanding the number of cursors
| CoffeeScript | mit | atom-minimap/minimap-selection |
ab3624e9be0f1d0d77811863921ae46343f18fba | client/Social/Activity/views/privatemessage/privatemessagelistitem.coffee | client/Social/Activity/views/privatemessage/privatemessagelistitem.coffee | class PrivateMessageListItemView extends ActivityListItemView
constructor: (options = {}, data) ->
options.cssClass = KD.utils.curry 'privatemessage ', options.cssClass
options.commentViewClass or= ReplyView
options.commentSettings = {}
{commentSettings} = options
commentSe... | class PrivateMessageListItemView extends ActivityListItemView
constructor: (options = {}, data) ->
options.cssClass = KD.utils.curry 'privatemessage ', options.cssClass
options.commentViewClass or= ReplyView
options.commentSettings = {}
{commentSettings} = options
commentSe... | Add settings button to Private message list item | PrivateMessage: Add settings button to Private message list item
| CoffeeScript | agpl-3.0 | koding/koding,cihangir/koding,drewsetski/koding,jack89129/koding,kwagdy/koding-1,gokmen/koding,gokmen/koding,jack89129/koding,koding/koding,andrewjcasal/koding,sinan/koding,mertaytore/koding,drewsetski/koding,andrewjcasal/koding,sinan/koding,andrewjcasal/koding,jack89129/koding,acbodine/koding,gokmen/koding,rjeczalik/k... |
9d3112d0c010088a94d80e7dd357e9b791a956b9 | app/assets/javascripts/items.js.coffee | app/assets/javascripts/items.js.coffee | # Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/
ready = ->
checkTextChange = (e) ->
old = v = $(e).find('#item-text').val()
return ->
v = $(e).find(... | # Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/
ready = ->
parseText = (text) ->
# parsing markdown to html
$('#item-preview-content').html(marked(text... | Fix parsing markdown at first | Fix parsing markdown at first
| CoffeeScript | mit | nanonanomachine/radvent,nanonanomachine/radvent,nanonanomachine/radvent |
ea910368b8c5d8f3af0fdbc025578a4757efd5c7 | scripts/say.coffee | scripts/say.coffee | # Description:
# Liona is just so awesome
#
# Commands:
# hubot <3
whitelist = require '../support/whitelist'
module.exports = (robot) ->
robot.respond /say to ([a-zA-Z-_\#]+) (.*)/, (msg) ->
if whitelist.canSay(robot, msg.message.user)
[room, message] = msg.match[1..2]
robot.messageRoom room, m... | # Description:
# Liona is just so awesome
#
# Commands:
# hubot <3
whitelist = require '../support/whitelist'
module.exports = (robot) ->
robot.respond /say to ([a-zA-Z-_\#]+) (.*)/, (msg) ->
if whitelist.canSay(robot, msg.message.user)
[room, message] = msg.match[1..2]
robot.messageRoom room, m... | Add ability to make Liobot emote | Add ability to make Liobot emote
| CoffeeScript | mit | LaravelIO/LioBot,lagbox/LioBot,laravelio/liona |
329b9852057e3accdf2a8c8c000a64e26e339cb9 | addon/initializers/data-complex.coffee | addon/initializers/data-complex.coffee | `import Ember from 'ember'`
`import DS from 'ember-data'`
`import { findAll, findById, findByQuery } from '../extensions/finders'`
`import strategyFor from '../extensions/strategy-for'`
`import push from '../extensions/push'`
initialize = (ctn, app) ->
unless DS.Store::_emberDataComplexPatched is true
DS.Store.r... | `import Ember from 'ember'`
`import DS from 'ember-data'`
`import { findAll, findById, findByQuery } from '../extensions/finders'`
`import strategyFor from '../extensions/strategy-for'`
`import push from '../extensions/push'`
initialize = (ctn, app) ->
unless DS.Store::_emberDataComplexPatched is true
DS.Store.r... | Use the `ember-data` initializer as a target instead of the soon to be deprecated `store` initializer | Use the `ember-data` initializer as a target instead of the soon to be deprecated `store` initializer | CoffeeScript | mit | foxnewsnetwork/ember-data-complex,foxnewsnetwork/ember-data-complex |
25d0e28a3ed00690afd954e39a8d29034d71bbe1 | spec/command-reference-files/screen/client/appy-app/screens/ready-set-go/ReadySetGo.cjsx | spec/command-reference-files/screen/client/appy-app/screens/ready-set-go/ReadySetGo.cjsx | class AppyApp.Screens.ReadySetGo extends AppyApp.Screens.Base
render: ->
<div className="fancy-header">
<h1>Hello bright shiny world</h1>
<h2>Served by the AppyApp extension’s ReadySetGo screen</h2>
</div>
| class AppyApp.Screens.ReadySetGo extends AppyApp.Screens.Base
render: ->
<LC.ScreenWrapper identifier="appy-app">
<div className="fancy-header">
<h1>Hello bright shiny world</h1>
<h2>Served by the AppyApp extension’s ReadySetGo screen</h2>
</div... | Adjust fixture to match current generated content | Adjust fixture to match current generated content
| CoffeeScript | mit | argosity/lanes,argosity/lanes,argosity/hippo,argosity/hippo,argosity/hippo,argosity/lanes |
3e0f648b5464d62fabadf0341cd524c4f83b6014 | app/lib/get-tutorial-subject.coffee | app/lib/get-tutorial-subject.coffee | Subject = require 'zooniverse/models/subject'
module.exports = ->
new Subject
location: standard: './subjects/standard/514092d13ae74064ba00000e.jpg'
coords: [0, 0]
metadata: tutorial: true
| Subject = require 'zooniverse/models/subject'
module.exports = ->
new Subject
location: standard: './subjects/standard/514092d13ae74064ba00000e.jpg'
coords: [0, 0]
metadata:
tutorial: true
file_name: 'TUTORIAL_SUBJECT'
workflow_ids: ['514092d13ae74064ba000002']
| Add workflow ID to tutorial subject | Add workflow ID to tutorial subject | CoffeeScript | apache-2.0 | zooniverse/Leaves |
c08302a1a589f02d9ff751fdc2784312fd0f5c9e | src/shem-cli.coffee | src/shem-cli.coffee | fs = require 'fs'
path = require 'path'
helpers = require './helpers'
compiler = require './compiler'
exports.compileModule = compile = (source, options) ->
result = compiler.compileModule source
if result.request
console.error options
console.error result
else
result.js
# Compile and execute a str... | fs = require 'fs'
path = require 'path'
helpers = require './helpers'
compiler = require './compiler'
exports.compileModule = compile = (source, options) ->
result = compiler.compileModule source
if result.request
console.error options
console.error result
else if result.errors
throw new Error result... | Throw on type error during CLI run | Throw on type error during CLI run
| CoffeeScript | mit | xixixao/Shem |
a0ec803514224064c57cb768db989bb5be3231d7 | app/assets/javascripts/papers.js.coffee | app/assets/javascripts/papers.js.coffee |
window.Tahi = {}
Tahi.papers =
init: ->
$('#add_author').on 'click', (e) ->
e.preventDefault()
$('<li class="author">').appendTo $('ul.authors')
$(document).ready ->
if $('[contenteditable!=false]').length > 0
for elementId in ['body_editable', 'abstract_editable']
CKEDITOR.inline elemen... |
window.Tahi = {}
Tahi.papers =
init: ->
$('#add_author').on 'click', (e) ->
e.preventDefault()
$('<li class="author">').appendTo $('ul.authors')
$(document).ready ->
if $('[contenteditable!=false]').length > 0
for elementId in ['body_editable', 'abstract_editable']
CKEDITOR.inline elemen... | Remove unneeded tools from the toolbar | Remove unneeded tools from the toolbar
| CoffeeScript | mit | johan--/tahi,johan--/tahi,johan--/tahi,johan--/tahi |
b4c18819fae5ac589388364a33977ef68119a9dc | lib/find-results-view.coffee | lib/find-results-view.coffee | _ = require 'underscore-plus'
{EditorView, View} = require 'atom'
MarkerView = require './marker-view'
module.exports =
class FindResultsView extends View
@content: ->
@div class: 'search-results'
initialize: (@findModel) ->
@markerViews = {}
@subscribe @findModel, 'updated', (args...) => @markersUpd... | _ = require 'underscore-plus'
{EditorView, View} = require 'atom'
MarkerView = require './marker-view'
module.exports =
class FindResultsView extends View
@content: ->
@div class: 'search-results'
initialize: (@findModel) ->
@markerViews = {}
@subscribe @findModel, 'updated', (args...) => @markersUpd... | Use class instead of instanceof to check if the active view is an editor | Use class instead of instanceof to check if the active view is an editor
This supports the ReactEditorView in addition to the legacy EditorView. | CoffeeScript | mit | harai/find-and-replace,trevdor/find-and-replace,atom/find-and-replace,bmperrea/find-and-replace |
59baef5769105a2f3b093f4504b593f18e030e3d | src/config.coffee | src/config.coffee | ###
Nesh Configuration. Implements a basic configuration system
which can load and save state via JSON. By default this data
is stored in ~/.nesh_config.json, but a custom path can be
passed to the load and save functions.
###
fs = require 'fs'
log = require './log'
path = require 'path'
_config = {}
config = exports... | ###
Nesh Configuration. Implements a basic configuration system
which can load and save state via JSON. By default this data
is stored in ~/.nesh_config.json, but a custom path can be
passed to the load and save functions.
###
fs = require 'fs'
log = require './log'
path = require 'path'
_config = {}
config = exports... | Use just `process.env.USERPROFILE` to determine a user's home folder on Windows | Use just `process.env.USERPROFILE` to determine a user's home folder on Windows
Removed reference to %HOMEPATH%, because it doesn't contain a drive
spec. (e.g., it contains only \Users\Jdoe rather than C:\Users\Jdoe),
whereas %USERPROFILE% does include the drive spec., which makes it the
better choice.
| CoffeeScript | mit | danielgtaylor/nesh |
797578f9319d489270787a851cfaaaca9665704b | src/tds-versions.coffee | src/tds-versions.coffee |
exports.versions =
'7_1': 0x71000001
'7_2': 0x72090002
'7_3_A': 0x730A0003
'7_3_B': 0x730B0003
'7_4': 0x74000004
exports.versionsByValue = {}
for name, value of exports.versions
exports.versionsByValue[value] = name
|
exports.versions =
'7_2': 0x72090002
'7_3_A': 0x730A0003
'7_3_B': 0x730B0003
'7_4': 0x74000004
exports.versionsByValue = {}
for name, value of exports.versions
exports.versionsByValue[value] = name
| Remove TDS 7.1 from supported versions | Remove TDS 7.1 from supported versions
| CoffeeScript | mit | pekim/tedious,tediousjs/tedious,spanditcaa/tedious,Sage-ERP-X3/tedious,arthurschreiber/tedious,LeanKit-Labs/tedious,tediousjs/tedious |
81792529246bef03cc8bb16005cab8924606ef1a | app/assets/javascripts/admin/order_cycles/controllers/incoming_controller.js.coffee | app/assets/javascripts/admin/order_cycles/controllers/incoming_controller.js.coffee | angular.module('admin.orderCycles').controller 'AdminOrderCycleIncomingCtrl', ($scope, $controller, $location, Enterprise, OrderCycle, ocInstance) ->
$controller('AdminOrderCycleExchangesCtrl', {$scope: $scope, ocInstance: ocInstance, $location: $location})
$scope.view = 'incoming'
$scope.exchangeTotalVariants ... | angular.module('admin.orderCycles').controller 'AdminOrderCycleIncomingCtrl', ($scope, $controller, $location, Enterprise, OrderCycle, ocInstance) ->
$controller('AdminOrderCycleExchangesCtrl', {$scope: $scope, ocInstance: ocInstance, $location: $location})
$scope.view = 'incoming'
$scope.exchangeTotalVariants ... | Replace the use of this with | Replace the use of this with
| CoffeeScript | agpl-3.0 | openfoodfoundation/openfoodnetwork,mkllnk/openfoodnetwork,mkllnk/openfoodnetwork,mkllnk/openfoodnetwork,Matt-Yorkley/openfoodnetwork,lin-d-hop/openfoodnetwork,lin-d-hop/openfoodnetwork,lin-d-hop/openfoodnetwork,openfoodfoundation/openfoodnetwork,Matt-Yorkley/openfoodnetwork,mkllnk/openfoodnetwork,Matt-Yorkley/openfoodn... |
5b98382785a6aaeeef728ae15a4092631cd7f443 | lib/csv-config.coffee | lib/csv-config.coffee | _ = require 'underscore-plus'
module.exports =
class CSVEditor
constructor: (@config={}) ->
get: (path, config) ->
if config? then @config[path]?[config] else @config[path]
set: (path, config, value) ->
@config[path] ?= {}
@config[path][config] = value
move: (oldPath, newPath) ->
@config[new... | _ = require 'underscore-plus'
module.exports =
class CSVConfig
constructor: (@config={}) ->
get: (path, config) ->
if config? then @config[path]?[config] else @config[path]
set: (path, config, value) ->
@config[path] ?= {}
@config[path][config] = value
move: (oldPath, newPath) ->
@config[new... | Fix typo in csv config class name | :art: Fix typo in csv config class name
| CoffeeScript | mit | abe33/atom-tablr |
23842499689389f40ebc4bd4f5c6ff8fd527b5b4 | tests/leveldb-async-test.coffee | tests/leveldb-async-test.coffee | assert = require 'assert'
leveldb = require '../lib'
describe 'db', ->
db = new leveldb.DB
path = "#{__dirname}/../tmp/db-test-file"
key = "Hello"
value = "World"
it 'should open database', (done) ->
db.open path, { create_if_missing: true, paranoid_checks: true }, done
it 'should put key/value ... | assert = require 'assert'
leveldb = require '../lib'
describe 'db', ->
db = new leveldb.DB
path = "#{__dirname}/../tmp/db-test-file"
key = "Hello"
value = "World"
it 'should open database', (done) ->
db.open path, { create_if_missing: true, paranoid_checks: true }, done
it 'should put key/value ... | Call done() in leveled async test | Call done() in leveled async test
| CoffeeScript | bsd-2-clause | mikepb/node-leveldb,maxogden/node-leveldb,mikepb/node-leveldb,maxogden/node-leveldb,my8bird/node-leveldb,my8bird/node-leveldb,my8bird/node-leveldb,maxogden/node-leveldb |
1d690a306e71c2fcae1ad2d6d55b72e5ebd46f2f | src/components/navbar/account-link.cjsx | src/components/navbar/account-link.cjsx | React = require 'react'
BS = require 'react-bootstrap'
Router = require 'react-router'
{CurrentUserStore} = require '../../flux/current-user'
{TransitionAssistant} = require '../unsaved-state'
module.exports = React.createClass
displayName: 'Navigation'
contextTypes:
router: React.PropTypes.func
redirectTo... | React = require 'react'
BS = require 'react-bootstrap'
{CurrentUserStore} = require '../../flux/current-user'
module.exports = React.createClass
displayName: 'Navigation'
render: ->
return null unless CurrentUserStore.getProfileUrl()
<li>
<a href={CurrentUserStore.getProfileUrl()} target='_blank'>M... | Use a link with target=_blank for account profile | Use a link with target=_blank for account profile
| CoffeeScript | agpl-3.0 | openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js |
c5bc8efa9bffa10e5bd9c036cccb98ecd3e003bd | src/scripts/achievement_unlocked.coffee | src/scripts/achievement_unlocked.coffee | # Description:
# None
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# hubot achievement get <achievement> [achiever's gravatar email] - life goals are in reach
#
# Author:
# Chris
module.exports = (robot) ->
robot.hear /achievement (get|unlock(ed)?) (.+?)(\s*[^@\s]+@[^@\s]+)?\s*$/i, (msg... | # Description:
# None
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# hubot achievement get <achievement> [achiever's gravatar email] - life goals are in reach
#
# Author:
# Chris
module.exports = (robot) ->
robot.hear /achievement (get|unlock(ed)?) (.+?)(\s*[^@\s]+@[^@\s]+)?\s*$/i, (msg... | Remove automatic Daniel Webster achievement | Remove automatic Daniel Webster achievement
Looks like test code accidentally left in | CoffeeScript | mit | markstory/hubot-scripts,jankowiakmaria/hubot-scripts,zecahnin/hubot-scripts,davidsulpy/hubot-scripts,github/hubot-scripts,terryjbates/hubot-scripts,amhorton/hubot-scripts,GrimDerp/hubot-scripts,gregburek/emojibot,n0mer/hubot-scripts,iilab/hubot-scripts,dhfromkorea/hubot-scripts,jan0sch/hubot-scripts,marksie531/hubot-sc... |
e882493557f572fcc1a975015213da962a09a2b2 | assets/javascripts/fetch_pool.js.coffee | assets/javascripts/fetch_pool.js.coffee | class TentStatus.FetchPool extends TentStatus.Paginator
constructor: (@collection, @options = {}) ->
super
@sinceId = @options.sinceId
paramsForOffsetAndLimit: (sinceId, limit) =>
params = { limit: limit }
params.since_id = sinceId if sinceId
params
fetch: (options = {}) =>
_options = {
... | class TentStatus.FetchPool extends TentStatus.Paginator
constructor: (@collection, @options = {}) ->
super
@sinceId = @options.sinceId
paramsForOffsetAndLimit: (sinceId, limit) =>
params = { limit: limit }
params.since_id = sinceId if sinceId
params
fetch: (options = {}) =>
_options = {
... | Fix deleted post triggering new post notification | Fix deleted post triggering new post notification
| CoffeeScript | bsd-3-clause | tent/tent-status,tent/tent-status |
fcc338665c2d6ca37169afe80ed42fbf3b80d23f | test/noServices.coffee | test/noServices.coffee | should = require 'should'
restler = require 'restler'
setup = require './setup'
describe 'with no services or routes wired up', () ->
beforeEach (done) ->
{@app, @server, @url} = setup()
done()
afterEach (done) ->
@server.close()
done()
it 'should return with a 501 status', (done) ->
req ... | should = require 'should'
restler = require 'restler'
setup = require './setup'
describe 'with no services or routes wired up', () ->
beforeEach (done) ->
{@app, @server, @url} = setup()
done()
afterEach (done) ->
@server.close()
done()
it 'should return with a 501 status', (done) ->
req ... | Fix adapter code to handle unresolved services, errors | Fix adapter code to handle unresolved services, errors
| CoffeeScript | mit | TorchlightSoftware/law-connect |
a825c22ef59a2a5659e0a2ca94f46753ca2c67ae | lineman/app/components/lmo_href/lmo_href.coffee | lineman/app/components/lmo_href/lmo_href.coffee | angular.module('loomioApp').directive 'lmoHref', ($window, $router, LmoUrlService) ->
restrict: 'A'
scope:
path: '@lmoHref'
model: '=lmoHrefModel'
link: (scope, elem, attrs) ->
route = LmoUrlService.route(path: scope.path, model: scope.model, params: scope.params)
elem.attr 'href', ''
elem.bin... | angular.module('loomioApp').directive 'lmoHref', ($window, $router, LmoUrlService) ->
restrict: 'A'
scope:
path: '@lmoHref'
model: '=lmoHrefModel'
link: (scope, elem, attrs) ->
route = LmoUrlService.route(path: scope.path, model: scope.model, params: scope.params)
elem.attr 'href', ''
elem.bin... | Add support for ctrl key | Add support for ctrl key
| CoffeeScript | agpl-3.0 | codingnutty/loomio,sicambria/loomio,sicambria/loomio,mlarghydracept/loomio,doomergithub/loomio,sicambria/loomio,sicambria/loomio,FSFTN/Loomio,juliagra/DBCloomio,mhjb/loomio,annewchen/loomio,FSFTN/Loomio,FSFTN/Loomio,mhjb/loomio,piratas-ar/loomio,digideskio/loomio,mlarghydracept/loomio,loomio/loomio,gvalerin/loomio,codi... |
0af658eb28b6097981ca514c542f0152087f8568 | config.cson | config.cson | "*":
autosave:
enabled: true
core:
audioBeep: false
closeDeletedFileTabs: true
excludeVcsIgnoredPaths: false
packagesWithKeymapsDisabled: []
telemetryConsent: "limited"
themes: [
"one-light-ui"
"one-light-syntax"
]
"custom-title":
template: "<%= fileName %><% if (pr... | "*":
autosave:
enabled: true
core:
audioBeep: false
closeDeletedFileTabs: true
excludeVcsIgnoredPaths: false
packagesWithKeymapsDisabled: []
telemetryConsent: "limited"
themes: [
"one-light-ui"
"one-light-syntax"
]
"custom-title":
template: "<%= fileName %><% if (pr... | Adjust font size of editor | Adjust font size of editor
| CoffeeScript | mit | sayanee/dotfiles |
0e947b0992cb2607a4e86c7834a15f30d4cffcc7 | client/ide/workspace/panes/previewpane.coffee | client/ide/workspace/panes/previewpane.coffee | class IDE.PreviewPane extends IDE.Pane
constructor: (options = {}, data) ->
options.cssClass = KD.utils.curry 'preview-pane', options.cssClass
options.paneType = 'preview'
super options, data
viewerOptions =
delegate : this
params :
path : @getOptions().url
de... | class IDE.PreviewPane extends IDE.Pane
constructor: (options = {}, data) ->
options.cssClass = KD.utils.curry 'preview-pane', options.cssClass
options.paneType = 'preview'
super options, data
viewerOptions =
delegate : this
params :
path : @getOptions().url
de... | Update preview pane url and emit location changed event. | Update preview pane url and emit location changed event.
| CoffeeScript | agpl-3.0 | kwagdy/koding-1,rjeczalik/koding,alex-ionochkin/koding,alex-ionochkin/koding,andrewjcasal/koding,kwagdy/koding-1,usirin/koding,kwagdy/koding-1,sinan/koding,mertaytore/koding,andrewjcasal/koding,gokmen/koding,sinan/koding,koding/koding,sinan/koding,koding/koding,kwagdy/koding-1,koding/koding,drewsetski/koding,andrewjcas... |
46ee75bd3e684ab3f49dff70fe89bbaf01c94061 | app/assets/javascripts/popover.js.coffee | app/assets/javascripts/popover.js.coffee | $(document).on 'ready page:load', ->
$("a.popover").click (event) ->
event.preventDefault()
popover_src = $(this).children("img").attr("data-src")
popover_caption = $(this).children("img").attr("alt")
popover_width = $(this).children("img").attr("data-width")
popover_height = $(this).children("... | $(document).on 'ready page:load', ->
$("a.popover").click (event) ->
event.preventDefault()
popover_src = $(this).children("img").attr("data-src")
popover_caption = $(this).children("img").attr("alt")
popover_width = $(this).children("img").attr("data-width")
popover_height = $(this).children("... | Add event parameter to popover close button click | Add event parameter to popover close button click
| CoffeeScript | mit | chrisalley/chris-alley-old,chrisalley/chris-alley-old,chrisalley/chris-alley-rails,chrisalley/chris-alley-rails |
4e2aada69f86085a6b606bb45d52fa851040010f | app/assets/javascripts/buckets.js.coffee | app/assets/javascripts/buckets.js.coffee | $(".js-bucket-list").sortable({
connectWith: ".js-bucket-list"
update: (event, ui) ->
if this == ui.item.parent()[0]
window.target = $(event.target)
bucket_id = target.data("bucket-id")
position = ui.item.index()
console.log bucket_id, position
$.ajax
type: "POST"
... | $ ->
$(".js-bucket-list").sortable({
connectWith: ".js-bucket-list"
update: (event, ui) ->
if this == ui.item.parent()[0]
window.target = $(event.target)
bucket_id = target.data("bucket-id")
position = ui.item.index()
$.ajax
type: "POST"
url: ui.i... | Remove console log and wrap in document start | Remove console log and wrap in document start
| CoffeeScript | mit | jonmagic/i-got-issues,jonmagic/i-got-issues,jonmagic/i-got-issues |
756a433d10402b3ac1f1f04504b4d07d3a86a098 | apps/show/components/follow_artists/index.coffee | apps/show/components/follow_artists/index.coffee | CurrentUser = require '../../../../models/current_user.coffee'
{ Following, FollowButton } = require '../../../../components/follow_button/index.coffee'
module.exports = (artists) ->
user = CurrentUser.orNull()
following = new Following if user
ids = artists.map (artist) ->
$el = $(".artist-follow[data-id='... | Backbone = require 'backbone'
CurrentUser = require '../../../../models/current_user.coffee'
{ Following, FollowButton } = require '../../../../components/follow_button/index.coffee'
module.exports = (artists) ->
user = CurrentUser.orNull()
following = new Following if user
ids = artists.map (artist) ->
$el... | Fix follow on show page | Fix follow on show page
| CoffeeScript | mit | mzikherman/force,erikdstock/force,eessex/force,mzikherman/force,izakp/force,eessex/force,dblock/force,kanaabe/force,damassi/force,erikdstock/force,yuki24/force,cavvia/force-1,erikdstock/force,kanaabe/force,izakp/force,joeyAghion/force,oxaudo/force,cavvia/force-1,cavvia/force-1,izakp/force,yuki24/force,kanaabe/force,ana... |
748409bdb6e0ebe6dcf1270ee58046615756411f | test/acceptance.coffee | test/acceptance.coffee | describe 'acceptance', ->
Given -> @subject = require '../lib/kindly'
context 'sync', ->
When -> @files = @subject.get('test/fixtures')
Then -> expect(@files).to.deep.equal
files: [ 'test/fixtures/baz.quux' , 'test/fixtures/foo.bar']
directories: []
other: []
context 'async', ->
Wh... | describe 'acceptance', ->
Given -> @subject = require '../lib/kindly'
context 'sync', ->
When -> @descriptors = @subject.get('test/fixtures')
Then -> expect(@descriptors.files).to.contain 'test/fixtures/baz.quux'
And -> expect(@descriptors.files).to.contain 'test/fixtures/foo.bar'
context 'async', -... | Order matters on arrays, unfortunately | Order matters on arrays, unfortunately
| CoffeeScript | mit | mantacode/kindly,tandrewnichols/kindly |
f7b2606af8b71d52533922668ad4741c2e0d933d | app/assets/javascripts/tryEvalGD.coffee | app/assets/javascripts/tryEvalGD.coffee | runEvaluation = ->
$('#result').text("Loading...")
$.ajax {
"url": "/jsontest",
"type": "POST",
"data": JSON.stringify({
"language": $('#eval-language').val(),
"code": $('textarea').val()
}),
"dataType": "json",
"contentType": "application/json; charset=utf-8",
"success": (da... | runEvaluation = ->
$('#result').text("Loading...")
$.ajax {
"url": "/api/evaluate",
"type": "POST",
"data": JSON.stringify({
"language": $('#eval-language').val(),
"code": $('textarea').val()
}),
"dataType": "json",
"contentType": "application/json; charset=utf-8",
"success":... | Make /try hit the new endpoint. | Make /try hit the new endpoint.
| CoffeeScript | apache-2.0 | eval-so/frontend,eval-so/frontend |
d112ae8bbb7e852261b09586ae7d56e28949cebb | javascripts/lib.coffee | javascripts/lib.coffee | #= require almond
window.ttm ||= {}
ttm.ClassMixer = (klass)->
klass.build = ->
it = new klass
it.initialize && it.initialize.apply(it, arguments)
it
klass.prototype.klass = klass
klass
define "lib/class_mixer", ->
return ttm.ClassMixer
| #= require almond
window.ttm ||= {}
window.decorators ||= {}
ttm.ClassMixer = (klass)->
klass.build = ->
it = new klass
it.initialize && it.initialize.apply(it, arguments)
it
klass.prototype.klass = klass
klass
define "lib/class_mixer", ->
return ttm.ClassMixer
| Implement decorator pattern for student dashboard. | WIP: Implement decorator pattern for student dashboard.
| CoffeeScript | mit | thinkthroughmath/ttm-coffeescript-math,thinkthroughmath/ttm-coffeescript-math |
e905432373112edc53cabcaac0eff7e6ac8169e2 | scripts/common.coffee | scripts/common.coffee | # A collection of common, simple text response
# commands that don’t require data from elsewhere
#
# Command(s):
# hubot schedule — Return the current stream schedule
# hubot social — Links to Twitter and Facebook
# hubot commands - Shows a current list of commands
# hubot bot - A quick bot a... | # A collection of common, simple text response
# commands that don’t require data from elsewhere
#
# Command(s):
# hubot schedule — Return the current stream schedule
# hubot social — Links to Twitter and Facebook
# hubot commands - Shows a current list of commands
# hubot bot - A quick bot a... | Add points command to command list. | Add points command to command list.
| CoffeeScript | mit | davemcnally/awebot |
b84e06d1a63704d810cd190279de0d1c8d01863b | src/core/components/browser.coffee | src/core/components/browser.coffee | Flow.Browser = (_) ->
_docs = signals []
_sortedDocs = lift _docs, (docs) ->
sortBy docs, (doc) -> -doc.date().getTime()
_hasDocs = lift _docs, (docs) -> docs.length > 0
createNotebookView = (notebook) ->
_name = notebook.name
_date = signal new Date notebook.timestamp_millis
_fromNow = lift ... | Flow.Browser = (_) ->
_docs = signals []
_sortedDocs = lift _docs, (docs) ->
sortBy docs, (doc) -> -doc.date().getTime()
_hasDocs = lift _docs, (docs) -> docs.length > 0
createNotebookView = (notebook) ->
_name = notebook.name
_date = signal new Date notebook.timestamp_millis
_fromNow = lift ... | Improve warning message when loading notebooks | Improve warning message when loading notebooks
| CoffeeScript | mit | h2oai/h2o-flow,junwucs/h2o-flow,h2oai/h2o-flow,nilbody/h2o-flow,nilbody/h2o-flow,junwucs/h2o-flow,printedheart/h2o-flow,printedheart/h2o-flow,printedheart/h2o-flow,junwucs/h2o-flow,nilbody/h2o-flow |
78cc25150f3f35aec85ab401fc7fb9c281350975 | test-integration/helpers/course-select.coffee | test-integration/helpers/course-select.coffee | selenium = require 'selenium-webdriver'
{TestHelper} = require './test-element'
COMMON_ELEMENTS =
courseLink: (appearance, isCoach = false) ->
dataAttr = 'data-appearance'
if appearance?
dataAttr += "='#{appearance}'"
if isCoach
teacherLink = "[#{dataAttr}] > [href*='cc-dashboard']"
... | selenium = require 'selenium-webdriver'
{TestHelper} = require './test-element'
COMMON_ELEMENTS =
courseLink: (appearance, isCoach = false) ->
dataAttr = 'data-appearance'
if appearance?
dataAttr += "='#{appearance}'"
if isCoach
teacherLink = "[#{dataAttr}] > [href*='cc-dashboard']"
... | Add helper method to goto a course by name | Add helper method to goto a course by name
| CoffeeScript | agpl-3.0 | openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js |
7b051d7446da22c19d07949ecbcdfeb1808be5b6 | src/theme-converter.coffee | src/theme-converter.coffee | path = require 'path'
url = require 'url'
request = require 'request'
fs = require './fs'
TextMateTheme = require './text-mate-theme'
# Convert a TextMate theme to an Atom theme
module.exports =
class ThemeConverter
constructor: (@sourcePath, destinationPath) ->
@destinationPath = path.resolve(destinationPath)
... | path = require 'path'
url = require 'url'
fs = require './fs'
request = require './request'
TextMateTheme = require './text-mate-theme'
# Convert a TextMate theme to an Atom theme
module.exports =
class ThemeConverter
constructor: (@sourcePath, destinationPath) ->
@destinationPath = path.resolve(destinationPath)... | Use request helper in ThemeConverter class | Use request helper in ThemeConverter class
| CoffeeScript | mit | atom/apm,VandeurenGlenn/apm,pusateri/apm,fscherwi/apm,bronson/apm,bcoe/apm,Nikpolik/apm,pusateri/apm,jlord/apm,jlord/apm,AtaraxiaEta/apm,ethanp/apm,bcoe/apm,pusateri/apm,atom/apm,AtaraxiaEta/apm,VandeurenGlenn/apm,fscherwi/apm,ethanp/apm,VandeurenGlenn/apm,bcoe/apm,ethanp/apm,gutsy/apm,Nikpolik/apm,ethanp/apm,Vandeuren... |
9c1ca86cb06531f01ca626bba784af7ddb23e8e6 | src/browser/atom-protocol-handler.coffee | src/browser/atom-protocol-handler.coffee | app = require 'app'
fs = require 'fs'
path = require 'path'
protocol = require 'protocol'
# Handles requests with 'atom' protocol.
#
# It's created by {AtomApplication} upon instantiation, and is used to create a
# custom resource loader by adding the 'atom' custom protocol.
module.exports =
class AtomProtocolHandler
... | app = require 'app'
fs = require 'fs'
path = require 'path'
protocol = require 'protocol'
# Handles requests with 'atom' protocol.
#
# It's created by {AtomApplication} upon instantiation and is used to create a
# custom resource loader for 'atom://' URLs.
#
# The following directories are searched in order:
# * ~/.... | Load atom://assets/ urls from ~/.atom/assets | Load atom://assets/ urls from ~/.atom/assets
| CoffeeScript | mit | PKRoma/atom,mrodalgaard/atom,kjav/atom,FoldingText/atom,abcP9110/atom,tanin47/atom,g2p/atom,atom/atom,mnquintana/atom,champagnez/atom,paulcbetts/atom,GHackAnonymous/atom,ardeshirj/atom,YunchengLiao/atom,ralphtheninja/atom,bcoe/atom,codex8/atom,vhutheesing/atom,bj7/atom,qskycolor/atom,gisenberg/atom,florianb/atom,yangch... |
c43d3f9d444f99f5ecb568d67ca60dadc183c092 | coffee/db/sentry.coffee | coffee/db/sentry.coffee | Client = require('raven').Client
Client.prototype.captureDocumentError = (req, err) ->
@captureMessage "#{req.type}: #{err.details[0].message}",
level: 'warning'
extra: req: req, err: err
module.exports = new Client process.env.SENTRY_DNS
module.exports.patchGlobal (id, err) ->
console.error 'Uncaught Ex... | Client = require('raven').Client
Client.prototype.captureDocumentError = (req, err) ->
@captureMessage "#{req.type}: #{err.details[0].message}",
level: 'warning'
extra: req: req, err: err
module.exports = new Client process.env.SENTRY_DNS
if process.env.NODE_ENV isnt 'development'
module.exports.patchGlo... | Disable logging to Sentry in development | Disable logging to Sentry in development
| CoffeeScript | mit | Turbasen/Turbasen,Turistforeningen/Turbasen |
baf6795195330df40cd7a39efff389751a3629f3 | src/browser/atom-protocol-handler.coffee | src/browser/atom-protocol-handler.coffee | app = require 'app'
fs = require 'fs'
path = require 'path'
protocol = require 'protocol'
# Handles requests with 'atom' protocol.
#
# It's created by {AtomApplication} upon instantiation and is used to create a
# custom resource loader for 'atom://' URLs.
#
# The following directories are searched in order:
# * ~/.... | app = require 'app'
fs = require 'fs'
path = require 'path'
protocol = require 'protocol'
# Handles requests with 'atom' protocol.
#
# It's created by {AtomApplication} upon instantiation and is used to create a
# custom resource loader for 'atom://' URLs.
#
# The following directories are searched in order:
# * ~/.... | Use ATOM_HOME env var in protocol handler | Use ATOM_HOME env var in protocol handler
Closes #5501
| CoffeeScript | mit | woss/atom,darwin/atom,YunchengLiao/atom,dijs/atom,scippio/atom,woss/atom,dannyflax/atom,ardeshirj/atom,ilovezy/atom,matthewclendening/atom,bsmr-x-script/atom,Galactix/atom,ironbox360/atom,liuderchi/atom,bolinfest/atom,tony612/atom,KENJU/atom,jjz/atom,liuderchi/atom,gontadu/atom,AlisaKiatkongkumthon/atom,n-riesco/atom,d... |
dbbdb00bbe0cff6c4bc6a87fb41073fb18bd25b0 | src/ext/components/predict-output.coffee | src/ext/components/predict-output.coffee | H2O.PredictOutput = (_, prediction) ->
{ frame, model } = prediction
_predictionTable = _.inspect 'prediction', prediction
inspect = ->
#XXX get this from prediction table
_.insertAndExecuteCell 'cs', "inspect predict #{stringify model.key}, #{stringify frame.key.name}"
predictionTable: _predictionTa... | H2O.PredictOutput = (_, prediction) ->
{ frame, model } = prediction
_predictionTable = _.inspect 'prediction', prediction
inspect = ->
#XXX get this from prediction table
_.insertAndExecuteCell 'cs', "inspect getPrediction #{stringify model.key}, #{stringify frame.key.name}"
predictionTable: _predic... | Use getPrediction() instead of predict() during inspection | Use getPrediction() instead of predict() during inspection
| CoffeeScript | mit | junwucs/h2o-flow,h2oai/h2o-flow,junwucs/h2o-flow,printedheart/h2o-flow,h2oai/h2o-flow,nilbody/h2o-flow,nilbody/h2o-flow,printedheart/h2o-flow,junwucs/h2o-flow,printedheart/h2o-flow,nilbody/h2o-flow |
51b0acc35ae648635d3605de69fe90da556465c5 | config.cson | config.cson | "*":
Zen:
softWrap: false
width: 160
core:
disabledPackages: [
"notebook"
"language-gfm"
"wrap-guide"
]
telemetryConsent: "limited"
themes: [
"atom-dark-ui"
"atom-dark-syntax"
]
"default-language":
defaultLanguage: "Pandoc markdown"
editor:
fontS... | "*":
Zen:
softWrap: false
width: 160
core:
disabledPackages: [
"notebook"
"language-gfm"
"wrap-guide"
]
telemetryConsent: "limited"
themes: [
"one-dark-ui"
"solarized-dark-syntax"
]
"default-language":
defaultLanguage: "Pandoc markdown"
editor:
f... | Set Solarized Dark as editor theme and One Dark as UI theme | Set Solarized Dark as editor theme and One Dark as UI theme
| CoffeeScript | mit | fabiofortkamp/thermo-atom |
e75c6deb6430c854c37c87339385dcbf4b0e78b8 | src/user/model.coffee | src/user/model.coffee | _ = require 'underscore'
React = require 'react'
EventEmitter2 = require 'eventemitter2'
Course = require '../course/model'
api = require '../api'
BLANK_USER =
is_admin: false
is_content_analyst: false
is_customer_service: false
name: null
profile_url: null
User =
channel: new EventEmitter2 wildcard: tru... | _ = require 'underscore'
React = require 'react'
EventEmitter2 = require 'eventemitter2'
Course = require '../course/model'
api = require '../api'
BLANK_USER =
is_admin: false
is_content_analyst: false
is_customer_service: false
name: null
profile_url: null
courses: []
User =
channel: new EventEmitter2... | Add findOrCreate and a method for course updates | Add findOrCreate and a method for course updates
| CoffeeScript | agpl-3.0 | openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js |
bf8d5a9462539c4a7c71908a3f8fd35f674f2bce | src/watch.coffee | src/watch.coffee | fs = require 'fs'
path = require 'path'
vm = require './vm'
walk = require './walk'
{debounce, parseArgs} = require './utils'
module.exports = parseArgs (basePath, opts, cb) ->
{relative, excluded} = opts
opts.patch ?= true
opts.recurse ?= true
opts.watchSymlink ?= false
modules ... | fs = require 'fs'
path = require 'path'
vm = require './vm'
walk = require './walk'
{debounce, parseArgs} = require './utils'
module.exports = parseArgs (basePath, opts, cb) ->
{relative, excluded} = opts
opts.patch ?= false
opts.recurse ?= true
opts.watchSymlink ?= false
modules ... | Disable vm patching by default. | Disable vm patching by default.
| CoffeeScript | mit | zeekay/vigil |
319138269e2b2bca47416794c7a1c5f35f96f67d | src/app/projects/states/dashboard/directives/task-dashboard/directives/task-plagiarism-card/task-plagiarism-card.coffee | src/app/projects/states/dashboard/directives/task-dashboard/directives/task-plagiarism-card/task-plagiarism-card.coffee | angular.module('doubtfire.projects.states.dashboard.directives.task-dashboard.directives.task-plagiarism-card', [])
#
# plagiarism of task information
#
.directive('taskPlagiarismCard', ->
restrict: 'E'
templateUrl: 'projects/states/dashboard/directives/task-dashboard/directives/task-plagiarism-card/task-plagiarism... | angular.module('doubtfire.projects.states.dashboard.directives.task-dashboard.directives.task-plagiarism-card', [])
#
# plagiarism of task information
#
.directive('taskPlagiarismCard', ->
restrict: 'E'
templateUrl: 'projects/states/dashboard/directives/task-dashboard/directives/task-plagiarism-card/task-plagiarism... | Use function pointer for plagiarism view report | FIX: Use function pointer for plagiarism view report
| CoffeeScript | agpl-3.0 | doubtfire-lms/doubtfire-web,alexcu/doubtfire-web,doubtfire-lms/doubtfire-web,doubtfire-lms/doubtfire-web,doubtfire-lms/doubtfire-web,alexcu/doubtfire-web |
de38106746980f91518946053b327ce55c8dd3a3 | app/assets/javascripts/overlay.js.coffee | app/assets/javascripts/overlay.js.coffee | class @Overlay
constructor: (selector, options) ->
@selector = selector
@options = options
self = this
@overlay = $("<div class='overlay'></div>")
$(@selector).click (event) ->
event.preventDefault()
self.open(this)
$(document).on 'keyup', (event) ->
return unless event.whi... | class @Overlay
constructor: (selector, options) ->
@selector = selector
@options = options
self = this
@overlay = $("<div class='overlay'></div>")
$('body').append(@overlay)
$(@selector).click (event) ->
event.preventDefault()
self.open(this)
$(document).on 'keyup', (event) -... | Allow overlay to be opened multiple times | Allow overlay to be opened multiple times
| CoffeeScript | mit | RobinClowers/photo-album,RobinClowers/photo-album,RobinClowers/photo-album,RobinClowers/photo-album |
de51068a9ed42222daa9b420d0637f096b991a8e | client/Main/navigation/navigationmachineitem.coffee | client/Main/navigation/navigationmachineitem.coffee | class NavigationMachineItem extends JView
{Running, Stopped} = Machine.State
stateClasses = ''
stateClasses += "#{state.toLowerCase()} " for state in Object.keys Machine.State
constructor:(options = {}, data)->
machine = data
@alias = machine.getName()
path ... | class NavigationMachineItem extends JView
{Running, Stopped} = Machine.State
stateClasses = ''
stateClasses += "#{state.toLowerCase()} " for state in Object.keys Machine.State
constructor:(options = {}, data)->
machine = data
@alias = machine.getName()
path ... | Update machine label on UI when machine domain updated. | NavigationMachineItem: Update machine label on UI when machine domain updated.
| CoffeeScript | agpl-3.0 | cihangir/koding,alex-ionochkin/koding,mertaytore/koding,usirin/koding,mertaytore/koding,rjeczalik/koding,andrewjcasal/koding,szkl/koding,kwagdy/koding-1,szkl/koding,cihangir/koding,drewsetski/koding,andrewjcasal/koding,alex-ionochkin/koding,mertaytore/koding,gokmen/koding,jack89129/koding,sinan/koding,jack89129/koding,... |
f9e465494ba3d9f97f2883fee43fb67de7633215 | core/app/backbone/views/react_feed_selection.coffee | core/app/backbone/views/react_feed_selection.coffee | window.ReactFeedSelection = React.createClass
displayName: 'ReactFeedSelection'
mixins: [UpdateOnSignInOrOutMixin]
getInitialState: ->
feedChoice: 'global'
feeds:
global: new GlobalFeedActivities
personal: new PersonalFeedActivities
_handleFeedChoiceChange: (e) ->
if(e.target.checked)... | window.ReactFeedSelection = React.createClass
displayName: 'ReactFeedSelection'
mixins: [UpdateOnSignInOrOutMixin]
getInitialState: ->
feedChoice: 'global'
feeds:
global: new GlobalFeedActivities
personal: new PersonalFeedActivities
_handleFeedChoiceChange: (e) ->
if(e.target.checked)... | Hide browser extension button on feed when kennisland | Hide browser extension button on feed when kennisland
| CoffeeScript | mit | Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core,daukantas/factlink-core,daukantas/factlink-core |
ecb29765980b72090969002a212ac95593e251c0 | lineman/app/models/group_records_interface.coffee | lineman/app/models/group_records_interface.coffee | angular.module('loomioApp').factory 'GroupRecordsInterface', (BaseRecordsInterface, GroupModel) ->
class GroupRecordsInterface extends BaseRecordsInterface
model: GroupModel
fetchByParent: (parentGroup) ->
@fetch
path: "#{parentGroup.id}/subgroups"
cacheKey: "subgroupsFor#{parentGroup.k... | angular.module('loomioApp').factory 'GroupRecordsInterface', (BaseRecordsInterface, GroupModel) ->
class GroupRecordsInterface extends BaseRecordsInterface
model: GroupModel
fetchByParent: (parentGroup) ->
@fetch
path: "#{parentGroup.id}/subgroups"
cacheKey: "subgroupsFor#{parentGroup.k... | Make archive group work again | Make archive group work again
| CoffeeScript | agpl-3.0 | wangjun/loomio,juliagra/DBCloomio,juliagra/loomio,annewchen/loomio,sicambria/loomio,gvalerin/loomio,codingnutty/loomio,mhjb/loomio,FSFTN/Loomio,juliagra/DBCloomio,mlarghydracept/loomio,loomio/loomio,sicambria/loomio,aca13jmf/loomio,juliagra/DBCloomio,piratas-ar/loomio,loomio/loomio,codingnutty/loomio,gvalerin/loomio,mh... |
2fbd88f1a8fbf02601a1121a88096271279bfca2 | src/scripts/hubot-zoi.coffee | src/scripts/hubot-zoi.coffee | # Description:
# 今日も一日頑張るぞい!
#
# Commands:
# hubot zoi - 今日も一日頑張る
#
# Author:
# Uchio KONDO
request = require 'request'
uri = 'http://zoi.herokuapp.com/js/services.js'
getZois = (cb) ->
request(uri, (err, response, body) ->
if err
cb.onError(err)
else
zois = body.match(/image: 'https:... | # Description:
# 今日も一日頑張るぞい!
#
# Commands:
# hubot zoi - 今日も一日頑張る
#
# Author:
# Uchio KONDO
request = require 'request'
uri = 'http://zoi.herokuapp.com/js/services.js'
getZois = (cb) ->
request(uri, (err, response, body) ->
if err
cb.onError(err)
else
zois = body.match(/image: 'https:... | Remove :large suffix to usefully expand on limechat | Remove :large suffix to usefully expand on limechat
| CoffeeScript | mit | udzura/hubot-zoi |
e337c6d8e34ee8645e5707449f9a6ce392a9bedb | lib/tooltip-view.coffee | lib/tooltip-view.coffee | # Source: https://github.com/lukehoban/atom-ide-flow/blob/master/lib/tooltip-view.coffee
{$, View} = require 'atom'
module.exports = (Main)->
class TooltipView extends View
@content: ->
@div class: 'ide-hack-tooltip'
initialize: (@rect, text = null) ->
@text(text) if text?
$(document.body)... | # Source: https://github.com/lukehoban/atom-ide-flow/blob/master/lib/tooltip-view.coffee
{$, View} = require 'atom'
module.exports = (Main)->
class TooltipView extends View
@content: ->
@div class: 'ide-hack-tooltip'
initialize: (@rect, @LeMessage) ->
@append LeMessage
$(document.body).app... | Append HTML instead of Text | :bug: Append HTML instead of Text
| CoffeeScript | mit | steelbrain/Atom-Hack |
45b1513b092981a7bb526cf0c4079ccd1bf5d012 | app/assets/javascripts/action_cable_notifications/default_callbacks.coffee | app/assets/javascripts/action_cable_notifications/default_callbacks.coffee | # Default callbacks for internal storage of received packets
class CableNotifications.Store.DefaultCallbacks
constructor: (@collections) ->
# Callbacks
##################################################
collection_remove: (packet, collection) ->
console.warn 'Method not implemented: collection_remove '
... | # Default callbacks for internal storage of received packets
class CableNotifications.Store.DefaultCallbacks
constructor: (@collections) ->
# Callbacks
##################################################
collection_remove: (packet, collection) ->
console.warn 'Method not implemented: collection_remove '
... | Fix default_callback wrong method names | Fix default_callback wrong method names
| CoffeeScript | mit | bys-control/action_cable_notifications,bys-control/action_cable_notifications,bys-control/action_cable_notifications |
ed271fee0fd829c08fc92a171d303adac62e570a | src/app/fold.coffee | src/app/fold.coffee | Range = require 'range'
Point = require 'point'
module.exports =
class Fold
@idCounter: 1
renderer: null
startRow: null
endRow: null
constructor: (@renderer, @startRow, @endRow) ->
@id = @constructor.idCounter++
destroy: ->
@renderer.destroyFold(this)
getRange: ->
throw "Don't worry about... | Range = require 'range'
Point = require 'point'
module.exports =
class Fold
@idCounter: 1
renderer: null
startRow: null
endRow: null
constructor: (@renderer, @startRow, @endRow) ->
@id = @constructor.idCounter++
destroy: ->
@renderer.destroyFold(this)
getBufferDelta: ->
new Point(@endRow ... | Remove unused methods from Fold | Remove unused methods from Fold | CoffeeScript | mit | rookie125/atom,hagb4rd/atom,fredericksilva/atom,YunchengLiao/atom,charleswhchan/atom,alfredxing/atom,Dennis1978/atom,GHackAnonymous/atom,AlbertoBarrago/atom,alexandergmann/atom,ralphtheninja/atom,sekcheong/atom,bcoe/atom,sotayamashita/atom,NunoEdgarGub1/atom,russlescai/atom,johnhaley81/atom,russlescai/atom,abcP9110/ato... |
fdcd60ecf4534e9ea031ad686182ae4239c865df | src/helpers/durations.coffee | src/helpers/durations.coffee | moment = require 'moment'
twix = require 'twix'
_ = require 'underscore'
durations =
create: (startTime, endTime) ->
moment(startTime).twix(endTime)
| moment = require 'moment'
twix = require 'twix'
_ = require 'underscore'
{TimeStore} = require '../flux/time'
module.exports =
create: (startTime, endTime) ->
moment(startTime).twix(endTime)
isPastDue: ({due_at}) ->
moment(TimeStore.getNow()).isAfter(due_at)
| Add isPastDue method and export methods | Add isPastDue method and export methods
I don't think this actually worked before? It didn't export anything
| CoffeeScript | agpl-3.0 | openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js |
fbd1c9a8dfaf9b14fe9312d0b1784eae72274cc7 | index.coffee | index.coffee | requirejs.config({
paths: {
fabric: [
'lib/fabric']
}
})
define ['game', 'synchronizedtime', 'position', 'lib/fabric'], (Game, SynchronizedTime, Position) -> # Fabric is deliberately not set as an argument
console.log "Fabric: ", fabric
console.log "Position: ", new Position([1,2], 0, 5)
canvas = n... | requirejs.config({
paths: {
fabric: [
'lib/fabric']
}
})
define ['game', 'synchronizedtime', 'position', 'lib/fabric'], (Game, SynchronizedTime, Position) -> # Fabric is deliberately not set as an argument
console.log "Fabric: ", fabric
console.log "Position: ", new Position([1,2], 0, 5)
canvas = n... | Set browser to true on Game class when in browser | Set browser to true on Game class when in browser
| CoffeeScript | agpl-3.0 | Aaron1011/beamwars |
9f2e20e5a38912fa24e04930ec85391b375b99de | app/assets/javascripts/routing.js.coffee | app/assets/javascripts/routing.js.coffee |
loadFragment = (locale, university, controller, param, modal) ->
controller ?= ""
param ?= ""
url = "/#{locale}/#{university}"
if controller
url += "/#{controller}"
if param
url += "/#{param}"
url += ".fragment"
contentWrap = $('#page-content')
cached.getDOM url, (error, dom) ->
... |
loadFragment = (locale, university, controller, param, modal) ->
controller ?= ""
param ?= ""
getParams = null
url = "/#{locale}/#{university}"
if controller
url += "/#{controller}"
if param
rest = param.split('?')
getParams = rest[1]
url += "/#{rest[0]}"
url += ".fragment"... | Support get parameters for fragment routing | Support get parameters for fragment routing | CoffeeScript | mit | experq/hhj,ayystudentunion/hhj,ayystudentunion/hhj,experq/hhj,ayystudentunion/hhj,experq/hhj,ayystudentunion/hhj,experq/hhj |
dc3cd7a534a089ec68b347aae871efb6e671e77d | src/trix/config/selection_elements.coffee | src/trix/config/selection_elements.coffee | {makeElement, defer} = Trix
prototypes =
cursorTarget:
makeElement
tagName: "span"
textContent: Trix.ZERO_WIDTH_SPACE
data:
trixSelection: true
trixCursorTarget: true
trixSerialize: false
Trix.extend
selectionElements:
selector: "[data-trix-selection]"
cssTex... | {makeElement, defer} = Trix
prototypes =
cursorTarget:
makeElement
tagName: "span"
textContent: Trix.ZERO_WIDTH_SPACE
data:
trixSelection: true
trixCursorTarget: true
trixSerialize: false
Trix.extend
selectionElements:
selector: "[data-trix-selection]"
cssTex... | Make sure selection elements have 0 line height to not offset line height. | Make sure selection elements have 0 line height to not offset line height.
| CoffeeScript | mit | urossmolnik/trix,basecamp/trix,ChenMichael/trix,urossmolnik/trix,ChenMichael/trix,basecamp/trix,basecamp/trix,GabiGrin/trix,GabiGrin/trix,GabiGrin/trix,basecamp/trix,ChenMichael/trix,urossmolnik/trix |
8b4277cb9e4b101a6cd1b2323942749f54ac4983 | src/scripts/lib/zooniverse/config.coffee | src/scripts/lib/zooniverse/config.coffee | define (require, exports, module) ->
# This object stores generic information about the app
# that might need to be available globally.
config = {}
# `set` is a shortcut for setting a bunch of properties by passing in an object.
# Order isn't guaranteed. Call it multiple times if order is important.
config... | define (require, exports, module) ->
# This object stores generic information about the app
# that might need to be available globally.
config = {}
# `set` is a shortcut for setting a bunch of properties by passing in an object.
# Order isn't guaranteed. Call it multiple times if order is important.
config... | Use dev.zooniverse.org for local development | Use dev.zooniverse.org for local development
| CoffeeScript | apache-2.0 | zooniverse/Bat-Detective,zooniverse/Bat-Detective,zooniverse/Bat-Detective |
b41604c4c1b3142c81f78b5e8831df6dc5a65b0c | src/coffee/AnimationSequence.coffee | src/coffee/AnimationSequence.coffee | # An animation sequence is an array of frames where each frame includes:
# * A pattern
# * A duration (ms)
class AnimationSequence
# Initializes an animation sequence with a pattern and a duration for that pattern
# @param pattern A single pattern or array of patterns
# @param duration A single duration or array... | # An animation sequence is an array of frames where each frame includes:
# * A pattern
# * A duration (ms)
class AnimationSequence
# Initializes an animation sequence with a pattern and a duration for that pattern
# @param pattern A single pattern or array of patterns
# @param duration A single duration or array... | Add extra line at end of file | Add extra line at end of file
| CoffeeScript | mit | grant/a-moment,grant/a-moment |
564ceab7d53a1098afe8c86f7a81be2378580474 | server/coffee/src/schema_validator.coffee | server/coffee/src/schema_validator.coffee | JSV = require("JSV").JSV
class SchemaValidator
constructor: (@schema_manager) ->
@jsv = JSV.createEnvironment("json-schema-draft-03")
for schema in @schema_manager.schemas
@jsv.createSchema(schema, false, schema.id)
validate: (identifier, data) ->
schema = @schema_manager.find(identifier)
i... | JSV = require("JSV").JSV
class SchemaValidator
constructor: (@schema_manager) ->
@jsv = JSV.createEnvironment("json-schema-draft-03")
for schema in @schema_manager.schemas
@jsv.createSchema(schema, false, schema.id)
validate: (identifier, data) ->
schema = @schema_manager.find(identifier)
i... | Set default data property in schema validation when formatting | Set default data property in schema validation when formatting
| CoffeeScript | mit | GemHQ/patchboard,patchboard/patchboard,GemHQ/patchboard,patchboard/patchboard |
4ba0f9377934368ef072cf51304c54269a14e4c8 | spec/spec-helper.coffee | spec/spec-helper.coffee | completionDelay = 100
exports.triggerAutocompletion = (editor, moveCursor = true, char = 'f') ->
if moveCursor
editor.moveToBottom()
editor.moveToBeginningOfLine()
editor.insertText(char)
exports.waitForAutocomplete()
exports.waitForAutocomplete = ->
advanceClock(completionDelay)
waitsFor 'autocompl... | completionDelay = 100
beforeEach ->
spyOn(atom.views, 'readDocument').andCallFake (fn) -> fn()
spyOn(atom.views, 'updateDocument').andCallFake (fn) -> fn()
exports.triggerAutocompletion = (editor, moveCursor = true, char = 'f') ->
if moveCursor
editor.moveToBottom()
editor.moveToBeginningOfLine()
edit... | Make updateDocument and readDocument sync | Make updateDocument and readDocument sync
| CoffeeScript | mit | atom/autocomplete-plus,brntbeer/autocomplete-plus,atom-community/autocomplete-plus,wakermahmud/autocomplete-plus,lestat220255/autocomplete-plus,Lyleo/autocomplete-plus |
28b99cb5475937067cd0dce60c89ee947a7482c0 | keymaps/table-edit.cson | keymaps/table-edit.cson | # Keybindings require three things to be fully defined: A selector that is
# matched against the focused element, the keystroke and the command to
# execute.
#
# Below is a basic keybinding which registers on all platforms by applying to
# the root workspace element.
# For more detailed documentation see
# https://ato... | # Keybindings require three things to be fully defined: A selector that is
# matched against the focused element, the keystroke and the command to
# execute.
#
# Below is a basic keybinding which registers on all platforms by applying to
# the root workspace element.
# For more detailed documentation see
# https://ato... | Add keymap for new selection expansion | Add keymap for new selection expansion
| CoffeeScript | mit | abe33/atom-tablr |
8757835ecfb381e8a7f2acdc96e59856cd9c1a7e | coffee/models/base/model.coffee | coffee/models/base/model.coffee | define [
"chaplin"
"lib/utils"
], (Chaplin, utils) ->
"use strict"
class Model extends Chaplin.Model
urlRoot: utils.bnwUrl "/api"
apiCall: (url = @url(), data = undefined) ->
reqData = if data? then data else @query
$.ajax
url: url
type: if data? then "POST" else "GET"
... | define [
"jquery"
"chaplin"
"lib/utils"
], ($, Chaplin, utils) ->
"use strict"
class Model extends Chaplin.Model
urlRoot: utils.bnwUrl "/api"
apiCall: (url = @url(), data = undefined) ->
deferred = $.Deferred()
promise = deferred.promise()
reqData = if data? then data else @query
... | Fix errors appearing after long requests | Fix errors appearing after long requests
| CoffeeScript | cc0-1.0 | border-radius/meow-anon,Kagami/bnw-meow,border-radius/meow-anon |
a71f8d36cec7a7be2804c2a345a395b6b00ddbfa | app.coffee | app.coffee | express = require 'express'
stylus = require 'stylus'
assets = require 'connect-assets'
app = express.createServer()
app.use assets()
app.set 'view engine', 'jade'
app.get '/', (req, resp) -> resp.render 'index'
app.get '/:filename', (req, resp) ->
content = req.query['content']
if (content and content.length > ... | express = require 'express'
stylus = require 'stylus'
assets = require 'connect-assets'
app = express.createServer()
app.use assets()
app.set 'view engine', 'jade'
app.get '/', (req, resp) -> resp.render 'index'
app.get '/:filename.:extension', (req, resp) ->
content = req.param['content']
if (content and conten... | Improve how params and routes are looked up | Improve how params and routes are looked up
| CoffeeScript | mit | joshmcarthur/savefile |
8294f126b315517eea86e7946e42f209d0fbf3b4 | client/controllers/users.coffee | client/controllers/users.coffee | angular.module('gi.security').controller 'usersController'
, ['$scope', '$location', 'User', 'Auth'
, ($scope, $location, User, Auth) ->
$scope.newUser = User.create()
$scope.currentView = 'list'
$scope.getData = () ->
User.query (results) ->
$scope.users = results
$scope.selectedUser = $scope.u... | angular.module('gi.security').controller 'usersController'
, ['$scope', '$location', 'User', 'Auth'
, ($scope, $location, User, Auth) ->
$scope.newUser = {}
$scope.currentView = 'list'
$scope.getData = () ->
User.query (results) ->
$scope.users = results
$scope.selectedUser = $scope.users[0]
... | Remove deprecated User.create{} method call | Remove deprecated User.create{} method call
| CoffeeScript | apache-2.0 | GoIncremental/gi-security,GoIncremental/gi-security |
568e9014a4ea67b1b9c04f2f5b395f0ba3792794 | controllers/time_entries.coffee | controllers/time_entries.coffee | crypto = require 'crypto'
_ = require 'underscore'
Singleton = require 'singleton'
Riak = require "#{__dirname}/../db/riak"
TimeEntry = require "#{__dirname}/../models/time_entry"
class TimeEntriesController extends Singleton
bucket: 'time_entries'
idGen: ()->
sha = crypto.createHash 'sha1'
_.each argumen... | crypto = require 'crypto'
_ = require 'underscore'
Singleton = require 'singleton'
Riak = require "#{__dirname}/../db/riak"
TimeEntry = require "#{__dirname}/../models/time_entry"
class TimeEntriesController extends Singleton
bucket: 'time_entries'
idGen: ()->
sha = crypto.createHash 'sha1'
_.each argumen... | Send back the original time entry | Send back the original time entry
| CoffeeScript | bsd-3-clause | t3mpus/tempus-api |
e3a1cf9182fb2c1a05a511aaf184e67f7e5f92dc | app/assets/javascripts/app_core.js.coffee | app/assets/javascripts/app_core.js.coffee | require ['jquery', 'lib/core/base', 'flamsteed', 'lib/utils/scroll_perf', 'polyfills/function_bind', 'trackjs'], ($, Base, _FS, ScrollPerf) ->
$ ->
base = new Base()
new ScrollPerf
window.lp.fs = new _FS({events: window.lp.fs.buffer, u: $.cookies.get('lpUid')})
require ['sailthru'], ->
Sailthru.... | require ['jquery', 'lib/core/base', 'flamsteed', 'lib/utils/scroll_perf', 'polyfills/function_bind', 'trackjs'], ($, Base, _FS, ScrollPerf) ->
$ ->
base = new Base()
new ScrollPerf
# Currently we can't serve Flamsteed over https because of f.staticlp.com
# New community is using this file rather than... | Remove flamsteed from secure pages | Remove flamsteed from secure pages
| CoffeeScript | mit | lonelyplanet/rizzo,Lostmyname/rizzo,Lostmyname/rizzo,Lostmyname/rizzo,lonelyplanet/rizzo,Lostmyname/rizzo,Lostmyname/rizzo,lonelyplanet/rizzo,lonelyplanet/rizzo,lonelyplanet/rizzo |
86ec28203d8f6f0a7e0bc580ff0e0f18d7d39789 | app/assets/javascripts/startups.js.coffee | app/assets/javascripts/startups.js.coffee | $ ->
$body = $('body')
bodyClass = $body.attr 'class'
routes = ['startups-new', 'startups-edit']
if bodyClass in ['startups-new', 'startups-edit']
$markets = $("#startup_market_list")
$('.upload-photo').click (event) ->
event.preventDefault()
$('#startup_image').cli... | $ ->
$body = $('body')
bodyClass = $body.attr 'class'
routes = ['startups-new', 'startups-edit']
if bodyClass in ['startups-new', 'startups-edit']
$markets = $("#startup_market_list")
$('.upload-photo').click (event) ->
event.preventDefault()
$('#startup_image').cli... | Add reset company image behavior for Startups.coffee | Add reset company image behavior for Startups.coffee
| CoffeeScript | mit | SoPR/sopr-platform,SoPR/sopr-platform |
73f0eda99367337808f05b57cdc1a352e94e27a3 | coffee/cilantro/ui/concept/columns.coffee | coffee/cilantro/ui/concept/columns.coffee | define [
'../../core'
'tpl!templates/views/columns.html'
'plugins/jquery-ui'
], (c, templates...) ->
| define [
'../../core'
'tpl!templates/views/columns-avail.html'
'tpl!templates/views/columns-select.html'
'tpl!templates/views/columns-selected.html'
'plugins/jquery-ui'
], (c, templates...) ->
| Include templates in column.coffee deps. | Include templates in column.coffee deps.
| CoffeeScript | bsd-2-clause | chop-dbhi/cilantro,chop-dbhi/cilantro,chop-dbhi/cilantro |
15b1f7d0f70ee786930457973217a6dad79a4ad3 | app/assets/javascripts/date_chooser.coffee | app/assets/javascripts/date_chooser.coffee | root = exports ? this
class DateChooser
constructor: (chooser) ->
@chooser = chooser
selectors = chooser.find(".date-chooser-select") # Today/Tomorrow selection
initialDate = selectors.data("initial-date")
@dateDisplay = chooser.find(".date-chooser-display")
@values = chooser.find(".date-chooser... | root = exports ? this
class DateChooser
constructor: (chooser) ->
@chooser = chooser
selectors = chooser.find(".date-chooser-select") # Today/Tomorrow selection
initialDate = selectors.data("initial-date")
@dateDisplay = chooser.find(".date-chooser-display")
@values = chooser.find(".date-chooser... | Add on click event only once to each toggle element. | Add on click event only once to each toggle element.
| CoffeeScript | mit | ministryofjustice/defence-request-service,ministryofjustice/defence-request-service,ministryofjustice/defence-request-service,ministryofjustice/defence-request-service |
99b0a3265de0ffead017bab49370af0fb8239a98 | spec/linter-behavior-spec.coffee | spec/linter-behavior-spec.coffee | describe 'Linter Behavior', ->
linter = null
linterState = null
bottomContainer = null
trigger = (el, name) ->
event = document.createEvent('HTMLEvents');
event.initEvent(name, true, false);
el.dispatchEvent(event);
beforeEach ->
waitsForPromise ->
atom.packages.activatePackage('linter... | describe 'Linter Behavior', ->
linter = null
linterState = null
bottomContainer = null
trigger = (el, name) ->
event = document.createEvent('HTMLEvents');
event.initEvent(name, true, false);
el.dispatchEvent(event);
beforeEach ->
waitsForPromise ->
atom.packages.activatePackage('linter... | Add spec for visibility being toggled on tab double click | :new: Add spec for visibility being toggled on tab double click
| CoffeeScript | mit | AtomLinter/Linter,elkeis/linter,UltCombo/linter,atom-community/linter,levity/linter,JohnMurga/linter,shawninder/linter,DanPurdy/linter,e-jigsaw/Linter,steelbrain/linter,blakeembrey/linter,AsaAyers/linter,Arcanemagus/linter |
49ed7f84e1319bcfb9504fb9d63436bee0d7241b | lib/minimap-highlight-selected.coffee | lib/minimap-highlight-selected.coffee | {CompositeDisposable} = require 'event-kit'
class MinimapHighlightSelected
constructor: ->
@subscriptions = new CompositeDisposable
activate: (state) ->
@highlightSelectedPackage = atom.packages.getLoadedPackage('highlight-selected')
@minimapPackage = atom.packages.getLoadedPackage('minimap')
ret... | {CompositeDisposable} = require 'event-kit'
class MinimapHighlightSelected
constructor: ->
@subscriptions = new CompositeDisposable
activate: (state) ->
@highlightSelectedPackage = atom.packages.getLoadedPackage('highlight-selected')
@minimapPackage = atom.packages.getLoadedPackage('minimap')
ret... | Add version test for minimap v3 | Add version test for minimap v3
| CoffeeScript | mit | atom-minimap/minimap-highlight-selected |
9f31f9a76b30388fb3bf4984a7fd74c27b4863cc | src/packages/collaboration/lib/bootstrap.coffee | src/packages/collaboration/lib/bootstrap.coffee | require 'atom'
require 'window'
{createPeer, connectDocument} = require './session-utils'
{createSite, Document} = require 'telepath'
window.setDimensions(x: 0, y: 0, width: 800, height: 800)
atom.show()
peer = createPeer()
{sessionId} = atom.getLoadSettings()
connection = peer.connect(sessionId, reliable: true)
conn... | require 'atom'
require 'window'
$ = require 'jquery'
{$$} = require 'space-pen'
{createPeer, connectDocument} = require './session-utils'
{createSite, Document} = require 'telepath'
window.setDimensions(width: 350, height: 100)
window.setUpEnvironment('editor')
{sessionId} = atom.getLoadSettings()
loadingView = $$ ->... | Add loading view when joining session | Add loading view when joining session
| CoffeeScript | mit | Jonekee/atom,Huaraz2/atom,GHackAnonymous/atom,gontadu/atom,scippio/atom,chengky/atom,fedorov/atom,Galactix/atom,champagnez/atom,kjav/atom,ashneo76/atom,DiogoXRP/atom,deoxilix/atom,ReddTea/atom,0x73/atom,batjko/atom,panuchart/atom,john-kelly/atom,001szymon/atom,mnquintana/atom,efatsi/atom,bcoe/atom,qskycolor/atom,Foldin... |
ea3ec24b175d5536d396940f18caf9b7d2850fd9 | src/scripts/helpers/links.coffee | src/scripts/helpers/links.coffee | define (require) ->
_ = require('underscore')
settings = require('settings')
shortcodes = settings.shortcodes
inverseShortcodes = _.invert(shortcodes)
return new class LinksHelper
getPath: (page, data) ->
url = settings.root
switch page
when 'contents'
uuid = data.model.ge... | define (require) ->
_ = require('underscore')
settings = require('settings')
shortcodes = settings.shortcodes
inverseShortcodes = _.invert(shortcodes)
return new class LinksHelper
getPath: (page, data) ->
url = settings.root
switch page
when 'contents'
uuid = data.model.ge... | Add methods to serialize and parameterize query strings | Add methods to serialize and parameterize query strings
| CoffeeScript | agpl-3.0 | Connexions/webview,katalysteducation/webview,dak/webview,carolinelane10/webview,dak/webview,katalysteducation/webview,Connexions/webview,katalysteducation/webview,Connexions/webview,Connexions/webview,dak/webview,katalysteducation/webview |
4288ed1db9fc3559946dc6a81b80aa6b7aaff486 | src/pointer-tool.coffee | src/pointer-tool.coffee | utils = window.Curve
module.exports =
class PointerTool
constructor: (svg, {@selectionModel, @selectionView}={}) ->
@_evrect = svg.node.createSVGRect();
@_evrect.width = @_evrect.height = 1;
activate: ->
svg.on 'click', @onClick
svg.on 'mousemove', @onMouseMove
deactivate: ->
svg.off 'click... | $ = require 'jquery'
utils = window.Curve
module.exports =
class PointerTool
constructor: (svg, {@selectionModel, @selectionView}={}) ->
@_evrect = svg.node.createSVGRect();
@_evrect.width = @_evrect.height = 1;
activate: ->
svg.on 'click', @onClick
svg.on 'mousemove', @onMouseMove
deactivate:... | Make event positions relative to node offset | Make event positions relative to node offset
| CoffeeScript | mit | benogle/curve,benogle/curve |
4fa17fa1e2d7f4c458ae81158ed62bcd3e4ab866 | Gruntfile.coffee | Gruntfile.coffee | module.exports = (grunt) ->
# Project configuration.
grunt.initConfig
shell:
'compile-client-side':
options: stdout: true
command: 'coffee -o ./ -c src/'
'compile-server-side':
options: stdout: true
command: 'coffee -o public/scripts/compiled -c public/scripts/src... | module.exports = (grunt) ->
# Project configuration.
grunt.initConfig
shell:
'compile-client-side':
options: stdout: true
command: 'coffee -o ./ -c src/'
'compile-server-side':
options: stdout: true
command: 'coffee -o public/scripts/compiled -c public/scripts/src... | Add compile-css to grunt compile task. | Add compile-css to grunt compile task.
| CoffeeScript | mit | metaraine/generator-nodestrap |
33edb564dd3b48010fa5a08a7666b79e837d8c5a | lib/dialog.coffee | lib/dialog.coffee | {$, EditorView, View} = require 'atom'
path = require 'path'
module.exports =
class Dialog extends View
@content: ({prompt} = {}) ->
@div class: 'tree-view-dialog overlay from-top', =>
@div class: 'block', =>
@label prompt, class: 'icon', outlet: 'promptText'
@subview 'miniEditor', new Edit... | {$, EditorView, View} = require 'atom'
path = require 'path'
module.exports =
class Dialog extends View
@content: ({prompt} = {}) ->
@div class: 'tree-view-dialog overlay from-top', =>
@div class: 'block', =>
@label prompt, class: 'icon', outlet: 'promptText'
@subview 'miniEditor', new Edit... | Clear error when buffer changes | Clear error when buffer changes
| CoffeeScript | mit | ALEXGUOQ/tree-view,rajendrant/tree-view-remote,jarig/tree-view,pombredanne/tree-view-1,jasonhinkle/tree-view,benjaminRomano/tree-view,tbryant/tree-view,learn-co/learn-ide-tree,ayumi/tree-view,cgrabowski/webgl-studio-tree-view,Galactix/tree-view,samu/tree-view,thgaskell/tree-view,tomekwi/tree-view,matthewbauer/tree-view... |
9163e775b82e879f63899935d9019d5edfdcb960 | src/code/utils/hash-parameters.coffee | src/code/utils/hash-parameters.coffee | PARAM_TOKEN = /[?|&]/g
VALUE_TOKEN = "="
class HashParameters
constructor: ->
@parameters = {}
decode: (string) ->
decodeURIComponent(string)
encode: (string) ->
encodeURIComponent(string)
fromLocationHash: ->
@parameters = {}
hash = @readHash()
keyPairs = hash.split PARAM_TOKEN
... | PARAM_TOKEN = /[?|&]/g
VALUE_TOKEN = "="
class HashParameters
constructor: ->
@parameters = {}
decode: (string) ->
decodeURIComponent(string)
encode: (string) ->
encodeURIComponent(string)
fromLocationHash: ->
@parameters = {}
hash = @readHash()
keyPairs = hash.split PARAM_TOKEN
... | Fix x-origin exception when loading from sage.concord.org | Fix x-origin exception when loading from sage.concord.org | CoffeeScript | mit | concord-consortium/building-models,concord-consortium/building-models,concord-consortium/building-models,concord-consortium/building-models,concord-consortium/building-models |
1e78ac36caaee2f739b39425490aa39e037c211f | menus/spell-check.cson | menus/spell-check.cson | 'context-menu':
'.overlayer':
'Correct spelling': 'spell-check:correct-misspelling'
| 'context-menu':
'.overlayer':
'Correct Spelling': 'spell-check:correct-misspelling'
| Use title case in menu | Use title case in menu
| CoffeeScript | mit | atom/spell-check |
438f39e32c55dd8a3e96193f8a30f34d692eb19a | atom/init.coffee | atom/init.coffee | # Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
fileTypes = {
"GitHub Markdown": (editor) ->
editor.setSoftWrap(true)
editor.setTabLength(4)
"Java": (editor) ->
... | # Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
fileTypes = {
"GitHub Markdown": (editor) ->
editor.setSoftWrap(true)
editor.setTabLength(4)
"Java": (editor) ->
... | Rename function to match standard | Rename function to match standard
| CoffeeScript | mit | lee-dohm/dotfiles,lee-dohm/dotfiles,lee-dohm/dotfiles,lee-dohm/dotfiles |
936dd6332033be992a4b7d2f27e0e1ed51f46555 | keymaps/table-edit.cson | keymaps/table-edit.cson | # Keybindings require three things to be fully defined: A selector that is
# matched against the focused element, the keystroke and the command to
# execute.
#
# Below is a basic keybinding which registers on all platforms by applying to
# the root workspace element.
# For more detailed documentation see
# https://ato... | # Keybindings require three things to be fully defined: A selector that is
# matched against the focused element, the keystroke and the command to
# execute.
#
# Below is a basic keybinding which registers on all platforms by applying to
# the root workspace element.
# For more detailed documentation see
# https://ato... | Add binding for enter key in table view editor | Add binding for enter key in table view editor
| CoffeeScript | mit | abe33/atom-tablr |
c5bd5d1dcf8b468f978cfc80ca4c9a14788cc9e7 | lib/open-terminal-here.coffee | lib/open-terminal-here.coffee | exec = require("child_process").exec
path = require('path')
module.exports =
activate: ->
atom.workspaceView.command "open-terminal-here:open", (event) =>
@open()
open: ->
filepath = atom.workspaceView.find('.tree-view .selected')?.view()?.getPath?()
if filepath
dirpath = path.dirname(file... | exec = require("child_process").exec
path = require('path')
module.exports =
configDefaults: {
app: 'Terminal.app'
args: ''
},
activate: ->
atom.workspaceView.command "open-terminal-here:open", (event) =>
@open()
open: ->
filepath = atom.workspaceView.find('.tree-view .selected')?.view()... | Add configuration option to change which app to load | Add configuration option to change which app to load
| CoffeeScript | mit | blueimp/atom-open-terminal-here |
46a12fb71f56a34e90fa00e7d325e9df8128e6d1 | components/main_layout/footer/view.coffee | components/main_layout/footer/view.coffee | _ = require 'underscore'
Backbone = require 'backbone'
FeedbackView = require '../../feedback/view.coffee'
module.exports = class FooterView extends Backbone.View
events:
'click .mlf-feedback': 'feedback'
feedback: (e) ->
e.preventDefault()
# FeedbackView inherits ModalView which au... | _ = require 'underscore'
Backbone = require 'backbone'
FeedbackView = require '../../feedback/view.coffee'
mediator = require '../../../lib/mediator.coffee'
module.exports = class FooterView extends Backbone.View
events:
'click .mlf-feedback': 'feedback'
initialize: (options) ->
med... | Allow for feedback open to be triggered through the mediator | Allow for feedback open to be triggered through the mediator
| CoffeeScript | mit | oxaudo/force,anandaroop/force,artsy/force-public,joeyAghion/force,artsy/force-public,anandaroop/force,artsy/force,eessex/force,joeyAghion/force,yuki24/force,xtina-starr/force,TribeMedia/force-public,joeyAghion/force,mzikherman/force,eessex/force,cavvia/force-1,kanaabe/force,damassi/force,mzikherman/force,artsy/force,iz... |
7022524457618583bae87ec8b4e4511af794f795 | frontend/registration_tz_selection.coffee | frontend/registration_tz_selection.coffee | # depends:
# python.install
# prosilver?
#
# after:
# casper.registration_agreement
#
# phpbb_version:
# >=3.1.0
d = ->
console.log arguments...
base = global.wolis.config.test_url
casper.start base + '/ucp.php?mode=register&agreed=1', ->
@test.assertExists '#tz_date'
tz_value = @evaluate ->
document.query... | # depends:
# python.install
# prosilver?
#
# after:
# casper.registration_agreement
#
# phpbb_version:
# >=3.1.0
d = ->
console.log arguments...
base = global.wolis.config.test_url
casper.start base + '/ucp.php?mode=register&agreed=1', ->
@test.assertExists '#tz_date'
tz_value = @evaluate ->
document.query... | Make tz selection test non-system-specific | Make tz selection test non-system-specific
| CoffeeScript | bsd-2-clause | p/wolis-phpbb,p/wolis-phpbb |
0b05f8a0330e1c66eb3cc617b4a3c25ee49fd3ac | app/assets/javascripts/components/load-more.js.coffee | app/assets/javascripts/components/load-more.js.coffee | Hummingbird.LoadMoreComponent = Ember.Component.extend
checkInView: ->
elementBottom = @$().offset().top + @$().height()
windowBottom = window.scrollY + $(window).height()
if elementBottom < windowBottom + 200
@sendAction()
didInsertElement: ->
$(window).bind 'scroll.loadmore', $.proxy(@check... | Hummingbird.LoadMoreComponent = Ember.Component.extend
checkInView: ->
elementBottom = @$().offset().top + @$().height()
windowBottom = window.scrollY + $(window).height()
if elementBottom < windowBottom + 200
@sendAction()
didInsertElement: ->
$(window).bind 'scroll.loadmore', $.proxy(@check... | Check if the loading indicator is visible on didInsertElement. | Check if the loading indicator is visible on didInsertElement.
| CoffeeScript | apache-2.0 | jcoady9/hummingbird,MiLk/hummingbird,cybrox/hummingbird,erengy/hummingbird,qgustavor/hummingbird,sidaga/hummingbird,saintsantos/hummingbird,Snitzle/hummingbird,paladique/hummingbird,wlads/hummingbird,vevix/hummingbird,NuckChorris/hummingbird,vevix/hummingbird,jcoady9/hummingbird,saintsantos/hummingbird,NuckChorris/humm... |
807785f96c351d9369f5f1884ab6198578274590 | lib/love-provider.coffee | lib/love-provider.coffee | fs = require 'fs'
path = require 'path'
module.exports =
selector: '.source.lua'
disableForSelector: '.source.lua .comment, .source.lua .string'
inclusionPriority: 10
excludeLowerPriority: true
getSuggestions: ( { editor, bufferPosition, scopeDescriptor, prefix, activatedManually } ) ->
i... | fs = require 'fs'
path = require 'path'
module.exports =
selector: '.source.lua'
disableForSelector: '.source.lua .comment, .source.lua .string'
inclusionPriority: 10
excludeLowerPriority: true
getSuggestions: ( { editor, bufferPosition, scopeDescriptor, prefix, activatedManually } ) ->
i... | Add separate function for building each suggestion | Add separate function for building each suggestion
| CoffeeScript | mit | rm-code/love-atom,rm-code/love-atom |
ab36fa9cb6e2e6a829c1bda74464da9c94823d03 | coffee/lib/router.coffee | coffee/lib/router.coffee | define ['mediator', 'lib/route'], (mediator, Route) ->
'use strict'
class Router # This class does not inherit from Backbone’s router
constructor: ->
# Create a Backbone.History instance
@createHistory()
createHistory: ->
Backbone.history or= new Backbone.History
startHistory: ->
... | define ['mediator', 'lib/route'], (mediator, Route) ->
'use strict'
class Router # This class does not inherit from Backbone’s router
constructor: ->
# Create a Backbone.History instance
@createHistory()
createHistory: ->
Backbone.history or= new Backbone.History
startHistory: ->
... | Fix a typo in a comment | Fix a typo in a comment
| CoffeeScript | mit | Everlane/chaplin,EverFi/chaplin,cvd/chaplin,mrb/chaplin,mrb/chaplin,cvd/chaplin,akre54/chaplin,Everlane/chaplin,EverFi/chaplin |
1cd742d42dc3329b48cd58e3bd347af09d318c47 | src/FileManager/BreadcrumbDirective.coffee | src/FileManager/BreadcrumbDirective.coffee | angular.module('fileManager')
.directive('breadcrumb', ($location)->
return {
restrict: 'E'
scope: true
template: '<ol class="breadcrumb">' +
'<li ng-repeat="piece in breadcrumb" class="breadcrumb-part" ng-class="{active: $last}">' +
'<a ng-if="!$last" ng-href="#{{piece.l... | angular.module('fileManager')
.directive('breadcrumb', ($stateParams)->
return {
restrict: 'E'
template: """
<div class="breadcrumb">
<div class="breadcrumb-separator"><i class="icon icon-arrow-right"></i></div>
<span ng-repeat="piece in breadcrumb">
... | Update the breadcrumb directive to use the new router and use the actual design. | Update the breadcrumb directive to use the new router and use the actual design.
| CoffeeScript | mit | LupoLibero/Lupo-proto |
944956e13c272dc279b8d47ba23eb81be2f80787 | gruntfile.coffee | gruntfile.coffee |
module.exports = (grunt) ->
grunt.initConfig
pkg: grunt.file.readJSON 'package.json'
clean:
main: 'target/src'
test: 'target/test'
coffeelint:
options:
configFile: 'coffeelint.json'
main: 'src/**/*.coffee'
test: 'test/**/*.coffee'
build: 'gruntfile.coffee... |
module.exports = (grunt) ->
grunt.initConfig
pkg: grunt.file.readJSON 'package.json'
clean:
main: 'target/src'
test: 'target/test'
coffeelint:
options:
configFile: 'coffeelint.json'
main: 'src/**/*.coffee'
test: 'test/**/*.coffee'
build: 'gruntfile.coffee... | Remove the closure function from generated JS files. Add support for generating source maps | Remove the closure function from generated JS files. Add support for generating source maps
| CoffeeScript | mit | alan-ghelardi/enumerations |
ec10aa0992ebf9a7595cdcf0c9a3b6a98fa98c02 | src/Game.coffee | src/Game.coffee | Player = require './Player'
TextInput = require './TextInput'
class Game
constructor: (game) ->
@textBox = new TextInput(game)
@player = new Player(game)
window.Game = @
@socket = io.connect('https://snapgame.herokuapp.com:443', {secure: true})
@socket.emit 'new player', 'name'
@socket... | Player = require './Player'
TextInput = require './TextInput'
class Game
constructor: (game) ->
@textBox = new TextInput(game)
@player = new Player(game)
window.Game = @
@socket = io.connect('https://snapgame.herokuapp.com', {secure: true})
@socket.emit 'new player', 'name'
@socket.on ... | Revert "Frontend now explicitly connects to port 443 - localhost now works" | Revert "Frontend now explicitly connects to port 443 - localhost now works"
This reverts commit 8ea34a06f2c3942354f66499a7e73d2f578e6b22.
| CoffeeScript | mit | CMS611-snap/snap-frontend,CMS611-snap/snap-frontend,CMS611-snap/snap-frontend |
f5183f7991eff7a93cefa83934ae9f75cb0e1a27 | lib/panes.coffee | lib/panes.coffee | class FocusAction
constructor: ->
isComplete: -> true
isRecordable: -> false
focusCursor: ->
editor = atom.workspaceView.getActivePaneItem()
editorView = atom.workspaceView.getActiveView()
if editor? and editorView?
cursorPosition = editor.getCursorBufferPosition()
editorView.scrollToBu... | class FocusAction
constructor: ->
isComplete: -> true
isRecordable: -> false
focusCursor: ->
editor = atom.workspace.getActivePaneItem()
editorView = atom.workspaceView.getActiveView()
if editor? and editorView?
cursorPosition = editor.getCursorBufferPosition()
editorView.scrollToBuffer... | Access active pane item from atom.workspace | Access active pane item from atom.workspace
| CoffeeScript | mit | naorunaoru/vim-mode-next,bronson/vim-mode-next |
66ba91e581923df57e49c4ea0e1a80e74f44ec43 | scripts/boomtown.coffee | scripts/boomtown.coffee | # Description
# Trys to crash Hubot on purpose
#
# Commands:
# hubot boom - try to crash Hubot
# hubot boom emit with msg - try to crash Hubot by emitting an error with a msg
# hubot boom emit without msg - try to crash Hubot by emitting an error without a msg
# hubot boom throw- try to crash Hubot with a thr... | # Description
# Trys to crash Hubot on purpose
#
# Commands:
# hubot boom [other text]- try to crash Hubot
# hubot boom emit with msg - try to crash Hubot by emitting an error with a msg
# hubot boom emit without msg - try to crash Hubot by emitting an error without a msg
boomError = (boom, string) ->
new Er... | Remove hubot boom throw documentation line, since it's not a special case | Remove hubot boom throw documentation line, since it's not a special case
| CoffeeScript | mit | kristenmills/hubot,AlexandrPuryshev/hubot,RavenB/hubot,cameronmcefee/hubot,ClaudeBot/hubot,hubotio/hubot,mujiansu/hubot,alucardzhou/hubot,sharabash/hubot,github/hubot,julianromera/hubot,decaffeinate-examples/hubot,taojuntjpp/hubot,wieden-kennedy/hubot,ykelvis/hubot,Drooids/hubot,davidkassa/hubot,mjurczyk/hubot,ddmng/br... |
11e87440fad2bb9b54c680af0171c6f36c6cbbe9 | scripts/bugzilla.coffee | scripts/bugzilla.coffee | # Description:
# In which Hubot gives you bugzilla information
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# hubot bug <number> - Shows bug summary
#
# Author:
# greenb
QS = require 'querystring'
Cheerio = require 'cheerio'
module.exports = (robot) ->
domain = 'http://bugs.sfola... | # Description:
# In which Hubot gives you bugzilla information
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# hubot bug <number> - Shows bug summary
#
# Author:
# greenb
QS = require 'querystring'
Cheerio = require 'cheerio'
module.exports = (robot) ->
domain = 'http://bugs.sfola... | Send all bug info in one irc line | Send all bug info in one irc line
| CoffeeScript | apache-2.0 | bigfix/hubot-scripts,bigfix/hubot-scripts |
c1cba12fdf18d7e64ca844ae77a1626836d9bae6 | scripts/bugzilla.coffee | scripts/bugzilla.coffee | # Description:
# In which Hubot gives you bugzilla information
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# hubot bug <number> - Shows bug summary
#
# Author:
# greenb
QS = require 'querystring'
Cheerio = require 'cheerio'
module.exports = (robot) ->
domain = 'http://bugs.sfola... | # Description:
# In which Hubot gives you bugzilla information
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# hubot bug <number> - Shows bug summary
#
# Author:
# greenb
QS = require 'querystring'
Cheerio = require 'cheerio'
module.exports = (robot) ->
domain = 'http://bugs.sfola... | Allow you to say "hubot bug xxx" anywhere | Allow you to say "hubot bug xxx" anywhere
| CoffeeScript | apache-2.0 | bigfix/hubot-scripts,bigfix/hubot-scripts |
e6f7fd2ebcea18d0960b15c682859eeffacf9b0e | app/assets/javascripts/peek/views/active_record.coffee | app/assets/javascripts/peek/views/active_record.coffee | $(document).on 'peek:render', (event, request_id, data) ->
object_count = data.context['active-record'].object_count
object_types = data.context['active-record'].object_types
title = "<strong>#{object_count} AR Objects</strong>"
for key, val of object_types
title += "<br>#{val} #{key}"
$('#active_record... | $(document).on 'peek:render', (event, request_id, data) ->
object_count = data.context['active-record'].object_count
object_types = data.context['active-record'].object_types
title = "<strong>#{object_count} AR Objects</strong>"
for key, val of object_types
title += "<br>#{val} #{key}"
$('#active_record... | Add auto gravity for activerecord tooltip | Add auto gravity for activerecord tooltip
| CoffeeScript | mit | inventid/peek-active_record,wfarr/peek-active_record,wfarr/peek-active_record,inventid/peek-active_record |
3dc90db7f1762aa3cdbe0cd3cf954da96faefdea | app/assets/javascripts/rglossa/utils.coffee | app/assets/javascripts/rglossa/utils.coffee | window.rglossaUtils =
capitalize: (str) ->
if str.length then str[0].toUpperCase() + str.slice(1) else ''
# From http://davidwalsh.name/javascript-debounce-function
# Returns a function, that, as long as it continues to be invoked, will not
# be triggered. The function will be called after it stops being... | window.rglossaUtils =
capitalize: (str) ->
return '' unless str.length
(str.split('_').map (part) -> part[0].toUpperCase() + part.slice(1)).join('')
# From http://davidwalsh.name/javascript-debounce-function
# Returns a function, that, as long as it continues to be invoked, will not
# be triggered. T... | Handle underscores in capitalize function | Handle underscores in capitalize function
| CoffeeScript | mit | textlab/rglossa,textlab/glossa,textlab/glossa,textlab/glossa,textlab/rglossa,textlab/glossa,textlab/glossa,textlab/rglossa,textlab/rglossa,textlab/rglossa |
acb638e335182e6285c5c927f1d93f0dc743c0bc | client/app/lib/util/getMessageOwner.coffee | client/app/lib/util/getMessageOwner.coffee | remote = require('../remote').getInstance()
module.exports = (message, callback) ->
{constructorName, _id} = message.account
remote.cacheable constructorName, _id, (err, owner) ->
return callback err if err
return callback { message: "Account not found", name: "NotFound" } unless owner
callback null, ... | remote = require('../remote').getInstance()
fetchAccount = require './fetchAccount'
module.exports = (message, callback) ->
fetchAccount message.account, (err, owner) ->
return callback err if err
return callback { message: "Account not found", name: "NotFound" } unless owner
callback null, owner
| Use fetchAccount util for getting message owner | app: Use fetchAccount util for getting message owner
| CoffeeScript | agpl-3.0 | rjeczalik/koding,sinan/koding,sinan/koding,usirin/koding,koding/koding,gokmen/koding,kwagdy/koding-1,cihangir/koding,usirin/koding,acbodine/koding,cihangir/koding,rjeczalik/koding,cihangir/koding,rjeczalik/koding,koding/koding,usirin/koding,jack89129/koding,alex-ionochkin/koding,usirin/koding,gokmen/koding,alex-ionochk... |
1bf5a59971fbc334986e1a00ff7b95f1e31579ff | server/index.coffee | server/index.coffee | express = require 'express'
cookieParser = require 'cookie-parser'
bodyParser = require 'body-parser'
session = require 'cookie-session'
colors = require 'colors'
passport = require './lib/auth'
util = require './lib/util'
config = require './config'
module.exports = app = express()
app.set 'views', 'public/'
app.se... | express = require 'express'
cookieParser = require 'cookie-parser'
bodyParser = require 'body-parser'
session = require 'cookie-session'
colors = require 'colors'
passport = require './lib/auth'
util = require './lib/util'
config = require './config'
module.exports = app = express()
app.set 'views', 'public/'
app.se... | Use new Express 4 format for bodyParser | Use new Express 4 format for bodyParser
| CoffeeScript | agpl-3.0 | edolyne/hive,mikesmithmsm/buckets,dut3062796s/buckets,mamute/buckets,asm-products/buckets,mamute/buckets,dut3062796s/buckets,artelse/buckets,edolyne/buckets,bucketsio/buckets,mikesmithmsm/buckets,artelse/buckets,nishant8BITS/buckets,edolyne/hive,nishant8BITS/buckets,asm-products/buckets,bucketsio/buckets,edolyne/bucket... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.