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
0e7bc6b8ec81984a92af708f15d935e084a04aad
atom/common/lib/asar_init.coffee
atom/common/lib/asar_init.coffee
return (process, require, asarSource) -> {createArchive} = process.binding 'atom_common_asar' # Make asar.coffee accessible via "require". process.binding('natives').ATOM_SHELL_ASAR = asarSource # Monkey-patch the fs module. require('ATOM_SHELL_ASAR').wrapFsWithAsar require('fs') # Make graceful-fs work ...
return (process, require, asarSource) -> {createArchive} = process.binding 'atom_common_asar' # Make asar.coffee accessible via "require". process.binding('natives').ATOM_SHELL_ASAR = asarSource # Monkey-patch the fs module. require('ATOM_SHELL_ASAR').wrapFsWithAsar require('fs') # Make graceful-fs work ...
Make "original-fs" available as built-in module
Make "original-fs" available as built-in module
CoffeeScript
mit
xfstudio/electron,digideskio/electron,mattdesl/electron,natgolov/electron,Zagorakiss/electron,renaesop/electron,benweissmann/electron,gbn972/electron,gamedevsam/electron,kazupon/electron,twolfson/electron,kenmozi/electron,d-salas/electron,eric-seekas/electron,mjaniszew/electron,LadyNaggaga/electron,vHanda/electron,nico...
0340294676261ce8bcb0486a3d16137282eed558
apps/user/queries/profile.coffee
apps/user/queries/profile.coffee
module.exports = """ query user($id: ID! $per: Int, $page: Int, $perBlocks: Int, $q: String) { user(id: $id) { contents(per: $per, type: "channel", page: $page, q: $q) { title updated_at(relative: true) user { name } kind { __typename ...
module.exports = """ query user($id: ID! $per: Int, $page: Int, $perBlocks: Int, $q: String, $sort: SearchSorts, $seed: Int) { user(id: $id) { contents(per: $per, type: "channel", page: $page, q: $q, sort_by: $sort, seed: $seed) { title(truncate: 50) updated_at(relative: true) us...
Truncate title for blocks and channels
Truncate title for blocks and channels
CoffeeScript
mit
aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell
d6bceefbab7423ad65ec4f594f828433e85a6ef5
atom/config.cson
atom/config.cson
"*": editor: fontFamily: "PragmataPro" showInvisibles: true showIndentGuide: true invisibles: {} fontSize: 16 core: disabledPackages: [ "autocomplete" "spell-check" ] projectHome: "/home/edgard/Documents/code" themes: [ "one-dark-ui" "one-dark-syntax" ...
"*": editor: fontFamily: "PragmataPro" showInvisibles: true showIndentGuide: true invisibles: {} fontSize: 16 core: disabledPackages: [ "autocomplete" "spell-check" "background-tips" "exception-reporting" "metrics" ] projectHome: "/home/edgard/Documents/...
Disable background-tips, exception reporting and metrics plugins, cleanup
Disable background-tips, exception reporting and metrics plugins, cleanup
CoffeeScript
cc0-1.0
edgard/dotfiles,edgard/dotfiles
7b5cf6a0116b46d893dc3c06e4181418cceef6d1
atom/config.cson
atom/config.cson
"*": "exception-reporting": userId: "f3cfa406-9a70-3680-f858-0c412c97f37e" welcome: showOnStartup: false metrics: userId: "a22f0efc-41ce-ed43-e5c0-88884b9fac7c" editor: invisibles: {} fontSize: 12 fontFamily: "Hack" scrollPastEnd: true showIndentGuide: true core: useReactEd...
"*": "exception-reporting": userId: "f3cfa406-9a70-3680-f858-0c412c97f37e" welcome: showOnStartup: false metrics: userId: "a22f0efc-41ce-ed43-e5c0-88884b9fac7c" editor: invisibles: {} fontSize: 12 fontFamily: "Hack" scrollPastEnd: true showIndentGuide: true core: useReactEd...
Remove java-specific wrap guide, add 120
Remove java-specific wrap guide, add 120
CoffeeScript
mit
Tyriar/tyr-tools,Tyriar/dotfiles,Tyriar/dotfiles,Tyriar/tyr-tools,Tyriar/dotfiles
b953faad79e2c77799bc00a4595a3b23ee58dd68
app/assets/javascripts/controllers/paper_controllers.js.coffee
app/assets/javascripts/controllers/paper_controllers.js.coffee
ETahi.PaperController = Ember.ObjectController.extend needs: ['application'] downloadLink: ( -> "/papers/#{@get('id')}/download" ).property() authorTasks: Ember.computed.filterBy('allTasks', 'role', 'author') assignedTasks: (-> assignedTasks = @get('allTasks').filterBy 'assignee', @get('controllers...
ETahi.PaperController = Ember.ObjectController.extend needs: ['application'] downloadLink: ( -> "/papers/#{@get('id')}/download" ).property() authorTasks: Ember.computed.filterBy('allTasks', 'role', 'author') assignedTasks: (-> assignedTasks = @get('allTasks').filterBy 'assignee', @get('controllers...
Refactor assignedTasks property on Paper Controller
Refactor assignedTasks property on Paper Controller - Removed underscore.js method. Ember provides a lot of enumerable methods so we should be able to remove underscore.
CoffeeScript
mit
johan--/tahi,johan--/tahi,johan--/tahi,johan--/tahi
531d19edb67a05ac29e5b24e7219b73f8a8cfe24
app/assets/javascripts/georgia/routers/edit_page_panel.js.coffee
app/assets/javascripts/georgia/routers/edit_page_panel.js.coffee
class Georgia.Routers.EditPagePanel extends Backbone.Router routes: "": "index" initialize: -> @images = new Georgia.Collections.Images() @images.fetch() index: -> @slides = new Georgia.Collections.Slides() new Georgia.Views.SlideshowPanel(el: '#slideshow', collection: @slides, images: @ima...
class Georgia.Routers.EditPagePanel extends Backbone.Router routes: "": "index" initialize: -> @images = new Georgia.Collections.Images() @images.fetch() index: -> @slides = new Georgia.Collections.Slides() new Georgia.Views.SlideshowPanel(el: '#slideshow', collection: @slides, images: @ima...
Fix Backbone app to use data-revision-id on edit_revision_panel
Fix Backbone app to use data-revision-id on edit_revision_panel
CoffeeScript
mit
georgia-cms/georgia,georgia-cms/georgia,georgia-cms/georgia
e9d85abaa4d1c84ac1b10e94dab7a21ac0059c2d
lib/open-last-project.coffee
lib/open-last-project.coffee
FS = require('fs') module.exports = Save:-> try Files = [] ActiveEditor = atom.workspace.getActiveEditor() atom.workspace.eachEditor (editor)-> File = editor.getPath() return unless File Files.push File CurrentFile = ActiveEditor && ActiveEditor.getPath() || null;...
FS = require('fs') module.exports = Save:-> try Files = [] ActiveEditor = atom.workspace.getActiveEditor() atom.workspace.eachEditor (editor)-> File = editor.getPath() return unless File Files.push File CurrentFile = ActiveEditor && ActiveEditor.getPath() || null;...
Use SetPaths to support older Atom versions
:bug: Use SetPaths to support older Atom versions
CoffeeScript
mit
danielmahon/atom-open-last-project
223e1dd66e0dc4b23c73e30986093b7bd31c5b6c
app/assets/javascripts/species/views/elibrary_search_form/elibrary_search_form_view.js.coffee
app/assets/javascripts/species/views/elibrary_search_form/elibrary_search_form_view.js.coffee
Species.ElibrarySearchFormView = Ember.View.extend templateName: 'species/elibrary_search_form' classNames: ['search-block'] keyDown: (event) -> if event.keyCode == 13 $('.elibrary-search-button').click() actions: toggleSearchOptions: () -> @.$('.search-form').toggle() tag = @.$('.se...
Species.ElibrarySearchFormView = Ember.View.extend templateName: 'species/elibrary_search_form' classNames: ['search-block'] keyDown: (event) -> if event.keyCode == 13 $('.elibrary-search-button').focus().trigger('click') actions: toggleSearchOptions: () -> @.$('.search-form').toggle() ...
Make enter key trigger click on IE and Chrome
Make enter key trigger click on IE and Chrome
CoffeeScript
bsd-3-clause
unepwcmc/SAPI,unepwcmc/SAPI,unepwcmc/SAPI,unepwcmc/SAPI
69b8985690783f8499d6496c9d9ccf6a0007a4ce
client/ide/workspace/panes/editorpane.coffee
client/ide/workspace/panes/editorpane.coffee
class EditorPane extends Pane constructor: (options = {}, data) -> options.cssClass = KD.utils.curry "editor-pane", options.cssClass super options, data @createEditor() createEditor: -> {file, content} = @getOptions() isLocalFile = no unless file instanceof FSFile return new ...
class EditorPane extends Pane constructor: (options = {}, data) -> options.cssClass = KD.utils.curry "editor-pane", options.cssClass super options, data @createEditor() createEditor: -> {file, content} = @getOptions() unless file instanceof FSFile throw new TypeError "File must be an...
Fix throwing error for editor pane.
Fix throwing error for editor pane.
CoffeeScript
agpl-3.0
rjeczalik/koding,szkl/koding,alex-ionochkin/koding,andrewjcasal/koding,szkl/koding,acbodine/koding,sinan/koding,rjeczalik/koding,drewsetski/koding,acbodine/koding,jack89129/koding,mertaytore/koding,cihangir/koding,alex-ionochkin/koding,usirin/koding,usirin/koding,gokmen/koding,koding/koding,mertaytore/koding,cihangir/k...
a988f16a205ae48d0b0c66e12b5e2dffd0b0dbca
src/app/teaching-periods/states/edit/directives/teaching-period-units/teaching-period-units.coffee
src/app/teaching-periods/states/edit/directives/teaching-period-units/teaching-period-units.coffee
angular.module('doubtfire.teaching-periods.states.edit.directives.teaching-period-units', []) .directive('teachingPeriodUnits', -> replace: true restrict: 'E' templateUrl: 'teaching-periods/states/edit/directives/teaching-period-units/teaching-period-units.tpl.html' controller: ($scope, $state, alertService, R...
angular.module('doubtfire.teaching-periods.states.edit.directives.teaching-period-units', []) .directive('teachingPeriodUnits', -> replace: true restrict: 'E' templateUrl: 'teaching-periods/states/edit/directives/teaching-period-units/teaching-period-units.tpl.html' controller: ($scope, $state, alertService, R...
Change name to teaching period to rollover
ENHANCE: Change name to teaching period to rollover
CoffeeScript
agpl-3.0
doubtfire-lms/doubtfire-web,doubtfire-lms/doubtfire-web,doubtfire-lms/doubtfire-web,doubtfire-lms/doubtfire-web
99d0c2817b47055824965bbab98e39071c32fa47
packages/rocketchat-lib/server/startup/settingsOnLoadSMTP.coffee
packages/rocketchat-lib/server/startup/settingsOnLoadSMTP.coffee
buildMailURL = _.debounce -> console.log 'Updating process.env.MAIL_URL' if RocketChat.settings.get('SMTP_Host') and RocketChat.settings.get('SMTP_Username') and RocketChat.settings.get('SMTP_Password') process.env.MAIL_URL = "smtp://" + encodeURIComponent(RocketChat.settings.get('SMTP_Username')) + ':' + encodeURI...
buildMailURL = _.debounce -> console.log 'Updating process.env.MAIL_URL' if RocketChat.settings.get('SMTP_Host') process.env.MAIL_URL = "smtp://" if RocketChat.settings.get('SMTP_Username') and RocketChat.settings.get('SMTP_Password') process.env.MAIL_URL += encodeURIComponent(RocketChat.s...
Allow SMTP server with no login
Allow SMTP server with no login Only require smtp host to be present. And include username and password if they are provided.
CoffeeScript
mit
Achaikos/Rocket.Chat,liuliming2008/Rocket.Chat,matthewshirley/Rocket.Chat,wtsarchive/Rocket.Chat,wicked539/Rocket.Chat,mccambridge/Rocket.Chat,fduraibi/Rocket.Chat,inoxth/Rocket.Chat,abduljanjua/TheHub,ahmadassaf/Rocket.Chat,LearnersGuild/echo-chat,OtkurBiz/Rocket.Chat,mccambridge/Rocket.Chat,ziedmahdi/Rocket.Chat,Lear...
8b70f3f69bc24af9c3e2ee1fa6ec0525e237c873
app/assets/javascripts/workbench/workbench/routers/workbench_router.js.coffee
app/assets/javascripts/workbench/workbench/routers/workbench_router.js.coffee
class Workbench.Routers.WorkbenchRouter extends Backbone.Router initialize: (options) -> if (location.search.length < 1) # Demo user read-only key apiKey = "3359a8ffba94a54978aa6c645e3c617a" else params = $.deparam(location.search.split('?')[1]) apiKey = params.api_key Workbench.s...
class Workbench.Routers.WorkbenchRouter extends Backbone.Router initialize: (options) -> if (location.search.length < 1) # Demo user read-only key @apiKey = "3359a8ffba94a54978aa6c645e3c617a" else params = $.deparam(location.search.split('?')[1]) @apiKey = params.api_key Workbench...
Add demo user api key to URL if not specified
Add demo user api key to URL if not specified
CoffeeScript
mit
GeoSensorWebLab/asw-workbench,GeoSensorWebLab/asw-workbench,GeoSensorWebLab/Arctic-Scholar-Portal,GeoSensorWebLab/Arctic-Scholar-Portal,GeoSensorWebLab/asw-workbench
3711190c3a8304c4b6939631d58c383b465b033c
app/assets/javascripts/spree_outlet/helpers/date_helper.js.coffee
app/assets/javascripts/spree_outlet/helpers/date_helper.js.coffee
Ember.Handlebars.registerBoundHelper('date', (dateString) -> if dateString && Ember.typeOf(dateString) == 'string' date = new Date(dateString.toString()) date.toLocaleDateString() )
Ember.Handlebars.helper('date', (dateString) -> if dateString && Ember.typeOf(dateString) == 'string' date = new Date(dateString.toString()) date.toLocaleDateString() )
Update helper method to user Ember.Handlebars.helper
Update helper method to user Ember.Handlebars.helper
CoffeeScript
mit
andrewmp1/spree_outlet,andrewmp1/spree_outlet
e399b51247fdad2ad03d690ce26b47d3c429c060
components/commercial_filter/filters/location/location_map.coffee
components/commercial_filter/filters/location/location_map.coffee
module.exports = fullyQualifiedLocations: [ 'New York, NY, USA', 'London, United Kingdom', 'Los Angeles, CA, USA', 'Paris, France', 'Berlin, Germany', 'Hong Kong, Hong Kong' ]
module.exports = fullyQualifiedLocations: [ 'New York, NY, USA', 'London, United Kingdom', 'Los Angeles, CA, USA', 'Paris, France', 'Berlin, Germany', 'San Francisco, CA, USA' 'Hong Kong, Hong Kong' ]
Add San Francisco to list of cities on /collect
Add San Francisco to list of cities on /collect
CoffeeScript
mit
izakp/force,damassi/force,eessex/force,erikdstock/force,kanaabe/force,oxaudo/force,eessex/force,damassi/force,eessex/force,mzikherman/force,joeyAghion/force,xtina-starr/force,eessex/force,oxaudo/force,mzikherman/force,mzikherman/force,damassi/force,izakp/force,dblock/force,izakp/force,dblock/force,cavvia/force-1,artsy/...
660a913e1c29be099783a4747bd0afdb158dc457
spec/fixtures/package-with-deprecated-selectors/menus/old-menu.cson
spec/fixtures/package-with-deprecated-selectors/menus/old-menu.cson
'context-menu': '.text-editor': 'The Command': "the-namespace:the-command"
'context-menu': '.editor': 'The Command': "the-namespace:the-command"
Fix fixture to contain .editor instead of .text-editor
Fix fixture to contain .editor instead of .text-editor
CoffeeScript
mit
atom/deprecation-cop
67e1df2b44370282f2c4646b8c65f0aaa6c8d4c6
src/domain_event_service.coffee
src/domain_event_service.coffee
_ = require 'underscore' Backbone = require 'backbone' class DomainEventService _.extend @prototype, Backbone.Events constructor: (@_eventStore) -> saveAndTrigger: (domainEvents, callback) -> # TODO: this should be an transaction to guarantee the consistency of the aggregate for domainEvent in domain...
_ = require 'underscore' async = require 'async' Backbone = require 'backbone' class DomainEventService _.extend @prototype, Backbone.Events constructor: (@_eventStore) -> saveAndTrigger: (domainEvents, callback) -> # TODO: this should be an transaction to guarantee the consistency of the aggregate a...
Make sure all DomainEvents are stored before calling the callback
Make sure all DomainEvents are stored before calling the callback
CoffeeScript
mit
efacilitation/eventric
5a31414182082248ae7b4c0cb4fa6c7ac2f1ed8a
spec/singleton-window-spec.coffee
spec/singleton-window-spec.coffee
# StorageManager = require '../src/storage-manager' # # # This spec file cannot be included with other specs because it requires a pristine # # StorageManager singleton instance. Instead, ensure this works by commenting it in # # and running it by itself # # describe 'Singleton#get with window.base.data', -> # stubbe...
StorageManager = require '../src/storage-manager' # This spec file cannot be included with other specs because it requires a pristine # StorageManager singleton instance. Instead, ensure this works by unpending it and # focusing. xdescribe 'Singleton#get with window.base.data', -> stubbedStorageManager = null be...
Comment specs back in but pend them
Comment specs back in but pend them
CoffeeScript
mit
mavenlink/brainstem-js
8d91c87700a2263af9286ab1acca2fa0da7ef490
src/tb/lib/backbone-extensions/index.coffee
src/tb/lib/backbone-extensions/index.coffee
ti = require 'tb/lib/ti' module.exports = load: -> Backbone.$ = ti.$ @extendView() extendView: -> # The default `viewName` for a View is `"View"`, which serves as # the base of all Titanium views. Backbone.View::viewName = 'View' # Delegate tagName to viewName to reduce the number of ...
ti = require 'tb/lib/ti' load = _.once -> Backbone.$ = ti.$ @extendView() extended = true module.exports = load: load extendView: -> # The default `viewName` for a View is `"View"`, which serves as # the base of all Titanium views. Backbone.View::viewName = 'View' # Delegate tagName to v...
Make sure the backbone extensions are only loaded once
Make sure the backbone extensions are only loaded once
CoffeeScript
mit
vcu/titanium-backbone,vcu/titanium-backbone,trabian/titanium-backbone,trabian/titanium-backbone
177149891c7f8f8e50f3bb30827aac2a3e805b02
app/assets/javascripts/backbone/views/add_to_home_screen_view.coffee
app/assets/javascripts/backbone/views/add_to_home_screen_view.coffee
# Manages add to home screen button. Gather.Views.AddToHomeScreenView = Backbone.View.extend initialize: (options) -> @options = options window.addEventListener('beforeinstallprompt', (event) => # Prevent Chrome 67 and earlier from automatically showing the prompt event.preventDefault() unle...
# Manages add to home screen button. Gather.Views.AddToHomeScreenView = Backbone.View.extend initialize: (options) -> @options = options window.addEventListener('beforeinstallprompt', (event) => # Prevent Chrome 67 and earlier from automatically showing the prompt event.preventDefault() unle...
Fix bug with opt out of add to home screen
Fix bug with opt out of add to home screen
CoffeeScript
mit
touchstone-cohousing/mess,touchstone-cohousing/mess,touchstone-cohousing/mess
f1beb030141e24cbd503d3169fd900e639a895a4
src/app/units/modals/unit-student-enrolment-modal/unit-student-enrolment-modal.coffee
src/app/units/modals/unit-student-enrolment-modal/unit-student-enrolment-modal.coffee
angular.module('doubtfire.units.modals.unit-student-enrolment-modal', []) # # Modal to enrol a student in the given tutorial # .factory('UnitStudentEnrolmentModal', ($modal) -> UnitStudentEnrolmentModal = {} # Must provide unit UnitStudentEnrolmentModal.show = (unit) -> $modal.open controller: 'UnitStu...
angular.module('doubtfire.units.modals.unit-student-enrolment-modal', []) # # Modal to enrol a student in the given tutorial # .factory('UnitStudentEnrolmentModal', ($modal) -> UnitStudentEnrolmentModal = {} # Must provide unit UnitStudentEnrolmentModal.show = (unit) -> $modal.open controller: 'UnitStu...
Correct error message on failed enrol student
FIX: Correct error message on failed enrol student
CoffeeScript
agpl-3.0
doubtfire-lms/doubtfire-web,doubtfire-lms/doubtfire-web,doubtfire-lms/doubtfire-web,doubtfire-lms/doubtfire-web
17763a8dda2e8097d51ed66528135984d1403a02
app/scripts/local-setup.coffee
app/scripts/local-setup.coffee
require [ "jquery" "app" "../extension/hotkey" ], ( $ App ) -> class LocalSetup constructor: -> @loadCommands() App.on "execute.commands", @executeCommand.bind(this) loadCommands: -> $.getJSON("http://api.backtick.io/commands") .success((response) => App.trigger "load.comm...
require [ "jquery" "app" "../extension/hotkey" ], ( $ App ) -> class LocalSetup constructor: -> @loadCommands() App.on "fetch.commands", @fetchCommand.bind(this) loadCommands: -> $.getJSON("http://api.backtick.io/commands") .success((response) => App.trigger "load.commands...
Update local setup to alert on command execution
Update local setup to alert on command execution
CoffeeScript
mit
JoelBesada/Backtick
10f26f550d0fdea0aafa7035a87ac3f6ed9436d0
app/assets/javascripts/orders.coffee
app/assets/javascripts/orders.coffee
$ -> showOrderDialog = (orderId) -> $.ajax url: "/orders/#{orderId}/show_order_dialog" type: 'POST' dataType: 'json' success: (response) -> $("#order_id").text(response.order_id) $("#date_received").text(response.order_date) $("#organization_name").text(response.org...
showOrderDialog = (orderId) -> $.ajax url: "/orders/#{orderId}/show_order_dialog" type: "POST" dataType: "json" success: (response) -> $("#order_id").text(response.order_id) $("#date_received").text(response.order_date) $("#organization_name").text(response.organization_name) $...
Drop need for document ready Consistent quoting
Drop need for document ready Consistent quoting
CoffeeScript
mit
icodeclean/StockAid,on-site/StockAid,on-site/StockAid,icodeclean/StockAid,icodeclean/StockAid,on-site/StockAid
df5fbdccde2f9b9d429372758b249188ca887e38
lineman/app/js/controllers/mini_proposal_pie_chart_controller.coffee
lineman/app/js/controllers/mini_proposal_pie_chart_controller.coffee
angular.module('loomioApp').controller 'MiniProposalPieChartController', ($scope) -> $scope.pieChartData = [ { value : 0, color : "#90D490" }, { value : 0, color : "#F0BB67" }, { value : 0, color : "#D49090" }, { value : 0, color : "#dd0000"} ] $scope.pieChartOptions = animation: false s...
angular.module('loomioApp').controller 'MiniProposalPieChartController', ($scope) -> $scope.pieChartData = [ { value : 0, color : "#90D490" }, { value : 0, color : "#F0BB67" }, { value : 0, color : "#D49090" }, { value : 0, color : "#dd0000" }, { value : 0, color : "#cccccc" } ] $scope.pieCh...
Fix empty mini pie charts
Fix empty mini pie charts
CoffeeScript
agpl-3.0
wangjun/loomio,aca13jmf/loomio,digideskio/loomio,isomerase/loomio,kimihito/loomio,juliagra/loomio,doomergithub/loomio,sicambria/loomio,gvalerin/loomio,mlarghydracept/loomio,FSFTN/Loomio,annewchen/loomio,mhjb/loomio,tachyons/loomio,loomio/loomio,HadoDokis/loomio,wangjun/loomio,annewchen/loomio,codingnutty/loomio,isomera...
c88cb4574eb0722c89136a59b7b7d56f00465dc3
services/web/public/coffee/ide/FeatureOnboardingController.coffee
services/web/public/coffee/ide/FeatureOnboardingController.coffee
define [ "base" ], (App) -> App.controller "FeatureOnboardingController", ($scope, settings) -> $scope.innerStep = 1 $scope.turnCodeCheckOn = () -> settings.saveSettings({ syntaxValidation: true }) $scope.settings.syntaxValidation = true navToInnerStep2() $scope.turnCodeCheckOff = () -> setting...
define [ "base" ], (App) -> App.controller "FeatureOnboardingController", ($scope, settings) -> $scope.innerStep = 1 $scope.turnCodeCheckOn = () -> settings.saveSettings({ syntaxValidation: true }) $scope.settings.syntaxValidation = true navToInnerStep2() $scope.turnCodeCheckOff = () -> setting...
Support dismissing the dialog just with Enter.
Support dismissing the dialog just with Enter.
CoffeeScript
agpl-3.0
sharelatex/sharelatex
88618468172cec42aec443b0bbf99f77fcbab647
core/app/backbone/factlink/collection.coffee
core/app/backbone/factlink/collection.coffee
Backbone.Factlink ||= {} class Backbone.Factlink.Collection extends Backbone.Collection constructor: (args...) -> super args... @_loading = false @on 'before:fetch', => @_loading = true @on 'reset', => @_loading = false loading: -> @_loading waitForFetch: (callback) -> if @_loading ...
Backbone.Factlink ||= {} class Backbone.Factlink.Collection extends Backbone.Collection constructor: (args...) -> super args... @_loading = false @on 'before:fetch', => @_loading = true @on 'reset', => @_loading = false loading: -> @_loading waitForFetch: (callback) -> if @loading() ...
Use function instead of instance variable in helper methods
Use function instead of instance variable in helper methods
CoffeeScript
mit
daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core,Factlink/factlink-core,daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core
d6a75c690280a4a38956cd308aa6190c722a647d
app/assets/javascripts/rglossa/react/components/centre/main_area_bottom.jsx.coffee
app/assets/javascripts/rglossa/react/components/centre/main_area_bottom.jsx.coffee
#= require ./start/start_main #= require ./results/results_main ###* @jsx React.DOM ### window.MainAreaBottom = React.createClass propTypes: store: React.PropTypes.object.isRequired statechart: React.PropTypes.object.isRequired corpus: React.PropTypes.object.isRequired results: React.PropTypes.objec...
#= require ./start/start_main #= require ./results/results_main ###* @jsx React.DOM ### window.MainAreaBottom = React.createClass propTypes: store: React.PropTypes.object.isRequired statechart: React.PropTypes.object.isRequired corpus: React.PropTypes.object.isRequired results: React.PropTypes.objec...
Allow empty results prop to MainAreaBottom
Allow empty results prop to MainAreaBottom
CoffeeScript
mit
textlab/rglossa,textlab/glossa,textlab/rglossa,textlab/rglossa,textlab/glossa,textlab/glossa,textlab/rglossa,textlab/rglossa,textlab/glossa,textlab/glossa
2930eeac0d8af69e729190d6753bcd4a84bbb7c8
src/draw_grid.coffee
src/draw_grid.coffee
exports.draw_grid = (S, grid_size, cell_size) -> draw_leg = (x, y) -> size = cell_size * 0.5 S.rect { x: x y: y height: size width: size / 2 fill: "#00aa00" } draw_arc = (width, x_sign, y_sign) -> "a#{width},#{width} 0 0,1 #{x_sign*width},#{y_sign*width} " draw_ellip...
exports.draw_grid = (SVG, grid_size, cell_size) -> draw_leg = (x, y) -> size = cell_size * 0.5 SVG.rect { x: x y: y height: size width: size / 2 fill: "#00aa00" } grid_path = "" for n in [0..grid_size] by cell_size grid_path += "M#{n},1 V#{grid_size-1} M1,...
Remove grid version of Turtle
Remove grid version of Turtle
CoffeeScript
isc
TheSwanFactory/hourofnode,TheSwanFactory/hourofnode
7ccbdb74560b180fc3fdc8fe08bccfdd41df47d9
app/assets/javascripts/controllers/flash-messages.controller.js.coffee
app/assets/javascripts/controllers/flash-messages.controller.js.coffee
Wheelmap.FlashMessagesController = Ember.ArrayController.extend pushMessage: (type, message)-> @pushObject Wheelmap.FlashMessage.create type: type message: message actions: removed: (message)-> @removeObject(message) Wheelmap.FlashMessage = Ember.Object.extend type: 'notice' message:...
Wheelmap.FlashMessagesController = Ember.ArrayController.extend init: (args...)-> @_super.apply(@, args) data = JSON.parse $.cookie("flash") types = ['alert', 'notice', 'error', 'success']; for type in types if (data[type]) @pushMessage(type, data[type]); $.cookie('flash', null, ...
Add rendering of rails flash messages in ember.
Add rendering of rails flash messages in ember.
CoffeeScript
agpl-3.0
sozialhelden/wheelmap,sozialhelden/wheelmap,sozialhelden/wheelmap,sozialhelden/wheelmap,sozialhelden/wheelmap
63c5ce03ef3a74cdfd76971ea2d0dfde5f337697
app/assets/javascripts/auth.coffee
app/assets/javascripts/auth.coffee
Dashboard.Auth = Ember.Auth.extend request: 'jquery' response: 'json' strategy: 'token' session: 'cookie' modules: [ 'emberData' 'authRedirectable' 'actionRedirectable' ] tokenKey: 'access_token' tokenIdKey: 'user_id' tokenLocation: 'authHeader' tokenHeaderKey: 'AUTH-TOKEN' signInEn...
Dashboard.Auth = Ember.Auth.extend request: 'jquery' response: 'json' strategy: 'token' session: 'cookie' modules: [ 'emberData' 'authRedirectable' 'actionRedirectable' ] tokenKey: 'access_token' tokenIdKey: 'user_id' tokenLocation: 'authHeader' tokenHeaderKey: 'Token' signInEndPoin...
Use Token as the token header key
Use Token as the token header key
CoffeeScript
mit
FromUte/dune-dashboard,FromUte/dune-dashboard,FromUte/dune-dashboard
37c53455428de26011e1d5300c7da7dd5d587d41
src/main.coffee
src/main.coffee
define [ 'dispatcher' 'action-manager' 'store' 'invariant' 'signals' ], (dispatcher, actionManager, Store, invariant, logger, {Signal}) -> return { dispatcher actionManager Store invariant Signal }
define [ 'dispatcher' 'action-manager' 'store' 'invariant' 'signals' ], (dispatcher, actionManager, Store, invariant, {Signal}) -> return { dispatcher actionManager Store invariant Signal }
Remove unused logger, so Signal actually works
Remove unused logger, so Signal actually works
CoffeeScript
mit
miklschmidt/capacitor.js,bondo/capacitor.js
acb163778f30d79d30e42416db2c4968877adeed
server/methods/registerUser.coffee
server/methods/registerUser.coffee
Meteor.methods registerUser: (formData) -> check formData, Object if RocketChat.settings.get('Accounts_RegistrationForm') is 'Disabled' throw new Meteor.Error 'error-user-registration-disabled', 'User registration is disabled', { method: 'registerUser' } else if RocketChat.settings.get('Accounts_Registrati...
Meteor.methods registerUser: (formData) -> check formData, Object if RocketChat.settings.get('Accounts_RegistrationForm') is 'Disabled' throw new Meteor.Error 'error-user-registration-disabled', 'User registration is disabled', { method: 'registerUser' } else if RocketChat.settings.get('Accounts_Registrati...
Allow imported users to register themselves
Allow imported users to register themselves
CoffeeScript
mit
Achaikos/Rocket.Chat,AimenJoe/Rocket.Chat,wtsarchive/Rocket.Chat,flaviogrossi/Rocket.Chat,tntobias/Rocket.Chat,yuyixg/Rocket.Chat,wtsarchive/Rocket.Chat,yuyixg/Rocket.Chat,igorstajic/Rocket.Chat,marzieh312/Rocket.Chat,cnash/Rocket.Chat,NMandapaty/Rocket.Chat,snaiperskaya96/Rocket.Chat,marzieh312/Rocket.Chat,ziedmahdi/R...
40503eece9f34f302b2dfa58df2411acfa5a72f3
cilantro/static/cilantro/scripts/coffeescript/models/datacontexts.coffee
cilantro/static/cilantro/scripts/coffeescript/models/datacontexts.coffee
define [ 'environ' 'mediator' 'underscore' 'serrano' ], (environ, mediator, _, Serrano) -> class DataContexts extends Serrano.DataContexts url: environ.absolutePath '/api/contexts/' initialize: -> @deferred = @fetch() getNamed: -> @filter (model) ->...
define [ 'environ' 'mediator' 'underscore' 'serrano' ], (environ, mediator, _, Serrano) -> class DataContexts extends Serrano.DataContexts url: environ.absolutePath '/api/contexts/' initialize: -> @deferred = @fetch() getNamed: -> @filter (model) ->...
Add subscription for session data context and autosave on change
Add subscription for session data context and autosave on change
CoffeeScript
bsd-2-clause
chop-dbhi/cilantro,chop-dbhi/cilantro,chop-dbhi/cilantro
c4bd150a76f08d5ec8aaee8d80f3dbb449ddc442
test-integration/helpers/course-select.coffee
test-integration/helpers/course-select.coffee
selenium = require 'selenium-webdriver' {TaskHelper} = require './task' class CourseSelect extends TaskHelper goTo: (category) -> # Go to the bio dashboard switch category when 'BIOLOGY' then @test.waitClick(css: '[data-appearance="biology"] > [href*="calendar"]') when 'PHYSICS' then @test.waitC...
selenium = require 'selenium-webdriver' {TestHelper} = require './test-element' class CourseSelect extends TestHelper constructor: (test ) -> super(test, '.course-listing') goTo: (category) -> @waitUntilLoaded() # Go to the bio dashboard switch category when 'BIOLOGY' then @test.waitClick(c...
Use TestHelper instead of TaskHelper
Use TestHelper instead of TaskHelper
CoffeeScript
agpl-3.0
openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js
5ca63861171bbbae63a9f6726963ce4fa168edd2
client/admin/lib/views/stacks/editors/stacktemplateeditorview.coffee
client/admin/lib/views/stacks/editors/stacktemplateeditorview.coffee
BaseStackEditorView = require './basestackeditorview' module.exports = class StackTemplateEditorView extends BaseStackEditorView constructor: (options = {}, data) -> unless options.content options.content = require '../defaulttemplate' super options, data if options.showHelpContent @onc...
BaseStackEditorView = require './basestackeditorview' module.exports = class StackTemplateEditorView extends BaseStackEditorView constructor: (options = {}, data) -> unless options.content options.content = require '../defaulttemplate' super options, data if options.showHelpContent @onc...
Add description view option to stack template editor view
Add description view option to stack template editor view
CoffeeScript
agpl-3.0
jack89129/koding,jack89129/koding,jack89129/koding,acbodine/koding,rjeczalik/koding,usirin/koding,cihangir/koding,sinan/koding,andrewjcasal/koding,usirin/koding,koding/koding,szkl/koding,gokmen/koding,kwagdy/koding-1,sinan/koding,sinan/koding,mertaytore/koding,kwagdy/koding-1,mertaytore/koding,jack89129/koding,usirin/k...
95e5f5b677a372e09560e5e8645dbe56bcc23a2e
vendor/assets/javascripts/partystreusel/translations.js.coffee
vendor/assets/javascripts/partystreusel/translations.js.coffee
I18n.translations ||= en: readmore: button_text: open: 'Read more' close: 'Read less' de: readmore: button_text: open: 'Open' close: 'Close'
I18n.translations ||= en: readmore: button_text: open: 'Read more' close: 'Read less' de: readmore: button_text: open: 'Mehr lesen' close: 'Weniger lesen' fr: readmore: button_text: open: 'Lire la suite' close: 'Afficher moins'
Add de and fr translations.
Add de and fr translations.
CoffeeScript
mit
brandleadership/partystreusel,brandleadership/partystreusel
334adbabbb69b349e59a459a2a965c7a1dabdbf1
app/assets/javascripts/lib/mobile/select_group_manager_mobile.js.coffee
app/assets/javascripts/lib/mobile/select_group_manager_mobile.js.coffee
define ['jsmin'], ($) -> class SelectGroup constructor: (@parent = null, @callback = false) -> @selectParent = (if @parent != null then $(@parent) else $('.js-select-group')) @addHandlers() addHandlers: -> @selectParent.on 'change', (e) => e.preventDefault() result = e.tar...
define ['jsmin'], ($) -> class SelectGroup constructor: (parent, callback) -> @parent = (if parent then $(parent) else $('.js-select-group')) @addHandlers() addHandlers: -> @parent.on 'change', (e) => e.preventDefault() result = e.target.options[e.target.selectedIndex].tex...
Tidy up mobile select group manager
Tidy up mobile select group manager
CoffeeScript
mit
Lostmyname/rizzo,Lostmyname/rizzo,lonelyplanet/rizzo,lonelyplanet/rizzo,Lostmyname/rizzo,lonelyplanet/rizzo,Lostmyname/rizzo,Lostmyname/rizzo,lonelyplanet/rizzo,lonelyplanet/rizzo
b34c459884aff5e2e92e10a7198ad2c7968a26f7
annotran/static/scripts/annotator/guest.coffee
annotran/static/scripts/annotator/guest.coffee
Guest = require('../../../../../h/h/static/scripts/annotator/guest.coffee'); extend = require('extend') Annotator = require('annotator') $ = Annotator.$ class GuestExt extends Guest html: extend {}, Annotator::html, adder: ''' <div class="annotator-adder"> <button class="h-icon-insert-comm...
Guest = require('../../../../../h/h/static/scripts/annotator/guest.coffee'); extend = require('extend') Annotator = require('annotator') $ = Annotator.$ class GuestExt extends Guest html: extend {}, Annotator::html, adder: ''' <div class="annotator-adder"> <button class="h-icon-insert-comm...
Disable display of anchoring pips in sidebar
Disable display of anchoring pips in sidebar
CoffeeScript
mit
birkbeckOLH/annotran,birkbeckOLH/annotran,birkbeckOLH/annotran
32f528e9197c9213bca96eaeb771d75d646262ca
server/controllers/deploy.coffee
server/controllers/deploy.coffee
AppConfig = require('../initializers/config') Deploy = require('../lib/deploy') range_check = require('range_check') tagRefersToServer = (tag, serverName) -> return new RegExp("^#{serverName}").test(tag) getIpFromRequest = (req) -> req.connection.remoteAddress GITHUB_IP_RANGE = "192.30.252.0/22" ipIsFromGithub ...
AppConfig = require('../initializers/config') Deploy = require('../lib/deploy') range_check = require('range_check') tagRefersToServer = (tag, serverName) -> return new RegExp("^#{serverName}").test(tag) getIpFromRequest = (req) -> req.connection.remoteAddress GITHUB_IP_RANGE = "192.30.252.0/22" ipIsFromGithub ...
Use correct github auth behaviour in test
Use correct github auth behaviour in test
CoffeeScript
bsd-3-clause
unepwcmc/NRT,unepwcmc/NRT
ba19e2d9263a76b9cd3b18bf3843e5a1f69bed8f
src/content.coffee
src/content.coffee
# Copyright (c) 2012 Mattes Groeger # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, dist...
# Copyright (c) 2012 Mattes Groeger # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, dist...
Verify selection on key up
Verify selection on key up
CoffeeScript
mit
dragon788/chrome-open-links
9829cd1309a8e73e88ab6968618ce88e9bc570c8
lib/scripts/mercure.coffee
lib/scripts/mercure.coffee
# Description: # Allows Hubot interact with mercure # # Commands: # hubot download me <url> util = require 'util' url = require 'url' MERCURE_URL = process.env.MERCURE_URL MERCURE_TOKEN = process.env.MERCURE_TOKEN HUBOT_URL = process.env.HUBOT_URL module.exports = (robot) -> robot.respond /download me (....
# Description: # Allows Hubot interact with mercure # # Configuration: # MERCURE_URL - The URL of the mercure instance # MERCURE_TOKEN - The private token # HUBOT_URL - the URL of the this hubot # # Commands: # hubot download me <url> # # URLS: # /mercure/callback/:room - the callback URL when to download i...
Update description of the hubot integration.
Update description of the hubot integration. Signed-off-by: François de Metz <5187da0b934cc25eb2201a3ec9206c24b13cb23b@stormz.me>
CoffeeScript
mit
francois2metz/mercure
a8edc9e4b51bb2636ede098762b42990fc31023c
lib/wav-editor-view.coffee
lib/wav-editor-view.coffee
FileEditorView = require './file-editor-view' exec = require('child_process').execSync module.exports = class WAVEditorView extends FileEditorView @content: -> @div class: 'xoreos-editor', tabindex: -1, => @div class: 'xoreos-container', => @div class: 'audio-container', => @div class: '...
FileEditorView = require './file-editor-view' exec = require('child_process').execSync module.exports = class WAVEditorView extends FileEditorView @content: -> @div class: 'xoreos-editor', tabindex: -1, => @div class: 'xoreos-container', => @div class: 'audio-container', => @div class: '...
Use ffmpeg for wav file conversion
Use ffmpeg for wav file conversion
CoffeeScript
unlicense
berenm/game-data-explorer,berenm/xoreos-editor
336b6578bde72bfa4194e09856f06bbf2e45b97a
tasks/index.coffee
tasks/index.coffee
### grunt-commonjs-coffee https://github.com/tuxracer/grunt-commonjs-coffee Copyright (c) 2013 Team Delicious, AVOS Systems Inc. Licensed under the MIT license. ### path = require 'path' grunt = require 'grunt' # commonjs: { # modules: { # cwd: 'assets/', # src: ['assets/*.coffee'], # dest: 'dist/' # } #...
### grunt-commonjs-coffee https://github.com/tuxracer/grunt-commonjs-coffee Copyright (c) 2013 Team Delicious, AVOS Systems Inc. Licensed under the MIT license. ### path = require 'path' grunt = require 'grunt' indentStr = (str) -> str.replace(/(\r\n|\n|\r)/g, '\n ') isCoffeeScript = (filepath) -> filepath.sli...
Remove redundent doc in comment
Remove redundent doc in comment
CoffeeScript
mit
blake-newman/grunt-wrap-commonjs
2a989f1d97eacca253c112a95bc427db2dfd0bc9
app/assets/javascripts/components/permission_cell_component.js.coffee
app/assets/javascripts/components/permission_cell_component.js.coffee
Review.PermissionCellComponent = Ember.Component.extend tagName: 'th' classNames: ['permissions', 'text-center'] classNameBindings: ['permission.isAllowed:success:danger'] permission: (() -> user = @get('user') project = @get('project') permission = user.get('permissions').find((item) -> item.get('...
Review.PermissionCellComponent = Ember.Component.extend tagName: 'th' classNames: ['permissions', 'text-center'] classNameBindings: ['permission.isAllowed:success:danger'] permission: (() -> user = @get('user') project = @get('project') permission = user.get('permissions').find((item) -> item.get('...
Use proper createRecord function call
Use proper createRecord function call
CoffeeScript
mit
Naturaily/review,Naturaily/review,Naturaily/review
7e0f5b54538e8742cfcf566b88b105d45fe3587b
src/main/webapp/coffeescripts-hidden/weekly-performance-graph.coffee
src/main/webapp/coffeescripts-hidden/weekly-performance-graph.coffee
$(document).ready -> chart = new Highcharts.Chart chart: renderTo: 'weekly-performance-graph', defaultSeriesType: 'spline', backgroundColor: '#f7f7f7', width: 600 title: [ text: 'Weekly Performance' ], series: [ { name: 'views', data: [['Mon', 10], [...
$(document).ready -> chart = new Highcharts.Chart chart: renderTo: 'weekly-performance-graph', defaultSeriesType: 'spline', backgroundColor: '#f7f7f7', width: 600 title: [ text: 'Weekly Performance' ], series: [ { name: 'views', data: [['Mon', 10], [...
Set the y axis to a minimum of 0.
Set the y axis to a minimum of 0.
CoffeeScript
apache-2.0
farmdawgnation/anchortab,farmdawgnation/anchortab,farmdawgnation/anchortab,farmdawgnation/anchortab
cf5f19d5042058b23cd2a6c3ddf7d36b47baef61
app/assets/javascripts/views/react/graph/graphQuestionList.js.jsx.coffee
app/assets/javascripts/views/react/graph/graphQuestionList.js.jsx.coffee
window.GraphQuestionList = React.createClass propTypes: questions: React.PropTypes.array.isRequired activeQuestion: React.PropTypes.number.isRequired answerTexts: React.PropTypes.array.isRequired render: -> questions = (`<DisplayQuestion question={q} index={i} key={i} active={this.props.activeQuestion==...
window.GraphQuestionList = React.createClass propTypes: questions: React.PropTypes.array.isRequired activeQuestion: React.PropTypes.number.isRequired answerTexts: React.PropTypes.array.isRequired getInitialState: -> return { height: window.innerHeight - (50+1+20 + 1 + 320) scrollTop: 0 } ha...
Add auto scroll on question selection to user graph
Add auto scroll on question selection to user graph
CoffeeScript
mit
Mickydtron/MeaningAndPurpose,Mickydtron/MeaningAndPurpose,Mickydtron/MeaningAndPurpose
c26c9b828bf88b9b520b1cde8cee3079bd4d464e
lib/assets/javascripts/views/004_mentions_auto_complete_textarea.js.coffee
lib/assets/javascripts/views/004_mentions_auto_complete_textarea.js.coffee
Marbles.Views.MentionsAutoCompleteTextarea = class MentionsAutoCompleteTextareaView extends Marbles.View @view_name: 'mentions_autocomplete_textarea' constructor: (options = {}) -> super @initInlineMentionsManager() initInlineMentionsManager: => @inline_mentions_manager = new TentStatus.InlineMenti...
Marbles.Views.MentionsAutoCompleteTextarea = class MentionsAutoCompleteTextareaView extends Marbles.View @view_name: 'mentions_autocomplete_textarea' constructor: (options = {}) -> super @initInlineMentionsManager() initInlineMentionsManager: => @inline_mentions_manager = new TentStatus.InlineMenti...
Fix focusing input with content (focus at end)
Fix focusing input with content (focus at end)
CoffeeScript
bsd-3-clause
tent/tent-status,tent/tent-status
2402b0f3eee5213e9cc958efacf61dc2e6ffc4f1
spec/conf/protractor.spec.conf.coffee
spec/conf/protractor.spec.conf.coffee
config = require('../../src/protractor.conf.coffee').config config.capabilities = browserName: 'chrome' config.framework = 'mocha' config.specs = '../**/*.spec.coffee' config.allScriptsTimeout = 20000 exports.config = config
config = require('../../src/protractor.conf.coffee').config config.capabilities = browserName: 'firefox' config.framework = 'mocha' config.specs = '../**/*.spec.coffee' config.allScriptsTimeout = 20000 exports.config = config
Move back to Firefox by default
Move back to Firefox by default
CoffeeScript
mit
ReadyTalk/cukefarm,thompsnm/cukefarm,thompsnm/cukefarm,ReadyTalk/cukefarm
5443879c0ddada25b740944d8b4c1840eeca7601
spec/dummy/app/assets/javascripts/dummy/dummy.js.coffee
spec/dummy/app/assets/javascripts/dummy/dummy.js.coffee
#= require_self #= require_tree . window.Dummy = Common: initPage: -> # If you're using the Turbolinks and you need run a code only one time, put something here. # if you're not using the turbolinks, there's no difference between init and initPage. init: -> # Something here. This is called...
#= require_self #= require_tree . window.Dummy = initPage: -> # If you're using the Turbolinks and you need run a code only one time, put something here. # if you're not using the turbolinks, there's no difference between init and initPage. init: -> # Something here. This is called in every page, with...
Fix app file on duppy app
Fix app file on duppy app
CoffeeScript
mit
josemarluedke/initjs,josemarluedke/initjs,josemarluedke/initjs
14bf6d32c284a5cead4c023f5cf194809e239e89
source/molecule/navigation.coffee
source/molecule/navigation.coffee
class Atoms.Molecule.Navigation extends Atoms.Core.Class.Molecule template: """ <nav molecule-class="{{className}}" class="{{style}}"></nav> """ bindings: link: ["click"] button: ["click"] constructor: -> @atoms = link: [], button: [] super linkClick: (event, atom) => @_trigger e...
class Atoms.Molecule.Navigation extends Atoms.Core.Class.Molecule template: """ <nav molecule-class="{{className}}" class="{{style}}"></nav> """ bindings: link: ["click"] button: ["click"] constructor: -> @atoms = link: [], button: [] super linkClick: (event, atom) => @_trigger e...
Fix trigger "select" with event & atom (dispatcher)
Fix trigger "select" with event & atom (dispatcher)
CoffeeScript
mit
tapquo/atoms
35c74b7b9a8448ca633449f974691667ff3d2865
plugins/slack/index.coffee
plugins/slack/index.coffee
NotificationPlugin = require "../../notification-plugin.js" class Slack extends NotificationPlugin @errorAttachment = (event) -> fallback: "Something happened", fields: [ { title: "Error" value: (event.error.exceptionClass + (if event.error.message then ": #{event.error.message}")).trun...
NotificationPlugin = require "../../notification-plugin.js" class Slack extends NotificationPlugin @errorAttachment = (event) -> attachment = fallback: "Something happened", fields: [ { title: "Error" value: (event.error.exceptionClass + (if event.error.message then ": #{e...
Set color by the severity
Set color by the severity
CoffeeScript
mit
jacobmarshall/bugsnag-notification-plugins,korealert/bugsnag-notification-plugins,korealert/bugsnag-notification-plugins,sharesight/bugsnag-notification-plugins,6wunderkinder/bugsnag-notification-plugins,indirect/bugsnag-notification-plugins,kstream001/bugsnag-notification-plugins,cagedata/bugsnag-notification-plugins,...
1dcb14186e82ca1927b878b52cc2686e4676ff9c
test/core/eventemitterwildcard.coffee
test/core/eventemitterwildcard.coffee
should = require 'should' sinon = require 'sinon' shouldSinon = require 'should-sinon' KDEventEmitterWildcard = require '../../lib/core/eventemitterwildcard' describe 'KDEventEmitterWildcard', -> beforeEach -> @instance = new KDEventEmitterWildcard it 'exists', -> KDEventEmitterWildcard.should.exist d...
should = require 'should' sinon = require 'sinon' shouldSinon = require 'should-sinon' KDEventEmitterWildcard = require '../../lib/core/eventemitterwildcard' describe 'KDEventEmitterWildcard', -> beforeEach -> @instance = new KDEventEmitterWildcard emitSpy = sinon.spy @instance.emit it 'exists', -> K...
Add more event emitter wildcard tests
Add more event emitter wildcard tests
CoffeeScript
mit
anonrig/kd,anonrig/kd
1f204d2863eba41dbb873657511ed4a036533b75
src/model/validations/email_validator.coffee
src/model/validations/email_validator.coffee
#= require ./validators class Batman.EmailValidator extends Batman.Validator @triggers 'email' # WebKit's email validation regexp emailRegexp: /[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9-]+(\.[a-z0-9-]+)*/ constructor: (options) -> console.log @emailRegexp super validateEach: (errors, record, key, cal...
#= require ./validators class Batman.EmailValidator extends Batman.Validator @triggers 'email' # WebKit's email validation regexp emailRegexp: /[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9-]+(\.[a-z0-9-]+)*/ constructor: (options) -> super validateEach: (errors, record, key, callback) -> value = record....
Remove forgotten console.log in EmailValidator :-/
Remove forgotten console.log in EmailValidator :-/
CoffeeScript
mit
getshuvo/batman,getshuvo/batman
1604c1f102473102052c1940bea8e0e41bac8add
src/components/scores/concept-coach-cell.cjsx
src/components/scores/concept-coach-cell.cjsx
React = require 'react' moment = require 'moment' CellStatusMixin = require './cell-status-mixin' ConceptCoachCell = React.createClass mixins: [CellStatusMixin] # prop validation lastWorked: -> moment(@props.task.last_worked_at).format('MMM. D') render: -> <div className="cc-cell"> <div classN...
React = require 'react' moment = require 'moment' Time = require '../time' CellStatusMixin = require './cell-status-mixin' ConceptCoachCell = React.createClass mixins: [CellStatusMixin] # prop validation render: -> <div className="cc-cell"> <div className="score">{@props.task.correct_exercise_count} ...
Use Time component for displaying when task was last worked
Use Time component for displaying when task was last worked
CoffeeScript
agpl-3.0
openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js
4d803f0802bac662bd572a88df1dcf82ea68d970
assets/javascripts/models.js.coffee
assets/javascripts/models.js.coffee
App.User = DS.Model.extend firstName: DS.attr("string") lastName: DS.attr("string") email: DS.attr("string") role: DS.attr("string") password: DS.attr("string") App.CurrentUser = App.User.extend({}) App.Room = DS.Model.extend name: DS.attr("string") roomUserState: DS.belongsTo("room_user_state") ...
App.User = DS.Model.extend firstName: DS.attr("string") lastName: DS.attr("string") email: DS.attr("string") role: DS.attr("string") password: DS.attr("string") App.CurrentUser = App.User.extend({}) App.Room = DS.Model.extend name: DS.attr("string") roomUserState: DS.belongsTo("room_user_state") ...
Add MessageSerializer; Messages relation to Room; change createdAt to string for date
Add MessageSerializer; Messages relation to Room; change createdAt to string for date
CoffeeScript
mit
louishawkins/mogo-chat,sashafklein/bloc-mogo,HashNuke/mogo-chat,HashNuke/mogo-chat,di-stars/mogo-chat,louishawkins/mogo-chat,louishawkins/mogo-chat,sashafklein/bloc-mogo,di-stars/mogo-chat,sashafklein/bloc-mogo,di-stars/mogo-chat,HashNuke/mogo-chat
beff64bd74a7a8173103de4fa1e6da6f3cec138c
app/assets/javascripts/image_upload.coffee
app/assets/javascripts/image_upload.coffee
# Image upload control class @ImageUpload uploadMethod: null constructor: (@container)-> @setupNestedAttributes() @setupSwtiching() setupNestedAttributes: -> @container.nestedAttributes bindAddTo: $(".actions .add") collectionName: 'images' collectIdAttributes: false $clone:...
# Image upload control class @ImageUpload uploadMethod: null constructor: (@container)-> @setupNestedAttributes() @setupSwtiching() setupNestedAttributes: -> @container.nestedAttributes bindAddTo: $(".actions .add") collectionName: 'images' collectIdAttributes: false $clone:...
Fix file input not adding new field after change bug.
Fix file input not adding new field after change bug. File input now use change to trigger addition. This is okay because use has time to react to change and probably won’t be able to click the submit button before dom change.
CoffeeScript
mit
lulalala/mei,masolin/mei,masolin/mei,nicoNaN/mei,nicoNaN/mei,lulalala/mei,masolin/mei,lulalala/mei,nicoNaN/mei
3ba16d063754540aa60d226a059e37dd048865f9
app/assets/javascripts/questions.js.coffee
app/assets/javascripts/questions.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://jashkenas.github.com/coffee-script/
# 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://jashkenas.github.com/coffee-script/ # #= require epiceditor Inquest.Questions ||= {} Inquest.Questions.init = -> new EpicEdi...
Load and initialize epic editor on question form
Load and initialize epic editor on question form
CoffeeScript
mit
joshmcarthur/inquest,joshmcarthur/inquest
61e2b167f0f08619d54bf2225a7985fa56f80992
app/assets/javascripts/kss.coffee
app/assets/javascripts/kss.coffee
# This class scans your stylesheets for pseudo classes, then inserts a new CSS # rule with the same properties, but named 'psuedo-class-{{name}}'. # # Supported pseudo classes: hover, disabled, active, visited. # # Example: # # a:hover{ color:blue; } # => a.pseudo-class-hover{ color:blue; } class KssStateGenerator ...
# This class scans your stylesheets for pseudo classes, then inserts a new CSS # rule with the same properties, but named 'psuedo-class-{{name}}'. # # Supported pseudo classes: hover, disabled, active, visited, focus, checked. # # Example: # # a:hover{ color:blue; } # => a.pseudo-class-hover{ color:blue; } class Ks...
Support focus & checked psuedo classes
Support focus & checked psuedo classes
CoffeeScript
mit
dewski/kss-rails,dewski/kss-rails
9cfb8f0c241e5df84405139bc8f3c383ad57ddd6
app/assets/javascripts/home.coffee
app/assets/javascripts/home.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/
@flash_element = (element) -> oldBG = element.style.background oldTra = element.style.transition element.style.backgroundColor = '#faa' setTimeout(-> element.style.transitionDuration = '.5s' element.style.transitionProperty= 'background-color' element.style.backgroundColor = 'transparent' , 300) ...
Add event to post message
Add event to post message
CoffeeScript
mit
ueokande/dabell,ueokande/dabell,ueokande/dabell
2471588bbf385259974f9118ca2ad9250888ed38
app/assets/javascripts/tandem/pages.js.coffee
app/assets/javascripts/tandem/pages.js.coffee
# Place all the behaviors and hooks related to the matching controller here. # All this logic will automatically be available in application.js. $(document).ready -> $('.page_link').colorbox onCleanup: -> location.reload() if $('#tandem_page_links').length > 0 $('body').addClass('tandem-admin-bar') ...
# Place all the behaviors and hooks related to the matching controller here. # All this logic will automatically be available in application.js. $(document).ready -> $('.page_link').colorbox onCleanup: -> location.reload() if $('#tandem_page_links').length > 0 $('body').addClass('tandem-admin-bar') ...
Switch to using jQuery's on() function instead of live for tandem_content events.
Switch to using jQuery's on() function instead of live for tandem_content events.
CoffeeScript
mit
12spokes/tandem,Quimbee/tandem,aaron/tandem,12spokes/tandem,Quimbee/tandem,aaron/tandem
e1c3aed46be83a9568caf9cc1e4e34bfe4ccf3b9
components/LoggingMiddleware.coffee
components/LoggingMiddleware.coffee
noflo = require 'noflo' debugAction = require('debug') 'noflo-ui:action' debugActionFull = require('debug') 'noflo-ui:action:full' sendEvent = (label, action = 'click', category = 'menu') -> return unless typeof window.ga is 'function' window.ga 'send', 'event', category, action, label exports.getComponent = -> ...
noflo = require 'noflo' debugAction = require('debug') 'noflo-ui:action' debugActionFull = require('debug') 'noflo-ui:action:full' debugError = require('debug') 'noflo-ui:error' sendEvent = (label, action = 'click', category = 'menu') -> return unless typeof window.ga is 'function' window.ga 'send', 'event', categ...
Support for logging all errors to console
Support for logging all errors to console
CoffeeScript
mit
noflo/noflo-ui,noflo/noflo-ui
344450b1ed4f09ba9a5de712e24b0298168f2649
coffee/cilantro/models/base.coffee
coffee/cilantro/models/base.coffee
define [ '../core' ], (c) -> class Model extends c.Backbone.Model url: -> if @isNew() then super else @links.self constructor: (attrs, options) -> @links = {} super(attrs, options) parse: (attrs, options) -> if attrs? and attrs._links? ...
define [ '../core' ], (c) -> class Model extends c.Backbone.Model url: -> if @isNew() then super else @links.self constructor: (attrs, options) -> @links = {} super(attrs, options) parse: (attrs, options) -> if attrs? and attrs._links? ...
Update to be more idiomatic
Update to be more idiomatic
CoffeeScript
bsd-2-clause
chop-dbhi/cilantro,chop-dbhi/cilantro,chop-dbhi/cilantro
15224c17eacb2fc5192364159c45ed5a66a87b5d
lib/table-edit.coffee
lib/table-edit.coffee
module.exports = config: undefinedDisplay: type: 'string' default: '' activate: (state) -> atom.workspaceView.command 'table-edit:demo', => @openDemo() @openDemo() deactivate: -> serialize: -> openDemo: -> Table = require './table' TableView = require './table-view' ...
module.exports = config: undefinedDisplay: type: 'string' default: '' activate: (state) -> atom.workspaceView.command 'table-edit:demo', => @openDemo() @openDemo() deactivate: -> serialize: -> openDemo: -> Table = require './table' TableView = require './table-view' ...
Add a row with bigger height in demo
Add a row with bigger height in demo
CoffeeScript
mit
abe33/atom-tablr
8be4279165e347953d31cc65cf6dcf8bf8f5f932
services/web/public/coffee/ide/history/controllers/HistoryV2DiffController.coffee
services/web/public/coffee/ide/history/controllers/HistoryV2DiffController.coffee
define [ "base" ], (App) -> App.controller "HistoryV2DiffController", ($scope, ide, event_tracking) -> $scope.restoreState = inflight: false error: false $scope.restoreDeletedFile = () -> pathname = $scope.history.selection.pathname return if !pathname? version = $scope.history.selection.docs[path...
define [ "base" ], (App) -> App.controller "HistoryV2DiffController", ($scope, ide, event_tracking) -> $scope.restoreState = inflight: false error: false $scope.restoreDeletedFile = () -> pathname = $scope.history.selection.pathname return if !pathname? version = $scope.history.selection.docs[path...
Fix a broken if-else-if statement
Fix a broken if-else-if statement
CoffeeScript
agpl-3.0
sharelatex/sharelatex
36b950ea3040d09ca6966d12ae0d3218cb1bd14e
services/web/public/coffee/ide/review-panel/directives/reviewPanelSorted.coffee
services/web/public/coffee/ide/review-panel/directives/reviewPanelSorted.coffee
define [ "base" ], (App) -> App.directive "reviewPanelSorted", ($timeout) -> return { link: (scope, element, attrs) -> layout = () -> entries = [] for el in element.find(".rp-entry") entries.push { el: el scope: angular.element(el).scope() } entries.sort (a,b) -> a.s...
define [ "base" ], (App) -> App.directive "reviewPanelSorted", ($timeout) -> return { link: (scope, element, attrs) -> layout = () -> entries = [] for el in element.find(".rp-entry") entries.push { el: el scope: angular.element(el).scope() } entries.sort (a,b) -> a.s...
Use evalAsync instead of timeout
Use evalAsync instead of timeout
CoffeeScript
agpl-3.0
sharelatex/sharelatex
203fc68e2c94a27b59e4b14c73e2b83f5f3873f5
app/assets/javascripts/controllers/admin_journal_user_controller.js.coffee
app/assets/javascripts/controllers/admin_journal_user_controller.js.coffee
ETahi.AdminJournalUserController = Ember.ObjectController.extend resetPasswordSuccess: (-> false ).property() resetPasswordFailure: (-> false ).property() modalId: (-> "#{@get('id')}-#{@get('username')}" ).property('username', 'id') actions: saveUser: -> @get('model').save() ...
ETahi.AdminJournalUserController = Ember.ObjectController.extend resetPasswordSuccess: false resetPasswordFailure: false modalId: (-> "#{@get('id')}-#{@get('username')}" ).property('username', 'id') actions: saveUser: -> @get('model').save() rollbackUser: -> @get('model').rollback(...
Remove property calls for default ones
Remove property calls for default ones
CoffeeScript
mit
johan--/tahi,johan--/tahi,johan--/tahi,johan--/tahi
7da52b177f10db1ece7cd47c2d57a4d779779854
app/assets/javascripts/workbench/workbench/views/datastream/latest_view.js.coffee
app/assets/javascripts/workbench/workbench/views/datastream/latest_view.js.coffee
class Workbench.Views.DatastreamLatestView extends Backbone.View template: JST["workbench/workbench/templates/latest"] initialize: -> # Animate out, update content, animate back in swapHtml: ($element, content) -> $element.transition(rotateX: '90deg').promise().done(-> @html(content).transition(rota...
class Workbench.Views.DatastreamLatestView extends Backbone.View template: JST["workbench/workbench/templates/latest"] initialize: -> # Animate out, update content, animate back in swapHtml: ($element, content) -> $element.transition(rotateX: '90deg').promise().done(-> @html(content).transition(rota...
Improve display of no data values
Improve display of no data values
CoffeeScript
mit
GeoSensorWebLab/Arctic-Scholar-Portal,GeoSensorWebLab/asw-workbench,GeoSensorWebLab/Arctic-Scholar-Portal,GeoSensorWebLab/asw-workbench,GeoSensorWebLab/asw-workbench
65bc9545e4c1de417a9c7f29abe06e2ac66cf9e6
spec/util-spec.coffee
spec/util-spec.coffee
uri = require('../lib/util/uri-helpers') xdescribe 'resolveURL()', -> it 'should replace the last segment', -> expect(uri.resolveURL('a', 'b')).toBe 'b' expect(uri.resolveURL('x/y', 'z')).toBe 'x/z' expect(uri.resolveURL('m', 'n/o')).toBe 'n/o' expect(uri.resolveURL('a/b', 'c/d')).toBe 'a/c/d' it ...
uri = require('../lib/util/uri-helpers') clone = require('../lib/util/clone-obj') xdescribe 'resolveURL()', -> it 'should replace the last segment', -> expect(uri.resolveURL('a', 'b')).toBe 'b' expect(uri.resolveURL('x/y', 'z')).toBe 'x/z' expect(uri.resolveURL('m', 'n/o')).toBe 'n/o' expect(uri.reso...
Add tests for object clone().
Add tests for object clone().
CoffeeScript
mit
json-schema-faker/deref,pateketrueke/deref
46d959963d480bf9a7a06e34eaac8e0db640e834
src/spec_setup.coffee
src/spec_setup.coffee
if typeof window isnt 'undefined' root = window else root = global if !root._spec_setup root.sinon = require 'sinon' root.mockery = require 'mockery' root.chai = require 'chai' root.expect = chai.expect root.sandbox = sinon.sandbox.create() sinonChai = require 'sinon-chai' chai.use sinonC...
require('es6-promise').polyfill() if typeof window isnt 'undefined' root = window else root = global if !root._spec_setup root.sinon = require 'sinon' root.mockery = require 'mockery' root.chai = require 'chai' root.expect = chai.expect root.sandbox = sinon.sandbox.create() sinonChai = req...
Add es6 promise polyfill to the spec setup
Add es6 promise polyfill to the spec setup
CoffeeScript
mit
efacilitation/eventric-testing
de6d5600136b9558cc1e7e5d05538fdb386ade25
lib/baconjs/from-resize.coffee
lib/baconjs/from-resize.coffee
Bacon = require("baconjs") # Observe mouse move and provide callback functions to react accordingly # # @param mouseDownEvent: {Event} Initial event that should be called prior to starting to observe changes here module.exports = (mouseDownEvent) -> mouseDoneStream = Bacon.fromEvent(document.body, "mouseup").merge(B...
Bacon = require 'baconjs' # Observe mouse move and provide callback functions to react accordingly # # @param initialEvent: {Event} Initial event that should be called prior to starting to observe changes here module.exports = (initialEvent) -> mouseUpStream = Bacon.fromEvent document, 'mouseup' mouseUpStream.onVa...
Simplify resize and make it work outside of doc
Simplify resize and make it work outside of doc
CoffeeScript
mit
viddo/atom-textual-velocity,onezoomin/atom-textual-velocity,viddo/atom-textual-velocity
72467a33e254091fd0edd781806c667d29e80d12
src/rcedit.coffee
src/rcedit.coffee
path = require 'path' {spawn} = require 'child_process' pairSettings = ['version-string'] singleSettings = ['file-version', 'product-version', 'icon'] module.exports = (exe, options, callback) -> rcedit = path.resolve __dirname, '..', 'bin', 'rcedit.exe' args = [exe] for name in pairSettings if options[nam...
path = require 'path' {spawn} = require 'child_process' pairSettings = ['version-string'] singleSettings = ['file-version', 'product-version', 'icon'] module.exports = (exe, options, callback) -> rcedit = path.resolve __dirname, '..', 'bin', 'rcedit.exe' args = [exe] for name in pairSettings if options[nam...
Add support for mac and linux with wine
Add support for mac and linux with wine
CoffeeScript
mit
dmascord/node-rcedit,dmascord/node-rcedit
1cd001a69266b784d0403f38bc2f8c5e09ae7b65
app/assets/javascripts/pods/pods_store.js.coffee
app/assets/javascripts/pods/pods_store.js.coffee
class @PodsStore update: (new_records) -> @writeObjects(new_records) all: -> records = [] promise = new Promise (resolve, reject) => @database (db) -> t = db.transaction 'pods', 'readwrite' store = t.objectStore('pods') keyRange = IDBKeyRange.lowerBound(0) r = store...
class @PodsStore update: (new_records) -> @writeObjects(new_records) all: -> records = [] promise = new Promise (resolve, reject) => @database (db) -> t = db.transaction 'pods', 'readonly' store = t.objectStore('pods') keyRange = IDBKeyRange.lowerBound(0) r = store....
Use readonly transactions for read operations.
Use readonly transactions for read operations.
CoffeeScript
mit
bsingr/cocoa-tree,bsingr/cocoa-tree,bsingr/cocoa-tree
199a05ca2e1097d1bec54c969e727239ddef23ca
src/coffee/cilantro/main.coffee
src/coffee/cilantro/main.coffee
### The 'main' script for bootstrapping the default Cilantro client. Projects can use this directly or emulate the functionality in their own script. ### require ['cilantro'], (c) -> # Session options options = url: c.config.get('url') credentials: c.config.get('credentials') # Open the d...
### The 'main' script for bootstrapping the default Cilantro client. Projects can use this directly or emulate the functionality in their own script. ### require ['cilantro'], (c) -> # Session options options = url: c.config.get('url') credentials: c.config.get('credentials') # Open the d...
Update the shared queries collection when a new query is created
Update the shared queries collection when a new query is created
CoffeeScript
bsd-2-clause
chop-dbhi/cilantro,chop-dbhi/cilantro,chop-dbhi/cilantro
803686cab31db407ef47d201652f1292a6c6692d
server/packages/repl/index.coffee
server/packages/repl/index.coffee
nconf = require 'nconf' net = require 'net' pkgman = require 'pkgman' repl = require 'repl' exports.$initialized = -> replServer = null # Feed all the goodies into a REPL for ultimate awesome. replServer = net.createServer (socket) -> s = repl.start( prompt: "shrub> " input: socket output: socket ...
fs = require 'fs' nconf = require 'nconf' net = require 'net' pkgman = require 'pkgman' repl = require 'repl' exports.$initialized = -> filename = "#{__dirname}/socket" replServer = null # Feed all the goodies into a REPL for ultimate awesome. replServer = net.createServer (socket) -> s = repl.start( p...
Make sure REPL sockets are cleaned up no matter how the server shuts down
Make sure REPL sockets are cleaned up no matter how the server shuts down
CoffeeScript
mit
cha0s/shrub,cha0s/shrub,cha0s/shrub
9e65e5e8130051aa9e6d9563fe2722185ecd13d5
services/web/public/coffee/ide/test-controls/controllers/TestControlsController.coffee
services/web/public/coffee/ide/test-controls/controllers/TestControlsController.coffee
define [ "base" "ace/ace" ], (App) -> App.controller "TestControlsController", ($scope) -> $scope.openProjectLinkedFileModal = () -> window.openProjectLinkedFileModal() $scope.openLinkedFileModal = () -> window.openLinkedFileModal() $scope.richText = () -> window.location.href = window.location.toS...
define [ "base" "ace/ace" ], (App) -> App.controller "TestControlsController", ($scope) -> $scope.openProjectLinkedFileModal = () -> window.openProjectLinkedFileModal() $scope.openLinkedFileModal = () -> window.openLinkedFileModal() $scope.richText = () -> current = window.location.toString() ta...
Fix loading of Rich Text page in Test Controls
Fix loading of Rich Text page in Test Controls
CoffeeScript
agpl-3.0
sharelatex/sharelatex
a6b2f49461a0a8e087f5493d48b32804fce4fdce
src/audio/sound.directional.coffee
src/audio/sound.directional.coffee
class DirectionalSound extends Wage.MeshSound constructor: (name, mesh, @angles, options) -> super name, mesh, options _init: (options) -> @panner.coneInnerAngle = angles.innerAngleDegrees @panner.coneOuterAngle = angles.outerAngleDegrees @panner.coneOuterGain = angles.outerGain...
class DirectionalSound extends Wage.MeshSound constructor: (name, mesh, @angles, options) -> super name, mesh, options _init: (options) -> @panner.coneInnerAngle = @angles.innerAngleDegrees @panner.coneOuterAngle = @angles.outerAngleDegrees @panner.coneOuterGain = @angles.outerG...
Fix a typo in last commit
Fix a typo in last commit
CoffeeScript
bsd-3-clause
marco-ponds/Wage,marco-ponds/Wage,marco-ponds/Wage,marco-ponds/Wage
fd01ce6f5bd70bb7d3bbabc6f4d6e1bc609c71c4
lib/web/scripts/App.coffee
lib/web/scripts/App.coffee
Backbone = require('backbone') [Control, Controls] = require('./Control.coffee') Router = require('./Router.coffee') AppView = require('./AppView.coffee') module.exports = class App extends Backbone.Model initialize: -> @log "Jarvis web client here" Backbone.$ = window.$ @router = new Router(app: this) ...
Backbone = require('backbone') [Control, Controls] = require('./Control.coffee') Router = require('./Router.coffee') AppView = require('./AppView.coffee') module.exports = class App extends Backbone.Model initialize: -> @log "Jarvis web client here" Backbone.$ = window.$ @router = new Router(app: this) ...
Add some debug logging for socket connections
Add some debug logging for socket connections
CoffeeScript
mit
monitron/jarvis-ha,monitron/jarvis-ha
faaae67a0768e766db845c4fbec711165ec2a44d
core/app/backbone/views/channel_view.coffee
core/app/backbone/views/channel_view.coffee
class window.ChannelView extends Backbone.Marionette.Layout template: 'channels/channel' regions: factList: '.js-region-fact-list' subChannelsRegion: '.js-region-sub-channels' addToChannelRegion: '.js-region-add-to-channel' creatorProfileRegion: ".js-region-creator-profile" events: 'change ....
class window.ChannelView extends Backbone.Marionette.Layout template: 'channels/channel' regions: factList: '.js-region-fact-list' subChannelsRegion: '.js-region-sub-channels' addToChannelRegion: '.js-region-add-to-channel' creatorProfileRegion: ".js-region-creator-profile" events: 'change ....
Hide subchannels when showing all factlinks in topic
Hide subchannels when showing all factlinks in topic
CoffeeScript
mit
daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core
f046ca2bc28e4fb41480c23686ccc470c4ec5ea3
test/specs.coffee
test/specs.coffee
require 'coffee-script/register' require './setup' {eachGroup} = require('../lib/specs_iterator') eachGroup (group) -> run = if group.pending then xdescribe else describe run group.name, -> group.specs.forEach (spec) -> it spec.name, do (spec) -> -> result = js2coffee(spec.input) try ...
require 'coffee-script/register' require './setup' {eachGroup} = require('../lib/specs_iterator') eachGroup (group) -> run = if group.pending then xdescribe else describe run group.name, -> group.specs.forEach (spec) -> it spec.name, do (spec) -> -> result = js2coffee(spec.input) try ...
Add a mocha workaround for diffs.
Add a mocha workaround for diffs.
CoffeeScript
mit
js2coffee/js2coffee,simudream/js2coffee,datachand/js2coffee,salipro4ever/js2coffee,vinodpanicker/js2coffee,kustomzone/js2coffee,marnen/js2coffee
9163e467cce1f63a86558525a7b4eccee9c523f6
app/clients.coffee
app/clients.coffee
RECORDS = {} init_records = (name) -> ($ ".current_xml").append RECORDS[name] = ($ "<#{name}>") init_records "clients" init_records "groups" @open_clients = -> menu_slide -> ($ ".groupform").remove() ($ ".arena").append form().addClass "clientform" ($ ".arena").append form().addClass "groupform" ...
RECORDS = {} init_records = (name) -> ($ ".current_xml").append RECORDS[name] = ($ "<#{name}>") init_records "clients" init_records "groups" @open_clients = -> menu_slide -> ($ ".clientform").remove() ($ ".groupform").remove() ($ ".arena").append form().addClass "clientform" ($ ".arena").append f...
Make sure that there's only one form for each type of records.
Make sure that there's only one form for each type of records.
CoffeeScript
mit
SvenMichaelKlose/cjx,SvenMichaelKlose/cjx
349deff1fc08d986029b3c7dcec142f382c8c090
test/suite.coffee
test/suite.coffee
"use strict" request = require 'supertest' assert = require 'assert' exports.app = app = require './../coffee/server.coffee' exports.data = data = require('./util/data-gen.coffee')(100) before (done) -> app.once 'ready', done beforeEach (done) -> db = app.get 'db' db.collection('test').drop (err) -> #throw er...
"use strict" request = require 'supertest' assert = require 'assert' exports.app = app = require './../coffee/server.coffee' exports.data = data = require('./util/data-gen.coffee')(100) before (done) -> app.once 'ready', done beforeEach (done) -> db = app.get 'db' db.collection('test').drop (err) -> #throw er...
Add unit test for /objekttyper listing
Add unit test for /objekttyper listing
CoffeeScript
mit
Turbasen/Turbasen,Turistforeningen/Turbasen
805574b9293c14b2841e655ed6646bc3bece00ab
cli-rs-dev.coffee
cli-rs-dev.coffee
supervisor = require 'supervisor' main = () -> supervisor.run [ '--quiet' '--exec', 'node' '--no-restart-on', 'exit' '--extensions', 'coffee,js,json,yml' '/Users/a/code/ReclaimSoftware/rs-runner/devrun.js' ] module.exports = {main}
fs = require 'fs' supervisor = require 'supervisor' main = () -> supervisor.run [ '--quiet' '--exec', 'node' '--no-restart-on', 'exit' '--extensions', 'coffee,js,json,yml' fs.realpathSync("#{__dirname}/devrun.js") ] module.exports = {main}
Fix what was supposed to be a temp path
Fix what was supposed to be a temp path
CoffeeScript
mit
ReclaimSoftware/rs-runner,ReclaimSoftware/rs-runner
7d281fbf07932d9ac50854f48d3faf4bb8ff217e
lib/styleguide.coffee
lib/styleguide.coffee
StyleguideView = null styleguideUri = 'atom://styleguide' createStyleguideView = (state) -> StyleguideView ?= require './styleguide-view' new StyleguideView(state) deserializer = name: 'StyleguideView' deserialize: (state) -> createStyleguideView(state) atom.deserializers.add(deserializer) module.exports = ...
StyleguideView = null styleguideUri = 'atom://styleguide' createStyleguideView = (state) -> StyleguideView ?= require './styleguide-view' new StyleguideView(state) deserializer = name: 'StyleguideView' deserialize: (state) -> createStyleguideView(state) atom.deserializers.add(deserializer) module.exports = ...
Add atom prefix to rootView reference
Add atom prefix to rootView reference
CoffeeScript
mit
atom/styleguide
9b17d6cab389086331820d0e204e21d23f79eb78
app/assets/javascripts/calls.coffee
app/assets/javascripts/calls.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/ # http://stackoverflow.com/questions/1307705/jquery-ui-sortable-with-table-and-tr-width/1372954#1372954 # ht...
# 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/ jQuery -> $('#call_list td').each (index, element) -> $(element).css('width', $(element).width()...
Revert "use helper to preserve cell widths" because the other rows' cells' widths are not preserved.
Revert "use helper to preserve cell widths" because the other rows' cells' widths are not preserved. This reverts commit 4e610c8302be12f686e8fe1262b4f9e1e04b0cad.
CoffeeScript
mit
lomky/dcaf_case_management,Kevin-Wei/dcaf_case_management,rivers/dcaf_case_management,mchelen/dcaf_case_management,colinxfleming/dcaf_case_management,mchelen/dcaf_case_management,charleshuang80/dcaf_case_management,lomky/dcaf_case_management,colinxfleming/dcaf_case_management,charleshuang80/dcaf_case_management,DCAFEng...
4801a875a8502dc2c779e328bd0f3377b214671f
src/app/projects/project-portfolio-wizard/portfolio-review-step/portfolio-review-step.coffee
src/app/projects/project-portfolio-wizard/portfolio-review-step/portfolio-review-step.coffee
angular.module('doubtfire.projects.project-portfolio-wizard.portfolio-review-step', []) # # Step for students to view their portfolio and optionally delete it # .directive('portfolioReviewStep', -> restrict: 'E' templateUrl: 'projects/project-portfolio-wizard/portfolio-review-step/portfolio-review-step.tpl.html' ...
angular.module('doubtfire.projects.project-portfolio-wizard.portfolio-review-step', []) # # Step for students to view their portfolio and optionally delete it # .directive('portfolioReviewStep', -> restrict: 'E' templateUrl: 'projects/project-portfolio-wizard/portfolio-review-step/portfolio-review-step.tpl.html' ...
Fix bug preventing portfolios from being deleted
FIX: Fix bug preventing portfolios from being deleted
CoffeeScript
agpl-3.0
final-year-project/doubtfire-web,final-year-project/doubtfire-web,doubtfire-lms/doubtfire-web,alexcu/doubtfire-web,alexcu/doubtfire-web,doubtfire-lms/doubtfire-web,doubtfire-lms/doubtfire-web,doubtfire-lms/doubtfire-web
a57b141bbdd0b8e067ba9cf84069284e937aa527
app/classifier/tutorial-button.cjsx
app/classifier/tutorial-button.cjsx
React = require 'react' Tutorial = require '../lib/tutorial' module.exports = React.createClass getDefaultProps: -> workflow: null project: null user: null getInitialState: -> tutorial: null componentDidMount: -> @fetchTutorialFor @props.workflow componentWillReceiveProps: (nextProps) ->...
React = require 'react' Tutorial = require '../lib/tutorial' module.exports = React.createClass getDefaultProps: -> workflow: null project: null user: null getInitialState: -> tutorial: null componentDidMount: -> @fetchTutorialFor @props.workflow componentWillReceiveProps: (nextProps) ->...
Fix unknown props on TutorialButton
Fix unknown props on TutorialButton
CoffeeScript
apache-2.0
jelliotartz/Panoptes-Front-End,parrish/Panoptes-Front-End,amyrebecca/Panoptes-Front-End,amyrebecca/Panoptes-Front-End,jelliotartz/Panoptes-Front-End,zooniverse/Panoptes-Front-End,jelliotartz/Panoptes-Front-End,parrish/Panoptes-Front-End,parrish/Panoptes-Front-End,amyrebecca/Panoptes-Front-End
c3e14b436779aba292f458923623bec114e2853c
src/coffee/edsl.coffee
src/coffee/edsl.coffee
angular.module 'qbn.edsl', ['qbn.quality', 'qbn.storylet', 'qbn.choice'] .factory 'qbnEdsl', (qualities, storylets, frontalChoices, choiceFactory) -> api = quality: (id, name, description, args = {}) -> {value, progress, maxProgress, hasProgress, progressEscalation, visible} = args ...
angular.module 'qbn.edsl', ['qbn.quality', 'qbn.storylet', 'qbn.choice'] .factory 'qbnEdsl', (qualities, storylets, frontalChoices, choiceFactory) -> api = quality: (id, name, description, args = {}) -> {value, progress, maxProgress, hasProgress, progressEscalation, visible} = args value ?= ...
Improve Names of Choice EDSL Parameters
Improve Names of Choice EDSL Parameters
CoffeeScript
unlicense
arashikou/exper3-2015
50e661223532f41bcd96f634f98d13cc9fa41233
app/assets/javascripts/lib/models/scenario.coffee
app/assets/javascripts/lib/models/scenario.coffee
class @Scenario extends Backbone.Model api_session_id: => key = App.settings.get('api_session_id') return if key? then key else null api_attributes: => s = App.settings data = area_code: s.get('area_code') end_year: s.get('end_year') preset_scenario_id: s.get('preset_scenario_id')...
class @Scenario extends Backbone.Model api_session_id: => key = App.settings.get('api_session_id') return if key? then key else null api_attributes: => s = App.settings data = area_code: s.get('area_code') end_year: s.get('end_year') preset_scenario_id: s.get('preset_scenario_id')...
Remove extra "/" in Scenario url_path
Remove extra "/" in Scenario url_path
CoffeeScript
mit
quintel/etmodel,quintel/etmodel,quintel/etmodel,quintel/etmodel
ca5d0c82509cedb94f9bfa4a40e77706a58faafe
app/assets/javascripts/shortcuts_issueable.coffee
app/assets/javascripts/shortcuts_issueable.coffee
#= require shortcuts_navigation class @ShortcutsIssueable extends ShortcutsNavigation constructor: (isMergeRequest) -> super() Mousetrap.bind('a', -> $('.js-assignee').select2('open') return false ) Mousetrap.bind('m', -> $('.js-milestone').select2('open') return false ) ...
#= require shortcuts_navigation class @ShortcutsIssueable extends ShortcutsNavigation constructor: (isMergeRequest) -> super() Mousetrap.bind('a', -> $('.js-assignee').select2('open') return false ) Mousetrap.bind('m', -> $('.js-milestone').select2('open') return false ) ...
Add hotkey for "reply with selected text" to Issueable
Add hotkey for "reply with selected text" to Issueable
CoffeeScript
mit
mente/gitlabhq,hacsoc/gitlabhq,WSDC-NITWarangal/gitlabhq,bozaro/gitlabhq,hzy001/gitlabhq,dplarson/gitlabhq,yatish27/gitlabhq,williamherry/gitlabhq,martijnvermaat/gitlabhq,tim-hoff/gitlabhq,flashbuckets/gitlabhq,dukex/gitlabhq,michaKFromParis/gitlabhqold,julianengel/gitlabhq,larryli/gitlabhq,louahola/gitlabhq,ngpestelos...
a326cb5184c6291e1d45dad7e6820c09319b8abb
client/landing/app/Applications/Chat.kdapplication/Views/conversationlistitemtitle.coffee
client/landing/app/Applications/Chat.kdapplication/Views/conversationlistitemtitle.coffee
class ChatConversationListItemTitle extends JView constructor:(options = {}, data)-> options.cssClass = 'chat-item' data = [nick for nick in data when nick isnt KD.nick()].first super viewAppended:-> invitees = @getData() @accounts = [] for invitee in invitees KD.remote.cacheable i...
class ChatConversationListItemTitle extends JView constructor:(options = {}, data)-> options.cssClass = 'chat-item' # data = [nick for nick in data when nick isnt KD.nick()].first super viewAppended:-> invitees = @getData() @accounts = [] for invitee in invitees KD.remote.cacheable...
Disable for now, lets keep conversations with users own name.
Disable for now, lets keep conversations with users own name.
CoffeeScript
agpl-3.0
kwagdy/koding-1,acbodine/koding,kwagdy/koding-1,alex-ionochkin/koding,drewsetski/koding,mertaytore/koding,sinan/koding,kwagdy/koding-1,andrewjcasal/koding,rjeczalik/koding,cihangir/koding,drewsetski/koding,sinan/koding,alex-ionochkin/koding,sinan/koding,gokmen/koding,sinan/koding,usirin/koding,mertaytore/koding,rjeczal...
68f44803caee5ec6d8abed555c44f7342f5c5e23
client/skr/components/Currency.cjsx
client/skr/components/Currency.cjsx
class Skr.Components.Currency extends Lanes.React.Component getDefaultProps: -> amount: _.bigDecimal('0.0') symbol: '$' propTypes: amount: React.PropTypes.instanceOf(_.bigDecimal) symbol: React.PropTypes.string render: -> className = _.classnames 'currency', @props...
class Skr.Components.Currency extends Lanes.React.Component getDefaultProps: -> amount: _.bigDecimal('0.0') symbol: '$' propTypes: amount: React.PropTypes.oneOfType([ React.PropTypes.number, React.PropTypes.instanceOf(_.bigDecimal) ]) symbol: Rea...
Support setting currency with a number
Support setting currency with a number
CoffeeScript
agpl-3.0
argosity/stockor,argosity/stockor,argosity/stockor,argosity/stockor
d9499bea6a61c1d159488db608df463fbd621e6e
lib/buffer_update_component.coffee
lib/buffer_update_component.coffee
Utils = require './utils' {CompositeDisposable} = require 'atom' module.exports = class BufferUpdateComponent constructor: (@editor, @analysisAPI) -> @events = new CompositeDisposable() @events.add @editor.onDidStopChanging => descriptors = @editor.getRootScopeDescriptor() # We only support pure ...
_ = require 'lodash' Utils = require './utils' {CompositeDisposable} = require 'atom' module.exports = class BufferUpdateComponent constructor: (@editor, @analysisAPI) -> @events = new CompositeDisposable() updateFile = => descriptors = @editor.getRootScopeDescriptor() # We only support pure Dart...
Increase the delay for sending buffer updates to analysis server
Increase the delay for sending buffer updates to analysis server 300MS + 250MS = 550MS, with a maximum 1s wait time.
CoffeeScript
mit
radicaled/dart-tools
e58acd162b67915bfff41feec6c663331ae528c4
components/progress_bar/index.cjsx
components/progress_bar/index.cjsx
### @todo Add a circular progress variant ### require './style' module.exports = React.createClass # -- Properties propTypes: buffer : React.PropTypes.number max : React.PropTypes.number min : React.PropTypes.number value : React.PropTypes.number indetermina...
### @todo Add a circular progress variant ### require './style' module.exports = React.createClass # -- Properties propTypes: buffer : React.PropTypes.number className : React.PropTypes.string indeterminate : React.PropTypes.bool max : React.PropTypes.number min ...
Add a classname attribute and refactor progress bar
Add a classname attribute and refactor progress bar
CoffeeScript
mit
KerenChandran/react-toolbox,rubenmoya/react-toolbox,showings/react-toolbox,DigitalRiver/react-atlas,react-toolbox/react-toolbox,KerenChandran/react-toolbox,react-toolbox/react-toolbox,soyjavi/react-toolbox,showings/react-toolbox,soyjavi/react-toolbox,Magneticmagnum/react-atlas,react-toolbox/react-toolbox,jasonleibowitz...
1c3592abe92af33e91e1f56386606d6528d36fb1
src/filters.coffee
src/filters.coffee
minimatch = require 'minimatch' module.exports = class Filters @firstElementFilter: (value, i) -> i == 0 @fieldMatchFilter: (filter, value) -> for k, v of filter return false unless value[k]? and minimatch value[k], v true
minimatch = require 'minimatch' # Returns whether the string {str} matches the filter {filter}. matches = (str, filter) -> if filter instanceof RegExp filter.test str else minimatch str, filter module.exports = class Filters @firstElementFilter: (value, i) -> i == 0 @fieldMatchFilter: (fi...
Enable using regex as filter.
Enable using regex as filter.
CoffeeScript
mit
atom/node-github-releases
99a6900db7807ceed51b825a2557effdd061c2f9
Learn-terminal/index.coffee
Learn-terminal/index.coffee
config = require './config' api = require './api' capture = require './capture' display = require './display' # Set the interval for the operations interval = 1000 busy = false device_url = null api.registerDevice (err, result) -> device_url = result.device.url console.log device_url captureTask = (task) -> ...
config = require './config' api = require './api' capture = require './capture' display = require './display' # Set the interval for the operations interval = 1000 busy = false device_url = null api.registerDevice (err, result) -> device_url = result.device.url console.log device_url captureTask = (task) -> ...
Enable display on the RPi
Enable display on the RPi
CoffeeScript
apache-2.0
balazspete/smart-collaborations,balazspete/smart-collaborations
014cafa3a222eff662e95e7519170e514c5ec4ec
lib/command.coffee
lib/command.coffee
js2coffee = require('./js2coffee') _ = require('underscore') fs = require('fs') path = require('path') UnsupportedError = js2coffee.UnsupportedError basename = path.basename cmd = basename(process.argv[1]) build_and_show = (fname) -> contents = fs.readFileSync(fname, 'utf-8') output = js2coffee.build...
js2coffee = require('./js2coffee') _ = require('underscore') fs = require('fs') path = require('path') tty = require('tty') UnsupportedError = js2coffee.UnsupportedError basename = path.basename cmd = basename(process.argv[1]) build_and_show = (fname) -> contents = fs.readFileSync(fname, 'utf-8') outp...
Fix stdin probing on Linux
Fix stdin probing on Linux Fixes #54 Since linux doesn't throw EAGAIN when stdin is not ready, we can instead probe to see if stdin is a not a tty (has a pipe). When there is nothing on stdin and no files are given, print the usage instructions.
CoffeeScript
mit
coffee-js/js2coffee
04be9408909152bca577cefc0b308e738fc5ed7b
src/coffee/edsl.coffee
src/coffee/edsl.coffee
angular.module 'qbn.edsl', ['qbn.quality', 'qbn.storylet', 'qbn.choice'] .factory 'qbnEdsl', (qualities, storylets, frontalChoices, choiceFactory) -> api = quality: (id, name, description, args = {}) -> {value, progress, maxProgress, hasProgress, progressEscalation, visible} = args value ?= ...
angular.module 'qbn.edsl', ['qbn.quality', 'qbn.storylet', 'qbn.choice'] .factory 'qbnEdsl', (qualities, storylets, frontalChoices, choiceFactory) -> api = quality: (id, name, description, args = {}) -> {value, progress, maxProgress, hasProgress, progressEscalation, visible} = args value ?= ...
Use More Sensible Default for Choice Reqs
Use More Sensible Default for Choice Reqs
CoffeeScript
unlicense
arashikou/exper3-2015
b7a8e22d8264554018101fe6e877fabec7171616
spec/spec-suite.coffee
spec/spec-suite.coffee
require 'window' measure 'spec suite require time', -> fsUtils = require 'fs-utils' path = require 'path' require 'spec-helper' requireSpecs = (directoryPath, specType) -> for specPath in fsUtils.listTreeSync(path.join(directoryPath, 'spec')) when /-spec\.coffee$/.test specPath require specPath ...
require 'window' measure 'spec suite require time', -> fsUtils = require 'fs-utils' path = require 'path' require 'spec-helper' requireSpecs = (directoryPath, specType) -> for specPath in fsUtils.listTreeSync(path.join(directoryPath, 'spec')) when /-spec\.coffee$/.test specPath require specPath s...
Set spec type after all specs in the category are required
Set spec type after all specs in the category are required
CoffeeScript
mit
mnquintana/atom,anuwat121/atom,FoldingText/atom,toqz/atom,florianb/atom,rxkit/atom,xream/atom,rlugojr/atom,medovob/atom,pengshp/atom,jjz/atom,john-kelly/atom,Ju2ender/atom,kc8wxm/atom,hharchani/atom,palita01/atom,fang-yufeng/atom,GHackAnonymous/atom,niklabh/atom,Galactix/atom,Neron-X5/atom,FIT-CSE2410-A-Bombs/atom,flor...
a6cc7143d835a81ca6735320c1f050b31c7cd009
app/scripts/components/entities/PlayerClone.coffee
app/scripts/components/entities/PlayerClone.coffee
Crafty.c 'PlayerClone', init: -> @requires 'Enemy, playerShip' playerClone: (attr = {}) -> @attr _.defaults(attr, h: 45, w: 71, health: 900) @origin 'center' @flipX() @colorOverride '#808080', 'partial' @enemy() this
Crafty.c 'PlayerClone', init: -> @requires 'Enemy, playerShip' playerClone: (attr = {}) -> @attr _.defaults(attr, h: 45, w: 71, health: 900, weaponOrigin: [5, 30] ) @origin 'center' @flipX() @colorOverride '#808080', 'partial' @enemy() this
Improve weapon position player clone
Improve weapon position player clone
CoffeeScript
mit
matthijsgroen/game-play,matthijsgroen/game-play,matthijsgroen/game-play
209b36b1e5328b762af558caec6046b865b3922c
src/address.coffee
src/address.coffee
{DOMParser} = require 'xmldom' xpath = require 'xpath' request = require 'request' module.exports = getAddress: (company, callback) -> url = "http://www.sec.gov/cgi-bin/browse-edgar?action=getcompany&output=atom&start=0&count=1&CIK=#{company}" request url, (error, response, body) -> if error? ...
{DOMParser} = require 'xmldom' xpath = require 'xpath' request = require 'request' module.exports = getAddress: (company, callback) -> baseUrl = process.env.SEC_EDGAR_URL ? 'http://www.sec.gov/cgi-bin/browse-edgar' url = "#{baseUrl}?action=getcompany&output=atom&start=0&count=1&CIK=#{company}" request u...
Support SEC_EDGAR_URL env var in getAddress()
Support SEC_EDGAR_URL env var in getAddress()
CoffeeScript
mit
krisalexander/filings,parrondo/filings,kevinsawicki/filings
6bdb5787869bc6343e172dd0205198c4af65d764
settings/rust.cson
settings/rust.cson
'.source.rust': 'editor': 'commentStart': '// ' 'increaseIndentPattern': '(?x) ^ .* \\{ [^}"\']* $ |^ .* \\( [^\\)"\']* $ |^ \\s* \\{ \\} $ ' 'decreaseIndentPattern': '(?x) ^ \\s* (\\s* /[*] .* [*]/ \\s*)* \\} |^ \\s* (\\s* /[*] .* [*]/ \\s*)* \\) ' 'tabLeng...
'.source.rust': 'editor': 'commentStart': '// ' 'increaseIndentPattern': '(?x) ^ .* \\{ [^}"\']* $ |^ .* \\( [^\\)"\']* $ |^ \\s* \\{ \\} $ ' 'decreaseIndentPattern': '(?x) ^ \\s* (\\s* /[*] .* [*]/ \\s*)* \\} |^ \\s* (\\s* /[*] .* [*]/ \\s*)* \\) ' 'tabLeng...
Fix default values for tablength and line length
Fix default values for tablength and line length
CoffeeScript
mit
vertexclique/tokamak,vertexclique/tokamak