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
0971a0d6c5b0db253ba0b003cd7eb4a1cae46485
lib/autosave.coffee
lib/autosave.coffee
{$} = require 'atom' module.exports = configDefaults: enabled: false activate: -> atom.workspaceView.on 'focusout', ".editor:not(.mini)", (event) => editor = $(event.target).closest('.editor').view()?.getModel() @autosave(editor) atom.workspaceView.on 'pane:before-item-destroyed', (event,...
{$} = require 'atom' module.exports = configDefaults: enabled: false activate: -> atom.workspaceView.on 'focusout', ".editor:not(.mini)", (event) => editor = $(event.target).closest('.editor').view()?.getModel() @autosave(editor) atom.workspaceView.on 'pane:before-item-destroyed', (event,...
Access panes on workspace instead of view
Access panes on workspace instead of view
CoffeeScript
mit
akonwi/autosave,atom/autosave
2a86bc44d1a30d62e1f2d56b9f1d604c3d5fdee1
src/modules/app/index.coffee
src/modules/app/index.coffee
'use strict' module.exports = angular.module('astrifex', [ 'ui.router' 'md5.svg-star' require('../../../tmp/templates').name require('../common/index').name require('./maker/index').name ])
'use strict' module.exports = angular.module('astrifex', [ 'ui.router' 'astrifex.svg-star' require('../../../tmp/templates').name require('../common/index').name require('./maker/index').name ])
Use astrifex.svg-star instead of md5.svg-star
Use astrifex.svg-star instead of md5.svg-star
CoffeeScript
mit
astrifex/astrifex,astrifex/astrifex
2b7a0a65bcef0a9993560b26e76f6f60f7058b6a
lib/image-editor-status-view.coffee
lib/image-editor-status-view.coffee
_ = require 'underscore-plus' {View} = require 'atom' ImageEditor = require './image-editor' module.exports = class ImageEditorStatusView extends View @content: -> @div class: 'status-image inline-block', => @span class: 'image-size', outlet: 'imageSizeStatus' initialize: (@statusBar) -> @attach() ...
_ = require 'underscore-plus' {View} = require 'atom' ImageEditor = require './image-editor' module.exports = class ImageEditorStatusView extends View @content: -> @div class: 'status-image inline-block', => @span class: 'image-size', outlet: 'imageSizeStatus' initialize: (@statusBar) -> @attach() ...
Drop px units and spaces from size label
Drop px units and spaces from size label
CoffeeScript
mit
atom/image-view
d0831202bbf1d850e0d16e1d81edde6fbe772668
server/materials/data/topics/sparse_tables.coffee
server/materials/data/topics/sparse_tables.coffee
import contest from "../../lib/contest" import label from "../../lib/label" import link from "../../lib/link" import page from "../../lib/page" import problem from "../../lib/problem" import topic from "../../lib/topic" import {ruen} from "../../lib/util" export default sparse_tables = () -> return { topic...
import contest from "../../lib/contest" import label from "../../lib/label" import link from "../../lib/link" import page from "../../lib/page" import problem from "../../lib/problem" import topic from "../../lib/topic" import {ruen} from "../../lib/util" export default sparse_tables = () -> return { topic...
Move Antimatter task to level 8C
Move Antimatter task to level 8C
CoffeeScript
agpl-3.0
petr-kalinin/algoprog,petr-kalinin/algoprog,petr-kalinin/algoprog,petr-kalinin/algoprog
1e092edd559952251c6df4e04b3cab23cee3ea90
keymaps/bookmarks.cson
keymaps/bookmarks.cson
'.editor': 'ctrl-f2': 'bookmarks:view-all' 'f2': 'bookmarks:jump-to-next-bookmark' 'shift-f2': 'bookmarks:jump-to-previous-bookmark' '.platform-darwin .editor': 'cmd-f2': 'bookmarks:toggle-bookmark' 'cmd-shift-f2': 'bookmarks:clear-bookmarks' '.platform-win32 .editor': 'alt-ctrl-f2': 'bookmarks:toggle-boo...
'atom-text-editor': 'ctrl-f2': 'bookmarks:view-all' 'f2': 'bookmarks:jump-to-next-bookmark' 'shift-f2': 'bookmarks:jump-to-previous-bookmark' '.platform-darwin atom-text-editor': 'cmd-f2': 'bookmarks:toggle-bookmark' 'cmd-shift-f2': 'bookmarks:clear-bookmarks' '.platform-win32 atom-text-editor': 'alt-ctrl...
Fix deprecated selectors in keymap
Fix deprecated selectors in keymap
CoffeeScript
mit
pombredanne/bookmarks-2,atom/bookmarks
a2cf4a5a5c0547a1b2d3eaea2a18f307b329d960
app/assets/javascripts/local_time/page_observer.coffee
app/assets/javascripts/local_time/page_observer.coffee
{elementMatchesSelector} = LocalTime class LocalTime.PageObserver constructor: (@selector, @callback) -> start: -> unless @started @observeWithMutationObserver() or @observeWithMutationEvent() @started = true observeWithMutationObserver: -> if MutationObserver? observer = new Mutation...
{elementMatchesSelector} = LocalTime class LocalTime.PageObserver constructor: (@selector, @callback) -> start: -> unless @started @observeWithMutationObserver() or @observeWithMutationEvent() @started = true observeWithMutationObserver: -> if MutationObserver? observer = new Mutation...
Fix adding inner elements to array
Fix adding inner elements to array
CoffeeScript
mit
basecamp/local_time,basecamp/local_time
a7ea8927e8645dc27a5006b102e46e8331b0d90e
lib/tasks/scan-paths-handler.coffee
lib/tasks/scan-paths-handler.coffee
async = require 'async' fs = require 'fs' VariableScanner = require '../variable-scanner' class PathScanner constructor: (@path) -> @scanner = new VariableScanner load: (done) -> currentChunk = '' currentLine = 0 currentOffset = 0 lastIndex = 0 results = [] readStream = fs.createRea...
async = require 'async' fs = require 'fs' VariableScanner = require '../variable-scanner' class PathScanner constructor: (@path) -> @scanner = new VariableScanner load: (done) -> currentChunk = '' currentLine = 0 currentOffset = 0 lastIndex = 0 line = 0 results = [] readStream = f...
Increment results line when scanning using a stream
Increment results line when scanning using a stream
CoffeeScript
mit
peter1000/atom-pigments,peter1000/atom-pigments
75703dcccdfa172ab4b861d2c23730026325ebb0
menus/tree-view.cson
menus/tree-view.cson
'context-menu': '.tree-view': 'Add File': 'tree-view:add' 'Rename': 'tree-view:move' 'Delete': 'tree-view:remove'
menu: [ { label: 'View' submenu: [ { label: 'Toggle Treeview' command: 'tree-view:toggle' } ] } ] 'context-menu': '.tree-view': 'Add File': 'tree-view:add' 'Rename': 'tree-view:move' 'Delete': 'tree-view:remove'
Add an example menu item.
Add an example menu item.
CoffeeScript
mit
Galactix/tree-view,thgaskell/tree-view,atom/tree-view,laituan245/tree-view,ALEXGUOQ/tree-view,matthewbauer/tree-view,pombredanne/tree-view-1,tbryant/tree-view,learn-co/learn-ide-tree,tomekwi/tree-view,jarig/tree-view,benjaminRomano/tree-view,rajendrant/tree-view-remote,cgrabowski/webgl-studio-tree-view,samu/tree-view,j...
6f4a2c95dd5ed1cb22a958d27dde1636bed00297
server/index.coffee
server/index.coffee
#!/usr/bin/env coffee feathers = require("feathers") bodyParser = require("body-parser") path = require("path") twilio = require("twilio") config = require("./config") # Public Directory publicPath = path.resolve(__dirname, "../app") # Services transmissionService = require("./services/transmissionService") provider...
#!/usr/bin/env coffee feathers = require("feathers") bodyParser = require("body-parser") path = require("path") twilio = require("twilio") config = require("./config") # Public Directory publicPath = path.resolve(__dirname, "../app") # Services transmissionService = require("./services/transmissionService") provider...
Disable Twilio validation because it keeps failing
Disable Twilio validation because it keeps failing
CoffeeScript
mit
Glavin001/TorrentAutomator,Glavin001/TorrentAutomator,Glavin001/TorrentAutomator
d8674d25b335a1568b74f24727835cfe789246ec
src/router.coffee
src/router.coffee
define ['backbone.marionette'], (Marionette) -> class Router extends Marionette.AppRouter routes: 'unit/:id': 'renderUnit', 'unit/?*params': 'renderUnitsWithFilter' renderUnit: (id)-> app.vent.trigger 'unit:render-one', id renderUnitsWithFilter: (params)...
define ['backbone.marionette'], (Marionette) -> delayTime = 500 class Router extends Marionette.AppRouter routes: 'unit/:id': 'renderUnit', 'unit/?*params': 'renderUnitsWithFilter' renderUnit: (id)-> delayed = -> app.vent.trigger 'unit:render-one', id ...
Fix issue caused by asynchronous routing delaying a callback function
Fix issue caused by asynchronous routing delaying a callback function
CoffeeScript
agpl-3.0
Zeukkari/servicemap,vaaralav/servicemap,Zeukkari/servicemap,vaaralav/servicemap,City-of-Helsinki/servicemap,City-of-Helsinki/servicemap,City-of-Helsinki/servicemap,vaaralav/servicemap
30ba54d075ee577dfe3c30b73cfcf569577a6741
app/scripts/scenes/New.coffee
app/scripts/scenes/New.coffee
Crafty.defineScene 'New', -> #Crafty.e('2D,DOM,Color').attr( #x: 10 #y: 10 #w: 20 #h: 20 #).color('#0000FF') #Crafty.e('2D,Canvas,Color,Fourway').attr( #x: 100 #y: 100 #w: 40 #h: 40 #).color('#FF0000').fourway() Crafty.e('2D,WebGL,Color,Fourway,Player').attr( x: 100 ...
Crafty.defineScene 'New', -> ->
Clean slate for live coding
Clean slate for live coding
CoffeeScript
mit
matthijsgroen/game-play,matthijsgroen/game-play,matthijsgroen/game-play
afbccdf7e606671038c8ac588e2af2b47f0800be
app/assets/javascripts/spree/backend/translations.js.coffee
app/assets/javascripts/spree/backend/translations.js.coffee
display_locale_fields = () -> attr = $('#attr_list a.active').data('attr') locales = $('#locale').val() show = $("select[name='show-only']").val() $('#attr_fields .panel').hide() for locale in locales do (locale) -> value = $('#attr_fields .panel.' + attr + '.' + locale + ' :input').val().re...
display_locale_fields = () -> attr = $('#attr_list a.active').data('attr') locale = $('#locale').val() show = $("select[name='show-only']").val() $('#attr_fields .panel').hide() value = $('#attr_fields .panel.' + attr + '.' + locale + ' :input').val().replace /^\s+|\s+$/g, "" if show == 'incomplete...
Fix JS to have translation pages working
Fix JS to have translation pages working
CoffeeScript
bsd-3-clause
solidusio-contrib/solidus_globalize,solidusio-contrib/solidus_globalize,solidusio-contrib/solidus_globalize,solidusio-contrib/solidus_globalize
578d6ba36bcd093b0a607e0b13f394df0cfc9fa5
src/build.coffee
src/build.coffee
fs = require 'fs' path = require 'path' mkdir = (path, cb) -> cb = cb or -> mode = 0o777 & (~process.umask()) fs.mkdir path, mode, (err) -> if err?.code is 'ENOENT' mkdir path.dirname(path), (err) -> mkdir path, (err) -> cb null cb null module.exports = (opts) -> # Get full p...
fs = require 'fs' path = require 'path' mkdir = (path, cb) -> cb = cb or -> mode = 0o777 & (~process.umask()) fs.mkdir path, mode, (err) -> if err?.code is 'ENOENT' mkdir path.dirname(path), (err) -> mkdir path, (err) -> cb null cb null module.exports = (opts) -> # Get full p...
Build should fail on any error.
Build should fail on any error.
CoffeeScript
mit
zeekay/requisite,zeekay/requisite
7aaa3ced9d1ffdacc0a80f38f729035001e6dddc
app/assets/javascripts/ontology_version-state.js.coffee
app/assets/javascripts/ontology_version-state.js.coffee
containers = $(".ontology-version-state") final_states = ["done", "failed"] poll_time = 3000 # milliseconds return if _.isEmpty(containers) || !containers.length update = (container) -> updateContainer = (container) -> current_state = container.data('state') $.getJSON container.data('uri'), (data) -> ...
containers = $(".ontology-version-state") final_states = ["done", "failed"] poll_time = 3000 # milliseconds return if _.isEmpty(containers) || !containers.length update = (container) -> updateContainer = (container) -> current_state = container.data('state') $.getJSON container.data('uri'), (data) -> ...
Read correct field for state update.
Read correct field for state update.
CoffeeScript
agpl-3.0
ontohub/ontohub,ontohub/ontohub,ontohub/ontohub,ontohub/ontohub,ontohub/ontohub,ontohub/ontohub
cb96834a240b163d96f9985ed3f8ac202ab57e8c
viewer/app.coffee
viewer/app.coffee
express = require 'express' app = express() app.get '/', (request, response) -> response.send('Hello World!') port = process.env.PORT or 5000 app.listen port, -> console.log("Listening on " + port) # Extract rendering/serving portion to own module shared by viewer and cli
cli = require 'cli' handleIndex = (request, response, next) -> console.dir(response) response.writeHead 200, 'Content-Type': 'text/html' response.end('Hello World!') port = process.env.PORT or 5000 cli.createServer([ handleIndex ]).listen(port) # Extract rendering/serving portion to own mod...
Use Stack instead of Express
Use Stack instead of Express
CoffeeScript
unlicense
marquee/proto
6eb875fef5de8ca305954d363fa03b0bfd72e5b9
lib/snippets-provider.coffee
lib/snippets-provider.coffee
{Range} = require('atom') fuzzaldrin = require('fuzzaldrin') module.exports = class SnippetsProvider selector: '*' getSuggestions: ({scopeDescriptor, prefix}) -> return unless prefix?.length scopeSnippets = atom.config.get('snippets', {scope: scopeDescriptor}) @findSuggestionsForPrefix(scopeSnippets,...
{Range} = require('atom') fuzzaldrin = require('fuzzaldrin') module.exports = class SnippetsProvider selector: '*' getSuggestions: ({scopeDescriptor, prefix}) -> return unless prefix?.length scopeSnippets = atom.config.get('snippets', {scope: scopeDescriptor}) @findSuggestionsForPrefix(scopeSnippets,...
Add metadata for each suggestion
Add metadata for each suggestion
CoffeeScript
mit
atom/autocomplete-snippets
f22946a7acab5370d9249a737f3693ca08a92984
app/assets/javascripts/articles.js.coffee
app/assets/javascripts/articles.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/ $ -> $('#search').on 'keyup', -> $('.search-bar form').submit()
# 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/ $ -> delay = (ms, func) -> setTimeout func, ms submit_form = -> console.log "submitted that damned ...
Add a delay before fetching matching records on search.
Add a delay before fetching matching records on search.
CoffeeScript
mit
robomc/orientation,IZEA/orientation,twinn/orientation,splicers/orientation,LogicalBricks/orientation,IZEA/orientation,cmckni3/orientation,codeschool/orientation,splicers/orientation,orientation/orientation,orientation/orientation,cmckni3/orientation,hashrocket/orientation,codio/orientation,jefmathiot/orientation,smashi...
f8ecf929a886f494e17c09310415ab169322a667
spec/integration/smoke-spec.coffee
spec/integration/smoke-spec.coffee
fs = require 'fs-plus' path = require 'path' season = require 'season' temp = require('temp').track() runAtom = require './helpers/start-atom' describe "Smoke Test", -> return unless process.platform is 'darwin' # Fails on win32 atomHome = temp.mkdirSync('atom-home') beforeEach -> jasmine.useRealClock() ...
fs = require 'fs-plus' path = require 'path' season = require 'season' temp = require('temp').track() runAtom = require './helpers/start-atom' describe "Smoke Test", -> return unless process.platform is 'darwin' # Fails on win32 atomHome = temp.mkdirSync('atom-home') beforeEach -> jasmine.useRealClock() ...
Disable github package in smoke test – it takes too long to compile
Disable github package in smoke test – it takes too long to compile
CoffeeScript
mit
brettle/atom,liuderchi/atom,sotayamashita/atom,FIT-CSE2410-A-Bombs/atom,decaffeinate-examples/atom,CraZySacX/atom,liuderchi/atom,atom/atom,PKRoma/atom,AlexxNica/atom,Arcanemagus/atom,kevinrenaers/atom,Arcanemagus/atom,decaffeinate-examples/atom,AlexxNica/atom,t9md/atom,t9md/atom,Arcanemagus/atom,CraZySacX/atom,PKRoma/a...
851f1ce44859da3829f6a3fb8783328922ed3655
src/components/learning-guide.cjsx
src/components/learning-guide.cjsx
React = require 'react' LearningGuide = require '../flux/learning-guide' LoadableItem = require './loadable-item' Teacher = require './learning-guide/teacher' Student = require './learning-guide/student' LearningGuideStudentShell = React.createClass contextTypes: router: React.PropTypes.func render: -> ...
React = require 'react' LearningGuide = require '../flux/learning-guide' LoadableItem = require './loadable-item' TeacherComponent = require './learning-guide/teacher' StudentComponent = require './learning-guide/student' TeacherStudentComponent = require './learning-guide/teacher-student' {PerformanceStore, Performan...
Load performance store and use options for learning guide
Load performance store and use options for learning guide
CoffeeScript
agpl-3.0
openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js
790f18f923d731a394edfd3b020a8b0c706b8d2d
spec/javascripts/application/seeds_store_spec.js.coffee
spec/javascripts/application/seeds_store_spec.js.coffee
describe 'PodsList', -> subject = null beforeEach (done) -> subject = new SeedsStore('test') expect(subject.clear()).eventually.notify(done) it 'counts 0', (done) -> expect(subject.countForAll()).eventually.equal(0).notify(done) it 'counts n', (done) -> subject.update([{name: 1},{name: 2},{name:...
describe 'PodsList', -> subject = null beforeEach (done) -> subject = new SeedsStore('test') expect(subject.clear()).eventually.notify(done) it 'counts 0', (done) -> expect(subject.countForAll()).eventually.equal(0).notify(done) it 'counts n', (done) -> subject.update([{name: 1},{name: 2},{name:...
Add basic reads from all tests.
Add basic reads from all tests.
CoffeeScript
mit
bsingr/cocoa-tree,bsingr/cocoa-tree,bsingr/cocoa-tree
d6f265fe079208969d6f596793645a1a4795fd7b
src/scripts/github-activity.coffee
src/scripts/github-activity.coffee
# Description: # None # # Dependencies: # "date-utils": ">=1.2.5" # "githubot": "0.2.0" # # Configuration: # HUBOT_GITHUB_TOKEN # # Commands: # hubot repo show <repo> - shows activity of repository # # Author: # vquaiato require('date-utils') module.exports = (robot) -> github = require("githubot")(rob...
# Description: # None # # Dependencies: # "date-utils": ">=1.2.5" # "githubot": "0.2.0" # # Configuration: # HUBOT_GITHUB_TOKEN # HUBOT_GITHUB_USER # # Commands: # hubot repo show <repo> - shows activity of repository # # Author: # vquaiato require('date-utils') module.exports = (robot) -> github = r...
Add HUBOT_GITHUB_USER env variable to configuration. Delete unneeded variable 'oauth'.
Add HUBOT_GITHUB_USER env variable to configuration. Delete unneeded variable 'oauth'.
CoffeeScript
mit
1000hz/hubot-scripts,markstory/hubot-scripts,wsoula/hubot-scripts,flores/hubot-scripts,magicstone1412/hubot-scripts,alexhouse/hubot-scripts,davidsulpy/hubot-scripts,dyg2104/hubot-scripts,jacobtomlinson/hubot-scripts,josephcarmello/hubot-scripts,dbkaplun/hubot-scripts,phillipalexander/hubot-scripts,jankowiakmaria/hubot-...
fbe98f72228b7e156227962ccdc888609ff494ca
web/lib/coffeescripts/filter.coffee
web/lib/coffeescripts/filter.coffee
class Filter constructor: (options) -> @list = options.list @icon = options.icon @form = options.form @attrs = options.attrs @open = options.open @close = options.close this.draw() draw: -> $(@icon).addClass 'filter-button' form = $('<form class="filter-form" style="display:...
class Filter constructor: (options) -> @list = options.list @icon = options.icon @form = options.form @attrs = options.attrs @open = options.open @close = options.close this.draw() draw: -> $(@icon).addClass 'filter-button' form = $('<form class="filter-form" style="display:...
Hide only the immediate li children of the list, rather than embedded lists too.
Hide only the immediate li children of the list, rather than embedded lists too.
CoffeeScript
mit
negativecode/vines,AliEn707/vines,artofhuman/vines,AliEn707/vines,Zauberstuhl/vines,artofhuman/vines,negativecode/vines,Zauberstuhl/diaspora-vines,Zauberstuhl/diaspora-vines,AliEn707/vines,artofhuman/vines,diaspora/vines,Zauberstuhl/vines,diaspora/vines
6b49ad50e967af28fcc76fb57c895c1d9ef6af9d
client/client_flag.coffee
client/client_flag.coffee
if Meteor.isClient UI.registerHelper('featureFlag', () -> flag = @valueOf() flags = Session.get('flags') if flags and flag of flags and flags[flag] == true Template._featureFlag else null ) Deps.autorun () -> if Meteor.userId()? #Set yo...
if Meteor.isClient UI.registerHelper('featureFlag', () -> flag = @valueOf() flags = Session.get('flags') if flags and flag of flags and flags[flag] == true Template._featureFlag else null ) Deps.autorun () -> #Set your flagging Meteor.call(...
Remove check for Meteor.userId() as session can be used without it
Remove check for Meteor.userId() as session can be used without it
CoffeeScript
mit
recursivefaults/meteor-feature-flag
5c825aa74a75bc2c00ed7c6e5c7c4c37bee68471
src/scripts/modules/search/advanced/advanced.coffee
src/scripts/modules/search/advanced/advanced.coffee
define (require) -> $ = require('jquery') _ = require('underscore') router = require('cs!router') SearchHeaderView = require('cs!../header/header') BaseView = require('cs!helpers/backbone/views/base') template = require('hbs!./advanced-template') require('less!./advanced') return class AdvancedSearchVi...
define (require) -> $ = require('jquery') _ = require('underscore') router = require('cs!router') SearchHeaderView = require('cs!../header/header') BaseView = require('cs!helpers/backbone/views/base') template = require('hbs!./advanced-template') require('less!./advanced') return class AdvancedSearchVi...
Expand keywords into multiple key:value pairs
Expand keywords into multiple key:value pairs
CoffeeScript
agpl-3.0
katalysteducation/webview,dak/webview,katalysteducation/webview,Connexions/webview,katalysteducation/webview,dak/webview,Connexions/webview,Connexions/webview,dak/webview,carolinelane10/webview,Connexions/webview,katalysteducation/webview
4f52e2ca452c18dedc15d01ffb9acdeed28d8964
lib/linter-php.coffee
lib/linter-php.coffee
linterPath = atom.packages.getLoadedPackage("linter").path Linter = require "#{linterPath}/lib/linter" {CompositeDisposable} = require 'atom' class LinterPhp extends Linter # The syntax that the linter handles. May be a string or # list/tuple of strings. Names should be all lowercase. @syntax: ['text.html.php', ...
linterPath = atom.packages.getLoadedPackage("linter").path Linter = require "#{linterPath}/lib/linter" class LinterPhp extends Linter # The syntax that the linter handles. May be a string or # list/tuple of strings. Names should be all lowercase. @syntax: ['text.html.php', 'source.php'] # A string, list, tupl...
Use options to observe phpExecutablePath config
Use options to observe phpExecutablePath config
CoffeeScript
mit
AtomLinter/linter-php,AtomLinter/linter-php
e0ca33ae44163b1ec4d5c40936b4c33b9952c21b
test/spec.coffee
test/spec.coffee
fs = require('fs') expect = require('chai').expect jsdom = require('jsdom').jsdom html = fs.readFileSync("#{__dirname}/index.html", 'utf-8') global.document = jsdom(html) global.window = document.parentWindow global.jQuery = $ = require('jquery') require('../jquery.serializeJSON.js') data = phone:...
fs = require('fs') expect = require('chai').expect jsdom = require('jsdom').jsdom html = fs.readFileSync("#{__dirname}/index.html", 'utf-8') global.document = jsdom(html) global.window = document.parentWindow global.jQuery = $ = require('jquery') require('../dist/jquery.serializeJSON.js') data = p...
Use correct js file for test
Use correct js file for test
CoffeeScript
mit
Tivoli/jQuery.serializeJSON,Tivoli/jQuery.serializeJSON
0533c53bfe7aada2136b0c00958b2803bb5e87c1
angular/core/components/polls_page/polls_page.coffee
angular/core/components/polls_page/polls_page.coffee
angular.module('loomioApp').controller 'PollsPageController', ($scope, $q, $rootScope, Records, AbilityService, TranslationService, LoadingService, ModalService, PollCommonStartModal) -> $rootScope.$broadcast('currentComponent', { page: 'pollsPage'}) @pollIds = [] from = 0 per = 1 Records.polls.searchResul...
angular.module('loomioApp').controller 'PollsPageController', ($scope, $q, $rootScope, Records, AbilityService, TranslationService, LoadingService, ModalService, PollCommonStartModal) -> $rootScope.$broadcast('currentComponent', { page: 'pollsPage'}) @pollIds = [] from = 0 per = 10 Records.polls.searchResu...
Load 10 records in poll page
Load 10 records in poll page
CoffeeScript
agpl-3.0
piratas-ar/loomio,piratas-ar/loomio,loomio/loomio,loomio/loomio,loomio/loomio,piratas-ar/loomio,loomio/loomio,piratas-ar/loomio
4eb23a1b793d76ed3e72100643d02f8e0cf72f7d
app/scripts/controllers/main.coffee
app/scripts/controllers/main.coffee
'use strict' angular.module('xoWebApp') .controller 'MainCtrl', ($scope, $location, stats, objects) -> $scope.stats = stats.stats $scope.byUUIDs = objects.byUUIDs $scope.hosts = objects.byTypes.host ? [] $scope.pools = objects.byTypes.pool ? [] $scope.SRs = objects.byTypes.SR ? [] $scope.VMs...
'use strict' angular.module('xoWebApp') .controller 'MainCtrl', ($scope, $location, stats, objects) -> $scope.stats = stats.stats $scope.byUUIDs = objects.byUUIDs $scope.hosts = objects.byTypes.host ? [] $scope.pools = objects.byTypes.pool ? [] $scope.SRs = objects.byTypes.SR ? [] $scope.VMs...
Fix for the master checkbox.
Fix for the master checkbox.
CoffeeScript
agpl-3.0
fbeauchamp/xo-web,lmcro/xo-web,borestad/xo-web,LamaDelRay/xo-web,vatesfr/xo-web,fbeauchamp/xo-web,borestad/xo-web,lmcro/xo-web,lmcro/xo-web,LamaDelRay/xo-web,vatesfr/xo-web
42032b8d05e4c62b7efdd56dc0d3ce837523d63e
controllers/user_credentials.coffee
controllers/user_credentials.coffee
BaseController = require "#{__dirname}/base" sql = require 'sql' UserCredential = require "#{__dirname}/../models/user_credential" class UsersController extends BaseController user_credential: sql.define name: 'usercredentials' columns: (new UserCredential).columns() create: (userId, callback)-> user...
BaseController = require "#{__dirname}/base" sql = require 'sql' UserCredential = require "#{__dirname}/../models/user_credential" class UsersController extends BaseController user_credential: sql.define name: 'usercredentials' columns: (new UserCredential).columns() create: (userId, callback)-> user...
Add user credentials delete on controller
Add user credentials delete on controller
CoffeeScript
bsd-3-clause
t3mpus/tempus-api
5af8d8506bf79e2ef53f8369b6e9f13175ebd663
test/test_coffeelint.coffee
test/test_coffeelint.coffee
path = require 'path' vows = require 'vows' assert = require 'assert' coffeelint = require path.join('..', 'lib', 'coffeelint') vows.describe('coffeelint').addBatch({ "CoffeeLint's version number" : topic : coffeelint.VERSION 'exists' : (version) -> assert.isString(version) "Co...
path = require 'path' vows = require 'vows' assert = require 'assert' coffeelint = require path.join('..', 'lib', 'coffeelint') vows.describe('coffeelint').addBatch({ "CoffeeLint's version number" : topic : coffeelint.VERSION 'exists' : (version) -> assert.isString(version) "Co...
Update coffeelint test to fix bug where the test was getting the output from the 1.5.0+ version of coffeescript
Update coffeelint test to fix bug where the test was getting the output from the 1.5.0+ version of coffeescript
CoffeeScript
mit
AsaAyers/testing-default-branch,AsaAyers/coffeelint,swang/coffeelint,zmbush/coffeelint,mitar/coffeelint,sagemathinc/coffeelint-cjsx,sgentle/coffeelint,machadoit/coffeelint,lydell/coffeelint,clutchski/coffeelint,cskeppstedt/coffeelint,emorikawa/coffeelint-cjsx
1362da710b2192e87fcb9a133b56597b4b27ef64
services/web/public/coffee/directives/bookmarkableTabset.coffee
services/web/public/coffee/directives/bookmarkableTabset.coffee
define [ "base" ], (App) -> App.directive "bookmarkableTabset", ($location, _) -> restrict: "A" require: "tabset" link: (scope, el, attrs, tabset) -> scope.$applyAsync () -> hash = $location.hash() if hash? and hash != "" matchingTab = _.find tabset.tabs, (tab) -> tab.bookmarkableTabId == ...
define [ "base" ], (App) -> App.directive "bookmarkableTabset", ($location, _) -> restrict: "A" require: "tabset" link: (scope, el, attrs, tabset) -> linksToTabs = document.querySelectorAll(".link-to-tab"); _clickLinkToTab = (event) -> _makeActive(event.currentTarget.getAttribute("href").replace('#', ...
Watch for hash change for tabs
Watch for hash change for tabs
CoffeeScript
agpl-3.0
sharelatex/sharelatex
46efade443c409e8ce4c82225e5dd45f9b9f9f67
coffee/config.coffee
coffee/config.coffee
exports.conString = 'postgres://postgres:@localhost:5432/test' exports.from = [ {table: 'calendar', type: 'C', colId: 'id'} {table: 'calendar_entry', type: 'E', colId: 'id'} ] exports.oid = {table: 'objectid', colType: 'type', colId: 'id', colOid: 'oid'}
exports.conString = 'postgres://postgres:1234@localhost:5432/test' exports.from = [ {table: 'calendar', type: 'C', colId: 'id'} {table: 'calendar_entry', type: 'E', colId: 'id'} ] exports.oid = {table: 'objectid', colType: 'type', colId: 'id', colOid: 'oid'}
Add correct password to postgres connect
Add correct password to postgres connect
CoffeeScript
mit
Turistforeningen/node-postgres-objectid
32b075fcd00ece7ed3ddb33d7e031260321d5f4b
apps/galleries_institutions/queries/partner_fragment.coffee
apps/galleries_institutions/queries/partner_fragment.coffee
module.exports = ''' fragment partner on Partner { id name initials locations(size:15) { city } profile { id href image { cropped(width:400, height:300, version: ["wide", "large", "featured", "larger"]) { url } } } } '''
module.exports = ''' fragment partner on Partner { id name initials locations(size:15) { city } profile { id href image { cropped(width:400, height:266, version: ["wide", "large", "featured", "larger"]) { url } } } } '''
Change the ratio of partner cover images to 3:2, as suggested in CMS.
Change the ratio of partner cover images to 3:2, as suggested in CMS.
CoffeeScript
mit
artsy/force-public,artsy/force,izakp/force,kanaabe/force,dblock/force,izakp/force,cavvia/force-1,mzikherman/force,damassi/force,izakp/force,kanaabe/force,eessex/force,erikdstock/force,anandaroop/force,mzikherman/force,erikdstock/force,anandaroop/force,joeyAghion/force,anandaroop/force,dblock/force,oxaudo/force,xtina-st...
63135dbed4c376fea42775b96507e738936427bd
src/lib/amazon.coffee
src/lib/amazon.coffee
# Require Node.js core modules. http = require("http") # Require Node EC2 specific modules. ResponseParser = require("./response").ResponseParser invoke = require("./request").invoke # Used whan a callback is not provided. amazon = (options, splat) -> extended = options switch splat.length ...
# Require Node.js core modules. http = require("http") # Require Node EC2 specific modules. ResponseParser = require("./response").ResponseParser invoke = require("./request").invoke # Used whan a callback is not provided. amazon = (options, splat) -> extended = options switch splat.length ...
Include XML error response message in exception.
Include XML error response message in exception.
CoffeeScript
mit
defunct/node-ec2,defunct/node-ec2,pnedunuri/node-ec2
6e6a407fe65735d1ad5abb7294b16e4fdc5c9cec
client/view/setup.coffee
client/view/setup.coffee
Template.setup.rendered = -> setupGa() setupGa = -> if !window.ga? ( (i, s, o, g, r, a, m) -> i['GoogleAnalyticsObject'] = r i[r] = i[r] || -> (i[r].q = i[r].q || []).push(arguments) i[r].l = 1 * new Date() a = s.createElement(o) m = s.getElementsByTagName(o)[0] ...
Template.setup.rendered = -> setupGa() setupGa = -> if !window.ga? ( (i, s, o, g, r, a, m) -> i['GoogleAnalyticsObject'] = r i[r] = i[r] || -> (i[r].q = i[r].q || []).push(arguments) i[r].l = 1 * new Date() a = s.createElement(o) m = s.getElementsByTagName(o)[0] ...
Set up a new GA tracking code for 2015
Set up a new GA tracking code for 2015
CoffeeScript
apache-2.0
rantav/reversim-summit-2015,rantav/reversim-summit-2015,rantav/reversim-summit-2015
03d73fd0eef8570eaa1e63e1278cfc8121b39977
app/views/footer-view.coffee
app/views/footer-view.coffee
m = require 'mithril' Footer = require './components/footer' config = require 'config' module.exports = (vnode, attrs) -> ctrl = vnode.state.ctrl attrs = Object.assign attrs or {}, vnode.attrs site = config.site author = config.author links = [] if site.sourceCode links.push(href: site.sourceCode, te...
m = require 'mithril' Footer = require './components/footer' config = require 'config' module.exports = (vnode, attrs) -> ctrl = vnode.state.ctrl attrs = Object.assign attrs or {}, vnode.attrs site = config.site author = config.author links = [] if site.sourceCode links.push(href: site.sourceCode, te...
Use author link in footer
[FIX] Use author link in footer
CoffeeScript
mit
nerevu/redcross-viz,nerevu/redcross-viz
56cae7866239ad010875e420363014db71f2fe5e
coffee/patchboard.coffee
coffee/patchboard.coffee
module.exports = Server: require("patchboard-server") Client: require("patchboard-client") Tools: require("./tools")
lazyRequire = (path) -> get: (-> require( path )), enumerable: true Object.defineProperties module.exports, Server: lazyRequire "patchboard-server" Client: lazyRequire "patchboard-client" Tools: lazyRequire "./tools"
Use lazy loading for requires to ensure we only include the minimum necessary code.
Use lazy loading for requires to ensure we only include the minimum necessary code.
CoffeeScript
mit
GemHQ/patchboard,patchboard/patchboard,GemHQ/patchboard,patchboard/patchboard
d013a227b9ac7cd0d0d7e809e2c8fd45ea5a7619
test/pathview_test.coffee
test/pathview_test.coffee
chai = require 'chai' sinon = require 'sinon' chai.use require 'sinon-chai' expect = chai.expect describe 'pathview', -> beforeEach -> @robot = respond: sinon.spy() hear: sinon.spy() require('../src/pathview')(@robot) it 'registers a pathview listener', -> expect(@robot.respond).to.have....
chai = require 'chai' sinon = require 'sinon' chai.use require 'sinon-chai' expect = chai.expect describe 'pathview', -> beforeEach -> @robot = respond: sinon.spy() hear: sinon.spy() require('../src/pathview')(@robot) it 'registers a pathview listener', -> expect(@robot.respond).to.have....
Fix typo in test name
Fix typo in test name
CoffeeScript
mit
appneta/hubot-pathview
6a7a313197afe5472ad475d39b51d75741e6f8c1
app/assets/javascripts/application.coffee
app/assets/javascripts/application.coffee
# ************************************* # # Application # -> Compendium # # ************************************* # ------------------------------------- # Vendor # ------------------------------------- #= require jquery #= require jquery.tokeninput #= require jquery_ujs #= require moment # -------------------...
# ************************************* # # Application # -> Compendium # # ************************************* # ------------------------------------- # Vendor # ------------------------------------- #= require jquery #= require jquery.tokeninput #= require jquery_ujs #= require moment # -------------------...
Improve Table of Contents nested list font size
Improve Table of Contents nested list font size
CoffeeScript
mit
smashingboxes/orientation,jefmathiot/orientation,jefmathiot/orientation,orientation/orientation,twinn/orientation,orientation/orientation,Scripted/orientation,Scripted/orientation,codio/orientation,smashingboxes/orientation,splicers/orientation,liufffan/orientation,LogicalBricks/orientation,robomc/orientation,hashrocke...
ac26b3dc00740c3b8137ca90e62facd388c4f685
lib/generators/rails_script/install/templates/base.js.coffee
lib/generators/rails_script/install/templates/base.js.coffee
window.App ||= {} class App.Base constructor: -> if (window.jQuery) then @setClearEventHandlers() # clearing application event handlers only possible with jQuery return this ### Run the new action for the create action. Generally the create action will 'render :new' if there was a problem. This prev...
window.App ||= {} class App.Base constructor: -> if (window.jQuery) then @setClearEventHandlers() # clearing application event handlers only possible with jQuery return this ### Run the new action for the create action. Generally the create action will 'render :new' if there was a problem. This prev...
Change $ to jQuery, to prevent naming conflicts
Change $ to jQuery, to prevent naming conflicts
CoffeeScript
mit
kpheasey/rails_script,gemgento/rails_script
2757fbbf0e0014957895146a19117b62718a41ae
controls/_Version.coffee
controls/_Version.coffee
### This version class exists so we can work a version number into the catalog. ### class window._Version extends Control @catalog: "0.9.3.1-pre"
### This version class exists so we can work a version number into the catalog. ### class window._Version extends Control @catalog: "0.9.3.1"
Change version to 0.9.3.1 (with "pre") in preparation for release.
Change version to 0.9.3.1 (with "pre") in preparation for release.
CoffeeScript
mit
JanMiksovsky/quickui-catalog
628fb4713b661bed030b02e79c60a0449252f303
snippets/js-polymer-declaration.cson
snippets/js-polymer-declaration.cson
".source.js": "Polymer: Element declaration": "prefix": "Polymer" "body": """ Polymer({ is: "${1:my-element}", $2 }); """ "Polymer: properties": "prefix": "properties" "body": """ properties: { ${1:name}: { type: ${2:Boolean} } } """ "Polymer...
".source.js": "Polymer: Element declaration": "prefix": "Polymer" "body": """ Polymer({ is: "${1:my-element}", $2 }); """ "Polymer: Declare properties": "prefix": "properties" "body": """ properties: { ${1:name}: { type: ${2:Boolean} }$3 } """ ...
Add more JS snippets for Polymer declarations
Add more JS snippets for Polymer declarations
CoffeeScript
mit
zacharytamas/atom-polymer
e50fef151f7c806f6e5633c9b90f8ba50d98afd4
services/web/app/coffee/Features/Analytics/AnalyticsRouter.coffee
services/web/app/coffee/Features/Analytics/AnalyticsRouter.coffee
AuthenticationController = require './../Authentication/AuthenticationController' AnalyticsController = require('./AnalyticsController') AnalyticsProxy = require('./AnalyticsProxy') module.exports = apply: (webRouter, privateApiRouter, publicApiRouter) -> webRouter.post '/event/:event', AnalyticsController.recordEv...
AuthenticationController = require './../Authentication/AuthenticationController' AnalyticsController = require('./AnalyticsController') AnalyticsProxy = require('./AnalyticsProxy') module.exports = apply: (webRouter, privateApiRouter, publicApiRouter) -> webRouter.post '/event/:event', AnalyticsController.recordEv...
Add `uniExternalCollaboration` proxy to AnalyticRouter
Add `uniExternalCollaboration` proxy to AnalyticRouter
CoffeeScript
agpl-3.0
sharelatex/sharelatex
b179f39b01990a5d0fa844fae53eb82eb4832c79
grammars/jisonlex-injection.cson
grammars/jisonlex-injection.cson
"name": "Jison Lex Injection" scopeName: "source.jisonlex-injection" # Jison Lex replaces certain strings that start with “yy”: # # This string | is replaced with # ------------|----------------- # yyleng | yy_.yyleng # yylineno | yy_.yylineno # yylloc | yy_.yylloc # yytext | yy_.yytext # # This repl...
"name": "Jison Lex Injection" scopeName: "source.jisonlex-injection" # Jison Lex replaces certain strings that start with “yy”: # # This string | is replaced with # ------------|----------------- # yyleng | yy_.yyleng # yylineno | yy_.yylineno # yylloc | yy_.yylloc # yytext | yy_.yytext # # This repl...
Add parentheses to Jison Lex injection scopes
Add parentheses to Jison Lex injection scopes
CoffeeScript
mit
nwhetsell/language-jison,cdibbs/language-jison
3f5776851fe5e46087543ce8368eca9d7f1d4ebb
app/assets/javascripts/modules/protected_areas/base.js.coffee
app/assets/javascripts/modules/protected_areas/base.js.coffee
$(document).ready( -> require(['factsheet_handler'], (FactsheetHandler) -> new FactsheetHandler($('.factsheet')) ) require(['tabs'], (Tabs) -> new Tabs($('.js-tabs-map'), ($tab, $tabContainer = null) -> #update the geometry when the tab is changed if($tab != null) window.ProtectedPla...
$(document).ready( -> require(['factsheet_handler'], (FactsheetHandler) -> new FactsheetHandler($('.factsheet')) ) require(['tabs'], (Tabs) -> new Tabs($('.js-tabs-map'), ($tab, $tabContainer = null) -> #update the geometry when the tab is changed if($tab != null) window.ProtectedPla...
Swap order of map updates
Swap order of map updates
CoffeeScript
bsd-3-clause
unepwcmc/ProtectedPlanet,unepwcmc/ProtectedPlanet,unepwcmc/ProtectedPlanet,unepwcmc/ProtectedPlanet,unepwcmc/ProtectedPlanet
402ea5c2da5b0a2e89b156d2310d367980b20313
framer/Config.coffee
framer/Config.coffee
Utils = require "./Utils" FramerCSS = """ body { margin: 0; } .framerContext { position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; overflow: hidden; } .framerLayer { display: block; position: absolute; background-repeat: no-repeat; background-size: cover; -webkit-overflow-sc...
Utils = require "./Utils" FramerCSS = """ body { margin: 0; } .framerContext { position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; overflow: hidden; } .framerLayer { display: block; position: absolute; left: 0; top: 0; background-repeat: no-repeat; background-size: cover; ...
Fix subLayers being affected by superLayer `html`
Fix subLayers being affected by superLayer `html` A subLayer of a superLayer with `Layer#html` content set would not be positioned correctly in the parent view, as it would be pushed down by the content. This ensures layers are positioned correctly within their parent.
CoffeeScript
mit
WestonThayer/Framer,tisho/Framer,awt2542/Framer,mattsjohnston/Framer,calebduren/Framer,jchavarri/Framer,awt2542/Framer,qezt/Framer,irwansyahwii/Framer,calebduren/Framer,qezt/Framer,jchavarri/Framer,DNESS/Framer,tisho/Framer,qezt/Framer,jchavarri/Framer,WestonThayer/Framer,WestonThayer/Framer,irwansyahwii/Framer,tisho/F...
e64dc3c60f63a00adce7ed5dcac6d7e06fcc129f
gui/Gruntfile.coffee
gui/Gruntfile.coffee
module.exports = (grunt) -> grunt.initConfig browserify: gen: files: "gen/out.js": ["scripts/index.js"] options: transform: ['node-underscorify'], debug: true, connect: server: options: port: 8000 hostname: "0.0.0.0" keepalive: true sass: gen: options: ...
module.exports = (grunt) -> grunt.initConfig concurrent: server: tasks: ["connect", "watch"] options: logConcurrentOutput: true browserify: options: browserifyOptions: debug: true gen: files: "gen/out.js": ["scripts/index.js"] options: transform: ['node-underscorif...
Add concurrent task for watch and connect
Add concurrent task for watch and connect
CoffeeScript
apache-2.0
domolicious/transmission_modern,domolicious/transmission_modern,domolicious/transmission_modern,domolicious/transmission_modern
73a442f0f2ebc3e2ec277ccf0e2f75384ed7114e
app.coffee
app.coffee
express = require 'express' app = express() # Serve static files app.use express.static(__dirname + '/public') # Set cache manifext content-type app.use (req, res, next)-> if req.originalUrl == '/cache.manifest' res.setHeader('Content-Type', 'text/cache-manifest') next() app.get '/', (req, res, next)-> res...
express = require 'express' app = express() process.env.PWD = process.cwd() # Serve static files app.use express.static(process.env.PWD + '/public') # Set cache manifext content-type app.use (req, res, next)-> if req.originalUrl == '/cache.manifest' res.setHeader('Content-Type', 'text/cache-manifest') next()...
Fix heroku /public file serving
Fix heroku /public file serving
CoffeeScript
mit
ArnaudWopata/videoappcache
ffa66ad062f6eb6f8ef745f870e59cfca5267f05
test/test_helper.coffee
test/test_helper.coffee
fs = require 'fs' module.exports.openFixture = (file, callback) -> fs.readFile __dirname.concat("/fixtures/#{file}.html"), 'utf-8', (err, data) -> return callback err, data unless err
fs = require 'fs' module.exports.openFixture = (file, callback) -> fs.readFile __dirname.concat("/fixtures/#{file}.html"), 'utf-8', (err, data) -> return callback err, data unless err
Fix line-length on openFixture spec helper
Fix line-length on openFixture spec helper
CoffeeScript
mit
jonahoffline/node-redsismica
c9ba037e1e8dd4f796258c55f571f85e4d948079
resources/assets/coffee/react/_components/user-avatar.coffee
resources/assets/coffee/react/_components/user-avatar.coffee
### # Copyright 2015-2017 ppy Pty. Ltd. # # This file is part of osu!web. osu!web is distributed with the hope of # attracting more community contributions to the core ecosystem of osu!. # # osu!web is free software: you can redistribute it and/or modify # it under the terms of the Affero GNU General Pub...
### # Copyright 2015-2017 ppy Pty. Ltd. # # This file is part of osu!web. osu!web is distributed with the hope of # attracting more community contributions to the core ecosystem of osu!. # # osu!web is free software: you can redistribute it and/or modify # it under the terms of the Affero GNU General Pub...
Fix undefined variable access and modifiers not being passed through to guest avatar
Fix undefined variable access and modifiers not being passed through to guest avatar
CoffeeScript
agpl-3.0
kj415j45/osu-web,LiquidPL/osu-web,nekodex/osu-web,omkelderman/osu-web,ppy/osu-web,notbakaneko/osu-web,LiquidPL/osu-web,nanaya/osu-web,ppy/osu-web,nekodex/osu-web,ppy/osu-web,nekodex/osu-web,nanaya/osu-web,LiquidPL/osu-web,omkelderman/osu-web,omkelderman/osu-web,ppy/osu-web,kj415j45/osu-web,omkelderman/osu-web,nanaya/os...
01e78b9280ee022d0e2f8a75adc1b1f21198e61e
lib/potato.coffee
lib/potato.coffee
# node libs fs = require('fs') path = require('path') # our libs SlotMachine = require('./slotMachine.coffee') basePath = path.join(__dirname, '..') generatedPath = path.join(basePath, '.generated') class Potato colors: [ '#81bef1' '#ad8bf2' '#bff288' '#de7878' '#a5aa...
# node libs fs = require('fs') path = require('path') # our libs SlotMachine = require('./slotMachine.coffee') basePath = path.join(__dirname, '..') generatedPath = path.join(basePath, '.generated') class Potato colors: [ '#81bef1' '#ad8bf2' '#bff288' '#de7878' '#a5aa...
Use different hashing function for the mouth machine
Use different hashing function for the mouth machine So mouths and noses aren't always paired together
CoffeeScript
mit
adorableio/avatars-api,gitblit/avatars-api,gitblit/avatars-api,mojects/avatars-api,mojects/avatars-api
7942971d1b0628c9bc2890f899eaabb544f9a5b5
app/assets/javascripts/active_admin/lib/batch_actions.js.coffee
app/assets/javascripts/active_admin/lib/batch_actions.js.coffee
$(document).on 'ready page:load turbolinks:load', -> # # Use ActiveAdmin.modal_dialog to prompt user if confirmation is required for current Batch Action # $('.batch_actions_selector li a').click (e)-> e.stopPropagation() # prevent Rails UJS click event e.preventDefault() if message = $(@).data 'co...
$(document).on 'ready page:load turbolinks:load', -> # # Use ActiveAdmin.modal_dialog to prompt user if confirmation is required for current Batch Action # $('.batch_actions_selector li a').click (e)-> e.stopPropagation() # prevent Rails UJS click event e.preventDefault() if message = $(@).data 'co...
Fix the interaction between batch actions
Fix the interaction between batch actions
CoffeeScript
mit
siutin/activeadmin,deivid-rodriguez/activeadmin,deivid-rodriguez/activeadmin,mauriciopasquier/active_admin,mauriciopasquier/active_admin,mrjman/activeadmin,varyonic/activeadmin,SoftSwiss/active_admin,activeadmin/activeadmin,vraravam/activeadmin,wspurgin/activeadmin,activeadmin/activeadmin,vraravam/activeadmin,siutin/ac...
9e7e4fab5319d6e44fa064d4036dbd7cea5c9932
app/client/js/react/pages/home.coffee
app/client/js/react/pages/home.coffee
goog.provide 'app.react.pages.Home' class app.react.pages.Home ###* @param {app.Routes} routes @param {app.songs.Store} songsStore @param {app.react.Touch} touch @constructor ### constructor: (routes, songsStore, touch) -> {div,h1,ul,li,br} = React.DOM {a} = touch.scroll 'a', 'button' ...
goog.provide 'app.react.pages.Home' class app.react.pages.Home ###* @param {app.Routes} routes @param {app.songs.Store} songsStore @param {app.react.Touch} touch @constructor ### constructor: (routes, songsStore, touch) -> {div,h1,ul,li,br} = React.DOM {a} = touch.scroll 'a' @create...
Use song id as key.
Use song id as key.
CoffeeScript
mit
steida/songary
9b7dc3b461abe1d7ca156f3a04305a3ccb9e5fb2
app/assets/javascripts/farmbot_app/directives/syncbutton.js.coffee
app/assets/javascripts/farmbot_app/directives/syncbutton.js.coffee
# A button used to set integers ctrl = [ '$scope', 'Devices', 'Data' 'Calendar' ($scope, Devices, Data, Calendar) -> $scope.text = -> switch Devices.current.busy when 0 then 'Sync' when 1 then 'Sync (busy)' else 'Waiting' $scope.sync = -> nope = (data) -> alert 'SYN...
# A button used to set integers ctrl = [ '$scope', 'Devices', 'Data' 'Calendar' ($scope, Devices, Data, Calendar) -> $scope.text = -> switch Devices.current.busy when 0 then 'Sync' when 1 then 'Working' else 'Waiting' $scope.sync = -> Devices.send "sync_sequence" ] direct...
Remove unused syncing logic to conform to new sync architecture
Remove unused syncing logic to conform to new sync architecture
CoffeeScript
mit
MrChristofferson/Farmbot-Web-API,yuvilio/farmbot-web-app,MrChristofferson/Farmbot-Web-API,RickCarlino/farmbot-web-app,FarmBot/farmbot-web-app,RickCarlino/farmbot-web-app,gabrielburnworth/Farmbot-Web-App,RickCarlino/farmbot-web-app,RickCarlino/farmbot-web-app,FarmBot/Farmbot-Web-API,donnydevito/farmbot-web-app,FarmBot/F...
e8193280fcc49fc305edb584cb3e5d6b305369a1
app/assets/javascripts/admin/extensions/change_tracker.js.coffee
app/assets/javascripts/admin/extensions/change_tracker.js.coffee
# If you add the follow event to your View this will automatically update # all attributes on your model when the input field changes. # # 'change :input': 'changed' # # Note: The name attribute of the field must match the attrbiute name: Backbone.View = Backbone.View.extend( changed: (evt) -> field = $(evt.c...
# If you add the follow event to your View this will automatically update # all attributes on your model when the input field changes. # # 'change :input': 'changed' # # Note: The name attribute of the field must match the attrbiute name: Backbone.View = Backbone.View.extend( changed: (evt) -> field = $(evt.c...
Modify change tracker to detect nested attributes
Modify change tracker to detect nested attributes
CoffeeScript
bsd-3-clause
spree/spree_hub_connector,spree/spree_hub_connector
1cd058eb850187e673652b84fa6253e3a768d4c6
menus/execute-as-ruby.cson
menus/execute-as-ruby.cson
# See https://atom.io/docs/latest/creating-a-package#menus for more details 'context-menu': '.overlayer': 'Execute as Ruby': 'execute-as-ruby:execute' 'menu': [ { 'label': 'Packages' 'submenu': [ 'label': 'Execute as Ruby' 'submenu': [ { 'label': 'Execute', 'command': 'execute-as-...
# See https://atom.io/docs/latest/creating-a-package#menus for more details 'context-menu': '.overlayer': 'Execute as Ruby': 'execute-as-ruby:execute' 'menu': [ { 'label': 'Edit' 'submenu': [ 'label': 'Text' 'submenu': [ { 'label': 'Execute as Ruby', 'command': 'execute-as-ruby:ex...
Move menu item to Edit menu.
Move menu item to Edit menu.
CoffeeScript
mit
torsten/execute-as-ruby
dedc7016d419bf0812be9c4929a5ddfd8062b3c8
src/draw_grid.coffee
src/draw_grid.coffee
exports.draw_grid = (SVG, world) -> grid_size = world.get('size') cell_size = world.get('scale') draw_leg = (x, y) -> size = cell_size * 0.5 SVG.rect { x: x y: y height: size width: size / 2 fill: "#00aa00" } grid_path = world.call('grid_path') [ SVG.r...
exports.draw_grid = (SVG, world) -> grid_size = world.get('size') cell_size = world.get('scale') draw_leg = (x, y) -> size = cell_size * 0.5 SVG.rect { x: x y: y height: size width: size / 2 fill: "#00aa00" } grid_path = world.get_value('grid_path') [ ...
Use get_value instead of call
Use get_value instead of call
CoffeeScript
isc
TheSwanFactory/hourofnode,TheSwanFactory/hourofnode
604505131bd122ea938727e14ce15202324ba79c
services/web/app/coffee/Features/Dropbox/DropboxWebhookHandler.coffee
services/web/app/coffee/Features/Dropbox/DropboxWebhookHandler.coffee
logger = require("logger-sharelatex") async = require "async" User = require("../../models/User").User TpdsUpdateSender = require "../ThirdPartyDataStore/TpdsUpdateSender" module.exports = DropboxWebhookHandler = pollDropboxUids: (dropbox_uids, callback = (error) ->) -> jobs = [] for uid in dropbox_uids do (ui...
logger = require("logger-sharelatex") async = require "async" User = require("../../models/User").User TpdsUpdateSender = require "../ThirdPartyDataStore/TpdsUpdateSender" module.exports = DropboxWebhookHandler = pollDropboxUids: (dropbox_uids, callback = (error) ->) -> jobs = [] for uid in dropbox_uids do (ui...
Convert integer dropbox id to string when searching mongo
Convert integer dropbox id to string when searching mongo
CoffeeScript
agpl-3.0
sharelatex/sharelatex
2a2eb23c78c959ab5f4c3b0a5927eb6ec693a018
services/web/test/unit_frontend/coffee/test-main.coffee
services/web/test/unit_frontend/coffee/test-main.coffee
# Set up requirejs to load the tests # Uses heuristic that test filenames end with Tests.js tests = [] for file of window.__karma__.files if window.__karma__.files.hasOwnProperty(file) if /Tests\.js$/.test(file) tests.push(file) requirejs.config baseUrl: '/base/public/js' paths: "moment": "libs/mom...
# Set up requirejs to load the tests # Uses heuristic that test filenames end with Tests.js tests = [] for file of window.__karma__.files if window.__karma__.files.hasOwnProperty(file) if /test\/unit_frontend\/js.+Tests.js$/.test(file) tests.push(file) requirejs.config baseUrl: '/base/public/js' paths:...
Fix bug where tests from new ES code being included in requirejs wrapped code
Fix bug where tests from new ES code being included in requirejs wrapped code
CoffeeScript
agpl-3.0
sharelatex/sharelatex
238a91d1fdc189b8f2bdf969370f25496d76b568
src/models/reputation.coffee
src/models/reputation.coffee
{log, p, pjson} = require 'lightsaber' { first, flatten, unique } = require 'lodash' Promise = require 'bluebird' trustExchange = require './trustExchange' class Reputation @ratingsOf: (identity, options) -> ratingSets = for adaptor in trustExchange.adaptors() adaptor.ratingsOf identity, options Promi...
{log, p, pjson} = require 'lightsaber' { first, flatten, unique, pluck, round, sum } = require 'lodash' Promise = require 'bluebird' trustExchange = require './trustExchange' class Reputation @ratingsOf: (identity, options) -> ratingSets = for adaptor in trustExchange.adaptors() adaptor.ratingsOf identity...
Add score method to Reputation that takes the average of all scores.
Add score method to Reputation that takes the average of all scores.
CoffeeScript
mit
citizencode/trust-exchange
cd7f93c3ff84ee78f38974402d7dea37ba477aed
lib/minimap-highlight-selected-view.coffee
lib/minimap-highlight-selected-view.coffee
module.exports = -> highlightSelectedPackage = atom.packages.getLoadedPackage('highlight-selected') highlightSelected = require (highlightSelectedPackage.path) HighlightedAreaView = require (highlightSelectedPackage.path + '/lib/highlighted-area-view') class FakeEditor constructor: (@minimap) -> getA...
module.exports = -> highlightSelectedPackage = atom.packages.getLoadedPackage('highlight-selected') highlightSelected = require (highlightSelectedPackage.path) HighlightedAreaView = require (highlightSelectedPackage.path + '/lib/highlighted-area-view') class FakeEditor constructor: (@minimap) -> getA...
Fix error raised on tab close
:bug: Fix error raised on tab close
CoffeeScript
mit
atom-minimap/minimap-highlight-selected
78463088b0849506b21b96355ee085f181a7b443
client/landing/app/MainApp/sidebar/virtualizationcontrols.coffee
client/landing/app/MainApp/sidebar/virtualizationcontrols.coffee
class VirtualizationControls extends KDButtonGroupView constructor:-> options = cssClass : "virt-controls" buttons : "Start" : callback : -> log "Start machine" "Stop" : callback : -> log "Stop machine" "Turn Off" : callback...
class VirtualizationControls extends KDButtonGroupView constructor:-> options = cssClass : "virt-controls" buttons : "Start" : callback : -> KD.singletons.kiteController.run kiteName: 'os', method: 'vm.start' "Stop" ...
Call os kite from VM buttons.
Call os kite from VM buttons.
CoffeeScript
agpl-3.0
sinan/koding,acbodine/koding,kwagdy/koding-1,kwagdy/koding-1,rjeczalik/koding,jack89129/koding,usirin/koding,acbodine/koding,szkl/koding,kwagdy/koding-1,andrewjcasal/koding,andrewjcasal/koding,drewsetski/koding,kwagdy/koding-1,szkl/koding,sinan/koding,kwagdy/koding-1,mertaytore/koding,gokmen/koding,drewsetski/koding,ci...
7b1c6b657055ca67dd748d04c5e1f20ba0d06e17
app/controllers/x3d_controller.coffee
app/controllers/x3d_controller.coffee
Controller = require 'controllers/base/controller' X3dPageView = require 'views/x3d_page_view' module.exports = class X3dsController extends Controller historyURL: 'x3d' show: -> @view = new X3dPageView() x3dom.load()
Controller = require 'controllers/base/controller' X3dPageView = require 'views/x3d_page_view' module.exports = class X3dsController extends Controller historyURL: 'x3d' show: -> x3dom.unload() @view = new X3dPageView() x3dom.load() dispose: -> super x3dom.unload()
Use x3dom feature to load dynamically added x3d nodes
Use x3dom feature to load dynamically added x3d nodes
CoffeeScript
apache-2.0
despairblue/scegratoo
0fce40620092ad6de7280da04c7e6066900a55d6
tapestry-core/src/main/coffeescript/META-INF/modules/core/grid.coffee
tapestry-core/src/main/coffeescript/META-INF/modules/core/grid.coffee
# Copyright 2012 The Apache Software Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http:#www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
# Copyright 2012 The Apache Software Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http:#www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
Format consistently with other (more complex) modules
Format consistently with other (more complex) modules
CoffeeScript
apache-2.0
apache/tapestry-5,apache/tapestry-5,apache/tapestry-5,apache/tapestry-5,apache/tapestry-5
65cc2c1290ed0d84b00e32ba4e46384906445744
MediaAdminBundle/Resources/public/coffee/WysiwygSelectView.coffee
MediaAdminBundle/Resources/public/coffee/WysiwygSelectView.coffee
WysiwygSelectView = OrchestraView.extend( events: 'click #sendToTiny': 'sendToTiny' 'change #media_crop_format' : 'changeCropFormat' initialize: (options) -> @options = @reduceOption(options, [ 'domContainer' 'html' 'thumbnails' 'original' ]) @loadTemplates [ 'Op...
WysiwygSelectView = OrchestraView.extend( events: 'click #sendToTiny': 'sendToTiny' 'change #media_crop_format' : 'changeCropFormat' initialize: (options) -> @options = @reduceOption(options, [ 'domContainer' 'html' 'thumbnails' 'original' ]) @loadTemplates [ 'Op...
Fix media url problem in tinymce
Fix media url problem in tinymce
CoffeeScript
apache-2.0
open-orchestra/open-orchestra-cms-bundle,open-orchestra/open-orchestra-cms-bundle,open-orchestra/open-orchestra-cms-bundle,open-orchestra/open-orchestra-media-admin-bundle,open-orchestra/open-orchestra-media-admin-bundle,open-orchestra/open-orchestra-media-admin-bundle
017425911f3fc2c86de955f8f6ffcceb7f8c101d
client/lanes/components/grid/Selections.cjsx
client/lanes/components/grid/Selections.cjsx
class CheckBox extends Lanes.React.BaseComponent d: -> @props.query.results.xtraData(@props.row) onChange: (ev) -> #, me, results, index) -> @d().selected = ev.target.checked @props.selections.onChange?(@props) @forceUpdate() render: -> selected = @d().selected sele...
class CheckBox extends Lanes.React.BaseComponent d: -> @props.query.results.xtraData(@props.row) onChange: (ev) -> #, me, results, index) -> @d().selected = ev.target.checked @props.selections.onChange?(@props) @forceUpdate() render: -> selected = @d().selected sele...
Set props on self rather than prototype
Set props on self rather than prototype Ampersand-state ver 5 uses `Object.keys` when an object is passed to `set`. In order to allow a Grid.Selections instance to be be passed to Query.Fields the properties need to be set directly
CoffeeScript
mit
argosity/lanes,argosity/hippo,argosity/lanes,argosity/lanes,argosity/hippo,argosity/hippo
619f5a3da117a8f02fdad2ac078f34c4381a1015
spec/examples.coffee
spec/examples.coffee
{ jsJobRun } = require './cli' path = require 'path' chai = require 'chai' testserver = 'http://localhost:8001' example = (name) -> return path.join testserver, 'dist/examples', name describe 'Examples: Sudoku', -> stdout = null stderr = null describe 'with a valid input board', -> it 'executes without e...
{ jsJobRun } = require './cli' path = require 'path' chai = require 'chai' testserver = 'http://localhost:8001' example = (name) -> return path.join testserver, 'dist/examples', name describe 'Examples: Sudoku', -> stdout = null stderr = null describe 'with a valid input board', -> it 'executes without e...
Fix indent and bump timeout a bit
Tests: Fix indent and bump timeout a bit
CoffeeScript
mit
the-grid/jsjob
76907a12adbe3c3e106264086058aca89691af14
server/secret.coffee
server/secret.coffee
example = twilio: AccountSID: 'AC_YOUR_TWILIO_ACCOUNT_SID' AuthToken: 'YOUR_TWILIO_AUTH_TOKEN' fromNumber: '+1_YOUR_TWILIO_NUMBER_TO_SEND_CONFIRMATION_CODES_FROM' testing: AccountSID: 'AC_YOUR_TWILIO_TEST_CREDENTIALS_ACCOUNT_SID' AuthToken: 'YOUR_TWILIO_TEST_CREDENTIALS_AUTH_TOKEN' f...
example = twilio: AccountSID: 'AC_YOUR_TWILIO_ACCOUNT_SID' AuthToken: 'YOUR_TWILIO_AUTH_TOKEN' fromNumber: '+1_YOUR_TWILIO_NUMBER_TO_SEND_CONFIRMATION_CODES_FROM' testing: AccountSID: 'AC_YOUR_TWILIO_TEST_CREDENTIALS_ACCOUNT_SID' AuthToken: 'YOUR_TWILIO_TEST_CREDENTIALS_AUTH_TOKEN' f...
Remove spaces and hyphens from "fromNumber"
[Config] Remove spaces and hyphens from "fromNumber" Twilio wants the test number to be free of spaces and hyphens, so removing them from the example.
CoffeeScript
mit
jacob-ebey/digitimate,digitimate/digitimate,digitimate/digitimate,jacob-ebey/digitimate
d327e0f8733dab4adc2a3b7ce35faa7d091bf778
home/atom/init.coffee
home/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. # # An example hack to make opened Markdown files always be soft wrapped: # # path = require 'path' # # atom.workspaceView.eachEd...
# 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. # # An example hack to make opened Markdown files always be soft wrapped: # # path = require 'path' # # atom.workspaceView.eachEd...
Add command to insert now as timestamp
Atom: Add command to insert now as timestamp
CoffeeScript
mit
adius/dotfiles,adius/dotfiles,adius/dotfiles,adius/dotfiles
693f058f4a66b2b15916f789ae72bec8afecb3c5
src/impromptu.coffee
src/impromptu.coffee
# Expose `Impromptu`. exports = module.exports = {} # Expose APIs. exports.db = require './db' exports.color = require './color' exports.Prompt = require './prompt' exports.Section = require './section'
# Allow `.coffee` files in `require()`. require 'coffee-script' # Expose `Impromptu`. exports = module.exports = {} # Expose APIs. exports.db = require './db' exports.color = require './color' exports.Prompt = require './prompt' exports.Section = require './section'
Allow CoffeeScript files to be directly required.
Allow CoffeeScript files to be directly required.
CoffeeScript
mit
impromptu/impromptu,impromptu/impromptu
b303d22363845dc88c9bdbb4ab2e78c28c08708f
lib/wrap-guide-view.coffee
lib/wrap-guide-view.coffee
{_, $, View} = require 'atom' module.exports = class WrapGuideView extends View @activate: -> atom.workspaceView.eachEditorView (editorView) -> if editorView.attached and editorView.getPane() editorView.underlayer.append(new WrapGuideView(editorView)) @content: -> @div class: 'wrap-guide' ...
{$, View} = require 'atom' module.exports = class WrapGuideView extends View @activate: -> atom.workspaceView.eachEditorView (editorView) -> if editorView.attached and editorView.getPane() editorView.underlayer.append(new WrapGuideView(editorView)) @content: -> @div class: 'wrap-guide' in...
Use built-ins instead of _
Use built-ins instead of _
CoffeeScript
mit
atom/wrap-guide
299400f9a3ede29224b9ff464b33927541924a93
app/lib/soundcloud.coffee
app/lib/soundcloud.coffee
http = require( 'http' ) clientID = "" module.exports = { setApiKey: ( ApiKey ) -> clientID = ApiKey getJSON: ( trackID ) -> https.get(url, (res) -> body = '' res.on('data', ( chunk ) -> body += chunk; ) res.on('end', -> return JSON.parse(body) ) )....
https = require( 'https' ) clientID = "" module.exports = { setApiKey: ( ApiKey ) -> clientID = ApiKey getJSON: ( trackID ) -> https.get(url, (res) -> body = '' res.on('data', ( chunk ) -> body += chunk; ) res.on('end', -> return JSON.parse(body) ) ).on('error', (e) -> console.l...
Fix tabs, and fix some syntax errors
Fix tabs, and fix some syntax errors
CoffeeScript
apache-2.0
aaron235/SoundVane,aaron235/SoundVane,aaron235/SoundVane
a4de54b6839a04606abaeb701a87660afe6b4154
app/assets/javascripts/initializers/authentication.coffee
app/assets/javascripts/initializers/authentication.coffee
Dashboard.CustomAuthenticator = SimpleAuth.Authenticators.Devise.extend restore: (properties) -> new Ember.RSVP.Promise((resolve, reject) -> if not Ember.isEmpty(properties.access_token) resolve properties else reject() return ) authenticate: (credentials) -> _this = t...
Dashboard.CustomAuthenticator = SimpleAuth.Authenticators.Devise.extend restore: (properties) -> new Ember.RSVP.Promise((resolve, reject) -> if not Ember.isEmpty(properties.access_token) resolve properties else reject() return ) authenticate: (credentials) -> _this = t...
Return a valid current user id when testing
Return a valid current user id when testing
CoffeeScript
mit
FromUte/dune-dashboard,FromUte/dune-dashboard,FromUte/dune-dashboard
caf4addf03c3e12d8694b839ba63d4c0283c9668
src/quo.style.coffee
src/quo.style.coffee
do ($$ = Quo) -> VENDORS = [ "-webkit-", "-moz-", "-ms-", "-o-", "" ] $$.fn.addClass = (name) -> @each -> unless _existsClass(name, @className) @className += " " + name @className = @className.trim() $$.fn.removeClass = (name) -> @each -> ...
do ($$ = Quo) -> VENDORS = [ "-webkit-", "-moz-", "-ms-", "-o-", "" ] $$.fn.addClass = (name) -> @each -> unless _existsClass(name, @className) @className += " " + name @className = @className.trim() $$.fn.removeClass = (name) -> @each -> ...
Fix for when the array is empty
Fix for when the array is empty `$$.fn.hasClass` and `$$.fn.style` will both throw exceptions if the current selection of elements is empty.
CoffeeScript
mit
soyjavi/QuoJS,xuboso/QuoJS,luiscauro/QuoJS,luiscauro/QuoJS,soyjavi/QuoJS
b09efc43bb89930b4c4bbd9c0b890ad02fa27d61
client/entry.coffee
client/entry.coffee
AccountsEntry = settings: wrapLinks: true homeRoute: '/home' dashboardRoute: '/dashboard' passwordSignupFields: 'EMAIL_ONLY' emailToLower: true usernameToLower: false entrySignUp: '/sign-up' extraSignUpFields: [] showOtherLoginServices: true isStringEmail: (email) -> emailPa...
AccountsEntry = settings: wrapLinks: true homeRoute: '/' dashboardRoute: '/dashboard' passwordSignupFields: 'EMAIL_ONLY' emailToLower: true usernameToLower: false entrySignUp: '/sign-up' extraSignUpFields: [] showOtherLoginServices: true isStringEmail: (email) -> emailPatter...
Change default homeRoute to /
Change default homeRoute to /
CoffeeScript
mit
ChipCastleDotCom/accounts-entry,mike623/accounts-entry,andykingking/accounts-entry,txs/meteor-wecare-accounts-entry-flow-blaze,jg3526/accounts-entry,mauriciovieira/accounts-entry,benmgreene/accounts-entry,dovrosenberg/accounts-entry,jpatzer/accounts-entry,valedaemon/accounts-entry,txs/meteor-wecare-accounts-entry-flow-...
045a96bc68235d1ea09b644da67d99910b84ba27
lib/styleguide.coffee
lib/styleguide.coffee
StyleguideView = null styleguideUri = 'atom://styleguide' createStyleguideView = (state) -> StyleguideView ?= require './styleguide-view' new StyleguideView(state) atom.deserializers.add name: 'StyleguideView' deserialize: (state) -> createStyleguideView(state) module.exports = activate: -> atom.worksp...
styleguideUri = 'atom://styleguide' createStyleguideView = (state) -> StyleguideView = require './styleguide-view' new StyleguideView(state) atom.deserializers.add name: 'StyleguideView' deserialize: (state) -> createStyleguideView(state) module.exports = activate: -> atom.workspace.addOpener (filePath...
Remove unnecessary caching of StyleGuideView class
Remove unnecessary caching of StyleGuideView class
CoffeeScript
mit
atom/styleguide
d2961e91e7838ce8f2a8c23caa0682cb5057371f
resources/assets/coffee/react/contest.coffee
resources/assets/coffee/react/contest.coffee
###* * Copyright 2015 ppy Pty. Ltd. * * This file is part of osu!web. osu!web is distributed with the hope of * attracting more community contributions to the core ecosystem of osu!. * * osu!web is free software: you can redistribute it and/or modify * it under the terms of the Affero GNU General Public ...
###* * Copyright 2015 ppy Pty. Ltd. * * This file is part of osu!web. osu!web is distributed with the hope of * attracting more community contributions to the core ecosystem of osu!. * * osu!web is free software: you can redistribute it and/or modify * it under the terms of the Affero GNU General Public ...
Fix music entry previews not being visible
Fix music entry previews not being visible
CoffeeScript
agpl-3.0
notbakaneko/osu-web,Nekonyx/osu-web,comentarinformal/osu-web,notbakaneko/osu-web,ameliaikeda/osu-web,LiquidPL/osu-web,marcostudios/osu-web,omkelderman/osu-web,notbakaneko/osu-web,kj415j45/osu-web,ppy/osu-web,ameliaikeda/osu-web,comentarinformal/osu-web,ppy/osu-web,ppy/osu-web,comentarinformal/osu-web,nanaya/osu-web,Liq...
a96f6c959749928edc70f0e6fa730a5d223cc25b
models/mixins/parallel.coffee
models/mixins/parallel.coffee
Q = require 'q' _ = require 'underscore' module.exports = fetchUntilEndInParallel: (options = {}) -> dfd = Q.defer() { success, error } = options # Pull out original success and error callbacks { size } = options.data = _.defaults (options.data or {}), total_count: 1, size: 10 options.remove = fal...
Q = require 'q' _ = require 'underscore' module.exports = fetchUntilEndInParallel: (options = {}) -> dfd = Q.defer() { success, error } = options # Pull out original success and error callbacks { size } = options.data = _.defaults (options.data or {}), total_count: 1, size: 10 options.remove = fal...
Fix fallback when header is missing
Fix fallback when header is missing
CoffeeScript
mit
artsy/force-public,kanaabe/force,cavvia/force-1,kanaabe/force,dblock/force,TribeMedia/force-public,eessex/force,oxaudo/force,eessex/force,yuki24/force,kanaabe/force,damassi/force,izakp/force,erikdstock/force,mzikherman/force,dblock/force,xtina-starr/force,oxaudo/force,TribeMedia/force-public,anandaroop/force,joeyAghion...
d5c98c37e87473b89c2215891fe44a32ac1b8030
app/api/config.coffee
app/api/config.coffee
DEFAULT_ENV = '_cam' API_HOSTS = production: '' # Same domain! staging: 'https://panoptes-staging.zooniverse.org' development: 'http://localhost:3000' test: 'http://localhost:7357' _cam: 'http://172.17.2.87:3000' API_APPLICATION_IDS = _cam: '05fd85e729327b2f71cda394d8e87e042e0b77b05e05280e8246e8bdb05d54ed...
DEFAULT_ENV = 'staging' API_HOSTS = production: '' # Same domain! staging: 'https://panoptes-staging.zooniverse.org' development: 'http://localhost:3000' test: 'http://localhost:7357' cam: 'http://172.17.2.87:3000' API_APPLICATION_IDS = cam: '05fd85e729327b2f71cda394d8e87e042e0b77b05e05280e8246e8bdb05d54e...
Allow changing environment from browser
Allow changing environment from browser
CoffeeScript
apache-2.0
amyrebecca/Panoptes-Front-End,tfmorris/Panoptes-Front-End,tfmorris/Panoptes-Front-End,mrniaboc/Panoptes-Front-End,camallen/Panoptes-Front-End,CKrawczyk/Panoptes-Front-End,fmnhExhibits/Panoptes-Front-End,marten/Panoptes-Front-End,CKrawczyk/Panoptes-Front-End,parrish/Panoptes-Front-End,amyrebecca/Panoptes-Front-End,mrnia...
25c56c31db3ed8b8b1651182aeac8cf4426f386d
app/assets/javascripts/components/search/material_link.js.jsx.coffee
app/assets/javascripts/components/search/material_link.js.jsx.coffee
MaterialLink = React.createClass render: -> link = @props.link return `( <div style={{float: 'right'}}><a href={link.url} className={'button'} target={link.target}>{link.text}</a></div> )` MaterialLinks = React.createClass render: -> links = @props.links.map (link)-> return if link? th...
MaterialLink = React.createClass render: -> link = @props.link return `( <div key={link.url} style={{float: 'right'}}><a href={link.url} className={'button'} target={link.target}>{link.text}</a></div> )` MaterialLinks = React.createClass render: -> links = @props.links.map (link)-> ret...
Fix necessary key for looped items
Fix necessary key for looped items
CoffeeScript
mit
concord-consortium/rigse,concord-consortium/rigse,concord-consortium/rigse,concord-consortium/rigse,concord-consortium/rigse,concord-consortium/rigse
cae9c966227e217bcc0f58e5979ab01d3a9a2e21
build/tasks/mkdeb-task.coffee
build/tasks/mkdeb-task.coffee
fs = require 'fs' path = require 'path' _ = require 'underscore-plus' fillTemplate = (filePath, data) -> template = _.template(String(fs.readFileSync(filePath + '.in'))) filled = template(data) fs.writeFileSync(filePath, filled) module.exports = (grunt) -> {spawn} = require('./task-helpers')(grunt) grunt.r...
fs = require 'fs' path = require 'path' _ = require 'underscore-plus' fillTemplate = (filePath, data) -> template = _.template(String(fs.readFileSync(filePath + '.in'))) filled = template(data) fs.writeFileSync(filePath, filled) module.exports = (grunt) -> {spawn} = require('./task-helpers')(grunt) grunt.r...
Use correct email address for deb package.
:penguin: Use correct email address for deb package.
CoffeeScript
mit
ali/atom,sotayamashita/atom,Neron-X5/atom,0x73/atom,hpham04/atom,kittens/atom,kdheepak89/atom,yamhon/atom,PKRoma/atom,KENJU/atom,vcarrera/atom,constanzaurzua/atom,hakatashi/atom,scippio/atom,ivoadf/atom,boomwaiza/atom,gisenberg/atom,tjkr/atom,dijs/atom,fredericksilva/atom,g2p/atom,john-kelly/atom,vcarrera/atom,svanharm...
fc64af1a400e752398f424ad6c425498be16f933
app/assets/javascripts/adapter.coffee
app/assets/javascripts/adapter.coffee
adapter = if window.location.search.lastIndexOf('fixture') != -1 DS.FixtureAdapter.extend latency: 250 else DS.RESTAdapter.configure 'plurals', event_search: 'event_searches' DS.RESTAdapter.extend namespace: 'api/v1' Pancakes.Adap...
#= require models/data_collector adapter = if window.location.search.lastIndexOf('fixture') != -1 DS.FixtureAdapter.extend latency: 250 else DS.RESTAdapter.configure 'plurals', event_search: 'event_searches' DS.RESTAdapter.extend ...
Set DataCollector's primary key as set by Pancakes' services.
Set DataCollector's primary key as set by Pancakes' services.
CoffeeScript
mit
NUBIC/ncs_navigator_pancakes,NUBIC/ncs_navigator_pancakes,NUBIC/ncs_navigator_pancakes
256bb8ee68e95813d6595981aae37d063bf71fd0
app/assets/javascripts/surveys.coffee
app/assets/javascripts/surveys.coffee
$(document).ready -> $('#index-table').on 'change', '#select-all', -> if $(this).is(':checked') $('#index-table').find('.print-survey').prop 'checked', true $('#submit').prop 'disabled', false else $('#index-table').find('.print-survey').prop 'checked', false $('#submit').prop 'disable...
$(document).ready -> $('#index-table').on 'change', '#select-all', -> if $(this).is(':checked') $('#index-table').find('.print-survey').prop 'checked', true $('#submit').prop 'disabled', false else $('#index-table').find('.print-survey').prop 'checked', false $('#submit').prop 'disable...
Update to coffeescript for select all and individual select interactivity
Update to coffeescript for select all and individual select interactivity
CoffeeScript
mit
AkivaGreen/microservices-ntdsurveys,umts/microservices-ntdsurveys,AkivaGreen/microservices-ntdsurveys,umts/microservices-ntdsurveys,umts/microservices-ntdsurveys,AkivaGreen/microservices-ntdsurveys
fe87a71d86678aa326a34bfb2d71c91446af4f10
spec/about-spec.coffee
spec/about-spec.coffee
About = require '../lib/about' describe "About", -> workspaceElement = null beforeEach -> workspaceElement = atom.views.getView(atom.workspace) waitsForPromise -> atom.packages.activatePackage('about') describe "when the about:about-atom command is triggered", -> it "shows the About Atom vie...
About = require '../lib/about' {$} = require 'atom-space-pen-views' describe "About", -> workspaceElement = null beforeEach -> workspaceElement = atom.views.getView(atom.workspace) waitsForPromise -> atom.packages.activatePackage('about') describe "when the about:about-atom command is triggered"...
Add spec for copying version
Add spec for copying version
CoffeeScript
mit
atom/about,mnquintana/atom-about
e592d30bfd7906d453abf1833a877a20a582dac3
components/Title.cjsx
components/Title.cjsx
React = require 'react' { Classes } = require 'shiny' module.exports = React.createClass displayName: '_Title' propTypes: title : React.PropTypes.oneOfType([React.PropTypes.string, React.PropTypes.array]) level : React.PropTypes.oneOf([1,2,3,4,5,6]) link : React.PropTypes.strin...
React = require 'react' { Classes } = require 'shiny' module.exports = React.createClass displayName: '_Title' propTypes: title : React.PropTypes.oneOfType([React.PropTypes.string, React.PropTypes.array]) level : React.PropTypes.oneOf([1,2,3,4,5,6]) link : React.PropTypes.strin...
Remove extraneous - from variant.
Remove extraneous - from variant.
CoffeeScript
unlicense
marquee/static-sdk
a1f8d8d2323d7d2250e6fdab63ad9ca0521ed987
apps/feed/routes.coffee
apps/feed/routes.coffee
_ = require 'underscore' sd = require('sharify').data ExploreBlocks = require '../../collections/explore_blocks' @index = (req, res, next) -> return next() unless req.user res.locals.sd.CURRENT_PATH = "/" res.locals.sd.FEED_TYPE = 'primary' res.render 'feed', path: 'Feed' @notifications = (req, res, next) -...
_ = require 'underscore' sd = require('sharify').data ExploreBlocks = require '../../collections/explore_blocks' @index = (req, res, next) -> return next() unless req.user?.id res.locals.sd.CURRENT_PATH = "/" res.locals.sd.FEED_TYPE = 'primary' res.render 'feed', path: 'Feed' @notifications = (req, res, nex...
Check for user id on feed redirect
Check for user id on feed redirect
CoffeeScript
mit
aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell
9739b104965e75fc6c9cd9393457d80ed233e543
views/services/sortieFreeSlotCheck.coffee
views/services/sortieFreeSlotCheck.coffee
window.addEventListener 'game.response', ({detail: {path, body}}) -> if path == '/kcsapi/api_get_member/mapinfo' basic = getStore 'info.basic' if config.get 'poi.mapStartCheck.ship.enable', false minShipSlots = config.get 'poi.mapStartCheck.ship.minFreeSlots', 4 shipSlots = basic.api_...
__ = i18n.main.__.bind(i18n.main) window.addEventListener 'game.response', ({detail: {path, body}}) -> if path == '/kcsapi/api_get_member/mapinfo' basic = getStore 'info.basic' if config.get 'poi.mapStartCheck.ship.enable', false minShipSlots = config.get 'poi.mapStartCheck.ship.minFreeSlots...
Fix sortie free slot check
Fix sortie free slot check
CoffeeScript
mit
PHELiOX/poi,poooi/poi,poooi/poi,gnattu/poi,poooi/poi,poooi/poi,syncsyncsynchalt/poi,KagamiChan/poi,PHELiOX/poi,gnattu/poi,syncsyncsynchalt/poi,KagamiChan/poi,syncsyncsynchalt/poi,syncsyncsynchalt/poi,yudachi/poi,yudachi/poi,yudachi/poi
82db5f437ed2320314b01af40f938c4374052a87
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 User = channel: new EventEmitter2 wildcard: tru...
Rename isMemberOfCourse to just getCourse
Rename isMemberOfCourse to just getCourse
CoffeeScript
agpl-3.0
openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js
0a35983ef76ed0e27a7fa4bf879fa19a0a2fa5f0
app/assets/javascripts/sprangular/directives/addressSelection.coffee
app/assets/javascripts/sprangular/directives/addressSelection.coffee
Sprangular.directive 'addressSelection', -> restrict: 'E' templateUrl: 'addresses/selection.html' scope: address: '=' addresses: '=' countries: '=' disabled: '=' controller: ($scope) -> $scope.existingAddress = false $scope.$watch 'addresses', (addresses) -> return unless addresse...
Sprangular.directive 'addressSelection', -> restrict: 'E' templateUrl: 'addresses/selection.html' scope: address: '=' addresses: '=' countries: '=' disabled: '=' controller: ($scope) -> $scope.existingAddress = false $scope.$watch 'addresses', (addresses) -> return unless addresse...
Simplify guarding in address-selection watch
Simplify guarding in address-selection watch
CoffeeScript
mit
sprangular/sprangular,sprangular/sprangular,sprangular/sprangular
5ce9c29eafc5544a09b7cee2c16167b0ea4db090
snippets/polymer-element.cson
snippets/polymer-element.cson
".text.html": "polymer element": "prefix": "pe" "body": """ <link rel="import" href="${1:../bower_components}/polymer/polymer.html"> <dom-module id="$2"> <style> :host { $5 } </style> <template> $4 </template> <script> Polymer({ ...
".text.html": "polymer element": "prefix": "pe" "body": """ <link rel="import" href="${1:../bower_components}/polymer/polymer.html"> <dom-module id="$2"> <style> :host { $5 } </style> <template> $4 </template> <script> Polymer({ ...
Add a snippet that references an external script
Add a snippet that references an external script Sometimes you just don't want to inline...
CoffeeScript
mit
zacharytamas/atom-polymer
dbc92702aec9db914ddb7f0e348540d768182962
exports/atom.coffee
exports/atom.coffee
TextBuffer = require 'text-buffer' {Point, Range} = TextBuffer {File, Directory} = require 'pathwatcher' {Emitter, Disposable, CompositeDisposable} = require 'event-kit' {includeDeprecatedAPIs, deprecate} = require 'grim' module.exports = BufferedNodeProcess: require '../src/buffered-node-process' BufferedProcess:...
TextBuffer = require 'text-buffer' {Point, Range} = TextBuffer {File, Directory} = require 'pathwatcher' {Emitter, Disposable, CompositeDisposable} = require 'event-kit' module.exports = BufferedNodeProcess: require '../src/buffered-node-process' BufferedProcess: require '../src/buffered-process' GitRepository: ...
Remove deprecations from Atom exports
:fire: Remove deprecations from Atom exports
CoffeeScript
mit
Austen-G/BlockBuilder,jordanbtucker/atom,jeremyramin/atom,chfritz/atom,liuderchi/atom,svanharmelen/atom,stinsonga/atom,helber/atom,nucked/atom,me-benni/atom,decaffeinate-examples/atom,Huaraz2/atom,yangchenghu/atom,beni55/atom,G-Baby/atom,lpommers/atom,chfritz/atom,ivoadf/atom,bj7/atom,transcranial/atom,AlexxNica/atom,n...
fb1f29fdbdb91365c62d01ecce131f75d07eff4f
components/BufferToCanvas-node.coffee
components/BufferToCanvas-node.coffee
noflo = require 'noflo' Canvas = require('noflo-canvas').canvas # @runtime noflo-nodejs # @name BufferToCanvas exports.getComponent = -> c = new noflo.Component c.icon = 'expand' c.description = 'Convert a buffer to a canvas' c.inPorts.add 'buffer', datatype: 'object' description: 'An image buffer' ...
noflo = require 'noflo' Canvas = require('noflo-canvas').canvas # @runtime noflo-nodejs # @name BufferToCanvas exports.getComponent = -> c = new noflo.Component c.icon = 'expand' c.description = 'Convert a buffer to a canvas' c.inPorts.add 'buffer', datatype: 'object' description: 'An image buffer' ...
Add error handling in BufferToCanvas
Add error handling in BufferToCanvas
CoffeeScript
mit
noflo/noflo-image,noflo/noflo-image
6a326e1862108eb69239a030a675ed33457803d2
src/keyboard-layout.coffee
src/keyboard-layout.coffee
{Emitter} = require 'event-kit' {KeyboardLayoutObserver} = require '../build/Release/keyboard-layout-observer.node' emitter = new Emitter observer = new KeyboardLayoutObserver -> emitter.emit 'did-change-current-keyboard-layout', getCurrentKeyboardLayout() getCurrentKeyboardLayout = -> observer.getCurrentKeyboardLa...
{Emitter} = require 'event-kit' {KeyboardLayoutObserver} = require '../build/Release/keyboard-layout-observer.node' emitter = new Emitter observer = new KeyboardLayoutObserver -> emitter.emit 'did-change-current-keyboard-layout', getCurrentKeyboardLayout() getCurrentKeyboardLayout = -> observer.getCurrentKeyboardLa...
Use object to dedupe languages
Use object to dedupe languages
CoffeeScript
mit
atom/keyboard-layout,atom/keyboard-layout,atom/keyboard-layout
8e0a695f7c9171b67b51f5f01ded440d523e6809
src/less-compile-cache.coffee
src/less-compile-cache.coffee
path = require 'path' os = require 'os' LessCache = require 'less-cache' {Subscriber} = require 'emissary' tmpDir = if process.platform is 'win32' then os.tmpdir() else '/tmp' # {LessCache} wrapper used by {ThemeManager} to read stylesheets. module.exports = class LessCompileCache Subscriber.includeInto(this) @c...
path = require 'path' fs = require 'fs-plus' LessCache = require 'less-cache' {Subscriber} = require 'emissary' # {LessCache} wrapper used by {ThemeManager} to read stylesheets. module.exports = class LessCompileCache Subscriber.includeInto(this) @cacheDir: path.join(fs.getHomeDirectory(), 'compile-cache', 'less'...
Store less cache in ~/.atom/compile-cache
Store less cache in ~/.atom/compile-cache
CoffeeScript
mit
niklabh/atom,fang-yufeng/atom,basarat/atom,liuderchi/atom,basarat/atom,rmartin/atom,ashneo76/atom,jjz/atom,h0dgep0dge/atom,kc8wxm/atom,g2p/atom,Neron-X5/atom,fang-yufeng/atom,YunchengLiao/atom,phord/atom,Jandersolutions/atom,bolinfest/atom,0x73/atom,helber/atom,sxgao3001/atom,alexandergmann/atom,folpindo/atom,gzzhangha...
eaee2c729d7b5496915c106c4e359526b8771507
src/javascript/view.coffee
src/javascript/view.coffee
_ = require 'underscore' Backbone = require 'backbone' Backbone.$ = require 'jquery' plugin = require 'plugin' module.exports = Backbone.View.extend template: require './template' initialize: -> underscoreTest = _.last([0,1,2, 'hi mom!']) @render() render: -> @$el.html @template ...
_ = require 'underscore' Backbone = require 'backbone' Backbone.$ = require 'jquery' plugin = require 'plugin' module.exports = Backbone.View.extend template: require './template' initialize: -> underscoreTest = _.last([0,1,2, 'hi mom!']) @render() render: -> @$el.html @template ...
Add iconfont to list of tools
Add iconfont to list of tools
CoffeeScript
mit
voodee/raketa_new,jtinianow/jtinianow.github.io,galarant/pixi_sandbox,dmitriz/gulp-starter,clarkras/table_merge,DavidPeterHoward/gulp-starter-2,MarceloBorgesP/railsblocks-theme,kalled/gulp-starter,MarceloBorgesP/railsblocks-theme,ennett50/gulp-starter,samicoman/nodetest,albertvazquezm/vue-portfolio,vigetlabs/gulp-start...
7381bd09b1d71e87bbaeda3f802eb59c2497c92a
src/browser/auto-updater-win32.coffee
src/browser/auto-updater-win32.coffee
_ = require 'underscore-plus' {EventEmitter} = require 'events' module.exports = class AutoUpdater _.extend @prototype, EventEmitter.prototype setFeedUrl: -> console.log 'setFeedUrl' quitAndInstall: -> console.log 'quitAndInstall' checkForUpdates: -> console.log 'checkForUpdates'
_ = require 'underscore-plus' path = require 'path' fs = require 'fs' {EventEmitter} = require 'events' {BufferedProcess} = require 'atom' module.exports = class AutoUpdater _.extend @prototype, EventEmitter.prototype setFeedUrl: (url) -> @updateUrl = url quitAndInstall: -> console.log 'quitAndInstall...
Save point before Boss Fight
Save point before Boss Fight
CoffeeScript
mit
qiujuer/atom,davideg/atom,RuiDGoncalves/atom,Jdesk/atom,panuchart/atom,Jonekee/atom,n-riesco/atom,AlexxNica/atom,andrewleverette/atom,ilovezy/atom,splodingsocks/atom,RuiDGoncalves/atom,russlescai/atom,mnquintana/atom,0x73/atom,SlimeQ/atom,bj7/atom,synaptek/atom,vjeux/atom,pengshp/atom,DiogoXRP/atom,Ju2ender/atom,FIT-CS...
7a392cdaef449c72e84a7bb22a6814ee0118f55b
test/global_scope_spec.coffee
test/global_scope_spec.coffee
Aether = require '../aether' describe "Global Scope Exploit Suite", -> it 'should intercept "this"', -> code = "G=100;var globals=(function(){return this;})();return globals.G;" aether = new Aether() aether.transpile(code) expect(aether.run()).toEqual 100 it 'should disallow using Function', -> ...
Aether = require '../aether' describe "Global Scope Exploit Suite", -> it 'should intercept "this"', -> code = "G=100;var globals=(function(){return this;})();return globals.G;" aether = new Aether() aether.transpile(code) expect(aether.run()).toEqual 100 it 'should disallow using Function', -> ...
Fix up the sandbox testing functions.
Fix up the sandbox testing functions.
CoffeeScript
mit
kidaa/aether,basicer/aether,codecombat/aether,UltCombo/aether,UltCombo/aether,basicer/aether,kidaa/aether,codecombat/aether
f9f0cd162911a585d7f9dfe00c76dfe6dcd90601
test/support/common.coffee
test/support/common.coffee
chai = require 'chai' global.should = chai.should()
path = require 'path' chai = require 'chai' global.should = chai.should() global.bin = path.join __dirname, '..', '..', 'bin', 'brave-mouse'
Set ‘bin’ to main executable in every test file
Set ‘bin’ to main executable in every test file
CoffeeScript
bsd-2-clause
SonicHedgehog/brave-mouse
3a857193f21cbd1198e593335f648fea673b05e2
spec/helpers/require_helper.coffee
spec/helpers/require_helper.coffee
allTestFiles = [] TEST_REGEXP = /(spec|test)\.js$/i Object.keys(window.__karma__.files).forEach (file) -> allTestFiles.push(file) if TEST_REGEXP.test(file) require.config #Karma serves files under /base, which is the basePath from your config file baseUrl: '/base/src' paths: { 'easyxdm': '../compiled/vend...
allTestFiles = [] TEST_REGEXP = /(spec|test)\.js$/i Object.keys(window.__karma__.files).forEach (file) -> allTestFiles.push(file) if TEST_REGEXP.test(file) window.__requirejs__ = loaded_amds: {} clearRequireState: -> for key, value of window.__requirejs__.loaded_amds requirejs.undef key delete w...
Create helper to auto-undef requirejs modules
Create helper to auto-undef requirejs modules Useful if some module needs to be mocked.
CoffeeScript
mit
skroutz/analytics.js,skroutz/analytics.js,skroutz/analytics.js
f19414a93f23aa84172ff384587af8ba46d27561
config/application.coffee
config/application.coffee
lineman = require(process.env["LINEMAN_MAIN"]) # completely ignore Lineman's built-in application config config = pkg: lineman.grunt.file.readJSON("package.json") appTasks: common: [ "copy" ] dev: [] dist: [] loadNpmTasks: [ "grunt-contrib-copy" ] clean: dev: src: "generated" ...
lineman = require(process.env["LINEMAN_MAIN"]) # completely ignore Lineman's built-in application config config = pkg: lineman.grunt.file.readJSON("package.json") appTasks: common: [ "copy" ] dev: [ "watch" ] dist: [] loadNpmTasks: [ "grunt-contrib-copy" ] clean: dev: src: "gener...
Add watcher and watch manifest.json
Add watcher and watch manifest.json
CoffeeScript
mit
jasonkarns/lineman-chrome-extension-template