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
779b8aa9af73015e83626170a81989d6f3ba9065
app/assets/javascripts/tenon/features/date_time_picker.js.coffee
app/assets/javascripts/tenon/features/date_time_picker.js.coffee
class Tenon.features.DateTimePicker constructor: -> @$els = $("[data-behaviour~='datetime-picker']") @format = "MMM. DD, YYYY [at] hh:mm A" $.each(@$els, @_formatDate) @_enableDateTimePicker() @_setupUnfocus() _formatDate: (i, el) => $el = $(el) if $el.val() != '' && $el.val().match(/^\...
class Tenon.features.DateTimePicker constructor: -> @$els = $("[data-behaviour~='datetime-picker']") @format = "MMM. DD, YYYY [at] hh:mm A Z" $.each(@$els, @_formatDate) @_enableDateTimePicker() @_setupUnfocus() _formatDate: (i, el) => $el = $(el) if $el.val() != '' && $el.val().match(/...
Add UTC offset to the datetime format
Add UTC offset to the datetime format
CoffeeScript
mit
factore/tenon,factore/tenon,factore/tenon,factore/tenon
2662dc8c023afd7a38fb4cc366cb73ae7b8026a4
servers/lib/server/handlers/api/gitlab/testhelpers.coffee
servers/lib/server/handlers/api/gitlab/testhelpers.coffee
# Export generic testhelpers testhelpers = require '../../../../../testhelper' { expect request generateUrl checkBongoConnectivity generateRequestParamsEncodeBody } = testhelpers utils = require './utils' testhelpers.gitlabApiUrl = generateUrl { route : '-/api/gitlab' } testhelpers.gitlabDefaultHeaders = { ...
# Export generic testhelpers testhelpers = require '../../../../../testhelper' { expect request generateUrl checkBongoConnectivity generateRequestParamsEncodeBody } = testhelpers utils = require './utils' testhelpers.gitlabApiUrl = generateUrl { route : '-/api/gitlab' } testhelpers.gitlabDefaultHeaders = { ...
Test helpers for generic requests on tests
GitLab: Test helpers for generic requests on tests
CoffeeScript
agpl-3.0
sinan/koding,acbodine/koding,usirin/koding,mertaytore/koding,kwagdy/koding-1,andrewjcasal/koding,rjeczalik/koding,szkl/koding,cihangir/koding,usirin/koding,mertaytore/koding,jack89129/koding,andrewjcasal/koding,kwagdy/koding-1,usirin/koding,gokmen/koding,drewsetski/koding,acbodine/koding,jack89129/koding,rjeczalik/kodi...
580b9eef2ef2e7f0cfd7dc04d4d7207a2a87dc27
src/RuleProcessor.coffee
src/RuleProcessor.coffee
regexes = nonEnglishOperators: /[&|\||\=]{2}|\!\=/ module.exports = class RuleProcessor rule: name: 'prefer_english_operator' description: ''' This rule prohibits &&, ||, == and !=. Use and, or, is, and isnt instead. ''' level: 'warn' message: 'Don\'t use &&, ||, == and !=' lin...
module.exports = class RuleProcessor rule: name: 'prefer_english_operator' description: ''' This rule prohibits &&, ||, ==, != and !. Use and, or, is, isnt, and not instead. !! for converting to a boolean is ignored. ''' level: 'ignore' doubleNotLevel: 'ignore' message: 'Don\'t use...
Update source to latest in `coffeelint`
Update source to latest in `coffeelint`
CoffeeScript
mit
gasi/coffeelint-prefer-english-operator-streamline
ca8a5f77ce6ce79cad7d22745832d9a79ef26096
app/assets/javascripts/controllers/projects/index.coffee
app/assets/javascripts/controllers/projects/index.coffee
Dashboard.ProjectsTabController = Ember.Controller.extend Dashboard.SearchableBaseController, baseRouteName: 'projects' search: pg_search: null Dashboard.ProjectsSearchController = Dashboard.ProjectsTabController.extend Dashboard.SearchableController, baseRouteName: 'projects'
Dashboard.ProjectsTabController = Ember.Controller.extend Dashboard.SearchableBaseController, baseRouteName: 'projects' search: query: null between_created_at: starts_at: null ends_at: null between_expires_at: starts_at: null ends_at: null between_online_date: starts_a...
Define search fields for projects
Define search fields for projects
CoffeeScript
mit
FromUte/dune-dashboard,FromUte/dune-dashboard,FromUte/dune-dashboard
b9aa77905f396a769cf3aeebb8e0f755edef192b
server/stream/streamBroadcast.coffee
server/stream/streamBroadcast.coffee
@connections = {} @startStreamBroadcast = (streams) -> console.log 'startStreamBroadcast' # connections = {} InstanceStatus.getCollection().find().observe added: (record) -> if record.extraInformation.port is process.env.PORT return console.log 'connecting in', "localhost:#{record.extraInformation.por...
@connections = {} @startStreamBroadcast = (streams) -> console.log 'startStreamBroadcast' # connections = {} InstanceStatus.getCollection().find().observe added: (record) -> if record.extraInformation.port is process.env.PORT return console.log 'connecting in', "localhost:#{record.extraInformation.por...
Fix emitter in same server
Fix emitter in same server
CoffeeScript
mit
pitamar/Rocket.Chat,tzellman/Rocket.Chat,callmekatootie/Rocket.Chat,qnib/Rocket.Chat,ludiculous/Rocket.Chat,callblueday/Rocket.Chat,abhishekshukla0302/trico,thswave/Rocket.Chat,marzieh312/Rocket.Chat,JisuPark/Rocket.Chat,glnarayanan/Rocket.Chat,parkmap/Rocket.Chat,igorstajic/Rocket.Chat,apnero/tactixteam,pitamar/Rocket...
96362c32bac47b1ab84b741c4c2d3dec1ab12c1c
apps/artist_2/components/current_show_auction/query.coffee
apps/artist_2/components/current_show_auction/query.coffee
module.exports = """ fragment current on Artist { auction: sales(size:2, live: true, is_auction: true){ cover_image { cropped(width: 150, height: 104) { url } } href name start_at end_at } show: partner_shows(size:2, exclude_fair_booths: true, ...
module.exports = """ fragment current on Artist { auction: sales(size:2, live: true, is_auction: true){ cover_image { cropped(width: 150, height: 104) { url } } href name start_at end_at } show: partner_shows(size:2, at_a_fair: false, active:tr...
Switch exclude_fair_booths param to match an updated Gravity API
Switch exclude_fair_booths param to match an updated Gravity API
CoffeeScript
mit
xtina-starr/force,kanaabe/force,cavvia/force-1,oxaudo/force,damassi/force,kanaabe/force,artsy/force-public,anandaroop/force,anandaroop/force,joeyAghion/force,cavvia/force-1,izakp/force,mzikherman/force,joeyAghion/force,damassi/force,eessex/force,cavvia/force-1,mzikherman/force,kanaabe/force,mzikherman/force,xtina-starr...
121992a0266035d0186b3f3348bd4bfd6dfb1daa
src/components/qa/exercise-card.cjsx
src/components/qa/exercise-card.cjsx
_ = require 'underscore' React = require 'react' classnames = require 'classnames' {ExerciseStore} = require '../../flux/exercise' String = require '../../helpers/string' {ExercisePreview} = require 'openstax-react-components' Exercise = React.createClass propTypes: exercise: React.PropTypes.object.isRequired ...
_ = require 'underscore' React = require 'react' classnames = require 'classnames' {ExerciseStore} = require '../../flux/exercise' String = require '../../helpers/string' {ExercisePreview} = require 'openstax-react-components' Exercise = React.createClass propTypes: exercise: React.PropTypes.object.isRequired ...
Fix bug where untagged exercises would not render
Fix bug where untagged exercises would not render
CoffeeScript
agpl-3.0
openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js
b125565776a7a502637e54e9691d15ef06b0496b
src/panel-element.coffee
src/panel-element.coffee
{CompositeDisposable} = require 'event-kit' {callAttachHooks} = require './space-pen-extensions' class PanelElement extends HTMLElement createdCallback: -> @subscriptions = new CompositeDisposable getModel: -> @model setModel: (@model) -> view = @model.getItemView() @appendChild(view) callAttac...
{CompositeDisposable} = require 'event-kit' {callAttachHooks} = require './space-pen-extensions' class PanelElement extends HTMLElement createdCallback: -> @subscriptions = new CompositeDisposable getModel: -> @model setModel: (@model) -> view = @model.getItemView() @appendChild(view) @classLi...
Call space pen attach hooks after attached
Call space pen attach hooks after attached
CoffeeScript
mit
decaffeinate-examples/atom,tisu2tisu/atom,gzzhanghao/atom,isghe/atom,acontreras89/atom,wiggzz/atom,ashneo76/atom,helber/atom,boomwaiza/atom,yomybaby/atom,yalexx/atom,codex8/atom,yamhon/atom,mostafaeweda/atom,Abdillah/atom,seedtigo/atom,darwin/atom,basarat/atom,fang-yufeng/atom,ardeshirj/atom,charleswhchan/atom,0x73/ato...
fa6cb3e7a896270bc2a32a1f4f45b545096c2c80
components/inquiry_questionnaire/views/specialist.coffee
components/inquiry_questionnaire/views/specialist.coffee
Q = require 'bluebird-q' _ = require 'underscore' StepView = require './step.coffee' Form = require '../../form/index.coffee' Representatives = require '../../../collections/representatives.coffee' template = -> require('../templates/specialist.jade') arguments... module.exports = class Specialist extends StepView c...
Q = require 'bluebird-q' _ = require 'underscore' StepView = require './step.coffee' Form = require '../../form/index.coffee' Representatives = require '../../../collections/representatives.coffee' template = -> require('../templates/specialist.jade') arguments... module.exports = class Specialist extends StepView c...
Make representative fetch more resilient to API errors (probably only relevant for staging)
Make representative fetch more resilient to API errors (probably only relevant for staging)
CoffeeScript
mit
mzikherman/force,artsy/force,cavvia/force-1,xtina-starr/force,kanaabe/force,oxaudo/force,xtina-starr/force,anandaroop/force,eessex/force,kanaabe/force,mzikherman/force,cavvia/force-1,xtina-starr/force,dblock/force,damassi/force,oxaudo/force,artsy/force,erikdstock/force,izakp/force,yuki24/force,joeyAghion/force,izakp/fo...
3be55e0dae3b8bc875105691e023ee93c50744e3
lib/sort-lines.coffee
lib/sort-lines.coffee
RangeFinder = require './range-finder' module.exports = activate: (state) -> atom.workspaceView.command 'sort-lines:sort', '.editor', => editor = atom.workspaceView.getActivePaneItem() @sortLines(editor) sortLines: (editor) -> lineRanges = RangeFinder.rangesFor(editor) lineRanges.forEach (...
RangeFinder = require './range-finder' module.exports = activate: (state) -> atom.workspaceView.command 'sort-lines:sort', '.editor', => editor = atom.workspaceView.getActivePaneItem() @sortLines(editor) sortLines: (editor) -> sortableRanges = RangeFinder.rangesFor(editor) sortableRanges.f...
Rename variable to increase clarity
Rename variable to increase clarity
CoffeeScript
mit
garethbjohnson/sort-css,atom/sort-lines
7f59fe825d4967af85b6566245b7d71bef5bb7c3
atom/config.cson
atom/config.cson
"*": editor: fontFamily: "input" fontSize: 13 showInvisibles: true showIndentGuide: true invisibles: {} core: themes: [ "one-dark-ui" "atom-dark-syntax" ] welcome: showOnStartup: false whitespace: removeTrailingWhitespace: true ignoreWhitespaceOnCurrentLine: f...
"*": editor: fontFamily: "input" fontSize: 13 showInvisibles: true showIndentGuide: true invisibles: {} core: themes: [ "one-dark-ui" "facebook-syntax" ] welcome: showOnStartup: false whitespace: removeTrailingWhitespace: true ignoreWhitespaceOnCurrentLine: fa...
Use Facebook syntax in Atom
Use Facebook syntax in Atom
CoffeeScript
mit
therealechan/dotfiles,chankaward/dotfiles,therealechan/dotfiles,therealechan/dotfiles,chankaward/dotfiles,chankaward/dotfiles
7397615e2824422bba6566319ffe40a5fecefb8a
app/assets/javascripts/neighborly/rewards/index.js.coffee
app/assets/javascripts/neighborly/rewards/index.js.coffee
Neighborly.Rewards = {} if Neighborly.Rewards is undefined Neighborly.Rewards.Index = Backbone.View.extend el: '.rewards' initialize: -> this.$rewards = $(this.el) this.load() this.sortable() load: -> that = this $.ajax( url: that.$rewards.data("rewards-path") success: (data) ->...
Neighborly.Rewards = {} if Neighborly.Rewards is undefined Neighborly.Rewards.Index = Backbone.View.extend el: '.rewards' initialize: -> this.$rewards = $(this.el) this.load() this.sortable() load: -> that = this $.ajax( url: that.$rewards.data("rewards-path") success: (data) ->...
Replace childrend by find in jquery
Replace childrend by find in jquery
CoffeeScript
mit
jinutm/silveralms.com,jinutm/silvfinal,MicroPasts/micropasts-crowdfunding,jinutm/silverprod,jinutm/silverprod,jinutm/silvfinal,raksonibs/raimcrowd,jinutm/silvfinal,rockkhuya/taydantay,jinutm/silveralms.com,jinutm/silverpro,jinutm/silverclass,jinutm/silverpro,jinutm/silverprod,raksonibs/raimcrowd,jinutm/silveralms.com,r...
429ebe39ad482764ee04895bced9b8f3997831e0
app/assets/javascripts/routes/paper_index_route.js.coffee
app/assets/javascripts/routes/paper_index_route.js.coffee
ETahi.PaperIndexRoute = Ember.Route.extend afterModel: (model) -> @transitionTo('paper.edit', model) unless model.get('submitted') actions: viewCard: (task) -> paper = @modelFor('paper') redirectParams = ['paper.index', @modelFor('paper')] @controllerFor('application').set('overlayRedirec...
ETahi.PaperIndexRoute = Ember.Route.extend afterModel: (model) -> @transitionTo('paper.edit', model) unless model.get('submitted') setupController: (controller, model) -> controller.set('model', model) controller.set 'authors', @store.all('author').filter (author) => author.get('authorGroup.paper...
Add setupController hook to paper index route
Add setupController hook to paper index route
CoffeeScript
mit
johan--/tahi,johan--/tahi,johan--/tahi,johan--/tahi
0f71c7e8d0f83524436061457aa1cc4bb2c1127f
client/lanes/Config.coffee
client/lanes/Config.coffee
class SystemSettings extends Lanes.Models.Base mixins: [ Lanes.Models.Mixins.FileSupport ] props: id: {type:"integer"} logo: "file" settings: {type: "object", required: true} modelTypeIdentifier: -> 'system-settings' url: -> Lanes.config.api_path + '/system-settings'...
class SystemSettings extends Lanes.Models.Base mixins: [ Lanes.Models.Mixins.FileSupport ] props: id: {type:"integer"} logo: "file" settings: {type: "object", required: true} modelTypeIdentifier: -> 'system-settings' url: -> Lanes.config.api_path + '/system-settings'...
Make sure "lanes" config is still present after set
Make sure "lanes" config is still present after set
CoffeeScript
mit
argosity/lanes,argosity/lanes,argosity/hippo,argosity/hippo,argosity/hippo,argosity/lanes
525a064830e833a495fe6a0f204ae74d019fb177
ui/app/scripts/services/Channel.coffee
ui/app/scripts/services/Channel.coffee
'use strict' angular.module('uiApp') .factory 'Channel', ($q, $callback, $rootScope, Config) -> Channel = {} ChannelObject = (socket) -> @socket = socket me = this @socket.onmessage = (e) -> me.onMessage(e) @matrix = {} this ChannelObject::send = (data) -> df...
'use strict' angular.module('uiApp') .factory 'Channel', ($q, $callback, $rootScope, Config) -> Channel = {} ChannelObject = (socket) -> @socket = socket me = this @socket.onmessage = (e) -> me.onMessage(e) @matrix = {} this ChannelObject::send = (data) -> df...
Remove channel reconnection as it causes problems
Remove channel reconnection as it causes problems
CoffeeScript
mit
elhypnotoad/hypnotoad,atsuyim/hypnotoad,atsuyim/hypnotoad,elhypnotoad/hypnotoad,atsuyim/hypnotoad
c8c9cf7db517e0c27bbad851c6be6ff9ee19e331
packages/rocketchat-oembed/client/oembedUrlWidget.coffee
packages/rocketchat-oembed/client/oembedUrlWidget.coffee
Template.oembedUrlWidget.helpers description: -> if not this.meta? return return this.meta.ogDescription or this.meta.twitterDescription or this.meta.description title: -> if not this.meta? return return this.meta.ogTitle or this.meta.twitterTitle or this.meta.title or this.meta.pageTitle image: ->...
Template.oembedUrlWidget.helpers description: -> if not this.meta? return description = this.meta.ogDescription or this.meta.twitterDescription or this.meta.description if not description? return return description.replace /(^“)|(”$)/g, '' title: -> if not this.meta? return return this.meta.o...
Remove quotes from twitter oembeds
Remove quotes from twitter oembeds
CoffeeScript
mit
igorstajic/Rocket.Chat,timkinnane/Rocket.Chat,sscpac/chat-locker,Codebrahma/Rocket.Chat,xboston/Rocket.Chat,ziedmahdi/Rocket.Chat,osxi/Rocket.Chat,ut7/Rocket.Chat,mrsimpson/Rocket.Chat,Gudii/Rocket.Chat,janmaghuyop/Rocket.Chat,hazio/Rocket.Chat,adamteece/Rocket.Chat,coreyaus/Rocket.Chat,wangleihd/Rocket.Chat,gitaboard/...
0815a333932a63679ff417527946f96a8fcfb04c
lib/helpers.coffee
lib/helpers.coffee
{Range} = require('atom') Helpers = module.exports = validateMessages: (results) -> if (not results) or results.constructor.name isnt 'Array' throw new Error "Got invalid response from Linter, Type: #{typeof results}" for result in results unless result.type throw new Error "Missing type ...
{Range} = require('atom') Helpers = module.exports = validateMessages: (results) -> if (not results) or results.constructor.name isnt 'Array' throw new Error "Got invalid response from Linter, Type: #{typeof results}" for result in results unless result.type throw new Error "Missing type ...
Return undefined explicitly in Helpers::validateMessages
:bug: Return undefined explicitly in Helpers::validateMessages
CoffeeScript
mit
kaeluka/linter,shawninder/linter,JohnMurga/linter,UltCombo/linter,mdgriffith/linter,steelbrain/linter,iam4x/linter,blakeembrey/linter,Arcanemagus/linter,e-jigsaw/Linter,DanPurdy/linter,elkeis/linter,levity/linter,AtomLinter/Linter,atom-community/linter,AsaAyers/linter
aa000b7df9d4293f3d392d2558345e1ffc243706
app/core/Component.coffee
app/core/Component.coffee
### A Result represents the...well...result of a Task. Any function given to {Scriptable#addTask} is expected to return a {Result}. ### module.exports = class Component constructor: (@owner) -> ### Copys all functions from the component to {#owner}. Ignores functions starting with an underscore and refuses t...
### A Result represents the...well...result of a Task. Any function given to {Scriptable#addTask} is expected to return a {Result}. ### module.exports = class Component constructor: (@owner) -> ### Copys all functions from the component to {#owner}. Ignores functions starting with an underscore and refuses t...
Fix copying of constructor, mount itself and the owner property
Fix copying of constructor, mount itself and the owner property Copying the owner property to the object it points to would be, well random...
CoffeeScript
apache-2.0
despairblue/shiny-wight
3e40960e9092e1a07e81fa87d18ba5110591d0ed
components/__tests__/Slider.spec.cjsx
components/__tests__/Slider.spec.cjsx
React = require('react/addons') expect = require('expect') utils = require('./utils') TestUtils = React.addons.TestUtils Slider = require('../slider') describe 'Slider', -> before -> @component = TestUtils.renderIntoDocument(<Slider />) @component.setState({ sliderStart: 0, sliderLe...
TestUtils = React.addons.TestUtils expect = require('expect') utils = require('./utils') Slider = require('../slider') describe 'Slider', -> describe '#events', -> slider = null before -> props = { min: -500, max: 500 } state = { sliderStart: 0, sliderLength: 1000 } slid...
Improve minimal tests for slider
Improve minimal tests for slider
CoffeeScript
mit
DigitalRiver/react-atlas,jasonleibowitz/react-toolbox,showings/react-toolbox,react-toolbox/react-toolbox,rubenmoya/react-toolbox,react-toolbox/react-toolbox,KerenChandran/react-toolbox,react-toolbox/react-toolbox,KerenChandran/react-toolbox,soyjavi/react-toolbox,jasonleibowitz/react-toolbox,rubenmoya/react-toolbox,show...
6dcb23a09f6c157d76b782f8bcd536bd53a20d8c
spec/coffeescript.coffee
spec/coffeescript.coffee
grade = (student, period=(if b? then 7 else 6), messages={"A": "Excellent"}) -> if student.excellentWork "A+" else if student.okayStuff if student.triedHard then "B" else "B-" else "C" square = (x) -> x * x two = -> 2 math = root: Math.sqrt square: square cube: (x) -> x * square x race =...
grade = (student, period=(if b? then 7 else 6), messages={"A": "Excellent"}) -> if student.excellentWork "A+" else if student.okayStuff if student.triedHard then "B" else "B-" else "C" square = (x) -> x * x two = -> 2 math = root: Math.sqrt square: square cube: (x) -> x * square x race =...
Use valid CoffeeScript in example
Use valid CoffeeScript in example
CoffeeScript
mit
colllin/one-dark-syntax,vith/one-dark-syntax,JeNeSuisPasDave/one-dark-syntax,yuriihabrusiev/one-dark-syntax,vith/one-dark-syntax,colllin/one-dark-syntax,nviel/nico-syntax,vith/one-dark-syntax,JeNeSuisPasDave/one-dark-syntax,grigio/atom-darkmate-syntax,grigio/atom-darkmate-syntax,nviel/nico-syntax,JeNeSuisPasDave/one-da...
8ff47b1cb1a449593d58657afae0a50577ff35bd
config.cson
config.cson
"*": "exception-reporting": userId: "53c5f869-8a29-d7f5-ef48-bc598612bb8d" welcome: showOnStartup: false core: {} editor: invisibles: {}
"*": "exception-reporting": userId: "53c5f869-8a29-d7f5-ef48-bc598612bb8d" welcome: showOnStartup: false editor: invisibles: {} tabs: usePreviewTabs: true
Use preview tab like sublime
Use preview tab like sublime
CoffeeScript
mit
substantial/atomfiles,substantial/atomfiles
2888cc93bd061e089968589c0df8d2f507940e1a
app/assets/javascripts/pager.js.coffee
app/assets/javascripts/pager.js.coffee
@Pager = init: (@limit = 0, preload, @disable = false) -> @loading = $(".loading") if preload @offset = 0 @getOld() else @offset = @limit @initLoadMore() getOld: -> @loading.show() $.ajax type: "GET" url: $(".content_list").data('href') || location.href d...
@Pager = init: (@limit = 0, preload, @disable = false) -> @loading = $('.loading').first() if preload @offset = 0 @getOld() else @offset = @limit @initLoadMore() getOld: -> @loading.show() $.ajax type: "GET" url: $(".content_list").data('href') || location.hre...
Select just the first matched element
Select just the first matched element This a generic selector. It was also affecting spinner icon of the tabs
CoffeeScript
mit
mmkassem/gitlabhq,ttasanen/gitlabhq,screenpages/gitlabhq,dreampet/gitlab,jirutka/gitlabhq,htve/GitlabForChinese,larryli/gitlabhq,darkrasid/gitlabhq,Soullivaneuh/gitlabhq,mr-dxdy/gitlabhq,dreampet/gitlab,LUMC/gitlabhq,iiet/iiet-git,SVArago/gitlabhq,martijnvermaat/gitlabhq,shinexiao/gitlabhq,iiet/iiet-git,mmkassem/gitlab...
481d27076f99c90e836badaa602373d5c8157f07
app/assets/javascripts/rglossa/controllers/cwb/search_inputs_controller.coffee
app/assets/javascripts/rglossa/controllers/cwb/search_inputs_controller.coffee
App.CwbSearchInputsController = Em.ArrayController.extend needs: ['corpus', 'searches'] corpusBinding: 'controllers.corpus.content' currentInterface: null init: -> # Show the preferred interface (simple, multiword or regex) for this user or corpus @set('currentInterface', @get('controllers.corpus.pre...
App.CwbSearchInputsController = Em.ArrayController.extend needs: ['corpus', 'searches'] corpusBinding: 'controllers.corpus.content' currentInterface: null init: -> # Show the preferred interface (simple, multiword or regex) for this user or corpus @set('currentInterface', @get('controllers.corpus.pre...
Support corpora without a tagger config
Support corpora without a tagger config
CoffeeScript
mit
textlab/rglossa,textlab/glossa,textlab/glossa,textlab/glossa,textlab/rglossa,textlab/glossa,textlab/rglossa,textlab/rglossa,textlab/glossa,textlab/rglossa
57ff6eb6c9fc46ad2be6f0efe414ccc3f4368afa
src/languages/jsx.coffee
src/languages/jsx.coffee
module.exports = { name: "JSX" namespace: "jsx" fallback: ['js'] ### Supported Grammars ### grammars: [ "JSX" "JavaScript (JSX)" "Babel ES6 JavaScript" ] ### Supported extensions ### extensions: [ "jsx", "js" ] }
module.exports = { name: "JSX" namespace: "jsx" fallback: ['js'] ### Supported Grammars ### grammars: [ "JSX" "JavaScript (JSX)" "Babel ES6 JavaScript" "JavaScript with JSX" ] ### Supported extensions ### extensions: [ "jsx", "js" ] }
Add JavaScript with JSX grammar to JSX language
Add JavaScript with JSX grammar to JSX language
CoffeeScript
mit
Glavin001/atom-beautify,Glavin001/atom-beautify,Glavin001/atom-beautify,prettydiff/atom-beautify,prettydiff/atom-beautify,Glavin001/atom-beautify,prettydiff/atom-beautify,Glavin001/atom-beautify,prettydiff/atom-beautify
0910406c465137f88ad3c38b2cc4b8fc7550fd20
src/flux/performance.coffee
src/flux/performance.coffee
{CrudConfig, makeSimpleStore, extendConfig} = require './helpers' _ = require 'underscore' PerformanceConfig = { exports: getStudentOfTask: (courseId, taskId) -> performances = @_get(courseId) students = _.chain(performances) .pluck('students') .flatten(true) .value() #...
{CrudConfig, makeSimpleStore, extendConfig} = require './helpers' _ = require 'underscore' allStudents = (performances) -> _.chain(performances) .pluck('students') .flatten(true) .value() PerformanceConfig = { exports: getStudent: (courseId, roleId) -> students = allStudents @_get(courseId)...
Add methods to find or retrieve all students
Add methods to find or retrieve all students
CoffeeScript
agpl-3.0
openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js
dca62528066573ce35144ac39fd51ef595fc122d
app/assets/javascripts/species/views/search_form/taxon_concept_search_text_field.js.coffee
app/assets/javascripts/species/views/search_form/taxon_concept_search_text_field.js.coffee
Species.TaxonConceptSearchTextField = Em.TextField.extend value: '' currentTimeout: null attributeBindings: ['autocomplete'] focusOut: (event) -> @.$().attr('placeholder', @get('placeholder')) @hideDropdown() if !@get('parentView.mousedOver') keyUp: (event) -> Ember.run.cancel(@currentTimeout) ...
Species.TaxonConceptSearchTextField = Em.TextField.extend value: '' currentTimeout: null attributeBindings: ['autocomplete'] focusOut: (event) -> @.$().attr('placeholder', @get('placeholder')) @hideDropdown() if !@get('parentView.mousedOver') keyUp: (event) -> Ember.run.cancel(@currentTimeout) ...
Hide suggestions dropdown if the keyUp is Enter
Hide suggestions dropdown if the keyUp is Enter
CoffeeScript
bsd-3-clause
unepwcmc/SAPI,unepwcmc/SAPI,unepwcmc/SAPI,unepwcmc/SAPI
35b1c74fe33305ac1377c1299675fea2072b3c9b
src/languages/yaml.coffee
src/languages/yaml.coffee
module.exports = { name: "YAML" namespace: "yaml" fallback: [] scope: ['source.yaml'] ### Supported Grammars ### grammars: [ "YAML" ] ### Supported extensions ### extensions: [ "yml", "yaml" ] defaultBeautifier: "align-yaml" options: { padding: type: 'integer' ...
module.exports = { name: "YAML" namespace: "yaml" fallback: [] scope: ['source.yaml'] ### Supported Grammars ### grammars: [ "YAML" ] ### Supported extensions ### extensions: [ "yml", "yaml" ] defaultBeautifier: "align-yaml" options: { padding: type: 'integer' ...
Set default padding to 0, not null
Set default padding to 0, not null This fixes https://github.com/Glavin001/atom-beautify/issues/1647 .
CoffeeScript
mit
prettydiff/atom-beautify,Glavin001/atom-beautify,Glavin001/atom-beautify,prettydiff/atom-beautify,Glavin001/atom-beautify,Glavin001/atom-beautify,prettydiff/atom-beautify,Glavin001/atom-beautify,prettydiff/atom-beautify
9408bf7e82c7df6d9c2ea4bce69eda1c95f8f5fa
app/controllers/index.coffee
app/controllers/index.coffee
`import Ember from 'ember';` `import Notify from 'ember-notify';` `import CONSTANTS from '../utils/constants';` `import SocketMixin from '../mixins/socket';` IndexController = Ember.ArrayController.extend SocketMixin, needs: ['application'] storeURL: null ratio: null model:( -> @store.all 'project' )...
`import Ember from 'ember';` `import Notify from 'ember-notify';` `import CONSTANTS from '../utils/constants';` `import SocketMixin from '../mixins/socket';` IndexController = Ember.ArrayController.extend SocketMixin, needs: ['application'] storeURL: null ratio: null model:( -> @store.all 'project' )...
Fix scan permissions error message
Fix scan permissions error message
CoffeeScript
agpl-3.0
appknox/irene,appknox/irene,appknox/irene
f4131826f06a25fb6299a674923fa0a8a711c08c
src/utils.coffee
src/utils.coffee
# General purpose utitily functions # ================================= fs = require 'fs' path = require 'path' # Trim newlines from beginning and end of multi line string. exports.trimNewLines = (str) -> str.replace(/^\n*/, '').replace(/\n*$/, '') # Build an HTML file name, depending on the source path. expor...
# General purpose utitily functions # ================================= fs = require 'fs' path = require 'path' # Trim newlines from beginning and end of multi line string. exports.trimNewLines = (str) -> str.replace(/^\n*/, '').replace(/\n*$/, '') # Build an HTML file name, depending on the source path. expor...
Fix path bug in menu generation
Fix path bug in menu generation
CoffeeScript
mit
paulwellnerbou/styledocco,trungnghia112/styledocco,trungnghia112/styledocco,ooooooo-q/styledocco,ooooooo-q/styledocco,jacobrask/styledocco,paulwellnerbou/styledocco
ea087061397e2baeb27a7334d83769cac687ebae
lib/nsync/web-window.coffee
lib/nsync/web-window.coffee
_ = require 'underscore-plus' shell = require 'shell' remote = require 'remote' BrowserWindow = remote.require 'browser-window' module.exports = class WebWindow constructor: (url, options = {}, @openNewWindowExternally = true) -> _.defaults options, show: false width: 400 height: 600 skip...
_ = require 'underscore-plus' shell = require 'shell' remote = require 'remote' BrowserWindow = remote.BrowserWindow module.exports = class WebWindow constructor: (url, options = {}, @openNewWindowExternally = true) -> _.defaults options, show: false width: 400 height: 600 skipTaskbar: tr...
Update deprecated call to remote
Update deprecated call to remote
CoffeeScript
mit
learn-co/learn-ide-tree
6c8aa7f6806c9e8b89723010773b53ac4dfbc48d
gulpfile.coffee
gulpfile.coffee
gulp = require('gulp') $ = require('gulp-load-plugins') $ = $ 'rename': 'gulp-task-listing': 'list' path = require('path') pkg = require('./package.json') gulp.task 'default', ['list'] gulp.task 'list', $.list gulp.task 'lint', ['lint-json', 'lint-coffee'] gulp.task 'lint-json', -> gulp.src('package.json') ...
gulp = require('gulp') $ = require('gulp-load-plugins') $ = $ 'rename': 'gulp-task-listing': 'list' path = require('path') pkg = require('./package.json') gulp.task 'default', ['list'] gulp.task 'list', $.list gulp.task 'lint', ['lint-json', 'lint-coffee'] gulp.task 'lint-json', -> gulp.src('package.json') ...
Fix the wildcard in gulp test-mocha
Fix the wildcard in gulp test-mocha
CoffeeScript
mit
mh61503891/node-winreg-ffi
e02a43ed74578e80aa56deb65325f84bf44c0d9e
lib/Acho.coffee
lib/Acho.coffee
'use strict' DEFAULT = require './Default' CONST = require './Constants' existsDefault = require 'existential-default' module.exports = (options = {}) -> acho = existsDefault(options, DEFAULT) acho.diff = [] if acho.diff acho[key] = value for key, value of acho acho.messages = do -> message...
'use strict' DEFAULT = require './Default' CONST = require './Constants' existsDefault = require 'existential-default' Acho = (options = {}) -> return new Acho options unless this instanceof Acho acho = existsDefault(options, DEFAULT) acho.diff = [] if acho.diff acho[key] = value for key, value...
Add instanceof for new keyword
Add instanceof for new keyword
CoffeeScript
mit
Kikobeats/acho,achohq/acho,Kikobeats/acho,achojs/acho
76735e2f0153bf78b480cb07eae18201a6fdc1ae
lib/main.coffee
lib/main.coffee
module.exports = config: showIcons: type: 'boolean' default: true alwaysShowTabBar: type: 'boolean' default: true description: "Shows the Tab Bar when only 1 tab is open" tabScrolling: type: 'boolean' default: process.platform is 'linux' tabScrollingThreshold:...
module.exports = config: showIcons: type: 'boolean' default: true alwaysShowTabBar: type: 'boolean' default: true description: "Shows the Tab Bar when only 1 tab is open" tabScrolling: type: 'boolean' default: process.platform is 'linux' tabScrollingThreshold:...
Make preview tabs off by default for now
Make preview tabs off by default for now
CoffeeScript
mit
pombredanne/tabs,acontreras89/tabs,atom/tabs,harai/tabs
99a514fee7f7e3a5364bc965cc6b2dee17770f34
app/assets/javascripts/users.js.coffee
app/assets/javascripts/users.js.coffee
toggleTab = (targetClass) -> $footer = $('div.profile-footer') $nav = $footer.find('ul.nav') $nav.find('.active').removeClass 'active' $nav.find(".tab-#{targetClass}").addClass 'active' toggleTabPanel = (targetClass) -> $('div.tab-pane.active').removeClass 'active' $("div.tab-pane.#{targetClass...
initialize = () -> targetClass = window.location.hash.substr(1) unless targetClass targetClass = 'account' toggleTab(targetClass) toggleTabPanel(targetClass) updateFormAction(targetClass) updateLocationHash(targetClass) $(".nav a").click (event) -> event.preventDefault() ...
Fix initialization of user profile logic
Fix initialization of user profile logic
CoffeeScript
mit
SoPR/sopr-platform,SoPR/sopr-platform
3863fd6cdbd41fefbb1741764d540e101c1178f8
app/assets/javascripts/species/mixins/event_lookup.js.coffee
app/assets/javascripts/species/mixins/event_lookup.js.coffee
Species.EventLookup = Ember.Mixin.create selectedEvent: null selectedEventId: null initEventSelector: -> @set('selectedEvent', @get('controllers.events.content').findBy('id', @get('selectedEventId'))) if @get('selectedEventType') == null && @get('selectedEvent') @set('selectedEventType', @get('cont...
Species.EventLookup = Ember.Mixin.create selectedEvent: null selectedEventId: null initEventSelector: -> @set('selectedEvent', @get('controllers.events.content').findBy('id', @get('selectedEventId'))) if @get('selectedEventType') == null && @get('selectedEvent') @set('selectedEventType', @get('cont...
Fix meeting dropdown appearing when no meeting type selected
Fix meeting dropdown appearing when no meeting type selected
CoffeeScript
bsd-3-clause
unepwcmc/SAPI,unepwcmc/SAPI,unepwcmc/SAPI,unepwcmc/SAPI
0ef75ff1993a03ff77b49c2bd034f8a692190eca
app/assets/javascripts/banners.js.coffee
app/assets/javascripts/banners.js.coffee
App.Banners = update_banner: (selector, text) -> $(selector).html(text) update_style: (selector, style) -> $(selector).removeClass($(selector).attr("class"), true) .addClass(style, true) update_background_color: (selector, background_color) -> $(selector).css("background-color", background_co...
App.Banners = update_banner: (selector, text) -> $(selector).html(text) update_background_color: (selector, background_color) -> $(selector).css("background-color", background_color) update_font_color: (selector, font_color) -> $(selector).css("color", font_color) initialize: -> $("[data-js-...
Remove unused JavaScript banners code
Remove unused JavaScript banners code The banner `update_style` method isn't used since commit 82cb8d4c.
CoffeeScript
agpl-3.0
usabi/consul_san_borondon,usabi/consul_san_borondon,consul/consul,consul/consul,consul/consul,usabi/consul_san_borondon,consul/consul,usabi/consul_san_borondon,consul/consul
da9c966bf828daadd8aa1df4fcd1eeabab7fc123
t/compiler/harness.coffee
t/compiler/harness.coffee
{Client} = require "mysql" fs = require "fs" context = compiler: require "../../lib/compiler" object: { id: 1, rgt: 1, lft: 2, permalink: "home" } reflector: (callback) -> configuration = JSON.parse fs.readFileSync("#{__dirname}/../../configuration.json", "utf8") mysql = configuration.databases.mysql ...
{Client} = require "mysql" fs = require "fs" context = compiler: require "../../lib/compiler" object: { id: 1, rgt: 1, lft: 2, permalink: "home" } reflector: (callback) -> configuration = JSON.parse fs.readFileSync("#{__dirname}/../../configuration.json", "utf8") mysql = configuration.databases.mysql ...
Use schema query from MySQL driver in tests.
Use schema query from MySQL driver in tests. The query that builds a schema object for the compiler tests is returning no rows on Travis CI. In this commit we replace that query with the query from the MySQL driver that appears to be working on Travis CI.
CoffeeScript
mit
bigeasy/relatable,bigeasy/relatable
ec40b66eba3e9b0597e160cb5a353aafb3edc739
components/artwork_filter/collections/artwork_columns.coffee
components/artwork_filter/collections/artwork_columns.coffee
_ = require 'underscore' Backbone = require 'backbone' { API_URL } = require('sharify').data Artworks = require '../../../collections/artworks.coffee' class Params extends Backbone.Model defaults: size: 9, page: 1 next: -> @set 'page', @get('page') + 1 prev: -> @set 'page', @get('page') - 1 module.exp...
_ = require 'underscore' Backbone = require 'backbone' { API_URL } = require('sharify').data Artworks = require '../../../collections/artworks.coffee' class Params extends Backbone.Model defaults: size: 9, page: 1 next: -> @set 'page', @get('page') + 1 prev: -> @set 'page', @get('page') - 1 module.exp...
Abort pending artworks requests to fix race condition
Abort pending artworks requests to fix race condition
CoffeeScript
mit
erikdstock/force,damassi/force,oxaudo/force,dblock/force,artsy/force-public,cavvia/force-1,mzikherman/force,cavvia/force-1,yuki24/force,eessex/force,artsy/force,kanaabe/force,anandaroop/force,artsy/force-public,anandaroop/force,erikdstock/force,xtina-starr/force,anandaroop/force,damassi/force,yuki24/force,xtina-starr/f...
4c81cd874fb81d8c3581217f1efe48779d869a67
services/web/public/coffee/ide/review-panel/controllers/TrackChangesUpgradeModalController.coffee
services/web/public/coffee/ide/review-panel/controllers/TrackChangesUpgradeModalController.coffee
define [ "base" ], (App) -> App.controller "TrackChangesUpgradeModalController", ($scope, $modalInstance) -> $scope.cancel = () -> $modalInstance.dismiss() $scope.startFreeTrial = (source) -> ga?('send', 'event', 'subscription-funnel', 'upgraded-free-trial', source) window.open("/user/subscription/ne...
define [ "base" ], (App) -> App.controller "TrackChangesUpgradeModalController", ($scope, $modalInstance) -> $scope.cancel = () -> $modalInstance.dismiss()
Remove unnecessary method - handled by FreeTrialModalController
Remove unnecessary method - handled by FreeTrialModalController
CoffeeScript
agpl-3.0
sharelatex/sharelatex
dfe9da7738abc413225a733703fbfc5e471e6b5c
app/assets/javascripts/router.js.coffee
app/assets/javascripts/router.js.coffee
# For more information see: http://emberjs.com/guides/routing/ ETahi.Router.map ()-> @route('flow_manager') @resource 'paper', { path: '/papers/:paper_id' }, -> @route('edit') @route('manage') @route('submit') @route('task', {path: '/papers/:paper_id/tasks/:task_id'}) @route('paper_new', { path: '/...
# For more information see: http://emberjs.com/guides/routing/ ETahi.Router.map ()-> @route('flow_manager') @resource 'paper', { path: '/papers/:paper_id' }, -> @route('edit') @route('manage') @route('submit') @route('task', {path: '/papers/:paper_id/tasks/:task_id'}) @route('paper_new', { path: '/...
Make sure the header appears on password pages
Make sure the header appears on password pages
CoffeeScript
mit
johan--/tahi,johan--/tahi,johan--/tahi,johan--/tahi
fad133865fb98d2998cfa7acb1337620765196af
app/assets/javascripts/static.js.coffee
app/assets/javascripts/static.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/ formatNumberWithCommaDelimiter = (number) -> Math.ceil(number).toString().replace(/\B(?=(\d{3})+(?!\d))/g,...
# 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/ formatNumberWithCommaDelimiter = (number) -> Math.ceil(number).toString().replace(/\B(?=(\d{3})+(?!\d))/g,...
Rename variable for clarity (Refactor only)
Rename variable for clarity (Refactor only)
CoffeeScript
agpl-3.0
openaustralia/morph,otherchirps/morph,openaustralia/morph,openaustralia/morph,openaustralia/morph,otherchirps/morph,openaustralia/morph,otherchirps/morph,openaustralia/morph,openaustralia/morph,otherchirps/morph,otherchirps/morph,otherchirps/morph,otherchirps/morph
397ee07907543c2af8323d88f0be871b0805dfa1
atom/dot-atom/projects.leopard-jkg.cson
atom/dot-atom/projects.leopard-jkg.cson
[ { title: "Spyns" group: "Development" paths: [ "~/Development/spyns" ] } { title: "CSI-702: Homework02 Instructor Attempt" group: "Mason Fall 2017" paths: [ "~/Documents/work/teaching/2017_Spring_Semester/CSI-702_High_Performance_Computing/assignments/homework02-instructo...
[ { title: "Spyns" group: "Development" paths: [ "~/Development/spyns" ] }, { title: "CSI-702: Homework02 Instructor Attempt" group: "Mason Spring 2017" paths: [ "~/Documents/work/teaching/2017_Spring_Semester/CSI-702_High_Performance_Computing/assignments/homework02-instru...
Fix group for Atom project
Fix group for Atom project
CoffeeScript
unlicense
jkglasbrenner/dotfiles,jkglasbrenner/dotfiles,jkglasbrenner/dotfiles,jkglasbrenner/dotfiles,jkglasbrenner/dotfiles,jkglasbrenner/dotfiles
d0c95bf12cbbe0d70a0a4603a41d0b116004d629
app/choose-subject-set.cjsx
app/choose-subject-set.cjsx
React = require 'react' module.exports = React.createClass displayName: 'ChooseSubjectSet' getInitialState: -> subject_sets: [] componentWillMount: -> @props.workflow?.get 'subject_sets', page_size: 40 .then (subject_sets) => subject_sets.sort (a, b) -> return 1 if a.metad...
React = require 'react' module.exports = React.createClass displayName: 'ChooseSubjectSet' getInitialState: -> subject_sets: [] componentWillMount: -> @props.workflow?.get 'subject_sets', page_size: 40 .then (subject_sets) => subject_sets.sort (a, b) -> return 1 if a.metad...
Trim '(London, England)' from borough names
Trim '(London, England)' from borough names
CoffeeScript
apache-2.0
zooniverse/wellcome,zooniverse/wellcome
73c6ff1628768f5e64ce9a31eb2efeadc390fa79
src/index.coffee
src/index.coffee
throttle = require 'lodash.throttle' events = require 'dom-events' listeners = [] exports.listen = (fn) -> listeners.push fn active = -> for fn in listeners fn() exports.active = throttledActive = throttle active, 5000, leading: true if typeof window isnt "undefined" # Listen to mouse movements. events...
throttle = require 'lodash.throttle' events = require '@kylemathews/dom-events' listeners = [] exports.listen = (fn) -> listeners.push fn active = -> for fn in listeners fn() exports.active = throttledActive = throttle active, 5000, leading: true if typeof window isnt "undefined" # Listen to mouse moveme...
Use scoped version of module
Use scoped version of module
CoffeeScript
mit
KyleAMathews/engagement,KyleAMathews/engagement
a2930d639178647eefb0acf5493e20c92c6578ea
client/app/lib/components/sidebarstacksection/sidebarstackheadersection.coffee
client/app/lib/components/sidebarstacksection/sidebarstackheadersection.coffee
Link = require 'app/components/common/link' React = require 'kd-react' module.exports = class SidebarStackHeaderSection extends React.Component render: -> <div className='SidebarTeamSection'> <Link className='SidebarSection-headerTitle' href='/Stacks'> STACKS <span className="SidebarSe...
Link = require 'app/components/common/link' React = require 'kd-react' module.exports = class SidebarStackHeaderSection extends React.Component render: -> <div className='SidebarTeamSection'> <Link className='SidebarSection-headerTitle' href='/Stacks'> STACKS <span className='SidebarSe...
Use single quote for className attribute
Use single quote for className attribute
CoffeeScript
agpl-3.0
cihangir/koding,gokmen/koding,gokmen/koding,sinan/koding,alex-ionochkin/koding,rjeczalik/koding,andrewjcasal/koding,rjeczalik/koding,andrewjcasal/koding,jack89129/koding,alex-ionochkin/koding,usirin/koding,cihangir/koding,cihangir/koding,kwagdy/koding-1,drewsetski/koding,usirin/koding,szkl/koding,alex-ionochkin/koding,...
4bc64b460299b0b6f7416d645fed79355f0b1665
keymaps/fuzzy-finder.cson
keymaps/fuzzy-finder.cson
'body': 'meta-t': 'fuzzy-finder:toggle-file-finder' 'meta-b': 'fuzzy-finder:toggle-buffer-finder' 'ctrl-.': 'fuzzy-finder:find-under-cursor' 'meta-B': 'fuzzy-finder:toggle-git-status-finder'
'body': 'meta-t': 'fuzzy-finder:toggle-file-finder' 'meta-p': 'fuzzy-finder:toggle-file-finder' 'meta-b': 'fuzzy-finder:toggle-buffer-finder' 'ctrl-.': 'fuzzy-finder:find-under-cursor' 'meta-B': 'fuzzy-finder:toggle-git-status-finder'
Add cmd-p to match sublime text's bindings
Add cmd-p to match sublime text's bindings
CoffeeScript
mit
segiddins/fuzzy-finder,toshi-saito/fuzzy-finder,Kerruba/fuzzy-finder,gvanderest/fuzzy-finder,Spy-Seth/fuzzy-finder,Kerruba/fuzzy-finder,atom/fuzzy-finder,viddo/fuzzy-finder,nielsAD/fuzzy-finder,pombredanne/fuzzy-finder,nielsAD/fuzzy-finder,Spy-Seth/fuzzy-finder,gvanderest/fuzzy-finder,segiddins/fuzzy-finder,viddo/fuzzy...
5f45361559c8d0f0e86c832fb9a450cc6c67018a
test/demo-mock.coffee
test/demo-mock.coffee
define [ 'jquery' 'mockjax' ], ($) -> $.mockjax url: '/api/me' proxy: 'data/me.json' $.mockjax url: '/api/content' proxy: 'data/content.json' $.mockjax (settings) -> # url: '/api/content/<id>' id = settings.url.match(/\/api\/content\/(.*)$/); if id return {proxy: 'data/con...
define [ 'jquery' 'mockjax' ], ($) -> $.mockjax url: '/me' proxy: 'data/me.json' $.mockjax url: '/api/content' proxy: 'data/content.json' $.mockjax (settings) -> # url: '/api/content/<id>' id = settings.url.match(/\/api\/content\/(.*)$/); if id return {proxy: 'data/content...
Update test to respond to '/me'
Update test to respond to '/me'
CoffeeScript
agpl-3.0
oerpub/github-bookeditor,oerpub/github-bookeditor,oerpub/bookish,oerpub/github-bookeditor,oerpub/bookish
c581e60e8bc2aa8685725860b51c0f661a2b2d94
lib/package-updates-status-view.coffee
lib/package-updates-status-view.coffee
_ = require 'underscore-plus' {View} = require 'atom-space-pen-views' module.exports = class PackageUpdatesStatusView extends View @content: -> @div class: 'package-updates-status-view inline-block text text-info', => @span class: 'icon icon-package' @span outlet: 'countLabel', class: 'available-upda...
_ = require 'underscore-plus' {View} = require 'atom-space-pen-views' module.exports = class PackageUpdatesStatusView extends View @content: -> @div class: 'package-updates-status-view inline-block text text-info', => @span class: 'icon icon-package' @span outlet: 'countLabel', class: 'available-upda...
Add suffix to update count
Add suffix to update count
CoffeeScript
mit
atom/settings-view
6f1abb50998b0f77b9b7e06ffcd2e5f27ebe0be1
lib/views/pull-branch-list-view.coffee
lib/views/pull-branch-list-view.coffee
git = require '../git' OutputView = require './output-view' BranchListView = require './branch-list-view' module.exports = # Extension of BranchListView # Takes the name of the remote to pull from class PullBranchListView extends BranchListView initialize: (@remote) -> git.cmd args: ['branch', ...
git = require '../git' OutputView = require './output-view' BranchListView = require './branch-list-view' module.exports = # Extension of BranchListView # Takes the name of the remote to pull from class PullBranchListView extends BranchListView initialize: (@remote) -> git.cmd args: ['branch', ...
Fix for git pull in mac
Fix for git pull in mac this fix is for git pull in mac in yosemite and older OS
CoffeeScript
mit
akonwi/git-plus,akonwi/git-plus
64c5dc9c2a4ca70df0220b70c75466074852b2b7
script.coffee
script.coffee
jQuery(document).ready -> writeanswer = (ans) -> jQuery("#answer").html(ans) answer = () -> question = jQuery("#question").val() jQuery.getJSON("/service/?question=#{question}", (data) -> writeanswer(data['answer'])) jQuery("#ask").click( (event) -> event.pr...
jQuery(document).ready -> writeanswer = (ans) -> jQuery("#answer").html(ans) answer = () -> question = jQuery("#question").val() jQuery.getJSON("/service/?question=#{question}", (data) -> writeanswer(data['answer'])) jQuery("form").submit( (event) -> eve...
Call service by intercepting form submit, not button or key presses
Call service by intercepting form submit, not button or key presses
CoffeeScript
agpl-3.0
DanielKinsman/decisive-robot
82006001c003ced689e5704e351ef00157660a48
lib/styles/index.coffee
lib/styles/index.coffee
fs = require 'fs' stylus = require 'stylus' converter = require './converter' module.exports = build: (options, callback) -> if config = options.stylus fs.readFile config.main, 'utf8', (err, source) -> config.paths ?= [] config.paths.push "#{__dirname}/../../styles" renderer ...
fs = require 'fs' stylus = require 'stylus' converter = require './converter' module.exports = build: (options, callback) -> if config = options.stylus fs.readFile config.main, 'utf8', (err, source) -> config.paths ?= [] config.paths.push "#{__dirname}/../../styles" renderer ...
Handle missing stylus node in style compilation
Handle missing stylus node in style compilation
CoffeeScript
mit
trabian/titanium-backbone,trabian/titanium-backbone,vcu/titanium-backbone,vcu/titanium-backbone
dee122423a1e9f82b1a21eff6443720b9f7b0020
app/assets/javascripts/voluntary_core_module_emberjs/router.js.coffee
app/assets/javascripts/voluntary_core_module_emberjs/router.js.coffee
VoluntaryOnEmberjs.Router.map -> @resource 'users' VoluntaryOnEmberjs.Router.reopen location: 'history'
VoluntaryOnEmberjs.Router.map -> @resource 'users' VoluntaryOnEmberjs.Router.reopen location: 'hash'
Set router location to hash.
Set router location to hash.
CoffeeScript
mit
volontariat/voluntary_core_module_emberjs,volontariat/voluntary-ember_js,volontariat/voluntary-ember_js,volontariat/voluntary_core_module_emberjs,volontariat/voluntary-ember_js,volontariat/voluntary_core_module_emberjs,volontariat/voluntary_core_module_emberjs,volontariat/voluntary-ember_js
d48aa6deaee0beb09453486fddf2689a1678951f
public/javascripts/game.photography.coffee
public/javascripts/game.photography.coffee
jQuery(document).ready -> class photographyGame constructor: (@debug, @map) -> init: () -> return
jQuery(document).ready -> class photographyGame constructor: (@debug, @map) -> init: () -> class location constructor: (@position, @name, @icon) -> @marker addTo: (map) -> if @icon marker = new google.maps.Marker({ position: @position, map: map, i...
Add location and player classes
Add location and player classes
CoffeeScript
mit
STAB-Inc/Bygone,STAB-Inc/Bygone,STAB-Inc/Bygone
345bc59238d47600d623dc158ca644a17dc7b1d3
app/assets/javascripts/angular/controllers/member_ctrl.js.coffee
app/assets/javascripts/angular/controllers/member_ctrl.js.coffee
angular.module("hubud") .controller "MemberCtrl", ($scope, $state, Restangular) -> Restangular.one("members", $state.params.id).get().then (response) -> $scope.member = response Restangular.all("devices/types").getList().then (response) -> $scope.deviceTypes = response # Add device input ...
angular.module("hubud") .controller "MemberCtrl", ($scope, $state, $http, Restangular) -> Restangular.one("members", $state.params.id).get().then (response) -> $scope.member = response Restangular.all("devices/types").getList().then (response) -> $scope.deviceTypes = response # Add device i...
Add support for adding devices.
Add support for adding devices.
CoffeeScript
mit
lostboy/member-device-manager,hubud/member-device-manager,lostboy/member-device-manager
6b54fd5cd965bd7568d756ca7e68fc1b59189705
build/tasks/bootstrap-atom.coffee
build/tasks/bootstrap-atom.coffee
cp = require '../../script/utils/child-process-wrapper.js' workDir = null module.exports = (grunt) -> grunt.registerTask 'bootstrap-atom', 'Bootstraps Atom', -> done = @async() process.chdir(grunt.config.get('workDir')) cp.safeExec 'node script/bootstrap --no-quiet', -> done()
cp = require '../../script/utils/child-process-wrapper.js' workDir = null module.exports = (grunt) -> grunt.registerTask 'bootstrap-atom', 'Bootstraps Atom', -> done = @async() process.chdir(grunt.config.get('workDir')) cp.safeSpawn 'node script/bootstrap --no-quiet', -> done()
Use spawn instead of exec
Use spawn instead of exec
CoffeeScript
apache-2.0
spark/particle-dev
fc8d3ac3ece09cc117ceeb514190cfc1d36afd29
app/assets/javascripts/models/farm.coffee
app/assets/javascripts/models/farm.coffee
class window.Farm constructor: (@name) -> @points = [] addPoint: (point) -> @points.push(point) removePoint: -> @points.pop() submitPoints: -> @throwIfInvalidGeom() @setLastPointToFirstPoint() console.log "Submitting polygon:" console.log @points query = @buildInsertQuery() ...
class window.Farm constructor: (@name) -> @points = [] addPoint: (point) -> @points.push(point) removePoint: -> @points.pop() submitPoints: -> @throwIfInvalidGeom() @setLastPointToFirstPoint() console.log "Submitting polygon:" console.log @points query = @buildInsertQuery() ...
Fix inevitable sending of lat lng in wrong order
Fix inevitable sending of lat lng in wrong order
CoffeeScript
mit
onlyjsmith/thats-my-park,onlyjsmith/thats-my-park
a0bc01b66a65c0483f1a2e5941c950831347403c
scripts/xcode-server.coffee
scripts/xcode-server.coffee
# Description # Notifies based on the results of xcode builds and controls xcode builds # # Dependencies # None # # Configuration # None # # Commands: # hubot build <bot name> - Start a build for bot named <bot name> UNIMPLEMENTED # # Author: # bmnick url = require('url') querystring = require('querystring')...
# Description # Notifies based on the results of xcode builds and controls xcode builds # # Dependencies # None # # Configuration # None # # Commands: # hubot build <bot name> - Start a build for bot named <bot name> UNIMPLEMENTED # # Author: # bmnick url = require('url') querystring = require('querystring')...
Switch to a get request as it should have been
Switch to a get request as it should have been
CoffeeScript
mit
brandnetworks/our-product-slack-hubot
985344c0d74edfb3c138525213d336e670048236
services/web/app/coffee/infrastructure/Features.coffee
services/web/app/coffee/infrastructure/Features.coffee
Settings = require 'settings-sharelatex' module.exports = Features = externalAuthenticationSystemUsed: -> Settings.ldap? or Settings.saml? or Settings.overleaf?.oauth? hasFeature: (feature) -> switch feature when 'homepage' return Settings.enableHomepage when 'registration' return not Features.ext...
Settings = require 'settings-sharelatex' module.exports = Features = externalAuthenticationSystemUsed: -> Settings.ldap? or Settings.saml? or Settings.overleaf?.oauth? hasFeature: (feature) -> switch feature when 'homepage' return Settings.enableHomepage when 'registration' return not Features.ext...
Use redirect setting instead of re-using setting that coincidentally would be flipped on the same day
Use redirect setting instead of re-using setting that coincidentally would be flipped on the same day
CoffeeScript
agpl-3.0
sharelatex/sharelatex
f77e049bf7b3eb325c21869bc7baede3d62b5e3c
server/index.coffee
server/index.coffee
Messages = new Meteor.Collection('messages') irc = Meteor.require 'irc' clients = {} Meteor.publish 'channel', (channel, nick) -> if channel && nick listen channel, nick Messages.find(channel : channel) listen = (channel, nick) -> console.log(channel, nick) client = clients[nick] = new irc.C...
Messages = new Meteor.Collection('messages') irc = Meteor.require 'irc' clients = {} Meteor.publish 'channel', (channel, nick) -> if channel && nick listen channel, nick Messages.find(channel : channel) listen = (channel, nick) -> console.log(channel, nick) client = clients[nick] = new irc.C...
Fix writing messages to database
Fix writing messages to database
CoffeeScript
mit
alFReD-NSH/cool-irc
caad50d643382a108409012e260905e0b3a76bcb
atom.cson
atom.cson
"*": editor: fontFamily: "Fira Mono OT" showIndentGuide: true tabLength: 2 softWrap: true invisibles: {} zoomFontWhenCtrlScrolling: false nonWordCharacters: "^*\"`'/|\\?!;:,.%#@(){}[]<>=+~_" core: disabledPackages: [ "language-objective-c" "archive-view" "autosave" ...
"*": editor: fontFamily: "Fira Mono OT" showIndentGuide: true tabLength: 2 softWrap: true invisibles: {} zoomFontWhenCtrlScrolling: false nonWordCharacters: "^*\"`'/|\\?!;:,.%#@(){}[]<>=+-~_" core: disabledPackages: [ "language-objective-c" "archive-view" "autosave"...
Fix word separation in Atom
Fix word separation in Atom
CoffeeScript
mit
ai/environment,ai/environment
7ad15ba1578fd6fd4d4aa3cc86a2c02e0dc2efb5
src/adapters.coffee
src/adapters.coffee
# The default `.` adapter thats comes with Rivets.js. Allows subscribing to # properties on POJSOs, implemented in ES5 natives using # `Object.defineProperty`. Rivets.adapters['.'] = id: '_rv' counter: 0 weakmap: {} subscribe: (obj, keypath, callback) -> unless obj[@id]? obj[@id] = @counter++ @...
# The default `.` adapter thats comes with Rivets.js. Allows subscribing to # properties on POJSOs, implemented in ES5 natives using # `Object.defineProperty`. Rivets.adapters['.'] = id: '_rv' counter: 0 weakmap: {} subscribe: (obj, keypath, callback) -> unless obj[@id]? id = @counter++ Object...
Define the _rv object id as a non-enumerable, non-configurable, non-writable property on the object.
Define the _rv object id as a non-enumerable, non-configurable, non-writable property on the object.
CoffeeScript
mit
mikeric/rivets,re-clone/rivets,zongkelong/rivets,zongkelong/rivets,re-clone/rivets,nopnop/rivets,zongkelong/rivets,MishaMykhalyuk/rivets,mikeric/rivets,MishaMykhalyuk/rivets,MishaMykhalyuk/rivets,kangax/rivets,QAPInt/rivets,nopnop/rivets,jccazeaux/rivets,jccazeaux/rivets,altmind/rivets,GerHobbelt/rivets,mikeric/rivets,...
60cae5036f50c74b098c0a121710688514f9d8f2
src/cli/cmdz/openssl.coffee
src/cli/cmdz/openssl.coffee
vfilter = require '../vfilter' exports.t = 'Install OpenSSL utility' exports._ = "#{vfilter.$6} [.]" exports.h = """ Install openssl.exe precompiled for Node.js project """ # Node.js v0.*.* contains OpenSSL binary exports.$ = (args)-> force = period args remote = vfilter [0] .last() unless remote ...
vFilter = require '../vfilter' exports.t = 'Install OpenSSL utility' exports._ = "#{vFilter.$6} [.]" exports.h = """ Install openssl.exe precompiled for Node.js project """ # Node.js v0.*.* contains OpenSSL binary exports.$ = (args)-> force = period args remote = vfilter [0] .last() unless remote ...
Fix for both vfilter syntax in OpenSSL
Fix for both vfilter syntax in OpenSSL
CoffeeScript
isc
ukoloff/nvms
08c480e5be9c1dec2a5daa54367f8bd5a575f77f
src/buildbot.coffee
src/buildbot.coffee
fs = require('fs') request = require('request') unzip = require('unzip') getURL = (filename) -> baseurl = 'http://buildbot.libretro.com/' if process.platform == 'win32' if process.arch == 'ia32' baseurl += 'nightly/win-x86/latest' else if process.arch == 'x64' baseurl += 'nightly/win-x86_64/lat...
os = require('os') fs = require('fs') request = require('request') unzip = require('unzip') getURL = (filename) -> baseurl = 'http://buildbot.libretro.com/' if process.platform == 'win32' if process.arch == 'ia32' baseurl += 'nightly/win-x86/latest' else if process.arch == 'x64' baseurl += 'nig...
Use temp directory for core download.
Use temp directory for core download.
CoffeeScript
mit
matthewbauer/x-retro,bposdude/game-player,matthewbauer/x-game,bposdude/game-player,matthewbauer/gametime-player,MixtapeIsFire/pokemonsave,MixtapeIsFire/pokemonsave,matthewbauer/x-retro,matthewbauer/x-game,bposdude/game-player,matthewbauer/x-game,matthewbauer/x-retro,matthewbauer/x-retro,matthewbauer/gametime-player
39d82974dbbc887b8d26ced24340817dfbaa1e9d
src/dnsimple.coffee
src/dnsimple.coffee
# Description: # Domain availability via DNSimple. # # Dependencies: # None # # Configuration: # DNSIMPLE_USERNAME # DNSIMPLE_PASSWORD # # Commands: # check domain <domainname> - returns whether a domain is available # # Author: # jonmagic module.exports = (robot) -> robot.hear /check domain (.*)/i, (msg...
# Description: # Domain availability via DNSimple. # # Dependencies: # None # # Configuration: # DNSIMPLE_USERNAME # DNSIMPLE_API_TOKEN # # Commands: # check domain <domainname> - returns whether a domain is available # # Author: # jonmagic dnsimpleToken = new Buffer(process.env.DNSIMPLE_USERNAME + ':' + p...
Use the API token instead of the plain password
Use the API token instead of the plain password It will also prevent issues with 2FA.
CoffeeScript
mit
aetrion/hubot-dnsimple
6e1b9927aa4b877e6303b02242e7f152e582808c
lib/builder.coffee
lib/builder.coffee
_ = require 'underscore-plus' path = require 'path' module.exports = class Builder constructor: -> @envPathKey = switch process.platform when 'win32' then 'Path' else 'PATH' run: (args, callback) -> undefined constructArgs: (filePath) -> undefined parseLogFile: (texFilePath) -> undefined co...
_ = require 'underscore-plus' path = require 'path' module.exports = class Builder constructor: -> @envPathKey = switch process.platform when 'win32' then 'Path' else 'PATH' run: (args, callback) -> undefined constructArgs: (filePath) -> undefined parseLogFile: (texFilePath) -> undefined co...
Add support for MiKTeX 2.9
Add support for MiKTeX 2.9
CoffeeScript
mit
WoodyWoodsta/atom-latex,thomasjo/atom-latex,thomasjo/atom-latex,WoodyWoodsta/atom-latex,thomasjo/atom-latex
7bfa06392ccfa1f8a584d1520e4b48160da68608
app/assets/javascripts/ember_cart/ember/models/cart_item.js.coffee
app/assets/javascripts/ember_cart/ember/models/cart_item.js.coffee
EmberCart.CartItem = DS.Model.extend cartable_id: DS.attr('number') cartable_type: DS.attr('string') name: DS.attr('string') price: DS.attr('money') quantity: DS.attr('number') cart: DS.belongsTo('EmberCart.Cart') parent: DS.belongsTo('EmberCart.CartItem') children: DS.hasMany('EmberCart.CartItem', key:...
EmberCart.CartItem = DS.Model.extend cartable_id: DS.attr('number') cartable_type: DS.attr('string') name: DS.attr('string') price: DS.attr('money') quantity: DS.attr('number') cart: DS.belongsTo('EmberCart.Cart') parent: DS.belongsTo('EmberCart.CartItem') children: DS.hasMany('EmberCart.CartItem', key:...
Check the existance of the child
Check the existance of the child
CoffeeScript
mit
menglifang/ember-cart,menglifang/ember-cart
18775869f69692546046b711c049c6db301e81a6
src/scripts/ids.coffee
src/scripts/ids.coffee
define (require, exports, module) -> {dev} = require 'zooniverse/config' module.exports = if dev project: 'bat_detective' workflow: '4fa0321854558f2fbf000003' tutorialSubject: '4ff8306854558fc372000001' else project: 'bat_detective' workflow: '4fff25b6516bcb41e7000002' tutorialSubject: 'T...
define (require, exports, module) -> {dev} = require 'zooniverse/config' module.exports = if dev project: 'bat_detective' workflow: '4fa0321854558f2fbf000003' tutorialSubject: '4ff8306854558fc372000001' else project: 'bat_detective' workflow: '4fff25b6516bcb41e7000002' tutorialSubject: '5...
Set beta tutorial subject ID
Set beta tutorial subject ID
CoffeeScript
apache-2.0
powolnymarcel/Bat-Detective,zooniverse/Bat-Detective,powolnymarcel/Bat-Detective,powolnymarcel/Bat-Detective,zooniverse/Bat-Detective,zooniverse/Bat-Detective
6e5df4bc955ccb5673eb89b0b86fa66b115938d4
options.coffee
options.coffee
# Core settings settings = port: 9000 # Source and Destination source = {} source.baseDir = 'frontend/src' source.scriptDir = "#{source.baseDir}/script" source.jsShimDir = "#{source.baseDir}/js-shim" source.jsDir = "#{source.baseDir}/js" source.sassDir = "#{source.baseDir}/sass" source.lessDir = "#{source.baseD...
# Core settings settings = port: 9000 # Source and Destination source = {} source.baseDir = 'frontend/src' source.scriptDir = "#{source.baseDir}/script" source.jsShimDir = "#{source.baseDir}/js-shim" source.jsDir = "#{source.baseDir}/js" source.sassDir = "#{source.baseDir}/sass" source.lessDir = "#{source.baseD...
Correct destination path for build to reflect docker name
Correct destination path for build to reflect docker name
CoffeeScript
mit
smysnk/saddlewoof,smysnk/saddlewoof,smysnk/saddlewoof,smysnk/saddlewoof
ab1dcc48edc3b747e5db7083d6b7be1337bb1a94
lib/background-tips.coffee
lib/background-tips.coffee
BackgroundTipsView = require './background-tips-view' module.exports = activate: -> @backgroundTipsView = new BackgroundTipsView() deactivate: -> @backgroundTipsView.detach()
BackgroundTipsView = require './background-tips-view' module.exports = activate: -> @backgroundTipsView = new BackgroundTipsView() deactivate: -> @backgroundTipsView.remove()
Remove instead of detach on deactivate
Remove instead of detach on deactivate
CoffeeScript
mit
atom/background-tips
f42ebed5170a9b4982b0cd7b547f799120ac567c
src/csonc.coffee
src/csonc.coffee
path = require 'path' _ = require 'underscore' CSON = require './cson' module.exports = (argv=[]) -> [inputFile, outputFile] = argv if inputFile?.length > 0 inputFile = path.resolve(process.cwd(), inputFile) else console.error("Input file must be first argument") process.exit(1) return if out...
path = require 'path' _ = require 'underscore' CSON = require './cson' module.exports = (argv=[]) -> [inputFile, outputFile] = argv if inputFile?.length > 0 inputFile = path.resolve(process.cwd(), inputFile) else console.error("Input file must be first argument") process.exit(1) return if out...
Include error message in output
Include error message in output
CoffeeScript
mit
soldair/season,mdekstrand/cson-sort,atom/season
0657e8d0dfe89fde9f97bd4ff16eca69a18184a3
lib/gazedata.coffee
lib/gazedata.coffee
_ = require 'underscore' Point2D = require './point2d' class Frame constructor: (data)-> @data = data @timestampString = data.timestamp @timestamp = data.time @state = data.state @raw = @rawCoordinates = new Point2D(data.raw) @avg = @smoothedCoordinates = new Point2D(data.avg) @leftEye...
_ = require 'underscore' Point2D = require './point2d' class Frame @STATE_TRACKING_GAZE = 1 @STATE_TRACKING_EYES = 1 << 1 @STATE_TRACKING_PRESENCE = 1 << 2 @STATE_TRACKING_FAIL = 1 << 3 @STATE_TRACKING_LOST = 1 << 4 constructor: (data)-> @data = data @timestampString = data.timestamp @timesta...
Add constants of tracker statuses to class Frame
Add constants of tracker statuses to class Frame
CoffeeScript
mit
kzokm/eyetribe-websocket
bfe9524ffed6d64e85d361589564fc3f0e7054af
lib/grammars.coffee
lib/grammars.coffee
# Maps Atom Grammar names to the interpreter used by that language # As well as any special setup for arguments. module.exports = CoffeeScript: interpreter: "coffee" makeargs: (code) -> ['-e', code] JavaScript: interpreter: "node" makeargs: (code) -> ['-e', code] Ruby: interpreter: "ruby" ...
# Maps Atom Grammar names to the command used by that language # As well as any special setup for arguments. defaultFileArgs = (filename) -> [filename] module.exports = CoffeeScript: command: "coffee" bySelectionArgs: (code) -> ['-e', code] byFileArgs: defaultFileArgs JavaScript: command: "node" ...
Set up selection vs. file args.
Set up selection vs. file args.
CoffeeScript
mit
efatsi/atom-script,rodionovd/atom-script,idleberg/atom-script,rgbkrk/atom-script,Calyhre/atom-script,jchannon/atom-script,rodionovd/atom-script,anfedorov/atom-script,efatsi/atom-script,efatsi/atom-script,anfedorov/atom-script,rodionovd/atom-script,jchannon/atom-script,rodionovd/atom-script,anfedorov/atom-script,jchanno...
757e22c5be5aa4be39f9ebb75e61258ec04f47ba
src/templates.coffee
src/templates.coffee
fs = require 'fs' jade = require 'jade' path = require './utils/path-from-home' jsonFile = require './utils/json-file' error = require './utils/error' module.exports = save: -> jsonFile.write TEMPLATES_FILE, TEMPLATES getCompiled: (name) -> compile resolvePaths findTemplate name show: ...
fs = require 'fs' jade = require 'jade' path = require './utils/path-from-home' jsonFile = require './utils/json-file' error = require './utils/error' module.exports = save: -> jsonFile.write TEMPLATES_FILE, TEMPLATES getCompiled: (name) -> compile resolvePaths findTemplate name show: ...
Print paths to template files for template show action
Print paths to template files for template show action
CoffeeScript
mit
dp28/layer,dp28/layer
3b19b4359ed679442a6009553efd9abaad169c65
spec/apm-cli-spec.coffee
spec/apm-cli-spec.coffee
fs = require 'fs' apm = require '../lib/apm-cli' describe 'apm command line interface', -> describe 'when no arguments are present', -> it 'prints a usage message', -> spyOn(console, 'log').andCallThrough() spyOn(console, 'error') apm.run([]) expect(console.log).not.toHaveBeenCalled() ...
fs = require 'fs' apm = require '../lib/apm-cli' describe 'apm command line interface', -> describe 'when no arguments are present', -> it 'prints a usage message', -> spyOn(console, 'log').andCallThrough() spyOn(console, 'error') apm.run([]) expect(console.log).not.toHaveBeenCalled() ...
Add spec for unrecognized command
Add spec for unrecognized command
CoffeeScript
mit
VandeurenGlenn/apm,bronson/apm,AtaraxiaEta/apm,bronson/apm,VandeurenGlenn/apm,atom/apm,ethanp/apm,jlord/apm,bcoe/apm,Nikpolik/apm,fscherwi/apm,VandeurenGlenn/apm,jlord/apm,bcoe/apm,AtaraxiaEta/apm,bcoe/apm,pusateri/apm,fscherwi/apm,atom/apm,VandeurenGlenn/apm,fscherwi/apm,ethanp/apm,gutsy/apm,gutsy/apm,AtaraxiaEta/apm,...
63f9aed1f4b6ade6197e68e335945a82606a93d5
src/coffee/engine.coffee
src/coffee/engine.coffee
angular.module 'qbn.engine', ['qbn.quality', 'qbn.storylet', 'qbn.choice', 'qbn.resolve'] .controller 'QbnEngine', ($scope, qualities, storylets, frontalChoices, choiceFactory, resolveFilter) -> $scope.qualities = qualities.getAll() updateFrontalChoices = () -> $scope.choices = frontalChoices...
angular.module 'qbn.engine', ['qbn.quality', 'qbn.storylet', 'qbn.choice', 'qbn.resolve'] .controller 'QbnEngine', ($scope, qualities, storylets, frontalChoices, choiceFactory, resolveFilter) -> $scope.qualities = qualities.getAll() updateFrontalChoices = () -> $scope.choices = frontalChoices...
Fix Bug in Onwards Concatenation
Fix Bug in Onwards Concatenation
CoffeeScript
unlicense
arashikou/exper3-2015
9ca742d481be7284b3da13b929bed82fe5cee1bb
angular/core/services/record_loader.coffee
angular/core/services/record_loader.coffee
angular.module('loomioApp').factory 'RecordLoader', (Records) -> class RecordLoader constructor: (opts = {}) -> @loadingFirst = true @collection = opts.collection @params = opts.params or {from: 0, per: 25, order: 'id'} @path = opts.path @numLoaded = opts.numLoaded or 0 ...
angular.module('loomioApp').factory 'RecordLoader', (Records) -> class RecordLoader constructor: (opts = {}) -> @loadingFirst = true @collection = opts.collection @params = _.merge({from: 0, per: 25, order: 'id'}, opts.params) @path = opts.path @numLoaded = opts.numLoaded ...
Fix load more on polls
Fix load more on polls
CoffeeScript
agpl-3.0
loomio/loomio,loomio/loomio,loomio/loomio,piratas-ar/loomio,piratas-ar/loomio,piratas-ar/loomio,piratas-ar/loomio,loomio/loomio
1c9dc9b361c9e4c5099ac16e7a6ce0d30bee01af
app/assets/javascripts/organization.coffee
app/assets/javascripts/organization.coffee
window.addAddressRow = -> count = $("[id^='organization_addresses_attributes']:text").length newRow = $ """ <div class="form-group"> <label for="organization_addresses_attributes_#{count}_address">Mailing Address</label> <input class="form-control" data-guard="different" type="text" value="" name="orga...
window.addAddressRow = -> count = $("[id^='organization_addresses_attributes']:text").length newRow = $ """ <div class="form-group"> <label for="organization_addresses_attributes_#{count}_address">Mailing Address</label> <input class="form-control" data-guard="different" type="text" value="" name="orga...
Remove hidden field and unneeded argument count
Remove hidden field and unneeded argument count
CoffeeScript
mit
on-site/StockAid,on-site/StockAid,on-site/StockAid
bb606f3d86753ef6395e777a12c11b16c132012d
Gruntfile.coffee
Gruntfile.coffee
module.exports = (grunt) -> grunt.initConfig pkg: '<json:package.json>' coffee: client: expand: true cwd: 'src' src: ['*.coffee'] dest: 'static/js/' ext: '.js' server: expand: true...
module.exports = (grunt) -> grunt.initConfig pkg: '<json:package.json>' coffee: client: expand: true cwd: 'src' src: ['*.coffee'] dest: 'static/js/' ext: '.js' server: expand: true...
Make grunt watch .less files
Make grunt watch .less files
CoffeeScript
agpl-3.0
City-of-Helsinki/servicemap,Zeukkari/servicemap,vaaralav/servicemap,City-of-Helsinki/servicemap,vaaralav/servicemap,vaaralav/servicemap,Zeukkari/servicemap,City-of-Helsinki/servicemap
9de71a1277f34aa753290d50ce4d7bba95942b67
src/scripts/oblique.coffee
src/scripts/oblique.coffee
# Description: # Display an oblique strategy # # Dependencies: # None # # Configuration: # None # # Commands: # hubot strategy - Returns an oblique strategy # # Author: # hakanensari module.exports = (robot) -> robot.respond /\W*(?:an? )?(?:oblique )?strategy\??$/i, (msg) -> msg.http('http://oblique.io...
# Description: # Suggests an oblique strategy # # Dependencies: # None # # Configuration: # None # # Commands: # hubot strategy - Suggests a strategy # hubot a strategy for <user> - Suggests a strategy to user # # Notes: # You can be as verbose as you want as long as you address Hubot and mention # the wo...
Allow Hubot to suggest strategies to others, in multiple ways
Allow Hubot to suggest strategies to others, in multiple ways
CoffeeScript
mit
davidsulpy/hubot-scripts,ambikads/hubot-scripts,modulexcite/hubot-scripts,jankowiakmaria/hubot-scripts,contolini/hubot-scripts,jan0sch/hubot-scripts,ryantomlinson/hubot-scripts,Ev1l/hubot-scripts,GrimDerp/hubot-scripts,chauffer/hubot-scripts,yigitbey/hubot-scripts,ericjsilva/hubot-scripts,zecahnin/hubot-scripts,dbkaplu...
805326361bc8f2e6cc53c33a03b3eb7bb7de8fd3
src/snippets-reader.coffee
src/snippets-reader.coffee
eval("window = {};") eval("console = {};") console.warn = -> self.postMessage type: 'warn' details: arguments console.log = -> self.postMessage type: 'warn' details: arguments eval("attachEvent = function(){};") self.addEventListener 'message', (event) -> switch event.data.type when 'start' ...
module.exports = loadTextmateSnippets: ({path}) -> fs = require 'fs' snippetsDirPath = fs.join(path, 'Snippets') snippets = fs.list(snippetsDirPath).map (snippetPath) -> fs.readPlist(snippetPath) self.postMessage type: 'loadSnippets' snippets: snippets loadAtomSnippets: ({path}) -...
Create task shell that bootstraps worker
Create task shell that bootstraps worker
CoffeeScript
mit
lpommers/snippets,bengy/snippets,atom/snippets,syndbg/snippets,terrycloth/atom-snippets
528b81dfd1bcbca8891026c55113524d6b76e02f
src/flux/ecosystems.coffee
src/flux/ecosystems.coffee
_ = require 'underscore' flux = require 'flux-react' LOADING = 'loading' FAILED = 'failed' EcosystemsActions = flux.createActions [ 'load' 'loaded' 'FAILED' ] EcosystemsStore = flux.createStore actions: _.values(EcosystemsActions) _asyncStatus: null load: -> # Used by API @_asyncStatus = LOADING ...
_ = require 'underscore' flux = require 'flux-react' LOADING = 'loading' FAILED = 'failed' EcosystemsActions = flux.createActions [ 'load' 'loaded' 'FAILED' ] EcosystemsStore = flux.createStore actions: _.values(EcosystemsActions) _asyncStatus: null load: -> # Used by API @_asyncStatus = LOADING ...
Add ecosystem comments to book object
Add ecosystem comments to book object
CoffeeScript
agpl-3.0
openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js
22e4c07d9208f0bc8402e620dc62aef618611fe7
shared/accountButtons.coffee
shared/accountButtons.coffee
Handlebars.registerHelper( "accountButtons", -> return new Handlebars.SafeString(Template.entryAccountButtons()) ) Template.entryAccountButtons.helpers profileUrl: -> return false unless AccountsEntry.settings.profileRoute Router.path(AccountsEntry.settings.profileRoute) wrapLinks: -> Accounts...
Handlebars.registerHelper "accountButtons", -> return new Handlebars.SafeString(Template.entryAccountButtons()) Template.entryAccountButtons.helpers profileUrl: -> return false unless AccountsEntry.settings.profileRoute AccountsEntry.settings.profileRoute wrapLinks: -> AccountsEntry.settings.wra...
Fix bug - routes are now paths not route names
Fix bug - routes are now paths not route names
CoffeeScript
mit
mauriciovieira/accounts-entry,timmyg/accounts-entry,valedaemon/accounts-entry,Noamyoungerm/accounts-entry,txs/meteor-wecare-accounts-entry-flow-blaze,valedaemon/accounts-entry,jpatzer/accounts-entry,Vilango/accounts-entry,txs/meteor-wecare-accounts-entry-flow-blaze-global,jpatzer/accounts-entry,ChipCastleDotCom/account...
010bae8cf2823204a59a7af6914f65e3ed892538
lib/git-write.coffee
lib/git-write.coffee
{BufferedProcess} = require 'atom' StatusView = require './status-view' # if all param true, then 'git add .' gitWrite = (all=false)-> dir = atom.project.getRepo().getWorkingDirectory() currentFile = atom.workspace.getActiveEditor().getPath() toStage = if all then '.' else currentFile new BufferedProcess({ ...
{BufferedProcess} = require 'atom' StatusView = require './status-view' # if all param true, then 'git add .' gitWrite = (all=false)-> dir = atom.project.getRepo().getWorkingDirectory() currentFile = atom.workspace.getActiveEditor().getPath() toStage = if all then '.' else currentFile new BufferedProcess({ ...
Change GitWrite success message to show 'all files' or filepath
Change GitWrite success message to show 'all files' or filepath
CoffeeScript
mit
akonwi/git-plus,akonwi/git-plus
486c8323841d47a0c8dfd6d690ff5e65d5aedcd8
src/scripts/views/app.cjsx
src/scripts/views/app.cjsx
React = require 'react' Router = require 'react-router' DocumentTitle = require 'react-document-title' RouteHandler = Router.RouteHandler Link = Router.Link module.exports = React.createClass render: -> title = 'Third Hand Information' <DocumentTitle title={ title }> <div className="wrapper"> <header role...
React = require 'react' Router = require 'react-router' DocumentTitle = require 'react-document-title' RouteHandler = Router.RouteHandler Link = Router.Link module.exports = React.createClass displayName: 'App' render: -> title = 'Third Hand Information' <DocumentTitle title={ title }> <div className="wrappe...
Set displayName on App for prettier debugging.
Set displayName on App for prettier debugging.
CoffeeScript
mit
thirdhand/3rdhand.info,thirdhand/3rdhand.info
45f6ee28b89560b79a2a3505b0748eb5f04abebc
coffee/cilantro/models/concept.coffee
coffee/cilantro/models/concept.coffee
define ['../core', './field'], (c, field) -> class ConceptModel extends Backbone.Model parse: (resp) -> @fields = [] # Parse and attach field model instances to concept for attrs in resp.fields @fields.push(new field.FieldModel attrs, parse: true) ...
define ['../core', './field'], (c, field) -> class ConceptModel extends c.Backbone.Model parse: (resp) -> @fields = [] # Parse and attach field model instances to concept for attrs in resp.fields @fields.push(new field.FieldModel attrs, parse: true) ...
Fix missing reference to cilantro namespace
Fix missing reference to cilantro namespace
CoffeeScript
bsd-2-clause
chop-dbhi/cilantro,chop-dbhi/cilantro,chop-dbhi/cilantro
a2a658711251e6dddec597cd3196fa679d2ea562
lib/main.coffee
lib/main.coffee
Whitespace = require './whitespace' module.exports = configDefaults: removeTrailingWhitespace: true ignoreWhitespaceOnCurrentLine: true ignoreWhitespaceOnlyLines: false ensureSingleTrailingNewline: true activate: -> @whitespace = new Whitespace() deactivate: -> @whitespace?.destroy() ...
Whitespace = require './whitespace' module.exports = config: removeTrailingWhitespace: type: 'boolean' default: true scopes: '.source.jade': default: false ignoreWhitespaceOnCurrentLine: type: 'boolean' default: true ignoreWhitespaceOnlyLines: type: '...
Convert configDefaults into config schema
Convert configDefaults into config schema Default jade to removeWhitespace: false
CoffeeScript
mit
atom/whitespace
265320be4e3430cb612c6ca415172cd4efb7c23d
assets/index.coffee
assets/index.coffee
#= require ./vendor/qunit QUnit.config.hidepassed = true QUnit.config.testTimeout = 5000 QUnit.begin (suiteDetails) -> Blade.suiteDidBegin(suiteDetails) failedAssertions = [] QUnit.testStart (testDetails) -> failedAssertions = [] QUnit.log (assertionDetails) -> unless assertionDetails.result failedAssert...
#= require ./vendor/qunit QUnit.config.hidepassed = true QUnit.config.testTimeout = 5000 QUnit.begin (suiteDetails) -> total = suiteDetails.totalTests Blade.suiteDidBegin({total}) failedAssertions = [] QUnit.testStart (testDetails) -> failedAssertions = [] QUnit.log (assertionDetails) -> unless assertionDe...
Fix "total", set "status" not "pass"
Fix "total", set "status" not "pass"
CoffeeScript
mit
javan/blade_runner-qunit_adapter,javan/blade-qunit_adapter,javan/blade-qunit_adapter,javan/blade_runner-qunit_adapter,javan/blade-qunit_adapter,javan/blade_runner-qunit_adapter
a483232ebf9f993075dc12287b9fe3bc69de1996
lib/index.coffee
lib/index.coffee
window.bone = {} eventSplitter = /^(\S+)\s*(.*)$/ setupEvent = (eventName, rootSelector, selector, action) -> bone.view = (selector, options) -> view = {} events = options.events for eventSelector, functionName of events continue if functionName is 'events' do (eventSelector, functionNa...
window.bone = {} eventSplitter = /^(\S+)\s*(.*)$/ setupEvent = (eventName, rootSelector, selector, action) -> bone.view = (selector, options) -> view = {} events = options.events for eventSelector, functionName of events continue if functionName is 'events' do (eventSelector, functionNa...
Move ready function into view.
Move ready function into view.
CoffeeScript
mit
techpines/bone.io,robomc/bone.io,robomc/bone.io
9ae1d39ecfa2c9b28e8bd9b642e56d276a8ea295
src/JournalStore.coffee
src/JournalStore.coffee
noflo = require 'noflo' class IDBJournalStore extends noflo.journal.JournalStore constructor: (graph, @db) -> super graph @transactions = [] genKey: (revId) -> "#{@graph.properties.id}_#{revId}" putTransaction: (revId, entries) -> @lastRevision = revId if revId > @lastRevision trans = @db.trans...
noflo = require 'noflo' class IDBJournalStore extends noflo.journal.JournalStore constructor: (graph, @db) -> super graph @transactions = [] genKey: (revId) -> "#{@graph.properties.id}_#{revId}" putTransaction: (revId, entries) -> super revId, entries trans = @db.transaction ['journals'], 'rea...
Call parent to get events going for journal activities
Call parent to get events going for journal activities
CoffeeScript
mit
lxfschr/noflo-ui,flyboarder/noflo-ui,rasata/noflo-ui,oportocala/noflo-ui,lxfschr/noflo-ui,taylorzane/noflo-ui,noflo/noflo-ui,rdf-pipeline/noflo-server,rasata/noflo-ui,taylorzane/noflo-ui,rdf-pipeline/noflo-server,noflo/noflo-ui,oportocala/noflo-ui
0e725270cf7f002b3c670ebc7c6800b9e43f7b8d
src/ui/entry/entry.coffee
src/ui/entry/entry.coffee
entryModule = angular.module("entertain.io.app.entry", []) .controller 'EntryCtrl', ['$scope', '$http' ($scope, $http) -> $scope.entries = [] socket = io() $scope.userAmount = 0 $scope.yeah = -> socket.emit 'yeah', "foobar" false socket.on 'userAmount', (msg) -> $scope.userA...
entryModule = angular.module("entertain.io.app.entry", []) .controller 'EntryCtrl', ['$scope', '$http' ($scope, $http) -> $scope.entries = [] socket = io() $scope.updateFeed = -> socket.emit 'updateFeed' false socket.on 'feedUpdate', (feeds) -> $scope.entries.push feeds $sc...
Update Client-Logic (recieve feeds fromt the server)
Update Client-Logic (recieve feeds fromt the server)
CoffeeScript
mit
sm0k1nggnu/entertain.io
50b95e5d2a5f093d4f1894cc3853f2f8144036c2
test/lib/when-test.coffee
test/lib/when-test.coffee
describe 'when', -> Given -> @when = requireSubject('lib/when') Given -> @create = requireSubject('lib/create') describe 'unconditional stubbing', -> Given -> @testDouble = @create() context 'foo', -> Given -> @when(@testDouble()).thenReturn("foo") Then -> @testDouble() == "foo" context '...
describe 'when', -> Given -> @when = requireSubject('lib/when') Given -> @create = requireSubject('lib/create') describe 'unconditional stubbing', -> Given -> @testDouble = @create() context 'foo', -> Given -> @when(@testDouble()).thenReturn("foo") Then -> @testDouble() == "foo" context '...
Add some complexities to the conditional stubbing
Add some complexities to the conditional stubbing
CoffeeScript
mit
testdouble/testdouble.js,testdouble/testdouble.js,testdouble/testdouble.js
4c0b60c0288c76fabc5eb232b7eb20be5ef5fdf3
client/ide/routes.coffee
client/ide/routes.coffee
do -> KD.registerRoutes 'IDE', '/:name?/IDE' : ({params:{name}, query})-> router = KD.getSingleton 'router' router.openSection 'IDE', name, query '/:name?/IDE/VM' : ({params:{name}, query})-> KD.singletons.router.handleRoute 'IDE' '/:name?/IDE/VM/:slug' : ({params:{name, slug}, query...
do -> KD.registerRoutes 'IDE', '/:name?/IDE' : ({params:{name}, query})-> router = KD.getSingleton 'router' router.openSection 'IDE', name, query '/:name?/IDE/VM/:slug' : ({params:{name, slug}, query})-> appManager = KD.getSingleton 'appManager' ideApps = appManager.appContro...
Handle route to mount VM specific filetree.
Finder: Handle route to mount VM specific filetree.
CoffeeScript
agpl-3.0
szkl/koding,drewsetski/koding,andrewjcasal/koding,alex-ionochkin/koding,rjeczalik/koding,acbodine/koding,drewsetski/koding,acbodine/koding,andrewjcasal/koding,sinan/koding,kwagdy/koding-1,gokmen/koding,mertaytore/koding,alex-ionochkin/koding,sinan/koding,koding/koding,sinan/koding,andrewjcasal/koding,usirin/koding,szkl...
e9e17dcae925fbff6ebe94c9b174b584e7fcb825
test/src/specs/app/TestHelpers.coffee
test/src/specs/app/TestHelpers.coffee
@expectRequiredParameters = (type, expectedParameterNames) -> originalType = type paramList = {} #check is this is an Abstract type if(type.isAbstract && type.isAbstract()) type = class A extends type #add the super classes parameters so that they arent in the tests if originalType.__super__ && origin...
@expectRequiredParameters = (type, expectedParameterNames) -> originalType = type paramList = {} baseExpectedParams = [] #check is this is an Abstract type if(type.isAbstract && type.isAbstract()) type = class A extends type #add the super classes parameters so that they arent in the tests if origin...
Add default test when checking Expected parameters to ensure that tests are being aware of 'required' option params
Add default test when checking Expected parameters to ensure that tests are being aware of 'required' option params
CoffeeScript
mit
jono-tt/App-Engine
4f023ee9a06e4d22be88f25cc55b1e70bd9cbfaf
src/msgflo.coffee
src/msgflo.coffee
runtime = require '../src/runtime' ## Main program = require 'commander' main = () -> program .option('--host <hostname>', 'Host', String, 'localhost') .option('--port <port>', 'Port', Number, 3569) .option('--broker <uri>', 'Broker address', String, 'amqp://localhost') .option('--ide <uri>', 'FBP ...
runtime = require '../src/runtime' ## Main program = require 'commander' main = () -> program .option('--host <hostname>', 'Host', String, 'localhost') .option('--port <port>', 'Port', Number, 3569) .option('--broker <uri>', 'Broker address', String, 'amqp://localhost') .option('--ide <uri>', 'FBP ...
Make available as public interface
utils/spy: Make available as public interface
CoffeeScript
mit
msgflo/msgflo,msgflo/msgflo,msgflo/msgflo
7527b69f849f5b30de9898cab26da115155f84fb
client/lanes/testing/BeforeEach.coffee
client/lanes/testing/BeforeEach.coffee
SYNC_RESPONSE = {} Lanes.Test.syncSucceedWith = (data) -> SYNC_RESPONSE.success = true SYNC_RESPONSE.total = data.length if _.isArray(data) SYNC_RESPONSE.data = _.cloneDeep(data) Lanes.Test.syncRespondWith = (obj) -> _.extend(SYNC_RESPONSE, obj) afterEach -> Lanes.current_user._events = @__user_e...
SYNC_RESPONSE = {} Lanes.Test.syncSucceedWith = (data) -> SYNC_RESPONSE.success = true SYNC_RESPONSE.total = data.length if _.isArray(data) SYNC_RESPONSE.data = _.cloneDeep(data) Lanes.Test.syncRespondWith = (obj) -> _.extend(SYNC_RESPONSE, obj) afterEach -> Lanes.current_user._events = @__user_e...
Reset PubSub after each spec
Reset PubSub after each spec
CoffeeScript
mit
argosity/lanes,argosity/lanes,argosity/lanes,argosity/hippo,argosity/hippo,argosity/hippo
e7a1408e9dc56d51a00b1f0ff83899057ba377c2
js/application.coffee
js/application.coffee
class App Routers: {} Models: {} Collections: {} Views: {} init: -> window.flight = new Flight() new @Routers.AppRouter Backbone.history.start() @Collections.Activities.fetch() window.app = new App ` String.prototype.trim = function() { return this.replace(/^\s+|\s+$/g, ''); }; Str...
class App Routers: {} Models: {} Collections: {} Views: {} init: -> window.flight = new Flight() new @Routers.AppRouter Backbone.history.start() @Collections.Activities.fetch() $('#menu-button').click -> flight.slideOutMenu() window.app = new App ` String.prototype.trim = fu...
Call menu on menu button click, this should be a class.
Call menu on menu button click, this should be a class.
CoffeeScript
mit
zestia/glide
975a9778479d330194cf60b38fcf3e767d7daed8
js/routers/AppRouter.coffee
js/routers/AppRouter.coffee
class AppRouter extends Backbone.Router routes: '': 'homePage' 'panel/:id': 'goToPanel' homePage: -> collection = new app.Collections.ActivityCollection @view = new app.Views.Home collection: collection collection.fetch() flight.goTo "#panel-1" goToPanel: (id)...
class AppRouter extends Backbone.Router routes: '': 'homePage' 'panel/:id': 'goToPanel' homePage: -> collection = new app.Collections.ActivityCollection @view = new app.Views.Home collection: collection collection.fetch() @view.render() flight.goTo "#panel-1" g...
Use id's to transition page instead of rendered page element.
Use id's to transition page instead of rendered page element.
CoffeeScript
mit
zestia/glide
0504e8476dbd7dc1cd8a059e40d6e7d1c354e7d7
menus/markdown-preview.cson
menus/markdown-preview.cson
'menu': [ 'label': 'Packages' 'submenu': [ 'label': 'Markdown' 'submenu': [ 'label': 'Toggle Preview' 'command': 'markdown-preview:toggle' ] ] ]
'menu': [ 'label': 'Packages' 'submenu': [ 'label': 'Markdown' 'submenu': [ 'label': 'Toggle Preview' 'command': 'markdown-preview:toggle' ] ] ] 'context-menu': '.markdown-preview': 'Save As HTML\u2026': 'core:save-as'
Add save as HTML menu
Add save as HTML menu
CoffeeScript
mit
tkssharma/markdown-preview,ArnaudRinquin/markdown-preview,rugk/markdown-preview,makyo/markdown-preview,Galadirith/markdown-preview,grimmer0125/markdown-preview-kramdown,sctlee/markdown-preview,atom/markdown-preview
03eb6eb066965801bc0c04a93db514d3af96c347
views/components/ship-parts/slotitems-data.coffee
views/components/ship-parts/slotitems-data.coffee
__ = window.i18n.data.__.bind(i18n.data) __n = window.i18n.data.__n.bind(i18n.data) types = "api_taik": "HP" "api_souk": "Armor" "api_houg": "Firepower" "api_raig": "Torpedo" "api_soku": "Speed" "api_baku": "Bombing" "api_tyku": "AA" "api_tais": "ASW" "api_houm": "Accuracy" "api_raim": "Torpedo Acc...
if window.i18n?.data? __ = window.i18n.data.__.bind(i18n.data) else path = require 'path-extra' i18n = new (require 'i18n-2') locales: ['en-US', 'ja-JP', 'zh-CN', 'zh-TW'] defaultLocale: 'zh-CN' directory: path.join ROOT, 'i18n', 'data' updateFiles: false indent: "\t" extension: '.json' ...
Add i18n when env.coffee isn't required
Add i18n when env.coffee isn't required
CoffeeScript
mit
syncsyncsynchalt/poi,dushi792/poi,nagatoyk/poi,PHELiOX/poi,yudachi/poi,PHELiOX/poi,poooi/poi,syncsyncsynchalt/poi,yudachi/poi,syncsyncsynchalt/poi,yudachi/poi,poooi/poi,KagamiChan/poi,poooi/poi,gnattu/poi,syncsyncsynchalt/poi,nagatoyk/poi,dushi792/poi,dushi792/poi,gnattu/poi,poooi/poi,KagamiChan/poi
11f0eeeb8d2c556fc2dd880572da391cbcd921fc
lib/barista_test.coffee
lib/barista_test.coffee
sys = require "sys" fs = require "fs" assert_module = require "assert" coffee = require "coffee-script" helpers = require("coffee-script/helpers").helpers # Parse our command-line arguments. test_file_paths = process.argv[1...process.argv.length] # Set up a basic test environment. This code is based on the code at #...
sys = require "sys" fs = require "fs" assert_module = require "assert" coffee = require "coffee-script" helpers = require("coffee-script/helpers").helpers # Parse our command-line arguments. test_file_paths = process.argv[1...process.argv.length] # ANSI color codes. Borrowed from # http://github.com/jashkenas/coffee...
Make cosmetic improvements to the output
Make cosmetic improvements to the output
CoffeeScript
mit
aranetic/barista_test