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 |
|---|---|---|---|---|---|---|---|---|---|
ca6423b19af0c7ffcd24b37734ffe93031cb28df | assets/js/vote.js.coffee | assets/js/vote.js.coffee | $ ->
$('.vote').on 'click', (event) ->
do event.preventDefault
return unless (comicID = $(this).data 'id')
$counter = $('.number-of-votes')
count = parseInt $counter.text()
count = 0 if isNaN(count)
console.log "Vote on: #{comicID} with #{count} votes so far"
# TODO: Make a call, then on... | Add a vote click handler stub | Add a vote click handler stub
| CoffeeScript | mit | desert-planet/ayp | |
a56593954800278193d538877d6dddb2aaaa7b45 | services/contacts/prepopulate.coffee | services/contacts/prepopulate.coffee | # Usage: coffee preprocess.coffee projects.json done.csv
# where projects.json is the output of
# mongoexport <CREDENTIALS> --db sharelatex-staging --collection projects --type=json --fields owner_ref,collaberator_refs,readOnly_refs --query '{ $or: [{collaberator_refs: { $not : {$size: 0} }}, {readOnly_refs: { $not: {... | Add import script to populate contacts with existing collaborators | Add import script to populate contacts with existing collaborators
| CoffeeScript | agpl-3.0 | sharelatex/sharelatex | |
4cca4785a2dcd9e2d65559a7f35e2578950ebbe1 | test/components/activity/activity_table_row.coffee | test/components/activity/activity_table_row.coffee | require '../../testHelper'
ActivityTableRow = require '../../../app/assets/javascripts/components/activity/activity_table_row'
describe 'ActivtyTableRow', ->
TestRow = ReactTestUtils.renderIntoDocument(
<table>
<ActivityTableRow
rowId=675818536
title='Selfie'
articleUrl='https://en.wikipedi... | Add start of a unit test for ActivityTableRow component | Add start of a unit test for ActivityTableRow component
| CoffeeScript | mit | KarmaHater/WikiEduDashboard,MusikAnimal/WikiEduDashboard,MusikAnimal/WikiEduDashboard,alpha721/WikiEduDashboard,majakomel/WikiEduDashboard,ragesoss/WikiEduDashboard,adamwight/WikiEduDashboard,feelfreelinux/WikiEduDashboard,KarmaHater/WikiEduDashboard,KarmaHater/WikiEduDashboard,feelfreelinux/WikiEduDashboard,Wowu/WikiE... | |
5283dddc1560e070251be7683c2786ba98e45601 | apps/auction_lots/routes.coffee | apps/auction_lots/routes.coffee | _ = require 'underscore'
Artist = require '../../models/artist'
AuctionLots = require '../../collections/auction_lots'
@artist = (req, res) ->
artist = null
auctionLots = null
currentPage = parseInt req.query.page || 1
sort = req.query.sort
render = _.after 2, ->
res.render... | _ = require 'underscore'
Artist = require '../../models/artist'
AuctionLots = require '../../collections/auction_lots'
@artist = (req, res) ->
artist = null
auctionLots = null
currentPage = parseInt req.query.page || 1
sort = req.query.sort
render = _.after 2, ->
res.render... | Remove caching on auction lots until we can get headers working correctly | Remove caching on auction lots until we can get headers working correctly
| CoffeeScript | mit | artsy/force-public,izakp/force,artsy/force,dblock/force,TribeMedia/force-public,oxaudo/force,mzikherman/force,eessex/force,izakp/force,xtina-starr/force,mzikherman/force,anandaroop/force,yuki24/force,mzikherman/force,kanaabe/force,kanaabe/force,TribeMedia/force-public,joeyAghion/force,joeyAghion/force,yuki24/force,dblo... |
30585bee24cb4258d0cac7d66a991635fa59d7d8 | client/stacks/lib/routehandler.coffee | client/stacks/lib/routehandler.coffee | kd = require 'kd'
lazyrouter = require 'app/lazyrouter'
handleSection = (path, callback)->
{ appManager, router, groupsController } = kd.singletons
unless appManager.getFrontApp()
appManager.once 'AppIsBeingShown', ->
router.handleRoute path
router.handleRoute '/IDE'
else
gro... | Define route handler of stacks app | Stacks: Define route handler of stacks app
| CoffeeScript | agpl-3.0 | jack89129/koding,usirin/koding,kwagdy/koding-1,rjeczalik/koding,koding/koding,jack89129/koding,koding/koding,szkl/koding,mertaytore/koding,kwagdy/koding-1,mertaytore/koding,szkl/koding,cihangir/koding,mertaytore/koding,cihangir/koding,drewsetski/koding,acbodine/koding,acbodine/koding,andrewjcasal/koding,drewsetski/kodi... | |
1f0a9f8fd2f00b68be36bbd8a27d5a1783a0095b | index.coffee | index.coffee | upnp = require 'upnp'
config =
app:
name: 'Bragi'
version: '0.0.1'
url: 'http://'
device:
type: 'MediaServer'
version: '1.0'
upnp.start config, ->
console.log 'Bragi running! :-)'
| Call upnp module with MediaServer configuration | Call upnp module with MediaServer configuration
| CoffeeScript | mit | jacobrask/bragi | |
2650b34217e558b0270fc10031031753505b73ae | migrations/20140410202000-time-entries-negative-duration-check.coffee | migrations/20140410202000-time-entries-negative-duration-check.coffee | dbm = require("db-migrate")
async = require 'async'
_ = require 'underscore'
type = dbm.dataType
table = "time_entries"
constraint = "positive_duration"
exports.up = (db, callback) ->
r = [
"""
add CONSTRAINT #{constraint} CHECK ( "duration" > 0 )
"""
]
r = _.map r, (s) -> "alter table #{table} #... | Add duration > 0 check | Add duration > 0 check
| CoffeeScript | bsd-3-clause | t3mpus/tempus-api | |
6331b99997c5ec3590176b0bf5c3cf8cef902bba | app/assets/javascripts/roles.js.coffee | app/assets/javascripts/roles.js.coffee | do($ = jQuery) ->
$ ->
resource_select = $('#user_role_resource')
if resource_select.length
do ->
role_select = $('#user_role_role')
role_changed = () ->
resource_select.closest('div.row')[if role_select.val() == 'team_leader' then 'show' else 'hide']()
role_changed()
... | Hide resource selection for roles other than team leader | Hide resource selection for roles other than team leader
| CoffeeScript | mit | ninech/uberzeit,ninech/uberzeit,ninech/uberzeit,ninech/uberzeit | |
06cb052f7fc911eaa822557298506951c9f78956 | src/coffee/client.coffee | src/coffee/client.coffee | fs = require 'fs'
Q = require 'q'
knox = require 'knox'
_ = require('underscore')._
class Client
constructor: (key, secret, bucket) ->
@client = knox.createClient
key: key
secret: secret
bucket: bucket
list: (args) ->
Q.ninvoke @client, 'list', args
getFile: (file) ->
Q.ninvoke @c... | Clean up. First simple step (download files from AWS). | Clean up. First simple step (download files from AWS).
| CoffeeScript | mit | sphereio/node-s3-utils,sphereio/node-s3-utils | |
9b8d7186ad6785d8976d57f080cb9ccdb69baea5 | src/test/data/all-data.coffee | src/test/data/all-data.coffee | import enUSAmount from './en-us.amount.coffee'
import enUSCheque from './en-us.cheque.coffee'
import enUSNumber from './en-us.number.coffee'
import zhTWAmount from './zh-tw.amount.coffee'
import zhTWCheque from './zh-tw.cheque.coffee'
import zhTWNumber from './zh-tw.number.coffee'
import zhCNAmount from './zh-cn.amount... | Consolidate all test data into one object | Consolidate all test data into one object
| CoffeeScript | mit | Edditoria/numbo | |
29aae1e638c6ded5688e77e734621f3b255dbb48 | scripts/mcstatus.coffee | scripts/mcstatus.coffee | # Description:
# Report the status of a Minecraft server
# Uses http://api.syfaro.net/
#
# Dependencies:
# None
#
# Configuration:
# server_url and server_port, below
#
# Commands:
# mcstatus - Report the status of the configured minecraft server.
#
# Author:
# annabunches
default_url = 'mc.wtf.cat'
defaul... | Add script to fetch the status of a minecraft server. | Add script to fetch the status of a minecraft server.
| CoffeeScript | mit | skalnik/hayt,drobati/hayt,pmn/hayt,Drewzar/arrakis-hubot,websages/hayt,sbryant/arrakis-hubot,thecodercody/hayt,n1ckn4m3/hayt,desert-planet/hayt | |
00ecbb6eaffdb1161c36525597fd799336a6a915 | src/scripts/reddit-jokes.coffee | src/scripts/reddit-jokes.coffee | # joke me - Pull a random joke from /r/jokes
module.exports = (robot) ->
robot.respond /joke me/i, (msg) ->
msg.http('http://www.reddit.com/r/jokes.json')
.get() (err, res, body) ->
try
data = JSON.parse body
children = data.data.children
joke = msg.random(children).d... | # joke me - Pull a random joke from /r/jokes
module.exports = (robot) ->
robot.respond /joke me/i, (msg) ->
msg.http('http://www.reddit.com/r/jokes.json')
.get() (err, res, body) ->
try
data = JSON.parse body
children = data.data.children
joke = msg.random(children).d... | Add support for loading titles, and removing ellipsis if needed. eg: title="Title and..." selftext="...rest of joke" gets changed into "Title and rest of joke" | Add support for loading titles, and removing ellipsis if needed. eg: title="Title and..." selftext="...rest of joke" gets changed into "Title and rest of joke"
| CoffeeScript | mit | modulexcite/hubot-scripts,GrimDerp/hubot-scripts,Tyriont/hubot-scripts,iilab/hubot-scripts,ambikads/hubot-scripts,zecahnin/hubot-scripts,cycomachead/hubot-scripts,yigitbey/hubot-scripts,1000hz/hubot-scripts,dbkaplun/hubot-scripts,dyg2104/hubot-scripts,josephcarmello/hubot-scripts,jankowiakmaria/hubot-scripts,flores/hub... |
12aedd838bb0a3b710db3b878c6307078a9bb4c3 | test/core/customhtmlview.coffee | test/core/customhtmlview.coffee | should = require 'should'
KDCustomHTMLView = require '../../lib/core/customhtmlview'
describe 'KDCustomHTMLView', ->
it 'exists', ->
KDCustomHTMLView.should.exist
describe 'constructor', ->
it 'should instantiate without error', ->
router = new KDCustomHTMLView
router.should.exist
| Add custom html view tests | Add custom html view tests
| CoffeeScript | mit | koding/kd | |
905f97823e032e23164ab8f36f6132e58b79b9c8 | test/object-expression.coffee | test/object-expression.coffee | 'use strict'
expect = require('chai').expect
escope = require '..'
describe 'object expression', ->
it 'doesn\'t require property type', ->
# Hardcoded AST
ast =
type: 'Program'
body: [{
type: 'VariableDeclaration'
declarations: [{
type: 'VariableDeclarator'
i... | Add test skeleton for ObjectExpression fix | Add test skeleton for ObjectExpression fix
| CoffeeScript | bsd-2-clause | jscrambler/escope,robcolburn/escope,mysticatea/escope,estools/escope | |
db75b8fe4e07b1f4c125a9a6bda6a58e619f07a2 | src/coffee/messenger-theme-flat.coffee | src/coffee/messenger-theme-flat.coffee | $ = jQuery
spinner_template = '''
<div class="messenger-spinner">
<span class="messenger-spinner-side messenger-spinner-side-left">
<span class="messenger-spinner-fill"></span>
</span>
<span class="messenger-spinner-side messenger-spinner-side-right">
<span class="me... | Add flat theme coffee file (same as future) | Add flat theme coffee file (same as future) | CoffeeScript | mit | freakynit/messenger,giobero999/messenger,dieface/messenger,freakynit/messenger,dieface/messenger,giobero999/messenger,leegilon/messenger,leegilon/messenger,rwhitmire/messenger,npmcomponent/HubSpot-messenger,rwhitmire/messenger,HubSpot/messenger,npmcomponent/HubSpot-messenger,HubSpot/messenger | |
d519466191042f0551c75b061c6cc82716e67ebb | packages/rocketchat-ui/lib/recorderjs/audioRecorder.coffee | packages/rocketchat-ui/lib/recorderjs/audioRecorder.coffee | @AudioRecorder = new class
start: (cb) ->
window.AudioContext = window.AudioContext or window.webkitAudioContext
navigator.getUserMedia = navigator.getUserMedia or navigator.webkitGetUserMedia
window.URL = window.URL or window.webkitURL
@audio_context = new AudioContext
ok = (stream) =>
@startUserMedia(... | @AudioRecorder = new class
start: (cb) ->
window.AudioContext = window.AudioContext or window.webkitAudioContext
navigator.getUserMedia = navigator.getUserMedia or navigator.webkitGetUserMedia
window.URL = window.URL or window.webkitURL
window.audioContext = new AudioContext
ok = (stream) =>
@startUserM... | Fix the over creation of AudioContexts when record audio message. | Fix the over creation of AudioContexts when record audio message.
| CoffeeScript | mit | ggazzo/Rocket.Chat,mrsimpson/Rocket.Chat,Movile/Rocket.Chat,Kiran-Rao/Rocket.Chat,danielbressan/Rocket.Chat,Movile/Rocket.Chat,Gudii/Rocket.Chat,trt15-ssci-organization/Rocket.Chat,inoxth/Rocket.Chat,Achaikos/Rocket.Chat,Sing-Li/Rocket.Chat,fatihwk/Rocket.Chat,VoiSmart/Rocket.Chat,NMandapaty/Rocket.Chat,NMandapaty/Rock... |
d4f7f80d18323af3670d3c8ba4708ea92b9d87bc | spec/command-spec.coffee | spec/command-spec.coffee | Command = require '../lib/command'
describe "Command", ->
describe "::spawn", ->
it "only calls the callback once if the spawned program fails", ->
exited = false
callbackCount = 0
command = new Command
child = command.spawn "thisisafakecommand", [], ->
callbackCount++
chil... | Add spec for Command::spawn calling back only once | Add spec for Command::spawn calling back only once
Signed-off-by: Katrina Uychaco <ef0b2ab5bd1ac851826b76acd653f3c4825374fb@github.com>
| CoffeeScript | mit | atom/apm,Nikpolik/apm,atom/apm,bronson/apm,bronson/apm,Nikpolik/apm,atom/apm,bronson/apm,bronson/apm,Nikpolik/apm,atom/apm,Nikpolik/apm | |
abbac1ce035e7b4e83b404d9ad18b28b1f0a894c | source/javascripts/tests/eventsource_spdy.coffee | source/javascripts/tests/eventsource_spdy.coffee | class EventSourceSpdyTest extends Test
constructor: ->
super
@display_name = "EventSource CORS over SPDY"
run: ->
[a, b] = super
source = new EventSource("https://corstest-api.coshx.com:4002/eventsource?a=#{a}&b=#{b}")
echoed_a = null
echoed_b = null
set_result = (result_string) =>
... | Add test for eventsource over spdy | Add test for eventsource over spdy
| CoffeeScript | mit | gkop/corstest-client,gkop/corstest-client | |
897bb8f2ac06d2a58a3c8f367334c5b874b119de | app/controllers/interactive/navigator.coffee | app/controllers/interactive/navigator.coffee | Spine = require 'spine'
MyGalaxies = require 'controllers/interactive/my_galaxies'
Graph = require 'controllers/interactive/graph'
Home = require 'controllers/interactive/interactive'
class Navigator extends Spine.Stack
el: '#navigator'
controllers:
myGalaxies: MyGalaxies
graph: Graph
home: Home
de... | Fix navigation to use spine routes | Fix navigation to use spine routes
| CoffeeScript | apache-2.0 | alexbfree/Galaxy-Zoo,willettk/Galaxy-Zoo,zooniverse/Galaxy-Zoo,murraycu/Galaxy-Zoo,zooniverse/Galaxy-Zoo,willettk/Galaxy-Zoo,willettk/Galaxy-Zoo,murraycu/Galaxy-Zoo,zooniverse/Galaxy-Zoo,murraycu/Galaxy-Zoo,alexbfree/Galaxy-Zoo,alexbfree/Galaxy-Zoo | |
c6dff7fbeef65b705f0e84316856badd0aa21045 | lib/fuzzy-finder.coffee | lib/fuzzy-finder.coffee | _ = require 'underscore'
module.exports =
projectPaths: null
fuzzyFinderView: null
loadPathsTask: null
activate: (state) ->
rootView.command 'fuzzy-finder:toggle-file-finder', =>
@createView().toggleFileFinder()
rootView.command 'fuzzy-finder:toggle-buffer-finder', =>
@createView().toggleB... | _ = require 'underscore'
module.exports =
projectPaths: null
fuzzyFinderView: null
loadPathsTask: null
activate: (state) ->
rootView.command 'fuzzy-finder:toggle-file-finder', =>
@createView().toggleFileFinder()
rootView.command 'fuzzy-finder:toggle-buffer-finder', =>
@createView().toggleB... | Abort task when view is created | Abort task when view is created
| CoffeeScript | mit | viddo/fuzzy-finder,nielsAD/fuzzy-finder,gvanderest/fuzzy-finder,Spy-Seth/fuzzy-finder,nielsAD/fuzzy-finder,Kerruba/fuzzy-finder,gvanderest/fuzzy-finder,toshi-saito/fuzzy-finder,atom/fuzzy-finder,Spy-Seth/fuzzy-finder,pombredanne/fuzzy-finder,viddo/fuzzy-finder,pombredanne/fuzzy-finder,segiddins/fuzzy-finder,segiddins/f... |
0c99007323b285db28c6ed0ebf964743c814a6c1 | app/assets/javascripts/darkswarm/directives/registration_limit_modal.js.coffee | app/assets/javascripts/darkswarm/directives/registration_limit_modal.js.coffee | Darkswarm.directive "ofnRegistrationLimitModal", (Navigation, $modal, Loading) ->
restrict: 'A'
link: (scope, elem, attr)->
scope.modalInstance = $modal.open
templateUrl: 'registration/limit_reached.html'
windowClass: "login-modal large"
backdrop: 'static'
scope.modalInstance.result.then ... | Darkswarm.directive "ofnRegistrationLimitModal", (Navigation, $modal, Loading) ->
restrict: 'A'
link: (scope, elem, attr)->
scope.modalInstance = $modal.open
templateUrl: 'registration/limit_reached.html'
windowClass: "login-modal register-modal xlarge"
backdrop: 'static'
scope.modalInsta... | Tweak the modal styling for register modals | Tweak the modal styling for register modals
| CoffeeScript | agpl-3.0 | levent/openfoodnetwork,mkllnk/openfoodnetwork,levent/openfoodnetwork,lin-d-hop/openfoodnetwork,folklabs/openfoodnetwork,KosenkoDmitriy/openfoodnetwork,Matt-Yorkley/openfoodnetwork,ecocitycore/openfoodnetwork,KateDavis/openfoodnetwork,RohanM/openfoodnetwork,stveep/openfoodnetwork,stveep/openfoodnetwork,MikeiLL/openfoodn... |
a3033e4c22be7925e7ba4cd68d4a02b9a34fc30d | src/atom-fsharp/keymaps/core.cson | src/atom-fsharp/keymaps/core.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://a... | # 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://a... | Fix keybindings to work with Nordic OS-X keyboards | Fix keybindings to work with Nordic OS-X keyboards
| CoffeeScript | mit | dangets/ionide-atom-fsharp,ionide/ionide-fsharp,ionide/ionide-atom-fsharp |
fd6795e748208bc9fa352e780e94e01e81a5f8f7 | src/packages/fuzzy-finder/index.coffee | src/packages/fuzzy-finder/index.coffee | DeferredAtomPackage = require 'deferred-atom-package'
LoadPathsTask = require './src/load-paths-task'
module.exports =
class FuzzyFinder extends DeferredAtomPackage
loadEvents: [
'fuzzy-finder:toggle-file-finder'
'fuzzy-finder:toggle-buffer-finder'
'fuzzy-finder:find-under-cursor'
]
instanceClass: '... | DeferredAtomPackage = require 'deferred-atom-package'
LoadPathsTask = require './src/load-paths-task'
module.exports =
class FuzzyFinder extends DeferredAtomPackage
loadEvents: [
'fuzzy-finder:toggle-file-finder'
'fuzzy-finder:toggle-buffer-finder'
'fuzzy-finder:find-under-cursor'
]
instanceClass: '... | Use parameter instead of ivar | Use parameter instead of ivar
| CoffeeScript | mit | gontadu/atom,gzzhanghao/atom,qskycolor/atom,CraZySacX/atom,davideg/atom,Austen-G/BlockBuilder,hagb4rd/atom,Huaraz2/atom,acontreras89/atom,targeter21/atom,kdheepak89/atom,BogusCurry/atom,ironbox360/atom,stuartquin/atom,panuchart/atom,palita01/atom,AlexxNica/atom,nvoron23/atom,rmartin/atom,gzzhanghao/atom,Locke23rus/atom... |
ee9dd110c5083409cb543176da33b97139bdb70c | app/assets/javascripts/media/preloader.js.coffee | app/assets/javascripts/media/preloader.js.coffee | class SublimeVideo.Media.ImagePreloader
constructor: (imageUrl, callback, options = {}) ->
@callback = callback
@imageSrc = imageUrl
@options = options
@problem = false
this.preload()
preload: ->
@image = new Image()
@image['onload'] = this.didComplete
@image['onerror'] = this.d... | Create classes for media-related stuff | Create classes for media-related stuff
| CoffeeScript | mit | jilion/sublime_video_layout,jilion/sublime_video_layout,jilion/sublime_video_layout | |
d1582e9b8e580bff8abe31d91c9a757c6b35aa3a | apps/artist/test/templates.coffee | apps/artist/test/templates.coffee | jade = require 'jade'
path = require 'path'
fs = require 'fs'
Backbone = require 'backbone'
{ fabricate } = require 'antigravity'
Artist = require '../../../models/artist'
render = (templateName) ->
filename = path.resolve __dirname, "../templates/#{templateName}.... | Add specs for display logic in artist header | Add specs for display logic in artist header
| CoffeeScript | mit | mzikherman/force,erikdstock/force,anandaroop/force,dblock/force,mzikherman/force,eessex/force,artsy/force-public,joeyAghion/force,xtina-starr/force,damassi/force,yuki24/force,artsy/force,izakp/force,erikdstock/force,xtina-starr/force,damassi/force,joeyAghion/force,kanaabe/force,oxaudo/force,erikdstock/force,izakp/force... | |
1785d86ac0bd1ba71cf4268ce8c3d40347761168 | apps/artwork_2/components/commercial/query.coffee | apps/artwork_2/components/commercial/query.coffee | module.exports = """
fragment commercial on Artwork {
_id
id
is_acquireable
is_inquireable
is_in_auction
sale_message
artists {
name
is_consignable
}
partner {
id
name
type
is_pre_qualify
contact_message
}
fair {
id
name... | module.exports = """
fragment commercial on Artwork {
_id
id
is_acquireable
is_inquireable
is_in_auction
sale_message
artists {
name
is_consignable
}
partner {
id
name
type
is_pre_qualify
is_limited_fair_partner
contact_message
}
... | Fix limited fair partnership status display | Fix limited fair partnership status display
| CoffeeScript | mit | anandaroop/force,eessex/force,mzikherman/force,xtina-starr/force,yuki24/force,erikdstock/force,joeyAghion/force,kanaabe/force,mzikherman/force,izakp/force,kanaabe/force,mzikherman/force,xtina-starr/force,yuki24/force,damassi/force,cavvia/force-1,dblock/force,oxaudo/force,kanaabe/force,dblock/force,erikdstock/force,xtin... |
21e610c60e1025bcffa65e672e7b3b77266241bf | app/assets/javascripts/procedure.js.coffee | app/assets/javascripts/procedure.js.coffee | ###*
@namespace scoping into the hquery namespace
###
this.hQuery ||= {}
# =require core.coffee
###*
This represents all interventional, surgical, diagnostic, or therapeutic procedures or
treatments pertinent to the patient.
@class
@augments hQuery.CodedEntry
@exports Procedure as hQuery.Procedure
###
class hQuery.... | ###*
@namespace scoping into the hquery namespace
###
this.hQuery ||= {}
# =require core.coffee
###*
This represents all interventional, surgical, diagnostic, or therapeutic procedures or
treatments pertinent to the patient.
@class
@augments hQuery.CodedEntry
@exports Procedure as hQuery.Procedure
###
class hQuery.... | Handle null incision date time better | Handle null incision date time better
| CoffeeScript | apache-2.0 | PDCbc/patientapi,rrusk/scoop-patientapi,rrusk/scoop-patientapi,scoophealth/patientapi,rrusk/scoop-patientapi,projecttacoma/patientapi,rrusk/scoop-patientapi |
2d823d7b378701abc8339caac86cc3407c9e1a92 | utils/dataUpdate.coffee | utils/dataUpdate.coffee | "use strict"
rand = (min, max) -> Math.floor(Math.random() * (max - min + 1)) + min
MongoClient = require('mongodb').MongoClient
MongoClient.connect "mongodb://localhost:27017/test", (err, db) ->
throw err if err
console.log 'Database is connected...'
users = [
{
id: 1234
navn: 'Ola Nordmann'
... | Add new data update tool | Add new data update tool
| CoffeeScript | mit | Turbasen/Turbasen,Turistforeningen/Turbasen | |
b4971825579bf85be7e3e717ba61469f38e22ad8 | services/web/test/acceptance/coffee/RegistrationTests.coffee | services/web/test/acceptance/coffee/RegistrationTests.coffee | expect = require("chai").expect
async = require("async")
User = require "./helpers/User"
request = require "./helpers/request"
settings = require "settings-sharelatex"
redis = require "./helpers/redis"
# Expectations
expectProjectAccess = (user, projectId, callback=(err,result)->) ->
# should have access to project... | Add an acceptance test for registration and login | Add an acceptance test for registration and login
| CoffeeScript | agpl-3.0 | sharelatex/sharelatex | |
5cbfc2473de50ea8c545e1dcc1745880c34c9f0e | spec/git-repository-provider-spec.coffee | spec/git-repository-provider-spec.coffee | path = require 'path'
{Directory} = require 'pathwatcher'
GitRepository = require '../src/git-repository'
GitRepositoryProvider = require '../src/git-repository-provider'
describe "GitRepositoryProvider", ->
describe ".repositoryForDirectory(directory)", ->
describe "when specified a Directory with a Git reposi... | path = require 'path'
{Directory} = require 'pathwatcher'
GitRepository = require '../src/git-repository'
GitRepositoryProvider = require '../src/git-repository-provider'
describe "GitRepositoryProvider", ->
describe ".repositoryForDirectory(directory)", ->
describe "when specified a Directory with a Git reposi... | Remove snake-case variable names in tests. | Remove snake-case variable names in tests.
| CoffeeScript | mit | cyzn/atom,Rodjana/atom,Ju2ender/atom,charleswhchan/atom,omarhuanca/atom,lpommers/atom,wiggzz/atom,tjkr/atom,mertkahyaoglu/atom,tisu2tisu/atom,amine7536/atom,johnhaley81/atom,tanin47/atom,bencolon/atom,fedorov/atom,bolinfest/atom,lovesnow/atom,lovesnow/atom,harshdattani/atom,gontadu/atom,amine7536/atom,palita01/atom,pal... |
7b6966899bdb6b374d02dfc30ed3e4e93594c1a6 | services/document-updater/expire_docops.coffee | services/document-updater/expire_docops.coffee | Settings = require "settings-sharelatex"
rclient = require("redis-sharelatex").createClient(Settings.redis.documentupdater)
keys = Settings.redis.documentupdater.key_schema
async = require "async"
RedisManager = require "./app/js/RedisManager"
getKeysFromNode = (node, pattern, callback) ->
cursor = 0 # redis iterato... | Add script to expire existing DocOps lists | Add script to expire existing DocOps lists
| CoffeeScript | agpl-3.0 | sharelatex/sharelatex | |
a5b25cf78998c4820eb70c5ab578c7fe2f563c7e | app/assets/javascripts/services/state_service.coffee | app/assets/javascripts/services/state_service.coffee | angular.module('kassa').factory('StateService', [
->
STATE_ERROR = 0
STATE_SUCCESS = 1
STATE_CHANGING = 2
STATE_DEFAULT = 3
class StateHandler
__isInState: (matchState)=> @currentState == matchState
__setToState: (state)=> @currentState = state
isError: -> @__isInState(STATE_ERR... | Add StateService for cleaner state handling using promises | Add StateService for cleaner state handling using promises
| CoffeeScript | mit | flipflops/kassa,flipflops/kassa | |
a108c283cfdbad6dfae503a419b2c41e9a490105 | build/tasks/output-long-paths-task.coffee | build/tasks/output-long-paths-task.coffee | path = require 'path'
module.exports = (grunt) ->
grunt.registerTask 'output-long-paths', 'Log long paths in the built application', ->
shellAppDir = grunt.config.get('atom.shellAppDir')
longPaths = []
grunt.file.recurse shellAppDir, (absolutePath, rootPath, relativePath, fileName) ->
fullPath = ... | Add grunt task to log long paths in built app | Add grunt task to log long paths in built app
| CoffeeScript | mit | champagnez/atom,prembasumatary/atom,jordanbtucker/atom,Abdillah/atom,devoncarew/atom,burodepeper/atom,charleswhchan/atom,kjav/atom,ardeshirj/atom,rjattrill/atom,tanin47/atom,rxkit/atom,n-riesco/atom,niklabh/atom,Galactix/atom,devoncarew/atom,bencolon/atom,liuxiong332/atom,avdg/atom,rsvip/aTom,NunoEdgarGub1/atom,Arcanem... | |
8d395ff8d8ee3bd194eab74627e651df803a1ecf | default_sensors/countdown.coffee | default_sensors/countdown.coffee | HubotSensor = require('../sensor')
class CountDownSensor extends HubotSensor
constructor: (@robot) ->
super(60 * 1000, false)
@_init()
check: () ->
--@minutes
@minutes == 0
fire: () ->
@notify "Countdown is over!"
@_init()
info: () ->
return "A countdown sensor fired each #{@minu... | Add other example a ^Cuntdown sensor | Add other example a ^Cuntdown sensor
| CoffeeScript | mit | basoko/hubot-sensors | |
c7a02b6b8b648bd8ae03ae38192cd34489bd1a06 | spec/javascripts/spec_helper.js.coffee | spec/javascripts/spec_helper.js.coffee | #= require jquery
#= require jquery_ujs
#
#= require ember
#= require ember-data
#
#= require_self
#= require ember_cart/ember/app
jQuery ->
jQuery("#konacha").append('<div id="ember-cart"></div>')
| Set up env for tests | Set up env for tests
| CoffeeScript | mit | menglifang/ember-cart,menglifang/ember-cart | |
f568cd877ca0cd932a355edc819ad82bc0d24fe5 | app/js/publisher_poc/publisher_plugin.user.coffee | app/js/publisher_poc/publisher_plugin.user.coffee | ###
// ==UserScript==
// @name Factlink Publisher Pluging for Nu.nl
// @description Enable Factlink on Nu.nl
// @include http*://*.nu.nl/*
// @version 0.0.1
// @grant unsafeWindow
// ==/UserScript==
###
# Compile this file using: coffee -c <filename>
# Drag the compiled file (<name>.user.js) to chrome://extensions to... | Add publisher script for Nu.nl | Add publisher script for Nu.nl
This can be compiled locally using coffee -c <filename>. No need to compile this in Grunt, since the script will only be installed locally into Chrome.
| CoffeeScript | mit | Factlink/js-library,Factlink/js-library,Factlink/js-library | |
af500ee0b4d35e568dfcf8f880b26f4d602ce26b | src/scripts/spot.coffee | src/scripts/spot.coffee | # Description:
# Control Spot from campfire. https://github.com/minton/spot
#
# Dependencies:
# None
#
# Configuration:
# HUBOT_SPOT_URL
#
# Commands:
# hubot play - Plays current playlist or song.
# hubot pause - Pause the music.
# hubot play next - Plays the next song.
# hubot play back - Plays the prev... | Add script to control Spot. | Add script to control Spot.
| CoffeeScript | mit | markstory/hubot-scripts,Ev1l/hubot-scripts,jhubert/hubot-scripts,cycomachead/hubot-scripts,gregburek/emojibot,amhorton/hubot-scripts,Tyriont/hubot-scripts,iilab/hubot-scripts,github/hubot-scripts,1stdibs/hubot-scripts,alexhouse/hubot-scripts,MaxMEllon/hubot-scripts,sklise/hubot-scripts,dyg2104/hubot-scripts,chauffer/hu... | |
d352b5ecc72b228ad44a45e326820c64c4bfda3a | src/packages/wrap-guide/lib/wrap-guide-view.coffee | src/packages/wrap-guide/lib/wrap-guide-view.coffee | {View} = require 'space-pen'
$ = require 'jquery'
_ = require 'underscore'
module.exports =
class WrapGuideView extends View
@activate: ->
rootView.eachEditor (editor) =>
@appendToEditorPane(rootView, editor) if editor.attached
@appendToEditorPane: (rootView, editor) ->
if underlayer = editor.find('... | {View} = require 'space-pen'
$ = require 'jquery'
_ = require 'underscore'
module.exports =
class WrapGuideView extends View
@activate: ->
rootView.eachEditor (editor) =>
@appendToEditorPane(rootView, editor) if editor.attached
@appendToEditorPane: (rootView, editor) ->
if underlayer = editor.find('... | Set left as number without px suffix | Set left as number without px suffix
| CoffeeScript | mit | Ju2ender/atom,hharchani/atom,AdrianVovk/substance-ide,johnhaley81/atom,erikhakansson/atom,NunoEdgarGub1/atom,bencolon/atom,scv119/atom,yalexx/atom,alexandergmann/atom,BogusCurry/atom,FoldingText/atom,g2p/atom,helber/atom,scippio/atom,Klozz/atom,kittens/atom,Austen-G/BlockBuilder,lisonma/atom,Jonekee/atom,mertkahyaoglu/... |
ff28c95a6e717923e6e9764ce4ebc244383209a2 | src/scripts/clojure.coffee | src/scripts/clojure.coffee | # Evaluate one line of Clojure script.
#
# clojure|clj <script> - Evaluate one line of Clojure script
module.exports = (robot) ->
robot.respond /(clojure|clj)\s+(.*)/i, (msg)->
script = encodeURIComponent(msg.match[2])
msg.http("http://tryclj.com/eval.json?expr=#{script}")
.get() (err, res, body) ->
... | Add script to evaluate Clojure script | Add script to evaluate Clojure script
| CoffeeScript | mit | github/hubot-scripts,Tyriont/hubot-scripts,chauffer/hubot-scripts,azimman/hubot-scripts,1000hz/hubot-scripts,terryjbates/hubot-scripts,sklise/hubot-scripts,flores/hubot-scripts,markstory/hubot-scripts,1stdibs/hubot-scripts,GrimDerp/hubot-scripts,ambikads/hubot-scripts,jan0sch/hubot-scripts,opentable/hubot-scripts,jacob... | |
2df3b26f0382c2f6d0e1fff9842d6989c2839ece | app/assets/javascripts/lesson_header_onScroll.coffee | app/assets/javascripts/lesson_header_onScroll.coffee | window.lesson = {}
window.lesson.applyScrollEffect = (classList, options) ->
@prevST = 0
@scrollTimer = null
@onScroll = =>
currentST = $(window).scrollTop()
# Update classList elements if scroll change > 50px
if Math.abs(currentST - @prevST) > 50
if currentST > @prevS... | Add onScroll hide effect Coffeescript | Add onScroll hide effect Coffeescript
| CoffeeScript | mit | odinproject-challenges/theodinproject,TheOdinProject/theodinproject,GemmaStiles/theodinproject,TheOdinProject/theodinproject,odinproject-challenges/theodinproject,matouk1114/theodinproject,Sw33tT00th/theodinproject,kriox26/theodinproject,kriox26/theodinproject,Sw33tT00th/theodinproject,PiotrEjsmont/theodinproject,mamdo... | |
cdbbb114f619a931781b4697c1ec6dc523d9819f | src/packages/collaboration/lib/session-utils.coffee | src/packages/collaboration/lib/session-utils.coffee | Peer = require './peer'
Guid = require 'guid'
module.exports =
createPeer: ->
id = Guid.create().toString()
new Peer(id, host: 'ec2-54-218-51-127.us-west-2.compute.amazonaws.com', port: 8080)
connectDocument: (doc, connection) ->
nextOutputEventId = 1
outputListener = (event) ->
event.id = n... | Peer = require './peer'
Guid = require 'guid'
module.exports =
createPeer: ->
id = Guid.create().toString()
new Peer(id, key: '0njqmaln320dlsor')
connectDocument: (doc, connection) ->
nextOutputEventId = 1
outputListener = (event) ->
event.id = nextOutputEventId++
console.log 'sending ... | Use PeerServer :cloud: instead of EC2 | Use PeerServer :cloud: instead of EC2
| CoffeeScript | mit | sekcheong/atom,originye/atom,woss/atom,sillvan/atom,rookie125/atom,niklabh/atom,Hasimir/atom,vcarrera/atom,ezeoleaf/atom,tisu2tisu/atom,dannyflax/atom,fedorov/atom,jordanbtucker/atom,alfredxing/atom,oggy/atom,dkfiresky/atom,alfredxing/atom,vinodpanicker/atom,tony612/atom,RobinTec/atom,Jdesk/atom,kdheepak89/atom,yangche... |
d8a1bf6907f48e344d5dd524716417d90f3c89db | server/startup/migrations/v11.coffee | server/startup/migrations/v11.coffee | Meteor.startup ->
Migrations.add
version: 11
up: ->
###
# Set GENERAL room to be default
###
ChatRoom.update({_id: 'GENERAL'}, {$set: {default: true}})
console.log "Set GENERAL room to be default" | Add migration to set channel 'GENERAL' with default: true | Add migration to set channel 'GENERAL' with default: true
| CoffeeScript | mit | LearnersGuild/echo-chat,tzellman/Rocket.Chat,christmo/Rocket.Chat,LeonardOliveros/Rocket.Chat,matthewshirley/Rocket.Chat,coreyaus/Rocket.Chat,yuyixg/Rocket.Chat,lonbaker/Rocket.Chat,abhishekshukla0302/trico,umeshrs/rocket-chat,christmo/Rocket.Chat,bt/Rocket.Chat,biomassives/Rocket.Chat,lukaroski/traden,amaapp/ama,nishi... | |
08a2e5f299f15930a8a22cdfd8e1059119a9d5d2 | roadmapplanningboard/BaseModelSpec.coffee | roadmapplanningboard/BaseModelSpec.coffee | Ext = window.Ext4 || window.Ext
describe 'Rally.apps.roadmapplanningboard.BaseModel', ->
beforeEach ->
@model = Ext.create 'Rally.apps.roadmapplanningboard.BaseModel'
it 'should return false from hasValue when model does not have field', ->
expect(@model.hasValue 'not real').toBe(false)
it 'should retu... | Revert "S53434 - Changed Roadmap Planning App to use new base model" | Revert "S53434 - Changed Roadmap Planning App to use new base model"
This reverts commit dca6a2a5ba1fefd4d29af51dca836eefad336029.
| CoffeeScript | mit | KilobytesandBits/app-catalog,jcwaco/PIKanbanMods,KilobytesandBits/app-catalog,travisc5/app-catalog,travisc5/app-catalog,kcorkan/app-catalog,kcorkan/app-catalog,wrackzone/app-catalog,JackBaxter/test-report,JackBaxter/test-report,jcwaco/PIKanbanMods,wrackzone/app-catalog,SteveRhoadsCA/app-catalog,KilobytesandBits/app-cat... | |
6f2aec4395975a9f92a05e1154ff4bb915cf9112 | src/task-bootstrap.coffee | src/task-bootstrap.coffee | {userAgent, taskPath} = process.env
handler = null
setupGlobals = ->
global.attachEvent = ->
console =
warn: -> emit 'task:warn', arguments...
log: -> emit 'task:log', arguments...
error: -> emit 'task:error', arguments...
trace: ->
global.__defineGetter__ 'console', -> console
global.document... | {userAgent, taskPath} = process.env
handler = null
setupGlobals = ->
global.attachEvent = ->
console =
warn: -> emit 'task:warn', arguments...
log: -> emit 'task:log', arguments...
error: -> emit 'task:error', arguments...
trace: ->
global.__defineGetter__ 'console', -> console
global.document... | Clear deprecations after mapping over them | Clear deprecations after mapping over them
| CoffeeScript | mit | prembasumatary/atom,rxkit/atom,charleswhchan/atom,vcarrera/atom,Ju2ender/atom,transcranial/atom,MjAbuz/atom,sotayamashita/atom,nrodriguez13/atom,BogusCurry/atom,florianb/atom,gzzhanghao/atom,tanin47/atom,Mokolea/atom,qiujuer/atom,russlescai/atom,PKRoma/atom,codex8/atom,basarat/atom,hpham04/atom,ashneo76/atom,fredericks... |
b8e31914d43fddbcfa370b19143dde25fa7ffa05 | spec/incompatible-packages-spec.coffee | spec/incompatible-packages-spec.coffee | describe "incompatible packages view", ->
beforeEach ->
waitsForPromise ->
atom.packages.activatePackage('incompatible-packages')
it "opens a pane item when incompatible-packages:view is dispatched", ->
atom.commands.dispatch(atom.views.getView(atom.workspace), 'incompatible-packages:view')
wait... | Add initial spec to highlight deprecations | Add initial spec to highlight deprecations
| CoffeeScript | mit | atom/incompatible-packages | |
803e12a201fbe91a76d47514d8bc292ddda80c0d | src/atom/range.coffee | src/atom/range.coffee | Point = require 'point'
module.exports =
class Range
constructor: (pointA, pointB) ->
pointA = Point.fromObject(pointA)
pointB = Point.fromObject(pointB)
if pointA.compare(pointB) <= 0
@start = pointA
@end = pointB
else
@start = pointB
@end = pointA
toString: ->
"[#{@s... | Point = require 'point'
_ = require 'underscore'
module.exports =
class Range
constructor: (pointA, pointB) ->
pointA = Point.fromObject(pointA)
pointB = Point.fromObject(pointB)
if pointA.compare(pointB) <= 0
@start = pointA
@end = pointB
else
@start = pointB
@end = pointA
... | Add deep copy to Range | Add deep copy to Range
| CoffeeScript | mit | Shekharrajak/atom,crazyquark/atom,burodepeper/atom,basarat/atom,MjAbuz/atom,BogusCurry/atom,MjAbuz/atom,stuartquin/atom,Neron-X5/atom,matthewclendening/atom,yalexx/atom,lisonma/atom,CraZySacX/atom,FoldingText/atom,t9md/atom,elkingtonmcb/atom,basarat/atom,woss/atom,andrewleverette/atom,constanzaurzua/atom,gontadu/atom,h... |
45a02c1ff0dc88f83e94a8d4cd670e81e6fe9486 | test/integration/prepare-execute-statements-test.coffee | test/integration/prepare-execute-statements-test.coffee | Connection = require('../../src/connection')
Request = require('../../src/request')
fs = require('fs')
TYPES = require('../../src/data-type').typeByName
getConfig = ->
config = JSON.parse(fs.readFileSync(process.env.HOME + '/.tedious/test-connection.json', 'utf8')).config
config.options.debug =
packet: true
... | Add tests for preparing and executing SQL. | Add tests for preparing and executing SQL.
| CoffeeScript | mit | LeanKit-Labs/tedious,arthurschreiber/tedious,Sage-ERP-X3/tedious,tediousjs/tedious,tediousjs/tedious,spanditcaa/tedious,pekim/tedious | |
8feb33f285ae70a0c9d2a9b424beea0e84c6915e | app/assets/javascripts/facebook_login_hash_fix.js.coffee | app/assets/javascripts/facebook_login_hash_fix.js.coffee | if window.location.hash == '#_=_'
if history.replaceState
history.replaceState(null, null, window.location.href.split('#')[0])
else
window.location.hash = ''
| Add a fix for the weird facebook hash | Add a fix for the weird facebook hash
| CoffeeScript | mit | RobinClowers/photo-album,RobinClowers/photo-album,RobinClowers/photo-album,RobinClowers/photo-album | |
aa5bf4097b97bbb8d644c87e552d2a60a860a3f6 | app/assets/javascripts/issuable_context.js.coffee | app/assets/javascripts/issuable_context.js.coffee | #= require jquery.waitforimages
class @IssuableContext
constructor: ->
new UsersSelect()
$('select.select2').select2({width: 'resolve', dropdownAutoWidth: true})
$(".context .inline-update").on "change", "select", ->
$(this).submit()
$(".context .inline-update").on "change", ".js-assignee", ->... | #= require jquery.waitforimages
class @IssuableContext
constructor: ->
new UsersSelect()
$('select.select2').select2({width: 'resolve', dropdownAutoWidth: true})
$(".issuable-sidebar .inline-update").on "change", "select", ->
$(this).submit()
$(".issuable-sidebar .inline-update").on "change", ... | Make edit link on issuable sidebar works | Make edit link on issuable sidebar works
Signed-off-by: Dmitriy Zaporozhets <be23d75b156792e5acab51b196a2deb155d35d6a@gmail.com>
| CoffeeScript | mit | jirutka/gitlabhq,icedwater/gitlabhq,Soullivaneuh/gitlabhq,Soullivaneuh/gitlabhq,ttasanen/gitlabhq,Datacom/gitlabhq,daiyu/gitlab-zh,martijnvermaat/gitlabhq,mr-dxdy/gitlabhq,jrjang/gitlabhq,larryli/gitlabhq,t-zuehlsdorff/gitlabhq,htve/GitlabForChinese,daiyu/gitlab-zh,Soullivaneuh/gitlabhq,t-zuehlsdorff/gitlabhq,icedwater... |
0ff9dd437d46ae044953238df5834b4a15d96f88 | src/key-handling.coffee | src/key-handling.coffee | _ = require 'lodash'
direction = require './direction'
bindings = require '../key-bindings.json'
module.exports = exports = (game) ->
game.on 'key.*', (ch, key) ->
action = bindings[key.full]
if action?
parts = action.split('.')
if parts[0] is 'direction'
parts[1] = direction.normalize parts[1], 1
... | _ = require 'lodash'
direction = require './direction'
bindings = require '../key-bindings.json'
module.exports = exports = (game) ->
game.on 'key.*', (ch, key) ->
action = bindings[key.name ? key.full]
if action?
parts = action.split('.')
if parts[0] is 'direction'
parts[1] = direction.normalize par... | Use key name by default, full otherwise | Use key name by default, full otherwise
| CoffeeScript | mit | raymond-h/krogue |
4fe44016683d082480627cff81c8d366bcdabcb6 | spec/Rotate.coffee | spec/Rotate.coffee | noflo = require 'noflo'
unless noflo.isBrowser()
chai = require 'chai' unless chai
Rotate = require '../components/Rotate-node.coffee'
testutils = require './testutils'
sharp = require 'sharp'
else
Rotate = require 'noflo-sharp/components/Rotate.js'
testutils = require 'noflo-image/spec/testutils.js'
descr... | Add test for rotate component | Add test for rotate component
| CoffeeScript | mit | noflo/noflo-sharp | |
13b28211853f099d0648fecfa35f93d219b4812d | test/closing.coffee | test/closing.coffee | vows = require 'vows'
child_process = require 'child_process'
exec = child_process.exec
spawn = child_process.spawn
assert = require 'assert'
describe = (name, bat) -> vows.describe(name).addBatch(bat).export(module)
t = (fn) ->
->
fn.apply this, arguments
return
program = "var phantom = require('./')... | Add test cases for signal handling | Add test cases for signal handling
| CoffeeScript | isc | amir20/phantomjs-node | |
f20eb0fc73fff71694da2e894be7801dfdc39144 | src/spec/producttypegenerator.spec.coffee | src/spec/producttypegenerator.spec.coffee | ProductTypeGenerator = require('../lib/producttypegenerator').ProductTypeGenerator
describe 'ProductTypeGenerator', ->
beforeEach ->
@generator = new ProductTypeGenerator('foo')
it 'should initialize', ->
expect(@generator).toBeDefined()
it 'should initialize with options', ->
expect(@generator._op... | Add first simple tests (not working yet). | Add first simple tests (not working yet).
| CoffeeScript | mit | sphereio/sphere-product-type-json-generator,sphereio/sphere-product-type-json-generator,sphereio/sphere-product-type-json-generator | |
947b06b0636a3581b0b3c93ae8841844fb87ef53 | spec/atom/app-spec.coffee | spec/atom/app-spec.coffee | App = require 'app'
fs = require 'fs'
describe "App", ->
app = null
beforeEach ->
app = new App()
afterEach ->
window.close() for window in app.windows()
waitsFor ->
app.windows().length == 0
describe "open", ->
describe "when opening a filePath", ->
it "displays it in a new wind... | App = require 'app'
fs = require 'fs'
xdescribe "App", ->
app = null
beforeEach ->
app = new App()
afterEach ->
window.close() for window in app.windows()
waitsFor ->
app.windows().length == 0
describe "open", ->
describe "when opening a filePath", ->
it "displays it in a new win... | Stop app specs from running. | Stop app specs from running.
These will be the last thing to implement. | CoffeeScript | mit | nucked/atom,execjosh/atom,kdheepak89/atom,jordanbtucker/atom,Ju2ender/atom,ralphtheninja/atom,nucked/atom,hellendag/atom,rookie125/atom,Jandersolutions/atom,davideg/atom,ReddTea/atom,darwin/atom,qiujuer/atom,ali/atom,rsvip/aTom,MjAbuz/atom,kaicataldo/atom,john-kelly/atom,gzzhanghao/atom,tony612/atom,deepfox/atom,ReddTe... |
bf45beedbefd19f99e080587c7c1a371417bc583 | src/packages/collaboration/lib/bootstrap.coffee | src/packages/collaboration/lib/bootstrap.coffee | 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 = $$ ->... | 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 = $$ ->... | Swap parameter order for Document.deserialize() | Swap parameter order for Document.deserialize()
| CoffeeScript | mit | toqz/atom,kjav/atom,sxgao3001/atom,ironbox360/atom,ali/atom,G-Baby/atom,toqz/atom,pengshp/atom,n-riesco/atom,kaicataldo/atom,Ju2ender/atom,jacekkopecky/atom,nrodriguez13/atom,florianb/atom,MjAbuz/atom,russlescai/atom,lpommers/atom,rsvip/aTom,dijs/atom,KENJU/atom,oggy/atom,gabrielPeart/atom,mostafaeweda/atom,ReddTea/ato... |
13117d9a61730790e7f2b8b8816c12b6dee72621 | src/app/keymaps/git.coffee | src/app/keymaps/git.coffee | window.keymap.bindKeys '.editor',
'meta-Z': 'editor:checkout-head-revision'
| window.keymap.bindKeys '.editor',
'alt-meta-z': 'editor:checkout-head-revision'
| Move checkout-head binding to `alt-meta-z` (meta-Z shadows redo) | Move checkout-head binding to `alt-meta-z` (meta-Z shadows redo)
This is my fault since I told Kevin to use this binding. Ooops. | CoffeeScript | mit | wiggzz/atom,Mokolea/atom,NunoEdgarGub1/atom,fedorov/atom,fedorov/atom,abcP9110/atom,qskycolor/atom,kjav/atom,n-riesco/atom,fredericksilva/atom,kittens/atom,KENJU/atom,amine7536/atom,vjeux/atom,Abdillah/atom,mertkahyaoglu/atom,efatsi/atom,darwin/atom,vjeux/atom,prembasumatary/atom,liuxiong332/atom,basarat/atom,seedtigo/... |
dca8a7856bcaf6c47e5d6b1c7ae973b36a50003d | app/lib/custom_exception.coffee | app/lib/custom_exception.coffee | # Exception class
class CustomException
constructor:(@name, @message,@options)->
log:->
console.log("name", @name, "message", @message, "options", @options)
# Exception for a not implemented method.
class NotImplementedException extends CustomException
constructor:(message, options)->
super("NotImplemente... | Add the custom exception classes. | Add the custom exception classes.
| CoffeeScript | mit | pierr/front-end-spa,KleeGroup/front-end-spa,KleeGroup/front-end-spa,pierr/front-end-spa | |
a8568eaecf59392d2d296e8cc2122398cf0761c2 | contrib/state-machine.coffee | contrib/state-machine.coffee | handle = require 'knit-common'
user = 'jakesgordon'
repo = 'javascript-state-machine'
filename = if knit.min then 'state-machine.min.js' else 'state-machine.js'
ref = knit.args.shift()
if not ref or knit.help or knit.h
console.log "Knit resource file for downloading the JavaScript State Machine library."
console... | Add JavaScript State Machine downloader. | Add JavaScript State Machine downloader.
| CoffeeScript | mit | cbaatz/knit | |
14eaa4920407df84ec3ddfa31aeae1759b120178 | app/assets/javascripts/darkswarm/directives/off_canvas_wrap.js.coffee | app/assets/javascripts/darkswarm/directives/off_canvas_wrap.js.coffee | # Extend the "offCanvasWrap" directive in "angular-foundation" to disable hiding of the off-canvas
# upon window resize.
#
# In some browsers for mobile devices, the address bar is automatically hidden when scrolling down
# the page. This is not workable if the height of the contents of the off-canvas exceeds the heigh... | Disable hiding the off-canvas upon window resize. | Disable hiding the off-canvas upon window resize.
In some browsers for mobile devices, the address bar is automatically
hidden when scrolling down the page. This is not workable if the height
of the contents of the off-canvas exceeds the height of the screen,
because the latter portion of the contents stays hidden to ... | CoffeeScript | agpl-3.0 | Matt-Yorkley/openfoodnetwork,openfoodfoundation/openfoodnetwork,lin-d-hop/openfoodnetwork,Matt-Yorkley/openfoodnetwork,mkllnk/openfoodnetwork,lin-d-hop/openfoodnetwork,mkllnk/openfoodnetwork,lin-d-hop/openfoodnetwork,openfoodfoundation/openfoodnetwork,mkllnk/openfoodnetwork,openfoodfoundation/openfoodnetwork,openfoodfo... | |
54bec787a4f75c685c85f890af91f722ba4507d4 | fb_instant_articles/fb_generator_tags.cjsx | fb_instant_articles/fb_generator_tags.cjsx | React = require 'react'
pkg = require '../package.json'
module.exports = [
<meta property='op:generator:application' content='marquee' />
<meta property='op:generator:application:version' content=pkg.version />
] | Add Facebook generator meta tags. | Add Facebook generator meta tags. | CoffeeScript | unlicense | marquee/static-sdk | |
4e31f60760f15cd16706780c8a60933f38eca60f | scripts/convert._coffee | scripts/convert._coffee | #!/usr/bin/env _coffee
#
# Converts content that we have in our database but haven't converted yet.
#
# See these issues:
#
# https://github.com/zoomhub/zoomhub/issues/89
# https://github.com/zoomhub/zoomhub/issues/91
#
# Usage:
#
# </path/to/this/script> <id>
#
assert = require 'assert'
Content = require '../lib/cont... | Convert script: implement basic version. | Convert script: implement basic version.
| CoffeeScript | mit | zoomhub/zoomhub,zoomhub/zoomhub,zoomhub/zoomhub,zoomhub/zoomhub | |
d1739689d21747c89533fcb737c4d06d341ac9e2 | app/scripts/alchemy/start.coffee | app/scripts/alchemy/start.coffee | class Alchemy
constructor: (@conf) ->
@version = "0.1.0"
@layout = {}
@interactions = {}
@utils = {}
@visControls = {}
@styles = {}
@drawing = {}
graph_elem = $('#graph')
igraph_search = $('#igraph-search')
allTags = {}
allCaptions = {}
currentNodeTypes =... | class Alchemy
constructor: (@conf) ->
@version = "0.1.0"
@layout = {}
@interactions = {}
@utils = {}
@visControls = {}
@styles = {}
@drawing = {}
@log = {}
graph_elem = $('#graph')
igraph_search = $('#igraph-search')
allTags = {}
allCaptions = {}
... | Add log to main Alchemy class | Add log to main Alchemy class
| CoffeeScript | agpl-3.0 | GraphAlchemist/Alchemy,jimtom2713/Alchemy,mayblue9/Alchemy,mayblue9/Alchemy,kylerob/Alchemy,kylerob/Alchemy,MDCox/Alchemy,jimtom2713/Alchemy |
a95aff6313c8ffc8903f33779b3305d5c323f405 | lib/a_to_z.coffee | lib/a_to_z.coffee | _ = require 'underscore'
# Lifted from:
# https://raw.githubusercontent.com/artsy/artsy-backbone-mixins/master/lib/a_to_z.coffee
module.exports =
#
# Collection models must specify what to sort by through an `alphaSortKey` method
# Sample output:
# {
# '0-9': [ model_instance, model_instance, model_instan... | Add A to Z lib | Add A to Z lib
| CoffeeScript | mit | aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell | |
ceecd6ae9c833a263c07a60099a65ebecc80143a | test/javascripts/map_editor_reactive_measure_test.coffee | test/javascripts/map_editor_reactive_measure_test.coffee | #= require map_editor
beforeEach ->
@map = new L.Map(document.createElement('div')).setView [0, 0], 15
describe 'L.Draw.Polyline.ReactiveMeasure', ->
beforeEach ->
@geod = GeographicLib.Geodesic.WGS84
@drawnItems = new L.FeatureGroup().addTo(@map)
@edit = new L.EditToolbar.Edit @map,
featureGroup... | Add jasmine tests to check measure calculation (in progress) | Add jasmine tests to check measure calculation (in progress)
| CoffeeScript | agpl-3.0 | ekylibre/ekylibre,ekylibre/ekylibre,ekylibre/ekylibre,ekylibre/ekylibre,ekylibre/ekylibre | |
21d1357d8c42ad4a4f6d02f37f47c0325539f9b9 | client/src/scripts/util.global.coffee | client/src/scripts/util.global.coffee |
typedump = (key, value, indent='') ->
if isNumber value
console.log indent + "#{key}: T.num"
else if isString value
console.log indent + "#{key}: T.str"
else if isBoolean value
console.log indent + "#{key}: T.bool"
else if isFunction value
console.log indent + "#{key}: T.func"
else if isError... | Add typedump(), typecheck() for assertions. | Add typedump(), typecheck() for assertions.
| CoffeeScript | apache-2.0 | elkingtonmcb/h2o-2,h2oai/h2o-2,eg-zhang/h2o-2,eg-zhang/h2o-2,vbelakov/h2o,h2oai/h2o,calvingit21/h2o-2,111t8e/h2o-2,eg-zhang/h2o-2,elkingtonmcb/h2o-2,vbelakov/h2o,vbelakov/h2o,elkingtonmcb/h2o-2,vbelakov/h2o,rowhit/h2o-2,111t8e/h2o-2,rowhit/h2o-2,eg-zhang/h2o-2,vbelakov/h2o,h2oai/h2o,calvingit21/h2o-2,100star/h2o,vbelak... | |
1c96622c6728fb373d0a7b272ea4318f666f4fa5 | examples/coffeescript/camera-face-detect-max-frames.coffee | examples/coffeescript/camera-face-detect-max-frames.coffee | cv = require 'opencv'
# First we create a new VideoCapture object to get
# video from the camera (0 for default camera)
camera = new cv.VideoCapture(1)
# we create a window to display the Video frames
namedWindow = new cv.NamedWindow('Video', 0)
color = [255,0,0]
frameRead = () ->
# camera.read allows us to retrie... | Use recursinve frame reading (instead of time interval) from video feed to try and hit max frames per second. | Use recursinve frame reading (instead of time interval) from video feed to try and hit max frames per second.
| CoffeeScript | mit | dropfen/node-opencv,rbtkoz/node-opencv,Eric013/node-opencv,cascade256/node-opencv,jainanshul/node-opencv,scanlime/node-opencv,alex1818/node-opencv,julianduque/node-opencv,madshall/node-opencv,Eric013/node-opencv,rwaldron/node-opencv,alex1818/node-opencv,qgustavor/node-opencv,gregfriedland/node-opencv,mvines/node-opencv... | |
9c675f387aeaa7d7cb1f50f95e31fe47f55359c2 | src/browser/squirrel-events.coffee | src/browser/squirrel-events.coffee | app = require 'app'
ChildProcess = require 'child_process'
path = require 'path'
updateDotExe = path.resolve(path.dirname(process.execPath), '..', 'Update.exe')
exeName = path.basename(process.execPath)
createShortcut = ->
ChildProcess.execFile updateDotExe, ['--createShortcut', exeName], ->
app.quit()
removeS... | app = require 'app'
ChildProcess = require 'child_process'
path = require 'path'
spawnUpdateAndQuit = (option) ->
updateDotExe = path.resolve(path.dirname(process.execPath), '..', 'Update.exe')
exeName = path.basename(process.execPath)
updateProcess = ChildProcess.spawn(updateDotExe, ["--#{option}", exeName])
... | Use spawn instead of execFile for squirrel events | Use spawn instead of execFile for squirrel events
| CoffeeScript | mit | h0dgep0dge/atom,phord/atom,davideg/atom,devoncarew/atom,medovob/atom,Rodjana/atom,YunchengLiao/atom,ObviouslyGreen/atom,jjz/atom,liuxiong332/atom,jordanbtucker/atom,ilovezy/atom,omarhuanca/atom,synaptek/atom,ykeisuke/atom,dkfiresky/atom,deepfox/atom,jjz/atom,alfredxing/atom,liuderchi/atom,lovesnow/atom,codex8/atom,dann... |
434dbaaca8e8f39c5b65906c998725b3a9532d64 | menus/settings-view.cson | menus/settings-view.cson | 'menu': [
{
'label': 'Packages'
'submenu': [
'label': 'Settings View'
'submenu': [
{ 'label': 'Change Themes', 'command': 'settings-view:change-themes' }
{ 'label': 'Install Themes', 'command': 'settings-view:install-themes' }
{ 'label': 'Install Packages', 'command': 'sett... | Add initial Settings View menu | Add initial Settings View menu
| CoffeeScript | mit | atom/settings-view | |
3ae6540c70a1122f82bd9320c60522e62cb11700 | build/tasks/codesign-task.coffee | build/tasks/codesign-task.coffee | path = require 'path'
module.exports = (grunt) ->
{spawn} = require('./task-helpers')(grunt)
grunt.registerTask 'codesign', 'Codesign the app', ->
done = @async()
if process.platform is 'darwin' and process.env.XCODE_KEYCHAIN
unlockKeychain (error) ->
if error?
done(error)
... | path = require 'path'
module.exports = (grunt) ->
{spawn} = require('./task-helpers')(grunt)
grunt.registerTask 'codesign', 'Codesign the app', ->
done = @async()
if process.platform is 'darwin' and process.env.XCODE_KEYCHAIN
unlockKeychain (error) ->
if error?
done(error)
... | Kill all atom.exe before signing | Kill all atom.exe before signing
| CoffeeScript | mit | ali/atom,DiogoXRP/atom,SlimeQ/atom,n-riesco/atom,oggy/atom,vinodpanicker/atom,001szymon/atom,dannyflax/atom,sebmck/atom,jlord/atom,Neron-X5/atom,bsmr-x-script/atom,Austen-G/BlockBuilder,bsmr-x-script/atom,devoncarew/atom,dkfiresky/atom,devmario/atom,KENJU/atom,ashneo76/atom,deoxilix/atom,KENJU/atom,jlord/atom,kandros/a... |
a80c76a5913e0531fac3fdfaf8fce527209a8e13 | test/javascripts/test_helper.coffee | test/javascripts/test_helper.coffee | # Teaspoon includes some support files, but you can use anything from your own support path too.
# require support/jasmine-jquery-1.7.0
# require support/jasmine-jquery-2.0.0
# require support/jasmine-jquery-2.1.0
# require support/sinon
# require support/your-support-file
#
# PhantomJS (Teaspoons default driver) doesn... | Add tool to generate a square polygon | Add tool to generate a square polygon
| CoffeeScript | agpl-3.0 | ekylibre/ekylibre,ekylibre/ekylibre,ekylibre/ekylibre,ekylibre/ekylibre,ekylibre/ekylibre | |
efac59be9b3e77f9a7fe17bd115c33ffad217a86 | dot-atom/snippets.cson | dot-atom/snippets.cson | # Your snippets
#
# Atom snippets allow you to enter a simple prefix in the editor and hit tab to
# expand the prefix into a larger code block with templated values.
#
# You can create a new snippet in this file by typing `snip` and then hitting
# tab.
#
# An example CoffeeScript snippet to expand log to console.log:
#... | # Your snippets
#
# Atom snippets allow you to enter a simple prefix in the editor and hit tab to
# expand the prefix into a larger code block with templated values.
#
# You can create a new snippet in this file by typing "snip" and then hitting
# tab.
#
# An example CoffeeScript snippet to expand log to console.log:
#... | Use quotes for inserted text | :memo: Use quotes for inserted text
| CoffeeScript | mit | YunchengLiao/atom,tony612/atom,russlescai/atom,tony612/atom,Sangaroonaom/atom,pengshp/atom,hakatashi/atom,constanzaurzua/atom,hharchani/atom,jtrose2/atom,charleswhchan/atom,mostafaeweda/atom,dkfiresky/atom,burodepeper/atom,kdheepak89/atom,hpham04/atom,helber/atom,johnrizzo1/atom,rmartin/atom,sxgao3001/atom,execjosh/ato... |
19571088127b7ff0f6d4571c6c1dc20273d4cb19 | wheels/tests/Test.cfc | wheels/tests/Test.cfc | component extends="wheels.Test" {
/*
* Executes once before the test suite runs.
* Populates the test database on reload or if there are no tables in the database.
*/
function beforeAll() {
local.tables = $dbinfo(datasource=application.wheels.dataSourceName, type="tables");
if ((StructKeyExists(url, "reloa... | component extends="wheels.Test" {
/*
* Executes once before the test suite runs.
* Populates the test database on reload or if the authors table does not exist.
*/
function beforeAll() {
local.tables = $dbinfo(datasource=application.wheels.dataSourceName, type="tables");
local.tableList = ValueList(local.t... | Check for authors table instead of just any table to check whether to populate the test database. | Check for authors table instead of just any table to check whether to populate the test database.
| ColdFusion CFC | apache-2.0 | cfwheels/cfwheels,cfwheels/cfwheels,cfwheels/cfwheels |
9557460948ba2bb4252cf5a47c1ee9fb683d433a | wheels/tests/Test.cfc | wheels/tests/Test.cfc | component extends="wheels.Test" {
/*
* Executes once before the test suite runs.
* Populates the test database on reload or if the authors table does not exist.
*/
function beforeAll() {
local.tables = $dbinfo(datasource = application.wheels.dataSourceName, type = "tables");
local.tableList = ValueList(loc... | component extends="wheels.Test" {
/*
* Executes once before the test suite runs.
* Populates the test database on reload or if the authors table does not exist.
*/
function beforeAll() {
application.$$$wheels = duplicate(application.wheels);
local.tables = $dbinfo(datasource = application.wheels.dataSource... | Reset application scope after core tests | Reset application scope after core tests
| ColdFusion CFC | apache-2.0 | cfwheels/cfwheels,cfwheels/cfwheels,cfwheels/cfwheels |
30e88539e431f22be4b551f992a1e5913c3de83d | tests/tests/TestDataFormat.cfc | tests/tests/TestDataFormat.cfc | component extends="testbox.system.BaseSpec" {
function run(testResults, testBox) {
dataDir = ExpandPath("../data/en");
files = directoryList(dataDir, false, "array");
filesWithErrors = [];
describe("JSON Format Tests", function() {
it("should be valid isJSON==true", function() {
for (filePath in files... | component extends="testbox.system.BaseSpec" {
function run(testResults, testBox) {
dataDir = ExpandPath("../data/en");
files = directoryList(dataDir, false, "array");
describe("JSON Format Tests", function() {
it("should be valid isJSON==true", function() {
for (filePath in files) {
var json = fil... | Add custom messages to test expects | Add custom messages to test expects
| ColdFusion CFC | mit | fmdano/cfdocs,mjhagen/cfdocs,mjhagen/cfdocs,murphydan/cfdocs,fmdano/cfdocs,murphydan/cfdocs |
5c0ba1721603eb7a8657790db96770159fc4672d | tests/Application.cfc | tests/Application.cfc | <cfcomponent output="false">
<cfscript>
this.name = "cfstatictests_" & hash(GetCurrenttemplatepath());
root = GetDirectoryFromPath(GetCurrentTemplatePath());
this.mappings['/mxunit'] = '#root#../mxunit';
this.mappings['/org/cfstatic'] = '#root#../org/cfstatic';
this.mappings['/tests'] = ... | <cfcomponent output="false">
<cfscript>
this.name = "cfstatictests_" & hash(GetCurrenttemplatepath());
root = GetDirectoryFromPath(GetCurrentTemplatePath());
this.mappings['/mxunit'] = '#root#../mxunit';
this.mappings['/org/cfstatic'] = '#root#../org/cfstatic';
this.mappings['/tests'] = Lef... | Fix for OpenBD ExpandPath() issue with trailing slashes in mappings | Fix for OpenBD ExpandPath() issue with trailing slashes in mappings
| ColdFusion CFC | mit | teamcfadvance/cfstatic,euans/cfstatic,teamcfadvance/cfstatic,euans/cfstatic |
994b3a0d956a5f80b0cdba398cafcb78315c6f53 | ModuleConfig.cfc | ModuleConfig.cfc | component {
this.title = "SendGrid Web API v3";
this.author = "Matthew J. Clemente";
this.webURL = "https://github.com/mjclemente/sendgrid.cfc";
this.description = "A wrapper for the SendGrid Web API v3";
function configure(){
settings = {
apiKey = '', // Required
baseUrl = 'https://api.sendgrid.com/v3',... | component {
this.title = "SendGrid Web API v3";
this.author = "Matthew J. Clemente";
this.webURL = "https://github.com/mjclemente/sendgrid.cfc";
this.description = "A wrapper for the SendGrid Web API v3";
function configure(){
settings = {
apiKey = '', // Required
baseUrl = 'https://api.sendgrid.com/v3',... | Use directory mapping to add helpers to Wirebox | Use directory mapping to add helpers to Wirebox
| ColdFusion CFC | mit | mjclemente/sendgrid.cfc |
8a2e712eaa3326c50bf63dad0be1fc1309c56cb2 | src/webapps/main/system/cfc/com/IcedReaper/cms/cms/cmsCore.cfc | src/webapps/main/system/cfc/com/IcedReaper/cms/cms/cmsCore.cfc | component implements="system.interfaces.com.irCMS.cms.cmsCore" {
public cmsCore function init(required string tablePrefix, required string datasource) {
variables.datasource = arguments.datasource;
variables.tablePrefix = arguments.tablePrefix;
return this;
}
public string f... | component implements="system.interfaces.com.irCMS.cms.cmsCore" {
public cmsCore function init(required string tablePrefix, required string datasource) {
variables.datasource = arguments.datasource;
variables.tablePrefix = arguments.tablePrefix;
return this;
}
public string f... | Throw an error when no theme is installed. | Throw an error when no theme is installed.
| ColdFusion CFC | mit | IcedReaper/irCMS |
35d6217a5a8bce003511119e1f83ff7635fbf844 | admin/Application.cfc | admin/Application.cfc | component {
function onRequestStart(){
location(url="../index.cfm/admin:main", addtoken="false");
}
}
| component {
// ------------------------ APPLICATION SETTINGS ------------------------ //
this.applicationroot = getDirectoryFromPath(getCurrentTemplatePath());
this.name = ListLast(this.applicationroot, "\/") & "_" & Hash(this.applicationroot);
// ------------------------ CALLED WHEN PAGE REQUEST STARTS --------... | Add `this.name` to the admin application. | Add `this.name` to the admin application.
| ColdFusion CFC | mit | okjim3GH/xindi,okjim3GH/xindi,okjim3GH/xindi,okjim3GH/xindi |
aae551a37fa2db9d728f066fa357c3e71b024d64 | models/ObjectFactory.cfc | models/ObjectFactory.cfc | component {
function get(required string class) {
return createObject("java", arguments.class, [expandpath("/cashbox/lib/vindicia_NOAXIS.jar")]);
}
function getClassVersion() {
if (isnull(variables.classVersion)) {
var ClientConstants = get("com.vindicia.client.ClientConstants");
variables.classVersion =... | component {
function get(required string class) {
return createObject("java", arguments.class, [expandpath("/cashbox/lib/vindicia.jar")]);
}
function getClassVersion() {
if (isnull(variables.classVersion)) {
var ClientConstants = get("com.vindicia.client.ClientConstants");
variables.classVersion = "v#rep... | Use standard Java client instead of NOAXIS | Use standard Java client instead of NOAXIS
| ColdFusion CFC | mit | sjdaniels/coldbox-module-vindiciacashbox |
9dac1655b567009f34abe6ea366069acedc84445 | template/tests/Application.cfc | template/tests/Application.cfc | component {
this.name = "ColdBoxTestingSuite" & hash(getCurrentTemplatePath());
this.sessionManagement = true;
this.setClientCookies = true;
this.sessionTimeout = createTimeSpan( 0, 0, 15, 0 );
this.applicationTimeout = createTimeSpan( 0, 0, 15, 0 );
testsPath = getDirectoryFromPath( ge... | component {
this.name = "ColdBoxTestingSuite" & hash(getCurrentTemplatePath());
this.sessionManagement = true;
this.setClientCookies = true;
this.sessionTimeout = createTimeSpan( 0, 0, 15, 0 );
this.applicationTimeout = createTimeSpan( 0, 0, 15, 0 );
testsPath = getDirectoryFromPath( ge... | Fix mapping on Adobe CF | Fix mapping on Adobe CF | ColdFusion CFC | mit | elpete/cb-module-template |
ca7ff0b9c4d3a27feeb4284e37b80f544d963a67 | Application.cfc | Application.cfc | component extends="coldbox.system.Coldbox" output="false"{
setting enablecfoutputonly="yes";
this.name = hash(getCurrentTemplatePath());
this.sessionManagement = true;
this.sessionTimeout = createTimeSpan(0,0,30,0);
this.setClientCookies = true;
COLDBOX_APP_ROOT_PATH = getDirectoryFromPath(getCurrentTemplatePat... | component extends="coldbox.system.Coldbox" output="false"{
setting enablecfoutputonly="yes";
this.name = hash(getCurrentTemplatePath());
this.sessionManagement = true;
this.sessionTimeout = createTimeSpan(0,0,30,0);
this.setClientCookies = true;
COLDBOX_APP_ROOT_PATH = getDirectoryFromPath(getCurrentTemplatePat... | Replace {botfly} with correct datasource | Replace {botfly} with correct datasource
| ColdFusion CFC | lgpl-2.1 | NextStepGuru/BotFly,NextStepGuru/BotFly,NextStepGuru/BotFly |
9d0f1ea3d75a913433a045c9edd1e9d55f08e3b5 | ModuleConfig.cfc | ModuleConfig.cfc | component {
this.title = "SendGrid Web API v3";
this.author = "Matthew J. Clemente";
this.webURL = "https://github.com/mjclemente/sendgrid.cfc";
this.description = "A wrapper for the SendGrid Web API v3";
function configure(){
settings = {
apiKey = '', // Required
baseUrl = 'https://api.sendgrid.com/v3',... | component {
this.title = "SendGrid Web API v3";
this.author = "Matthew J. Clemente";
this.webURL = "https://github.com/mjclemente/sendgrid.cfc";
this.description = "A wrapper for the SendGrid Web API v3";
function configure(){
settings = {
apiKey = '', // Required
baseUrl = 'https://api.sendgrid.com/v3',... | Remove leading slash for modulemapping | Remove leading slash for modulemapping
| ColdFusion CFC | mit | mjclemente/sendgrid.cfc |
4f31a9df678bf1f9b34347c52a4fd890727e1289 | test/tickets/LDEV1467.cfc | test/tickets/LDEV1467.cfc | component extends="org.lucee.cfml.test.LuceeTestCase"{
function run( testResults , testBox ) {
describe( title="Test suite for LDEV-1467", body=function() {
it(title="Checking REMatch() is not support with line breaks ", body = function( currentSpec ) {
REMatchTest = ArrayLen( REMatch( '.', Chr( 10 ) ) );
... | component extends="org.lucee.cfml.test.LuceeTestCase"{
function run( testResults , testBox ) {
describe( title="Test suite for LDEV-1467", body=function() {
it(title="Checking REMatch() with line breaks ", body = function( currentSpec ) {
REMatchTest = ArrayLen( REMatch( '.', Chr( 10 ) ) );
expect(REMatch... | Rename the test suite iterations | Rename the test suite iterations
| ColdFusion CFC | lgpl-2.1 | jzuijlek/Lucee,lucee/Lucee,jzuijlek/Lucee,lucee/Lucee,jzuijlek/Lucee,lucee/Lucee,lucee/Lucee |
16214c40755dc468f57ba1580897c0a918ee464a | exercises/leap/LeapTest.cfc | exercises/leap/LeapTest.cfc | component displayName="Leap Tests" extends="testbox.system.BaseSpec" {
// executes before all tests
function beforeTests(){
leapObj = createObject("leap");
}
function testLeapYear() {
$assert.isTrue(leapObj.isLeapYear(1996));
}
function testNonLeapYear() {
$assert.isFalse(leapObj.... | component extends="testbox.system.BaseSpec" {
function beforeAll(){
leapObj = createObject( 'leap' );
}
function run(){
describe( "My Leap year calculator", function(){
it( "should detect a leap year", function(){
expect( leapObj.isLeapYear( 1996 ) ).toBeTrue();
});
it( "should det... | Convert to BDD style tests | Convert to BDD style tests
| ColdFusion CFC | mit | exercism/xcoldfusion |
3184f1d17551904c51099e72057fac966521117b | ModuleConfig.cfc | ModuleConfig.cfc | component {
this.title = "SendGrid Web API v3";
this.author = "Matthew J. Clemente";
this.webURL = "https://github.com/mjclemente/sendgrid.cfc";
this.description = "A wrapper for the SendGrid Web API v3";
function configure(){
settings = {
apiKey = '', // Required
baseUrl = 'https://api.sendgrid.com/v3',... | component {
this.title = "SendGrid Web API v3";
this.author = "Matthew J. Clemente";
this.webURL = "https://github.com/mjclemente/sendgrid.cfc";
this.description = "A wrapper for the SendGrid Web API v3";
function configure(){
settings = {
apiKey = '', // Required
baseUrl = 'https://api.sendgrid.com/v3',... | Simplify onLoad(), eliminating need for private method | Simplify onLoad(), eliminating need for private method
| ColdFusion CFC | mit | mjclemente/sendgrid.cfc |
d1ef993280e14a408ac38983d2b8d007bb153e60 | Application.cfc | Application.cfc | <cfcomponent>
<cfset this.name = "idealcfcexample" />
<cffunction name="onApplicationStart">
<cfset application.ideal = createObject( "lib/cfc/ideal" ).init( config = expandPath( "./config/production.cfm" )) />
</cffunction>
<cffunction name="onRequestStart">
<cfif not structKeyExists( applica... | <cfcomponent>
<cfset this.name = "idealcfcexample" />
<cffunction name="onApplicationStart">
<cfif structKeyExists( application, "ideal" )>
<cfset structDelete( application, "ideal" ) />
</cfif>
<cfset application.ideal = createObject( "lib/cfc/ideal" ).init( config = expandPath( "./conf... | Use test config file instead of production | Use test config file instead of production
Needed to do proper testing
| ColdFusion CFC | mit | mjhagen/idealcfc |
ffbdd690a15908de09f3c9192ab4353be27486d6 | ModuleConfig.cfc | ModuleConfig.cfc | component {
this.title = "SendGrid Web API v3";
this.author = "Matthew J. Clemente";
this.webURL = "https://github.com/mjclemente/sendgrid.cfc";
this.description = "A wrapper for the SendGrid Web API v3";
function configure(){
settings = {
apiKey = '', // Required
emailValidationApiKey = '', // Opt... | component {
this.title = "SendGrid Web API v3";
this.author = "Matthew J. Clemente";
this.webURL = "https://github.com/mjclemente/sendgrid.cfc";
this.description = "A wrapper for the SendGrid Web API v3";
function configure(){
settings = {
apiKey = '', // Required
emailValidationApiKey = '', // Opt... | Update module config default to match component for include raw param | Update module config default to match component for include raw param
| ColdFusion CFC | mit | mjclemente/sendgrid.cfc |
b742fc8d44e882e6ff4c289626a5b716c71ba36d | wheels/tests/_assets/models/User.cfc | wheels/tests/_assets/models/User.cfc | component extends="Model" {
function config() {
hasMany(name="galleries");
hasOne(name="combikey");
hasOne(name="author", foreignKey="firstName", joinKey="firstName");
hasMany(name="authors", foreignKey="firstName", joinKey="firstName");
hasMany(name="combikeys");
hasMany(name="outerjoinphotogalleries", m... | component extends="Model" {
function config() {
hasMany(name="galleries");
hasOne(name="combikey");
hasOne(name="author", foreignKey="firstName", joinKey="firstName");
hasMany(name="authors", foreignKey="firstName", joinKey="firstName");
hasMany(name="combikeys");
hasMany(name="outerjoinphotogalleries", m... | Use number instead of int for Oracle. | Use number instead of int for Oracle.
| ColdFusion CFC | apache-2.0 | cfwheels/cfwheels,cfwheels/cfwheels,cfwheels/cfwheels |
cc5df00bb162ce972c981c43e486185214505d40 | test/tickets/LDEV3426/Application.cfc | test/tickets/LDEV3426/Application.cfc | component {
pgSQL = getCredentials();
this.name = "test3426";
this.datasources["LDEV_3426"] = pgSQL;
this.datasource = "LDEV_3426"
public function onRequestStart(){
query{
echo("DROP TABLE IF EXISTS LDEV3426_Primary");
}
query{
echo("DROP TABLE IF EXISTS LDEV3426_test");
}
query{
... | component {
pgSQL = getCredentials();
this.name = "test3426";
this.datasources["LDEV_3426"] = pgSQL;
this.datasource = "LDEV_3426"
public function onRequestStart(){
if( StructIsEmpty(pgSQL) ){
writeoutput("Datasource credentials was not available"); // Datasource credentials was ... | Update the testcase to check datasource credentials available or not | Update the testcase to check datasource credentials available or not
| ColdFusion CFC | lgpl-2.1 | lucee/Lucee,lucee/Lucee,lucee/Lucee,lucee/Lucee |
a3a82b6bfaec6a7cabb44c61592be3f2a19a508a | test/tickets/LDEV1167.cfc | test/tickets/LDEV1167.cfc | component extends="org.lucee.cfml.test.LuceeTestCase"{
function run( testResults , testBox ) {
describe( "Test suite for LDEV-1167", function() {
it(title="checking WDDX tag, with action = 'wddx2cfml' when the struct empty ", body = function( currentSpec ) {
var myWDDX = "<wddxPacket version='1.0'><header/><d... | Add test case for LDEV-1167 | Add test case for LDEV-1167
| ColdFusion CFC | lgpl-2.1 | lucee/Lucee,jzuijlek/Lucee,lucee/Lucee,lucee/Lucee,lucee/Lucee,jzuijlek/Lucee,jzuijlek/Lucee | |
90d8b5a4cbfd51ecf829205a023a668fccd914ac | Database/Migrations/2017_01_12_181640_add_epositem_nomid_foreign.cfc | Database/Migrations/2017_01_12_181640_add_epositem_nomid_foreign.cfc | component
{
/**
* Run the migrations.
*
* @return void
*/
public void function up()
{
var table = schema('tblEPOS_Items');
table.foreign('eiNomID').references('tblEPOS_Account', 'eaID').onDelete('restrict');
table.update();
}
/**
* Reverse the migrat... | Add foreign key to EPOS items nom ID | Add foreign key to EPOS items nom ID
| ColdFusion CFC | mit | smallstone-uk/sle-epos,smallstone-uk/sle-epos,smallstone-uk/sle-epos | |
b4f50a17142981a7626f4bad82c76dc3a23ed139 | config/app.cfm | config/app.cfm | <cfscript>
// Use this file to set variables for the Application.cfc's "this" scope.
// Examples:
// this.name = "MyAppName";
// this.sessionTimeout = CreateTimeSpan(0,0,5,0);
// Just to make our test suite pass for now.
this.disableEngineCheck = true;
</cfscript>
| <cfscript>
// Use this file to set variables for the Application.cfc's "this" scope.
// Examples:
// this.name = "MyAppName";
// this.sessionTimeout = CreateTimeSpan(0,0,5,0);
</cfscript>
| Remove disableEngineCheck override for release. | Remove disableEngineCheck override for release.
| ColdFusion | apache-2.0 | cfwheels/cfwheels,cfwheels/cfwheels,cfwheels/cfwheels |
94a803d0232dd469c2c0956b2c0b81f1b150962b | ajax/openArchive.cfm | ajax/openArchive.cfm | <cftry>
<cfloop collection="#session.epos_archive#" item="key">
<cfset ref = StructFind(session.epos_archive, key)>
<cfset frame = StructCopy(ref)>
<cfset StructDelete(session, "basket")>
<cfset StructInsert(session, "basket", frame)>
<cfset StructDelete(session.epos_archive, key)>
</cfloop>
<cfcatch type="any">... | <cftry>
<cfloop collection="#session.epos_archive#" item="key">
<cfset ref = StructFind(session.epos_archive, key)>
<cfset frame = StructCopy(ref)>
<cfset StructDelete(session, "basket")>
<cfset StructInsert(session, "basket", frame)>
<cfset StructDelete(session.epos_archive, key)>
</cfloop>
<cfset sessio... | Fix basket total on resume basket | Fix basket total on resume basket
| ColdFusion | mit | smallstone-uk/sle-epos,smallstone-uk/sle-epos,smallstone-uk/sle-epos |
7c59a4143b78dc16bb49eb247685aef0c9670349 | public/views/main/missingview.cfm | public/views/main/missingview.cfm | <!---
Xindi - http://www.getxindi.com/
Copyright (c) 2012, Simon Bingham
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without restriction, including without limitation the rights t... | <!---
Xindi - http://www.getxindi.com/
Copyright (c) 2012, Simon Bingham
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without restriction, including without limitation the rights t... | Hide breadcrumbs on home page. | Hide breadcrumbs on home page.
| ColdFusion | mit | okjim3GH/xindi,okjim3GH/xindi,okjim3GH/xindi,okjim3GH/xindi |
99e6e11e9cd8ac877415d1af5064433335dc28f6 | test/test-template.cfm | test/test-template.cfm | <cfimport prefix="mp" taglib="../extensions/customtags/" />
<cfimport prefix="common" taglib="../../extensions/customtags/common" />
<cfif structkeyexists(url,"topcat_name_urlsafe")>
<cfif variables.topcat.recordcount>
<mp:nav>
<mpx:foobar />
</mp:nav_new>
<cfelse>
<cfinclude template="missing.cfm" />
</cf... | <cfimport prefix="mp" taglib="../extensions/customtags/" />
<cfimport prefix="common" taglib="../../extensions/customtags/common" />
<cfif structkeyexists(url,"topcat_name_urlsafe")>
<cfif variables.topcat.recordcount>
<mp:nav>
<mpx:foobar />
</mp:nav_new>
<cfelse>
<cfinclude template="missing.cfm" />
</cf... | Add a cfscript include statement to the test template | Add a cfscript include statement to the test template
| ColdFusion | mit | timbeadle/cfpathcheck |
b8b78c083fde2662f49dec61f149eb535f31cef9 | wheels/plugins/injection.cfm | wheels/plugins/injection.cfm | <cfscript>
loc.iList = StructKeyList(application.wheels.plugins);
loc.iEnd = ListLen(loc.iList);
for (loc.i=1; loc.i <= loc.iEnd; loc.i++)
{
loc.iItem = ListGetAt(loc.iList, loc.i);
loc.jList = StructKeyList(application.wheels.plugins[loc.iItem]);
loc.jEnd = ListLen(loc.jList);
for (loc.j=1; loc.j <... | <cfscript>
loc.iList = StructKeyList(application.wheels.plugins);
loc.iEnd = ListLen(loc.iList);
for (loc.i=1; loc.i <= loc.iEnd; loc.i++)
{
loc.iItem = ListGetAt(loc.iList, loc.i);
loc.jList = StructKeyList(application.wheels.plugins[loc.iItem]);
loc.jEnd = ListLen(loc.jList);
for (loc.j=1; loc.j <... | Fix for stack overflow error when injecting plugin methods. | Fix for stack overflow error when injecting plugin methods.
| ColdFusion | apache-2.0 | cfwheels/cfwheels,cfwheels/cfwheels,cfwheels/cfwheels |
fa999c13ecd756890285aefdccbd0d53079ee537 | manager/views/private/scratch.cfm | manager/views/private/scratch.cfm | <cfquery datasource="testing">
CREATE TABLE pet (name VARCHAR(20), owner VARCHAR(20),
species VARCHAR(20), sex CHAR(1), birth DATE, death DATE);
</cfquery>
<cfscript>
dump(getTimeZoneInfo());
abort;
o = getBeanFactory().getBean('commonService');
results = o.getURL(sURL = request.sPHPURL & '/results/nfl');
... | <cfquery datasource="test2">
CREATE TABLE pet (name VARCHAR(20), owner VARCHAR(20),
species VARCHAR(20), sex CHAR(1), birth DATE, death DATE);
</cfquery>
<cfscript>
dump(getTimeZoneInfo());
abort;
o = getBeanFactory().getBean('commonService');
results = o.getURL(sURL = request.sPHPURL & '/results/nfl');
w... | Use new datasource to try and connect | Use new datasource to try and connect
| ColdFusion | apache-2.0 | notronwest/pickem,notronwest/pickem,notronwest/pickem,notronwest/pickem |
7944b93093a509a5ae779cfef932d009af35ef53 | views/home/entry.cfm | views/home/entry.cfm | <cfoutput>
<h2>ContentBox Google Code Prettify</h2>
<div>
<p>Paste your code so we can magically prettify it on your site.</p>
#html.startForm(name="codeForm")#
#html.textarea(name="code", label="Code: ", class="textfield", required="true", rows="10")#
<!--- Show Line Numbers --->
#html.label(field="lin... | <cfoutput>
<div class="modal-dialog modal-lg" role="document" >
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4><i class="fa fa-comments"></i>ContentBox Google Code Prettify</h4>
... | Update Entry.cfm for bootstrap layout and styles | Update Entry.cfm for bootstrap layout and styles | ColdFusion | apache-2.0 | gpickin/contentbox-google-prettify,Ortus-Solutions/contentbox-google-prettify |
c2eb8f62379d2b6cd5dcfbceb06fa5d4dc6f2ddd | config/app.cfm | config/app.cfm | <cfscript>
// Use this file to set variables for the Application.cfc's "this" scope.
// Examples:
// this.name = "MyAppName";
// this.sessionTimeout = CreateTimeSpan(0,0,5,0);
</cfscript>
| <cfscript>
// Use this file to set variables for the Application.cfc's "this" scope.
// Examples:
// this.name = "MyAppName";
// this.sessionTimeout = CreateTimeSpan(0,0,5,0);
// Just to make our test suite pass for now.
this.disableEngineCheck = true;
</cfscript>
| Add back the temporary disableEngineCheck so our test suite can run. | Add back the temporary disableEngineCheck so our test suite can run.
| ColdFusion | apache-2.0 | cfwheels/cfwheels,cfwheels/cfwheels,cfwheels/cfwheels |
479a5e63529df144dfd9281052fee1da7d11292a | config/app.cfm | config/app.cfm | <cfscript>
// Use this file to set variables for the Application.cfc's "this" scope.
// Examples:
// this.name = "MyAppName";
// this.sessionTimeout = CreateTimeSpan(0,0,5,0);
</cfscript>
| <cfscript>
// Use this file to set variables for the Application.cfc's "this" scope.
// Examples:
// this.name = "MyAppName";
// this.sessionTimeout = CreateTimeSpan(0,0,5,0);
// Just to make our test suite pass for now.
this.disableEngineCheck = true;
</cfscript>
| Add Back Disable Engine Check | Add Back Disable Engine Check
| ColdFusion | apache-2.0 | cfwheels/cfwheels,cfwheels/cfwheels,cfwheels/cfwheels |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.