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
d98eb6b0cfed978c210821e61cd53703d5161bbb
lib/tree.coffee
lib/tree.coffee
module.exports = treeView: null activate: (rootView, @state) -> if state @createView().attach() if state.attached else if rootView.project.getPath() and not rootView.pathToOpenIsFile @createView().attach() rootView.command 'tree-view:toggle', => @createView().toggle() rootView.command ...
module.exports = treeView: null activate: (@state) -> if state @createView().attach() if state.attached else if rootView.project.getPath() and not rootView.pathToOpenIsFile @createView().attach() rootView.command 'tree-view:toggle', => @createView().toggle() rootView.command 'tree-view...
Remove rootView as parameter to activate
Remove rootView as parameter to activate
CoffeeScript
mit
matthewbauer/tree-view,learn-co/learn-ide-tree,Galactix/tree-view,ALEXGUOQ/tree-view,samu/tree-view,tomekwi/tree-view,laituan245/tree-view,rajendrant/tree-view-remote,ayumi/tree-view,cgrabowski/webgl-studio-tree-view,thgaskell/tree-view,atom/tree-view,pombredanne/tree-view-1,benjaminRomano/tree-view,jasonhinkle/tree-vi...
31d6d7314c685fcdd9023a07f1972091d20074a4
core/app/backbone/models/fact_relation.coffee
core/app/backbone/models/fact_relation.coffee
class window.FactRelation extends Evidence defaults: evidence_type: 'FactRelation' setOpinion: (type) -> $.ajax url: @url() + "/opinion/" + type success: (data) => mp_track "Evidence: Opinionate", opinion: type evidence_id: @id @set data type: "post"...
class window.FactRelation extends Evidence defaults: evidence_type: 'FactRelation' setOpinion: (type) -> $.ajax url: @url() + "/opinion/" + type success: (data) => mp_track "Evidence: Opinionate", opinion: type evidence_id: @id @set data type: "post"...
Update fact whenever from_fact changes -- this prevents a timing issue in Backbone, as such specific event handlers are executed before "change" itself.
Update fact whenever from_fact changes -- this prevents a timing issue in Backbone, as such specific event handlers are executed before "change" itself.
CoffeeScript
mit
daukantas/factlink-core,daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core,Factlink/factlink-core
db7cff25159020f2e8e4fbecd86f940fa5793bee
Atom/snippets.cson
Atom/snippets.cson
# https://atom.io/docs/latest/using-atom-snippets '.source.js': 'Mocha Describe': 'prefix': 'describe' 'body': """ describe('$1', function() { $2 }) """ 'Mocha Context': 'prefix': 'context' 'body': """ context('$1', function() { $2 }) """ 'Mocha Bef...
# https://atom.io/docs/latest/using-atom-snippets '.source.js': 'Mocha Describe': 'prefix': 'describe' 'body': """ describe('$1', () => { $2 }) """ 'Mocha Context': 'prefix': 'context' 'body': """ context('$1', () => { $2 }) """ 'Mocha BeforeEach': ...
Change syntax to follow ES6 conventions
Change syntax to follow ES6 conventions
CoffeeScript
mit
josh-egan/Configurations,josh-egan/Configurations
dea093d4bb4d4672e7aaa98c56946a8850cbfb72
src/views/ui/nav_group/index.coffee
src/views/ui/nav_group/index.coffee
styles = require('styles').ui Controller = require 'views/controller' View = require 'views/base' module.exports = class NavGroup extends View viewName: 'iPhone::NavigationGroup' attributes: styles.window.view initialize: -> @initializeController() initializeController: -> @controller = new Cont...
styles = require('styles').ui Controller = require 'views/controller' View = require 'views/base' module.exports = class NavGroup extends View viewName: 'iPhone::NavigationGroup' attributes: styles.window.view initialize: -> @initializeController() initializeController: -> @controller = new Cont...
Use @presenter from NavGroup instead of @options.viewClass
Use @presenter from NavGroup instead of @options.viewClass More consistent with TabGroup
CoffeeScript
mit
vcu/titanium-backbone,vcu/titanium-backbone,trabian/titanium-backbone,trabian/titanium-backbone
266f331e5cf0451976873f0b2b39b868f42741e4
assets/js/src/main.coffee
assets/js/src/main.coffee
'use strict' $ -> if Uno.is 'device', 'desktop' $('a').not('[href*="mailto:"]').click -> if this.href.indexOf(location.hostname) is -1 window.open $(this).attr 'href' false else FastClick.attach Uno.app if Uno.is('page', 'home') or Uno.is('page', 'paged') Uno.timeAgo '#posts-l...
'use strict' $ -> if Uno.is 'device', 'desktop' $('a').not('[href*="mailto:"]').click -> if this.href.indexOf(location.hostname) is -1 window.open $(this).attr 'href' false else FastClick.attach Uno.app if Uno.is('page', 'home') or Uno.is('page', 'paged') or Uno.is('page', 'tag') ...
Apply effect in tag version as well.
Apply effect in tag version as well.
CoffeeScript
mit
meal/uno-zen,conexionweb/mikenieva,JIANHUI2015/uno-zen,Kikobeats/uno-zen,meal/uno-zen,conexionweb/mikenieva,hmobius/uno-zen,BradMcGonigle/uno-zen,hmobius/uno-zen,robincsamuel/uno-zen,Kikobeats/uno-zen,JIANHUI2015/uno-zen,bestswifter/uno-zen,bestswifter/uno-zen,robincsamuel/uno-zen,BradMcGonigle/uno-zen
51204c49c0d59bb5807aa32ab835e39227cf9fe8
app/assets/javascripts/neighborly/balanced/creditcard/payments.js.coffee
app/assets/javascripts/neighborly/balanced/creditcard/payments.js.coffee
Neighborly.Neighborly ?= {} Neighborly.Neighborly.Balanced ?= {} Neighborly.Neighborly.Balanced.Creditcard ?= {} Neighborly.Neighborly.Balanced.Creditcard.Payments ?= {} Neighborly.Neighborly.Balanced.Creditcard.Payments.New = Backbone.View.extend el: '.neigh...
Neighborly.Neighborly ?= {} Neighborly.Neighborly.Balanced ?= {} Neighborly.Neighborly.Balanced.Creditcard ?= {} Neighborly.Neighborly.Balanced.Creditcard.Payments ?= {} Neighborly.Neighborly.Balanced.Creditcard.Payments.New = Backbone.View.extend el: '.neigh...
Create a new credit card on Balanced when submitting CreditCard form
Create a new credit card on Balanced when submitting CreditCard form
CoffeeScript
mit
FromUte/dune-balanced-creditcard,FromUte/dune-balanced-creditcard,FromUte/dune-balanced-creditcard
fcac0644107f1ff4c5213bc93f0ac58e59c387f5
app/views/application.coffee
app/views/application.coffee
View = Em.View.extend classNames: ['application-wrapper'] didInsertElement: -> Em.run.scheduleOnce 'afterRender', => @doResize() $(window).on 'resize', => Em.run.debounce @, @doResize, 200 `export default View`
View = Em.View.extend classNames: ['application-wrapper'] didInsertElement: -> $(window).on 'resize', => Em.run @, -> Em.run.debounce @, @doResize, 200 Em.run.scheduleOnce 'afterRender', @, -> @doResize() `export default View`
Clean up run loop call
Clean up run loop call
CoffeeScript
mit
artzte/fightbook-app
fe4fc845045a7cb8bbc2516114840e141d96d4ba
grunt/6to5.coffee
grunt/6to5.coffee
module.exports = options: sourceMap: true dist: options: modules: 'amd' files: [{ expand: true, cwd: 'src', src: ['**/*.js'], dest: 'tmp/' }] test: options: modules: 'amd' files: [{ expand: true, cwd: 'test/src' src: ['**/*.js'] d...
module.exports = options: sourceMap: true loose: ['classes'] dist: options: modules: 'amd' files: [{ expand: true, cwd: 'src', src: ['**/*.js'], dest: 'tmp/' }] test: options: modules: 'amd' files: [{ expand: true, cwd: 'test/src' s...
Add loose mode for classes
Add loose mode for classes
CoffeeScript
mit
freezedev/flockn,freezedev/flockn
1aa83b4908ee4c6ef3922e8018a85b1f2e2dc7d3
lib/spell-check-handler.coffee
lib/spell-check-handler.coffee
module.exports = findMisspellings: (text) -> wordRegex = /(?:^|\s)([a-zA-Z']+)(?=\s|\.|$)/g row = 0 misspellings = [] for line in text.split('\n') while matches = wordRegex.exec(line) word = matches[1] continue unless $native.isMisspelled(word) startColumn = matches.index...
module.exports = findMisspellings: (text) -> wordRegex = /(?:^|[\s\[\]])([a-zA-Z']+)(?=[\s\.\[\]]|$)/g row = 0 misspellings = [] for line in text.split('\n') while matches = wordRegex.exec(line) word = matches[1] continue unless $native.isMisspelled(word) startColumn = ma...
Add [] as word boundaries
Add [] as word boundaries This is a common boundary used in markdown link text
CoffeeScript
mit
atom/spell-check
83d04f39f9705c068ca3cb269ceba93880734af2
server/libs/container/createVolume.coffee
server/libs/container/createVolume.coffee
fs = require "fs-extra" path = require "path" sanitize = require "sanitize-filename" uuid = require "node-uuid" module.exports = (files, cb) -> basePath = path.dirname(require.main.filename) volume = path.join basePath, 'uploads', uuid.v4() fs.ensureDirSync(volume) for file in files file...
fs = require "fs-extra" path = require "path" sanitize = require "sanitize-filename" uuid = require "node-uuid" module.exports = (files, cb) -> basePath = path.dirname(require.main.filename) volume = path.join basePath, 'uploads', uuid.v4() fs.ensureDir volume, (err) -> unwrittenFileCount ...
Remove blocking on synchronous volume creationg
Remove blocking on synchronous volume creationg
CoffeeScript
apache-2.0
kvchen/codeframe,kvchen/codeframe,kvchen/codeframe
ed656d4b3ed277118080181e955d5b24aa783a85
src/heroku-git.coffee
src/heroku-git.coffee
fs = require 'fs' path = require 'path' Repository = require('git-cli').Repository prepareBranch = (repo, branch, callback) -> repo.checkout 'heroku', (err) -> repo.merge 'master', -> callback?(err, repo, branch) checkBranch = (repo, callback) -> repo.currentBranch (err, branch) -> rep...
fs = require 'fs' path = require 'path' Repository = require('git-cli').Repository prepareBranch = (repo, branch, callback) -> repo.checkout 'heroku', (err) -> repo.merge 'master', -> callback?(err, repo, branch) checkBranch = (repo, callback) -> repo.currentBranch (err, branch) -> rep...
Fix bug in add commit.
Fix bug in add commit.
CoffeeScript
mit
claudetech/heroku-publisher
b6f583df3d3035d8ad871dc8993bb5da8b4cf079
atom/packages.cson
atom/packages.cson
packages: [ "advanced-open-file" "atom-beautify" "atom-react-native-autocomplete" "auto-indent" "auto-update-packages" "autocomplete-elixir" "autocomplete-modules" "busy-signal" "color-picker" "emmet-simplified" "expand-region" "file-icons" "git-diff-popup" "git-plus" "git-time-machine" ...
packages: [ "advanced-open-file" "atom-beautify" "atom-elixir" "atom-react-native-autocomplete" "auto-indent" "auto-update-packages" "autocomplete-modules" "busy-signal" "color-picker" "emmet-simplified" "expand-region" "file-icons" "git-diff-popup" "git-plus" "git-time-machine" "hypercl...
Switch from autocomplete-elixir to atom-elixir
Switch from autocomplete-elixir to atom-elixir The former has been deprecated in favor of the latter (and causes a startup issue if elixir is not in the path).
CoffeeScript
mit
randycoulman/dotfiles
31d24e399c98432377441e114a828785869aae9a
gulp/tasks/style.coffee
gulp/tasks/style.coffee
gulp = require('gulp-help') require 'gulp' $ = do require 'gulp-load-plugins' config = require '../config' paths = require '../paths' util = require '../util' gulp.task 'style', false, -> gulp.src config.style .pipe $.plumber errorHandler: util.onError .pipe do $.less .pipe $.cssnano discardComments: remo...
gulp = require('gulp-help') require 'gulp' $ = do require 'gulp-load-plugins' config = require '../config' paths = require '../paths' util = require '../util' gulp.task 'style', false, -> gulp.src config.style .pipe $.plumber errorHandler: util.onError .pipe do $.less .pipe $.cssnano discardComments: remo...
Fix for zindex values being changed by gulp-cssnano by default
Fix for zindex values being changed by gulp-cssnano by default
CoffeeScript
mit
lipis/gae-init,gae-init/gae-init,gmist/fix-5studio,lipis/gae-init,gae-init/gae-init-debug,lipis/meet-notes,jakedotio/gae-init,gae-init/gae-init-babel,gae-init/gae-init,topless/gae-init,gae-init/gae-init-upload,jakedotio/gae-init,gmist/fix-5studio,vanessa-bell/hd-kiosk-v2,gmist/five-studio2,gae-init/gae-init-docs,mdxs/g...
e6be21581cca69ff37db57cb4b6a3131ff60df55
app.coffee
app.coffee
express = require 'express' mongoose = require 'mongoose' ext_type = require 'connect-ext-type' { createServer } = require 'http' { join } = require 'path' module.exports = express().configure -> @set 'port', process.env.PORT or 8070 @set 'view engine', 'jade' @set 'views', join __dirname, 'views' @locals ...
express = require 'express' mongoose = require 'mongoose' ext_type = require 'connect-ext-type' { createServer } = require 'http' { join } = require 'path' module.exports = express().configure -> @set 'port', process.env.PORT or 8070 @set 'view engine', 'jade' @set 'views', join __dirname, 'views' @set 'url', ...
Add a `url` setting, in addition to the local
Add a `url` setting, in addition to the local
CoffeeScript
agpl-3.0
shesek/bitrated,shesek/bitrated
667f0bf561e8338dbeed162d277f89a14db6ba98
app/assets/javascripts/favourites.js.coffee
app/assets/javascripts/favourites.js.coffee
$ -> if $('[data-action=favourite]').length > 0 $('body').on 'ajax:success', '[data-action=favourite] [data-remote]', (event, data, status, xhr) -> $(this).closest('[data-action=favourite]').replaceWith data $('form[data-action=change-collection] select').change -> $(this).closest('form').submit(...
$ -> if $('[data-action=favourite]').length > 0 $('body').on 'ajax:success', '[data-action=favourite] [data-remote]', (event, data, status, xhr) -> $(this).closest('[data-action=favourite]').replaceWith data $('body').on 'change', 'form[data-action=change-collection] select', -> $(this).closest('...
Fix select form not binding when injected via ajax
Fix select form not binding when injected via ajax
CoffeeScript
mit
xetrivity/wallgig,xetrivity/wallgig,jianyuan/wallgig,wallgig/wallgig,wallgig/wallgig
3f4795af14fbfa41d32d8ebf56a09bd709ca4af9
angular/core/components/poll/common/start_poll/poll_common_start_poll.coffee
angular/core/components/poll/common/start_poll/poll_common_start_poll.coffee
angular.module('loomioApp').directive 'pollCommonStartPoll', ($window, PollService, LmoUrlService) -> scope: {poll: '='} templateUrl: 'generated/components/poll/common/start_poll/poll_common_start_poll.html' controller: ($scope) -> $scope.currentStep = if $scope.poll.pollType then 'save' else 'choose' $sc...
angular.module('loomioApp').directive 'pollCommonStartPoll', ($window, Records, PollService, LmoUrlService) -> scope: {poll: '='} templateUrl: 'generated/components/poll/common/start_poll/poll_common_start_poll.html' controller: ($scope) -> $scope.currentStep = if $scope.poll.pollType then 'save' else 'choose...
Fix anyone can participate bug
Fix anyone can participate bug
CoffeeScript
agpl-3.0
piratas-ar/loomio,loomio/loomio,piratas-ar/loomio,loomio/loomio,piratas-ar/loomio,loomio/loomio,piratas-ar/loomio,loomio/loomio
d9b790b46a8cc7b392bc6292e5e56f4d709e5c48
app/assets/javascripts/all_aboard/components/perspective_assignment.js.coffee
app/assets/javascripts/all_aboard/components/perspective_assignment.js.coffee
AllAboard.PerspectiveAssignmentComponent = Em.Component.extend tagName: "li" classNames: [ "perspective-assignment" ] attributeBindings: [ "assignment.row:data-row", "assignment.column:data-col", "assignment.template.width:data-sizex", "assignment.template.height:data-sizey", "inlineStyle:styl...
AllAboard.PerspectiveAssignmentComponent = Em.Component.extend tagName: "li" classNames: [ "perspective-assignment" ] attributeBindings: [ "assignment.row:data-row", "assignment.column:data-col", "assignment.template.width:data-sizex", "assignment.template.height:data-sizey", "inlineStyle:styl...
Remove awfully pale color form random slide colors.
Remove awfully pale color form random slide colors. Can't read it.
CoffeeScript
mit
dpetersen/all_aboard,dpetersen/all_aboard
a49c55cec87c3b7ba73677b344ffdc9df190598b
lib/atomatigit.coffee
lib/atomatigit.coffee
RepoView = require './views/repo-view' Repo = require './models/repo' module.exports = configDefaults: pre_commit_hook: "", atomatigitView: null activate: (state) -> atom_git = atom.project.getRepo() path = atom_git.getWorkingDirectory() @repo = new Repo({path: path}) @repo_view = new RepoV...
RepoView = require './views/repo-view' Repo = require './models/repo' module.exports = configDefaults: pre_commit_hook: "", atomatigitView: null activate: (state) -> @repo = new Repo @repo_view = new RepoView(@repo) @insert_commands() insert_commands: -> atom.workspaceView.command "atom...
Remove unnecessary second git path definition.
:lipstick: Remove unnecessary second git path definition.
CoffeeScript
mit
tomekwi/atomatigit,aki77/atomatigit
2d0e8d2646f8d8b14fa9782a00a20576bc1070b0
app/assets/javascripts/error_handler.coffee
app/assets/javascripts/error_handler.coffee
email = 'support@roqua.nl' message = "Onbekende fout. Mail naar <a href='mailto:#{email}'>#{email}</a> voor hulp" applicationInitialized = -> Screensmart? && typeof Screensmart.store?.dispatch == 'function' showUnknownError = -> # Show error in a primitive way if something went wrong during initialization if ap...
email = 'support@roqua.nl' message = "Onbekende fout. Mail naar <a href='mailto:#{email}'>#{email}</a> voor hulp" applicationInitialized = -> Screensmart? && typeof Screensmart.store?.dispatch == 'function' showUnknownError = -> # Show error in a primitive way if something went wrong during initialization if ap...
Include settings in AJAX error message
Include settings in AJAX error message
CoffeeScript
mit
roqua/screensmart,roqua/screensmart,roqua/screensmart
02087f0dc673af5eceb06d53b5571bd66541fba9
server/methods.coffee
server/methods.coffee
Connection = Meteor.npmRequire 'ssh2' sshExec = (id, command, action, callback) -> room = Rooms.findOne id if room conn = new Connection() conn.on 'ready', -> conn.exec command, (err, stream) -> callback "Could not complete action '#{action}' on #{id}." if err stream.on 'exit', (code,...
Connection = Meteor.npmRequire 'ssh2' sshExec = (id, command, action, callback) -> room = Rooms.findOne id if room conn = new Connection() conn.on 'ready', -> conn.exec command, (err, stream) -> callback "Could not complete action '#{action}' on #{id}." if err stream.on 'exit', (code,...
Remove unused method leftover from earlier image transfer attempts.
Remove unused method leftover from earlier image transfer attempts.
CoffeeScript
mit
SussexLearningSystems/peakaboo,SussexLearningSystems/peakaboo,SussexLearningSystems/peakaboo
3b2bdb8397bb71c3fdbe09bd3cff3f4d2cfccf4d
app/assets/javascripts/admin/index_utils/directives/select2_min_search.js.coffee
app/assets/javascripts/admin/index_utils/directives/select2_min_search.js.coffee
angular.module("admin.indexUtils").directive "select2MinSearch", ($timeout) -> require: 'ngModel' link: (scope, element, attrs, ngModel) -> element.select2 minimumResultsForSearch: attrs.select2MinSearch scope.$watch attrs.ngModel, (newVal, oldVal) -> $timeout -> element.trigger('change')
angular.module("admin.indexUtils").directive "select2MinSearch", ($timeout) -> require: 'ngModel' link: (scope, element, attrs, ngModel) -> element.select2 minimumResultsForSearch: attrs.select2MinSearch ngModel.$formatters.push (value) -> element.select2('val', value) value
Change the way changes to underlying model are watched and updated for select2 elements
Change the way changes to underlying model are watched and updated for select2 elements
CoffeeScript
agpl-3.0
RohanM/openfoodnetwork,ltrls/openfoodnetwork,KateDavis/openfoodnetwork,openfoodfoundation/openfoodnetwork,lin-d-hop/openfoodnetwork,ltrls/openfoodnetwork,mkllnk/openfoodnetwork,Matt-Yorkley/openfoodnetwork,levent/openfoodnetwork,mkllnk/openfoodnetwork,Matt-Yorkley/openfoodnetwork,KateDavis/openfoodnetwork,Matt-Yorkley/...
19b6a5fdb278c7bd634c63ab8fb8b2182794f4d5
server/dataMethods.coffee
server/dataMethods.coffee
Meteor.methods allCampaigns: -> if not @userId? return 401 data = Campaigns.find({}, {sort: {createdAt: 1}}).fetch() for item in data item.canonicalUrl = encodeURI("#{process.env.SITE_URL}/campanha/#{item.name}/#{item._id}") return data myDonatedCampaigns: -> if not @userId? return 401 query =...
Meteor.methods userCampaigns: (userId) -> data = Campaigns.find({'user._id': userId}, {sort: {createdAt: 1}}).fetch() for item in data item.canonicalUrl = encodeURI("#{process.env.SITE_URL}/campanha/#{item.name}/#{item._id}") return data allCampaigns: -> data = Campaigns.find({}, {sort: {createdAt: 1}}).f...
Fix allCampaigns and create userCampaigns
Fix allCampaigns and create userCampaigns
CoffeeScript
mit
euajudo/web,euajudo/web
af399c7f7b45dfe4a2f824406af90399fe1ec638
scripts/github.coffee
scripts/github.coffee
# Description: # github の API をたたく # # Commands: # hubot github emoji yum #-> https://assets-cdn.github.com/images/icons/emoji/yum.png?v5 fs = require "fs" cachefile = "cache/github-emojis.json" module.exports = (robot) -> robot.respond /(?:github )?emoji(?: me)? (.*)/i, (msg) -> emojiMe msg, (url) -> ...
# Description: # github の API をたたく # # Commands: # hubot github emoji yum #-> https://assets-cdn.github.com/images/icons/emoji/yum.png?v5 fs = require "fs" cachefile = "cache/github-emojis.json" module.exports = (robot) -> robot.respond /(?:github )?emoji(?: me)? (.*)/i, (msg) -> emojiMe msg, (url) -> ...
Fix send message each emoji on emoji action
Fix send message each emoji on emoji action
CoffeeScript
mit
hokuken/hubot
f028791d3e3e901b03873799a8c269d6cec6dc64
src/pulsar-api.coffee
src/pulsar-api.coffee
_ = require('underscore') config = require('./config') async = require('async') PulsarApiClient = require('./pulsar-api-client') class PulsarApi _clientMap = {} constructor: ()-> pulsarApiConfig = config.pulsarApi clientDefaultConfig = _.pick(pulsarApiConfig, 'url', 'token') @_clientDefault = new Pu...
_ = require('underscore') config = require('./config') async = require('async') PulsarApiClient = require('./pulsar-api-client') class PulsarApi _clientMap = {} constructor: ()-> pulsarApiConfig = config.pulsarApi @_clientDefault = new PulsarApiClient(pulsarApiConfig.url, pulsarApiConfig.authToken) _...
Clarify PulsarApi construction. Remove the default config extending redundancy.
Clarify PulsarApi construction. Remove the default config extending redundancy.
CoffeeScript
mit
vogdb/hubot-pulsar,cargomedia/hubot-pulsar,vogdb/hubot-pulsar,cargomedia/hubot-pulsar
c91981d7dd64f9cc73758df5804baf8ab4314d45
app/assets/javascripts/angular/controllers/form_ctrl.js.coffee
app/assets/javascripts/angular/controllers/form_ctrl.js.coffee
angular.module("grumbles") .controller "FormCtrl", ($http, Output) -> @submit = -> return unless @command words = @command.split ' ' words.length = 3 path = words.join '/' $http.post("/cli/#{path}") .success (data, status, headers, config) => Output.add data ...
angular.module("grumbles") .controller "FormCtrl", ($http, Output) -> @commandQueue = [] @submit = -> return unless @command @commandQueue = @command.split("&&").map (command, index) -> query: command.trim() nextIndex: index + 1 queryCommand @commandQueue[0] queryCom...
Add command queue functionality using `&&`
Add command queue functionality using `&&`
CoffeeScript
mit
railsrumble/r14-team-354,hyperoslo/grumbles,hyperoslo/grumbles
a33fd6bb68b04cf6071f3a28d5955b21bc0526ef
lib/generators/backbone/scaffold/templates/views/index_view.coffee
lib/generators/backbone/scaffold/templates/views/index_view.coffee
<%= view_namespace %> ||= {} class <%= view_namespace %>.IndexView extends Backbone.View template: JST["<%= jst 'index' %>"] initialize: () -> _.bindAll(this, 'addOne', 'addAll', 'render'); @options.<%= plural_model_name %>.bind('reset', this.addAll); addAll: () -> @options.<%= plural_m...
<%= view_namespace %> ||= {} class <%= view_namespace %>.IndexView extends Backbone.View template: JST["<%= jst 'index' %>"] initialize: () -> _.bindAll(this, 'addOne', 'addAll', 'render') @options.<%= plural_model_name %>.bind('reset', @addAll) addAll: () -> @options.<%= plural_model_n...
Use proper CoffeeScript in scaffold
Use proper CoffeeScript in scaffold
CoffeeScript
mit
ipmobiletech/backbone-rails,ArthurN/backbone-rails,contently/backbone-rails,codebrew/backbone-rails,ArthurN/backbone-rails,contently/backbone-rails,ipmobiletech/backbone-rails,codebrew/backbone-rails,ipmobiletech/backbone-rails,contently/backbone-rails,contently/backbone-rails,codebrew/backbone-rails,ArthurN/backbone-r...
437152615bb4b1d9a115600e54776e59b5d45f01
app/assets/javascripts/reload_changes.js.coffee
app/assets/javascripts/reload_changes.js.coffee
$ -> if $('h1').html() == 'Changes' setTimeout(-> location.reload() , 10 * 1000)
$ -> if $('h1').html() == 'Changes' setTimeout(-> location.reload() , 120 * 1000)
Refresh changes page every 2 minutes.
Refresh changes page every 2 minutes.
CoffeeScript
agpl-3.0
nning/moeil,nning/moeil,nning/moeil,nning/moeil
1fd3f2723052d5e75e9f5b83b762f7acb871d08f
lib/snippet.coffee
lib/snippet.coffee
_ = require 'underscore' Range = require 'range' module.exports = class Snippet name: null prefix: null body: null lineCount: null tabStops: null constructor: ({@name, @prefix, bodyTree}) -> @body = @extractTabStops(bodyTree) extractTabStops: (bodyTree) -> tabStopsByIndex = {} bodyText = []...
_ = require 'underscore' {Range} = require 'telepath' module.exports = class Snippet name: null prefix: null body: null lineCount: null tabStops: null constructor: ({@name, @prefix, bodyTree}) -> @body = @extractTabStops(bodyTree) extractTabStops: (bodyTree) -> tabStopsByIndex = {} bodyText...
Remove Point and Range classes now provided by telepath
Remove Point and Range classes now provided by telepath
CoffeeScript
mit
terrycloth/atom-snippets,atom/snippets,bengy/snippets,lpommers/snippets,syndbg/snippets
c6f1a49d15613664534ed5f24f5f9d3729b6b7c5
Learn-server/handleImage.coffee
Learn-server/handleImage.coffee
fs = require 'fs' crypto = require 'crypto' path = require 'path' createHashID = -> crypto.createHash('sha1').update("#{Math.random()}").digest('hex'); module.exports = (file, callback) -> return callback("No `image` file. Make sure the `image` field is being set.") unless file p = path.normalize("#{global.im...
fs = require 'fs' crypto = require 'crypto' path = require 'path' createHashID = -> crypto.createHash('sha1').update("#{Math.random()}").digest('hex'); module.exports = (file, callback) -> return callback("No `image` file. Make sure the `image` field is being set.") unless file _path = path.normalize("#{globa...
Change image copy method to work accross different partitions
Change image copy method to work accross different partitions
CoffeeScript
apache-2.0
balazspete/smart-collaborations,balazspete/smart-collaborations
93922c99f196baf969e37073293d8a2bca6421b0
app/views/toolbox.coffee
app/views/toolbox.coffee
class Toolbox extends Backbone.View _.extend @prototype, Backbone.Events tagName: 'div' className: 'toolbox' template: require './templates/toolbox' events: 'click .tool-icon button' : 'createTool' 'click button[name="remove-tools"]' : 'removeTools' render: => tools = _.keys Ubret tools...
class Toolbox extends Backbone.View _.extend @prototype, Backbone.Events tagName: 'div' className: 'toolbox' template: require './templates/toolbox' events: 'click .tool-icon button' : 'createTool' 'click button[name="remove-tools"]' : 'removeTools' render: => tools = _.keys Ubret toolN...
Fix to remove BaseTool from Toolbox
Fix to remove BaseTool from Toolbox
CoffeeScript
apache-2.0
zooniverse/Ubret-Dashboard
14ed04d7d22d073816aa9b36e4fca75c866c1d60
keymaps/tree-ignore.cson
keymaps/tree-ignore.cson
# Keybindings require three things to be fully defined: A selector that is # matched against the focused element, the keystroke and the command to # execute. # # Below is a basic keybinding which registers on all platforms by applying to # the root workspace element. # For more detailed documentation see # https://ato...
# Keybindings require three things to be fully defined: A selector that is # matched against the focused element, the keystroke and the command to # execute. # # Below is a basic keybinding which registers on all platforms by applying to # the root workspace element. # For more detailed documentation see # https://ato...
Add keybinding for toggle command
Add keybinding for toggle command
CoffeeScript
mit
leny/atom-tree-ignore
dfb492ed9527b0399e51e284a78555a04bc5bc55
src/trix/elements/trix_toolbar_element.coffee
src/trix/elements/trix_toolbar_element.coffee
Trix.registerElement "trix-toolbar", defaultCSS: """ %t { white-space: nowrap; } %t [data-trix-dialog] { display: none; } %t [data-trix-dialog][data-trix-active] { display: block; } %t [data-trix-dialog] [data-trix-validate]:invalid { background-color: #ffdddd; ...
Trix.registerElement "trix-toolbar", defaultCSS: """ %t { white-space: nowrap; } %t [data-trix-dialog] { display: none; } %t [data-trix-dialog][data-trix-active] { display: block; } %t [data-trix-dialog] [data-trix-validate]:invalid { background-color: #ffdddd; ...
Fix blank <trix-toolbar> in Firefox
Fix blank <trix-toolbar> in Firefox
CoffeeScript
mit
basecamp/trix,basecamp/trix,basecamp/trix,basecamp/trix
7287cffd34e62acef0f9e945a795ccabe4b88bdf
app/assets/javascripts/models/commit.js.coffee
app/assets/javascripts/models/commit.js.coffee
Review.Commit = DS.Model.extend remoteId: DS.attr('string') message: DS.attr('string') state: DS.attr('string') remoteUrl: DS.attr('string') project: DS.belongsTo('project') expiresAt: DS.attr('date') createdAt: DS.attr('date') authoredAt: DS.attr('date') author: DS.belongsTo('author') tickets: DS.h...
Review.Commit = DS.Model.extend remoteId: DS.attr('string') message: DS.attr('string') state: DS.attr('string') remoteUrl: DS.attr('string') project: DS.belongsTo('project') expiresAt: DS.attr('date') createdAt: DS.attr('date') authoredAt: DS.attr('date') author: DS.belongsTo('author') tickets: DS.h...
Use new syntax for finding records
Use new syntax for finding records
CoffeeScript
mit
Naturaily/review,Naturaily/review,Naturaily/review
14c064216af44c0fc43ca9cbb737ff51bf8ee6e4
app/assets/javascripts/ab_admin/components/in_place_edit.js.coffee
app/assets/javascripts/ab_admin/components/in_place_edit.js.coffee
EditableForm = $.fn.editableform.Constructor EditableForm.prototype.saveWithUrlHook = (value) -> url = @options.url @options.url = (params) => params[@options.model] ||= {} params[@options.model][params.name] = value ajax_opts = url: url data: params type: 'PATCH' dataType: 'json...
EditableForm = $.fn.editableform.Constructor EditableForm.prototype.saveWithUrlHook = (value) -> url = @options.url @options.url = (params) => params[@options.model] ||= {} params[@options.model][params.name] = value params._method = 'PATCH' ajax_opts = url: url data: params type: ...
Add CORS support for in place edit
Add CORS support for in place edit
CoffeeScript
mit
sktocha/ab_admin,leschenko/ab_admin,leschenko/ab_admin,sktocha/ab_admin,sktocha/ab_admin,leschenko/ab_admin
9c669b05638fa7a8b42f21f9e75b840a77b0ea6b
spec/validate-schemas.coffee
spec/validate-schemas.coffee
tv4 = require 'tv4' chai = require 'chai' if not chai path = require 'path' fs = require 'fs' schemaPath = '../schema' getSchema = (name) -> filepath = path.join __dirname, schemaPath, name loadSchema filepath loadSchema = (filepath) -> content = fs.readFileSync filepath, { encoding: 'utf-8' } return JSON.par...
tv4 = require 'tv4' chai = require 'chai' if not chai path = require 'path' fs = require 'fs' schemaPath = '../schema' getSchema = (name) -> filepath = path.join __dirname, schemaPath, name loadSchema filepath loadSchema = (filepath) -> content = fs.readFileSync filepath, { encoding: 'utf-8' } return JSON.par...
Bring back schema meta validation
Test: Bring back schema meta validation
CoffeeScript
mit
flowbased/fbp-spec
e8327891ba5821d2183dc79f75629f815b8caf00
config/atom_config.cson
config/atom_config.cson
"*": core: disabledPackages: [ "spell-check" ] telemetryConsent: "limited" themes: [ "one-light-ui" "atom-light-syntax" ] editor: fontFamily: "Menlo" invisibles: {} softWrap: true "exception-reporting": userId: "0f9c4bca-c1e4-c885-1374-c2dd26290ade" "spell-c...
"*": core: telemetryConsent: "limited" themes: [ "one-light-ui" "atom-light-syntax" ] editor: fontFamily: "Menlo" invisibles: {} softWrap: true "exception-reporting": userId: "0f9c4bca-c1e4-c885-1374-c2dd26290ade" "spell-check": {} tabs: addNewTabsAtEnd: true welc...
Enable the spell checker for Atom
Enable the spell checker for Atom
CoffeeScript
mit
fredym/workenv
7614e998c3d7cb38124b448e0948fea4cd88e625
src/app/sessions/states/sign-out/sign-out.coffee
src/app/sessions/states/sign-out/sign-out.coffee
angular.module("doubtfire.sessions.states.sign-out", []) # # State for sign out # .config(($stateProvider) -> signOutStateData = url: "/sign_out" views: main: controller: "SignOutCtrl" templateUrl: "sessions/states/sign-out/sign-out.tpl.html" data: pageTitle: "_Sign Out_" $s...
angular.module("doubtfire.sessions.states.sign-out", []) # # State for sign out # .config(($stateProvider) -> signOutStateData = url: "/sign_out" views: main: controller: "SignOutCtrl" templateUrl: "sessions/states/sign-out/sign-out.tpl.html" data: pageTitle: "_Sign Out_" $s...
Add AAF signout redirect URL to config
ENHANCE: Add AAF signout redirect URL to config
CoffeeScript
agpl-3.0
doubtfire-lms/doubtfire-web,doubtfire-lms/doubtfire-web,doubtfire-lms/doubtfire-web,doubtfire-lms/doubtfire-web
1c99177d3e4ea189f748a138b264fee5cd0c3d30
src/server.coffee
src/server.coffee
# # Main API Server # restify = require 'restify' chalk = require 'chalk' newrelic = require './helpers/newrelic' exceptionHandler = require './helpers/exceptionhandler' logger = require './helpers/logger' app = module.exports = restify.createServer() listenHost = process.env.HOST or process.env.VCAP_APP_HOST or "0....
# # Main API Server # # Newrelic should be on the top newrelic = require './helpers/newrelic' restify = require 'restify' chalk = require 'chalk' exceptionHandler = require './helpers/exceptionhandler' logger = require './helpers/logger' app = module.exports = restify.createServer() listenHost = process.env.HOST or ...
Move Newrelic to the top
Move Newrelic to the top
CoffeeScript
mit
gszathmari/yobikeme,gszathmari/yobikeme
3eb6fe9deb9d91df5b696461ddf8fc47d93d6389
src/flux/stores/database.coffee
src/flux/stores/database.coffee
Reflux = require 'reflux' Actions = require '../actions/database' Common = require '../common/application' Got = require 'got' cache = loading: false connections: [] Store = Reflux.createStore( init: -> @listenToMany(Actions) onCreateConnection: (data) -> cache.loading = true @trigger() Got ...
Reflux = require 'reflux' Actions = require '../actions/database' Common = require '../common/application' Got = require 'got' cache = loading: false connections: [] Store = Reflux.createStore( init: -> @listenToMany(Actions) onCreateConnection: (data) -> cache.loading = true @trigger() Got ...
Use unshift instead of push for creating connections
Use unshift instead of push for creating connections
CoffeeScript
mit
iiegor/zenit,iiegor/zenit,zenit/zenit,zenit/zenit
59df42d7c52f7c4e4b5dd7d0c08bce5d7b96e9f7
src/input-component.coffee
src/input-component.coffee
module.exports = class InputComponent constructor: (@presenter) -> @domNode = document.createElement('input') @domNode.classList.add('hidden-input') @domNode.setAttribute('data-react-skip-selection-restoration', true) @domNode.style['-webkit-transform'] = 'translateZ(0)' @domNode.addEventListener ...
module.exports = class InputComponent constructor: (@presenter) -> @domNode = document.createElement('input') @domNode.classList.add('hidden-input') @domNode.setAttribute('data-react-skip-selection-restoration', true) @domNode.style['-webkit-transform'] = 'translateZ(0)' @domNode.addEventListener ...
Fix a lint warning reported by `./script/grunt lint`.
Fix a lint warning reported by `./script/grunt lint`. Now it runs without reporting any issues.
CoffeeScript
mit
AlexxNica/atom,folpindo/atom,yalexx/atom,kjav/atom,bcoe/atom,targeter21/atom,jlord/atom,hellendag/atom,dannyflax/atom,vcarrera/atom,mnquintana/atom,hharchani/atom,pombredanne/atom,liuxiong332/atom,bencolon/atom,Jandersoft/atom,kaicataldo/atom,Hasimir/atom,einarmagnus/atom,rsvip/aTom,nvoron23/atom,chfritz/atom,lisonma/a...
a4df1bcbca7c8affb78d79410c9992ced1a5cd87
app/js/jail_iframe/classes/loading_promises.coffee
app/js/jail_iframe/classes/loading_promises.coffee
setTimeout -> ok = loaded: true interactive: !(document.documentMode < 11) complete: true if ok[document.readyState] FactlinkJailRoot.host_ready_promise.resolve() else document.addEventListener('DOMContentLoaded', -> FactlinkJailRoot.host_ready_promise.resolve()) if 'complete' == document...
setTimeout -> isDOMContentLoaded = loaded: true interactive: !(document.documentMode < 11) complete: true if isDOMContentLoaded[document.readyState] FactlinkJailRoot.host_ready_promise.resolve() else document.addEventListener('DOMContentLoaded', -> FactlinkJailRoot.host_ready_promise.resolve...
Use more descriptive variable name
Use more descriptive variable name
CoffeeScript
mit
Factlink/js-library,Factlink/js-library,Factlink/js-library
3d7126c09f9ca100704a768424d760f2ad7fd280
src/handlers/frontpage/IndexHandler.coffee
src/handlers/frontpage/IndexHandler.coffee
RouteHandler = require '../../core/RouteHandler' ### Index/frontpage/home @author Torstein Thune @copyright 2015 Microbrew.it ### class Handler extends RouteHandler getRoute: () -> super { path: '/', method: 'GET' } render: (err, res, body, user) -> return @renderer.page title: "Home of homebrewers" nav...
RouteHandler = require '../../core/RouteHandler' ### Index/frontpage/home @author Torstein Thune @copyright 2015 Microbrew.it ### class Handler extends RouteHandler getRoute: () -> super { path: '/', method: 'GET' } render: (err, res, body, user) -> return @renderer.page title: "Home of homebrewers" nav...
Change index to display latest recipes
Change index to display latest recipes
CoffeeScript
mit
Microbrewit/microbrew-it-middleware,Microbrewit/microbrew-it-middleware
0bfc774c2001986164e556dd934427e6cde4b687
assets/javascripts/routers/profile.js.coffee
assets/javascripts/routers/profile.js.coffee
TentStatus.Routers.profile = new class ProfileRouter extends Marbles.Router routes: { "profile" : "currentProfile" ":entity/profile" : "profile" } actions_titles: { "currentProfile" : "Profile" "profile" : "Profile" } currentProfile: (params) => if TentStatus.Helpers.isAppSubdomain() ...
TentStatus.Routers.profile = new class ProfileRouter extends Marbles.Router routes: { "profile" : "currentProfile" ":entity/profile" : "profile" } actions_titles: { "currentProfile" : "Profile" "profile" : "Profile" } _initAuthorInfoView: (options = {}) => new Marbles.Views.AuthorInfo _....
Add author info to profile feeds
Add author info to profile feeds
CoffeeScript
bsd-3-clause
tent/tent-status,tent/tent-status
52f1fb0a7353186721e23d7b6a180daf85443ebb
client/tx/lib/blockchain/bci.coffee
client/tx/lib/blockchain/bci.coffee
{ Util: { parseValue, bytesToNum }, convert: { bytesToHex, hexToBytes } } = require 'bitcoinjs-lib' # Send transaction to Bitcoin network using blockchain.info's pushtx tx_broadcast = (tx, cb) -> tx = bytesToHex tx.serialize() ($.post 'https://blockchain.info/pushtx?cors=true', { tx }) .fail((xhr, status, err)...
{ Util: { parseValue, bytesToNum }, convert: { bytesToHex, hexToBytes } } = require 'bitcoinjs-lib' # Send transaction to Bitcoin network using blockchain.info's pushtx tx_broadcast = (tx, cb) -> tx = bytesToHex tx.serialize() ($.post 'https://blockchain.info/pushtx?cors=true', { tx }) .fail((xhr, status, err)...
Switch to blockchain.info over SSL
Switch to blockchain.info over SSL
CoffeeScript
agpl-3.0
shesek/bitrated,shesek/bitrated
fe1321a323610bea4c03fab8c5c6bbcb29565e84
src/invoke/invoke.coffee
src/invoke/invoke.coffee
import isFunction from 'es-is/function' import isGeneratorFunction from 'es-is/generator-function' import log from '../log' import tasks from '../tasks' import invokeAsync from './async' import invokeGenerator from './generator' import invokeSync from './sync' import serial from './serial...
import isFunction from 'es-is/function' import isGeneratorFunction from 'es-is/generator-function' import log from '../log' import tasks from '../tasks' import invokeAsync from './async' import invokeGenerator from './generator' import invokeSync from './sync' import serial from './serial...
Throw warning on missing task
Throw warning on missing task
CoffeeScript
mit
zeekay/shortcake
6b0f7bca440a54b9c135bd91335043a33a688a64
src/packages/wrap-guide/src/wrap-guide.coffee
src/packages/wrap-guide/src/wrap-guide.coffee
{View} = require 'space-pen' $ = require 'jquery' _ = require 'underscore' module.exports = class WrapGuide extends View @activate: (rootView, state) -> rootView.eachEditor (editor) => @appendToEditorPane(rootView, editor) if editor.attached @appendToEditorPane: (rootView, editor) -> if underlayer =...
{View} = require 'space-pen' $ = require 'jquery' _ = require 'underscore' module.exports = class WrapGuide extends View @activate: (rootView, state) -> rootView.eachEditor (editor) => @appendToEditorPane(rootView, editor) if editor.attached @appendToEditorPane: (rootView, editor) -> if underlayer =...
Rename variable to pattern to shadow config key path
Rename variable to pattern to shadow config key path
CoffeeScript
mit
matthewclendening/atom,githubteacher/atom,Ju2ender/atom,isghe/atom,YunchengLiao/atom,hakatashi/atom,sekcheong/atom,hharchani/atom,folpindo/atom,GHackAnonymous/atom,ObviouslyGreen/atom,ivoadf/atom,bsmr-x-script/atom,yamhon/atom,constanzaurzua/atom,kc8wxm/atom,kittens/atom,constanzaurzua/atom,xream/atom,mostafaeweda/atom...
7aba171d7384530a055c4102442b66f8e8e02516
lib/repositories.coffee
lib/repositories.coffee
Repository = require('../models/repository').Repository Build = require('../models/build').Build Resque = require('../config/resque').Connection exports.findOrCreateRepository = (desired_repository, callback) -> query = name: desired_repository.name ownerName: desired_repository.ownername ...
Repository = require('../models/repository').Repository Build = require('../models/build').Build Resque = require('../config/resque').Connection exports.findOrCreateRepository = (desired_repository, callback) -> query = name: desired_repository.name ownerName: desired_repository.ownerName ...
Fix typo in the query string.
Fix typo in the query string.
CoffeeScript
mit
drip/drip
b3a3aec4cf441f3301f2ac08faf205b16b997cc3
buzzer.coffee
buzzer.coffee
gpio = require('gpio') Events = require('events').EventEmitter Cylon = require('cylon-raspi') module.exports = class Buzzer extends Events interval: 200 buzzes: 0 lastOpened: new Date() isOpen: false defaultTime: 5 maxTime: 15000 constructor: ( pin )-> @pinNum = pin @servo = null Cylon.robot ...
gpio = require('gpio') Events = require('events').EventEmitter Cylon = require('cylon') module.exports = class Buzzer extends Events interval: 200 buzzes: 0 lastOpened: new Date() isOpen: false defaultTime: 5 maxTime: 15000 constructor: ( pin )-> @pinNum = pin @servo = null Cylon.robot ...
Switch back to regular cylon
Switch back to regular cylon
CoffeeScript
mit
samuelhough/PiBuzzer
85c02312556d56a920e843ab6d94f31ac21009a7
tests/poo-tracker_test.coffee
tests/poo-tracker_test.coffee
assert = require 'assert' Helper = require('hubot-test-helper') helper = new Helper('../scripts/poo-tracker.coffee') describe 'poo-tracker', -> room = null beforeEach -> room = helper.createRoom() room.user.say 'shithead', '@hubot hello, this is dog' it 'compiled if it got this fucking far', -> as...
assert = require 'assert' Helper = require('hubot-test-helper') process.env.POO_REDIS_URL = "redis://h:pass@localhost:6379/0" helper = new Helper('../scripts/poo-tracker.coffee') describe 'poo-tracker', -> room = null beforeEach -> room = helper.createRoom() room.user.say 'shithead', '@hubot hello, this ...
Set env var before loading script
Set env var before loading script
CoffeeScript
mit
desert-planet/hayt,drobati/hayt,n1ckn4m3/hayt,skalnik/hayt,pmn/hayt
7672346cbb723cec6058ce656fb79ed2625ae211
app/views/editor/campaign/SaveCampaignModal.coffee
app/views/editor/campaign/SaveCampaignModal.coffee
ModalView = require 'views/core/ModalView' template = require 'templates/editor/campaign/save-campaign-modal' DeltaView = require 'views/editor/DeltaView' module.exports = class SaveCampaignModal extends ModalView id: 'save-campaign-modal' template: template plain: true events: 'click #save-button': 'onCl...
ModalView = require 'views/core/ModalView' template = require 'templates/editor/campaign/save-campaign-modal' DeltaView = require 'views/editor/DeltaView' module.exports = class SaveCampaignModal extends ModalView id: 'save-campaign-modal' template: template plain: true events: 'click #save-button': 'onCl...
Stop reversing levels in CampaignEditor
Stop reversing levels in CampaignEditor Campaign saves started being reversed, and removing this code brings it back to "normal".
CoffeeScript
mit
jeremiahyan/codecombat,codecombat/codecombat,codecombat/codecombat,javatlacati/codecombat,javatlacati/codecombat,codecombat/codecombat,javatlacati/codecombat,jeremiahyan/codecombat,kidaa/codecombat,jeremiahyan/codecombat,kidaa/codecombat,codecombat/codecombat,kidaa/codecombat,codecombat/codecombat,javatlacati/codecomba...
59bffe4a73a049f87d7ab2ec4cd306a87bd49038
app/collections/ThangNamesCollection.coffee
app/collections/ThangNamesCollection.coffee
ThangType = require 'models/ThangType' CocoCollection = require 'collections/CocoCollection' module.exports = class ThangNamesCollection extends CocoCollection url: '/db/thang.type/names' model: ThangType isCachable: false constructor: (@ids) -> super() @ids.sort() if @ids.length > 55 consol...
ThangType = require 'models/ThangType' CocoCollection = require 'collections/CocoCollection' module.exports = class ThangNamesCollection extends CocoCollection url: '/db/thang.type/names' model: ThangType isCachable: false constructor: (@ids) -> super() @ids.sort() fetch: (options) -> options ?...
Remove a log no longer relevant to modern browsers
Remove a log no longer relevant to modern browsers
CoffeeScript
mit
codecombat/codecombat,javatlacati/codecombat,codecombat/codecombat,javatlacati/codecombat,javatlacati/codecombat,codecombat/codecombat,codecombat/codecombat,codecombat/codecombat,javatlacati/codecombat,javatlacati/codecombat
1a258aa8f862c3a2a1da17c325b6979f5c07caf8
src/coffee/index.coffee
src/coffee/index.coffee
leveldb = exports = module.exports = require './leveldb/handle' binding = require '../build/Release/leveldb.node' leveldb.version = '0.7.0' leveldb.bindingVersion = "#{binding.majorVersion}.#{binding.minorVersion}" leveldb.Batch = require('./leveldb/batch').Batch ### Create a partitioned bitwise comparator for...
leveldb = exports = module.exports = require './leveldb/handle' binding = require '../build/Release/leveldb.node' leveldb.version = '0.7.1' leveldb.bindingVersion = "#{binding.majorVersion}.#{binding.minorVersion}" leveldb.Batch = require('./leveldb/batch').Batch ### Create a partitioned bitwise comparator for...
Fix incorrect version in CoffeeScript portion.
Fix incorrect version in CoffeeScript portion.
CoffeeScript
bsd-2-clause
my8bird/node-leveldb,my8bird/node-leveldb,my8bird/node-leveldb
6b641db4a6ee84ace74a75c2b4c5a9ded862fb83
src/game/example.coffee
src/game/example.coffee
# TODO: Normalize to 100 or 1.00 SCALE = 30 me = { name: 'me' shape: 'turtle' position: [0,0] color: 'blue' programs: {first: [], repeat: ['forward']} editable: true } exit = { name: 'exit' shape: 'diamond' position: [0,4] color: 'red' programs: {turtle: ['victory']} } me2 = me#$.extend me, {...
{my} = require '../my' {vector} = require '../god/vector' # TODO: Normalize to 100 or 1.00 SCALE = 30 me = { name: 'me' shape: 'turtle' position: [0,0] color: 'blue' programs: {first: [], repeat: ['forward']} editable: true } exit = { name: 'exit' shape: 'diamond' position: [0,4] color: 'red' p...
Update expample to use my
Update expample to use my
CoffeeScript
isc
TheSwanFactory/hourofnode,TheSwanFactory/hourofnode
9f5bfdfb504420472de3138f6acc828b78c8096b
spec/search-spec.coffee
spec/search-spec.coffee
path = require 'path' express = require 'express' http = require 'http' apm = require '../lib/apm-cli' describe 'apm search', -> server = null beforeEach -> silenceOutput() spyOnToken() app = express() app.get '/search', (request, response) -> response.sendfile path.join(__dirname, 'fixture...
path = require 'path' express = require 'express' http = require 'http' apm = require '../lib/apm-cli' describe 'apm search', -> server = null beforeEach -> silenceOutput() spyOnToken() app = express() app.get '/search', (request, response) -> response.sendfile path.join(__dirname, 'fixture...
Add spec for missing search query
Add spec for missing search query
CoffeeScript
mit
fscherwi/apm,fscherwi/apm,gutsy/apm,bronson/apm,bcoe/apm,bcoe/apm,atom/apm,bcoe/apm,ethanp/apm,pusateri/apm,Nikpolik/apm,VandeurenGlenn/apm,ethanp/apm,AtaraxiaEta/apm,jlord/apm,pusateri/apm,bronson/apm,bcoe/apm,bcoe/apm,ethanp/apm,Nikpolik/apm,AtaraxiaEta/apm,pusateri/apm,Nikpolik/apm,pusateri/apm,jlord/apm,ethanp/apm,...
b6186ec6d53991d76d3fc08db62f6c115ca53cbe
spec/spec_helper.coffee
spec/spec_helper.coffee
# run with: # $ rake spec # OR # $ npm install jasmine-node # $ jasmine-node --coffee spec exports.wesabe = log: [], provide: (module, value) -> @walk module, (part, mod, level, levels) -> mod[part] ||= if value? and level is level.length - 1 value else {} require: (module) -> ...
# run with: # $ rake spec # OR # $ npm install jasmine-node # $ jasmine-node --coffee spec exports.wesabe = log: [], provide: (module, value) -> @walk module, (part, mod, level, levels) -> mod[part] ||= if value? and (level is levels.length - 1) value else {} require: (module) -...
Make providing a value with wesabe.provide actually work.
Make providing a value with wesabe.provide actually work.
CoffeeScript
apache-2.0
wesabe/ssu,wesabe/ssu,wesabe/ssu,wesabe/ssu,wesabe/ssu
c53d1f88ea65380fbf7560242d8a55b5cbeacd8b
lib/provider.coffee
lib/provider.coffee
module.exports = selector: ['.source.css.scss', '.source.sass'] id: 'aligner-scss' # package name config: ':-alignment': title: 'Padding for :' description: 'Pad left or right of the character' type: 'string' default: 'right' ':-leftSpace': title: 'Left space for :' des...
module.exports = selector: ['.source.css.scss', '.source.sass'] id: 'aligner-scss' # package name config: ':-alignment': title: 'Padding for :' description: 'Pad left or right of the character' type: 'string' default: 'right' ':-leftSpace': title: 'Left space for :' des...
Add operator scope to `:`
Add operator scope to `:`
CoffeeScript
mit
adrianlee44/atom-aligner-scss
9aeaf041fb5b419b070f32b2f6812af915f7c8d4
src/routes/index.coffee
src/routes/index.coffee
# External Dependencies debug = require('debug')('minimum-wage-service') express = require 'express' # Express Components router = express.Router() #Internal Dependencies employer_size_router = require './employer_size' survey_router = require './survey' router.all '*', (req,res,next) -> res.header("Access-Contro...
# External Dependencies debug = require('debug')('minimum-wage-service') express = require 'express' # Express Components router = express.Router() #Internal Dependencies employer_size_router = require './employer_size' survey_router = require './survey' router.all '*', (req,res,next) -> res.header("Access-Contro...
Modify wage theft report info endpoint
Modify wage theft report info endpoint
CoffeeScript
apache-2.0
working-wa/whats-my-wage-server,working-wa/whats-my-wage-server,working-wa/whats-my-wage-server
231a012cd5236c27f9c88f354ace3ac9c46885d5
atom/snippets.cson
atom/snippets.cson
# Your snippets # # Atom snippets allow you to enter a simple prefix in the editor and hit tab to # expand the prefix into a larger code block with templated values. # # You can create a new snippet in this file by typing "snip" and then hitting # tab. # # An example CoffeeScript snippet to expand log to console.log: #...
# Your snippets # # Atom snippets allow you to enter a simple prefix in the editor and hit tab to # expand the prefix into a larger code block with templated values. # # You can create a new snippet in this file by typing "snip" and then hitting # tab. # # An example CoffeeScript snippet to expand log to console.log: #...
Add CoffeeScript describe and reorganize
Add CoffeeScript describe and reorganize
CoffeeScript
mit
lee-dohm/dotfiles,lee-dohm/dotfiles,lee-dohm/dotfiles,lee-dohm/dotfiles
b54eadd72ce420f58ab178149444a350eb83c6d2
app/assets/javascripts/bootstrap.js.coffee
app/assets/javascripts/bootstrap.js.coffee
window.languageAutocomplete = -> return false if !$("[data-provide=typeahead]").length projectLanguages = $("[data-provide=typeahead]").data "source" $("[data-provide=typeahead]").typeahead name: $(this).attr "name" local: projectLanguages jQuery -> $("a[rel=popover]").popover() $(".tooltip").toolt...
window.languageAutocomplete = -> return false if !$("[data-provide=typeahead]").length projectLanguages = $("[data-provide=typeahead]").data "source" $("[data-provide=typeahead]").typeahead name: $(this).attr "name" local: projectLanguages jQuery.timeago.settings.allowFuture = true; jQuery -> $("a[r...
Allow future dates in timeago
Allow future dates in timeago Although not something that can happen in normal application usage (without something going a bit wrong) this is a bit of an issue if you have seeded the database with future PRs. This change of setting resolves this issue.
CoffeeScript
mit
24pullrequests/24pullrequests,jasnow/24pullrequests,arumoy-shome/24pullrequests,24pullrequests/24pullrequests,tegon/24pullrequests,24pullrequests/24pullrequests,jasnow/24pullrequests,jasnow/24pullrequests5,tegon/24pullrequests,tegon/24pullrequests,24pullrequests/24pullrequests,arumoy-shome/24pullrequests,arumoy-shome/2...
43d55218fd0b1bd5cfcc02f89f7e7bb95f050541
lib/server.coffee
lib/server.coffee
'use strict' Hapi = require 'hapi' Boom = require 'boom' BadRequest = Boom.badRequest join = require('path').join class Server constructor: -> @server = new Hapi.Server() @server.connection(port: 4555) @_names() _names: -> @server.route method: 'GET' path: '/names' handler: (req...
'use strict' Hapi = require 'hapi' Boom = require 'boom' BadRequest = Boom.badRequest join = require('path').join class Server constructor: -> @server = new Hapi.Server() @server.connection(process.env.PORT or 4545) @_names() _names: -> @server.route method: 'GET' path: '/names' ...
Use the deis specified port if it exists.
Use the deis specified port if it exists.
CoffeeScript
mit
cloudmine/node-coderunner
ba0226f7fa71de06eee7f3afee51a9ac4dacc539
src/model/validations/exclusion_validator.js.coffee
src/model/validations/exclusion_validator.js.coffee
#= require ./validators class Batman.ExclusionValidator extends Batman.Validator @triggers 'exlusionIn' constructor: (options) -> @acceptableValues = options.exlusionIn super validateEach: (errors, record, key, callback) -> value = record.get(key) for acceptableValue in @acceptableValues ...
#= require ./validators class Batman.ExclusionValidator extends Batman.Validator @triggers 'exlusionIn' constructor: (options) -> @unacceptableValues = options.exlusionIn super validateEach: (errors, record, key, callback) -> value = record.get(key) for unacceptableValue in @unacceptableValues...
Rename variables for readability and to avoid confusion
Rename variables for readability and to avoid confusion
CoffeeScript
mit
getshuvo/batman,getshuvo/batman
29e57f948fc0aae7bee51cbd3c66eb3ef9aa4990
keymaps/ide-haskell-repl.cson
keymaps/ide-haskell-repl.cson
'.platform-linux atom-text-editor.ide-haskell-repl, .platform-win32 atom-text-editor.ide-haskell-repl': 'shift-enter': 'ide-haskell-repl:exec-command' 'shift-up': 'ide-haskell-repl:history-back' 'shift-down': 'ide-haskell-repl:history-forward' 'ctrl-shift-r': 'ide-haskell-repl:ghci-reload' '.platform-darwin at...
'.platform-linux atom-text-editor.ide-haskell-repl': 'shift-enter': 'ide-haskell-repl:exec-command' 'shift-up': 'ide-haskell-repl:history-back' 'shift-down': 'ide-haskell-repl:history-forward' 'ctrl-shift-r': 'ide-haskell-repl:ghci-reload' '.platform-win32 atom-text-editor.ide-haskell-repl': 'shift-enter': '...
Work around Atom not displaying keybindings
Work around Atom not displaying keybindings
CoffeeScript
mit
atom-haskell/ide-haskell-repl
ac66da7df8a36cd76438986397b542b91edce21d
src/library.coffee
src/library.coffee
do -> global.Libs or= {} global.Libs.JsZip = require("jszip") global.Libs.CoffeeScript = require("coffee-script") # global.Libs.Canarium = require("canarium") global.Libs.GitHubFactory = { GitHub: require("github-api") apiBase: "http://#{window.location.host}/api" create: (args...) -> in...
do -> global.Libs or= {} global.Libs.JsZip = require("jszip") global.Libs.CoffeeScript = require("coffee-script") # global.Libs.Canarium = require("canarium")
Remove GitHubFactory (replaced with GitHubFetcher)
Remove GitHubFactory (replaced with GitHubFetcher)
CoffeeScript
mit
kimushu/rubic,kimushu/rubic
0448ba5ceb866d6a9ea73e448e1897e256617ebe
tasks/clean-task.coffee
tasks/clean-task.coffee
path = require 'path' module.exports = (grunt) -> {rm} = require('./task-helpers')(grunt) grunt.registerTask 'partial-clean', 'Delete some of the build files', -> rm grunt.config.get('atom.buildDir') rm '/tmp/atom-coffee-cache' rm '/tmp/atom-cached-atom-shells' rm 'node' grunt.registerTask 'cle...
path = require 'path' module.exports = (grunt) -> {rm} = require('./task-helpers')(grunt) grunt.registerTask 'partial-clean', 'Delete some of the build files', -> rm grunt.config.get('atom.buildDir') rm '/tmp/atom-coffee-cache' rm '/tmp/atom-cached-atom-shells' rm 'node' rm 'atom-shell' gru...
Remove atom-shell during partial-clean task instead of clean task
Remove atom-shell during partial-clean task instead of clean task
CoffeeScript
mit
chfritz/atom,liuxiong332/atom,synaptek/atom,YunchengLiao/atom,targeter21/atom,Andrey-Pavlov/atom,pombredanne/atom,Mokolea/atom,Klozz/atom,vcarrera/atom,AlexxNica/atom,codex8/atom,folpindo/atom,kjav/atom,jlord/atom,erikhakansson/atom,transcranial/atom,johnrizzo1/atom,deepfox/atom,matthewclendening/atom,Neron-X5/atom,abc...
9f4a6db33f1d045463e5d368acc913ae07040d68
frontend/app/app.coffee
frontend/app/app.coffee
mod = angular.module 'mothership', [ 'ui.router' 'ui.bootstrap' ] mod.config ($stateProvider, $urlRouterProvider) -> $urlRouterProvider.otherwise('/playing') $stateProvider.state name: 'layout' abstract: true views: 'layout': template: '<m-header></m-header><main ui-view></main>' ...
mod = angular.module 'mothership', [ 'ui.router' 'ui.bootstrap' ] mod.config ( $stateProvider, $urlRouterProvider, $urlMatcherFactoryProvider ) -> $urlRouterProvider.otherwise('/playing') valToString = (val) -> if val? then val.toString() else val $urlMatcherFactoryProvider.type 'nonURIEncoded', enco...
Fix prevent ui router from encoding path names in the URL
:bug: Fix prevent ui router from encoding path names in the URL
CoffeeScript
mit
zefer/mothership,zefer/mothership,zefer/mothership,zefer/mothership
ca703a166882a153ac0cc25655763b8034c887c1
src/index.cjsx
src/index.cjsx
React = require 'react' objectAssign = require 'object-assign' module.exports = (icons) -> React.createClass propTypes: icon: React.PropTypes.string.isRequired size: React.PropTypes.oneOfType([ React.PropTypes.string, React.PropTypes.number ]) style: React.PropTypes.object...
React = require 'react' objectAssign = require 'object-assign' module.exports = (icons) -> React.createClass propTypes: icon: React.PropTypes.string.isRequired size: React.PropTypes.oneOfType([ React.PropTypes.string, React.PropTypes.number ]) style: React.PropTypes.object...
Add `height` to prevent scaling issue in IE
Add `height` to prevent scaling issue in IE
CoffeeScript
mit
KyleAMathews/react-icon-factory
a7838f55f127cd72971cf3303cbd1d9b30e5518b
app/classifier/tasks/crop/index.cjsx
app/classifier/tasks/crop/index.cjsx
React = require 'react' CropInitializer = require './initializer' GenericTask = require '../generic' module.exports = React.createClass displayName: 'CropTask' statics: getSVGProps: ({workflow, classification, annotation}) -> tasks = require '../index' [previousCropAnnotation] = classification.ann...
React = require 'react' CropInitializer = require './initializer' GenericTask = require '../generic' module.exports = React.createClass displayName: 'CropTask' statics: getSVGProps: ({workflow, classification, annotation}) -> tasks = require '../index' [previousCropAnnotation] = classification.ann...
Disable Clear button when there's no crop
Disable Clear button when there's no crop
CoffeeScript
apache-2.0
alexbfree/Panoptes-Front-End,mrniaboc/Panoptes-Front-End,alexbfree/Panoptes-Front-End,amyrebecca/Panoptes-Front-End,amyrebecca/Panoptes-Front-End,CKrawczyk/Panoptes-Front-End,CKrawczyk/Panoptes-Front-End,parrish/Panoptes-Front-End,mrniaboc/Panoptes-Front-End,camallen/Panoptes-Front-End,fmnhExhibits/Panoptes-Front-End,f...
769636b25b500caa7b1f9c68d3614521f0877ed4
app/assets/javascripts/app.coffee
app/assets/javascripts/app.coffee
dependencies = [ 'ngRoute', 'ui.bootstrap', 'myApp.filters', 'myApp.services', 'myApp.controllers', 'myApp.directives', 'myApp.common', 'myApp.routeConfig' ] app = angular.module('myApp', dependencies) angular.module('myApp.routeConfig', ['ngRoute']).config ($locationProvider) -> $...
dependencies = [ 'ngRoute', 'ui.bootstrap', 'myApp.filters', 'myApp.services', 'myApp.controllers', 'myApp.directives', 'myApp.common', 'myApp.routeConfig' ] app = angular.module('myApp', dependencies) angular.module('myApp.routeConfig', ['ngRoute']).config ($locationProvider) -> $locationProvider.h...
Change indentation to follow coffeelint
Change indentation to follow coffeelint
CoffeeScript
mit
reverbi/varic,reverbi/varic,reverbi/varic
4e4e510833e3a45d7628af23f45d55917a2e358c
spec-nylas/stores/namespace-store-spec.coffee
spec-nylas/stores/namespace-store-spec.coffee
_ = require 'underscore' NamespaceStore = require '../../src/flux/stores/namespace-store' describe "NamespaceStore", -> beforeEach -> @constructor = NamespaceStore.constructor it "should initialize current() using data saved in config", -> state = "id": "123", "email_address":"bengotow@gmail.c...
_ = require 'underscore' NamespaceStore = require '../../src/flux/stores/namespace-store' describe "NamespaceStore", -> beforeEach -> @instance = null @constructor = NamespaceStore.constructor afterEach -> @instance.stopListeningToAll() it "should initialize current() using data saved in config", -...
Fix memory leak in NamespaceStoreSpec
fix(spec): Fix memory leak in NamespaceStoreSpec
CoffeeScript
mit
nirmit/nylas-mail,simonft/nylas-mail,nirmit/nylas-mail,nylas/nylas-mail,nylas-mail-lives/nylas-mail,nirmit/nylas-mail,simonft/nylas-mail,nylas-mail-lives/nylas-mail,nylas/nylas-mail,nylas/nylas-mail,nylas-mail-lives/nylas-mail,nylas-mail-lives/nylas-mail,simonft/nylas-mail,nirmit/nylas-mail,nylas/nylas-mail,nirmit/nyla...
42c2aa020a69ffbf48a956f2b55b460c9f96639b
client/lanes/components/shared/RadioField.cjsx
client/lanes/components/shared/RadioField.cjsx
class Lanes.Components.RadioField extends Lanes.React.Component mixins: [ Lanes.Components.Form.FieldMixin ] renderEdit: -> <BS.Col {...@props}> <BS.Input type="radio" checked={@props.checked? || @props.value == @model[@props.name]} ...
class FakeInputEvent constructor: (value) -> @target = {value} isDefaultPrevented: -> false class Lanes.Components.RadioField extends Lanes.React.Component mixins: [ Lanes.Components.Form.FieldMixin ] handleRadioChange: (ev) -> if ev.target.checked @fieldMixin...
Fix radio input to work with new BS forms
Fix radio input to work with new BS forms
CoffeeScript
mit
argosity/lanes,argosity/lanes,argosity/hippo,argosity/lanes,argosity/hippo,argosity/hippo
478f0c6dc4013ddd4bed2c7c003c452a70b6eb25
grammars/roff.cson
grammars/roff.cson
name: "Roff" scopeName: "text.roff" fileTypes: [ "1", "1b", "1c", "1has", "1in", "1m", "1s", "1x", "2", "3", "3avl", "3bsm", "3c", "3in", "3m", "3qt", "3x", "4", "5", "6", "7", "7d", "7fs", "7i", "7ipp", "7m", "7p", "8", "9", "9e", "9f", "9p", "9s", "chem", "eqn", "groff", "man", "mandoc", "mdoc", "me",...
name: "Roff" scopeName: "text.roff" fileTypes: [ "1", "1b", "1c", "1has", "1in", "1m", "1s", "1x", "2", "3", "3avl", "3bsm", "3c", "3in", "3m", "3qt", "3x", "4", "5", "6", "7", "7d", "7fs", "7i", "7ipp", "7m", "7p", "8", "9", "9e", "9f", "9p", "9s", "chem", "eqn", "groff", "man", "mandoc", "mdoc", "me",...
Include RNH and RUN file extensions
Include RNH and RUN file extensions RUN appears to be one of the file extensions used by the original RUNOFF program. RNH appears to signify a help file (supposedly "RUNOFF HELP"?). Sources: * http://web.mit.edu/Saltzer/www/publications/starring/starring.run * http://odl.sysworks.biz/disk$vaxdocdec953/decw$book/dy4y...
CoffeeScript
isc
Alhadis/language-roff,Alhadis/language-roff
923463378577cdd534c436511d29a68a4655dd17
core/app/assets/javascripts/intermediate.coffee
core/app/assets/javascripts/intermediate.coffee
showFrame = document.getElementById("frame") last_created_text = null window.remote = Factlink.createFrameProxyObject window.parent, ['hide', 'show', 'highlightNewFactlink', 'stopHighlightingFactlink', 'createdNewFactlink', 'trigger', 'setFeatureToggles' ] local = showFactlink: (id, successFn) -> ur...
showFrame = document.getElementById("frame") last_created_text = null window.remote = Factlink.createFrameProxyObject window.parent, ['hide', 'onModalReady', 'highlightNewFactlink', 'stopHighlightingFactlink', 'createdNewFactlink', 'trigger', 'setFeatureToggles' ] local = showFactlink: (id) -> url =...
Replace callbacks with an API
Replace callbacks with an API
CoffeeScript
mit
Factlink/factlink-core,daukantas/factlink-core,daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core
15452020fcc46789a310b37463e76e40ad8488d9
assets/javascripts/routes/index_route.js.coffee
assets/javascripts/routes/index_route.js.coffee
App.IndexRoute = App.AuthenticatedRoute.extend setupController: (controller, model)-> states = [] stateIds = [] activeState = null model.forEach (item)-> stateId = item.get("id") if !activeState? && item.get("joined") == true activeState = item states.push(stateId) s...
App.IndexRoute = App.AuthenticatedRoute.extend setupController: (controller, model)-> stateData = [] stateIds = [] activeState = null # Loop thru all room states # find the first joined room to load # start pollers for all joined rooms model.forEach (item)=> stateId = item.get...
Add Poller class to poll rooms
Add Poller class to poll rooms
CoffeeScript
mit
HashNuke/mogo-chat,louishawkins/mogo-chat,di-stars/mogo-chat,sashafklein/bloc-mogo,HashNuke/mogo-chat,di-stars/mogo-chat,di-stars/mogo-chat,louishawkins/mogo-chat,louishawkins/mogo-chat,sashafklein/bloc-mogo,sashafklein/bloc-mogo,HashNuke/mogo-chat
6a6077aa78fb9febff02fef6559adde8717fe558
client/ide/workspace/panes/finderpane.coffee
client/ide/workspace/panes/finderpane.coffee
class FinderPane extends Pane constructor: (options = {}, data) -> super options, data vmController = KD.getSingleton 'vmController' vmController.fetchDefaultVmName (vmName) => @finder = new NFinderController nodeIdPath : 'path' nodeParentIdPath : 'parentPath' contex...
class FinderPane extends Pane constructor: (options = {}, data) -> super options, data KD.getSingleton('appManager').open 'Finder', (finderApp) => @createFinderController finderApp @bindListeners() createFinderController: (finderApp) -> @finderController = finderApp.create() @addSubV...
Refactor finder pane to work with multiple vms.
Refactor finder pane to work with multiple vms.
CoffeeScript
agpl-3.0
sinan/koding,usirin/koding,mertaytore/koding,szkl/koding,kwagdy/koding-1,jack89129/koding,kwagdy/koding-1,rjeczalik/koding,cihangir/koding,szkl/koding,kwagdy/koding-1,jack89129/koding,andrewjcasal/koding,acbodine/koding,drewsetski/koding,cihangir/koding,kwagdy/koding-1,jack89129/koding,gokmen/koding,mertaytore/koding,a...
588341d2c3dac85fc84586c36d60e7552a379966
components/modals/KDBlockingModalView.coffee
components/modals/KDBlockingModalView.coffee
class KDBlockingModalView extends KDModalView constructor:-> super $(window).off "keydown.modal" putOverlay:()-> @$overlay = $ "<div/>", class : "kdoverlay" @$overlay.hide() @$overlay.appendTo "body" @$overlay.fadeIn 200 setDomElement:(cssClass)-> @domElement = $ " <div...
class KDBlockingModalView extends KDModalView constructor:-> super $(window).off "keydown.modal" putOverlay:()-> @$overlay = $ "<div/>", class : "kdoverlay" @$overlay.hide() @$overlay.appendTo "body" @$overlay.fadeIn 200 setDomElement:(cssClass)-> @domElement = $ """ <d...
Fix kdblockingmodal, take care hidden objects
Fix kdblockingmodal, take care hidden objects
CoffeeScript
mit
gokhanturunc/kd,anonrig/kd,koding/kd,anonrig/kd,gokhanturunc/kd
b1a6e564802f56b683e7e93e1d8185186d54bdd1
app/collections/manager-icon.cjsx
app/collections/manager-icon.cjsx
React = require 'react' CollectionsManager = require './manager' alert = require '../lib/alert' # Shows an icon to logged-in users that pops up a collections manager module?.exports = React.createClass displayName: 'CollectionsManagerIcon' propTypes: subject: React.PropTypes.object user: React.PropTypes.o...
React = require 'react' CollectionsManager = require './manager' Dialog = require 'modal-form/dialog' # Shows an icon to logged-in users that pops up a collections manager module?.exports = React.createClass displayName: 'CollectionsManagerIcon' propTypes: subject: React.PropTypes.object user: React.PropT...
Use modal-form dialog for collections manager icon
Use modal-form dialog for collections manager icon
CoffeeScript
apache-2.0
fmnhExhibits/Panoptes-Front-End,mrniaboc/Panoptes-Front-End,alexbfree/Panoptes-Front-End,alexbfree/Panoptes-Front-End,jelliotartz/Panoptes-Front-End,parrish/Panoptes-Front-End,mrniaboc/Panoptes-Front-End,fmnhExhibits/Panoptes-Front-End,zooniverse/Panoptes-Front-End,jelliotartz/Panoptes-Front-End,amyrebecca/Panoptes-Fro...
ff29de59c4d6d812072f0e9beae0241dd2b8ca9b
lib/cleaner.coffee
lib/cleaner.coffee
{ Disposable } = require 'atom' path = require 'path' fs = require 'fs' glob = require 'glob' module.exports = class Cleaner extends Disposable constructor: (latex) -> @latex = latex clean: -> if !@latex.manager.findMain() return false rootDir = path.dirname(@latex.mainFile) removeGlobs = at...
{ Disposable } = require 'atom' path = require 'path' fs = require 'fs' glob = require 'glob' module.exports = class Cleaner extends Disposable constructor: (latex) -> @latex = latex clean: -> if !@latex.manager.findMain() return false rootDir = path.dirname(@latex.mainFile) FileExts = atom....
Clean files in project sub directories as well
Clean files in project sub directories as well
CoffeeScript
mit
James-Yu/Atom-LaTeX,ashthespy/Atom-LaTeX,James-Yu/Atom-LaTeX,ashthespy/Atom-LaTeX
d3c13f4f4fd26fff7fc53a83858da2f72a57d185
client/Ace/aceapplicationtabview.coffee
client/Ace/aceapplicationtabview.coffee
class AceApplicationTabView extends ApplicationTabView removePane_: KDTabView::removePane removePane: (pane, shouldDetach) -> {aceView} = pane.getOptions() return @removePane_ pane, shouldDetach unless aceView {ace} = aceView file = ace.getData() return @removePane_ pane, shouldDetach u...
class AceApplicationTabView extends ApplicationTabView removePane_: KDTabView::removePane removePane: (pane, shouldDetach, quiet = no) -> {aceView} = pane.getOptions() return @removePane_ pane, shouldDetach if quiet or not aceView {ace} = aceView file = ace.getData() return @removePane_ ...
Add `quiet` parameter to `removePane` method
Ace: Add `quiet` parameter to `removePane` method
CoffeeScript
agpl-3.0
andrewjcasal/koding,kwagdy/koding-1,usirin/koding,koding/koding,cihangir/koding,jack89129/koding,koding/koding,gokmen/koding,andrewjcasal/koding,kwagdy/koding-1,sinan/koding,koding/koding,rjeczalik/koding,cihangir/koding,szkl/koding,gokmen/koding,gokmen/koding,jack89129/koding,kwagdy/koding-1,szkl/koding,koding/koding,...
76b8dc81690c37bfd3dc23c148ba523a1e15638d
player.coffee
player.coffee
# BeamWars - A multiplayer in-browser remake of the Mac game of the same name # Copyright (C) 2013 Aaron Hill # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either vers...
# BeamWars - A multiplayer in-browser remake of the Mac game of the same name # Copyright (C) 2013 Aaron Hill # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either vers...
Use fabric.js in Player class
Use fabric.js in Player class
CoffeeScript
agpl-3.0
Aaron1011/beamwars
3dc7ae07d6179be70fc823c953c68cb8e0c986ff
lib/minimap-bookmarks-binding.coffee
lib/minimap-bookmarks-binding.coffee
{CompositeDisposable} = require 'atom' module.exports = class MinimapBookmarksBinding constructor: (@minimap) -> @subscriptions = new CompositeDisposable @editor = @minimap.getTextEditor() @subscriptions.add @editor.displayBuffer.onDidCreateMarker (marker) => if marker.matchesProperties(class: 'bo...
{CompositeDisposable} = require 'atom' module.exports = class MinimapBookmarksBinding constructor: (@minimap) -> @subscriptions = new CompositeDisposable @editor = @minimap.getTextEditor() @decorationsByMarkerId = {} @decorationSubscriptionsByMarkerId = {} @subscriptions.add @editor.displayBuffe...
Implement retrieving existing markers and destroying decorations along binding
Implement retrieving existing markers and destroying decorations along binding
CoffeeScript
mit
atom-minimap/minimap-bookmarks
2806fc2d7941741316ef6a5ee4fc64615349783a
test/basic.coffee
test/basic.coffee
request = require 'request' should = require 'should' startApp = require './start_app' base = require './base' options = require './options' describe 'Basic Things', -> before (done) -> startApp done it 'should return version information', (done)-> request (base '/'), options, (e,r,b)-> r.statusCod...
request = require 'request' should = require 'should' startApp = require './start_app' base = require './base' options = require './options' describe 'Basic Things', -> before (done) -> startApp done it 'should return version information', (done)-> request (base '/'), options, (e,r,b)-> r.statusCod...
Test should account for possible charset
Test should account for possible charset
CoffeeScript
bsd-3-clause
t3mpus/tempus-api
29e3cb2b2e7e4697cddcf0825404874ea2a35125
models/indicator.coffee
models/indicator.coffee
fs = require('fs') Q = require('q') _ = require('underscore') StandardIndicatorator = require('../indicatorators/standard_indicatorator') GETTERS = gdoc: require('../getters/gdoc') cartodb: require('../getters/cartodb') FORMATTERS = gdoc = require('../formatters/gdoc') module.exports = class Indicator const...
fs = require('fs') Q = require('q') _ = require('underscore') StandardIndicatorator = require('../indicatorators/standard_indicatorator') GETTERS = gdoc: require('../getters/gdoc') cartodb: require('../getters/cartodb') FORMATTERS = gdoc: require('../formatters/gdoc') cartodb: require('../formatters/cartodb'...
Make CartoDB formatter available for Indicator formatting
Make CartoDB formatter available for Indicator formatting
CoffeeScript
bsd-3-clause
unepwcmc/NRT,unepwcmc/NRT
1becef4eda716d001a28b31f642e5f651476126c
src/keypath_observer.coffee
src/keypath_observer.coffee
class KeypathObserver constructor: (@view, @model, @keypath, @callback) -> @interfaces = (k for k, v of @view.adapters) @objectPath = [] @tokens = Rivets.KeypathParser.parse @keypath, @interfaces, @view.config.rootInterface @root = @tokens.shift() @key = @tokens.pop() @target = @realize() u...
class KeypathObserver constructor: (@view, @model, @keypath, @callback) -> @interfaces = (k for k, v of @view.adapters) @objectPath = [] @tokens = Rivets.KeypathParser.parse @keypath, @interfaces, @view.config.rootInterface @root = @tokens.shift() @key = @tokens.pop() @target = @realize() u...
Make sure that we properly unsubscribe from any outdated portions of a keypath.
Make sure that we properly unsubscribe from any outdated portions of a keypath.
CoffeeScript
mit
GerHobbelt/rivets,GerHobbelt/rivets,jccazeaux/rivets,zongkelong/rivets,re-clone/rivets,nopnop/rivets,GerHobbelt/rivets,QAPInt/rivets,MishaMykhalyuk/rivets,jccazeaux/rivets,MishaMykhalyuk/rivets,npmcomponent/mikeric-rivets,kangax/rivets,QAPInt/rivets,QAPInt/rivets,MishaMykhalyuk/rivets,nopnop/rivets,altmind/rivets,nopno...
f10a5f6599081115aa963e751e60be319c5ccc8c
app/assets/javascripts/models/track.js.coffee
app/assets/javascripts/models/track.js.coffee
Yossarian.Track = DS.Model.extend name: DS.attr 'string'
Yossarian.Track = DS.Model.extend name: DS.attr 'string' recordings: DS.hasMany 'recording'
Add mising relation in Track
Add mising relation in Track
CoffeeScript
mit
smolnar/yossarian,smolnar/yossarian,smolnar/yossarian
bf8c532ed87de522d7bbe32a20f2026f18b76219
client/app/lib/util/shortenUrl.coffee
client/app/lib/util/shortenUrl.coffee
$ = require 'jquery' globals = require 'globals' module.exports = shortenUrl = (longUrl, callback) -> { apiKey } = globals.config.google apiUrl = "https://www.googleapis.com/urlshortener/v1/url?key=#{apiKey}" request = $.ajax url : apiUrl type : 'POST' contentType : 'applicati...
$ = require 'jquery' globals = require 'globals' module.exports = shortenUrl = (longUrl, callback) -> { apiKey } = globals.config.google apiUrl = "https://www.googleapis.com/urlshortener/v1/url?key=#{apiKey}" request = $.ajax url : apiUrl type : 'POST' contentType : 'applicati...
Fix jQuery promise failure handler API reference
Fix jQuery promise failure handler API reference Signed-off-by: Sonmez Kartal <d2d15c3d37396a5f2a09f8b42cf5f27d43a3fbde@koding.com>
CoffeeScript
agpl-3.0
andrewjcasal/koding,gokmen/koding,rjeczalik/koding,rjeczalik/koding,szkl/koding,drewsetski/koding,gokmen/koding,szkl/koding,rjeczalik/koding,cihangir/koding,sinan/koding,drewsetski/koding,mertaytore/koding,rjeczalik/koding,gokmen/koding,gokmen/koding,andrewjcasal/koding,szkl/koding,acbodine/koding,andrewjcasal/koding,m...
1dda0cb366b7dfea586331aa1ee0f4e973a25a5b
tutor/src/components/icon.cjsx
tutor/src/components/icon.cjsx
React = require 'react' BS = require 'react-bootstrap' classnames = require 'classnames' _ = require 'underscore' module.exports = React.createClass displayName: 'Icon' propTypes: type: React.PropTypes.string.isRequired spin: React.PropTypes.bool className: React.PropTypes.string tooltip: ...
React = require 'react' BS = require 'react-bootstrap' classnames = require 'classnames' _ = require 'underscore' module.exports = React.createClass displayName: 'Icon' propTypes: type: React.PropTypes.string.isRequired spin: React.PropTypes.bool className: React.PropTypes.string tooltip: ...
Fix propType to be correct "oneOfType"
Fix propType to be correct "oneOfType"
CoffeeScript
agpl-3.0
openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js
b70e83beaf6439eba4161fbb976791ea542e2a5f
server/serversystem/lobbyfind.coffee
server/serversystem/lobbyfind.coffee
@lobbyQueue = new Meteor.Collection "lobbyQueue" Meteor.startup -> lobbyQueue.remove({}) @cancelFindServer = (lobbyId)-> console.log "canceling server search: "+lobbyId lobbyQueue.remove lobby: lobbyId @startFindServer = (lobbyId)-> console.log "finding server for "+lobbyId lobbyQueue.insert lobby:...
@lobbyQueue = new Meteor.Collection "lobbyQueue" Meteor.startup -> lobbyQueue.remove({}) @cancelFindServer = (lobbyId)-> console.log "canceling server search: "+lobbyId lobbyQueue.remove lobby: lobbyId @startFindServer = (lobbyId)-> console.log "finding server for "+lobbyId lobbyQueue.insert lobby:...
Set status to 1 when queuing
Set status to 1 when queuing
CoffeeScript
apache-2.0
paralin/D2ModdinMeteor,paralin/D2ModdinMeteor
4c278838a0343c53c853b58d77f15153471528f1
spec/project-manager-spec.coffee
spec/project-manager-spec.coffee
ProjectManager = require '../lib/project-manager' {WorkspaceView} = require 'atom' fs = require 'fs' describe "ProjectManager", -> activationPromise: null describe "Toggle Project Manager", -> beforeEach -> atom.workspaceView = new WorkspaceView activationPromise = atom.packages.activatePackage('p...
ProjectManager = require '../lib/project-manager' {WorkspaceView} = require 'atom' fs = require 'fs' describe "ProjectManager", -> activationPromise: null describe "Toggle Project Manager", -> beforeEach -> atom.workspaceView = new WorkspaceView activationPromise = atom.packages.activatePackage('p...
Add test for getCurrentPath bug
Add test for getCurrentPath bug
CoffeeScript
mit
UltCombo/atom-project-manager,douggr/atom-project-manager,danielbrodin/atom-project-manager
644392bc52d91c0e9476bfd0a0016efa66c095b8
script/msgpackify.coffee
script/msgpackify.coffee
msgpack = require 'msgpack' r = require('redis').createClient detect_buffers: true r.keys '*', (err, all_keys) -> throw err if err keys = [] for key in all_keys parts = key.split ':' continue if (parts.length == 1) || (parts[0] == 'lock') keys.push key count = keys.length for key in keys do (...
msgpack = require 'msgpack' r = require('redis').createClient 6379, 'localhost', detect_buffers: true r.keys '*', (err, all_keys) -> throw err if err keys = [] for key in all_keys parts = key.split ':' continue if (parts.length == 1) || (parts[0] == 'lock') keys.push key count = keys.length for k...
Fix bug in new script
Fix bug in new script
CoffeeScript
mit
waterfield/redeye,waterfield/redeye
7e32b2af847047bd6fb0e1ec8a31435425a3e96c
src/spec/integration.spec.coffee
src/spec/integration.spec.coffee
Config = require '../config' CustomerXmlImport = require '../lib/customerxmlimport' # Increase timeout jasmine.getEnv().defaultTimeoutInterval = 10000 describe 'process', -> beforeEach -> @import = new CustomerXmlImport Config it 'one customer', (done) -> rawXml = ' <Customer> <CustomerNr>1234</Custome...
_ = require('underscore')._ Config = require '../config' CustomerXmlImport = require '../lib/customerxmlimport' # Increase timeout jasmine.getEnv().defaultTimeoutInterval = 10000 describe 'process', -> beforeEach -> @import = new CustomerXmlImport Config it 'one existing customer', (done) -> rawXml = ' <...
Add integration test for new customer.
Add integration test for new customer.
CoffeeScript
mit
hajoeichler/sphere-customer-xml-import
1f2514689a82fab8c72bf3d0510af8a7a39a226c
app/pages/lab/glossary.cjsx
app/pages/lab/glossary.cjsx
counterpart = require 'counterpart' React = require 'react' {Markdown} = (require 'markdownz').default counterpart.registerTranslations 'en', glossary: content: ''' ## Glossary A collection of definitions for terms used across the Zooniverse. The terms are split into three different groups; [General ...
counterpart = require 'counterpart' React = require 'react' {Markdown} = (require 'markdownz').default counterpart.registerTranslations 'en', policiesPage: content: ''' ## Glossary A collection of definitions for terms used across the Zooniverse. The terms are split into three different groups: ...
Revert to non TOC markdown
Revert to non TOC markdown
CoffeeScript
apache-2.0
amyrebecca/Panoptes-Front-End,amyrebecca/Panoptes-Front-End,parrish/Panoptes-Front-End,zooniverse/Panoptes-Front-End,parrish/Panoptes-Front-End,jelliotartz/Panoptes-Front-End,jelliotartz/Panoptes-Front-End,jelliotartz/Panoptes-Front-End,amyrebecca/Panoptes-Front-End,parrish/Panoptes-Front-End
f568cc01a295ccb184f2d5227fbe7a08c7ff0324
src/components/cc-dashboard/index.cjsx
src/components/cc-dashboard/index.cjsx
React = require 'react' BS = require 'react-bootstrap' Router = require 'react-router' {CCDashboardStore, CCDashboardActions} = require '../../flux/cc-dashboard' LoadableItem = require '../loadable-item' CCDashboard = require './dashboard' BookLinks = require './book-links' classnames = require 'classnames' Dashbo...
React = require 'react' BS = require 'react-bootstrap' Router = require 'react-router' {CCDashboardStore, CCDashboardActions} = require '../../flux/cc-dashboard' LoadableItem = require '../loadable-item' CCDashboard = require './dashboard' BookLinks = require './book-links' classnames = require 'classnames' Dashbo...
Update title to be "Class Dashboard"
Update title to be "Class Dashboard"
CoffeeScript
agpl-3.0
openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js
e5cb0e4b607f282c928f524f71c9f30c4af2ac47
app/assets/javascripts/application.js.coffee
app/assets/javascripts/application.js.coffee
#= require vendor/modernizr #= require jquery #= require jquery_ujs #= require foundation/foundation #= require foundation #= require rails.validations #= require rails.validations.simple_form #= require rails.validations.simple_form.fix #= require turbolinks #= require nprogress #= require nprogress-turbolinks #= requ...
#= require vendor/modernizr #= require jquery #= require jquery_ujs #= require foundation/foundation #= require foundation #= require turbolinks #= require nprogress #= require nprogress-turbolinks #= require rails.validations #= require rails.validations.simple_form #= require rails.validations.simple_form.fix #= requ...
Move turbolinks up to make client_side_validations working after ajax request
Move turbolinks up to make client_side_validations working after ajax request
CoffeeScript
mit
lr-agenceweb/rails-starter,lr-agenceweb/rails-starter,lr-agenceweb/rails-starter,lr-agenceweb/rails-starter
6ed176e86d7e9ddd4481f4f5545d3ff0e8e35042
client/ide/finder/idefindercontextmenucontroller.coffee
client/ide/finder/idefindercontextmenucontroller.coffee
class IDE.FinderContextMenuController extends NFinderContextMenuController getFolderMenu: (fileView) -> fileData = fileView.getData() items = Expand : action : "expand" separator : yes Collapse : ...
class IDE.FinderContextMenuController extends NFinderContextMenuController getFolderMenu: (fileView) -> fileData = fileView.getData() items = Expand : action : "expand" separator : yes Collapse : ...
Add `Change Top Folder` context menu action
Add `Change Top Folder` context menu action
CoffeeScript
agpl-3.0
koding/koding,andrewjcasal/koding,jack89129/koding,szkl/koding,sinan/koding,sinan/koding,szkl/koding,usirin/koding,acbodine/koding,alex-ionochkin/koding,drewsetski/koding,gokmen/koding,andrewjcasal/koding,alex-ionochkin/koding,szkl/koding,gokmen/koding,acbodine/koding,cihangir/koding,rjeczalik/koding,acbodine/koding,an...
a094988a08fc1984773dcfaf231d41b1995385e7
app/assets/javascripts/bootstrap-custom.js.coffee
app/assets/javascripts/bootstrap-custom.js.coffee
$ -> $(".topbar-wrapper").dropdown() $ -> $(".alert-message").alert()
$ -> $(".topbar-wrapper").dropdown() $ -> $(".alert-message").alert() $ -> $(".modal").modal show: false backdrop: "static"
Make modals not hide when clicking on greyed out background
Make modals not hide when clicking on greyed out background
CoffeeScript
agpl-3.0
labhackercd/loomio,wangjun/loomio,tachyons/loomio,kimihito/loomio,loomio/loomio,isomerase/loomio,wangjun/loomio,digideskio/loomio,juliagra/DBCloomio,juliagra/loomio,mlarghydracept/loomio,sicambria/loomio,Collabforge/site-collabio,tachyons/loomio,piratas-ar/loomio,codingnutty/loomio,mlarghydracept/loomio,codingnutty/loo...
a22587d09b58a30b24f8892e305cef55a4289e0a
src/packages/collaboration/lib/ws-channel.coffee
src/packages/collaboration/lib/ws-channel.coffee
_ = require 'underscore' guid = require 'guid' module.exports = class WsChannel _.extend @prototype, require('event-emitter') constructor: (@name) -> @clientId = guid.create().toString() @socket = new WebSocket('ws://localhost:8080') @socket.onopen = => @rawSend 'subscribe', @name, @clientId ...
_ = require 'underscore' guid = require 'guid' keytar = require 'keytar' module.exports = class WsChannel _.extend @prototype, require('event-emitter') constructor: (@name) -> @clientId = guid.create().toString() token = keytar.getPassword('github.com', 'github') @socket = new WebSocket("ws://localhos...
Send OAuth token as web socket query param
Send OAuth token as web socket query param
CoffeeScript
mit
Rychard/atom,kevinrenaers/atom,mnquintana/atom,woss/atom,palita01/atom,Andrey-Pavlov/atom,codex8/atom,lovesnow/atom,andrewleverette/atom,CraZySacX/atom,G-Baby/atom,devmario/atom,fang-yufeng/atom,alexandergmann/atom,vinodpanicker/atom,stuartquin/atom,russlescai/atom,sekcheong/atom,kittens/atom,jordanbtucker/atom,ashneo7...
9c381caa826a2cf92091e104d413f71092976c9c
app/assets/volume/editLinks.coffee
app/assets/volume/editLinks.coffee
'use strict' app.directive 'volumeEditLinksForm', [ 'pageService', (page) -> restrict: 'E', templateUrl: 'volume/editLinks.html', link: ($scope) -> volume = $scope.volume form = $scope.volumeEditLinksForm form.data = _.map volume.links, (ref) -> head: ref.head url: re...
'use strict' app.directive 'volumeEditLinksForm', [ 'pageService', (page) -> restrict: 'E', templateUrl: 'volume/editLinks.html', link: ($scope) -> volume = $scope.volume form = $scope.volumeEditLinksForm form.data = _.map volume.links, (ref) -> head: ref.head url: re...
Add a submitted/unsubmitted thing to editing links.
Add a submitted/unsubmitted thing to editing links.
CoffeeScript
agpl-3.0
databrary/databrary,databrary/databrary,databrary/databrary,databrary/databrary
8c1947da7362b1242e7af13d2874cc909a708d04
src/components/learning-guide/weaker-panel.cjsx
src/components/learning-guide/weaker-panel.cjsx
React = require 'react' BS = require 'react-bootstrap' Router = require 'react-router' _ = require 'underscore' LearningGuide = require '../../flux/learning-guide' PracticeButton = require './practice-button' WeakerSections = require './weaker-sections' WeakerPanel = React.createClass propTypes: courseId: ...
React = require 'react' BS = require 'react-bootstrap' Router = require 'react-router' _ = require 'underscore' LearningGuide = require '../../flux/learning-guide' PracticeButton = require './practice-button' WeakerSections = require './weaker-sections' WeakerPanel = React.createClass propTypes: courseId: ...
Hide practice button if practice handler isn't provided
Hide practice button if practice handler isn't provided Even though the PracticeButton doesn't use the onPractice callback, it's a good way to determine if practicing sections is allowed. The prop is only given for the Student component, not Teacher or TeacherStudent.
CoffeeScript
agpl-3.0
openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js
3d07f0e5497ed4c35030bbc6ad877ec7b72d3134
src/auth.coffee
src/auth.coffee
try keytar = require 'keytar' catch error # Gracefully handle keytar failing to load due to missing library on Linux if process.platform is 'linux' keytar = findPassword: -> replacePassword: -> else throw error tokenName = 'Atom.io API Token' module.exports = # Get the Atom.io API token ...
try keytar = require 'keytar' catch error # Gracefully handle keytar failing to load due to missing library on Linux if process.platform is 'linux' keytar = findPassword: -> replacePassword: -> else throw error tokenName = 'Atom.io API Token' module.exports = # Get the Atom.io API token ...
Check the keychain for the token before falling back to ATOM_ACCESS_TOKEN.
Check the keychain for the token before falling back to ATOM_ACCESS_TOKEN. Otherwise auth failures get confusing: we’d keep updating the token stored in the keychain when the real problem was that ATOM_ACCESS_TOKEN was out of date. See #505.
CoffeeScript
mit
bronson/apm,Nikpolik/apm,bronson/apm,bronson/apm,Nikpolik/apm,atom/apm,atom/apm,atom/apm,Nikpolik/apm,Nikpolik/apm,atom/apm,bronson/apm
d91e23182f4758cfb1ea5c9a069a41b8467ba778
coffee/model/config.coffee
coffee/model/config.coffee
"use strict" module.exports = title: 'Hytteadmin' version: '2.0.0-alpha' desc: 'Administrasjon av hytter i Nasjonal Turbase' author: 'Hans Kristian Flaatten, Den Norske Turistforening' copyright: '&copy; Den Norske Turistforening'
"use strict" module.exports = title: 'Sherpa' version: '2.0.0-alpha' desc: 'Administrasjon av hytter i Nasjonal Turbase' author: 'Hans Kristian Flaatten, Den Norske Turistforening' copyright: '&copy; Den Norske Turistforening'
Change site tile to Sherpa
Change site tile to Sherpa
CoffeeScript
mit
Turistforeningen/hytteadmin_old