commit
stringlengths
40
40
old_file
stringlengths
9
134
new_file
stringlengths
9
134
old_contents
stringlengths
0
2.21k
new_contents
stringlengths
34
3.19k
subject
stringlengths
14
340
message
stringlengths
15
1.43k
lang
stringclasses
1 value
license
stringclasses
13 values
repos
stringlengths
9
29k
be40525798064ebf2401b9a1822e140727860c8d
lib/main.coffee
lib/main.coffee
IncompatiblePackagesView = null viewUri = 'atom://incompatible-packages' createView = (state) -> IncompatiblePackagesView ?= require './incompatible-packages-view' new IncompatiblePackagesView(state) atom.deserializers.add name: 'IncompatiblePackagesView' deserialize: (state) -> createView(state) incompatiblePackagesStatusView = null module.exports = activate: -> atom.workspace.registerOpener (filePath) -> createView(uri: viewUri) if filePath is viewUri atom.workspaceView.command 'incompatible-packages:view', -> atom.workspaceView.open(viewUri) atom.packages.once 'activated', -> if atom.workspaceView?.statusBar? incompatibleCount = 0 for pack in atom.packages.getLoadedPackages() incompatibleCount++ unless pack.isCompatible() if incompatibleCount > 0 IncompatiblePackagesStatusView = require './incompatible-packages-status-view' incompatiblePackagesStatusView ?= new IncompatiblePackagesStatusView(atom.workspaceView.statusBar, incompatibleCount) deactivate: -> incompatiblePackagesStatusView?.remove()
IncompatiblePackagesView = null viewUri = 'atom://incompatible-packages' createView = (state) -> IncompatiblePackagesView ?= require './incompatible-packages-view' new IncompatiblePackagesView(state) atom.deserializers.add name: 'IncompatiblePackagesView' deserialize: (state) -> createView(state) incompatiblePackagesStatusView = null module.exports = activate: -> atom.workspace.registerOpener (filePath) -> createView(uri: viewUri) if filePath is viewUri atom.workspaceView.command 'incompatible-packages:view', -> atom.workspaceView.open(viewUri) atom.workspaceView.command 'incompatible-packages:clear-cache', -> for key, data of global.localStorage if key.indexOf('installed-packages:') is 0 global.localStorage.removeItem(key) atom.packages.once 'activated', -> if atom.workspaceView?.statusBar? incompatibleCount = 0 for pack in atom.packages.getLoadedPackages() incompatibleCount++ unless pack.isCompatible() if incompatibleCount > 0 IncompatiblePackagesStatusView = require './incompatible-packages-status-view' incompatiblePackagesStatusView ?= new IncompatiblePackagesStatusView(atom.workspaceView.statusBar, incompatibleCount) deactivate: -> incompatiblePackagesStatusView?.remove()
Add command to clear the cache
Add command to clear the cache
CoffeeScript
mit
atom/incompatible-packages
4fff25007461efd6713770c6d74929c16d8254e6
index.coffee
index.coffee
__doc__ = """ An application that provides a service for confirming mobile numbers """ koa = require 'koa' gzip = require 'koa-gzip' router = require 'koa-router' formatApiErrors = require './response/formatApiErrors' secret = require './secret' # The server is implemented using Koa and generators. See http://koajs.com/. app = koa() app.name = 'Digitimate' app.proxy = true app.use(gzip()) app.use (next) -> @state.config = secret yield next app.use router app app.get '/', require './routes/home' app.get '/status', require './routes/status' app.all '/sendCode', formatApiErrors, require('./routes/codes').sendCodeAsync app.all '/checkCode', formatApiErrors, require('./routes/codes').checkCodeAsync if require.main is module port = secret?.server?.port ? 3000 server = app.listen port, -> {address: host, port} = server.address() console.log "Listening on http://#{ host }:#{ port }"
__doc__ = """ An application that provides a service for confirming mobile numbers """ koa = require 'koa' gzip = require 'koa-gzip' router = require 'koa-router' formatApiErrors = require './response/formatApiErrors' secret = require './secret' # The server is implemented using Koa and generators. See http://koajs.com/. app = koa() app.name = 'Digitimate' app.proxy = true app.use(gzip()) app.use (next) -> @state.config = secret yield next siteRouter = router() siteRouter.get '/', require './routes/home' siteRouter.get '/status', require './routes/status' app.use siteRouter.routes() app.use siteRouter.allowedMethods() apiRouter = router() apiRouter.use formatApiErrors apiRouter.all '/sendCode', require('./routes/codes').sendCodeAsync apiRouter.all '/checkCode', require('./routes/codes').checkCodeAsync app.use apiRouter.routes() app.use apiRouter.allowedMethods() if require.main is module port = secret?.server?.port ? 3000 server = app.listen port, -> {address: host, port} = server.address() console.log "Listening on http://#{ host }:#{ port }"
Create two routers, one for the site and another for API responses
[Routes] Create two routers, one for the site and another for API responses This makes it easier to add middleware just for our API responses ex: CORS headers
CoffeeScript
mit
digitimate/digitimate,digitimate/digitimate,jacob-ebey/digitimate,jacob-ebey/digitimate
1580e32e82d12db6f65a09a47f19c96775567b4b
lib/main.coffee
lib/main.coffee
{CompositeDisposable} = require 'atom' HistoryView = null ChangesView = null HISTORY_URI = 'atom://git-experiment/view-history' CHANGES_URI = 'atom://git-experiment/view-changes' module.exports = GitExperiment = subscriptions: null activate: (state) -> # Events subscribed to in atom's system can be easily cleaned up with a CompositeDisposable @subscriptions = new CompositeDisposable @subscriptions.add atom.workspace.registerOpener (filePath) => switch filePath when HISTORY_URI HistoryView ?= require './history-view' new HistoryView() when CHANGES_URI console.log 'detected CHANGES_URI' ChangesView ?= require './changes-view' new ChangesView() @openChangesView() deactivate: -> @subscriptions.dispose() serialize: -> # gitExperimentViewState: @gitExperimentView.serialize() openHistoryView: -> atom.workspace.open(HISTORY_URI) openChangesView: -> console.log 'in openChangesView' atom.workspace.open(CHANGES_URI) atom.commands.add 'atom-workspace', 'git-experiment:view-history', => GitExperiment.openHistoryView() atom.commands.add 'atom-workspace', 'git-experiment:view-and-commit-changes', => GitExperiment.openChangesView() window.git = require 'nodegit'
{CompositeDisposable} = require 'atom' HistoryView = null ChangesView = null HISTORY_URI = 'atom://git-experiment/view-history' CHANGES_URI = 'atom://git-experiment/view-changes' module.exports = GitExperiment = subscriptions: null activate: (state) -> # Events subscribed to in atom's system can be easily cleaned up with a CompositeDisposable @subscriptions = new CompositeDisposable @subscriptions.add atom.workspace.registerOpener (filePath) => switch filePath when HISTORY_URI HistoryView ?= require './history-view' new HistoryView() when CHANGES_URI console.log 'detected CHANGES_URI' ChangesView ?= require './changes-view' new ChangesView() #@openChangesView() deactivate: -> @subscriptions.dispose() serialize: -> # gitExperimentViewState: @gitExperimentView.serialize() openHistoryView: -> atom.workspace.open(HISTORY_URI) openChangesView: -> atom.workspace.open(CHANGES_URI) atom.commands.add 'atom-workspace', 'git-experiment:view-history', => GitExperiment.openHistoryView() atom.commands.add 'atom-workspace', 'git-experiment:view-and-commit-changes', => GitExperiment.openChangesView() window.git = require 'nodegit'
Remove console log and don't open view on load
Remove console log and don't open view on load
CoffeeScript
mit
atom/github,atom/github,atom/github
9b617fabf009b0d6605fd9fc17e0d10bcf5659e1
resources/assets/coffee/bootstrap-modal.coffee
resources/assets/coffee/bootstrap-modal.coffee
### Copyright 2015 ppy Pty. Ltd. This file is part of osu!web. osu!web is distributed with the hope of attracting more community contributions to the core ecosystem of osu!. osu!web is free software: you can redistribute it and/or modify it under the terms of the Affero GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. osu!web is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with osu!web. If not, see <http://www.gnu.org/licenses/>. ### $(document).on 'shown.bs.modal', '.modal', (e) -> $(e.target).find('.modal-af').focus()
### Copyright 2015 ppy Pty. Ltd. This file is part of osu!web. osu!web is distributed with the hope of attracting more community contributions to the core ecosystem of osu!. osu!web is free software: you can redistribute it and/or modify it under the terms of the Affero GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. osu!web is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with osu!web. If not, see <http://www.gnu.org/licenses/>. ### $(document).on 'shown.bs.modal', '.modal', (e) -> $(e.target).find('.modal-af').focus() $(document).on 'hidden.bs.modal', '.modal', -> $('.modal-backdrop').remove() $('body').css paddingRight: ''
Remove all backdrops when modal is hidden
Remove all backdrops when modal is hidden And reset the padding as well. Still Not sure how to properly fix this. At least this one will prevent black page when the avatar is clicked repeatedly. Closes #54.
CoffeeScript
agpl-3.0
ameliaikeda/osu-web,marcostudios/osu-web,Bobo1239/osu-web,notbakaneko/osu-web,ppy/osu-web,dvcrn/osu-web,notbakaneko/osu-web,nanaya/osu-web,Nekonyx/osu-web,Xyloo/osu-web,Kuron-kun/osu-web,MasterBugPatch/osu-web,Kuron-kun/osu-web,omkelderman/osu-web,marcostudios/osu-web,dvcrn/osu-web,Kuron-kun/osu-web,LiquidPL/osu-web,MasterBugPatch/osu-web,nanaya/osu-web,dvcrn/osu-web,kj415j45/osu-web,ameliaikeda/osu-web,comentarinformal/osu-web,Xyloo/osu-web,kj415j45/osu-web,LiquidPL/osu-web,marcostudios/osu-web,nekodex/osu-web,comentarinformal/osu-web,Bobo1239/osu-web,comentarinformal/osu-web,omkelderman/osu-web,nanaya/osu-web,omkelderman/osu-web,MasterBugPatch/osu-web,marcostudios/osu-web,LiquidPL/osu-web,comentarinformal/osu-web,Xyloo/osu-web,Nekonyx/osu-web,ppy/osu-web,Bobo1239/osu-web,ameliaikeda/osu-web,notbakaneko/osu-web,MasterBugPatch/osu-web,dvcrn/osu-web,ppy/osu-web,ppy/osu-web,nekodex/osu-web,LiquidPL/osu-web,comentarinformal/osu-web,marcostudios/osu-web,Nekonyx/osu-web,Kuron-kun/osu-web,ameliaikeda/osu-web,dvcrn/osu-web,ppy/osu-web,Xyloo/osu-web,Xyloo/osu-web,nanaya/osu-web,Bobo1239/osu-web,notbakaneko/osu-web,nekodex/osu-web,nekodex/osu-web,ameliaikeda/osu-web,nekodex/osu-web,nanaya/osu-web,Bobo1239/osu-web,kj415j45/osu-web,MasterBugPatch/osu-web,LiquidPL/osu-web,Nekonyx/osu-web,omkelderman/osu-web,kj415j45/osu-web,notbakaneko/osu-web
ed3b385e34671121be6769125de6a8c56b526156
app/assets/javascripts/application.js.coffee
app/assets/javascripts/application.js.coffee
#= require jquery.js #= require bootstrap.js #= require jquery_ujs #= require jquery-ui.js #= require jquery.cookie #= require jquery.titlealert #= require jquery.mousewheel #= require jquery.expanding #= require jquery.iframe-transport #= require jquery.liveready #= require jquery.resizestop #= require simply-scroll #= require bootstrap-datepicker #= require bootstrap-timepicker #= require hamlcoffee #= require date #= require date.extensions #= require faye #= require autolink #= require select2 #= require konami-1.3.3 #= require harlem # # require underscore #= require underscore-1.3.3 #= require backbone #= require backbone.getset # #= require cloudsdale # # #= require_tree ../templates/ #= require_tree ./models #= require_tree ./collections #= require_tree ./views #= require_tree ./routers #= require_tree ./modules
#= require jquery.js #= require bootstrap.js #= require jquery_ujs #= require jquery-ui.js #= require jquery.cookie #= require jquery.titlealert #= require jquery.mousewheel #= require jquery.expanding #= require jquery.iframe-transport #= require jquery.liveready #= require jquery.resizestop #= require simply-scroll #= require bootstrap-datepicker #= require bootstrap-timepicker #= require hamlcoffee #= require date #= require date.extensions #= require faye #= require autolink #= require select2 #= require konami-1.3.3 #= require harlem # # require underscore #= require underscore-1.3.3 #= require backbone #= require backbone.getset # #= require cloudsdale # #= require_tree ../templates/ #= require_tree ./models #= require_tree ./collections #= require_tree ./views #= require_tree ./routers #= require_tree ./modules window.foobar = -> console.log "it's working"
Add a method to check if the javascript is working.
Add a method to check if the javascript is working.
CoffeeScript
mit
cloudsdaleapp/cloudsdale-web,cloudsdaleapp/cloudsdale-web,cloudsdaleapp/cloudsdale-web,cloudsdaleapp/cloudsdale-web
cc49ee974b65b52e815d23446f8815ed1b81e52a
src/components/cc-dashboard/blank-course.cjsx
src/components/cc-dashboard/blank-course.cjsx
_ = require 'underscore' React = require 'react' BS = require 'react-bootstrap' DesktopImage = require './desktop-image' BlankCourse = React.createClass propTypes: courseId: React.PropTypes.string render: -> <div className="blank-course"> <h3 className="title"> Welcome to your OpenStax Concept Coach™ Dashboard </h3> <div className="body"> <h3>Getting Started</h3> <div className="side-by-side"> <ol> <li> Add sections to your course by clicking on your name in the top right corner and selecting "Course Settings and Roster." </li> <li> Generate a student enrollment code for each section you create. </li> <li> Distribute the enrollment codes for each section and textbook URL (which is the same for each section) to your students. </li> <li> Encourage your students to login to Concept Coach as part of their first reading assignment. </li> <li> As your students begin using Concept Coach, you will be able to track their performance and see their scores in your dashboard </li> </ol> <DesktopImage courseId={@props.courseId} /> </div> </div> </div> module.exports = BlankCourse
_ = require 'underscore' React = require 'react' BS = require 'react-bootstrap' DesktopImage = require './desktop-image' CourseGroupingLabel = require '../course-grouping-label' BlankCourse = React.createClass propTypes: courseId: React.PropTypes.string render: -> <div className="blank-course"> <h3 className="title"> Welcome to your OpenStax Concept Coach™ Dashboard </h3> <div className="body"> <h3>Getting Started</h3> <div className="side-by-side"> <ol> <li> Add <CourseGroupingLabel plural courseId={@props.courseId} /> to your course by clicking on your name in the top right corner and selecting "Course Settings and Roster." </li> <li> Generate a student enrollment code for each <CourseGroupingLabel courseId={@props.courseId} /> you create. </li> <li> Distribute the enrollment codes for each <CourseGroupingLabel courseId={@props.courseId} /> and textbook URL (which is the same for each <CourseGroupingLabel courseId={@props.courseId} />) to your students. </li> <li> Encourage your students to login to Concept Coach as part of their first reading assignment. </li> <li> As your students begin using Concept Coach, you will be able to track their performance and see their scores in your dashboard </li> </ol> <DesktopImage courseId={@props.courseId} /> </div> </div> </div> module.exports = BlankCourse
Use CourseGroupingLabel when referring to sections
Use CourseGroupingLabel when referring to sections
CoffeeScript
agpl-3.0
openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js
567f0f4db99fd503f9569531ba8215f04cfca16b
app/assets/javascripts/links.js.coffee
app/assets/javascripts/links.js.coffee
# Place all the behaviors and hooks related to the matching controller here. # All this logic will automatically be available in application.js. # You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/ $(document).ready () -> $('.line a').live 'click', (event) -> window.open $(this).attr('href') event.preventDefault() $('.youtube_button').live 'click', (event) -> $(this).parents('.link').children('.youtube_video').toggle() event.preventDefault() $('.image_button').live 'click', (event) -> $(this).parents('.link').children('.image').toggle() event.preventDefault() $('.show_all').live 'click', (event) -> $('.link:not(.nws)').children('.image, .youtube_video').show() event.preventDefault() $('.search').children('input[type=text]').focus (event) -> $(event.target).select()
# Place all the behaviors and hooks related to the matching controller here. # All this logic will automatically be available in application.js. # You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/ $(document).ready () -> $('.line a').on 'click', (event) -> window.open $(this).attr('href') event.preventDefault() $('.youtube_button').on 'click', (event) -> $(this).parents('.link').children('.youtube_video').toggle() event.preventDefault() $('.image_button').on 'click', (event) -> $(this).parents('.link').children('.image').toggle() event.preventDefault() $('.show_all').on 'click', (event) -> $('.link:not(.nws)').children('.image, .youtube_video').show() event.preventDefault() $('.search').children('input[type=text]').focus (event) -> $(event.target).select()
Replace jQuery .live method by .on
Replace jQuery .live method by .on
CoffeeScript
mit
AlSquire/WebLapine,AlSquire/WebLapine
be964a2631b95f4d89a8923a1b55653131aee7be
src/beans/MongooseLogger.coffee
src/beans/MongooseLogger.coffee
util = require 'util' module.exports = (logger, depth = 2) -> (collection, method, query, doc, options) -> logger.info 'mongoose', '"#{collection}.#{method}(#{util.inspect(query, depth: depth)}) - #{util.inspect(doc, depth: depth)} [#{options}]"
util = require 'util' module.exports = (logger, depth = 2) -> (collection, method, query, doc, options) -> logger.info 'mongoose', "#{collection}.#{method}(#{util.inspect(query, depth: depth)}) - #{util.inspect(doc, depth: depth)} [#{options}]"
Add prefix to mongoose logs.
Add prefix to mongoose logs.
CoffeeScript
mit
sekko27/node-wire-helper
57a00f5f3689e750b135021aff595c5162a7b724
resources/assets/coffee/_classes/profile-page-hash.coffee
resources/assets/coffee/_classes/profile-page-hash.coffee
### # Copyright 2015-2017 ppy Pty. Ltd. # # This file is part of osu!web. osu!web is distributed with the hope of # attracting more community contributions to the core ecosystem of osu!. # # osu!web is free software: you can redistribute it and/or modify # it under the terms of the Affero GNU General Public License version 3 # as published by the Free Software Foundation. # # osu!web is distributed WITHOUT ANY WARRANTY; without even the implied # warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # See the GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with osu!web. If not, see <http://www.gnu.org/licenses/>. ### class @ProfilePageHash @noMode: (page) => ['kudosu', 'me', 'medals'].indexOf(page) != -1 @parse: (hash) => hash = hash.slice 1 if @noMode(hash) page: hash else split = hash.split '/' mode: split[0] page: split[1] || 'main' @generate: (options) => if @noMode(options.page) "##{options.page}" else hash = "##{options.mode}" hash += "/#{options.page}" if options.page? && options.page != 'main' hash
### # Copyright 2015-2017 ppy Pty. Ltd. # # This file is part of osu!web. osu!web is distributed with the hope of # attracting more community contributions to the core ecosystem of osu!. # # osu!web is free software: you can redistribute it and/or modify # it under the terms of the Affero GNU General Public License version 3 # as published by the Free Software Foundation. # # osu!web is distributed WITHOUT ANY WARRANTY; without even the implied # warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # See the GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with osu!web. If not, see <http://www.gnu.org/licenses/>. ### class @ProfilePageHash @noMode: (page) => ['kudosu', 'me', 'medals'].indexOf(page) != -1 @parse: (hash) => hash = hash.slice 1 if hash.length == 0 {} else if @noMode(hash) page: hash else split = hash.split '/' mode: split[0] page: split[1] || 'main' @generate: (options) => if @noMode(options.page) "##{options.page}" else hash = "##{options.mode}" hash += "/#{options.page}" if options.page? && options.page != 'main' hash
Fix starting mode when loading user profile page
Fix starting mode when loading user profile page Splitting empty string results in single element array of empty string
CoffeeScript
agpl-3.0
Kuron-kun/osu-web,nanaya/osu-web,notbakaneko/osu-web,nekodex/osu-web,ppy/osu-web,ppy/osu-web,kj415j45/osu-web,comentarinformal/osu-web,Kuron-kun/osu-web,LiquidPL/osu-web,comentarinformal/osu-web,kj415j45/osu-web,comentarinformal/osu-web,Kuron-kun/osu-web,nekodex/osu-web,omkelderman/osu-web,LiquidPL/osu-web,notbakaneko/osu-web,omkelderman/osu-web,kj415j45/osu-web,nanaya/osu-web,Nekonyx/osu-web,Nekonyx/osu-web,ppy/osu-web,notbakaneko/osu-web,nanaya/osu-web,ppy/osu-web,ppy/osu-web,kj415j45/osu-web,Nekonyx/osu-web,Kuron-kun/osu-web,comentarinformal/osu-web,nanaya/osu-web,LiquidPL/osu-web,notbakaneko/osu-web,comentarinformal/osu-web,LiquidPL/osu-web,omkelderman/osu-web,nekodex/osu-web,omkelderman/osu-web,nekodex/osu-web,Nekonyx/osu-web,notbakaneko/osu-web,LiquidPL/osu-web,nekodex/osu-web,nanaya/osu-web
5c5db0e546a0dd9dc5d122fe79db70a4ca044042
server/classrooms/Classroom.coffee
server/classrooms/Classroom.coffee
mongoose = require 'mongoose' log = require 'winston' config = require '../../server_config' plugins = require '../plugins/plugins' User = require '../users/User' jsonSchema = require '../../app/schemas/models/classroom.schema' ClassroomSchema = new mongoose.Schema {}, {strict: false, minimize: false, read:config.mongo.readpref} ClassroomSchema.statics.privateProperties = [] ClassroomSchema.statics.editableProperties = [ 'description' 'name' ] ClassroomSchema.statics.generateNewCode = (done) -> tryCode = -> code = _.sample("abcdefghijklmnopqrstuvwxyz0123456789", 8).join('') Classroom.findOne code: code, (err, classroom) -> return done() if err return done(code) unless classroom tryCode() tryCode() ClassroomSchema.plugin plugins.NamedPlugin ClassroomSchema.pre('save', (next) -> return next() if @get('code') Classroom.generateNewCode (code) => @set 'code', code next() ) ClassroomSchema.methods.isOwner = (userID) -> return userID.equals(@get('ownerID')) ClassroomSchema.methods.isMember = (userID) -> return _.any @get('members') or [], (memberID) -> userID.equals(memberID) ClassroomSchema.statics.jsonSchema = jsonSchema module.exports = Classroom = mongoose.model 'classroom', ClassroomSchema, 'classrooms'
mongoose = require 'mongoose' log = require 'winston' config = require '../../server_config' plugins = require '../plugins/plugins' User = require '../users/User' jsonSchema = require '../../app/schemas/models/classroom.schema' ClassroomSchema = new mongoose.Schema {}, {strict: false, minimize: false, read:config.mongo.readpref} ClassroomSchema.statics.privateProperties = [] ClassroomSchema.statics.editableProperties = [ 'description' 'name' ] ClassroomSchema.statics.generateNewCode = (done) -> tryCode = -> code = _.sample("abcdefghijklmnopqrstuvwxyz0123456789", 8).join('') Classroom.findOne code: code, (err, classroom) -> return done() if err return done(code) unless classroom tryCode() tryCode() #ClassroomSchema.plugin plugins.NamedPlugin ClassroomSchema.pre('save', (next) -> return next() if @get('code') Classroom.generateNewCode (code) => @set 'code', code next() ) ClassroomSchema.methods.isOwner = (userID) -> return userID.equals(@get('ownerID')) ClassroomSchema.methods.isMember = (userID) -> return _.any @get('members') or [], (memberID) -> userID.equals(memberID) ClassroomSchema.statics.jsonSchema = jsonSchema module.exports = Classroom = mongoose.model 'classroom', ClassroomSchema, 'classrooms'
Remove named plugin from classroom
Remove named plugin from classroom Since we're sourcing from course instances which did not have such a limitation
CoffeeScript
mit
Zacharias030/codecombat,codecombat/codecombat,jeremiahyan/codecombat,duybkict/codecombat,edtrist/codecombat,laituan245/codecombat,MonkStrom/codecombat,aashaka/codecombat,Zacharias030/codecombat,tpai/codecombat,weevilgenius/codecombat,probil/codecombat,icodegame/codecombat,wgsu/codecombat,differentmatt/codecombat,jeremiahyan/codecombat,javatlacati/codecombat,bsmr-x-script/codecombat,tpai/codecombat,VilkkuV/codecombat,khoa102/codecombat,jeremyprice/codecombat,nimda7/codecombat,Zerrien/codecombat,nimda7/codecombat,fabichoi/codecombat,edtrist/codecombat,jhoon/codecombat,Zerrien/codecombat,khoa102/codecombat,tpai/codecombat,zhangxiuquan/codecombat,aashaka/codecombat,bsmr-x-script/codecombat,tpai/codecombat,probil/codecombat,icodegame/codecombat,laituan245/codecombat,jeremiahyan/codecombat,UltCombo/codecombat,jacobakkerboom/codecombat,VilkkuV/codecombat,jeremyprice/codecombat,Minhir/codecombat,jacobakkerboom/codecombat,differentmatt/codecombat,weevilgenius/codecombat,differentmatt/codecombat,jhoon/codecombat,javatlacati/codecombat,jacobakkerboom/codecombat,Zacharias030/codecombat,laituan245/codecombat,khoa102/codecombat,Minhir/codecombat,duybkict/codecombat,MonkStrom/codecombat,probil/codecombat,UltCombo/codecombat,kidaa/codecombat,VilkkuV/codecombat,zhangxiuquan/codecombat,Zerrien/codecombat,probil/codecombat,nimda7/codecombat,icodegame/codecombat,jacobakkerboom/codecombat,Zerrien/codecombat,fabichoi/codecombat,Minhir/codecombat,VilkkuV/codecombat,edtrist/codecombat,aashaka/codecombat,aashaka/codecombat,javatlacati/codecombat,differentmatt/codecombat,MonkStrom/codecombat,javatlacati/codecombat,MonkStrom/codecombat,Zacharias030/codecombat,duybkict/codecombat,codecombat/codecombat,codecombat/codecombat,zhangxiuquan/codecombat,UltCombo/codecombat,wgsu/codecombat,Minhir/codecombat,edtrist/codecombat,laituan245/codecombat,kidaa/codecombat,bsmr-x-script/codecombat,jeremyprice/codecombat,zhangxiuquan/codecombat,wgsu/codecombat,kidaa/codecombat,kidaa/codecombat,codecombat/codecombat,jeremyprice/codecombat,icodegame/codecombat,fabichoi/codecombat,javatlacati/codecombat,bsmr-x-script/codecombat,khoa102/codecombat,jhoon/codecombat,UltCombo/codecombat,wgsu/codecombat,duybkict/codecombat,weevilgenius/codecombat,jeremiahyan/codecombat,fabichoi/codecombat,weevilgenius/codecombat,nimda7/codecombat,jhoon/codecombat,codecombat/codecombat
827ec007e934e2170aa5fea3455612c6a27f0804
app/routes/application.coffee
app/routes/application.coffee
Route = Ember.Route.extend model: -> # return the current user as the model if authenticated, otherwise a blank object new Promise (resolve, reject) => promise = $.ajax url: '/api/me' dataType: 'json' promise.done (result) => user = Ember.Object.create(result) if result.isAnon @set 'session.isAnon', true @set 'session.currentUser', null else @set 'session.isAnon', false @set 'session.currentUser', user resolve(user) promise.fail (result) -> reject() actions: flushUpdateQueue: -> return unless @get('session.currentUser.isAdmin') updateQueue = @get('updateQueue') while updateQueue.get('length') section = updateQueue.popObject() section.save() error: (result, transition) -> if result.status is 403 signinController = @controllerFor 'signin' signinController.set 'afterLoginTransition', transition @transitionTo 'signin' `export default Route`
Route = Ember.Route.extend model: -> # return the current user as the model if authenticated, otherwise a blank object new Promise (resolve, reject) => promise = $.ajax url: '/api/me' dataType: 'json' promise.done (result) => user = Ember.Object.create(result) if result.isAnon @set 'session.isAnon', true @set 'session.currentUser', null else @set 'session.isAnon', false @set 'session.currentUser', user resolve(user) promise.fail (result) -> reject() clearSession: -> @set 'session.currentUser', undefined @set 'session.isAnon', true actions: flushUpdateQueue: -> return unless @get('session.currentUser.isAdmin') updateQueue = @get('updateQueue') while updateQueue.get('length') section = updateQueue.popObject() section.save() error: (result, transition) -> if result.status is 403 @clearSession() @transitionTo 'signout' `export default Route`
Clear the session if a 403 occurs
Clear the session if a 403 occurs
CoffeeScript
mit
artzte/fightbook-app
a3859064d681b98aa3dea9f65e7e38fd757e4cb5
test/index.coffee
test/index.coffee
assert = require 'assert' request = require 'supertest' req = request require '../src/server' describe '/CloudHealthCheck', -> it 'should return 200 for OPTIONS request', (done) -> req.options '/CloudHealthCheck' .expect 200 .end done it 'shoudl return 200 for GET request', (done) -> req.get '/CloudHealthCheck' .expect 200 .expect (res) -> assert.deepEqual res.body, message: 'System OK' .end done describe 'CORS', -> it 'should send CORS headers', (done) -> req.options '/' .set 'Origin', 'http://example1.com' .expect 200 .expect 'Access-Control-Allow-Origin', 'http://example1.com' .expect 'Access-Control-Allow-Methods', 'GET, POST' .expect 'Access-Control-Allow-Headers', 'X-Requested-With, Content-Type' .expect 'Access-Control-Expose-Headers', 'X-Response-Time' .expect 'Access-Control-Allow-Max-Age', 0 .end done it 'should deny non-allowed Origin', (done) -> req.options '/' .set 'Origin', 'http://example3.com' .expect 403 .end done describe 'API v1', -> require './routes/api_v1-spec'
assert = require 'assert' request = require 'supertest' req = request require '../src/server' describe '/CloudHealthCheck', -> it 'should return 200 for OPTIONS request', (done) -> req.options '/CloudHealthCheck' .expect 200 .end done it 'should return 200 for GET request', (done) -> req.get '/CloudHealthCheck' .expect 200 .expect (res) -> assert.deepEqual res.body, message: 'System OK' .end done describe 'CORS', -> it 'should send CORS headers', (done) -> req.options '/' .set 'Origin', 'http://example1.com' .expect 200 .expect 'Access-Control-Allow-Origin', 'http://example1.com' .expect 'Access-Control-Allow-Methods', 'GET, POST' .expect 'Access-Control-Allow-Headers', 'X-Requested-With, Content-Type' .expect 'Access-Control-Expose-Headers', 'X-Response-Time' .expect 'Access-Control-Allow-Max-Age', 0 .end done it 'should deny non-allowed Origin', (done) -> req.options '/' .set 'Origin', 'http://example3.com' .expect 403 .end done describe 'API v1', -> require './routes/api_v1-spec'
Fix spelling misstake in test case
Fix spelling misstake in test case
CoffeeScript
mit
Turistforeningen/Jotunheimr
a022f4e83974bf9b4001ff86d41f4080d0650a2b
lib/project-config.coffee
lib/project-config.coffee
fs = require 'fs' path = require 'path' module.exports = class ProjectConfig data: {} disposables: [] constructor: -> @load(atom.project.getPaths()) @disposables.push(atom.project.onDidChangePaths(@load)) load: (paths) -> for dir in paths if @isDirectory(dir) configPath = path.resolve(dir, ".existdb.json") console.log(configPath) if fs.existsSync(configPath) console.log("Found config: %s", configPath) contents = fs.readFileSync(configPath, 'utf8') try @data = JSON.parse(contents) catch e atom.notifications.addInfo('Error parsing .existdb.json.') isDirectory: (dir) -> try return fs.statSync(dir).isDirectory() catch then return false destroy: -> for disposable in disposables disposable.dispose()
fs = require 'fs' path = require 'path' $ = require('jquery') defaultConfig = { "server": "http://localhost:8080/exist", "user": "guest", "password": "guest", "root": "/db" } module.exports = class ProjectConfig data: {} disposables: [] constructor: -> @load(atom.project.getPaths()) @disposables.push(atom.project.onDidChangePaths(@load)) load: (paths) -> for dir in paths if @isDirectory(dir) configPath = path.resolve(dir, ".existdb.json") console.log(configPath) if fs.existsSync(configPath) console.log("Found config: %s", configPath) contents = fs.readFileSync(configPath, 'utf8') try @data = JSON.parse(contents) catch e atom.notifications.addInfo('Error parsing .existdb.json.') @data = $.extend({}, defaultConfig, @data) isDirectory: (dir) -> try return fs.statSync(dir).isDirectory() catch then return false destroy: -> disposable.dispose() for disposable in disposables
Use default configuration if no project config is available
Use default configuration if no project config is available
CoffeeScript
mit
wolfgangmm/atom-existdb
d3c9e1e060b4babb243f5ac90331c229d69e3e66
Gruntfile.coffee
Gruntfile.coffee
module.exports = (grunt) -> grunt.initConfig clean: package: ['lib'] coffee: options: bare: true files: expand: true cwd: 'src' src: ['**/*.coffee'] dest: 'lib' ext: '.js' grunt.loadNpmTasks 'grunt-contrib-clean' grunt.loadNpmTasks 'grunt-contrib-coffee' grunt.registerTask 'default', []
module.exports = (grunt) -> grunt.initConfig clean: package: ['lib'] coffee: options: bare: true files: expand: true cwd: 'src' src: ['**/*.coffee'] dest: 'lib' ext: '.js' grunt.loadNpmTasks 'grunt-contrib-clean' grunt.loadNpmTasks 'grunt-contrib-coffee' grunt.registerTask 'build', ['clean:package', 'coffee'] grunt.registerTask 'default', []
Add Grunt task alias ‘build’
Add Grunt task alias ‘build’
CoffeeScript
bsd-2-clause
SonicHedgehog/judge
ac6330c0485a38c6eddf210374f355b8a6275079
configs/test/jest.setup.coffee
configs/test/jest.setup.coffee
chai = require('chai') sinon = require('sinon') sinonChai = require('sinon-chai') chai.use(sinonChai) isFunction = require('lodash/isFunction') global.enzyme = require 'enzyme' chaiEnzyme = require('chai-enzyme') chai.use(chaiEnzyme()) global.Promise = require.requireActual('es6-promise') # https://github.com/facebook/jest/issues/1730 # Make sure chai and jasmine ".not" play nice together originalNot = Object.getOwnPropertyDescriptor(chai.Assertion.prototype, 'not').get Object.defineProperty chai.Assertion.prototype, 'not', get: -> Object.assign this, @assignedNot originalNot.apply this set: (newNot) -> @assignedNot = newNot newNot # Combine both jest and chai matchers on expect originalExpect = global.expect global.expect = (actual) -> originalMatchers = originalExpect(actual) chaiMatchers = chai.expect(actual) combinedMatchers = Object.assign(chaiMatchers, originalMatchers) combinedMatchers global.chia = chai global.sinon = sinon global.jasmineExpect = global.expect global.shallow = enzyme.shallow global.mount = enzyme.mount global.expect = (actual) -> originalMatchers = global.jasmineExpect(actual) chaiMatchers = chai.expect(actual) combinedMatchers = Object.assign(chaiMatchers, originalMatchers) combinedMatchers
chai = require('chai') sinon = require('sinon') sinonChai = require('sinon-chai') chai.use(sinonChai) isFunction = require('lodash/isFunction') global.enzyme = require 'enzyme' chaiEnzyme = require('chai-enzyme') chai.use(chaiEnzyme()) global.Promise = require.requireActual('es6-promise') # https://github.com/facebook/jest/issues/1730 # Make sure chai and jasmine ".not" play nice together originalNot = Object.getOwnPropertyDescriptor(chai.Assertion.prototype, 'not').get Object.defineProperty chai.Assertion.prototype, 'not', get: -> Object.assign this, @assignedNot originalNot.apply this set: (newNot) -> @assignedNot = newNot newNot # Combine both jest and chai matchers on expect originalExpect = global.expect # bump up timeout to 5 seconds global.jasmine.DEFAULT_TIMEOUT_INTERVAL = 5000 global.expect = (actual) -> originalMatchers = originalExpect(actual) chaiMatchers = chai.expect(actual) combinedMatchers = Object.assign(chaiMatchers, originalMatchers) combinedMatchers global.chia = chai global.sinon = sinon global.jasmineExpect = global.expect global.shallow = enzyme.shallow global.mount = enzyme.mount global.expect = (actual) -> originalMatchers = global.jasmineExpect(actual) chaiMatchers = chai.expect(actual) combinedMatchers = Object.assign(chaiMatchers, originalMatchers) combinedMatchers
Update timeout to 5 seconds
Update timeout to 5 seconds
CoffeeScript
agpl-3.0
openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js
e220ed3037e5c7afd893582a60636e05ec7dce86
server/calculations/ratingConstants.coffee
server/calculations/ratingConstants.coffee
export startDayForWeeks = "lic40": "2019-09-04" "lic87": "2019-09-02" "zaoch": "2019-09-01" "stud": "2019-09-02" "notnnov": "2019-09-02" "graduated": "2019-09-02" "unknown": "2019-09-02" export WEEK_ACTIVITY_EXP = 0.55 export LEVEL_RATING_EXP = 2.5 export ACTIVITY_THRESHOLD = 0.1 export MSEC_IN_WEEK = 7 * 24 * 60 * 60 * 1000
export startDayForWeeks = "lic40": "2019-09-04" "lic87": "2019-08-31" "zaoch": "2019-09-01" "stud": "2019-09-02" "notnnov": "2019-09-02" "graduated": "2019-09-02" "unknown": "2019-09-02" export WEEK_ACTIVITY_EXP = 0.55 export LEVEL_RATING_EXP = 2.5 export ACTIVITY_THRESHOLD = 0.1 export MSEC_IN_WEEK = 7 * 24 * 60 * 60 * 1000
Set start day for lic87
Set start day for lic87
CoffeeScript
agpl-3.0
petr-kalinin/algoprog,petr-kalinin/algoprog,petr-kalinin/algoprog,petr-kalinin/algoprog
343a7a35b0e71b82e85ad1331527b0b9efc1d8d9
lib/pdf-status-bar-view.coffee
lib/pdf-status-bar-view.coffee
{View} = require 'atom' module.exports = class PdfStatusBarView extends View @content: -> @div class: 'status-image inline-block', => @span class: 'pdf-status', outlet: 'pdfStatus' initialize: (@statusBar) -> @attach() @subscribe atom.workspaceView, 'pane-container:active-pane-item-changed', => @updatePdfStatus() @subscribe atom.workspaceView, 'pdf-view:current-page-update', => @updatePdfStatus() attach: -> @statusBar.appendLeft this afterAttach: -> @updatePdfStatus() getPdfStatus: (view) -> @pdfStatus.text("Page: #{view.currentPageNumber}/#{view.totalPageNumber}").show() updatePdfStatus: -> view = atom.workspaceView.getActiveView() if view.pdfDocument @getPdfStatus(view) else @pdfStatus.hide()
{View} = require 'atom' module.exports = class PdfStatusBarView extends View @content: -> @div class: 'status-image inline-block', => @span class: 'pdf-status', outlet: 'pdfStatus' initialize: (@statusBar) -> @attach() @subscribe atom.workspaceView, 'pane-container:active-pane-item-changed', => @updatePdfStatus() @subscribe atom.workspaceView, 'pdf-view:current-page-update', => @updatePdfStatus() attach: -> @statusBar.appendLeft this afterAttach: -> @updatePdfStatus() getPdfStatus: (view) -> @pdfStatus.text("Page: #{view.currentPageNumber}/#{view.totalPageNumber}").show() updatePdfStatus: -> view = atom.workspaceView.getActiveView() if view and view.pdfDocument @getPdfStatus(view) else @pdfStatus.hide()
Check if view is available
Check if view is available
CoffeeScript
mit
epimorphic/atom-pdf-view,izuzak/atom-pdf-view
6808f0c309adb5900d3b4e1d3e00089c33ef7052
Gruntfile.coffee
Gruntfile.coffee
module.exports = (grunt) -> path = require 'path' require('time-grunt')(grunt) require('jit-grunt')(grunt, { express: 'grunt-express-server' }) require('load-grunt-tasks')(grunt, { pattern: ['main-bower-files'] }) require('load-grunt-config')(grunt, { configPath: path.join __dirname, 'grunt/config' data: assets: 'assets' build: '.build' locales: 'locales' src: 'src' static: 'static' styles: 'styles' views: 'views' jitGrunt: true }) grunt.loadTasks './grunt/tasks' grunt.registerTask 'build', [ 'clean:build' 'copy:app' 'copy:fonts' 'copy:images' 'copy:vendor' 'bower:client' # TODO: Fix the coffee2css task, it doesn't currently work #'coffee2css' 'jade:client' 'less:client' 'i18next-yaml' ] grunt.registerTask 'dist', [ 'build' 'requirejs' ] grunt.registerTask 'publish', [ 'clean:static' 'copy:publish' ] grunt.registerTask 'start', [ 'build' 'publish' 'coffee:server' 'express:dev' 'watch' ]
module.exports = (grunt) -> path = require 'path' require('time-grunt')(grunt) require('jit-grunt')(grunt, { express: 'grunt-express-server' }) require('load-grunt-tasks')(grunt, { pattern: ['main-bower-files'] }) require('load-grunt-config')(grunt, { configPath: path.join __dirname, 'grunt/config' data: assets: 'assets' build: '.build' locales: 'locales' src: 'src' static: 'static' styles: 'styles' views: 'views' jitGrunt: true }) grunt.loadTasks './grunt/tasks' grunt.registerTask 'build', [ 'clean:build' 'bower:client' 'copy:app' 'copy:fonts' 'copy:vendor' 'jade:client' 'i18next-yaml' # TODO: Fix the coffee2css task, it doesn't currently work #'coffee2css' ] grunt.registerTask 'dev', [ 'build' 'less:dev' 'copy:images' ] grunt.registerTask 'dist', [ 'build' 'less:dist' 'imagemin:dist' 'requirejs' ] grunt.registerTask 'publish', [ 'clean:static' 'copy:publish' ] grunt.registerTask 'start', [ 'build' 'publish' 'coffee:server' 'express:dev' 'watch' ]
Refactor Grunt build into dev and dist
Refactor Grunt build into dev and dist
CoffeeScript
agpl-3.0
vaaralav/servicemap,City-of-Helsinki/servicemap,vaaralav/servicemap,City-of-Helsinki/servicemap,vaaralav/servicemap,City-of-Helsinki/servicemap
c7b404a7cc17cfb56cc92e45a0230aa345f36051
Gruntfile.coffee
Gruntfile.coffee
module.exports = (grunt) -> # Project configuration. grunt.initConfig coffee: default: files: [ expand: true # Enable dynamic expansion. cwd: 'src/' # Src matches are relative to this path. src: ['**/*.coffee'] # Actual pattern(s) to match. dest: 'lib/' # Destination path prefix. ext: '.js' # Dest filepaths will have this extension. ] watch: lib: files: ['lib/**/*.js'] tasks: ['coffee', 'mocha'] test: files: ['test/**/*.js'] tasks: ['mocha'] # These plugins provide necessary tasks. grunt.loadNpmTasks 'grunt-contrib-coffee' grunt.loadNpmTasks 'grunt-contrib-watch' # Default task. grunt.registerTask 'default', ['coffee', 'mocha'] # Task for running Mocha tests with coffee. grunt.registerTask 'mocha', 'Run mocha unit tests.', -> done = @async() mocha = cmd: 'mocha' args: ['--compilers','coffee:coffee-script','--colors','--reporter','spec'] grunt.util.spawn mocha, (error, result) -> if error grunt.log.ok( result.stdout ).error( result.stderr ).writeln() done new Error('Error running mocha unit tests.') else grunt.log.ok( result.stdout ).writeln() done()
module.exports = (grunt) -> # Project configuration. grunt.initConfig coffee: default: files: [ expand: true # Enable dynamic expansion. cwd: 'src/' # Src matches are relative to this path. src: ['**/*.coffee'] # Actual pattern(s) to match. dest: 'lib/' # Destination path prefix. ext: '.js' # Dest filepaths will have this extension. ] watch: src: files: ['src/**/*.coffee'] tasks: ['coffee', 'mocha'] test: files: ['test/**/*.js'] tasks: ['mocha'] # These plugins provide necessary tasks. grunt.loadNpmTasks 'grunt-contrib-coffee' grunt.loadNpmTasks 'grunt-contrib-watch' # Default task. grunt.registerTask 'default', ['coffee', 'mocha'] # Task for running Mocha tests with coffee. grunt.registerTask 'mocha', 'Run mocha unit tests.', -> done = @async() mocha = cmd: 'mocha' args: ['--compilers','coffee:coffee-script','--colors','--reporter','spec'] grunt.util.spawn mocha, (error, result) -> if error grunt.log.ok( result.stdout ).error( result.stderr ).writeln() done new Error('Error running mocha unit tests.') else grunt.log.ok( result.stdout ).writeln() done()
Watch CoffeeScript files, not compiled JS files
Grunt: Watch CoffeeScript files, not compiled JS files
CoffeeScript
mit
impromptu/impromptu,impromptu/impromptu
bf73b88965d2efb463a3052cbc3f2e896f177d78
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 :' description: 'Add 1 whitespace to the left' type: 'boolean' default: false ':-rightSpace': title: 'Right space for :' description: 'Add 1 whitespace to the right' type: 'boolean' default: true ':-scope': title: 'Character scope' description: 'Scope string to match' type: 'string' default: 'key-value|property-name|operator'
module.exports = selector: ['.source.css.scss', '.source.sass'] id: 'aligner-scss' # package name config: ':-enabled': title: 'Enable aligning :' type: 'boolean' default: true ':-alignment': title: 'Padding for :' description: 'Pad left or right of the character' type: 'string' default: 'right' ':-leftSpace': title: 'Left space for :' description: 'Add 1 whitespace to the left' type: 'boolean' default: false ':-rightSpace': title: 'Right space for :' description: 'Add 1 whitespace to the right' type: 'boolean' default: true '{-enabled': title: 'Enable aligning {' type: 'boolean' default: false '{-alignment': title: 'Padding for {' description: 'Pad left or right of the character' type: 'string' default: 'left' '{-leftSpace': title: 'Left space for {' description: 'Add 1 whitespace to the left' type: 'boolean' default: true '{-rightSpace': title: 'Right space for {' description: 'Add 1 whitespace to the right' type: 'boolean' default: true privateConfig: ':-scope': 'key-value|property-name|operator' '{-scope': 'property-list.begin'
Add { as alignable character (disabled by default)
Add { as alignable character (disabled by default)
CoffeeScript
mit
adrianlee44/atom-aligner-scss
b913118e0720292289da90bb50b717cc0b2e23ba
services/web/public/coffee/ide/FeatureOnboardingController.coffee
services/web/public/coffee/ide/FeatureOnboardingController.coffee
define [ "base" ], (App) -> App.controller "FeatureOnboardingController", ($scope, settings) -> $scope.isFeatureSettingDefined = window.userSettings.syntaxValidation?; $scope.innerStep = 1 $scope.turnCodeCheckOn = () -> settings.saveProjectSettings({ syntaxValidation: true }) navToInnerStep2() $scope.turnCodeCheckOn = () -> settings.saveProjectSettings({ syntaxValidation: false }) navToInnerStep2() $scope.dismiss = () -> # TODO Toggle logic. $scope.isFeatureSettingDefined = false navToInnerStep2 = () -> $scope.innerStep = 2 $scope.ui.leftMenuShown = true
define [ "base" ], (App) -> App.controller "FeatureOnboardingController", ($scope, settings) -> $scope.isFeatureSettingDefined = window.userSettings.syntaxValidation?; $scope.innerStep = 1 $scope.turnCodeCheckOn = () -> settings.saveSettings({ syntaxValidation: true }) navToInnerStep2() $scope.turnCodeCheckOn = () -> settings.saveSettings({ syntaxValidation: false }) navToInnerStep2() $scope.dismiss = () -> # TODO Toggle logic. $scope.isFeatureSettingDefined = false navToInnerStep2 = () -> $scope.innerStep = 2 $scope.ui.leftMenuShown = true
Save the syntax validation setting in the onboarding view.
Save the syntax validation setting in the onboarding view.
CoffeeScript
agpl-3.0
sharelatex/sharelatex
027bada7d5ae1fd92f51e12af2142f604e66f21d
src/app/editor-config-panel.coffee
src/app/editor-config-panel.coffee
ConfigPanel = require 'config-panel' module.exports = class EditorConfigPanel extends ConfigPanel @content: -> @div class: 'config-panel', => @div class: 'row', => @label for: 'editor.fontSize', "Font Size:" @input id: 'editor.fontSize', type: 'int', size: 2 @div class: 'row', => @label for: 'editor.fontFamily', "Font Family:" @input id: 'editor.fontFamily', type: 'string' @div class: 'row', => @label for: 'editor.preferredLineLength', "Preferred Line Length:" @input name: 'editor.preferredLineLength', type: 'int', size: 2 @div class: 'row', => @label for: 'editor.autoIndent', "Auto Indent:" @input id: 'editor.autoIndent', type: 'checkbox' @div class: 'row', => @label for: 'editor.autoIndentOnPaste', "Auto Indent on Paste:" @input id: 'editor.autoIndentOnPaste', type: 'checkbox' @div class: 'row', => @label for: 'editor.showLineNumbers', "Show Line Numbers:" @input id: 'editor.showLineNumbers', type: 'checkbox' @div class: 'row', => @label for: 'editor.showInvisibles', "Show Invisible Characters:" @input id: 'editor.showInvisibles', type: 'checkbox'
ConfigPanel = require 'config-panel' module.exports = class EditorConfigPanel extends ConfigPanel @content: -> @div class: 'config-panel', => @div class: 'row', => @label for: 'editor.fontSize', "Font Size:" @input id: 'editor.fontSize', type: 'int', size: 2 @div class: 'row', => @label for: 'editor.fontFamily', "Font Family:" @input id: 'editor.fontFamily', type: 'string' @div class: 'row', => @label for: 'editor.preferredLineLength', "Preferred Line Length:" @input name: 'editor.preferredLineLength', type: 'int', size: 2 @div class: 'row', => @label for: 'editor.autoIndent', "Auto Indent:" @input id: 'editor.autoIndent', type: 'checkbox' @div class: 'row', => @label for: 'editor.autoIndentOnPaste', "Auto Indent on Paste:" @input id: 'editor.autoIndentOnPaste', type: 'checkbox' @div class: 'row', => @label for: 'editor.showLineNumbers', "Show Line Numbers:" @input id: 'editor.showLineNumbers', type: 'checkbox' @div class: 'row', => @label for: 'editor.showInvisibles', "Show Invisible Characters:" @input id: 'editor.showInvisibles', type: 'checkbox' @div class: 'row', => @label for: 'editor.nonWordCharacters', "Non-Word Characters:" @input id: 'editor.nonWordCharacters', size: 50
Add editor.nonWordCharacters to editor config panel
Add editor.nonWordCharacters to editor config panel
CoffeeScript
mit
harshdattani/atom,Neron-X5/atom,rlugojr/atom,KENJU/atom,stinsonga/atom,palita01/atom,isghe/atom,kittens/atom,Dennis1978/atom,Ingramz/atom,synaptek/atom,tjkr/atom,GHackAnonymous/atom,bencolon/atom,sxgao3001/atom,gontadu/atom,AlexxNica/atom,mostafaeweda/atom,sebmck/atom,tony612/atom,hakatashi/atom,vjeux/atom,svanharmelen/atom,rsvip/aTom,PKRoma/atom,mertkahyaoglu/atom,yomybaby/atom,Abdillah/atom,vcarrera/atom,Jonekee/atom,jjz/atom,Huaraz2/atom,mdumrauf/atom,qiujuer/atom,rookie125/atom,Klozz/atom,vhutheesing/atom,t9md/atom,originye/atom,mostafaeweda/atom,abe33/atom,Galactix/atom,acontreras89/atom,AlbertoBarrago/atom,vcarrera/atom,Jonekee/atom,AlbertoBarrago/atom,yamhon/atom,woss/atom,stinsonga/atom,SlimeQ/atom,chengky/atom,sillvan/atom,Shekharrajak/atom,kittens/atom,jacekkopecky/atom,crazyquark/atom,Klozz/atom,RuiDGoncalves/atom,svanharmelen/atom,vinodpanicker/atom,daxlab/atom,liuxiong332/atom,omarhuanca/atom,AdrianVovk/substance-ide,dannyflax/atom,harshdattani/atom,bencolon/atom,ReddTea/atom,jlord/atom,fscherwi/atom,Shekharrajak/atom,kandros/atom,brettle/atom,lovesnow/atom,basarat/atom,chfritz/atom,BogusCurry/atom,KENJU/atom,Austen-G/BlockBuilder,yalexx/atom,davideg/atom,Galactix/atom,Abdillah/atom,001szymon/atom,kaicataldo/atom,qskycolor/atom,0x73/atom,nrodriguez13/atom,rlugojr/atom,fang-yufeng/atom,h0dgep0dge/atom,transcranial/atom,amine7536/atom,execjosh/atom,yangchenghu/atom,fang-yufeng/atom,Ingramz/atom,hpham04/atom,mnquintana/atom,elkingtonmcb/atom,jlord/atom,amine7536/atom,charleswhchan/atom,liuxiong332/atom,constanzaurzua/atom,brumm/atom,0x73/atom,nrodriguez13/atom,ppamorim/atom,gzzhanghao/atom,kc8wxm/atom,rookie125/atom,h0dgep0dge/atom,ilovezy/atom,medovob/atom,targeter21/atom,Rychard/atom,AdrianVovk/substance-ide,Austen-G/BlockBuilder,gzzhanghao/atom,wiggzz/atom,ilovezy/atom,nvoron23/atom,dkfiresky/atom,hharchani/atom,NunoEdgarGub1/atom,deepfox/atom,RobinTec/atom,fedorov/atom,atom/atom,scv119/atom,dijs/atom,tony612/atom,n-riesco/atom,nrodriguez13/atom,davideg/atom,RuiDGoncalves/atom,me-benni/atom,YunchengLiao/atom,basarat/atom,decaffeinate-examples/atom,yomybaby/atom,dijs/atom,ali/atom,Shekharrajak/atom,chengky/atom,jacekkopecky/atom,gabrielPeart/atom,mdumrauf/atom,ashneo76/atom,Ju2ender/atom,abcP9110/atom,john-kelly/atom,sebmck/atom,burodepeper/atom,bsmr-x-script/atom,hellendag/atom,seedtigo/atom,CraZySacX/atom,PKRoma/atom,ilovezy/atom,dkfiresky/atom,ralphtheninja/atom,rsvip/aTom,DiogoXRP/atom,Dennis1978/atom,charleswhchan/atom,Rychard/atom,kevinrenaers/atom,ObviouslyGreen/atom,seedtigo/atom,targeter21/atom,kaicataldo/atom,crazyquark/atom,Hasimir/atom,batjko/atom,originye/atom,gzzhanghao/atom,FoldingText/atom,sekcheong/atom,xream/atom,synaptek/atom,rjattrill/atom,nvoron23/atom,batjko/atom,devoncarew/atom,Jdesk/atom,n-riesco/atom,FIT-CSE2410-A-Bombs/atom,YunchengLiao/atom,john-kelly/atom,githubteacher/atom,GHackAnonymous/atom,bryonwinger/atom,liuxiong332/atom,hagb4rd/atom,yangchenghu/atom,johnrizzo1/atom,tisu2tisu/atom,Jandersolutions/atom,hagb4rd/atom,chfritz/atom,h0dgep0dge/atom,mnquintana/atom,nucked/atom,codex8/atom,jlord/atom,paulcbetts/atom,synaptek/atom,yomybaby/atom,execjosh/atom,constanzaurzua/atom,liuxiong332/atom,ali/atom,devmario/atom,splodingsocks/atom,ObviouslyGreen/atom,isghe/atom,jtrose2/atom,me6iaton/atom,crazyquark/atom,burodepeper/atom,kjav/atom,kittens/atom,vcarrera/atom,splodingsocks/atom,charleswhchan/atom,jeremyramin/atom,florianb/atom,tisu2tisu/atom,fredericksilva/atom,tjkr/atom,001szymon/atom,johnhaley81/atom,mostafaeweda/atom,fang-yufeng/atom,toqz/atom,codex8/atom,splodingsocks/atom,Andrey-Pavlov/atom,g2p/atom,liuderchi/atom,atom/atom,AlisaKiatkongkumthon/atom,darwin/atom,acontreras89/atom,dsandstrom/atom,einarmagnus/atom,sebmck/atom,woss/atom,ykeisuke/atom,sotayamashita/atom,amine7536/atom,pengshp/atom,jordanbtucker/atom,dsandstrom/atom,FoldingText/atom,pengshp/atom,abcP9110/atom,targeter21/atom,SlimeQ/atom,matthewclendening/atom,batjko/atom,darwin/atom,bolinfest/atom,vinodpanicker/atom,n-riesco/atom,rjattrill/atom,jtrose2/atom,Jandersolutions/atom,lisonma/atom,seedtigo/atom,gisenberg/atom,vjeux/atom,chfritz/atom,MjAbuz/atom,NunoEdgarGub1/atom,Shekharrajak/atom,lpommers/atom,pombredanne/atom,jeremyramin/atom,yamhon/atom,mrodalgaard/atom,andrewleverette/atom,deepfox/atom,omarhuanca/atom,rsvip/aTom,Sangaroonaom/atom,ivoadf/atom,ezeoleaf/atom,gisenberg/atom,scv119/atom,oggy/atom,Locke23rus/atom,erikhakansson/atom,rxkit/atom,Jdesk/atom,john-kelly/atom,fang-yufeng/atom,ezeoleaf/atom,AlexxNica/atom,rxkit/atom,kc8wxm/atom,kjav/atom,Jonekee/atom,Locke23rus/atom,john-kelly/atom,ironbox360/atom,pengshp/atom,mertkahyaoglu/atom,efatsi/atom,russlescai/atom,Austen-G/BlockBuilder,fedorov/atom,qskycolor/atom,rmartin/atom,Rodjana/atom,anuwat121/atom,abcP9110/atom,hpham04/atom,FoldingText/atom,qskycolor/atom,ralphtheninja/atom,chengky/atom,gisenberg/atom,mertkahyaoglu/atom,Hasimir/atom,sekcheong/atom,KENJU/atom,jlord/atom,mdumrauf/atom,SlimeQ/atom,jordanbtucker/atom,helber/atom,devoncarew/atom,alexandergmann/atom,deoxilix/atom,kdheepak89/atom,bcoe/atom,batjko/atom,wiggzz/atom,dijs/atom,niklabh/atom,ardeshirj/atom,Jandersoft/atom,CraZySacX/atom,acontreras89/atom,acontreras89/atom,qiujuer/atom,bsmr-x-script/atom,john-kelly/atom,folpindo/atom,Klozz/atom,FoldingText/atom,einarmagnus/atom,jjz/atom,basarat/atom,sillvan/atom,amine7536/atom,jtrose2/atom,medovob/atom,liuderchi/atom,stuartquin/atom,einarmagnus/atom,devoncarew/atom,boomwaiza/atom,originye/atom,champagnez/atom,kaicataldo/atom,sekcheong/atom,fedorov/atom,Huaraz2/atom,ardeshirj/atom,einarmagnus/atom,davideg/atom,alexandergmann/atom,AlisaKiatkongkumthon/atom,beni55/atom,dkfiresky/atom,qskycolor/atom,cyzn/atom,synaptek/atom,johnrizzo1/atom,johnrizzo1/atom,Abdillah/atom,johnhaley81/atom,nvoron23/atom,bcoe/atom,rxkit/atom,ali/atom,sxgao3001/atom,bencolon/atom,bradgearon/atom,devoncarew/atom,RuiDGoncalves/atom,Jandersolutions/atom,fang-yufeng/atom,dannyflax/atom,CraZySacX/atom,Abdillah/atom,yalexx/atom,ReddTea/atom,acontreras89/atom,paulcbetts/atom,harshdattani/atom,efatsi/atom,rmartin/atom,pkdevbox/atom,ReddTea/atom,kjav/atom,devmario/atom,githubteacher/atom,Arcanemagus/atom,ali/atom,fredericksilva/atom,vjeux/atom,vcarrera/atom,Locke23rus/atom,Dennis1978/atom,rmartin/atom,kandros/atom,daxlab/atom,matthewclendening/atom,erikhakansson/atom,Jandersoft/atom,lovesnow/atom,deepfox/atom,vjeux/atom,avdg/atom,liuderchi/atom,oggy/atom,mrodalgaard/atom,sillvan/atom,charleswhchan/atom,chengky/atom,xream/atom,ReddTea/atom,alexandergmann/atom,crazyquark/atom,me6iaton/atom,Ju2ender/atom,pombredanne/atom,einarmagnus/atom,kc8wxm/atom,sebmck/atom,FoldingText/atom,matthewclendening/atom,anuwat121/atom,synaptek/atom,scippio/atom,stuartquin/atom,ezeoleaf/atom,woss/atom,pkdevbox/atom,hpham04/atom,Neron-X5/atom,GHackAnonymous/atom,001szymon/atom,jacekkopecky/atom,kjav/atom,execjosh/atom,florianb/atom,hakatashi/atom,hakatashi/atom,crazyquark/atom,bcoe/atom,SlimeQ/atom,decaffeinate-examples/atom,Ju2ender/atom,paulcbetts/atom,kc8wxm/atom,targeter21/atom,vinodpanicker/atom,qiujuer/atom,prembasumatary/atom,AlexxNica/atom,Jdesk/atom,cyzn/atom,pombredanne/atom,GHackAnonymous/atom,oggy/atom,BogusCurry/atom,sxgao3001/atom,hellendag/atom,helber/atom,tony612/atom,dannyflax/atom,SlimeQ/atom,fscherwi/atom,hharchani/atom,scippio/atom,basarat/atom,isghe/atom,kjav/atom,tanin47/atom,cyzn/atom,Galactix/atom,KENJU/atom,Hasimir/atom,dsandstrom/atom,Galactix/atom,nvoron23/atom,Andrey-Pavlov/atom,elkingtonmcb/atom,kittens/atom,bj7/atom,RobinTec/atom,kandros/atom,yalexx/atom,prembasumatary/atom,NunoEdgarGub1/atom,stinsonga/atom,ppamorim/atom,hakatashi/atom,vjeux/atom,bj7/atom,rlugojr/atom,tanin47/atom,targeter21/atom,rsvip/aTom,hagb4rd/atom,fedorov/atom,Neron-X5/atom,t9md/atom,devmario/atom,hharchani/atom,mertkahyaoglu/atom,omarhuanca/atom,deoxilix/atom,ppamorim/atom,Neron-X5/atom,omarhuanca/atom,brettle/atom,deepfox/atom,gontadu/atom,tisu2tisu/atom,kc8wxm/atom,KENJU/atom,avdg/atom,tony612/atom,basarat/atom,toqz/atom,AlbertoBarrago/atom,sekcheong/atom,hellendag/atom,phord/atom,YunchengLiao/atom,jacekkopecky/atom,fredericksilva/atom,devoncarew/atom,qiujuer/atom,Ju2ender/atom,hharchani/atom,prembasumatary/atom,yangchenghu/atom,sekcheong/atom,me-benni/atom,deoxilix/atom,dannyflax/atom,lpommers/atom,codex8/atom,abcP9110/atom,hpham04/atom,efatsi/atom,Sangaroonaom/atom,russlescai/atom,tmunro/atom,pombredanne/atom,yomybaby/atom,Jdesk/atom,dkfiresky/atom,ralphtheninja/atom,AlisaKiatkongkumthon/atom,scv119/atom,tony612/atom,MjAbuz/atom,florianb/atom,sotayamashita/atom,ironbox360/atom,YunchengLiao/atom,abe33/atom,jeremyramin/atom,folpindo/atom,Andrey-Pavlov/atom,FIT-CSE2410-A-Bombs/atom,daxlab/atom,Mokolea/atom,bryonwinger/atom,atom/atom,ashneo76/atom,kdheepak89/atom,mertkahyaoglu/atom,oggy/atom,woss/atom,Jandersoft/atom,Mokolea/atom,chengky/atom,Sangaroonaom/atom,ashneo76/atom,charleswhchan/atom,tanin47/atom,dsandstrom/atom,fredericksilva/atom,yalexx/atom,kdheepak89/atom,darwin/atom,me6iaton/atom,bryonwinger/atom,Andrey-Pavlov/atom,deepfox/atom,bradgearon/atom,Jandersolutions/atom,gontadu/atom,mnquintana/atom,basarat/atom,jjz/atom,Jandersoft/atom,scv119/atom,DiogoXRP/atom,bcoe/atom,ivoadf/atom,sxgao3001/atom,alfredxing/atom,kdheepak89/atom,paulcbetts/atom,vcarrera/atom,stinsonga/atom,avdg/atom,amine7536/atom,0x73/atom,matthewclendening/atom,russlescai/atom,0x73/atom,brumm/atom,mrodalgaard/atom,gisenberg/atom,bolinfest/atom,Galactix/atom,Austen-G/BlockBuilder,tjkr/atom,gabrielPeart/atom,splodingsocks/atom,lisonma/atom,russlescai/atom,ppamorim/atom,bj7/atom,andrewleverette/atom,boomwaiza/atom,me-benni/atom,wiggzz/atom,RobinTec/atom,hpham04/atom,isghe/atom,ykeisuke/atom,bcoe/atom,ObviouslyGreen/atom,kevinrenaers/atom,hharchani/atom,mnquintana/atom,me6iaton/atom,russlescai/atom,alfredxing/atom,DiogoXRP/atom,pkdevbox/atom,kittens/atom,hagb4rd/atom,Mokolea/atom,dannyflax/atom,ardeshirj/atom,boomwaiza/atom,lisonma/atom,matthewclendening/atom,Arcanemagus/atom,Rodjana/atom,tmunro/atom,NunoEdgarGub1/atom,elkingtonmcb/atom,g2p/atom,abe33/atom,Austen-G/BlockBuilder,devmario/atom,alfredxing/atom,palita01/atom,batjko/atom,beni55/atom,fredericksilva/atom,Huaraz2/atom,panuchart/atom,jjz/atom,GHackAnonymous/atom,jtrose2/atom,nvoron23/atom,ezeoleaf/atom,vhutheesing/atom,ilovezy/atom,pombredanne/atom,davideg/atom,toqz/atom,scippio/atom,gisenberg/atom,codex8/atom,kdheepak89/atom,florianb/atom,BogusCurry/atom,ali/atom,lisonma/atom,me6iaton/atom,qiujuer/atom,rmartin/atom,niklabh/atom,bolinfest/atom,Ingramz/atom,t9md/atom,devmario/atom,Rychard/atom,toqz/atom,decaffeinate-examples/atom,n-riesco/atom,johnhaley81/atom,stuartquin/atom,hagb4rd/atom,lisonma/atom,yalexx/atom,prembasumatary/atom,Jdesk/atom,dannyflax/atom,dsandstrom/atom,G-Baby/atom,AdrianVovk/substance-ide,ivoadf/atom,NunoEdgarGub1/atom,dkfiresky/atom,bradgearon/atom,MjAbuz/atom,palita01/atom,G-Baby/atom,constanzaurzua/atom,jacekkopecky/atom,jordanbtucker/atom,vhutheesing/atom,h0dgep0dge/atom,constanzaurzua/atom,panuchart/atom,Ju2ender/atom,Andrey-Pavlov/atom,ykeisuke/atom,erikhakansson/atom,gabrielPeart/atom,Shekharrajak/atom,florianb/atom,Rodjana/atom,n-riesco/atom,G-Baby/atom,svanharmelen/atom,FoldingText/atom,liuderchi/atom,transcranial/atom,champagnez/atom,niklabh/atom,toqz/atom,yomybaby/atom,Jandersolutions/atom,lovesnow/atom,folpindo/atom,transcranial/atom,medovob/atom,jtrose2/atom,MjAbuz/atom,decaffeinate-examples/atom,Arcanemagus/atom,rsvip/aTom,brettle/atom,kevinrenaers/atom,vinodpanicker/atom,davideg/atom,mostafaeweda/atom,ppamorim/atom,PKRoma/atom,isghe/atom,sxgao3001/atom,jacekkopecky/atom,nucked/atom,Jandersoft/atom,lpommers/atom,sebmck/atom,MjAbuz/atom,rookie125/atom,phord/atom,ilovezy/atom,bsmr-x-script/atom,qskycolor/atom,phord/atom,bryonwinger/atom,sotayamashita/atom,omarhuanca/atom,prembasumatary/atom,vinodpanicker/atom,xream/atom,abcP9110/atom,fscherwi/atom,RobinTec/atom,ReddTea/atom,mostafaeweda/atom,mnquintana/atom,FIT-CSE2410-A-Bombs/atom,oggy/atom,yamhon/atom,lovesnow/atom,githubteacher/atom,fedorov/atom,g2p/atom,YunchengLiao/atom,sillvan/atom,liuxiong332/atom,tmunro/atom,RobinTec/atom,Abdillah/atom,helber/atom,Austen-G/BlockBuilder,beni55/atom,Hasimir/atom,rjattrill/atom,constanzaurzua/atom,ironbox360/atom,codex8/atom,sillvan/atom,brumm/atom,andrewleverette/atom,Neron-X5/atom,Hasimir/atom,woss/atom,burodepeper/atom,jjz/atom,champagnez/atom,rjattrill/atom,jlord/atom,rmartin/atom,anuwat121/atom,nucked/atom,panuchart/atom,lovesnow/atom
ccecd4466ecc392e05a0dcdb45fcf1e150dae0b4
src/language/modules/shapes.coffee
src/language/modules/shapes.coffee
session = require '../session' utils = require '../utils' rectangle = (width, height) -> utils.startShape() x = session.pos.x * session.ratio y = session.pos.y * session.ratio width *= session.ratio height *= session.ratio session.ctx.rect x, y, width, height utils.endShape() square = (size) -> rectangle size, size ellipse = (rx, ry) -> utils.startShape() x = session.pos.x * session.ratio y = session.pos.y * session.ratio rx *= session.ratio ry *= session.ratio session.ctx.ellipse x, y, rx, ry, 0, 0, 2 * Math.PI, false utils.endShape() circle = (radius) -> ellipse radius, radius module.exports = { rectangle, square, ellipse, circle }
session = require '../session' utils = require '../utils' rectangle = (width, height) -> utils.startShape() x = session.pos.x * session.ratio y = session.pos.y * session.ratio width *= session.ratio height *= session.ratio session.ctx.rect x, y, width, height utils.endShape() square = (size) -> rectangle size, size ellipse = (rx, ry) -> utils.startShape() x = session.pos.x * session.ratio y = session.pos.y * session.ratio rx *= session.ratio ry *= session.ratio startingAngle = 0 endingAngle = 2 * Math.PI; # 360 degrees is equal to 2π radians session.ctx.save() session.ctx.translate x, y session.ctx.scale rx, ry session.ctx.arc 0, 0, 1, startingAngle, endingAngle, -1 session.ctx.restore() utils.endShape() circle = (radius) -> ellipse radius, radius module.exports = { rectangle, square, ellipse, circle }
Add support for firefox by getting rid of new implementation of ellipse method on canvas context
Add support for firefox by getting rid of new implementation of ellipse method on canvas context
CoffeeScript
mit
tancredi/draw,tancredi/draw,tancredi/draw
01138bc401e051661aa8250401fcecc625e0df9f
lib/parsers/log-parser.coffee
lib/parsers/log-parser.coffee
fs = require 'fs-plus' path = require 'path' outputPattern = /// ^Output\swritten\son\s # Leading text. (.*) # Output path. \s\(.*\)\.$ # Trailing text. /// errorPattern = /// ^(.*): # File path. (\d+): # Line number. \sLaTeX\sError:\s # Marker. (.*)\.$ # Error message. /// module.exports = class LogParser constructor: (filePath) -> @filePath = filePath @projectPath = path.dirname(filePath) parse: -> result = outputFilePath: null errors: [] warnings: [] for line in lines = @getLines() # Simplest Thing That Works™ and KISS® match = line.match(outputPattern) if match? result.outputFilePath = path.resolve(@projectPath, match[1]) continue match = line.match(errorPattern) if match? error = filePath: match[1] lineNumber: parseInt(match[2], 10) message: match[3] result.errors.push(error) continue result getLines: -> unless fs.existsSync(@filePath) throw new Error("No such file: #{@filePath}") rawFile = fs.readFileSync(@filePath, {encoding: 'utf-8'}) lines = rawFile.replace(/(\r\n)|\r/g, '\n').split('\n')
fs = require 'fs-plus' path = require 'path' outputPattern = /// ^Output\swritten\son\s # Leading text. (.*) # Output path. \s\(.*\)\.$ # Trailing text. /// errorPattern = /// ^(.*): # File path. (\d+): # Line number. \sLaTeX\sError:\s # Marker. (.*)\.$ # Error message. /// module.exports = class LogParser constructor: (filePath) -> @filePath = filePath @projectPath = path.dirname(filePath) parse: -> result = outputFilePath: null errors: [] warnings: [] for line in lines = @getLines() # Simplest Thing That Works™ and KISS® match = line.match(outputPattern) if match? filePath = match[1].replace(/\"/g, '') # TODO: Fix with improved regex. result.outputFilePath = path.resolve(@projectPath, filePath) continue match = line.match(errorPattern) if match? error = filePath: match[1] lineNumber: parseInt(match[2], 10) message: match[3] result.errors.push(error) continue result getLines: -> unless fs.existsSync(@filePath) throw new Error("No such file: #{@filePath}") rawFile = fs.readFileSync(@filePath, {encoding: 'utf-8'}) lines = rawFile.replace(/(\r\n)|\r/g, '\n').split('\n')
Fix bug related to paths containing spaces
Fix bug related to paths containing spaces Resolves #42
CoffeeScript
mit
WoodyWoodsta/atom-latex,thomasjo/atom-latex,thomasjo/atom-latex,WoodyWoodsta/atom-latex,thomasjo/atom-latex
2bb272dc7123c59a5001d095331c691256d39992
resources/choices.coffee
resources/choices.coffee
{models, Resource, filters} = require '../resource_helper' ChoiceResource = new Resource resourceNameMany: 'choices' resourceNameOne: 'choice' model: models.choice module.exports = ChoiceResource
{models, Resource, filters} = require '../resource_helper' crud = require 'bloops/crud' errors = require 'bloops/errors' ChoiceResource = new Resource resourceNameMany: 'choices' resourceNameOne: 'choice' model: models.choice getEndpoints: -> [ 'show' 'update' 'destroy' 'patch' 'index' create getByCompetition ] create = _baseCreate = crud.create.handler create = route: '/' method: ['POST', 'PUT'] filters: [filters.FromJson] handler: -> unless @params.name? and @params.competitionId? throw new errors.UserError('must provide name and competitionId') @params.competition_id = @params.competitionId delete @params.competitionId _baseCreate.call(@) getByCompetition = route: '/by-competition/:competitionId' method: 'GET' filters: [filters.FromUrlParams] handler: -> competitionId = @params.competitionId unless competitionId throw new errors.UserError('must provide competitionId') @api.list competition_id: competitionId module.exports = ChoiceResource
Create choice and get-by-competitionId routes
Create choice and get-by-competitionId routes
CoffeeScript
mit
bosgood/votewithme-server
88fd39299d718d402886cbb99b1ca2b7ed62629f
assets/javascripts/custom_rx_operators.coffee
assets/javascripts/custom_rx_operators.coffee
Rx = require 'rx/index.js' R = require 'ramda' Rx.Observable.fromTime = (timesAndValues, scheduler) -> timers = R.keys(timesAndValues) .map (relativeTime) -> [parseInt(relativeTime), timesAndValues[relativeTime]] .map ([time, value]) -> # 1 is substracted at the moment to not distract users # with a 1ms delay due to test scheduler Rx.Observable.timer(Math.max(time - 1, 0), scheduler).map R.I(value) Rx.Observable.merge(timers) module.exports = Rx
Rx = require 'rx/index.js' R = require 'ramda' Rx.Observable.fromTime = (timesAndValues, scheduler) -> timers = R.keys(timesAndValues) .map (relativeTime) -> [parseInt(relativeTime), timesAndValues[relativeTime]] .map ([time, value]) -> Rx.Observable.timer(time, scheduler).map R.I(value) Rx.Observable.merge(timers) module.exports = Rx
Revert "Take 1 ms off the fromTime operator"
Revert "Take 1 ms off the fromTime operator" This reverts commit fe0ab48c9e442534edb7cb8ad7d058a07a39e68f.
CoffeeScript
mit
urmastalimaa/reactive-visualizer,urmastalimaa/reactive-visualizer,urmastalimaa/reactive-visualizer,urmastalimaa/reactive-visualizer
b24f853a27c95d1382a79a60de343643d4c71b93
Gruntfile.coffee
Gruntfile.coffee
module.exports = (grunt) -> grunt.loadNpmTasks 'grunt-contrib-coffee' grunt.initConfig coffee: compile: files: 'lib/shuss-cli.js': 'src/shuss-cli.coffee' 'lib/shuss-config.js': 'src/shuss-config.coffee' 'lib/shuss-logger.js': 'src/shuss-logger.coffee' 'lib/shuss-plugin-loader.js': 'src/shuss-plugin-loader.coffee' 'lib/shuss-server.js': 'src/shuss-server.coffee' grunt.registerTask 'default', ['coffee:compile']
module.exports = (grunt) -> grunt.loadNpmTasks 'grunt-contrib-coffee' grunt.initConfig coffee: compile: expand: true flatten: true cwd: 'src/' src: ['*.coffee'] dest: 'lib/' ext: '.js' grunt.registerTask 'default', ['coffee:compile']
Simplify Grunt CoffeeScript compile syntax
Simplify Grunt CoffeeScript compile syntax
CoffeeScript
mit
ArnaudRinquin/shuss
6332ecad34016f73a0059dacf5614ce159e99c96
app/assets/javascripts/select2-rails.coffee
app/assets/javascripts/select2-rails.coffee
window.Binco.Select2 = load: (selector) -> selector = if typeof selector == 'undefined' then '.select2-rails' else selector $(selector).select2() $(document).ready window.Binco.Select2 $(document).on 'page:load', window.Binco.Select2
window.Binco.Select2 = load: (selector) -> selector = if typeof selector == 'undefined' then '.select2-rails' else selector $(selector).select2() $(document).ready window.Binco.Select2.load $(document).on 'page:load', window.Binco.Select2.load
Add correct function call on load
Add correct function call on load
CoffeeScript
mit
codn/binco,codn/binco,codn/binco
e0f3c3d95d2d45daa4d47bc9830efc323233f85a
src/utils/query-string-encoder.coffee
src/utils/query-string-encoder.coffee
Qs = require('qs'); module.exports = encode : (data)-> Qs.stringify(data) decode : (search)-> return Qs.parse(window.location.search.slice(1)) unless search Qs.parse(search)
Qs = require('qs'); keywords = true: true false: false null: null undefined: undefined decoder = (value) -> return parseFloat(value) if (/^(\d+|\d*\.\d+)$/.test(value)) return keywords[value] if (value of keywords) return value module.exports = encode : (data)-> Qs.stringify(data) decode : (search)-> return Qs.parse( window.location.search.slice(1), decoder: decoder ) unless search Qs.parse(search)
Improve querystring serializer to detect numbers, nulls, undefined and booleans
Improve querystring serializer to detect numbers, nulls, undefined and booleans
CoffeeScript
mit
hull/hull-js,hull/hull-js,hull/hull-js
3c55b860b61c086a3b77c46fa10803a67c14a8bc
atom/packages.cson
atom/packages.cson
packages: [ "auto-indent" "emmet" "expand-region" "git-diff-popup" "git-plus" "git-time-machine" "language-javascript-jsx" "linter" "linter-eslint" "linter-rubocop" "linter-sass-lint" "list-edit" "markdown-scroll-sync" "merge-conflicts" "package-sync" "project-manager" "rails-open-rspec" "relative-numbers" "ruby-test" "sort-lines" "synced-sidebar" "terminal-plus" "toggle-quotes" "vim-mode" "vim-surround" ]
packages: [ "auto-indent" "emmet" "expand-region" "file-icons" "git-diff-popup" "git-plus" "git-time-machine" "language-javascript-jsx" "linter" "linter-eslint" "linter-rubocop" "linter-sass-lint" "list-edit" "markdown-scroll-sync" "merge-conflicts" "package-sync" "project-manager" "rails-open-rspec" "relative-numbers" "ruby-test" "sort-lines" "synced-sidebar" "terminal-plus" "toggle-quotes" "vim-mode" "vim-surround" ]
Add file-icons package to Atom
Add file-icons package to Atom
CoffeeScript
mit
randycoulman/dotfiles
fb786b76db5dfbefd0f208269c3990f53c853289
lib/exception-reporting.coffee
lib/exception-reporting.coffee
{_} = require 'atom' Guid = require 'guid' Reporter = require './reporter' module.exports = activate: -> atom.config.set('exception-reporting.userId', Guid.raw()) unless atom.config.get('exception-reporting.userId') atom.on 'error.exception-reporting', (message, url, line) -> Reporter.send(message, url, line) unless atom.inDevMode() deactivate: -> atom.off 'error.exception-reporting'
{_} = require 'atom' Guid = require 'guid' Reporter = require './reporter' module.exports = activate: -> atom.config.set('exception-reporting.userId', Guid.raw()) unless atom.config.get('exception-reporting.userId') atom.on 'uncaught-error.exception', (message, url, line) -> Reporter.send(message, url, line) deactivate: -> atom.off 'uncaught-error.exception-reporting'
Use 'uncaught-error' event from atom
Use 'uncaught-error' event from atom
CoffeeScript
mit
atom/exception-reporting
499936999f566db8a94a01d01e42cda3355ff44e
atom/config.cson
atom/config.cson
"*": core: disabledPackages: [ "wrap-guide" "activate-power-mode" ] themes: [ "one-light-ui" "one-light-syntax" ] editor: {} "exception-reporting": userId: "79967b20-c933-87c9-85b8-ea6b20c3a648" "linter-puppet-lint": oldVersion: false skip140Chars: true skip80Chars: true minimap: plugins: cursorline: true cursorlineDecorationsZIndex: 0 "find-and-replace": true "find-and-replaceDecorationsZIndex": 0 "git-diff": true "git-diffDecorationsZIndex": 0 linter: true linterDecorationsZIndex: 0 "minimap-autohide": true "minimap-autohideDecorationsZIndex": 0 sunset: daytime_syntax_theme: "one-light-syntax" daytime_ui_theme: "one-light-ui" has_been_configured: true nighttime_syntax_theme: "one-dark-syntax" nighttime_ui_theme: "one-dark-ui" when_does_it_get_dark: 1830 when_does_it_get_light: 700 welcome: showOnStartup: false
"*": core: disabledPackages: [ "wrap-guide" "activate-power-mode" ] editor: {} "exception-reporting": userId: "79967b20-c933-87c9-85b8-ea6b20c3a648" "linter-puppet-lint": oldVersion: false skip140Chars: true skip80Chars: true minimap: plugins: cursorline: true cursorlineDecorationsZIndex: 0 "find-and-replace": true "find-and-replaceDecorationsZIndex": 0 "git-diff": true "git-diffDecorationsZIndex": 0 linter: true linterDecorationsZIndex: 0 "minimap-autohide": true "minimap-autohideDecorationsZIndex": 0 sunset: daytime_syntax_theme: "one-light-syntax" daytime_ui_theme: "one-light-ui" has_been_configured: true nighttime_syntax_theme: "one-dark-syntax" nighttime_ui_theme: "one-dark-ui" when_does_it_get_dark: 1630 when_does_it_get_light: 900 welcome: showOnStartup: false
Change sunset hours for atom
Change sunset hours for atom
CoffeeScript
mit
domingusj/dotfiles
c2c8e86ae6498ef26b920bb1ecb753610a1b990b
coffee/main.coffee
coffee/main.coffee
$ -> $input = $('input') $button = $('button') $dicIframe = $('.dic') $imagesIframe = $('.images') search = -> query = $input.val() return if query is '' dicUrlPrefix = 'http://endic.naver.com/search.nhn?sLn=en&searchOption=all&query=' imagesUrlPrefix = 'http://images.search.yahoo.com/search/images?p=' $dicIframe.prop 'src', dicUrlPrefix + query $imagesIframe.prop 'src', imagesUrlPrefix + query return $(document).on 'keydown', (e) -> NUM_1_KEY = 49 NUM_2_KEY = 50 if e.ctrlKey and (e.which is NUM_1_KEY) $dicIframe[0].contentWindow.focus() console.log('ctrl 1') if e.ctrlKey and (e.which is NUM_2_KEY) $imagesIframe.contentWindow.focus() console.log('ctrl 2') $input.on 'keydown', (e) -> search() if e.which is 13 console.log 'input', e.which $button.click search $('iframe').load -> $input.focus()
$ -> $input = $('input') $button = $('button') $dicIframe = $('.dic') $imagesIframe = $('.images') search = -> query = $input.val() return if query is '' dicUrlPrefix = 'http://dic.daum.net/search.do?dic=eng&q=' imagesUrlPrefix = 'http://images.search.yahoo.com/search/images?p=' $dicIframe.prop 'src', dicUrlPrefix + query $imagesIframe.prop 'src', imagesUrlPrefix + query return $(document).on 'keydown', (e) -> NUM_1_KEY = 49 NUM_2_KEY = 50 if e.ctrlKey and (e.which is NUM_1_KEY) $dicIframe[0].contentWindow.focus() console.log('ctrl 1') if e.ctrlKey and (e.which is NUM_2_KEY) $imagesIframe.contentWindow.focus() console.log('ctrl 2') $input.on 'keydown', (e) -> search() if e.which is 13 console.log 'input', e.which $button.click search $('iframe').load -> $input.focus()
Change dictionary url to Daum
Change dictionary url to Daum
CoffeeScript
mit
Sangdol/imationary
783e231369ccb2b7f8170f06aebd1fa451ec45b8
src/read_aggregate_root.coffee
src/read_aggregate_root.coffee
eventric = require 'eventric' ReadAggregateEntity = eventric 'ReadAggregateEntity' class ReadAggregateRoot extends ReadAggregateEntity module.exports = ReadAggregateRoot
_ = require 'underscore' Backbone = require 'backbone' eventric = require 'eventric' ReadAggregateEntity = eventric 'ReadAggregateEntity' class ReadAggregateRoot extends ReadAggregateEntity _.extend @prototype, Backbone.Events module.exports = ReadAggregateRoot
Refactor CardQuestionView to use new Command/Aggregate structure
Refactor CardQuestionView to use new Command/Aggregate structure
CoffeeScript
mit
efacilitation/eventric
b3e5b44023e3462a3a36225468051e43cda16ad3
client/controller/speakers-controller.coffee
client/controller/speakers-controller.coffee
class @SpeakersController extends RouteController waitOn: -> Meteor.subscribe('speakers') after: -> document.title = "Speakers | Reversim Summit 2014" tempalte: 'speakers' data: -> page: 'speakers' speakers: User.allSpeakers()
class @SpeakersController extends RouteController waitOn: -> Meteor.subscribe('proposals') after: -> document.title = "Speakers | Reversim Summit 2014" tempalte: 'speakers' data: -> page: 'speakers' speakers: User.allSpeakers()
Modify the speakers page to include only accepted speakers
Modify the speakers page to include only accepted speakers
CoffeeScript
apache-2.0
rantav/reversim-summit-2015,rantav/reversim-summit-2014,rantav/reversim-summit-2015,rantav/reversim-summit-2014,rantav/reversim-summit-2015
4318225bef16ed1b3736c4d233d71c28e245a15c
test/models/time_entry.coffee
test/models/time_entry.coffee
TimeEntry = require '../../models/time_entry' should = require 'should' makeT = (offset = 10) -> t = new TimeEntry start: new Date() - 5 end: new Date() - offset message: 'message goes here' userId: 'someuserID' projectId: 'someprojectID' describe 'TimeEntry Model', -> it 'should be able to create a new instance', -> t = do makeT t.should.not.be.equal undefined it 'should validate', -> t = do makeT start = new Date t.start end = new Date t.end start.should.be.instanceof Date end.should.be.instanceof Date t.message.should.be.equal 'message goes here' t.validate().should.be.true it 'should not validate', -> t = new TimeEntry start: 'not a date' end: 'not a date either' message: 'he he i have invalid dates' userId: 'jokster1' projectId: 'alternate time continuum' t.validate().should.be.false
TimeEntry = require '../../models/time_entry' should = require 'should' makeT = (offset = 10) -> t = new TimeEntry start: new Date() - 5 end: new Date() - offset message: 'message goes here' userId: 'someuserID' projectId: 'someprojectID' describe 'TimeEntry Model', -> it 'should be able to create a new instance', -> t = do makeT t.should.not.be.equal undefined it 'should validate', -> t = do makeT start = new Date t.start end = new Date t.end start.should.be.instanceof Date end.should.be.instanceof Date t.message.should.be.equal 'message goes here' t.validate().should.be.true it 'should validate with duration', -> t = new TimeEntry duration: 40.0 message: 'blah' projectId: 'someprojectId' userId: 'someuserid' t.validate().should.be.true it 'should not validate', -> t = new TimeEntry start: 'not a date' end: 'not a date either' message: 'he he i have invalid dates' userId: 'jokster1' projectId: 'alternate time continuum' t.validate().should.be.false
Add model time entry test for duration
Add model time entry test for duration
CoffeeScript
bsd-3-clause
t3mpus/tempus-api
d9ae8a750388bfc0a62f7d18a984a85393d5fdce
app/assets/javascripts/events_calendar.js.coffee
app/assets/javascripts/events_calendar.js.coffee
$(document).on 'page:change', -> container = $('#events-calendar') eventUpdate = (event)-> url = "/events/#{event.id}" data = start_time: event.start.toJSON() end_time: event.end.toJSON() $.ajax "/events/#{event.id}", type: 'PATCH' dataType: 'json' data: { event: data } container.fullCalendar header: left: 'prev,next today' center: 'title' right: 'agendaDay,agendaWeek,month' defaultView: 'agendaWeek' eventLimit: true editable: true selectable: false # Agenda options slotEventOverlap: false slotDuration: '00:30:00' snapDuration: '00:15:00' minTime: '06:00' maxTime: '20:00' events: url: '/events/calendar.json' eventDrop: eventUpdate eventResize: eventUpdate
$(document).on 'page:change', -> container = $('#events-calendar') eventUpdate = (event)-> url = "/events/#{event.id}" data = start_time: event.start.toISOString() end_time: event.end.toISOString() $.ajax "/events/#{event.id}", type: 'PATCH' dataType: 'json' data: { event: data } container.fullCalendar header: left: 'prev,next today' center: 'title' right: 'agendaDay,agendaWeek,month' defaultView: 'agendaWeek' eventLimit: true editable: true selectable: false # Agenda options slotEventOverlap: false slotDuration: '00:30:00' snapDuration: '00:15:00' minTime: '06:00' maxTime: '20:00' events: url: '/events/calendar.json' eventDrop: eventUpdate eventResize: eventUpdate
Use ISO format for calendar events to avoid problems with TZ
Use ISO format for calendar events to avoid problems with TZ
CoffeeScript
mit
hwuethrich/scoobar,hwuethrich/scoobar
843fea67323932e810043c44bc58155e7f39b58b
src/coffee/controllers/starting-points.coffee
src/coffee/controllers/starting-points.coffee
define ['lodash'], (L) -> Array '$rootScope', '$scope', '$http', (root, scope, http) -> root.startingPoints = [] http.get("/tools", {params: {capabilities: "initial"}}) .then ({data}) -> root.startingPoints = data scope.expandTool = (tool) -> for other in scope.startingPoints when other isnt tool other.state = 'DOCKED' tool.state = 'FULL' scope.getHeightClass = ({state, tall}) -> if state is 'FULL' 'full-height' else if tall 'double-height' else '' scope.getWidthClass = ({state, width}) -> if state is 'FULL' 'col-xs-12' else "col-lg-#{ 3 * width } col-md-#{ 4 * width } col-sm-#{ Math.min(12, 6 * width) }" scope.undockAll = -> for tool in scope.startingPoints tool.state = null scope.resetTool = (tool) -> scope.$broadcast 'reset', tool scope.anyToolDocked = -> L.some scope.startingPoints, state: 'DOCKED' scope.$apply()
define ['lodash'], (L) -> Array '$rootScope', '$scope', '$http', 'Histories', (root, scope, http, Histories) -> root.startingPoints = [] http.get("/tools", {params: {capabilities: "initial"}}) .then ({data}) -> root.startingPoints = data scope.expandTool = (tool) -> for other in scope.startingPoints when other isnt tool other.state = 'DOCKED' tool.state = 'FULL' scope.getHeightClass = ({state, tall}) -> if state is 'FULL' 'full-height' else if tall 'double-height' else '' scope.getWidthClass = ({state, width}) -> if state is 'FULL' 'col-xs-12' else "col-lg-#{ 3 * width } col-md-#{ 4 * width } col-sm-#{ Math.min(12, 6 * width) }" scope.undockAll = -> for tool in scope.startingPoints tool.state = null scope.anyToolDocked = -> L.some scope.startingPoints, state: 'DOCKED' scope.$on 'start-history', (evt, step) -> Histories.then (histories) -> history = histories.save {title: "Un-named history"}, -> step = histories.append {id: history.id}, step, -> console.log("Created history " + history.id + " and step " + step.id) scope.$apply()
Move some methods to a lower point. Handle history creation.
Move some methods to a lower point. Handle history creation.
CoffeeScript
bsd-2-clause
joshkh/staircase,yochannah/staircase,yochannah/staircase,joshkh/staircase,joshkh/staircase,yochannah/staircase
c00e490f6083521dcefcb4a0bc0eb6b803959865
grammars/vp.cson
grammars/vp.cson
'scopeName': 'source.vp' 'name': 'Valkyrie Profile' 'fileTypes': ['vp'] 'patterns': [ { 'match': '^[^\t]*$', 'name': 'entity name function vp' }, { 'match': '^\t{2}.*$' 'name': 'constant language vp' } ]
'scopeName': 'source.vp' 'name': 'Valkyrie Profile' 'fileTypes': ['vp'] 'patterns': [ { 'match': '^---$' 'name': 'keyword language vp' }, { 'match': '^[^\t]*$', 'name': 'entity name function vp' }, { 'match': '^\t{2}.*$' 'name': 'constant language vp' } ]
Add support for --- keyword (transition)
Add support for --- keyword (transition)
CoffeeScript
mit
MalikKeio/language-vp
c5776e1b9bdd4f67b0e0576fcf36291993f8e40d
lib/index.coffee
lib/index.coffee
{_, Document} = require 'atom' SettingsView = null settingsView = null configUri = 'atom://config' createSettingsView = (state) -> SettingsView ?= require './settings-view' unless state instanceof Document state = _.extend({deserializer: deserializer.name, version: deserializer.version}, state) state = atom.site.createDocument(state) settingsView = new SettingsView(state) openPanel = (panelName) -> atom.workspaceView.open(configUri) settingsView.showPanel(panelName) deserializer = acceptsDocuments: true name: 'SettingsView' version: 1 deserialize: (state) -> createSettingsView(state) atom.deserializers.add(deserializer) module.exports = activate: -> atom.project.registerOpener (filePath) -> createSettingsView({uri: configUri}) if filePath is configUri atom.workspaceView.command 'settings-view:toggle', -> openPanel('General') atom.workspaceView.command 'settings-view:show-keybindings', -> openPanel('Keybindings') atom.workspaceView.command 'settings-view:change-themes', -> openPanel('Themes') atom.workspaceView.command 'settings-view:install-packages', -> openPanel('Packages')
{_, Document} = require 'atom' SettingsView = null settingsView = null configUri = 'atom://config' createSettingsView = (state) -> SettingsView ?= require './settings-view' unless state instanceof Document state = _.extend({deserializer: deserializer.name, version: deserializer.version}, state) state = atom.site.createDocument(state) settingsView = new SettingsView(state) openPanel = (panelName) -> atom.workspaceView.open(configUri) settingsView.showPanel(panelName) deserializer = acceptsDocuments: true name: 'SettingsView' version: 1 deserialize: (state) -> createSettingsView(state) atom.deserializers.add(deserializer) module.exports = activate: -> atom.project.registerOpener (uri) -> createSettingsView({uri: configUri}) if uri is configUri atom.workspaceView.command 'settings-view:toggle', -> openPanel('General') atom.workspaceView.command 'settings-view:show-keybindings', -> openPanel('Keybindings') atom.workspaceView.command 'settings-view:change-themes', -> openPanel('Themes') atom.workspaceView.command 'settings-view:install-packages', -> openPanel('Packages')
Rename filePath local var to uri because that's more accurate
Rename filePath local var to uri because that's more accurate
CoffeeScript
mit
atom/settings-view
ec7ab106668f4260055ee7e617c6a3f890e098d7
lib/panel.coffee
lib/panel.coffee
class Panel constructor: (@Linter)-> registerView: (View)-> @View = View @View.Model = this module.exports = Panel
class Panel constructor: (@Linter)-> @Decorations = [] @Type = 'file' registerView: (View)-> @View = View @View.Model = this removeDecorations: -> @Decorations.forEach (decoration) -> try decoration.destroy() @Decorations = [] render: (Messages)-> @removeDecorations() Messages.forEach (Message) => return unless Message.CurrentFile # A custom property added while creating arrays of them return unless Message.Position P = Message.Position Marker = @Linter.ActiveEditor.markBufferRange [[P[0][0] - 1, P[0][1] - 1], [P[1][0] - 1, P[1][1]]], {invalidate: 'never'} @Decorations.push @Linter.ActiveEditor.decorateMarker( Marker, type: 'line-number', class: 'line-number-' + Message.Type.toLowerCase() ) @Decorations.push @Linter.ActiveEditor.decorateMarker( Marker, type: 'highlight', class: 'highlight-' + Message.Type.toLowerCase() ) @View.render Messages module.exports = Panel
Add render and removeDecorations to Panel Model
:new: Add render and removeDecorations to Panel Model
CoffeeScript
mit
steelbrain/linter,JohnMurga/linter,kaeluka/linter,DanPurdy/linter,iam4x/linter,mdgriffith/linter,AtomLinter/Linter,simurai/linter-plus,AsaAyers/linter,elkeis/linter,e-jigsaw/Linter,blakeembrey/linter,josa42/Linter,atom-community/linter,UltCombo/linter,Arcanemagus/linter,shawninder/linter,levity/linter
de86aefcf78fb42ba868a9435821582d8570aa77
src/packages/fuzzy-finder/lib/fuzzy-finder.coffee
src/packages/fuzzy-finder/lib/fuzzy-finder.coffee
_ = require 'underscore' module.exports = projectPaths: null fuzzyFinderView: null activate: (state) -> rootView.command 'fuzzy-finder:toggle-file-finder', => @createView().toggleFileFinder() rootView.command 'fuzzy-finder:toggle-buffer-finder', => @createView().toggleBufferFinder() rootView.command 'fuzzy-finder:find-under-cursor', => @createView().findUnderCursor() if rootView.project.getPath()? LoadPathsTask = require 'fuzzy-finder/lib/load-paths-task' @loadPathsTask = new LoadPathsTask((paths) => @projectPaths = paths) @loadPathsTask.start() for path, lastOpened of state session = _.detect rootView.project.getEditSessions(), (editSession) -> editSession.getPath() is path session?.lastOpened = lastOpened deactivate: -> @loadPathsTask?.terminate() @fuzzyFinderView?.cancel() @fuzzyFinderView = null @projectPaths = null @fuzzyFinderView = null serialize: -> @fuzzyFinderView?.getOpenedPaths() createView: -> unless @fuzzyFinderView FuzzyFinderView = require 'fuzzy-finder/lib/fuzzy-finder-view' @fuzzyFinderView = new FuzzyFinderView() if @projectPaths? and not @fuzzyFinderView.projectPaths? @fuzzyFinderView.projectPaths = @projectPaths @fuzzyFinderView.reloadProjectPaths = false @fuzzyFinderView
_ = require 'underscore' module.exports = projectPaths: null fuzzyFinderView: null activate: (state) -> rootView.command 'fuzzy-finder:toggle-file-finder', => @createView().toggleFileFinder() rootView.command 'fuzzy-finder:toggle-buffer-finder', => @createView().toggleBufferFinder() rootView.command 'fuzzy-finder:find-under-cursor', => @createView().findUnderCursor() if rootView.project.getPath()? LoadPathsTask = require 'fuzzy-finder/lib/load-paths-task' @loadPathsTask = new LoadPathsTask((paths) => @projectPaths = paths) @loadPathsTask.start() for path, lastOpened of state session = _.detect rootView.project.getEditSessions(), (editSession) -> editSession.getPath() is path session?.lastOpened = lastOpened deactivate: -> @loadPathsTask?.terminate() @fuzzyFinderView?.cancel() @fuzzyFinderView = null @projectPaths = null serialize: -> @fuzzyFinderView?.getOpenedPaths() createView: -> unless @fuzzyFinderView FuzzyFinderView = require 'fuzzy-finder/lib/fuzzy-finder-view' @fuzzyFinderView = new FuzzyFinderView() if @projectPaths? and not @fuzzyFinderView.projectPaths? @fuzzyFinderView.projectPaths = @projectPaths @fuzzyFinderView.reloadProjectPaths = false @fuzzyFinderView
Remove duplicate nulling out of view
Remove duplicate nulling out of view
CoffeeScript
mit
mnquintana/atom,qskycolor/atom,sillvan/atom,jlord/atom,toqz/atom,hpham04/atom,ppamorim/atom,targeter21/atom,vjeux/atom,ironbox360/atom,CraZySacX/atom,cyzn/atom,alfredxing/atom,woss/atom,darwin/atom,codex8/atom,sekcheong/atom,champagnez/atom,andrewleverette/atom,Andrey-Pavlov/atom,Abdillah/atom,stuartquin/atom,acontreras89/atom,lpommers/atom,johnrizzo1/atom,erikhakansson/atom,einarmagnus/atom,devoncarew/atom,constanzaurzua/atom,mostafaeweda/atom,oggy/atom,Rodjana/atom,erikhakansson/atom,hharchani/atom,Abdillah/atom,dannyflax/atom,h0dgep0dge/atom,constanzaurzua/atom,fredericksilva/atom,dkfiresky/atom,omarhuanca/atom,dkfiresky/atom,Arcanemagus/atom,AlisaKiatkongkumthon/atom,niklabh/atom,jlord/atom,toqz/atom,hpham04/atom,beni55/atom,russlescai/atom,amine7536/atom,vhutheesing/atom,mostafaeweda/atom,jjz/atom,daxlab/atom,alexandergmann/atom,stuartquin/atom,amine7536/atom,MjAbuz/atom,Abdillah/atom,tisu2tisu/atom,jordanbtucker/atom,Austen-G/BlockBuilder,targeter21/atom,0x73/atom,ralphtheninja/atom,Rychard/atom,rjattrill/atom,RobinTec/atom,anuwat121/atom,johnrizzo1/atom,rxkit/atom,sebmck/atom,sxgao3001/atom,kittens/atom,DiogoXRP/atom,devoncarew/atom,codex8/atom,mertkahyaoglu/atom,me6iaton/atom,001szymon/atom,ali/atom,Abdillah/atom,johnhaley81/atom,ivoadf/atom,john-kelly/atom,acontreras89/atom,codex8/atom,devoncarew/atom,Andrey-Pavlov/atom,YunchengLiao/atom,kdheepak89/atom,Arcanemagus/atom,isghe/atom,Austen-G/BlockBuilder,hakatashi/atom,ironbox360/atom,yalexx/atom,rjattrill/atom,deepfox/atom,bj7/atom,yamhon/atom,lisonma/atom,bcoe/atom,fredericksilva/atom,dijs/atom,scv119/atom,efatsi/atom,stinsonga/atom,g2p/atom,ezeoleaf/atom,rxkit/atom,mnquintana/atom,sxgao3001/atom,AlisaKiatkongkumthon/atom,Jandersoft/atom,bradgearon/atom,johnhaley81/atom,sebmck/atom,hagb4rd/atom,qiujuer/atom,gzzhanghao/atom,lovesnow/atom,FoldingText/atom,me-benni/atom,fang-yufeng/atom,AlbertoBarrago/atom,ObviouslyGreen/atom,Huaraz2/atom,florianb/atom,nrodriguez13/atom,lisonma/atom,n-riesco/atom,lovesnow/atom,isghe/atom,tony612/atom,gabrielPeart/atom,FoldingText/atom,jtrose2/atom,basarat/atom,Galactix/atom,Jonekee/atom,ali/atom,daxlab/atom,Sangaroonaom/atom,sillvan/atom,Shekharrajak/atom,gontadu/atom,me-benni/atom,basarat/atom,RobinTec/atom,cyzn/atom,Hasimir/atom,targeter21/atom,crazyquark/atom,mertkahyaoglu/atom,kdheepak89/atom,toqz/atom,yomybaby/atom,tmunro/atom,anuwat121/atom,FIT-CSE2410-A-Bombs/atom,mnquintana/atom,batjko/atom,jacekkopecky/atom,charleswhchan/atom,jlord/atom,n-riesco/atom,mnquintana/atom,dijs/atom,jordanbtucker/atom,fedorov/atom,liuxiong332/atom,lisonma/atom,medovob/atom,amine7536/atom,mrodalgaard/atom,yangchenghu/atom,fang-yufeng/atom,rlugojr/atom,Dennis1978/atom,bryonwinger/atom,bolinfest/atom,sotayamashita/atom,execjosh/atom,hharchani/atom,nrodriguez13/atom,liuderchi/atom,qiujuer/atom,dijs/atom,gabrielPeart/atom,jtrose2/atom,ReddTea/atom,SlimeQ/atom,abcP9110/atom,abe33/atom,sillvan/atom,jjz/atom,kdheepak89/atom,scv119/atom,Hasimir/atom,oggy/atom,tony612/atom,hakatashi/atom,decaffeinate-examples/atom,rxkit/atom,jeremyramin/atom,AlisaKiatkongkumthon/atom,Hasimir/atom,mostafaeweda/atom,russlescai/atom,kc8wxm/atom,matthewclendening/atom,Neron-X5/atom,liuderchi/atom,woss/atom,omarhuanca/atom,vinodpanicker/atom,Jdesk/atom,devoncarew/atom,prembasumatary/atom,codex8/atom,john-kelly/atom,ReddTea/atom,githubteacher/atom,champagnez/atom,abcP9110/atom,boomwaiza/atom,yomybaby/atom,Dennis1978/atom,rsvip/aTom,YunchengLiao/atom,sebmck/atom,Jandersolutions/atom,palita01/atom,Jandersolutions/atom,t9md/atom,ralphtheninja/atom,xream/atom,dannyflax/atom,sillvan/atom,beni55/atom,Galactix/atom,GHackAnonymous/atom,AdrianVovk/substance-ide,Ingramz/atom,dkfiresky/atom,Austen-G/BlockBuilder,CraZySacX/atom,acontreras89/atom,dannyflax/atom,Sangaroonaom/atom,Ju2ender/atom,rsvip/aTom,kevinrenaers/atom,panuchart/atom,tisu2tisu/atom,Mokolea/atom,hagb4rd/atom,GHackAnonymous/atom,kdheepak89/atom,elkingtonmcb/atom,yomybaby/atom,tanin47/atom,harshdattani/atom,jacekkopecky/atom,pombredanne/atom,phord/atom,Klozz/atom,fscherwi/atom,palita01/atom,Neron-X5/atom,transcranial/atom,jlord/atom,boomwaiza/atom,Hasimir/atom,john-kelly/atom,tony612/atom,Arcanemagus/atom,brettle/atom,lpommers/atom,basarat/atom,pombredanne/atom,mostafaeweda/atom,RuiDGoncalves/atom,gisenberg/atom,RobinTec/atom,yangchenghu/atom,bsmr-x-script/atom,crazyquark/atom,elkingtonmcb/atom,t9md/atom,t9md/atom,boomwaiza/atom,AdrianVovk/substance-ide,nvoron23/atom,ReddTea/atom,ykeisuke/atom,stinsonga/atom,folpindo/atom,Jonekee/atom,AlexxNica/atom,ReddTea/atom,phord/atom,einarmagnus/atom,Galactix/atom,pengshp/atom,gontadu/atom,abe33/atom,vcarrera/atom,hpham04/atom,scv119/atom,batjko/atom,russlescai/atom,Neron-X5/atom,abe33/atom,nvoron23/atom,mostafaeweda/atom,Jandersoft/atom,me6iaton/atom,mdumrauf/atom,alexandergmann/atom,jjz/atom,YunchengLiao/atom,FIT-CSE2410-A-Bombs/atom,kandros/atom,originye/atom,vinodpanicker/atom,dsandstrom/atom,atom/atom,fedorov/atom,kaicataldo/atom,fedorov/atom,execjosh/atom,sebmck/atom,rookie125/atom,bryonwinger/atom,ezeoleaf/atom,KENJU/atom,crazyquark/atom,deoxilix/atom,NunoEdgarGub1/atom,yalexx/atom,pkdevbox/atom,h0dgep0dge/atom,john-kelly/atom,avdg/atom,mertkahyaoglu/atom,scippio/atom,stuartquin/atom,hakatashi/atom,charleswhchan/atom,prembasumatary/atom,mertkahyaoglu/atom,001szymon/atom,crazyquark/atom,Jdesk/atom,einarmagnus/atom,ali/atom,Abdillah/atom,GHackAnonymous/atom,jacekkopecky/atom,matthewclendening/atom,niklabh/atom,xream/atom,Andrey-Pavlov/atom,pkdevbox/atom,kjav/atom,sekcheong/atom,RobinTec/atom,champagnez/atom,transcranial/atom,atom/atom,MjAbuz/atom,svanharmelen/atom,synaptek/atom,vcarrera/atom,kjav/atom,chengky/atom,codex8/atom,rlugojr/atom,mrodalgaard/atom,Shekharrajak/atom,xream/atom,fedorov/atom,ilovezy/atom,G-Baby/atom,NunoEdgarGub1/atom,GHackAnonymous/atom,scippio/atom,niklabh/atom,me6iaton/atom,batjko/atom,brumm/atom,dkfiresky/atom,rsvip/aTom,ObviouslyGreen/atom,isghe/atom,Rychard/atom,fang-yufeng/atom,jjz/atom,ilovezy/atom,Mokolea/atom,n-riesco/atom,lovesnow/atom,Hasimir/atom,Andrey-Pavlov/atom,toqz/atom,davideg/atom,yamhon/atom,liuxiong332/atom,johnrizzo1/atom,basarat/atom,bencolon/atom,ralphtheninja/atom,g2p/atom,jacekkopecky/atom,dannyflax/atom,davideg/atom,qskycolor/atom,basarat/atom,Ingramz/atom,bryonwinger/atom,oggy/atom,qiujuer/atom,florianb/atom,alexandergmann/atom,fedorov/atom,0x73/atom,Klozz/atom,me-benni/atom,NunoEdgarGub1/atom,bsmr-x-script/atom,matthewclendening/atom,0x73/atom,charleswhchan/atom,ivoadf/atom,Rodjana/atom,Locke23rus/atom,rsvip/aTom,FoldingText/atom,0x73/atom,bcoe/atom,AlbertoBarrago/atom,fscherwi/atom,RuiDGoncalves/atom,G-Baby/atom,DiogoXRP/atom,ppamorim/atom,matthewclendening/atom,execjosh/atom,kittens/atom,liuxiong332/atom,scv119/atom,RuiDGoncalves/atom,woss/atom,Huaraz2/atom,Klozz/atom,toqz/atom,fredericksilva/atom,sillvan/atom,GHackAnonymous/atom,mertkahyaoglu/atom,ppamorim/atom,AlbertoBarrago/atom,paulcbetts/atom,oggy/atom,rmartin/atom,darwin/atom,chfritz/atom,001szymon/atom,Andrey-Pavlov/atom,kc8wxm/atom,woss/atom,vjeux/atom,bolinfest/atom,kdheepak89/atom,rookie125/atom,seedtigo/atom,Galactix/atom,devmario/atom,prembasumatary/atom,helber/atom,erikhakansson/atom,sotayamashita/atom,sekcheong/atom,mdumrauf/atom,alfredxing/atom,wiggzz/atom,acontreras89/atom,Jdesk/atom,FoldingText/atom,einarmagnus/atom,burodepeper/atom,originye/atom,nvoron23/atom,tanin47/atom,constanzaurzua/atom,gabrielPeart/atom,ezeoleaf/atom,wiggzz/atom,devmario/atom,Austen-G/BlockBuilder,tmunro/atom,rmartin/atom,lpommers/atom,DiogoXRP/atom,jtrose2/atom,florianb/atom,nvoron23/atom,Jonekee/atom,g2p/atom,johnhaley81/atom,hagb4rd/atom,FoldingText/atom,liuxiong332/atom,kjav/atom,synaptek/atom,vjeux/atom,yalexx/atom,hagb4rd/atom,vhutheesing/atom,sxgao3001/atom,qiujuer/atom,pengshp/atom,deepfox/atom,ashneo76/atom,FIT-CSE2410-A-Bombs/atom,andrewleverette/atom,splodingsocks/atom,AlexxNica/atom,yomybaby/atom,qskycolor/atom,palita01/atom,synaptek/atom,Jandersoft/atom,nrodriguez13/atom,hharchani/atom,yomybaby/atom,KENJU/atom,gzzhanghao/atom,sekcheong/atom,batjko/atom,omarhuanca/atom,elkingtonmcb/atom,kaicataldo/atom,ironbox360/atom,davideg/atom,vhutheesing/atom,russlescai/atom,florianb/atom,ilovezy/atom,ashneo76/atom,ppamorim/atom,bradgearon/atom,vcarrera/atom,nvoron23/atom,SlimeQ/atom,Jandersolutions/atom,ardeshirj/atom,medovob/atom,sotayamashita/atom,tmunro/atom,tanin47/atom,yangchenghu/atom,kjav/atom,devmario/atom,beni55/atom,hellendag/atom,chengky/atom,transcranial/atom,andrewleverette/atom,stinsonga/atom,Rodjana/atom,rjattrill/atom,Sangaroonaom/atom,rookie125/atom,alfredxing/atom,ReddTea/atom,nucked/atom,KENJU/atom,ppamorim/atom,dsandstrom/atom,Ju2ender/atom,burodepeper/atom,fscherwi/atom,bradgearon/atom,Jandersoft/atom,Rychard/atom,KENJU/atom,RobinTec/atom,paulcbetts/atom,Neron-X5/atom,ivoadf/atom,synaptek/atom,deepfox/atom,Ju2ender/atom,Austen-G/BlockBuilder,woss/atom,charleswhchan/atom,lisonma/atom,kevinrenaers/atom,mdumrauf/atom,yalexx/atom,sxgao3001/atom,amine7536/atom,BogusCurry/atom,dkfiresky/atom,oggy/atom,gisenberg/atom,efatsi/atom,cyzn/atom,vcarrera/atom,bolinfest/atom,Mokolea/atom,seedtigo/atom,KENJU/atom,basarat/atom,bcoe/atom,vinodpanicker/atom,G-Baby/atom,rmartin/atom,h0dgep0dge/atom,wiggzz/atom,Austen-G/BlockBuilder,jacekkopecky/atom,omarhuanca/atom,kaicataldo/atom,Shekharrajak/atom,nucked/atom,hellendag/atom,hharchani/atom,decaffeinate-examples/atom,rlugojr/atom,stinsonga/atom,vcarrera/atom,Jdesk/atom,vinodpanicker/atom,bcoe/atom,jordanbtucker/atom,lovesnow/atom,Ju2ender/atom,synaptek/atom,ashneo76/atom,tony612/atom,jjz/atom,decaffeinate-examples/atom,ykeisuke/atom,Huaraz2/atom,russlescai/atom,ObviouslyGreen/atom,hharchani/atom,pombredanne/atom,rjattrill/atom,liuxiong332/atom,panuchart/atom,devoncarew/atom,githubteacher/atom,dannyflax/atom,kevinrenaers/atom,rmartin/atom,phord/atom,amine7536/atom,acontreras89/atom,john-kelly/atom,kandros/atom,isghe/atom,kittens/atom,YunchengLiao/atom,chfritz/atom,SlimeQ/atom,targeter21/atom,ezeoleaf/atom,PKRoma/atom,darwin/atom,bencolon/atom,jacekkopecky/atom,n-riesco/atom,fang-yufeng/atom,splodingsocks/atom,PKRoma/atom,vjeux/atom,gontadu/atom,davideg/atom,batjko/atom,rmartin/atom,abcP9110/atom,NunoEdgarGub1/atom,avdg/atom,rsvip/aTom,AlexxNica/atom,Shekharrajak/atom,h0dgep0dge/atom,constanzaurzua/atom,vjeux/atom,SlimeQ/atom,bencolon/atom,MjAbuz/atom,daxlab/atom,avdg/atom,omarhuanca/atom,ilovezy/atom,me6iaton/atom,hagb4rd/atom,tjkr/atom,helber/atom,dsandstrom/atom,dannyflax/atom,medovob/atom,sebmck/atom,decaffeinate-examples/atom,devmario/atom,svanharmelen/atom,yamhon/atom,ardeshirj/atom,gisenberg/atom,fang-yufeng/atom,pombredanne/atom,helber/atom,anuwat121/atom,burodepeper/atom,kittens/atom,tjkr/atom,ali/atom,sekcheong/atom,florianb/atom,n-riesco/atom,abcP9110/atom,abcP9110/atom,mnquintana/atom,Dennis1978/atom,paulcbetts/atom,lovesnow/atom,SlimeQ/atom,deoxilix/atom,kc8wxm/atom,jeremyramin/atom,prembasumatary/atom,splodingsocks/atom,FoldingText/atom,bj7/atom,paulcbetts/atom,seedtigo/atom,Jdesk/atom,fredericksilva/atom,jlord/atom,ali/atom,BogusCurry/atom,brumm/atom,pkdevbox/atom,bsmr-x-script/atom,BogusCurry/atom,chengky/atom,qskycolor/atom,jtrose2/atom,deepfox/atom,liuderchi/atom,Locke23rus/atom,targeter21/atom,CraZySacX/atom,Shekharrajak/atom,mrodalgaard/atom,YunchengLiao/atom,tisu2tisu/atom,originye/atom,chengky/atom,tjkr/atom,kandros/atom,atom/atom,chfritz/atom,Neron-X5/atom,qskycolor/atom,hpham04/atom,folpindo/atom,harshdattani/atom,einarmagnus/atom,NunoEdgarGub1/atom,devmario/atom,hpham04/atom,Ingramz/atom,dsandstrom/atom,jtrose2/atom,tony612/atom,davideg/atom,efatsi/atom,lisonma/atom,dsandstrom/atom,hakatashi/atom,nucked/atom,deoxilix/atom,Jandersolutions/atom,Galactix/atom,jeremyramin/atom,crazyquark/atom,Ju2ender/atom,Locke23rus/atom,folpindo/atom,gzzhanghao/atom,githubteacher/atom,bj7/atom,vinodpanicker/atom,splodingsocks/atom,sxgao3001/atom,prembasumatary/atom,bcoe/atom,qiujuer/atom,scippio/atom,ardeshirj/atom,pengshp/atom,isghe/atom,kc8wxm/atom,kc8wxm/atom,Jandersolutions/atom,panuchart/atom,pombredanne/atom,fredericksilva/atom,chengky/atom,matthewclendening/atom,PKRoma/atom,hellendag/atom,brettle/atom,Jandersoft/atom,kittens/atom,brettle/atom,gisenberg/atom,harshdattani/atom,liuderchi/atom,ilovezy/atom,ykeisuke/atom,MjAbuz/atom,bryonwinger/atom,me6iaton/atom,kjav/atom,gisenberg/atom,svanharmelen/atom,brumm/atom,deepfox/atom,charleswhchan/atom,AdrianVovk/substance-ide,MjAbuz/atom,yalexx/atom,constanzaurzua/atom
f407c22d94174bc417a048b4e3bc4dfeebdb2682
config/settings.defaults.coffee
config/settings.defaults.coffee
Path = require "path" module.exports = # Options are passed to Sequelize. # See http://sequelizejs.com/documentation#usage-options for details mysql: clsi: database: "clsi" username: "clsi" password: null dialect: "sqlite" storage: Path.resolve(__dirname + "/../db.sqlite") path: compilesDir: Path.resolve(__dirname + "/../compiles") clsiCacheDir: Path.resolve(__dirname + "/../cache") synctexBaseDir: (project_id) -> Path.join(@compilesDir, project_id) internal: clsi: port: 3013 host: "localhost" apis: clsi: url: "http://localhost:3013"
Path = require "path" module.exports = # Options are passed to Sequelize. # See http://sequelizejs.com/documentation#usage-options for details mysql: clsi: database: "clsi" username: "clsi" password: null dialect: "sqlite" storage: Path.resolve(__dirname + "/../db.sqlite") path: compilesDir: Path.resolve(__dirname + "/../compiles") clsiCacheDir: Path.resolve(__dirname + "/../cache") synctexBaseDir: (project_id) -> Path.join(@compilesDir, project_id) # clsi: # commandRunner: "docker-runner-sharelatex" # docker: # image: "quay.io/sharelatex/texlive-full" # env: # PATH: "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/texlive/2013/bin/x86_64-linux/" # HOME: "/tmp" # modem: # socketPath: false # user: "tex" internal: clsi: port: 3013 host: "localhost" apis: clsi: url: "http://localhost:3013"
Add commented out docker config
Add commented out docker config
CoffeeScript
agpl-3.0
fancycharts/clsi-sharelatex,fancycharts/clsi-sharelatex,EDP-Sciences/clsi-sharelatex,sharelatex/clsi-sharelatex,dwrensha/clsi-sharelatex,sharelatex/clsi-sharelatex,dwrensha/clsi-sharelatex
8d9025b8396504bf4eefd43cc68ad9eba7aebd57
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: # # '.source.coffee': # 'Console log': # 'prefix': 'log' # 'body': 'console.log $1' # # Each scope (e.g. '.source.coffee' above) can only be declared once. # # This file uses CoffeeScript Object Notation (CSON). # If you are unfamiliar with CSON, you can read more about it in the # Atom Flight Manual: # https://atom.io/docs/latest/using-atom-basic-customization#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: # # '.source.coffee': # 'Console log': # 'prefix': 'log' # 'body': 'console.log $1' # # Each scope (e.g. '.source.coffee' above) can only be declared once. # # This file uses CoffeeScript Object Notation (CSON). # If you are unfamiliar with CSON, you can read more about it in the # Atom Flight Manual: # https://atom.io/docs/latest/using-atom-basic-customization#cson '.source.js': 'mocha-test': 'prefix': 'describe' 'body': """ import { expect } from 'chai'; describe('$1', function() { it('should $2', function() { // test goes here }); }); """
Add snippet for Mocha test statement
atom: Add snippet for Mocha test statement
CoffeeScript
mit
jocelynjeffrey/mydotfiles,jocelynjeffrey/mydotfiles,nicksp/dotfiles,nicksp/dotfiles,nicksp/dotfiles,nicksp/dotfiles,jocelynjeffrey/mydotfiles
71887f291142da192b05f3b455a5eaddfc03e78d
app/assets/javascripts/answers.js.coffee
app/assets/javascripts/answers.js.coffee
App.Answers = nestedAnswers: -> $('.nested-answers').on 'cocoon:after-insert', (e, insertedItem) -> nestedAnswersCount = $("input[type='hidden'][name$='[given_order]']").size() $(insertedItem).find("input[type='hidden'][name$='[given_order]']").val(nestedAnswersCount) initialize: -> App.Answers.nestedAnswers()
App.Answers = initializeAnswers: (answers) -> $(answers).on 'cocoon:after-insert', (e, new_answer) -> given_order = App.Answers.maxGivenOrder(answers) + 1 $(new_answer).find("[name$='[given_order]']").val(given_order) maxGivenOrder: (answers) -> max_order = 0 $(answers).find("[name$='[given_order]']").each (index, answer) -> value = parseFloat($(answer).val()) max_order = if value > max_given_order then value else max_given_order return max_given_order nestedAnswers: -> $('.js-answers').each (index, answers) -> App.Answers.initializeAnswers(answers) initialize: -> App.Answers.nestedAnswers()
Initialize answers 'after-insert' callback to keep answers order
Initialize answers 'after-insert' callback to keep answers order Also provide a function to initialize new set of answers 'affer-insert' callback after adding new questions.
CoffeeScript
agpl-3.0
usabi/consul_san_borondon,usabi/consul_san_borondon,consul/consul,consul/consul,AyuntamientoPuertoReal/decidePuertoReal,consul/consul,consul/consul,AyuntamientoPuertoReal/decidePuertoReal,AyuntamientoPuertoReal/decidePuertoReal,consul/consul,usabi/consul_san_borondon,usabi/consul_san_borondon
08c3da680d195f027da462e96df71acde14b0ea0
api/models/UserPassword.coffee
api/models/UserPassword.coffee
module.exports = # Turn off migrations. migrate: 'safe' # Turn off auto fields. autoCreatedAt: false autoUpdatedAt: false autoPK: false # Validation rules. attributes: user_id: type: 'string' hexadecimal: true required: true email: type: 'string' email: true required: true
module.exports = # Turn off migrations. migrate: 'safe' # Turn off auto fields. autoCreatedAt: off autoUpdatedAt: off autoPK: off # Validation rules. attributes: user_id: type: 'string' hexadecimal: yes required: yes email: type: 'string' email: yes required: yes
Use boolean synonyms off and yes to make model human readable.
Use boolean synonyms off and yes to make model human readable.
CoffeeScript
mit
DoSomething/quicksilver-api,DoSomething/quicksilver-api
74aaa808658af9da657c67613b2f4110b17b8f7a
examples/listnr-examples.coffee
examples/listnr-examples.coffee
Listnr = @Listnr createEl = (tag) -> document.createElement(tag) div = createEl('div') div.innerHTML = """ <dl> <dt>Context:</dt> <dd id="context"></dd> <dt>Action:</dt> <dd id="action"></dd> </dl> """ document.body.appendChild(div) listnr = new Listnr() setContext = (ctx) -> document .getElementById('action') .innerHTML = "Switching context to '#{ctx}'" document .getElementById('context') .innerHTML = ctx listnr.activate(ctx) matchingHandler = (combo) -> document .getElementById('action') .innerHTML = "Has mapping for '#{combo}'" defaultHandler = (combo) -> document .getElementById('action') .innerHTML = "No mapping for '#{combo}'" listnr .map('a', matchingHandler) .map('c', -> setContext('context')) .default(defaultHandler) .addContext('context') .map('b', matchingHandler) .map('d', -> setContext('default')) .default(defaultHandler) setContext('default')
Listnr = @Listnr createEl = (tag) -> document.createElement(tag) div = createEl('div') div.innerHTML = """ <dl> <dt>Context:</dt> <dd id="context"></dd> <dt>Action:</dt> <dd id="action"></dd> </dl> <pre id="help"> </pre> """ document.body.appendChild(div) listnr = new Listnr() setContext = (ctx) -> document .getElementById('action') .innerHTML = "Switching context to '#{ctx}'" document .getElementById('context') .innerHTML = ctx document .getElementById('help') .innerHTML = JSON.stringify(listnr.help(), null, 2) listnr.activate(ctx) matchingHandler = (combo) -> document .getElementById('action') .innerHTML = "Has mapping for '#{combo}'" defaultHandler = (combo) -> document .getElementById('action') .innerHTML = "No mapping for '#{combo}'" listnr .map('a', 'Mapping for "a"', matchingHandler) .map('c', 'Switch to menu context', -> setContext('menu')) .default(defaultHandler) .addContext('menu') .map('b', 'Mapping for "b"', matchingHandler) .map('d', 'Switch to default context', -> setContext('default')) .default(defaultHandler) setContext('default')
Update example with help text
Update example with help text
CoffeeScript
isc
myme/listnr
2eefb4e4b1b6ee5a17ebaa9b27982cec93e6851e
extension/packages/hints.coffee
extension/packages/hints.coffee
{ Marker } = require 'marker' { interfaces: Ci } = Components HTMLDocument = Ci.nsIDOMHTMLDocument XULDocument = Ci.nsIDOMXULDocument CONTAINER_ID = 'VimFxHintMarkerContainer' createHintsContainer = (document) -> container = document.createElement('div') container.id = CONTAINER_ID container.className = 'VimFxReset' return container # Creates and injects hint markers into the DOM injectHints = (document) -> inner = (document, startIndex = 1) -> # First remove previous hints container removeHints(document) # For now we aren't able to handle hint markers in XUL Documents :( if document instanceof HTMLDocument# or document instanceof XULDocument if document.documentElement # Find and create markers markers = Marker.createMarkers(document, startIndex) container = createHintsContainer(document) # For performance use Document Fragment fragment = document.createDocumentFragment() for marker in markers fragment.appendChild(marker.markerElement) container.appendChild(fragment) document.documentElement.appendChild(container) for frame in document.defaultView.frames markers = markers.concat(inner(frame.document, markers.length+1)) return markers return inner(document) # Remove previously injected hints from the DOM removeHints = (document) -> if container = document.getElementById(CONTAINER_ID) document.documentElement.removeChild(container) for frame in document.defaultView.frames removeHints(frame.document) exports.injectHints = injectHints exports.removeHints = removeHints
{ Marker } = require 'marker' { interfaces: Ci } = Components HTMLDocument = Ci.nsIDOMHTMLDocument XULDocument = Ci.nsIDOMXULDocument CONTAINER_ID = 'VimFxHintMarkerContainer' createHintsContainer = (document) -> container = document.createElement('div') container.id = CONTAINER_ID container.className = 'VimFxReset' return container # Creates and injects hint markers into the DOM injectHints = (document) -> inner = (document, startIndex = 1) -> # First remove previous hints container removeHints(document) # For now we aren't able to handle hint markers in XUL Documents :( if document instanceof HTMLDocument# or document instanceof XULDocument if document.documentElement # Find and create markers markers = Marker.createMarkers(document, startIndex) container = createHintsContainer(document) # For performance use Document Fragment fragment = document.createDocumentFragment() for marker in markers fragment.appendChild(marker.markerElement) container.appendChild(fragment) document.documentElement.appendChild(container) for frame in document.defaultView.frames markers = markers.concat(inner(frame.document, markers.length+1)) return markers or [] return inner(document) # Remove previously injected hints from the DOM removeHints = (document) -> if container = document.getElementById(CONTAINER_ID) document.documentElement.removeChild(container) for frame in document.defaultView.frames removeHints(frame.document) exports.injectHints = injectHints exports.removeHints = removeHints
Fix `injectHints` might return undefined markers
Fix `injectHints` might return undefined markers The `inner` function of `injectHints` now returns an empty array instead of undefined if no markers could be produced, since all results of the `inner` function are recursively concatenated. VimFx seems to have worked well even though some entries in the array of markers returned by `injectHints` could be undefined. However, on the Huffman branch, the undefined entries sometimes caused a TypeError to be thrown, which eventually resulted in that none of the hint markers were given any hints.
CoffeeScript
mit
m-r-r/VimFx
913ed0ebb6acb3c15ac567435cedc7d1ec75d290
client/ide/workspace/workspacelayoutbuilder.coffee
client/ide/workspace/workspacelayoutbuilder.coffee
class WorkspaceLayoutBuilder extends KDSplitComboView init: -> @splitViews = {} {direction, sizes, views, cssClass, splitName} = @getOption 'layoutOptions' @baseSplitName = splitName splitOptions = { type : direction viewsConfig : views sizes cssClass } @addSubView @createSplitView splitOptions, splitName createSplitView: (splitOptions, splitName) -> {type, sizes, viewsConfig, cssClass} = splitOptions views = [] viewsConfig.forEach (config) => if config.type is 'split' {options} = config {splitName} = options splitView = @createSplitView type : options.direction sizes : options.sizes cssClass : options.cssClass viewsConfig : config.views @splitViews[splitName] = splitView if splitName views.push splitView else wrapper = new KDView cssClass: 'pane-wrapper' wrapper.on 'viewAppended', => wrapper.addSubView @getDelegate().createPane config views.push wrapper splitView = new SplitViewWithOlderSiblings { type, sizes, views, cssClass } @splitViews[@baseSplitName] = splitView if @baseSplitName return splitView getSplitByName: (name) -> return @splitViews[name] or null
class WorkspaceLayoutBuilder extends KDSplitComboView init: -> @splitViews = {} {direction, sizes, views, cssClass, splitName} = @getOption 'layoutOptions' @baseSplitName = splitName splitOptions = { type : direction viewsConfig : views sizes cssClass } @addSubView @createSplitView splitOptions, splitName createSplitView: (splitOptions, splitName) -> {type, sizes, viewsConfig, cssClass} = splitOptions views = [] viewsConfig.forEach (config) => if config.type is 'split' {options} = config {splitName} = options splitView = @createSplitView type : options.direction sizes : options.sizes cssClass : options.cssClass viewsConfig : config.views @splitViews[splitName] = splitView if splitName views.push splitView else wrapper = new KDView cssClass: 'pane-wrapper' wrapper.on 'viewAppended', => wrapper.addSubView @getDelegate().createPane config views.push wrapper SplitViewClass = @getOptions().splitViewClass or SplitViewWithOlderSiblings splitView = new SplitViewClass { type, sizes, views, cssClass } @splitViews[@baseSplitName] = splitView if @baseSplitName return splitView getSplitViewByName: (name) -> return @splitViews[name] or null
Make split view class optional in layout builder.
Make split view class optional in layout builder.
CoffeeScript
agpl-3.0
mertaytore/koding,cihangir/koding,jack89129/koding,sinan/koding,sinan/koding,drewsetski/koding,sinan/koding,drewsetski/koding,cihangir/koding,rjeczalik/koding,sinan/koding,cihangir/koding,sinan/koding,gokmen/koding,gokmen/koding,alex-ionochkin/koding,kwagdy/koding-1,cihangir/koding,kwagdy/koding-1,drewsetski/koding,mertaytore/koding,koding/koding,gokmen/koding,usirin/koding,jack89129/koding,andrewjcasal/koding,cihangir/koding,alex-ionochkin/koding,jack89129/koding,gokmen/koding,szkl/koding,koding/koding,andrewjcasal/koding,kwagdy/koding-1,szkl/koding,koding/koding,sinan/koding,usirin/koding,szkl/koding,cihangir/koding,andrewjcasal/koding,mertaytore/koding,mertaytore/koding,alex-ionochkin/koding,drewsetski/koding,jack89129/koding,szkl/koding,acbodine/koding,alex-ionochkin/koding,acbodine/koding,gokmen/koding,andrewjcasal/koding,sinan/koding,kwagdy/koding-1,drewsetski/koding,gokmen/koding,mertaytore/koding,jack89129/koding,kwagdy/koding-1,koding/koding,rjeczalik/koding,jack89129/koding,andrewjcasal/koding,usirin/koding,sinan/koding,kwagdy/koding-1,szkl/koding,acbodine/koding,alex-ionochkin/koding,andrewjcasal/koding,usirin/koding,usirin/koding,jack89129/koding,szkl/koding,acbodine/koding,acbodine/koding,gokmen/koding,andrewjcasal/koding,usirin/koding,kwagdy/koding-1,cihangir/koding,acbodine/koding,mertaytore/koding,jack89129/koding,alex-ionochkin/koding,koding/koding,rjeczalik/koding,rjeczalik/koding,usirin/koding,koding/koding,rjeczalik/koding,mertaytore/koding,koding/koding,acbodine/koding,rjeczalik/koding,drewsetski/koding,mertaytore/koding,cihangir/koding,koding/koding,gokmen/koding,alex-ionochkin/koding,drewsetski/koding,usirin/koding,rjeczalik/koding,szkl/koding,rjeczalik/koding,drewsetski/koding,alex-ionochkin/koding,andrewjcasal/koding,szkl/koding,kwagdy/koding-1,acbodine/koding
e2978dafcdedb665c2d1566fe87aeb681d2fe1eb
lib/side-view.coffee
lib/side-view.coffee
{View, $} = require 'atom' module.exports = class SideView extends View @content: (side) -> @div class: "side #{side.klass()} ui-site-#{side.site()}", => @div class: 'controls', => @label class: 'text-highlight', side.ref @span class: 'text-subtle', "// #{side.description()}" @button class: 'btn btn-xs pull-right', click: 'useMe', "Use Me" initialize: (@side) -> installIn: (editorView) -> @appendTo editorView.overlayer @reposition(editorView) @side.refBannerMarker.on "changed", => @reposition(editorView) reposition: (editorView, initial) -> # @side.lines().addClass("conflict-line #{@side.klass()}") anchor = editorView.renderedLines.offset() ref = @side.refBannerOffset() @offset top: ref.top + anchor.top @height @side.refBannerLine().height() useMe: -> @side.resolve() getModel: -> null
{View, $} = require 'atom' module.exports = class SideView extends View @content: (side) -> @div class: "side #{side.klass()} ui-site-#{side.site()}", => @div class: 'controls', => @label class: 'text-highlight', side.ref @span class: 'text-subtle', "// #{side.description()}" @button class: 'btn btn-xs pull-right', click: 'useMe', "Use Me" initialize: (@side) -> installIn: (editorView) -> @appendTo editorView.overlayer @reposition(editorView) @remark(editorView) @side.refBannerMarker.on "changed", => @reposition(editorView) updateScheduled = true @side.marker.on "changed", => updateScheduled = true editorView.on "editor:display-updated", => if updateScheduled @remark(editorView) updateScheduled = false reposition: (editorView) -> anchor = editorView.renderedLines.offset() ref = @side.refBannerOffset() @offset top: ref.top + anchor.top @height @side.refBannerLine().height() remark: (editorView) -> @side.lines().addClass("conflict-line #{@side.klass()}") useMe: -> @side.resolve() getModel: -> null
Apply line styles on display-updated.
Apply line styles on display-updated. ... but only after we've received a marker change event.
CoffeeScript
mit
smashwilson/merge-conflicts,antcodd/merge-conflicts,smashwilson/merge-conflicts
0f8c0f928ba7d3b6bb4f1b20f18848bb2da70621
test/e2e/imageDetailSpec.coffee
test/e2e/imageDetailSpec.coffee
_ = require 'lodash' expect = require('./helpers/expect')() Page = require('./helpers/page')() class ImageDetailPage extends Page displayPanel: -> this.select('qi-series-image') describe 'E2E Testing Image Detail', -> page = null beforeEach -> page = new ImageDetailPage '/quip/breast/subject/1/session/1/scan/1?project=QIN_Test' it 'should display the billboard', -> expect(page.billboard, 'The billboard is incorrect') .to.eventually.equal('Breast Patient 1 Session 1 Scan Time Point 1') it 'should have a home button', -> pat = /.*\/quip\?project=QIN_Test$/ expect(page.home(), 'The home URL is incorrect').to.eventually.match(pat) it 'should have help text', -> expect(page.help(), 'The help is missing').to.eventually.exist describe 'Image Display', -> panel = null beforeEach -> panel = page.displayPanel() it 'should display the image', -> expect(panel, 'The image panel is missing').to.eventually.exist
_ = require 'lodash' expect = require('./helpers/expect')() Page = require('./helpers/page')() class ImageDetailPage extends Page displayPanel: -> this.select('qi-series-image') describe 'E2E Testing Image Detail', -> page = null beforeEach -> page = new ImageDetailPage '/quip/sarcoma/subject/1/session/1/scan/20?project=QIN_Test' it 'should display the billboard', -> expect(page.billboard, 'The billboard is incorrect') .to.eventually.equal('Breast Patient 1 Session 1 Scan Time Point 1') it 'should have a home button', -> pat = /.*\/quip\?project=QIN_Test$/ expect(page.home(), 'The home URL is incorrect').to.eventually.match(pat) it 'should have help text', -> expect(page.help(), 'The help is missing').to.eventually.exist describe 'Image Display', -> panel = null beforeEach -> panel = page.displayPanel() it 'should display the image', -> expect(panel, 'The image panel is missing').to.eventually.exist
Use the sarcoma test fixture.
Use the sarcoma test fixture.
CoffeeScript
bsd-2-clause
ohsu-qin/qiprofile,ohsu-qin/qiprofile,ohsu-qin/qiprofile,ohsu-qin/qiprofile
cd3b0f9d59364a737694834e6e28971db5ee8211
apps/home_2/view_helpers.coffee
apps/home_2/view_helpers.coffee
{ timespanInWords } = require '../../components/util/date_helpers.coffee' module.exports = viewAllUrl: (module) -> if module.key is 'related_artists' return module.context.artist.href return module.context.href if module.context urls = active_bids: false followed_artists: '/works-for-you' followed_galleries: '/user/saves' saved_works: '/user/saves' recommended_works: false live_auctions: false current_fairs: false related_artists: false genes: false urls[module.key] timeSpan: (start_at, end_at) -> timespanInWords start_at, end_at
{ timespanInWords } = require '../../components/util/date_helpers.coffee' module.exports = viewAllUrl: (module) -> if module.key is 'related_artists' return module.context.artist.href return module.context.href if module.context urls = active_bids: false followed_artists: '/works-for-you' followed_galleries: '/user/saves#galleries-institutions' saved_works: '/user/saves' recommended_works: false live_auctions: false current_fairs: false related_artists: false genes: false urls[module.key] timeSpan: (start_at, end_at) -> timespanInWords start_at, end_at
Add hash to view all link to jump user down to gallery section
Add hash to view all link to jump user down to gallery section
CoffeeScript
mit
xtina-starr/force,kanaabe/force,kanaabe/force,izakp/force,erikdstock/force,mzikherman/force,damassi/force,artsy/force,eessex/force,anandaroop/force,eessex/force,kanaabe/force,damassi/force,erikdstock/force,xtina-starr/force,xtina-starr/force,cavvia/force-1,erikdstock/force,artsy/force-public,dblock/force,izakp/force,oxaudo/force,mzikherman/force,damassi/force,oxaudo/force,yuki24/force,cavvia/force-1,joeyAghion/force,yuki24/force,artsy/force,anandaroop/force,cavvia/force-1,dblock/force,artsy/force,eessex/force,anandaroop/force,izakp/force,xtina-starr/force,mzikherman/force,artsy/force,yuki24/force,mzikherman/force,eessex/force,artsy/force-public,joeyAghion/force,yuki24/force,erikdstock/force,dblock/force,kanaabe/force,cavvia/force-1,oxaudo/force,kanaabe/force,oxaudo/force,damassi/force,izakp/force,joeyAghion/force,anandaroop/force,joeyAghion/force
c4e34812eac8ce02dd76ea4252b9a590fa57ad0a
components/block_v2/view.coffee
components/block_v2/view.coffee
Backbone = require 'backbone' Block = require '../../models/block.coffee' ConnectView = require '../connect/client/connect_view.coffee' analytics = require '../../lib/analytics.coffee' mediator = require '../../lib/mediator.coffee' BlockCollectionConnectIntegrationView = require '../connect_v2/integration/block_collection/view.coffee' module.exports = class BlockView extends Backbone.View events: 'click .js-source' : 'openSource' 'click .js-connect' : 'openConnect' initialize: ({ @block }) -> # nothing openSource: (e) -> analytics.track.click "Block source opened" url = @block.kind.source_url or @block.kind.file_url e.preventDefault() e.stopImmediatePropagation() analytics.trackOutboundLink url window.open url,'_blank' false openConnect: (e) -> e.preventDefault() e.stopPropagation() @$el.addClass 'Block--is_connecting' # temp: get a real block block = new Block id: @block.id block.fetch success: => view = new BlockCollectionConnectIntegrationView model: block view.once 'remove', => @$el.removeClass 'Block--is_connecting' $target .addClass 'is-active' .html view.render().$el
Backbone = require 'backbone' Block = require '../../models/block.coffee' ConnectView = require '../connect/client/connect_view.coffee' analytics = require '../../lib/analytics.coffee' mediator = require '../../lib/mediator.coffee' BlockCollectionConnectIntegrationView = require '../connect_v2/integration/block_collection/view.coffee' module.exports = class BlockView extends Backbone.View events: 'click .js-source' : 'openSource' 'click .js-connect' : 'openConnect' initialize: ({ @block }) -> # nothing openSource: (e) -> analytics.track.click "Block source opened" url = @block.kind.source_url or @block.kind.file_url e.preventDefault() e.stopImmediatePropagation() analytics.trackOutboundLink url window.open url,'_blank' false openConnect: (e) -> e.preventDefault() e.stopPropagation() $target = @$('.Block__inner__connect') # temp: get a real block block = new Block id: @block.id block.fetch success: => @$el.addClass 'Block--is_connecting' view = new BlockCollectionConnectIntegrationView model: block view.once 'remove', => @$el.removeClass 'Block--is_connecting' $target .addClass 'is-active' .html view.render().$el
Fix target and add class when block has fetched
Fix target and add class when block has fetched
CoffeeScript
mit
aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell
3744c68acc0408917ff9c57b96bc7919a1dcb30e
app/assets/javascripts/toc.js.coffee
app/assets/javascripts/toc.js.coffee
jQuery -> updateToc = => $(".toc").find("li").each -> if $(@).find("a")[0].href == window.location.href $(@).addClass("active") else $(@).removeClass("active") $(".part").each -> if ($(@).attr("id") || "") == window.location.hash.substring(1) $(@).show() else $(@).hide() $(".toc").on "click", "a", (event) -> event.preventDefault() history.pushState(null, null, @href) updateToc() updateToc()
jQuery -> updateToc = => $(".toc").find("li").each -> if $(@).find("a")[0].href == window.location.href $(@).addClass("active") else $(@).removeClass("active") $(".part").each -> if ($(@).attr("id") || "") == window.location.hash.substring(1) $(@).show() else $(@).hide() $(".toc").on "click", "a", (event) -> event.preventDefault() history.pushState(null, null, @href) updateToc() updateToc() if window.location.hash == "" and $(".part").first().attr("id") $(".part").first().show()
Use a default text title
Use a default text title
CoffeeScript
mit
twin/synergy,twin/synergy
a2ef3626dff9767d5693dbd0de07adac66835a2d
src/scripts/helpers/backbone/views/attached/tooltip/tooltip.coffee
src/scripts/helpers/backbone/views/attached/tooltip/tooltip.coffee
define (require) -> BaseView = require('cs!helpers/backbone/views/base') template = require('hbs!helpers/backbone/views/attached/tooltip/tooltip-template') require('less!helpers/backbone/views/attached/tooltip/tooltip') return class Tooltip extends BaseView containerTemplate: template type: 'tooltip' trigger: 'hover' placement: 'top' _renderDom: (data) -> @$el?.html @containerTemplate title: @title placement: @placement content: @template?(data) or @template initialize: (options = {}) -> super() @owner = options.owner events = @owner.events or {} events[@trigger] = () => @toggle() @owner.delegateEvents(events) toggle: () -> @reposition() @$el.children('.popover').toggle() reposition: () -> $owner = @$el.parent() $container = @$el.children(".#{@type}") switch @placement when 'top' console.log 'top' when 'right' console.log 'right' when 'bottom' $container.css 'top': $owner.offset().top + $owner.outerHeight() 'left': 'auto' 'right': $(document).outerWidth(true) - ($owner.offset().left + $owner.outerWidth()) when 'left' console.log 'left'
define (require) -> BaseView = require('cs!helpers/backbone/views/base') template = require('hbs!helpers/backbone/views/attached/tooltip/tooltip-template') require('less!helpers/backbone/views/attached/tooltip/tooltip') return class Tooltip extends BaseView containerTemplate: template type: 'tooltip' trigger: 'hover' placement: 'top' _renderDom: (data) -> @$el?.html @containerTemplate title: @title placement: @placement content: @template?(data) or @template initialize: (options = {}) -> super() @$owner = $(options.owner) onShow: () -> events = @parent.events or {} events[@trigger] = () => @toggle() @parent.delegateEvents(events) toggle: () -> @reposition() @$el.children('.popover').toggle() reposition: () -> $container = @$el.children(".#{@type}") switch @placement when 'top' console.log 'top' when 'right' console.log 'right' when 'bottom' $container.css 'top': @$owner.offset().top + @$owner.outerHeight() 'left': 'auto' 'right': $(document).outerWidth(true) - (@$owner.offset().left + @$owner.outerWidth()) when 'left' console.log 'left' onBeforeClose: () -> @parent.delegateEvents(@parent.events)
Add trigger event to parent view on show
Add trigger event to parent view on show
CoffeeScript
agpl-3.0
Connexions/webview,dak/webview,katalysteducation/webview,carolinelane10/webview,dak/webview,Connexions/webview,katalysteducation/webview,Connexions/webview,katalysteducation/webview,katalysteducation/webview,Connexions/webview,dak/webview
b999394ff5d53fb6481a821cd826bb9234a0fa52
src/test/mock.coffee
src/test/mock.coffee
define (require) -> $ = require('jquery') require('mockjax') # GET $.mockjax (settings) -> # settings.url == '/contents/<uuid>' service = settings.url.match(/\/contents\/(.*)$/) if service return {proxy: 'data/' + service[1] + '.json'} $.mockjax (settings) -> # settings.url == '/search?q=physics' service = settings.url.match(/\/search\?q=physics$/) if service return {proxy: 'data/search.json'}
define (require) -> $ = require('jquery') require('mockjax') $.mockjaxSettings.responseTime = 500 # Set the mock latency for all requests # GET $.mockjax (settings) -> # settings.url == '/contents/<uuid>' service = settings.url.match(/\/contents\/(.*)$/) if service return {proxy: 'data/' + service[1] + '.json'} $.mockjax (settings) -> # settings.url == '/search?q=physics' service = settings.url.match(/\/search\?q=physics$/) if service return {proxy: 'data/search.json'}
Add response time global setting option to file
Add response time global setting option to file
CoffeeScript
agpl-3.0
dak/webview,Connexions/webview,katalysteducation/webview,Connexions/webview,Connexions/webview,dak/webview,katalysteducation/webview,katalysteducation/webview,carolinelane10/webview,Connexions/webview,katalysteducation/webview,dak/webview
9033db80d0db27e1d08e4f345a41382709fe9852
tests/smtp-testing/index.coffee
tests/smtp-testing/index.coffee
smtp = require 'simplesmtp' module.exports = SMTPTesting = {} SMTPTesting.mailStore = [] SMTPTesting.lastConnection = {} queueID = 0 # to be overidden SMTPTesting.onSecondMessage = (env, callback) -> callback null SMTPTesting.init = (port, done) -> smtpServer = smtp.createServer debug: false disableDNSValidation: true authMethods: ['LOGIN'] requireAuthentication: true smtpServer.on 'startData', (env) -> env.body = '' smtpServer.on 'data', (env, chunk) -> env.body += chunk smtpServer.on 'authorizeUser', (connection, username, password, callback) -> SMTPTesting.lastConnection = {username, password} callback null, true smtpServer.on 'dataReady', (envelope, callback) -> SMTPTesting.mailStore.push envelope if queueID is 0 # just say ok callback null, "ABC" + queueID++ else SMTPTesting.onSecondMessage envelope, -> callback null, "ABC" + queueID++ smtpServer.listen parseInt(port), done unless module.parent port = process.argv[1] or 587 SMTPTesting.init port, -> console.log arguments
smtp = require 'simplesmtp' module.exports = SMTPTesting = {} SMTPTesting.mailStore = [] SMTPTesting.lastConnection = {} queueID = 0 # to be overidden SMTPTesting.onSecondMessage = (env, callback) -> callback null SMTPTesting.init = (port, done) -> smtpServer = smtp.createServer debug: false disableDNSValidation: true authMethods: ['LOGIN'] requireAuthentication: true smtpServer.on 'startData', (env) -> env.body = '' smtpServer.on 'data', (env, chunk) -> env.body += chunk smtpServer.on 'authorizeUser', (connection, username, password, callback) -> SMTPTesting.lastConnection = {username, password} callback null, true smtpServer.on 'dataReady', (envelope, callback) -> SMTPTesting.mailStore.push envelope if queueID is 0 # just say ok callback null, "ABC" + queueID++ else SMTPTesting.onSecondMessage envelope, -> callback null, "ABC" + queueID++ smtpServer.listen parseInt(port), done unless module.parent port = process.argv[2] or 587 SMTPTesting.init port, -> console.log arguments
Fix usage of SMTPTesting through CLI
Fix usage of SMTPTesting through CLI
CoffeeScript
mit
cozy-labs/emails,robinmoussu/cozy-emails,poupotte/cozy-emails,poupotte/cozy-emails,cozy/cozy-emails,lemelon/cozy-emails,robinmoussu/cozy-emails,clochix/cozy-emails,cozy/cozy-emails,lemelon/cozy-emails,frankrousseau/cozy-emails,cozy-labs/emails,aenario/cozy-emails,clochix/cozy-emails,aenario/cozy-emails,nono/cozy-emails,frankrousseau/cozy-emails,nono/cozy-emails
aeb5f9d134ac4a591e0ddb4a7b9221c05344bbd7
api/resources/schedule.coffee
api/resources/schedule.coffee
http = require '../../lib/http' schedule = require '../../data/schedule' exports.register = (server, baseRoute) -> http.get server, "#{baseRoute}/schedule", get get = -> # TODO: get from Google API profile call googleId = 'foo' schedule.fetch(googleId) .then (schedule) -> userDisplayName: 'Joe User' routes: if schedule is null then [] else for route in schedule.routes id: route.id # TODO: get actual route description description: '(route description)' am: direction: id: route.am.direction # TODO: get actual direction description description: '(direction description)' stops: for stop in route.am.stops id: stop # TODO: get actual stop description description: '(stop description)' pm: direction: id: route.pm.direction # TODO: get actual direction description name: '(direction description)' stops: for stop in route.pm.stops id: stop # TODO: get actual stop description description: '(stop description)'
http = require '../../lib/http' schedule = require '../../data/schedule' exports.register = (server, baseRoute) -> http.get server, "#{baseRoute}/schedule", fetch fetch = -> # TODO: get from Google API profile call googleId = 'foo' schedule.fetch(googleId) .then (schedule) -> userDisplayName: 'Joe User' routes: if schedule is null then [] else for route in schedule.routes id: route.id # TODO: get actual route description description: '(route description)' am: direction: id: route.am.direction # TODO: get actual direction description description: '(direction description)' stops: for stop in route.am.stops id: stop # TODO: get actual stop description description: '(stop description)' pm: direction: id: route.pm.direction # TODO: get actual direction description name: '(direction description)' stops: for stop in route.pm.stops id: stop # TODO: get actual stop description description: '(stop description)'
Rename 'get' function to 'fetch' for consistency
Rename 'get' function to 'fetch' for consistency
CoffeeScript
mit
RadBus/api
b295e3f739e09d1bed589938fd283e4f3048b833
lib/stack-ide-atom.coffee
lib/stack-ide-atom.coffee
AtomStackIdeView = require './stack-ide-atom-view' {CompositeDisposable} = require 'atom' haskell = require('./haskell/generated/haskell') p = haskell.getPackage() console.log p module.exports = AtomStackIde = atomStackIdeView: null modalPanel: null subscriptions: null activate: (state) -> @atomStackIdeView = new AtomStackIdeView(state.atomStackIdeViewState) @modalPanel = atom.workspace.addModalPanel(item: @atomStackIdeView.getElement(), visible: false) # Events subscribed to in atom's system can be easily cleaned up with a CompositeDisposable @subscriptions = new CompositeDisposable # Register command that toggles this view @subscriptions.add atom.commands.add 'atom-text-editor', 'stack-ide-atom:source-errors': (event) -> editor = @getModel() console.log editor.getText() deactivate: -> @modalPanel.destroy() @subscriptions.dispose() @atomStackIdeView.destroy() serialize: -> atomStackIdeViewState: @atomStackIdeView.serialize() toggle: -> console.log 'AtomStackIde was toggled!' if @modalPanel.isVisible() @modalPanel.hide() else @modalPanel.show()
AtomStackIdeView = require './stack-ide-atom-view' {CompositeDisposable} = require 'atom' haskell = require('./haskell/generated/haskell') module.exports = haskell.getPackage() ### module.exports = AtomStackIde = atomStackIdeView: null modalPanel: null subscriptions: null activate: (state) -> @atomStackIdeView = new AtomStackIdeView(state.atomStackIdeViewState) @modalPanel = atom.workspace.addModalPanel(item: @atomStackIdeView.getElement(), visible: false) # Events subscribed to in atom's system can be easily cleaned up with a CompositeDisposable @subscriptions = new CompositeDisposable # Register command that toggles this view @subscriptions.add atom.commands.add 'atom-text-editor', 'stack-ide-atom:source-errors': (event) -> editor = @getModel() console.log editor.getText() deactivate: -> @modalPanel.destroy() @subscriptions.dispose() @atomStackIdeView.destroy() serialize: -> atomStackIdeViewState: @atomStackIdeView.serialize() toggle: -> console.log 'AtomStackIde was toggled!' if @modalPanel.isVisible() @modalPanel.hide() else @modalPanel.show() ###
Use haskell package as actual package
Use haskell package as actual package
CoffeeScript
mit
CRogers/stack-ide-atom,CRogers/stack-ide-atom
a5d7a9a6dc2cb2add865b5c47c01be280d08d302
menus/list-edit.cson
menus/list-edit.cson
# See https://atom.io/docs/latest/hacking-atom-package-word-count#menus for more details # TODO: Do we really want these in the context menu? Might be too much clutter. 'context-menu': 'atom-text-editor': [ { 'label': 'Select List Element' 'command': 'list-edit:select' } { 'label': 'Cut List Element' 'command': 'list-edit:cut' } { 'label': 'Copy List Element' 'command': 'list-edit:copy' } { 'label': 'Paste List Element' 'command': 'list-edit:paste' } ] 'menu': [ { 'label': 'Selection' 'submenu': [ { 'label': 'Select List Element' 'command': 'list-edit:select' } ] } { 'label': 'Packages' 'submenu': [ 'label': 'List Edit' 'submenu': [ { 'label': 'Select List Element' 'command': 'list-edit:select' } { 'label': 'Cut List Element' 'command': 'list-edit:cut' } { 'label': 'Copy List Element' 'command': 'list-edit:copy' } { 'label': 'Paste List Element' 'command': 'list-edit:paste' } ] ] } ]
# See https://atom.io/docs/latest/hacking-atom-package-word-count#menus for more details # TODO: Do we really want these in the context menu? Might be too much clutter. 'context-menu': 'atom-text-editor': [ label: 'List edit' submenu: [ { 'label': 'Select' 'command': 'list-edit:select' } { 'label': 'Cut' 'command': 'list-edit:cut' } { 'label': 'Copy' 'command': 'list-edit:copy' } { 'label': 'Paste' 'command': 'list-edit:paste' } ] ] 'menu': [ { 'label': 'Selection' 'submenu': [ { 'label': 'Select List Element' 'command': 'list-edit:select' } ] } { 'label': 'Packages' 'submenu': [ 'label': 'List Edit' 'submenu': [ { 'label': 'List Select' 'command': 'list-edit:select' } { 'label': 'List Cut' 'command': 'list-edit:cut' } { 'label': 'List Copy' 'command': 'list-edit:copy' } { 'label': 'List Paste' 'command': 'list-edit:paste' } ] ] } ]
Add submenu to context menu + Rename menu items
Add submenu to context menu + Rename menu items
CoffeeScript
mit
Oblosys/atom-list-edit
7d6f44bcb5423f1b47e14fc7063824a204907610
client/app/books/model.coffee
client/app/books/model.coffee
App = require '../app' attr = DS.attr App.Book = DS.Model.extend isbn: attr 'string' title: attr 'string' author: attr 'string' prices: attr 'raw' amazon: attr 'raw' currentPrice: (-> ps = @get('prices') ps[ps.length - 1]?.value or 0 ).property('prices') # second to last price penultimatePrice: (-> ps = @get('prices') ps[ps.length - 2]?.value or 0 ).property('prices') trend: (-> now = @get('currentPrice') earlier = @get('penultimatePrice') if now > earlier then 'up' else if now == earlier then 'unchanged' else 'down' ).property('currentPrice') trend2glyph: (-> trend = @get('trend') if trend is 'up' then "glyphicon-circle-arrow-up" else if trend is 'down' then "glyphicon-circle-arrow-down" else "glyphicon-circle-arrow-right" ).property('trend') module.exports = App.Book
App = require '../app' attr = DS.attr App.Book = DS.Model.extend isbn: attr 'string' title: attr 'string' author: attr 'string' prices: attr 'raw' amazon: attr 'raw' currentPrice: (-> ps = @get('prices') ps?[ps.length - 1]?.value or 0 ).property('prices') # second to last price penultimatePrice: (-> ps = @get('prices') ps?[ps.length - 2]?.value or 0 ).property('prices') trend: (-> now = @get('currentPrice') earlier = @get('penultimatePrice') if now > earlier then 'up' else if now == earlier then 'unchanged' else 'down' ).property('currentPrice') trend2glyph: (-> trend = @get('trend') if trend is 'up' then "glyphicon-circle-arrow-up" else if trend is 'down' then "glyphicon-circle-arrow-down" else "glyphicon-circle-arrow-right" ).property('trend') module.exports = App.Book
Fix Computed Prices When Price is Unknown
Fix Computed Prices When Price is Unknown
CoffeeScript
mit
killercup/atric
df376c753262464aecbe518cfe3ed23ae27b8a16
collections/collaborators.coffee
collections/collaborators.coffee
# # Collection for a channel's collaborators # Base = require "./base.coffee" sd = require("sharify").data User = require "../models/user.coffee" mediator = require '../lib/mediator.coffee' module.exports = class Collaborators extends Base model: User url: -> "#{sd.API_URL}/channels/#{@channel_slug}/collaborators" parse: (data) -> data.users initialize: (options) -> @channel_slug = options.channel_slug super _remove: (id) -> mediator.trigger 'collaborator:removed' @remove @get(id) $.ajax type: 'DELETE' url: @url() data: { ids: [id] } success: (response) => @reset response.users _add: (collaborator)-> mediator.trigger 'collaborator:added' @add collaborator $.ajax type: 'POST' url: @url() data: { ids: [collaborator.id] } success: (response) => @reset response.users
# # Collection for a channel's collaborators # Base = require "./base.coffee" sd = require("sharify").data User = require "../models/user.coffee" mediator = require '../lib/mediator.coffee' module.exports = class Collaborators extends Base model: User url: -> "#{sd.API_URL}/channels/#{@channel_slug}/collaborators" inviteUrl: -> "#{sd.API_URL}/channels/#{@channel_slug}/collaborators/invite" parse: (data) -> data.users initialize: (options) -> @channel_slug = options.channel_slug super _remove: (id) -> mediator.trigger 'collaborator:removed' @remove @get(id) $.ajax type: 'DELETE' url: @url() data: { ids: [id] } success: (response) => @reset response.users _add: (collaborator) -> mediator.trigger 'collaborator:added' @add collaborator $.ajax type: 'POST' url: @url() data: { ids: [collaborator.id] } success: (response) => @reset response.users _invite: (email) -> user = new User username: email mediator.trigger 'collaborator:added' @add user $.ajax type: 'POST' url: @inviteUrl() data: email: email
Support adding collaborator via email
Support adding collaborator via email
CoffeeScript
mit
aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell
e8bfb7ca0951f5dd5ab585162246f32e34276bcd
src/space-pen-extensions.coffee
src/space-pen-extensions.coffee
_ = require 'underscore-plus' spacePen = require 'space-pen' ConfigObserver = require './config-observer' {Subscriber} = require 'emissary' _.extend spacePen.View.prototype, ConfigObserver Subscriber.includeInto(spacePen.View) jQuery = spacePen.jQuery originalCleanData = jQuery.cleanData jQuery.cleanData = (elements) -> for element in elements if view = jQuery(element).view() view.unobserveConfig() view.unsubscribe() originalCleanData(elements) tooltipDefaults = delay: show: 500 hide: 100 container: 'body' html: true getKeystroke = (bindings) -> if bindings and bindings.length "<span class=\"keystroke\">#{bindings[0].keystroke}</span>" else '' jQuery.fn.setTooltip = (title, {command, commandElement}={}) -> atom.requireWithGlobals('bootstrap/js/tooltip', {jQuery : jQuery}) bindings = if commandElement atom.keymap.keyBindingsForCommandMatchingElement(command, commandElement) else atom.keymap.keyBindingsForCommand(command) this.tooltip(jQuery.extend(tooltipDefaults, {title: "#{title} #{getKeystroke(bindings)}"})) module.exports = spacePen
_ = require 'underscore-plus' spacePen = require 'space-pen' ConfigObserver = require './config-observer' {Subscriber} = require 'emissary' _.extend spacePen.View.prototype, ConfigObserver Subscriber.includeInto(spacePen.View) jQuery = spacePen.jQuery originalCleanData = jQuery.cleanData jQuery.cleanData = (elements) -> for element in elements if view = jQuery(element).view() view.unobserveConfig() view.unsubscribe() originalCleanData(elements) tooltipDefaults = delay: show: 500 hide: 100 container: 'body' html: true getKeystroke = (bindings) -> if bindings?.length "<span class=\"keystroke\">#{bindings[0].keystroke}</span>" else '' jQuery.fn.setTooltip = (title, {command, commandElement}={}) -> atom.requireWithGlobals('bootstrap/js/tooltip', {jQuery}) bindings = if commandElement atom.keymap.keyBindingsForCommandMatchingElement(command, commandElement) else atom.keymap.keyBindingsForCommand(command) this.tooltip(jQuery.extend(tooltipDefaults, {title: "#{title} #{getKeystroke(bindings)}"})) module.exports = spacePen
Fix up things for kevin
Fix up things for kevin
CoffeeScript
mit
Jdesk/atom,niklabh/atom,pkdevbox/atom,bradgearon/atom,daxlab/atom,lovesnow/atom,me6iaton/atom,originye/atom,kc8wxm/atom,Sangaroonaom/atom,dkfiresky/atom,GHackAnonymous/atom,AlbertoBarrago/atom,codex8/atom,Hasimir/atom,xream/atom,NunoEdgarGub1/atom,kdheepak89/atom,charleswhchan/atom,amine7536/atom,hpham04/atom,liuderchi/atom,helber/atom,jeremyramin/atom,AdrianVovk/substance-ide,bryonwinger/atom,KENJU/atom,davideg/atom,devmario/atom,G-Baby/atom,scv119/atom,seedtigo/atom,fang-yufeng/atom,chfritz/atom,jacekkopecky/atom,vjeux/atom,MjAbuz/atom,hharchani/atom,einarmagnus/atom,tony612/atom,kc8wxm/atom,abe33/atom,ilovezy/atom,h0dgep0dge/atom,lisonma/atom,qskycolor/atom,t9md/atom,matthewclendening/atom,tjkr/atom,fscherwi/atom,n-riesco/atom,Neron-X5/atom,cyzn/atom,yamhon/atom,qiujuer/atom,medovob/atom,GHackAnonymous/atom,ykeisuke/atom,Dennis1978/atom,hharchani/atom,chengky/atom,sotayamashita/atom,CraZySacX/atom,sekcheong/atom,constanzaurzua/atom,xream/atom,dkfiresky/atom,Ju2ender/atom,nucked/atom,Austen-G/BlockBuilder,jjz/atom,burodepeper/atom,Mokolea/atom,sebmck/atom,anuwat121/atom,kaicataldo/atom,lisonma/atom,sebmck/atom,mostafaeweda/atom,Austen-G/BlockBuilder,codex8/atom,ppamorim/atom,Klozz/atom,RobinTec/atom,sekcheong/atom,efatsi/atom,jeremyramin/atom,woss/atom,harshdattani/atom,FoldingText/atom,MjAbuz/atom,charleswhchan/atom,sillvan/atom,mnquintana/atom,panuchart/atom,dsandstrom/atom,vcarrera/atom,bj7/atom,Rodjana/atom,rookie125/atom,RobinTec/atom,FoldingText/atom,FoldingText/atom,mrodalgaard/atom,ilovezy/atom,alexandergmann/atom,h0dgep0dge/atom,liuxiong332/atom,vjeux/atom,einarmagnus/atom,Shekharrajak/atom,darwin/atom,johnhaley81/atom,Arcanemagus/atom,pombredanne/atom,sillvan/atom,ppamorim/atom,me6iaton/atom,n-riesco/atom,rjattrill/atom,gisenberg/atom,ali/atom,cyzn/atom,sotayamashita/atom,charleswhchan/atom,tony612/atom,sillvan/atom,omarhuanca/atom,bcoe/atom,MjAbuz/atom,sotayamashita/atom,Jdesk/atom,nrodriguez13/atom,hakatashi/atom,stinsonga/atom,devoncarew/atom,burodepeper/atom,rsvip/aTom,G-Baby/atom,Austen-G/BlockBuilder,oggy/atom,githubteacher/atom,anuwat121/atom,sillvan/atom,tanin47/atom,kandros/atom,brumm/atom,splodingsocks/atom,rjattrill/atom,champagnez/atom,brettle/atom,john-kelly/atom,Locke23rus/atom,SlimeQ/atom,yomybaby/atom,DiogoXRP/atom,yangchenghu/atom,tony612/atom,Austen-G/BlockBuilder,tisu2tisu/atom,rlugojr/atom,fedorov/atom,constanzaurzua/atom,execjosh/atom,Jandersoft/atom,Jdesk/atom,boomwaiza/atom,AlisaKiatkongkumthon/atom,crazyquark/atom,Shekharrajak/atom,matthewclendening/atom,boomwaiza/atom,sekcheong/atom,FIT-CSE2410-A-Bombs/atom,basarat/atom,decaffeinate-examples/atom,amine7536/atom,PKRoma/atom,johnrizzo1/atom,synaptek/atom,kjav/atom,yalexx/atom,bcoe/atom,YunchengLiao/atom,anuwat121/atom,daxlab/atom,isghe/atom,qiujuer/atom,BogusCurry/atom,ali/atom,n-riesco/atom,Ju2ender/atom,florianb/atom,hharchani/atom,mnquintana/atom,elkingtonmcb/atom,g2p/atom,basarat/atom,panuchart/atom,devoncarew/atom,scippio/atom,deoxilix/atom,bolinfest/atom,fredericksilva/atom,einarmagnus/atom,lisonma/atom,constanzaurzua/atom,vhutheesing/atom,gzzhanghao/atom,qskycolor/atom,woss/atom,mertkahyaoglu/atom,tjkr/atom,hakatashi/atom,pombredanne/atom,devoncarew/atom,liuderchi/atom,prembasumatary/atom,kc8wxm/atom,bryonwinger/atom,sxgao3001/atom,avdg/atom,g2p/atom,john-kelly/atom,bradgearon/atom,burodepeper/atom,RobinTec/atom,dkfiresky/atom,ali/atom,Rodjana/atom,alexandergmann/atom,panuchart/atom,hagb4rd/atom,mdumrauf/atom,beni55/atom,Klozz/atom,ykeisuke/atom,githubteacher/atom,omarhuanca/atom,qskycolor/atom,abcP9110/atom,ironbox360/atom,abcP9110/atom,n-riesco/atom,decaffeinate-examples/atom,avdg/atom,ykeisuke/atom,NunoEdgarGub1/atom,bsmr-x-script/atom,dijs/atom,ralphtheninja/atom,florianb/atom,brumm/atom,Abdillah/atom,codex8/atom,yomybaby/atom,Rychard/atom,Sangaroonaom/atom,boomwaiza/atom,me-benni/atom,ObviouslyGreen/atom,amine7536/atom,AlisaKiatkongkumthon/atom,mertkahyaoglu/atom,YunchengLiao/atom,rsvip/aTom,dkfiresky/atom,svanharmelen/atom,harshdattani/atom,dsandstrom/atom,vinodpanicker/atom,tmunro/atom,deepfox/atom,devmario/atom,Hasimir/atom,kjav/atom,h0dgep0dge/atom,deoxilix/atom,BogusCurry/atom,Jonekee/atom,hharchani/atom,alfredxing/atom,rmartin/atom,erikhakansson/atom,russlescai/atom,ivoadf/atom,florianb/atom,basarat/atom,isghe/atom,tmunro/atom,Rychard/atom,hharchani/atom,DiogoXRP/atom,mostafaeweda/atom,seedtigo/atom,me-benni/atom,paulcbetts/atom,t9md/atom,rsvip/aTom,mertkahyaoglu/atom,palita01/atom,Dennis1978/atom,Hasimir/atom,Austen-G/BlockBuilder,kevinrenaers/atom,stuartquin/atom,folpindo/atom,fedorov/atom,jjz/atom,palita01/atom,ReddTea/atom,rookie125/atom,execjosh/atom,PKRoma/atom,targeter21/atom,vjeux/atom,basarat/atom,h0dgep0dge/atom,liuxiong332/atom,CraZySacX/atom,Jdesk/atom,rjattrill/atom,dijs/atom,transcranial/atom,liuxiong332/atom,synaptek/atom,qskycolor/atom,hellendag/atom,johnhaley81/atom,avdg/atom,paulcbetts/atom,Andrey-Pavlov/atom,kevinrenaers/atom,toqz/atom,ppamorim/atom,john-kelly/atom,sebmck/atom,svanharmelen/atom,deepfox/atom,andrewleverette/atom,yalexx/atom,beni55/atom,russlescai/atom,ardeshirj/atom,fredericksilva/atom,florianb/atom,FIT-CSE2410-A-Bombs/atom,toqz/atom,AlexxNica/atom,atom/atom,nucked/atom,johnrizzo1/atom,fredericksilva/atom,kc8wxm/atom,vjeux/atom,devmario/atom,acontreras89/atom,jtrose2/atom,deepfox/atom,splodingsocks/atom,hakatashi/atom,constanzaurzua/atom,lpommers/atom,andrewleverette/atom,phord/atom,AlbertoBarrago/atom,Galactix/atom,crazyquark/atom,niklabh/atom,lisonma/atom,lovesnow/atom,yamhon/atom,rmartin/atom,deepfox/atom,Andrey-Pavlov/atom,ObviouslyGreen/atom,kittens/atom,rmartin/atom,basarat/atom,kandros/atom,oggy/atom,kandros/atom,rxkit/atom,synaptek/atom,GHackAnonymous/atom,sxgao3001/atom,t9md/atom,SlimeQ/atom,ironbox360/atom,pkdevbox/atom,charleswhchan/atom,hellendag/atom,stinsonga/atom,toqz/atom,bolinfest/atom,mertkahyaoglu/atom,jtrose2/atom,abcP9110/atom,ezeoleaf/atom,hagb4rd/atom,jlord/atom,rlugojr/atom,FIT-CSE2410-A-Bombs/atom,Andrey-Pavlov/atom,stinsonga/atom,MjAbuz/atom,ezeoleaf/atom,execjosh/atom,nrodriguez13/atom,chfritz/atom,rmartin/atom,scv119/atom,tisu2tisu/atom,kjav/atom,acontreras89/atom,xream/atom,ashneo76/atom,mrodalgaard/atom,me-benni/atom,PKRoma/atom,abe33/atom,0x73/atom,lovesnow/atom,Neron-X5/atom,sekcheong/atom,bolinfest/atom,johnrizzo1/atom,abcP9110/atom,niklabh/atom,0x73/atom,alfredxing/atom,beni55/atom,Hasimir/atom,stinsonga/atom,deepfox/atom,prembasumatary/atom,nvoron23/atom,scippio/atom,crazyquark/atom,RuiDGoncalves/atom,devoncarew/atom,Galactix/atom,alfredxing/atom,me6iaton/atom,kdheepak89/atom,atom/atom,russlescai/atom,fredericksilva/atom,helber/atom,AlexxNica/atom,rxkit/atom,batjko/atom,vcarrera/atom,paulcbetts/atom,gisenberg/atom,targeter21/atom,lpommers/atom,Mokolea/atom,0x73/atom,ReddTea/atom,ashneo76/atom,qiujuer/atom,qiujuer/atom,G-Baby/atom,lovesnow/atom,scv119/atom,Arcanemagus/atom,isghe/atom,chengky/atom,ivoadf/atom,abe33/atom,efatsi/atom,vcarrera/atom,kdheepak89/atom,batjko/atom,chengky/atom,Huaraz2/atom,FoldingText/atom,Shekharrajak/atom,Ju2ender/atom,harshdattani/atom,g2p/atom,jeremyramin/atom,gontadu/atom,Dennis1978/atom,hellendag/atom,fscherwi/atom,medovob/atom,kevinrenaers/atom,vinodpanicker/atom,ironbox360/atom,dannyflax/atom,prembasumatary/atom,Jandersolutions/atom,omarhuanca/atom,darwin/atom,ReddTea/atom,wiggzz/atom,Jandersolutions/atom,FoldingText/atom,NunoEdgarGub1/atom,kaicataldo/atom,SlimeQ/atom,GHackAnonymous/atom,acontreras89/atom,sebmck/atom,jtrose2/atom,pengshp/atom,yalexx/atom,Ingramz/atom,ivoadf/atom,jordanbtucker/atom,toqz/atom,mnquintana/atom,ilovezy/atom,scippio/atom,dsandstrom/atom,jordanbtucker/atom,SlimeQ/atom,kittens/atom,bryonwinger/atom,svanharmelen/atom,Rychard/atom,russlescai/atom,mostafaeweda/atom,Galactix/atom,dsandstrom/atom,transcranial/atom,codex8/atom,RuiDGoncalves/atom,jlord/atom,brumm/atom,gabrielPeart/atom,targeter21/atom,stuartquin/atom,acontreras89/atom,tanin47/atom,davideg/atom,001szymon/atom,Jandersoft/atom,Galactix/atom,scv119/atom,tisu2tisu/atom,kaicataldo/atom,champagnez/atom,yangchenghu/atom,ali/atom,rjattrill/atom,jordanbtucker/atom,basarat/atom,einarmagnus/atom,YunchengLiao/atom,gisenberg/atom,NunoEdgarGub1/atom,champagnez/atom,001szymon/atom,Neron-X5/atom,mnquintana/atom,matthewclendening/atom,synaptek/atom,Locke23rus/atom,wiggzz/atom,woss/atom,Ju2ender/atom,kittens/atom,n-riesco/atom,yamhon/atom,ali/atom,ralphtheninja/atom,tanin47/atom,constanzaurzua/atom,jacekkopecky/atom,ObviouslyGreen/atom,jjz/atom,kdheepak89/atom,RobinTec/atom,brettle/atom,bcoe/atom,vhutheesing/atom,toqz/atom,paulcbetts/atom,Ingramz/atom,cyzn/atom,phord/atom,dannyflax/atom,ashneo76/atom,helber/atom,tony612/atom,targeter21/atom,nvoron23/atom,RuiDGoncalves/atom,Jandersolutions/atom,kjav/atom,oggy/atom,Abdillah/atom,gabrielPeart/atom,jacekkopecky/atom,andrewleverette/atom,Arcanemagus/atom,MjAbuz/atom,ilovezy/atom,vcarrera/atom,hpham04/atom,davideg/atom,johnhaley81/atom,Andrey-Pavlov/atom,githubteacher/atom,lpommers/atom,kc8wxm/atom,pengshp/atom,DiogoXRP/atom,daxlab/atom,elkingtonmcb/atom,ReddTea/atom,sxgao3001/atom,Rodjana/atom,bcoe/atom,mertkahyaoglu/atom,BogusCurry/atom,isghe/atom,jjz/atom,Jonekee/atom,Ingramz/atom,originye/atom,hpham04/atom,mdumrauf/atom,Shekharrajak/atom,nvoron23/atom,bsmr-x-script/atom,devmario/atom,qskycolor/atom,davideg/atom,Huaraz2/atom,fang-yufeng/atom,AdrianVovk/substance-ide,originye/atom,chengky/atom,omarhuanca/atom,001szymon/atom,yalexx/atom,jacekkopecky/atom,fang-yufeng/atom,FoldingText/atom,hagb4rd/atom,brettle/atom,rxkit/atom,stuartquin/atom,codex8/atom,oggy/atom,pkdevbox/atom,ezeoleaf/atom,AlbertoBarrago/atom,kittens/atom,Abdillah/atom,me6iaton/atom,Neron-X5/atom,sillvan/atom,Jdesk/atom,hpham04/atom,elkingtonmcb/atom,fredericksilva/atom,batjko/atom,yangchenghu/atom,mrodalgaard/atom,ezeoleaf/atom,bencolon/atom,jtrose2/atom,dannyflax/atom,woss/atom,KENJU/atom,nvoron23/atom,einarmagnus/atom,jacekkopecky/atom,Jonekee/atom,atom/atom,liuderchi/atom,liuderchi/atom,chfritz/atom,AlisaKiatkongkumthon/atom,gontadu/atom,ardeshirj/atom,rlugojr/atom,rsvip/aTom,qiujuer/atom,john-kelly/atom,jtrose2/atom,dannyflax/atom,batjko/atom,russlescai/atom,lovesnow/atom,KENJU/atom,Mokolea/atom,Locke23rus/atom,isghe/atom,batjko/atom,gzzhanghao/atom,mdumrauf/atom,fang-yufeng/atom,Jandersolutions/atom,gisenberg/atom,wiggzz/atom,prembasumatary/atom,tjkr/atom,kittens/atom,Shekharrajak/atom,hagb4rd/atom,john-kelly/atom,vjeux/atom,pombredanne/atom,jlord/atom,RobinTec/atom,dsandstrom/atom,matthewclendening/atom,acontreras89/atom,liuxiong332/atom,jlord/atom,devmario/atom,vinodpanicker/atom,mostafaeweda/atom,folpindo/atom,hagb4rd/atom,woss/atom,sebmck/atom,lisonma/atom,vinodpanicker/atom,vinodpanicker/atom,crazyquark/atom,fscherwi/atom,fang-yufeng/atom,efatsi/atom,jacekkopecky/atom,kjav/atom,NunoEdgarGub1/atom,jlord/atom,me6iaton/atom,chengky/atom,gabrielPeart/atom,gontadu/atom,decaffeinate-examples/atom,SlimeQ/atom,sekcheong/atom,charleswhchan/atom,AlexxNica/atom,phord/atom,dijs/atom,omarhuanca/atom,bj7/atom,fedorov/atom,bencolon/atom,ardeshirj/atom,bj7/atom,ReddTea/atom,sxgao3001/atom,devoncarew/atom,Ju2ender/atom,Sangaroonaom/atom,tmunro/atom,0x73/atom,KENJU/atom,sxgao3001/atom,nucked/atom,rookie125/atom,yomybaby/atom,KENJU/atom,Huaraz2/atom,davideg/atom,liuxiong332/atom,transcranial/atom,tony612/atom,dannyflax/atom,YunchengLiao/atom,ppamorim/atom,dannyflax/atom,yalexx/atom,florianb/atom,vhutheesing/atom,ppamorim/atom,palita01/atom,Abdillah/atom,bryonwinger/atom,synaptek/atom,bsmr-x-script/atom,Hasimir/atom,targeter21/atom,oggy/atom,Austen-G/BlockBuilder,erikhakansson/atom,darwin/atom,mostafaeweda/atom,ilovezy/atom,rsvip/aTom,Galactix/atom,kdheepak89/atom,YunchengLiao/atom,vcarrera/atom,hakatashi/atom,fedorov/atom,seedtigo/atom,folpindo/atom,nvoron23/atom,GHackAnonymous/atom,bencolon/atom,Abdillah/atom,pombredanne/atom,ralphtheninja/atom,splodingsocks/atom,yomybaby/atom,crazyquark/atom,deoxilix/atom,gisenberg/atom,Jandersolutions/atom,rmartin/atom,nrodriguez13/atom,CraZySacX/atom,Jandersoft/atom,Neron-X5/atom,erikhakansson/atom,AdrianVovk/substance-ide,mnquintana/atom,amine7536/atom,decaffeinate-examples/atom,prembasumatary/atom,abcP9110/atom,fedorov/atom,dkfiresky/atom,matthewclendening/atom,Jandersoft/atom,splodingsocks/atom,hpham04/atom,pombredanne/atom,gzzhanghao/atom,bcoe/atom,alexandergmann/atom,jjz/atom,pengshp/atom,bradgearon/atom,amine7536/atom,Klozz/atom,medovob/atom,yomybaby/atom,Andrey-Pavlov/atom,Jandersoft/atom
4bfe9bee92caae44dc1bb6a83b6c73051f5fa11f
client/app/scripts/users.coffee
client/app/scripts/users.coffee
{div, span, header, i} = React.DOM {form, input, label} = React.DOM {ul, li} = React.DOM user = React.createClass render: -> li className: 'user', div className: 'user-name', @props.nick usersList = React.createClass render: -> users = @props.users.map (u) -> user(u) ul className: "users-list", users usersHeader = React.createClass handleRoomContentEditable: () -> node = @refs.roomName.getDOMNode() node.textContent = "" node.contentEditable = true node.focus() changeRoom: (ev) -> if ev.keyCode isnt 13 then return node = @refs.roomName.getDOMNode() node.contentEditable = false node.blur() render: -> header className: "users-header", div {}, span {className: "room-name", ref: "roomName", onBlur: @changeRoom, onKeyDown: @changeRoom}, @props.room i className: "fa fa-times", onClick: @handleRoomContentEditable usersContainer = React.createClass render: -> div id: "users-container", usersHeader {room: @props.room} usersList {users: @props.users} module.exports.usersContainer = usersContainer
{div, span, header, i} = React.DOM {form, input, label} = React.DOM {ul, li} = React.DOM user = React.createClass render: -> li className: 'user', div className: 'user-name', @props.nick usersList = React.createClass render: -> users = @props.users.map (u) -> user(u) ul className: "users-list", users usersHeader = React.createClass changeRoom: (ev) -> if ev.keyCode isnt 13 then return node = @refs.roomName.getDOMNode() node.contentEditable = false node.blur() render: -> header className: "users-header", div {}, span {className: "room-name", ref: "roomName", onBlur: @changeRoom, onKeyDown: @changeRoom}, @props.room usersContainer = React.createClass render: -> div id: "users-container", usersHeader {room: @props.room} usersList {users: @props.users} module.exports.usersContainer = usersContainer
Remove change-room x, we are not using it
Remove change-room x, we are not using it
CoffeeScript
mit
waltsu/unichat
04a554f3be00339c2eddb547c26fe5b99cb86629
src/atom/atom/config.cson
src/atom/atom/config.cson
"*": core: autoHideMenuBar: true disabledPackages: [ "vim-mode" ] editor: fontSize: 10 invisibles: {} scrollPastEnd: true showIndentGuide: true "exception-reporting": userId: "d066aaa4-63cd-1f08-a0e5-c8efdcf5268d" "git-plus": {} "markdown-preview": useGitHubStyle: true minimap: {} pigments: markerType: "dot" "toggle-packages": togglePackages: [ "vim-mode" ] "vim-mode": {} welcome: showOnStartup: false
"*": core: autoHideMenuBar: true disabledPackages: [ "vim-mode" ] editor: fontSize: 10 invisibles: {} scrollPastEnd: true showIndentGuide: true "exception-reporting": userId: "d066aaa4-63cd-1f08-a0e5-c8efdcf5268d" "git-plus": {} "markdown-preview": useGitHubStyle: true minimap: {} pigments: markerType: "dot" "toggle-packages": togglePackages: [ "vim-mode" ] "tree-view": hideIgnoredNames: true "vim-mode": {} welcome: showOnStartup: false
Hide ignore names by default
[atom] Hide ignore names by default
CoffeeScript
mit
wingy3181/dotfiles,wingy3181/dotfiles,wingy3181/dotfiles
8e05ed7780ba6f564e809195b29294116ac22723
assets/javascripts/controllers/room_user_state_item_controller.js.coffee
assets/javascripts/controllers/room_user_state_item_controller.js.coffee
App.RoomUserStateItemController = Em.ObjectController.extend needs: ["application"] currentUser: Ember.computed.alias("controllers.application.currentUser") actions: join: -> console.log("hi", arguments) room_item_state = @get("model") console.log room_item_state.get("joined") room_item_state.set("joined", true) console.log room_item_state.get("joined") # successCallback = => # console.log("deleted") # errorCallback = => # console.log("error whatever...") # # user.save().then(successCallback, errorCallback)
App.RoomUserStateItemController = Em.ObjectController.extend needs: ["application"] currentUser: Ember.computed.alias("controllers.application.currentUser") actions: join: -> room_item_state = @get("model") room_item_state.set("joined", true) successCallback = => console.log("saved") errorCallback = => console.log("error whatever...") room_item_state.save().then(successCallback, errorCallback)
Update join state in RoomUserState
Update join state in RoomUserState
CoffeeScript
mit
sashafklein/bloc-mogo,louishawkins/mogo-chat,di-stars/mogo-chat,HashNuke/mogo-chat,sashafklein/bloc-mogo,HashNuke/mogo-chat,sashafklein/bloc-mogo,di-stars/mogo-chat,HashNuke/mogo-chat,louishawkins/mogo-chat,di-stars/mogo-chat,louishawkins/mogo-chat
65110e4de0b8960d185612b4df7854c9ba45d29d
lib/coffee-compile-editor.coffee
lib/coffee-compile-editor.coffee
{TextEditor} = require 'atom' util = require './util' pluginManager = require './plugin-manager' module.exports = class CoffeeCompileEditor extends TextEditor constructor: ({@sourceEditor}) -> super if atom.config.get('coffee-compile.compileOnSave') and not atom.config.get('coffee-compile.compileOnSaveWithoutPreview') @disposables.add @sourceEditor.getBuffer().onDidSave => @renderAndSave() @disposables.add @sourceEditor.getBuffer().onDidReload => @renderAndSave() # set editor grammar to correct language grammar = atom.grammars.selectGrammar pluginManager.getCompiledScopeByEditor(@sourceEditor) @setGrammar grammar if atom.config.get('coffee-compile.compileOnSave') or atom.config.get('coffee-compile.compileOnSaveWithoutPreview') util.compileToFile @sourceEditor renderAndSave: -> @renderCompiled() util.compileToFile @sourceEditor renderCompiled: -> code = util.getSelectedCode @sourceEditor try text = util.compile code, @sourceEditor catch e text = e.stack @setText text getTitle: -> "Compiled #{@sourceEditor?.getTitle() or ''}".trim() getURI: -> "coffeecompile://editor/#{@sourceEditor.id}"
{TextEditor} = require 'atom' util = require './util' pluginManager = require './plugin-manager' module.exports = class CoffeeCompileEditor extends TextEditor constructor: ({@sourceEditor}) -> super if atom.config.get('coffee-compile.compileOnSave') and not atom.config.get('coffee-compile.compileOnSaveWithoutPreview') @disposables.add @sourceEditor.getBuffer().onDidSave => @renderAndSave() @disposables.add @sourceEditor.getBuffer().onDidReload => @renderAndSave() # set editor grammar to correct language grammar = atom.grammars.selectGrammar pluginManager.getCompiledScopeByEditor(@sourceEditor) @setGrammar grammar if atom.config.get('coffee-compile.compileOnSave') or atom.config.get('coffee-compile.compileOnSaveWithoutPreview') util.compileToFile @sourceEditor # HACK: Override TextBuffer saveAs function @buffer.saveAs = -> renderAndSave: -> @renderCompiled() util.compileToFile @sourceEditor renderCompiled: -> code = util.getSelectedCode @sourceEditor try text = util.compile code, @sourceEditor catch e text = e.stack @setText text getTitle: -> "Compiled #{@sourceEditor?.getTitle() or ''}".trim() getURI: -> "coffeecompile://editor/#{@sourceEditor.id}"
Disable `save` on preview pane
Disable `save` on preview pane Fixes #30
CoffeeScript
mit
adrianlee44/atom-coffee-compile
979e86909b95041f4825d6c1a301559d0b89b92d
lib/main.coffee
lib/main.coffee
{CompositeDisposable} = require 'atom' HistoryView = null ChangesView = null HISTORY_URI = 'atom://git-experiment/view-history' CHANGES_URI = 'atom://git-experiment/view-changes' module.exports = GitExperiment = subscriptions: null activate: (state) -> # Events subscribed to in atom's system can be easily cleaned up with a CompositeDisposable @subscriptions = new CompositeDisposable @subscriptions.add atom.workspace.registerOpener (filePath) => switch filePath when HISTORY_URI HistoryView ?= require './history-view' new HistoryView() when CHANGES_URI ChangesView ?= require './changes-view' new ChangesView() deactivate: -> @subscriptions.dispose() serialize: -> # gitExperimentViewState: @gitExperimentView.serialize() openHistoryView: -> atom.workspace.open(HISTORY_URI) openChangesView: -> atom.workspace.open(CHANGES_URI) atom.commands.add 'atom-workspace', 'git-experiment:view-history', => GitExperiment.openHistoryView() atom.commands.add 'atom-workspace', 'git-experiment:view-and-commit-changes', => GitExperiment.openChangesView()
{CompositeDisposable} = require 'atom' HistoryView = null ChangesView = null HISTORY_URI = 'atom://git-experiment/view-history' CHANGES_URI = 'atom://git-experiment/view-changes' module.exports = GitExperiment = subscriptions: null activate: (state) -> # Events subscribed to in atom's system can be easily cleaned up with a CompositeDisposable @subscriptions = new CompositeDisposable process.nextTick => @subscriptions.add atom.workspace.registerOpener (filePath) => switch filePath when HISTORY_URI HistoryView ?= require './history-view' new HistoryView() when CHANGES_URI ChangesView ?= require './changes-view' new ChangesView() deactivate: -> @subscriptions?.dispose() serialize: -> # gitExperimentViewState: @gitExperimentView.serialize() openHistoryView: -> atom.workspace.open(HISTORY_URI) openChangesView: -> atom.workspace.open(CHANGES_URI) atom.commands.add 'atom-workspace', 'git-experiment:view-history', => GitExperiment.openHistoryView() atom.commands.add 'atom-workspace', 'git-experiment:view-and-commit-changes', => GitExperiment.openChangesView()
Move opener registration into a nextTick.
Move opener registration into a nextTick. Registering the openers is expensive for some reason
CoffeeScript
mit
atom/github,atom/github,atom/github
f001be24f4ae5eb5fecb2e734001bd9a36bfe32d
app/assets/javascripts/discourse.js.coffee
app/assets/javascripts/discourse.js.coffee
ready = -> # Jitsi Meet integration if $('body').hasClass('c-discourse a-embed') > 0 $('#launch-jitsi').click -> room = 'Fablabs.io-' + Math.random().toString(36).substr(2, 8) domain = 'meet.jit.si' jitsiUrl = "http://"+domain+"/"+room $("#jitsi-url").replaceWith 'Invite other users from within the video call or by sending them this link: <a target="_blank" href="'+jitsiUrl+'">'+jitsiUrl+'</a>' width = $("div").width '#jitsi-row' height = 600 htmlElement = document.getElementById('jitsi-embed') configOverwrite = {} interfaceConfigOverwrite = filmStripOnly: false api = new JitsiMeetExternalAPI(domain, room, width, height, htmlElement, configOverwrite, interfaceConfigOverwrite) return $(document).ready ready
ready = -> # Jitsi Meet integration if $('body').hasClass('c-discourse a-embed') > 0 $('#launch-jitsi').click -> room = 'Fablabs.io-' + Math.random().toString(36).substr(2, 8) domain = 'meet.jit.si' jitsiUrl = "http://"+domain+"/"+room $("#jitsi-url").replaceWith '<span class="label label-success">Success</span> Invite other users from within the video call or by sending them this link: <a target="_blank" href="'+jitsiUrl+'">'+jitsiUrl+'</a>' width = $("div").width '#jitsi-row' height = 600 htmlElement = document.getElementById('jitsi-embed') configOverwrite = {} interfaceConfigOverwrite = filmStripOnly: false api = new JitsiMeetExternalAPI(domain, room, width, height, htmlElement, configOverwrite, interfaceConfigOverwrite) return $(document).ready ready
Add label to jitsi integration success
Add label to jitsi integration success
CoffeeScript
agpl-3.0
fablabbcn/fablabs,fablabbcn/fablabs,fablabbcn/fablabs
69259b56f9836466cedab43185f8973f3526da5b
lib/minimap-find-and-replace.coffee
lib/minimap-find-and-replace.coffee
MinimapFindAndReplaceBinding = require './minimap-find-and-replace-binding' module.exports = binding: null activate: (state) -> findPackage = atom.packages.getLoadedPackage('find-and-replace') minimapPackage = atom.packages.getLoadedPackage('minimap') return @deactivate() unless findPackage? and minimapPackage? @binding = new MinimapFindAndReplaceBinding findPackage, minimapPackage deactivate: -> @binding?.deactivate() @minimapPackage = null @findPackage = null @binding = null
MinimapFindAndReplaceBinding = require './minimap-find-and-replace-binding' module.exports = binding: null activate: (state) -> findPackage = atom.packages.getLoadedPackage('find-and-replace') minimapPackage = atom.packages.getLoadedPackage('minimap') return @deactivate() unless findPackage? and minimapPackage? minimap = require(minimapPackage.path) return @deactivate() unless minimap.versionMatch('2.x') @binding = new MinimapFindAndReplaceBinding findPackage, minimapPackage deactivate: -> @binding?.deactivate() @minimapPackage = null @findPackage = null @binding = null
Fix missing minimap version check in plugin activation
:bug: Fix missing minimap version check in plugin activation
CoffeeScript
mit
atom-minimap/minimap-find-and-replace
1dce7fee34ffd8fc57c6d10d4f4cec189f380983
lib/linter-python-flake8.coffee
lib/linter-python-flake8.coffee
linterPath = atom.packages.getLoadedPackage("linter").path Linter = require "#{linterPath}/lib/linter" class LinterFlake8 extends Linter @syntax: ['source.python'] cmd: 'flake8' executablePath: null linterName: 'flake8' # A regex pattern used to extract information from the executable's output. regex: '(.*?):(?<line>\\d+):(?<col>\\d+): (?<message>((?<error>E11|E9)|(?<warning>W|E|F4|F84|N*|C)|F)\\d+ .*?)\n' constructor: (editor)-> super(editor) atom.config.observe 'linter-python-flake8.executableDir', => @executablePath = atom.config.get 'linter-python-flake8.executableDir' destroy: -> atom.config.unobserve 'linter-python-flake8.executableDir' module.exports = LinterFlake8
linterPath = atom.packages.getLoadedPackage("linter").path Linter = require "#{linterPath}/lib/linter" class LinterFlake8 extends Linter @syntax: ['source.python'] cmd: 'flake8' executablePath: null linterName: 'flake8' # A regex pattern used to extract information from the executable's output. regex: '(.*?):(?<line>\\d+):(?<col>\\d+): (?<message>((?<error>E11|E9)|(?<warning>W|E|F4|F84|N*|C)|F)\\d+ .*?)\n' constructor: (editor)-> super(editor) atom.config.observe 'linter-python-flake8.executableDir', => @executablePath = atom.config.get 'linter-python-flake8.executableDir' atom.config.observe 'linter-python-flake8.maxLineLength', => @updateCommand() atom.config.observe 'linter-python-flake8.ignoreErrorCodes', => @updateCommand() destroy: -> atom.config.unobserve 'linter-python-flake8.maxLineLength' atom.config.unobserve 'linter-python-flake8.ignoreErrorCodes' atom.config.unobserve 'linter-python-flake8.executableDir' updateCommand: -> cmd = 'flake8' maxLineLength = atom.config.get 'linter-python-flake8.maxLineLength' errorCodes = atom.config.get 'linter-pep8.ignoreErrorCodes' if maxLineLength cmd = "#{cmd} --max-line-length=#{maxLineLength}" if errorCodes and errorCodes.length > 0 cmd += " --ignore=#{errorCodes.toString()}" @cmd = cmd module.exports = LinterFlake8
Add options: max line length, ignore error codes
Add options: max line length, ignore error codes Added option to specify maximum line length and ignore specified error codes
CoffeeScript
mit
AtomLinter/linter-flake8,patrys/linter-flake8,keras/linter-flake8
9cfb032b203ef2698eefdcf4b949ff7fc534707b
src/scripts/github-credentials.coffee
src/scripts/github-credentials.coffee
# Github Credentials allows you to map your user against your GitHub user. # This is specifically in order to work with apps that have GitHub Oauth users. # # who do you know - List all the users with github logins tracked by Hubot # i am `maddox` - map your user to the github login `maddox` # who am i - reveal your mapped github login # forget me - de-map your user to your github login module.exports = (robot) -> robot.respond /who do you know/i, (msg) -> theReply = "Here is who I know:\n" for own key, user of robot.brain.data.users if(user.githubLogin) theReply += user.name + " is " + user.githubLogin + "\n" msg.send theReply robot.respond /i am (\w+)/i, (msg) -> githubLogin = msg.match[1] msg.message.user.githubLogin = githubLogin msg.send "Ok, you are " + githubLogin + " on GitHub" robot.respond /who am i/i, (msg) -> user = msg.message.user if user.githubLogin msg.reply "You are known as " + user.githubLogin + " on GitHub" else msg.reply "I don't know who you are. You should probably identify yourself with your GitHub login" robot.respond /forget me/i, (msg) -> user = msg.message.user user.githubLogin = null msg.reply("Ok, I have no idea who you are anymore.")
# Github Credentials allows you to map your user against your GitHub user. # This is specifically in order to work with apps that have GitHub Oauth users. # # who do you know - List all the users with github logins tracked by Hubot # i am `maddox` - map your user to the github login `maddox` # who am i - reveal your mapped github login # forget me - de-map your user to your github login module.exports = (robot) -> robot.respond /who do you know/i, (msg) -> theReply = "Here is who I know:\n" for own key, user of robot.brain.data.users if(user.githubLogin) theReply += user.name + " is " + user.githubLogin + "\n" msg.send theReply robot.respond /i am ([a-z-]+)/i, (msg) -> githubLogin = msg.match[1] msg.message.user.githubLogin = githubLogin msg.send "Ok, you are " + githubLogin + " on GitHub" robot.respond /who am i/i, (msg) -> user = msg.message.user if user.githubLogin msg.reply "You are known as " + user.githubLogin + " on GitHub" else msg.reply "I don't know who you are. You should probably identify yourself with your GitHub login" robot.respond /forget me/i, (msg) -> user = msg.message.user user.githubLogin = null msg.reply("Ok, I have no idea who you are anymore.")
Support dashes in the github username
Support dashes in the github username
CoffeeScript
mit
fromonesrc/hubot-scripts,contolini/hubot-scripts,terryjbates/hubot-scripts,wsoula/hubot-scripts,MaxMEllon/hubot-scripts,flores/hubot-scripts,opentable/hubot-scripts,github/hubot-scripts,Ev1l/hubot-scripts,justinwoo/hubot-scripts,azimman/hubot-scripts,cycomachead/hubot-scripts,modulexcite/hubot-scripts,jankowiakmaria/hubot-scripts,ryantomlinson/hubot-scripts,ericjsilva/hubot-scripts,GrimDerp/hubot-scripts,flores/hubot-scripts,markstory/hubot-scripts,phillipalexander/hubot-scripts,Tyriont/hubot-scripts,DataDog/hubot-scripts,dhfromkorea/hubot-scripts,josephcarmello/hubot-scripts,chauffer/hubot-scripts,marksie531/hubot-scripts,magicstone1412/hubot-scripts,amhorton/hubot-scripts,arcaartem/hubot-scripts,1000hz/hubot-scripts,gregburek/emojibot,iilab/hubot-scripts,alexhouse/hubot-scripts,jacobtomlinson/hubot-scripts,1stdibs/hubot-scripts,jan0sch/hubot-scripts,n0mer/hubot-scripts,jhubert/hubot-scripts,ambikads/hubot-scripts,dbkaplun/hubot-scripts,zecahnin/hubot-scripts,DataDog/hubot-scripts,davidsulpy/hubot-scripts,sklise/hubot-scripts,yigitbey/hubot-scripts,dyg2104/hubot-scripts
59662c2f8934626acfd4c0849b267f3601b7b051
lib/autocomplete-provider.coffee
lib/autocomplete-provider.coffee
BufferController = require './buffer-controller' {Emitter} = require 'atom' module.exports = class AutocompleteProvider selector: '.source.haskell' blacklist: '.source.haskell .comment' inclusionPriority: 1 excludeLowerPriority: false info: moduleList: [] langOpts: [] ghcFlags: [] emitter: null bufferMap: null observers: null backend: null backendProvider: (@backend) => @emitter.emit 'did-get-backend', @backend @backend.listModules(atom.project.getDirectories()[0]).then (res) => @info.moduleList=res @backend.listLanguagePragmas().then (res) => @info.langOpts=res @backend.listCompilerOptions().then (res) => @info.ghcFlags=res onDidGetBackend: (callback) -> @emitter.on 'did-get-backend', callback constructor: -> @emitter = new Emitter @bufferMap = new WeakMap @observers=atom.workspace.observeTextEditors (editor) => return unless editor.getGrammar().scopeName=="source.haskell" buf = editor.getBuffer() @bufferMap.set buf, new BufferController(buf,this) dispose: => @observers.dispose() @emtitter?.destroy() for editor in atom.workspace.getTextEditors() @bufferMap.get(editor.getBuffer())?.desrtoy?() @bufferMap.delete(editor.getBuffer()) getSuggestions: (options) => @bufferMap.get(options.editor.getBuffer())?.getSuggestions? options,@info
BufferController = require './buffer-controller' {Emitter} = require 'atom' module.exports = class AutocompleteProvider selector: '.source.haskell' disableForSelector: '.source.haskell .comment' inclusionPriority: 1 excludeLowerPriority: false info: moduleList: [] langOpts: [] ghcFlags: [] emitter: null bufferMap: null observers: null backend: null backendProvider: (@backend) => @emitter.emit 'did-get-backend', @backend @backend.listModules(atom.project.getDirectories()[0]).then (res) => @info.moduleList=res @backend.listLanguagePragmas().then (res) => @info.langOpts=res @backend.listCompilerOptions().then (res) => @info.ghcFlags=res onDidGetBackend: (callback) -> @emitter.on 'did-get-backend', callback constructor: -> @emitter = new Emitter @bufferMap = new WeakMap @observers=atom.workspace.observeTextEditors (editor) => return unless editor.getGrammar().scopeName=="source.haskell" buf = editor.getBuffer() @bufferMap.set buf, new BufferController(buf,this) dispose: => @observers.dispose() @emtitter?.destroy() for editor in atom.workspace.getTextEditors() @bufferMap.get(editor.getBuffer())?.desrtoy?() @bufferMap.delete(editor.getBuffer()) getSuggestions: (options) => @bufferMap.get(options.editor.getBuffer())?.getSuggestions? options,@info
Fix deprecated ac+ blacklist option
Fix deprecated ac+ blacklist option
CoffeeScript
mit
atom-haskell/autocomplete-haskell
584659c86c88fe05ce7511d36200530e0a5b945a
scripts/govuk_app_owners.coffee
scripts/govuk_app_owners.coffee
# This script teaches Hubot to answer questions like "Who owns Collections Publisher?" # and "Who owns publishing-api?" module.exports = (robot) -> robot.hear /who owns (.*)\?/i, (res) -> # Best guess of the intended application. application = res.match[1].replace(' ', '-').toLowerCase() robot.http("https://docs.publishing.service.gov.uk/apps/#{application}.json") .get() (err, response, body) -> if response.statusCode == 200 data = JSON.parse(body) res.reply "#{application} is owned by #{data.team}"
# This script teaches Hubot to answer questions like "Who owns Collections Publisher?" # and "Who owns publishing-api?" module.exports = (robot) -> robot.hear /who owns (.*)\?/i, (res) -> # Best guess of the intended application. application = res.match[1].replace(/ /g, '-').toLowerCase() console.log("Fetching owner for #{application}") robot.http("https://docs.publishing.service.gov.uk/apps/#{application}.json") .get() (err, response, body) -> if response.statusCode == 200 data = JSON.parse(body) res.reply "#{application} is owned by #{data.team}"
Fix replacing spaces in app names
Fix replacing spaces in app names This previously would translate `email alert api` into `email-alert api` not `email-alert-api`.
CoffeeScript
mit
alphagov/gds-hubot
fbccf2283b705efb1b2c4d60f406c3a66e6d6047
client/ide/lib/views/tabview/idetabhandleview.coffee
client/ide/lib/views/tabview/idetabhandleview.coffee
kd = require 'kd' KDTabHandleView = kd.TabHandleView module.exports = class IDETabHandleView extends KDTabHandleView constructor: (options = {}, data) -> options.droppable ?= yes options.bind = 'dragstart' super options, data dragStart: (event) -> ## workaround for FF and ChromeApp event.originalEvent.dataTransfer.setData 'text/plain', ' ' kd.singletons.appManager.tell 'IDE', 'setTargetTabView', @getDelegate()
kd = require 'kd' KDTabHandleView = kd.TabHandleView module.exports = class IDETabHandleView extends KDTabHandleView constructor: (options = {}, data) -> options.draggable ?= yes options.bind = 'dragstart' super options, data setDraggable: -> @setAttribute 'draggable', yes dragStart: (event) -> ## workaround for FF and ChromeApp event.originalEvent.dataTransfer.setData 'text/plain', ' ' kd.singletons.appManager.tell 'IDE', 'setTargetTabView', @getDelegate()
Remove droppable attribute and override already defined method about this
Remove droppable attribute and override already defined method about this
CoffeeScript
agpl-3.0
mertaytore/koding,kwagdy/koding-1,rjeczalik/koding,cihangir/koding,jack89129/koding,jack89129/koding,koding/koding,drewsetski/koding,cihangir/koding,sinan/koding,acbodine/koding,szkl/koding,acbodine/koding,acbodine/koding,rjeczalik/koding,koding/koding,kwagdy/koding-1,alex-ionochkin/koding,drewsetski/koding,kwagdy/koding-1,jack89129/koding,kwagdy/koding-1,sinan/koding,sinan/koding,drewsetski/koding,gokmen/koding,alex-ionochkin/koding,mertaytore/koding,acbodine/koding,drewsetski/koding,gokmen/koding,mertaytore/koding,sinan/koding,usirin/koding,kwagdy/koding-1,sinan/koding,mertaytore/koding,alex-ionochkin/koding,gokmen/koding,gokmen/koding,szkl/koding,rjeczalik/koding,gokmen/koding,andrewjcasal/koding,kwagdy/koding-1,szkl/koding,gokmen/koding,szkl/koding,acbodine/koding,gokmen/koding,cihangir/koding,drewsetski/koding,cihangir/koding,andrewjcasal/koding,sinan/koding,mertaytore/koding,jack89129/koding,kwagdy/koding-1,alex-ionochkin/koding,andrewjcasal/koding,usirin/koding,usirin/koding,jack89129/koding,andrewjcasal/koding,acbodine/koding,jack89129/koding,sinan/koding,usirin/koding,szkl/koding,rjeczalik/koding,jack89129/koding,usirin/koding,rjeczalik/koding,alex-ionochkin/koding,koding/koding,cihangir/koding,koding/koding,andrewjcasal/koding,szkl/koding,acbodine/koding,koding/koding,rjeczalik/koding,cihangir/koding,drewsetski/koding,kwagdy/koding-1,usirin/koding,szkl/koding,cihangir/koding,gokmen/koding,alex-ionochkin/koding,andrewjcasal/koding,sinan/koding,koding/koding,mertaytore/koding,alex-ionochkin/koding,koding/koding,mertaytore/koding,szkl/koding,drewsetski/koding,jack89129/koding,andrewjcasal/koding,drewsetski/koding,usirin/koding,mertaytore/koding,andrewjcasal/koding,koding/koding,usirin/koding,rjeczalik/koding,acbodine/koding,alex-ionochkin/koding,cihangir/koding,rjeczalik/koding
db80ba6ac794284f88f1f3d8d7c1fd3ae9ef27f1
src/beautifiers/prettier.coffee
src/beautifiers/prettier.coffee
"use strict" Beautifier = require('./beautifier') prettier = require("prettier") module.exports = class Prettier extends Beautifier name: "Prettier" link: "https://github.com/prettier/prettier" options: { _: tabWidth: "indent_size" useTabs: ["indent_with_tabs", "indent_char", (indent_with_tabs, indent_char) -> return (indent_with_tabs is true) or (indent_char is "\t") ] JavaScript: bracketSpacing: "object_curly_spacing" TypeScript: false CSS: false LESS: false SCSS: false Vue: false JSON: false Markdown: false } beautify: (text, language, options) -> return new @Promise((resolve, reject) -> _ = require('lodash') prettierLanguage = _.find(prettier.getSupportInfo().languages, 'name': language) if prettierLanguage parser = prettierLanguage.parsers[0] else reject(new Error("Unknown language for Prettier")) try result = prettier.format(text, { options parser }) resolve result catch err reject(err) )
"use strict" Beautifier = require('./beautifier') prettier = require("prettier") module.exports = class Prettier extends Beautifier name: "Prettier" link: "https://github.com/prettier/prettier" options: { _: tabWidth: "indent_size" useTabs: ["indent_with_tabs", "indent_char", (indent_with_tabs, indent_char) -> return (indent_with_tabs is true) or (indent_char is "\t") ] JavaScript: bracketSpacing: "object_curly_spacing" TypeScript: false CSS: false LESS: false SCSS: false Vue: false JSON: false Markdown: false } beautify: (text, language, options) -> return new @Promise((resolve, reject) -> _ = require('lodash') prettierLanguage = _.find(prettier.getSupportInfo().languages, 'name': language) if prettierLanguage parser = prettierLanguage.parsers[0] else reject(new Error("Unknown language for Prettier")) filePath = atom.workspace.getActiveTextEditor().getPath() try prettier.resolveConfig(filePath).then((configOptions) -> result = prettier.format(text, configOptions or options, parser) prettier.clearConfigCache() resolve result ) catch err reject(err) )
Fix options not working from Atom UI and config file
Fix options not working from Atom UI and config file
CoffeeScript
mit
Glavin001/atom-beautify,Glavin001/atom-beautify,Glavin001/atom-beautify,Glavin001/atom-beautify,Glavin001/atom-beautify
b2e3e0ae38071f99e01f6afe6adae86fd51d4c19
lib/linter.coffee
lib/linter.coffee
Path = require 'path' {CompositeDisposable, Emitter} = require 'atom' {LinterTrace, LinterMessage, LinterError, LinterWarning} = require './messages' EditorLinter = require './editor-linter' class Linter constructor: -> @Emitter = new Emitter @Subscriptions = new CompositeDisposable @EditorLinters = new Map # A map of Editor <--> Linter @Linters = new Set # I <3 ES6 @Subscriptions.add atom.workspace.observeTextEditors (Editor) => EditorLinter = new EditorLinter @, Editor @Emitter.emit 'linters-observe', EditorLinter Editor.onDidDestroy => EditorLinter.destroy() @EditorLinters.delete EditorLinter getActiveEditorLinter:-> ActiveEditor = atom.workspace.getActiveEditor() return ActiveEditor unless ActiveEditor return @EditorLinters.get ActiveEditor getLinter:(Editor)-> return @EditorLinters.get Editor observeLinters:(Callback)-> Callback(Linter[1]) for Linter of @EditorLinters @Emitter.on 'linters-observe', Callback module.exports = Linter
Path = require 'path' {CompositeDisposable, Emitter} = require 'atom' {LinterTrace, LinterMessage, LinterError, LinterWarning} = require './messages' EditorLinter = require './editor-linter' class Linter constructor: -> @Emitter = new Emitter @Subscriptions = new CompositeDisposable @EditorLinters = new Map # A map of Editor <--> Linter @Linters = new Set # I <3 ES6 @Subscriptions.add atom.workspace.observeTextEditors (Editor) => CurrentEditorLinter = new EditorLinter @, Editor @Emitter.emit 'linters-observe', CurrentEditorLinter Editor.onDidDestroy => CurrentEditorLinter.destroy() @EditorLinters.delete CurrentEditorLinter getActiveEditorLinter:-> ActiveEditor = atom.workspace.getActiveEditor() return ActiveEditor unless ActiveEditor return @EditorLinters.get ActiveEditor getLinter:(Editor)-> return @EditorLinters.get Editor observeLinters:(Callback)-> Callback(Linter[1]) for Linter of @EditorLinters @Emitter.on 'linters-observe', Callback module.exports = Linter
Fix a duplicate variable issue
:bug: Fix a duplicate variable issue
CoffeeScript
mit
josa42/Linter,levity/linter,AtomLinter/Linter,iam4x/linter,elkeis/linter,kaeluka/linter,e-jigsaw/Linter,blakeembrey/linter,DanPurdy/linter,shawninder/linter,simurai/linter-plus,UltCombo/linter,atom-community/linter,JohnMurga/linter,Arcanemagus/linter,steelbrain/linter,AsaAyers/linter,mdgriffith/linter
405bfa4440c16607a99d18b76c3db1bc8c2d4f7c
lineman/app/components/thread_page/position_buttons_panel/position_buttons_panel.coffee
lineman/app/components/thread_page/position_buttons_panel/position_buttons_panel.coffee
angular.module('loomioApp').directive 'positionButtonsPanel', -> scope: {proposal: '='} restrict: 'E' templateUrl: 'generated/components/thread_page/position_buttons_panel/position_buttons_panel.html' replace: true controller: ($scope, ModalService, VoteForm, CurrentUser, Records) -> $scope.showPositionButtons = -> CurrentUser.isMemberOf($scope.proposal.group()) and $scope.proposal.isActive() and $scope.undecided() $scope.undecided = -> !($scope.proposal.lastVoteByUser(CurrentUser)?) $scope.$on 'triggerVoteForm', (event, position) -> myVote = $scope.proposal.lastVoteByUser(CurrentUser) or {} $scope.select position, myVote.statement $scope.select = (position) -> ModalService.open(VoteForm, vote: -> Records.votes.build(proposalId: $scope.proposal.id, position: position))
angular.module('loomioApp').directive 'positionButtonsPanel', -> scope: {proposal: '='} restrict: 'E' templateUrl: 'generated/components/thread_page/position_buttons_panel/position_buttons_panel.html' replace: true controller: ($scope, ModalService, VoteForm, CurrentUser, Records, AbilityService) -> $scope.showPositionButtons = -> AbilityService.canVoteOn($scope.proposal) and $scope.undecided() $scope.undecided = -> !($scope.proposal.lastVoteByUser(CurrentUser)?) $scope.$on 'triggerVoteForm', (event, position) -> myVote = $scope.proposal.lastVoteByUser(CurrentUser) or {} $scope.select position, myVote.statement $scope.select = (position) -> ModalService.open(VoteForm, vote: -> Records.votes.build(proposalId: $scope.proposal.id, position: position))
Fix for position buttons panel
Fix for position buttons panel
CoffeeScript
agpl-3.0
FSFTN/Loomio,loomio/loomio,piratas-ar/loomio,loomio/loomio,FSFTN/Loomio,mhjb/loomio,piratas-ar/loomio,sicambria/loomio,FSFTN/Loomio,loomio/loomio,mhjb/loomio,mhjb/loomio,sicambria/loomio,loomio/loomio,sicambria/loomio,mhjb/loomio,FSFTN/Loomio,piratas-ar/loomio,piratas-ar/loomio,sicambria/loomio
385287489c46b7596c1af4c79d2edff0d68b3fd8
assets/scripts/app/controllers/account.coffee
assets/scripts/app/controllers/account.coffee
Travis.AccountController = Ember.ObjectController.extend allHooks: [] needs: ['currentUser'] userBinding: 'controllers.currentUser' init: -> @_super.apply this, arguments self = this Travis.on("user:synced", (-> self.reloadHooks() )) toggle: (hook) -> hook.toggle() reloadHooks: -> if login = @get('login') @set('allHooks', Travis.Hook.find(all: true, owner_name: login)) hooks: (-> @reloadHooks() unless hooks = @get('allHooks') @get('allHooks').filter (hook) -> hook.get('admin') ).property('allHooks.length', 'allHooks') hooksWithoutAdmin: (-> @reloadHooks() unless hooks = @get('allHooks') @get('allHooks').filter (hook) -> !hook.get('admin') ).property('allHooks.length', 'allHooks') showPrivateReposHint: (-> Travis.config.show_repos_hint == 'private' ) .property() showPublicReposHint: (-> Travis.config.show_repos_hint == 'public' ) .property() actions: sync: -> @get('user').sync()
Travis.AccountController = Ember.ObjectController.extend allHooks: [] needs: ['currentUser'] userBinding: 'controllers.currentUser' init: -> @_super.apply this, arguments self = this Travis.on("user:synced", (-> self.reloadHooks() )) actions: sync: -> @get('user').sync() toggle: (hook) -> hook.toggle() reloadHooks: -> if login = @get('login') @set('allHooks', Travis.Hook.find(all: true, owner_name: login)) hooks: (-> @reloadHooks() unless hooks = @get('allHooks') @get('allHooks').filter (hook) -> hook.get('admin') ).property('allHooks.length', 'allHooks') hooksWithoutAdmin: (-> @reloadHooks() unless hooks = @get('allHooks') @get('allHooks').filter (hook) -> !hook.get('admin') ).property('allHooks.length', 'allHooks') showPrivateReposHint: (-> Travis.config.show_repos_hint == 'private' ) .property() showPublicReposHint: (-> Travis.config.show_repos_hint == 'public' ) .property()
Fix toggling hooks on profile page
Fix toggling hooks on profile page
CoffeeScript
mit
jlrigau/travis-web,travis-ci/travis-web,mjlambert/travis-web,Tiger66639/travis-web,travis-ci/travis-web,fotinakis/travis-web,travis-ci/travis-web,mjlambert/travis-web,jlrigau/travis-web,jlrigau/travis-web,Tiger66639/travis-web,Tiger66639/travis-web,fauxton/travis-web,fotinakis/travis-web,fauxton/travis-web,2947721120/travis-web,fauxton/travis-web,fotinakis/travis-web,jlrigau/travis-web,fotinakis/travis-web,travis-ci/travis-web,mjlambert/travis-web,2947721120/travis-web,2947721120/travis-web,2947721120/travis-web,fauxton/travis-web,Tiger66639/travis-web,mjlambert/travis-web
458dea9780d6108757d1fdb815f67c1988b2ec3a
build/tasks/check-licenses-task.coffee
build/tasks/check-licenses-task.coffee
module.exports = (grunt) -> grunt.registerTask 'check-licenses', 'Report the licenses of all dependencies', -> legalEagle = require 'legal-eagle' {size, keys} = require 'underscore-plus' done = @async() options = path: process.cwd() omitPermissive: true overrides: require './license-overrides' legalEagle options, (err, summary) -> if err? console.error(err) exit 1 if size(summary) console.error "Found dependencies without permissive licenses:" for name in keys(summary).sort() console.error "#{name}" console.error " License: #{summary[name].license}" console.error " Repository: #{summary[name].repository}" process.exit 1 done()
module.exports = (grunt) -> grunt.registerTask 'check-licenses', 'Report the licenses of all dependencies', -> legalEagle = require 'legal-eagle' {size, keys} = require 'underscore-plus' done = @async() options = path: process.cwd() omitPermissive: true overrides: require './license-overrides' legalEagle options, (err, summary) -> if err? console.error(err) exit 1 # Omit failure for coffee-script bundle for now. It seems to be intended # to be open source but has no license. for dependencyName in keys(summary) if dependencyName.match /^language-coffee-script@/ delete summary[dependencyName] if size(summary) console.error "Found dependencies without permissive licenses:" for name in keys(summary).sort() console.error "#{name}" console.error " License: #{summary[name].license}" console.error " Repository: #{summary[name].repository}" process.exit 1 done()
Allow language-coffee-script without a license for now
Allow language-coffee-script without a license for now
CoffeeScript
mit
lovesnow/atom,pkdevbox/atom,burodepeper/atom,avdg/atom,kc8wxm/atom,prembasumatary/atom,RobinTec/atom,jacekkopecky/atom,MjAbuz/atom,basarat/atom,omarhuanca/atom,jjz/atom,nrodriguez13/atom,qskycolor/atom,abcP9110/atom,batjko/atom,brumm/atom,wiggzz/atom,devoncarew/atom,rjattrill/atom,crazyquark/atom,mnquintana/atom,medovob/atom,sebmck/atom,davideg/atom,rmartin/atom,folpindo/atom,basarat/atom,FIT-CSE2410-A-Bombs/atom,Jonekee/atom,PKRoma/atom,vjeux/atom,h0dgep0dge/atom,einarmagnus/atom,fredericksilva/atom,panuchart/atom,fang-yufeng/atom,nrodriguez13/atom,Hasimir/atom,Andrey-Pavlov/atom,liuderchi/atom,Hasimir/atom,rookie125/atom,001szymon/atom,devoncarew/atom,kevinrenaers/atom,kdheepak89/atom,gabrielPeart/atom,YunchengLiao/atom,johnhaley81/atom,ObviouslyGreen/atom,AdrianVovk/substance-ide,einarmagnus/atom,harshdattani/atom,nvoron23/atom,execjosh/atom,deepfox/atom,acontreras89/atom,dannyflax/atom,charleswhchan/atom,burodepeper/atom,Arcanemagus/atom,Galactix/atom,Sangaroonaom/atom,john-kelly/atom,Jandersolutions/atom,kittens/atom,oggy/atom,dkfiresky/atom,pengshp/atom,helber/atom,dijs/atom,sekcheong/atom,GHackAnonymous/atom,kdheepak89/atom,fredericksilva/atom,charleswhchan/atom,fang-yufeng/atom,vjeux/atom,Galactix/atom,matthewclendening/atom,daxlab/atom,dkfiresky/atom,transcranial/atom,chfritz/atom,scippio/atom,toqz/atom,ilovezy/atom,execjosh/atom,vjeux/atom,githubteacher/atom,Arcanemagus/atom,Abdillah/atom,splodingsocks/atom,mnquintana/atom,Shekharrajak/atom,deoxilix/atom,t9md/atom,toqz/atom,toqz/atom,harshdattani/atom,seedtigo/atom,hellendag/atom,rsvip/aTom,john-kelly/atom,sebmck/atom,palita01/atom,tony612/atom,amine7536/atom,matthewclendening/atom,0x73/atom,Abdillah/atom,lisonma/atom,champagnez/atom,vinodpanicker/atom,ralphtheninja/atom,ardeshirj/atom,yalexx/atom,Rodjana/atom,0x73/atom,rsvip/aTom,BogusCurry/atom,ezeoleaf/atom,brumm/atom,beni55/atom,efatsi/atom,Neron-X5/atom,Jandersolutions/atom,jjz/atom,ironbox360/atom,hellendag/atom,scv119/atom,hakatashi/atom,AlisaKiatkongkumthon/atom,omarhuanca/atom,constanzaurzua/atom,vinodpanicker/atom,sillvan/atom,stinsonga/atom,bencolon/atom,0x73/atom,Locke23rus/atom,nvoron23/atom,bradgearon/atom,h0dgep0dge/atom,fredericksilva/atom,paulcbetts/atom,sxgao3001/atom,Klozz/atom,abcP9110/atom,rsvip/aTom,fang-yufeng/atom,mertkahyaoglu/atom,Jonekee/atom,hpham04/atom,vhutheesing/atom,prembasumatary/atom,fang-yufeng/atom,gontadu/atom,pombredanne/atom,bsmr-x-script/atom,niklabh/atom,tmunro/atom,Ju2ender/atom,mertkahyaoglu/atom,ilovezy/atom,anuwat121/atom,tjkr/atom,tmunro/atom,atom/atom,avdg/atom,paulcbetts/atom,DiogoXRP/atom,Jandersoft/atom,ivoadf/atom,isghe/atom,johnrizzo1/atom,sotayamashita/atom,mdumrauf/atom,lpommers/atom,jlord/atom,ppamorim/atom,FoldingText/atom,ralphtheninja/atom,Jdesk/atom,me6iaton/atom,rlugojr/atom,omarhuanca/atom,GHackAnonymous/atom,boomwaiza/atom,ObviouslyGreen/atom,bolinfest/atom,chengky/atom,rmartin/atom,yamhon/atom,Andrey-Pavlov/atom,phord/atom,SlimeQ/atom,devmario/atom,amine7536/atom,NunoEdgarGub1/atom,Jandersolutions/atom,Hasimir/atom,dsandstrom/atom,gisenberg/atom,darwin/atom,yalexx/atom,davideg/atom,folpindo/atom,fredericksilva/atom,anuwat121/atom,vjeux/atom,Arcanemagus/atom,nvoron23/atom,Abdillah/atom,pengshp/atom,devmario/atom,Neron-X5/atom,boomwaiza/atom,lovesnow/atom,ardeshirj/atom,rmartin/atom,toqz/atom,matthewclendening/atom,andrewleverette/atom,Huaraz2/atom,mnquintana/atom,nrodriguez13/atom,me-benni/atom,efatsi/atom,pombredanne/atom,kandros/atom,nucked/atom,xream/atom,Andrey-Pavlov/atom,MjAbuz/atom,rsvip/aTom,chfritz/atom,helber/atom,BogusCurry/atom,folpindo/atom,oggy/atom,Jandersoft/atom,NunoEdgarGub1/atom,harshdattani/atom,g2p/atom,einarmagnus/atom,hharchani/atom,PKRoma/atom,dannyflax/atom,daxlab/atom,DiogoXRP/atom,niklabh/atom,Rodjana/atom,Abdillah/atom,ironbox360/atom,codex8/atom,nucked/atom,svanharmelen/atom,hharchani/atom,mostafaeweda/atom,AlbertoBarrago/atom,Andrey-Pavlov/atom,cyzn/atom,liuxiong332/atom,russlescai/atom,sillvan/atom,jordanbtucker/atom,PKRoma/atom,hpham04/atom,SlimeQ/atom,mertkahyaoglu/atom,basarat/atom,KENJU/atom,NunoEdgarGub1/atom,liuxiong332/atom,sebmck/atom,prembasumatary/atom,stuartquin/atom,ReddTea/atom,gisenberg/atom,prembasumatary/atom,stuartquin/atom,mdumrauf/atom,seedtigo/atom,tony612/atom,jtrose2/atom,bcoe/atom,jacekkopecky/atom,ali/atom,matthewclendening/atom,hharchani/atom,g2p/atom,wiggzz/atom,lisonma/atom,jlord/atom,gisenberg/atom,ppamorim/atom,FoldingText/atom,Klozz/atom,SlimeQ/atom,sekcheong/atom,kjav/atom,0x73/atom,Shekharrajak/atom,brettle/atom,isghe/atom,gabrielPeart/atom,sillvan/atom,toqz/atom,sekcheong/atom,sxgao3001/atom,chengky/atom,lovesnow/atom,kjav/atom,svanharmelen/atom,abcP9110/atom,palita01/atom,targeter21/atom,ObviouslyGreen/atom,nvoron23/atom,me6iaton/atom,bj7/atom,pkdevbox/atom,amine7536/atom,liuxiong332/atom,florianb/atom,bsmr-x-script/atom,n-riesco/atom,pkdevbox/atom,yomybaby/atom,ezeoleaf/atom,Jandersoft/atom,phord/atom,G-Baby/atom,bcoe/atom,hharchani/atom,t9md/atom,dsandstrom/atom,vcarrera/atom,githubteacher/atom,oggy/atom,rjattrill/atom,yamhon/atom,johnrizzo1/atom,kandros/atom,yomybaby/atom,deepfox/atom,BogusCurry/atom,hpham04/atom,brettle/atom,qskycolor/atom,hakatashi/atom,liuxiong332/atom,decaffeinate-examples/atom,hharchani/atom,Austen-G/BlockBuilder,G-Baby/atom,jacekkopecky/atom,jjz/atom,jtrose2/atom,russlescai/atom,johnrizzo1/atom,GHackAnonymous/atom,mostafaeweda/atom,yalexx/atom,Jonekee/atom,pombredanne/atom,acontreras89/atom,h0dgep0dge/atom,kjav/atom,Dennis1978/atom,ivoadf/atom,sotayamashita/atom,ilovezy/atom,kdheepak89/atom,tony612/atom,jacekkopecky/atom,qskycolor/atom,mrodalgaard/atom,Hasimir/atom,dkfiresky/atom,transcranial/atom,me6iaton/atom,mnquintana/atom,alfredxing/atom,xream/atom,paulcbetts/atom,Ingramz/atom,Mokolea/atom,kevinrenaers/atom,qiujuer/atom,ReddTea/atom,jjz/atom,gzzhanghao/atom,Rodjana/atom,kdheepak89/atom,RuiDGoncalves/atom,ralphtheninja/atom,YunchengLiao/atom,einarmagnus/atom,me-benni/atom,brumm/atom,erikhakansson/atom,yamhon/atom,targeter21/atom,MjAbuz/atom,rookie125/atom,bolinfest/atom,bencolon/atom,svanharmelen/atom,gisenberg/atom,abe33/atom,vinodpanicker/atom,isghe/atom,ali/atom,targeter21/atom,johnhaley81/atom,RobinTec/atom,yangchenghu/atom,erikhakansson/atom,Ju2ender/atom,Dennis1978/atom,rlugojr/atom,scippio/atom,rxkit/atom,splodingsocks/atom,lovesnow/atom,john-kelly/atom,andrewleverette/atom,dkfiresky/atom,Sangaroonaom/atom,scv119/atom,pengshp/atom,kittens/atom,sekcheong/atom,tanin47/atom,liuxiong332/atom,RobinTec/atom,basarat/atom,mertkahyaoglu/atom,yomybaby/atom,vhutheesing/atom,n-riesco/atom,FIT-CSE2410-A-Bombs/atom,deepfox/atom,amine7536/atom,jlord/atom,Jandersolutions/atom,Shekharrajak/atom,qskycolor/atom,kjav/atom,rsvip/aTom,ykeisuke/atom,devoncarew/atom,yalexx/atom,chengky/atom,mrodalgaard/atom,qskycolor/atom,acontreras89/atom,vjeux/atom,fscherwi/atom,AlexxNica/atom,woss/atom,vinodpanicker/atom,efatsi/atom,codex8/atom,alfredxing/atom,hakatashi/atom,jjz/atom,YunchengLiao/atom,GHackAnonymous/atom,paulcbetts/atom,kandros/atom,me-benni/atom,jordanbtucker/atom,n-riesco/atom,jlord/atom,Austen-G/BlockBuilder,bcoe/atom,isghe/atom,kc8wxm/atom,tanin47/atom,florianb/atom,deoxilix/atom,decaffeinate-examples/atom,gisenberg/atom,devmario/atom,russlescai/atom,Shekharrajak/atom,batjko/atom,matthewclendening/atom,Huaraz2/atom,Neron-X5/atom,KENJU/atom,liuderchi/atom,ashneo76/atom,stinsonga/atom,vcarrera/atom,tisu2tisu/atom,alexandergmann/atom,synaptek/atom,scv119/atom,panuchart/atom,john-kelly/atom,erikhakansson/atom,dsandstrom/atom,Dennis1978/atom,deepfox/atom,wiggzz/atom,batjko/atom,sotayamashita/atom,nucked/atom,bryonwinger/atom,champagnez/atom,ironbox360/atom,AdrianVovk/substance-ide,ReddTea/atom,n-riesco/atom,ezeoleaf/atom,RuiDGoncalves/atom,Austen-G/BlockBuilder,Jandersolutions/atom,cyzn/atom,bj7/atom,omarhuanca/atom,RobinTec/atom,mostafaeweda/atom,DiogoXRP/atom,pombredanne/atom,codex8/atom,Ingramz/atom,ppamorim/atom,florianb/atom,lisonma/atom,CraZySacX/atom,me6iaton/atom,vcarrera/atom,FoldingText/atom,fredericksilva/atom,woss/atom,jordanbtucker/atom,AlexxNica/atom,AlisaKiatkongkumthon/atom,gontadu/atom,brettle/atom,Andrey-Pavlov/atom,woss/atom,yomybaby/atom,Locke23rus/atom,codex8/atom,scippio/atom,john-kelly/atom,ilovezy/atom,Jdesk/atom,NunoEdgarGub1/atom,devoncarew/atom,gzzhanghao/atom,kittens/atom,jacekkopecky/atom,medovob/atom,acontreras89/atom,tjkr/atom,davideg/atom,Rychard/atom,Galactix/atom,MjAbuz/atom,rookie125/atom,Mokolea/atom,dijs/atom,jtrose2/atom,beni55/atom,beni55/atom,kevinrenaers/atom,sxgao3001/atom,sxgao3001/atom,FoldingText/atom,woss/atom,mertkahyaoglu/atom,ReddTea/atom,Austen-G/BlockBuilder,dijs/atom,palita01/atom,vinodpanicker/atom,anuwat121/atom,bencolon/atom,kaicataldo/atom,execjosh/atom,isghe/atom,omarhuanca/atom,SlimeQ/atom,jeremyramin/atom,amine7536/atom,sebmck/atom,ilovezy/atom,decaffeinate-examples/atom,mostafaeweda/atom,dsandstrom/atom,jeremyramin/atom,fedorov/atom,jeremyramin/atom,devmario/atom,Austen-G/BlockBuilder,CraZySacX/atom,001szymon/atom,cyzn/atom,Austen-G/BlockBuilder,stinsonga/atom,hagb4rd/atom,dannyflax/atom,Mokolea/atom,fedorov/atom,lovesnow/atom,chengky/atom,splodingsocks/atom,deoxilix/atom,devmario/atom,russlescai/atom,panuchart/atom,pombredanne/atom,kc8wxm/atom,lpommers/atom,alexandergmann/atom,atom/atom,abcP9110/atom,ppamorim/atom,qiujuer/atom,qiujuer/atom,niklabh/atom,Sangaroonaom/atom,vcarrera/atom,originye/atom,tony612/atom,jtrose2/atom,gzzhanghao/atom,tisu2tisu/atom,charleswhchan/atom,GHackAnonymous/atom,abe33/atom,mostafaeweda/atom,ali/atom,crazyquark/atom,dannyflax/atom,tmunro/atom,johnhaley81/atom,constanzaurzua/atom,Locke23rus/atom,lisonma/atom,liuderchi/atom,sillvan/atom,tisu2tisu/atom,FIT-CSE2410-A-Bombs/atom,elkingtonmcb/atom,dannyflax/atom,crazyquark/atom,gontadu/atom,RuiDGoncalves/atom,yalexx/atom,woss/atom,stuartquin/atom,h0dgep0dge/atom,chengky/atom,AlbertoBarrago/atom,Jdesk/atom,andrewleverette/atom,001szymon/atom,mrodalgaard/atom,AlexxNica/atom,constanzaurzua/atom,rmartin/atom,ykeisuke/atom,stinsonga/atom,boomwaiza/atom,KENJU/atom,crazyquark/atom,scv119/atom,vcarrera/atom,acontreras89/atom,fedorov/atom,atom/atom,rmartin/atom,tony612/atom,bradgearon/atom,kittens/atom,splodingsocks/atom,constanzaurzua/atom,darwin/atom,dsandstrom/atom,CraZySacX/atom,transcranial/atom,hpham04/atom,hagb4rd/atom,bryonwinger/atom,basarat/atom,crazyquark/atom,hagb4rd/atom,ReddTea/atom,kc8wxm/atom,lpommers/atom,Rychard/atom,YunchengLiao/atom,daxlab/atom,YunchengLiao/atom,sillvan/atom,kjav/atom,targeter21/atom,Jandersoft/atom,elkingtonmcb/atom,champagnez/atom,Klozz/atom,sekcheong/atom,hagb4rd/atom,medovob/atom,RobinTec/atom,t9md/atom,seedtigo/atom,g2p/atom,yangchenghu/atom,davideg/atom,Galactix/atom,elkingtonmcb/atom,batjko/atom,Jandersoft/atom,einarmagnus/atom,charleswhchan/atom,ali/atom,oggy/atom,jlord/atom,sxgao3001/atom,bcoe/atom,KENJU/atom,bradgearon/atom,ppamorim/atom,KENJU/atom,Neron-X5/atom,Jdesk/atom,originye/atom,G-Baby/atom,hellendag/atom,burodepeper/atom,florianb/atom,Rychard/atom,ashneo76/atom,xream/atom,qiujuer/atom,Shekharrajak/atom,Ju2ender/atom,ali/atom,prembasumatary/atom,n-riesco/atom,fedorov/atom,charleswhchan/atom,lisonma/atom,darwin/atom,Jdesk/atom,fscherwi/atom,bj7/atom,bsmr-x-script/atom,davideg/atom,dannyflax/atom,sebmck/atom,ardeshirj/atom,bryonwinger/atom,yomybaby/atom,githubteacher/atom,AdrianVovk/substance-ide,codex8/atom,chfritz/atom,liuderchi/atom,rjattrill/atom,gabrielPeart/atom,hagb4rd/atom,kittens/atom,bcoe/atom,me6iaton/atom,Ju2ender/atom,decaffeinate-examples/atom,ashneo76/atom,Abdillah/atom,SlimeQ/atom,rxkit/atom,devoncarew/atom,florianb/atom,FoldingText/atom,alfredxing/atom,abcP9110/atom,fang-yufeng/atom,ezeoleaf/atom,hakatashi/atom,helber/atom,hpham04/atom,Hasimir/atom,batjko/atom,AlisaKiatkongkumthon/atom,fscherwi/atom,rxkit/atom,yangchenghu/atom,vhutheesing/atom,kdheepak89/atom,Ingramz/atom,AlbertoBarrago/atom,abe33/atom,basarat/atom,Ju2ender/atom,tjkr/atom,bryonwinger/atom,MjAbuz/atom,avdg/atom,deepfox/atom,targeter21/atom,bolinfest/atom,dkfiresky/atom,jtrose2/atom,NunoEdgarGub1/atom,FoldingText/atom,phord/atom,nvoron23/atom,synaptek/atom,mdumrauf/atom,synaptek/atom,oggy/atom,Neron-X5/atom,ykeisuke/atom,ivoadf/atom,fedorov/atom,kc8wxm/atom,synaptek/atom,constanzaurzua/atom,Huaraz2/atom,Galactix/atom,rjattrill/atom,jacekkopecky/atom,originye/atom,rlugojr/atom,qiujuer/atom,tanin47/atom,kaicataldo/atom,synaptek/atom,alexandergmann/atom,russlescai/atom,kaicataldo/atom,mnquintana/atom
9b4b9cf5e86311d7d3b4ed44e10c036d9d24a2ec
models/organization.coffee
models/organization.coffee
mongoose = require 'mongoose' timestamps = require 'mongoose-timestamps' Schema = mongoose.Schema db = mongoose.createConnection "mongodb://localhost:27017/badges-#{process.env.NODE_ENV}" OrganizationSchema = new Schema name: String origin: String org: String contact: String created_at: Date updated_at: Date OrganizationSchema.plugin(timestamps) Organization = db.model 'Organization', OrganizationSchema module.exports = Organization
mongoose = require 'mongoose' timestamps = require 'mongoose-timestamps' Schema = mongoose.Schema db = mongoose.createConnection "mongodb://localhost:27017/badges-#{process.env.NODE_ENV}" OrganizationSchema = new Schema name: String origin: String org: String api_key: String contact: String created_at: Date updated_at: Date OrganizationSchema.plugin(timestamps) Organization = db.model 'Organization', OrganizationSchema module.exports = Organization
Add API key to the Organization model
Add API key to the Organization model
CoffeeScript
mit
EverFi/Sash,EverFi/Sash,EverFi/Sash
d19dbf79417a24bcb3d9ee2e5469acbda7d9ec74
app/javascript/src/notice.coffee
app/javascript/src/notice.coffee
$ = jQuery export default class Notice constructor: -> $ @initialize hide: => $('#notice-container').hide() initialize: => msg = Cookies.get 'notice' return unless msg? && msg != '' @show msg, true Cookies.remove 'notice' # If initial is true, this is a notice set by the notice cookie and not a # realtime notice from user interaction. show: (msg, initial) => # If this is an initial notice, and this screen has a dedicated notice # container other than the floating notice, use that and don't hide it. if initial ? false $staticNotice = $('#static_notice') if $staticNotice.length > 0 $staticNotice .html(msg) .show() return $('#notice').html msg $('#notice-container').show() clearTimeout @timeout @timeout = setTimeout @hide, 5000
$ = jQuery export default class Notice constructor: -> $ @initialize hide: => $('#notice-container').hide() initialize: => msg = Cookies.get 'notice' return unless msg? && msg != '' @show msg, true Cookies.remove 'notice' # If initial is true, this is a notice set by the notice cookie and not a # realtime notice from user interaction. show: (msg, initial) => # If this is an initial notice, and this screen has a dedicated notice # container other than the floating notice, use that and don't hide it. if initial ? false $staticNotice = $('#static_notice') if $staticNotice.length > 0 $staticNotice .text(msg) .show() return $('#notice').text msg $('#notice-container').show() clearTimeout @timeout @timeout = setTimeout @hide, 5000
Use text instead of html
Use text instead of html Safer, etc
CoffeeScript
isc
moebooru/moebooru,nanaya/moebooru,nanaya/moebooru,moebooru/moebooru,nanaya/moebooru,nanaya/moebooru,moebooru/moebooru,moebooru/moebooru,nanaya/moebooru,moebooru/moebooru
0381607c6e03bd43de4102d7f7b5ceb3766552bf
components/inquiry_questionnaire/views/specialist.coffee
components/inquiry_questionnaire/views/specialist.coffee
StepView = require './step.coffee' Form = require '../../form/index.coffee' Feedback = require '../../../models/feedback.coffee' Representatives = require '../../../collections/representatives.coffee' template = -> require('../templates/specialist.jade') arguments... module.exports = class Specialist extends StepView template: -> template arguments... __events__: 'click button': 'serialize' initialize: -> @feedback = new Feedback @representatives = new Representatives @representatives.fetch() .then => (@representative = @representatives.first()).fetch() .then => @render() super serialize: (e) -> form = new Form model: @feedback, $form: @$('form') form.submit e, success: => @next() render: -> @$el.html @template user: @user representative: @representative @autofocus() this
StepView = require './step.coffee' Form = require '../../form/index.coffee' Feedback = require '../../../models/feedback.coffee' Representatives = require '../../../collections/representatives.coffee' template = -> require('../templates/specialist.jade') arguments... module.exports = class Specialist extends StepView template: -> template arguments... __events__: 'click button': 'serialize' initialize: -> @feedback = new Feedback @representatives = new Representatives super setup: -> @representatives.fetch() .then => (@representative = @representatives.first()).fetch() .then => @render() serialize: (e) -> form = new Form model: @feedback, $form: @$('form') form.submit e, success: => @next() render: -> @$el.html @template user: @user representative: @representative @autofocus() this
Use the explicit setup step
Use the explicit setup step
CoffeeScript
mit
oxaudo/force,mzikherman/force,xtina-starr/force,eessex/force,erikdstock/force,kanaabe/force,joeyAghion/force,oxaudo/force,oxaudo/force,dblock/force,mzikherman/force,erikdstock/force,damassi/force,yuki24/force,artsy/force-public,anandaroop/force,erikdstock/force,anandaroop/force,damassi/force,eessex/force,artsy/force,dblock/force,TribeMedia/force-public,dblock/force,cavvia/force-1,artsy/force,artsy/force,joeyAghion/force,mzikherman/force,damassi/force,mzikherman/force,izakp/force,yuki24/force,kanaabe/force,joeyAghion/force,xtina-starr/force,artsy/force,erikdstock/force,cavvia/force-1,yuki24/force,anandaroop/force,eessex/force,kanaabe/force,TribeMedia/force-public,cavvia/force-1,joeyAghion/force,kanaabe/force,izakp/force,artsy/force-public,yuki24/force,izakp/force,oxaudo/force,xtina-starr/force,kanaabe/force,xtina-starr/force,damassi/force,izakp/force,anandaroop/force,cavvia/force-1,eessex/force
5ffa497a68a08c335f986c51b9c2d5ec9a335342
atom/config.cson
atom/config.cson
'core': 'hideGitIgnoredFiles': true 'ignoredNames': [ '.DS_Store' '.git' 'vendor' ] 'themes': [ 'atom-dark-ui' 'solarized-dark-syntax' ] 'disabledPackages': [] 'destroyEmptyPanes': false 'editor': 'fontSize': 13 'hideGitIgnoredFiles': true 'normalizeIndentOnPaste': false 'whitespace': 'ensureSingleTrailingNewline': true 'spell-check': 'grammars': [ 'text.plain' 'source.gfm' 'text.git-commit' ] 'welcome': 'showOnStartup': false 'find-and-replace': 'openProjectFindResultsInRightPane': true 'wrap-guide': 'columns': [ { 'pattern': 'COMMIT_EDITMSG' 'column': 72 } ] 'autocomplete': 'includeCompletionsFromAllBuffers': true 'scroll-past-end': 'retainHalfScreen': true
'core': 'hideGitIgnoredFiles': true 'ignoredNames': [ '.DS_Store' '.git' 'vendor' ] 'themes': [ 'atom-dark-ui' 'solarized-dark-syntax' ] 'disabledPackages': [] 'destroyEmptyPanes': false 'useReactEditor': true 'editor': 'fontSize': 13 'hideGitIgnoredFiles': true 'normalizeIndentOnPaste': false 'whitespace': 'ensureSingleTrailingNewline': true 'spell-check': 'grammars': [ 'text.plain' 'source.gfm' 'text.git-commit' ] 'welcome': 'showOnStartup': false 'find-and-replace': 'openProjectFindResultsInRightPane': true 'wrap-guide': 'columns': [ { 'pattern': 'COMMIT_EDITMSG' 'column': 72 } ] 'autocomplete': 'includeCompletionsFromAllBuffers': true 'scroll-past-end': 'retainHalfScreen': true
Use React editor in Atom
Use React editor in Atom
CoffeeScript
mit
jasonrudolph/dotfiles,jasonrudolph/dotfiles,jasonrudolph/dotfiles,jasonrudolph/dotfiles
bda30d77df6a04b9b2cfc8eb9cd5b3fe06f9bff7
app/assets/asset/pdfViewer.coffee
app/assets/asset/pdfViewer.coffee
'use strict' app.directive 'pdfViewer', [ () -> restrict: 'E' scope: asset: '=asset' link: ($scope, $elem) -> pdfElement = $($elem)[0] objectTag = document.createElement('object') objectTag.setAttribute('data', $scope.asset.downloadRoute(true)) objectTag.setAttribute('width', '80%') pdfElement.appendChild(objectTag) return ]
'use strict' app.directive 'pdfViewer', [ () -> restrict: 'E' scope: asset: '=asset' link: ($scope, $elem) -> pdfElement = $($elem)[0] objectTag = document.createElement('object') objectTag.setAttribute('data', $scope.asset.downloadRoute(true)) objectTag.setAttribute('width', '80%') objectTag.setAttribute('type', $scope.asset.format.mimetype) pdfElement.appendChild(objectTag) return ]
Set the type inside the directive.
Set the type inside the directive.
CoffeeScript
agpl-3.0
databrary/databrary,databrary/databrary,databrary/databrary,databrary/databrary
76f5159d4094a2a75681946733069a688b897b7c
src/trix/elements/trix_toolbar_element.coffee
src/trix/elements/trix_toolbar_element.coffee
{cloneFragment, triggerEvent} = Trix Trix.registerElement "trix-toolbar", defaultCSS: """ %t { white-space: collapse; } %t .dialog { display: none; } %t .dialog.active { display: block; } %t .dialog input.validate:invalid { background-color: #ffdddd; } %t[native] { display: none; } """ attachedCallback: -> if @innerHTML is "" @appendChild(cloneFragment(Trix.config.toolbar.content)) if @hasAttribute("native") if Trix.NativeToolbarController @toolbarController = new Trix.NativeToolbarController this else throw "Host application must implement Trix.NativeToolbarController" else @toolbarController = new Trix.ToolbarController this triggerEvent("trix-element-attached", onElement: this)
{cloneFragment, triggerEvent} = Trix Trix.registerElement "trix-toolbar", defaultCSS: """ %t { white-space: collapse; } %t .dialog { display: none; } %t .dialog.active { display: block; } %t .dialog input.validate:invalid { background-color: #ffdddd; } %t[native] { display: none; } """ attachedCallback: -> if @innerHTML is "" @appendChild(cloneFragment(Trix.config.toolbar.content)) @toolbarController = new Trix.ToolbarController this triggerEvent("trix-element-attached", onElement: this)
Remove unused "native" toolbar element attribute
Remove unused "native" toolbar element attribute
CoffeeScript
mit
urossmolnik/trix,GabiGrin/trix,urossmolnik/trix,basecamp/trix,ChenMichael/trix,GabiGrin/trix,GabiGrin/trix,basecamp/trix,urossmolnik/trix,basecamp/trix,ChenMichael/trix,ChenMichael/trix,basecamp/trix
6cd6cdbeb175f73204a68b5c5da185852bd63b50
test/impromptu.coffee
test/impromptu.coffee
should = require 'should' Impromptu = require '../src/impromptu' describe 'Impromptu', -> it 'should exist', -> should.exist Impromptu it 'should use semantic versions', -> /^\d+\.\d+\.\d+(\D|$)/.test(Impromptu.VERSION).should.be.true describe 'Impromptu.Error', -> it 'should have a message', -> error = new Impromptu.Error 'message' error.message.should.equal 'message' it 'should be throwable', -> (-> throw new Impromptu.Error('message')).should.throw 'message' it 'should support the `instanceof` keyword', -> error = new Impromptu.Error error.should.be.an.instanceof Impromptu.Error it 'should be extendable', -> class CustomError extends Impromptu.Error error = new CustomError error.should.be.an.instanceof Impromptu.Error error.should.be.an.instanceof CustomError
should = require 'should' Impromptu = require '../src/impromptu' describe 'Impromptu', -> it 'should exist', -> should.exist Impromptu it 'should use semantic versions', -> # https://github.com/coolaj86/semver-utils/blob/v1.0.1/semver-utils.js regex = /^((\d+)\.(\d+)\.(\d+))(?:-([\dA-Za-z\-]+(?:\.[\dA-Za-z\-]+)*))?(?:\+([\dA-Za-z\-]+(?:\.[\dA-Za-z\-]+)*))?$/ regex.test(Impromptu.VERSION).should.be.true describe 'Impromptu.Error', -> it 'should have a message', -> error = new Impromptu.Error 'message' error.message.should.equal 'message' it 'should be throwable', -> (-> throw new Impromptu.Error('message')).should.throw 'message' it 'should support the `instanceof` keyword', -> error = new Impromptu.Error error.should.be.an.instanceof Impromptu.Error it 'should be extendable', -> class CustomError extends Impromptu.Error error = new CustomError error.should.be.an.instanceof Impromptu.Error error.should.be.an.instanceof CustomError
Use an insanely complicated regex to test for a semantic version
Use an insanely complicated regex to test for a semantic version
CoffeeScript
mit
impromptu/impromptu,impromptu/impromptu
69801927da49daa724899f0744301ba0e3a8ec9d
components/GetUserToken.coffee
components/GetUserToken.coffee
noflo = require 'noflo' exports.getComponent = -> c = new noflo.Component c.description = 'Get user token from action' c.icon = 'key' c.inPorts.add 'in', datatype: 'object' c.outPorts.add 'token', datatype: 'string' c.outPorts.add 'out', datatype: 'object' c.outPorts.add 'error', datatype: 'object' noflo.helpers.WirePattern c, in: 'in' out: ['token', 'out'] async: true , (data, groups, out, callback) -> out.token.send data.state?.user?['github-token'] or null out.out.send data.payload do callback
noflo = require 'noflo' octo = require 'octo' exports.getComponent = -> c = new noflo.Component c.description = 'Get user token from action' c.icon = 'key' c.inPorts.add 'in', datatype: 'object' c.outPorts.add 'token', datatype: 'string' c.outPorts.add 'out', datatype: 'object' c.outPorts.add 'error', datatype: 'object' noflo.helpers.WirePattern c, in: 'in' out: ['token', 'out'] async: true , (data, groups, out, callback) -> token = data.state?.user?['github-token'] or null # Check that user has some API calls remaining api = octo.api() api.token token if token request = api.get '/rate_limit' request.on 'success', (res) -> remaining = res.body.rate?.remaining or 0 if remaining < 50 if token callback new Error 'GitHub API access rate limited, try again later' return callback new Error 'GitHub API access rate limited. Please log in to increase the limit' return out.token.send token out.out.send data.payload do callback request.on 'error', (err) -> error = err.error or err.body callback new Error "Failed to communicate with GitHub: #{error}" do request
Check rate limit and warn user if about to be exceeded
Check rate limit and warn user if about to be exceeded
CoffeeScript
mit
noflo/noflo-ui,noflo/noflo-ui
1a4abf1d8ebcf6e207d958c4c81a4fd41bf0e7ad
bokehjs/src/coffee/models/transforms/jitter.coffee
bokehjs/src/coffee/models/transforms/jitter.coffee
_ = require "underscore" Transform = require "./transform" p = require "../../core/properties" math = require "../../core/util/math" class Jitter extends Transform.Model initialize: (attrs, options) -> super(attrs, options) @define { mean: [ p.Number, 0 ] width: [ p.Number, 1 ] distribution: [ p.String, 'uniform'] } compute: (x) -> # Apply the transform to a single value if @get('distribution') == 'uniform' return(x + @get('mean') + ((Math.random() - 0.5) * @get('width'))) if @get('distribution') == 'normal' return(x + math.rnorm(@get('mean'), @get('width'))) v_compute: (xs) -> # Apply the tranform to a vector of values result = new Float64Array(xs.length) for x, idx in xs result[idx] = this.compute(x) return result module.exports = Model: Jitter
_ = require "underscore" Transform = require "./transform" p = require "../../core/properties" bokeh_math = require "../../core/util/math" class Jitter extends Transform.Model initialize: (attrs, options) -> super(attrs, options) @define { mean: [ p.Number, 0 ] width: [ p.Number, 1 ] distribution: [ p.String, 'uniform'] } compute: (x) -> # Apply the transform to a single value if @get('distribution') == 'uniform' return(x + @get('mean') + ((Math.random() - 0.5) * @get('width'))) if @get('distribution') == 'normal' return(x + bokeh_math.rnorm(@get('mean'), @get('width'))) v_compute: (xs) -> # Apply the tranform to a vector of values result = new Float64Array(xs.length) for x, idx in xs result[idx] = this.compute(x) return result module.exports = Model: Jitter
Change imported name from "math" to "bokeh_math" to make it more obvious this is not related to the core JS "Math" facility.
Change imported name from "math" to "bokeh_math" to make it more obvious this is not related to the core JS "Math" facility.
CoffeeScript
bsd-3-clause
DuCorey/bokeh,ptitjano/bokeh,rs2/bokeh,aavanian/bokeh,DuCorey/bokeh,percyfal/bokeh,percyfal/bokeh,ericmjl/bokeh,mindriot101/bokeh,rs2/bokeh,Karel-van-de-Plassche/bokeh,azjps/bokeh,ptitjano/bokeh,timsnyder/bokeh,DuCorey/bokeh,rs2/bokeh,bokeh/bokeh,quasiben/bokeh,phobson/bokeh,aiguofer/bokeh,philippjfr/bokeh,justacec/bokeh,dennisobrien/bokeh,draperjames/bokeh,Karel-van-de-Plassche/bokeh,philippjfr/bokeh,justacec/bokeh,timsnyder/bokeh,schoolie/bokeh,draperjames/bokeh,phobson/bokeh,azjps/bokeh,jakirkham/bokeh,jakirkham/bokeh,mindriot101/bokeh,aavanian/bokeh,percyfal/bokeh,stonebig/bokeh,quasiben/bokeh,dennisobrien/bokeh,ericmjl/bokeh,ericmjl/bokeh,draperjames/bokeh,dennisobrien/bokeh,bokeh/bokeh,clairetang6/bokeh,quasiben/bokeh,DuCorey/bokeh,clairetang6/bokeh,rs2/bokeh,bokeh/bokeh,draperjames/bokeh,jakirkham/bokeh,azjps/bokeh,aiguofer/bokeh,schoolie/bokeh,justacec/bokeh,stonebig/bokeh,azjps/bokeh,clairetang6/bokeh,aiguofer/bokeh,bokeh/bokeh,schoolie/bokeh,mindriot101/bokeh,justacec/bokeh,aiguofer/bokeh,mindriot101/bokeh,jakirkham/bokeh,jakirkham/bokeh,timsnyder/bokeh,azjps/bokeh,ptitjano/bokeh,rs2/bokeh,dennisobrien/bokeh,ericmjl/bokeh,DuCorey/bokeh,aiguofer/bokeh,clairetang6/bokeh,aavanian/bokeh,philippjfr/bokeh,schoolie/bokeh,Karel-van-de-Plassche/bokeh,ptitjano/bokeh,Karel-van-de-Plassche/bokeh,percyfal/bokeh,philippjfr/bokeh,phobson/bokeh,bokeh/bokeh,aavanian/bokeh,phobson/bokeh,timsnyder/bokeh,aavanian/bokeh,phobson/bokeh,stonebig/bokeh,ericmjl/bokeh,philippjfr/bokeh,Karel-van-de-Plassche/bokeh,draperjames/bokeh,schoolie/bokeh,dennisobrien/bokeh,percyfal/bokeh,timsnyder/bokeh,ptitjano/bokeh,stonebig/bokeh
8af63e78690cda78d8bb77c5dbf9061ebe8aa4c8
app/assets/javascripts/data-tables-init.coffee
app/assets/javascripts/data-tables-init.coffee
$(document).on "page:change", -> $(".data-table").each -> table = $(@) return if $.fn.dataTable.isDataTable(table) options = responsive: true order: [[0, "desc"]] ascColumn = table.find("th.sort-asc").index() descColumn = table.find("th.sort-desc").index() if (ascColumn >= 0) options["order"] = [[ ascColumn, "asc" ]] if (descColumn >= 0) options["order"] = [[ descColumn, "desc" ]] if table.hasClass("no-paging") options["paging"] = false table.dataTable(options)
$(document).on "page:change", -> $(".data-table").each -> table = $(@) return if $.fn.dataTable.isDataTable(table) options = responsive: true order: [[0, "desc"]] pageLength: 25 ascColumn = table.find("th.sort-asc").index() descColumn = table.find("th.sort-desc").index() if (ascColumn >= 0) options["order"] = [[ ascColumn, "asc" ]] if (descColumn >= 0) options["order"] = [[ descColumn, "desc" ]] if table.hasClass("no-paging") options["paging"] = false table.dataTable(options)
Add default page legth to 25 for datatable for readability
Add default page legth to 25 for datatable for readability
CoffeeScript
mit
on-site/StockAid,on-site/StockAid,on-site/StockAid
d0c72ebe160a958b24117c29fa144ae88f9ddd8b
lms/static/coffee/spec/requirejs_spec.coffee
lms/static/coffee/spec/requirejs_spec.coffee
describe "RequireJS", -> beforeEach -> @addMatchers requirejsTobeUndefined: -> typeof requirejs is "undefined" it "check that the RequireJS object is present in the global namespace", -> expect(RequireJS).toEqual jasmine.any(Object) expect(window.RequireJS).toEqual jasmine.any(Object) it "check that requirejs(), require(), and define() are not in the global namespace", -> expect({}).requirejsTobeUndefined() # expect(require).not.toBeDefined(); # expect(define).not.toBeDefined(); expect(window.requirejs).not.toBeDefined() expect(window.require).not.toBeDefined() expect(window.define).not.toBeDefined()
describe "RequireJS", -> beforeEach -> @addMatchers requirejsTobeUndefined: -> typeof requirejs is "undefined" requireTobeUndefined: -> typeof require is "undefined" defineTobeUndefined: -> typeof define is "undefined" it "check that the RequireJS object is present in the global namespace", -> expect(RequireJS).toEqual jasmine.any(Object) expect(window.RequireJS).toEqual jasmine.any(Object) it "check that requirejs(), require(), and define() are not in the global namespace", -> expect({}).requirejsTobeUndefined() expect({}).requireTobeUndefined() expect({}).defineTobeUndefined() expect(window.requirejs).not.toBeDefined() expect(window.require).not.toBeDefined() expect(window.define).not.toBeDefined()
Work on RequireJS Jasmine test.
Work on RequireJS Jasmine test.
CoffeeScript
agpl-3.0
nanolearningllc/edx-platform-cypress-2,chauhanhardik/populo_2,yokose-ks/edx-platform,vasyarv/edx-platform,ESOedX/edx-platform,Softmotions/edx-platform,IITBinterns13/edx-platform-dev,chauhanhardik/populo_2,antonve/s4-project-mooc,louyihua/edx-platform,dsajkl/reqiop,amir-qayyum-khan/edx-platform,vikas1885/test1,shubhdev/edx-platform,OmarIthawi/edx-platform,jbassen/edx-platform,adoosii/edx-platform,knehez/edx-platform,eestay/edx-platform,CourseTalk/edx-platform,xingyepei/edx-platform,kmoocdev/edx-platform,shurihell/testasia,wwj718/edx-platform,nanolearning/edx-platform,eestay/edx-platform,hkawasaki/kawasaki-aio8-1,eduNEXT/edx-platform,dsajkl/reqiop,playm2mboy/edx-platform,nanolearningllc/edx-platform-cypress-2,chauhanhardik/populo,hkawasaki/kawasaki-aio8-0,vismartltd/edx-platform,Unow/edx-platform,antonve/s4-project-mooc,BehavioralInsightsTeam/edx-platform,solashirai/edx-platform,pomegranited/edx-platform,abdoosh00/edx-rtl-final,RPI-OPENEDX/edx-platform,mjg2203/edx-platform-seas,devs1991/test_edx_docmode,RPI-OPENEDX/edx-platform,fly19890211/edx-platform,leansoft/edx-platform,auferack08/edx-platform,jazkarta/edx-platform-for-isc,shubhdev/edxOnBaadal,playm2mboy/edx-platform,shubhdev/edxOnBaadal,alexthered/kienhoc-platform,ampax/edx-platform,alu042/edx-platform,praveen-pal/edx-platform,arifsetiawan/edx-platform,kxliugang/edx-platform,JioEducation/edx-platform,EduPepperPDTesting/pepper2013-testing,franosincic/edx-platform,fintech-circle/edx-platform,zerobatu/edx-platform,gsehub/edx-platform,Edraak/edraak-platform,shurihell/testasia,teltek/edx-platform,Ayub-Khan/edx-platform,beni55/edx-platform,SivilTaram/edx-platform,jelugbo/tundex,shubhdev/edx-platform,Stanford-Online/edx-platform,hkawasaki/kawasaki-aio8-2,bigdatauniversity/edx-platform,jazztpt/edx-platform,nikolas/edx-platform,zubair-arbi/edx-platform,mcgachey/edx-platform,utecuy/edx-platform,tiagochiavericosta/edx-platform,mahendra-r/edx-platform,ampax/edx-platform,hkawasaki/kawasaki-aio8-1,motion2015/a3,jazkarta/edx-platform,antoviaque/edx-platform,jazztpt/edx-platform,jswope00/GAI,BehavioralInsightsTeam/edx-platform,edx-solutions/edx-platform,peterm-itr/edx-platform,hamzehd/edx-platform,kursitet/edx-platform,xinjiguaike/edx-platform,TeachAtTUM/edx-platform,JioEducation/edx-platform,y12uc231/edx-platform,msegado/edx-platform,dsajkl/reqiop,Endika/edx-platform,shubhdev/edx-platform,kursitet/edx-platform,chrisndodge/edx-platform,procangroup/edx-platform,jamiefolsom/edx-platform,mtlchun/edx,y12uc231/edx-platform,beacloudgenius/edx-platform,kmoocdev/edx-platform,msegado/edx-platform,edx-solutions/edx-platform,Shrhawk/edx-platform,jazztpt/edx-platform,xuxiao19910803/edx,itsjeyd/edx-platform,ahmedaljazzar/edx-platform,ubc/edx-platform,louyihua/edx-platform,dsajkl/reqiop,miptliot/edx-platform,dkarakats/edx-platform,jswope00/griffinx,apigee/edx-platform,TeachAtTUM/edx-platform,rue89-tech/edx-platform,naresh21/synergetics-edx-platform,openfun/edx-platform,jswope00/GAI,gymnasium/edx-platform,analyseuc3m/ANALYSE-v1,LICEF/edx-platform,Edraak/edraak-platform,yokose-ks/edx-platform,MakeHer/edx-platform,shabab12/edx-platform,LearnEra/LearnEraPlaftform,torchingloom/edx-platform,jonathan-beard/edx-platform,gsehub/edx-platform,ferabra/edx-platform,nagyistoce/edx-platform,MSOpenTech/edx-platform,kmoocdev2/edx-platform,nikolas/edx-platform,motion2015/a3,mahendra-r/edx-platform,inares/edx-platform,ahmedaljazzar/edx-platform,appliedx/edx-platform,carsongee/edx-platform,rue89-tech/edx-platform,msegado/edx-platform,jjmiranda/edx-platform,devs1991/test_edx_docmode,louyihua/edx-platform,olexiim/edx-platform,bitifirefly/edx-platform,morenopc/edx-platform,jamesblunt/edx-platform,bigdatauniversity/edx-platform,knehez/edx-platform,tanmaykm/edx-platform,Semi-global/edx-platform,AkA84/edx-platform,atsolakid/edx-platform,hastexo/edx-platform,dcosentino/edx-platform,antoviaque/edx-platform,Livit/Livit.Learn.EdX,RPI-OPENEDX/edx-platform,unicri/edx-platform,jswope00/griffinx,jruiperezv/ANALYSE,halvertoluke/edx-platform,IITBinterns13/edx-platform-dev,cognitiveclass/edx-platform,B-MOOC/edx-platform,yokose-ks/edx-platform,nttks/jenkins-test,LICEF/edx-platform,tiagochiavericosta/edx-platform,Endika/edx-platform,chrisndodge/edx-platform,fly19890211/edx-platform,angelapper/edx-platform,morenopc/edx-platform,Edraak/edraak-platform,stvstnfrd/edx-platform,wwj718/ANALYSE,caesar2164/edx-platform,rationalAgent/edx-platform-custom,vismartltd/edx-platform,rationalAgent/edx-platform-custom,syjeon/new_edx,Semi-global/edx-platform,nanolearningllc/edx-platform-cypress,mbareta/edx-platform-ft,jbassen/edx-platform,apigee/edx-platform,vismartltd/edx-platform,kalebhartje/schoolboost,zerobatu/edx-platform,ovnicraft/edx-platform,wwj718/edx-platform,J861449197/edx-platform,jzoldak/edx-platform,bigdatauniversity/edx-platform,openfun/edx-platform,nanolearning/edx-platform,zofuthan/edx-platform,fintech-circle/edx-platform,nanolearningllc/edx-platform-cypress,polimediaupv/edx-platform,arifsetiawan/edx-platform,PepperPD/edx-pepper-platform,simbs/edx-platform,xuxiao19910803/edx,doismellburning/edx-platform,procangroup/edx-platform,defance/edx-platform,sameetb-cuelogic/edx-platform-test,jamiefolsom/edx-platform,xuxiao19910803/edx-platform,chudaol/edx-platform,ahmadiga/min_edx,edx-solutions/edx-platform,cecep-edu/edx-platform,bdero/edx-platform,cognitiveclass/edx-platform,antonve/s4-project-mooc,eemirtekin/edx-platform,doismellburning/edx-platform,Kalyzee/edx-platform,stvstnfrd/edx-platform,doganov/edx-platform,franosincic/edx-platform,alu042/edx-platform,cpennington/edx-platform,jelugbo/tundex,EduPepperPD/pepper2013,martynovp/edx-platform,lduarte1991/edx-platform,procangroup/edx-platform,kalebhartje/schoolboost,marcore/edx-platform,arbrandes/edx-platform,ak2703/edx-platform,eemirtekin/edx-platform,Ayub-Khan/edx-platform,jswope00/GAI,shubhdev/edxOnBaadal,mjirayu/sit_academy,OmarIthawi/edx-platform,solashirai/edx-platform,etzhou/edx-platform,appliedx/edx-platform,kxliugang/edx-platform,devs1991/test_edx_docmode,Softmotions/edx-platform,zhenzhai/edx-platform,SravanthiSinha/edx-platform,chand3040/cloud_that,philanthropy-u/edx-platform,eduNEXT/edunext-platform,jonathan-beard/edx-platform,Livit/Livit.Learn.EdX,WatanabeYasumasa/edx-platform,hmcmooc/muddx-platform,edx/edx-platform,antoviaque/edx-platform,eduNEXT/edunext-platform,mjirayu/sit_academy,hkawasaki/kawasaki-aio8-1,DNFcode/edx-platform,ampax/edx-platform,ampax/edx-platform-backup,ahmadiga/min_edx,zofuthan/edx-platform,pelikanchik/edx-platform,Stanford-Online/edx-platform,olexiim/edx-platform,pabloborrego93/edx-platform,openfun/edx-platform,jamiefolsom/edx-platform,kamalx/edx-platform,doismellburning/edx-platform,xuxiao19910803/edx-platform,jazkarta/edx-platform,cpennington/edx-platform,edx-solutions/edx-platform,mushtaqak/edx-platform,IITBinterns13/edx-platform-dev,shubhdev/edx-platform,jazkarta/edx-platform,hamzehd/edx-platform,motion2015/edx-platform,hastexo/edx-platform,chudaol/edx-platform,fly19890211/edx-platform,JCBarahona/edX,ahmadio/edx-platform,teltek/edx-platform,shubhdev/openedx,rationalAgent/edx-platform-custom,shabab12/edx-platform,knehez/edx-platform,edry/edx-platform,pepeportela/edx-platform,zadgroup/edx-platform,BehavioralInsightsTeam/edx-platform,arifsetiawan/edx-platform,jswope00/griffinx,vasyarv/edx-platform,xuxiao19910803/edx,MSOpenTech/edx-platform,morpheby/levelup-by,syjeon/new_edx,devs1991/test_edx_docmode,gymnasium/edx-platform,xinjiguaike/edx-platform,shashank971/edx-platform,martynovp/edx-platform,inares/edx-platform,ahmadiga/min_edx,vasyarv/edx-platform,chudaol/edx-platform,SravanthiSinha/edx-platform,Edraak/circleci-edx-platform,EduPepperPDTesting/pepper2013-testing,carsongee/edx-platform,martynovp/edx-platform,jzoldak/edx-platform,beni55/edx-platform,defance/edx-platform,synergeticsedx/deployment-wipro,polimediaupv/edx-platform,wwj718/ANALYSE,peterm-itr/edx-platform,hkawasaki/kawasaki-aio8-1,playm2mboy/edx-platform,MSOpenTech/edx-platform,SivilTaram/edx-platform,dsajkl/123,gymnasium/edx-platform,beni55/edx-platform,jelugbo/tundex,zubair-arbi/edx-platform,hmcmooc/muddx-platform,inares/edx-platform,chand3040/cloud_that,benpatterson/edx-platform,chand3040/cloud_that,kursitet/edx-platform,zadgroup/edx-platform,4eek/edx-platform,defance/edx-platform,TsinghuaX/edx-platform,EduPepperPDTesting/pepper2013-testing,B-MOOC/edx-platform,halvertoluke/edx-platform,hastexo/edx-platform,pelikanchik/edx-platform,dcosentino/edx-platform,ampax/edx-platform-backup,ESOedX/edx-platform,ZLLab-Mooc/edx-platform,beacloudgenius/edx-platform,eduNEXT/edx-platform,mushtaqak/edx-platform,tanmaykm/edx-platform,lduarte1991/edx-platform,jazkarta/edx-platform,polimediaupv/edx-platform,naresh21/synergetics-edx-platform,J861449197/edx-platform,adoosii/edx-platform,motion2015/edx-platform,jswope00/griffinx,leansoft/edx-platform,kursitet/edx-platform,kmoocdev2/edx-platform,proversity-org/edx-platform,torchingloom/edx-platform,motion2015/a3,mjirayu/sit_academy,shubhdev/openedx,LICEF/edx-platform,valtech-mooc/edx-platform,xinjiguaike/edx-platform,rue89-tech/edx-platform,mbareta/edx-platform-ft,dsajkl/123,sudheerchintala/LearnEraPlatForm,raccoongang/edx-platform,valtech-mooc/edx-platform,ESOedX/edx-platform,Edraak/edx-platform,cselis86/edx-platform,jruiperezv/ANALYSE,sudheerchintala/LearnEraPlatForm,cecep-edu/edx-platform,adoosii/edx-platform,polimediaupv/edx-platform,AkA84/edx-platform,arifsetiawan/edx-platform,jruiperezv/ANALYSE,jzoldak/edx-platform,teltek/edx-platform,y12uc231/edx-platform,mbareta/edx-platform-ft,nttks/jenkins-test,eduNEXT/edx-platform,IndonesiaX/edx-platform,rue89-tech/edx-platform,cognitiveclass/edx-platform,fintech-circle/edx-platform,kamalx/edx-platform,doismellburning/edx-platform,TsinghuaX/edx-platform,pepeportela/edx-platform,Edraak/edraak-platform,chauhanhardik/populo,torchingloom/edx-platform,edry/edx-platform,devs1991/test_edx_docmode,rismalrv/edx-platform,CredoReference/edx-platform,shashank971/edx-platform,xuxiao19910803/edx-platform,unicri/edx-platform,EduPepperPD/pepper2013,nikolas/edx-platform,jamesblunt/edx-platform,nttks/jenkins-test,philanthropy-u/edx-platform,atsolakid/edx-platform,DNFcode/edx-platform,longmen21/edx-platform,CourseTalk/edx-platform,jjmiranda/edx-platform,EduPepperPD/pepper2013,xingyepei/edx-platform,cyanna/edx-platform,rismalrv/edx-platform,valtech-mooc/edx-platform,mahendra-r/edx-platform,etzhou/edx-platform,rismalrv/edx-platform,vismartltd/edx-platform,chauhanhardik/populo_2,mjirayu/sit_academy,caesar2164/edx-platform,jruiperezv/ANALYSE,raccoongang/edx-platform,Kalyzee/edx-platform,Semi-global/edx-platform,itsjeyd/edx-platform,beacloudgenius/edx-platform,mtlchun/edx,jazkarta/edx-platform,pdehaye/theming-edx-platform,pdehaye/theming-edx-platform,mcgachey/edx-platform,tiagochiavericosta/edx-platform,unicri/edx-platform,WatanabeYasumasa/edx-platform,Unow/edx-platform,amir-qayyum-khan/edx-platform,ahmadiga/min_edx,hkawasaki/kawasaki-aio8-2,valtech-mooc/edx-platform,utecuy/edx-platform,gsehub/edx-platform,waheedahmed/edx-platform,jelugbo/tundex,syjeon/new_edx,TsinghuaX/edx-platform,abdoosh00/edx-rtl-final,SravanthiSinha/edx-platform,rue89-tech/edx-platform,zerobatu/edx-platform,bitifirefly/edx-platform,CourseTalk/edx-platform,Edraak/edx-platform,miptliot/edx-platform,y12uc231/edx-platform,mtlchun/edx,B-MOOC/edx-platform,doismellburning/edx-platform,Endika/edx-platform,dkarakats/edx-platform,pelikanchik/edx-platform,angelapper/edx-platform,kmoocdev2/edx-platform,romain-li/edx-platform,pdehaye/theming-edx-platform,cselis86/edx-platform,Unow/edx-platform,adoosii/edx-platform,Shrhawk/edx-platform,zerobatu/edx-platform,jolyonb/edx-platform,ak2703/edx-platform,IONISx/edx-platform,syjeon/new_edx,jazkarta/edx-platform-for-isc,nttks/edx-platform,jbassen/edx-platform,msegado/edx-platform,pepeportela/edx-platform,solashirai/edx-platform,jolyonb/edx-platform,Ayub-Khan/edx-platform,morpheby/levelup-by,cognitiveclass/edx-platform,vikas1885/test1,jbzdak/edx-platform,bigdatauniversity/edx-platform,alexthered/kienhoc-platform,hastexo/edx-platform,motion2015/edx-platform,kxliugang/edx-platform,shubhdev/openedx,Softmotions/edx-platform,Edraak/edx-platform,mjg2203/edx-platform-seas,motion2015/a3,morenopc/edx-platform,LICEF/edx-platform,ahmedaljazzar/edx-platform,ovnicraft/edx-platform,ahmadio/edx-platform,dcosentino/edx-platform,Shrhawk/edx-platform,fly19890211/edx-platform,mbareta/edx-platform-ft,hamzehd/edx-platform,xingyepei/edx-platform,cpennington/edx-platform,ferabra/edx-platform,doganov/edx-platform,mtlchun/edx,wwj718/ANALYSE,MakeHer/edx-platform,jamesblunt/edx-platform,mushtaqak/edx-platform,analyseuc3m/ANALYSE-v1,sameetb-cuelogic/edx-platform-test,cecep-edu/edx-platform,iivic/BoiseStateX,tiagochiavericosta/edx-platform,cyanna/edx-platform,kamalx/edx-platform,utecuy/edx-platform,xinjiguaike/edx-platform,beni55/edx-platform,jswope00/griffinx,iivic/BoiseStateX,ubc/edx-platform,analyseuc3m/ANALYSE-v1,jjmiranda/edx-platform,kmoocdev/edx-platform,rhndg/openedx,openfun/edx-platform,jamesblunt/edx-platform,PepperPD/edx-pepper-platform,WatanabeYasumasa/edx-platform,vismartltd/edx-platform,arbrandes/edx-platform,mitocw/edx-platform,UXE/local-edx,appliedx/edx-platform,eduNEXT/edx-platform,vasyarv/edx-platform,peterm-itr/edx-platform,Edraak/circleci-edx-platform,xuxiao19910803/edx-platform,nanolearning/edx-platform,simbs/edx-platform,cyanna/edx-platform,ampax/edx-platform,don-github/edx-platform,Livit/Livit.Learn.EdX,angelapper/edx-platform,kursitet/edx-platform,fly19890211/edx-platform,nagyistoce/edx-platform,CredoReference/edx-platform,leansoft/edx-platform,andyzsf/edx,mitocw/edx-platform,itsjeyd/edx-platform,chauhanhardik/populo,deepsrijit1105/edx-platform,xingyepei/edx-platform,polimediaupv/edx-platform,arifsetiawan/edx-platform,pku9104038/edx-platform,synergeticsedx/deployment-wipro,hkawasaki/kawasaki-aio8-2,rhndg/openedx,jswope00/GAI,unicri/edx-platform,zerobatu/edx-platform,ferabra/edx-platform,ahmadio/edx-platform,openfun/edx-platform,jazkarta/edx-platform-for-isc,y12uc231/edx-platform,jbassen/edx-platform,bdero/edx-platform,bdero/edx-platform,jazztpt/edx-platform,ferabra/edx-platform,JioEducation/edx-platform,MakeHer/edx-platform,edx/edx-platform,deepsrijit1105/edx-platform,kmoocdev2/edx-platform,Endika/edx-platform,mcgachey/edx-platform,dsajkl/123,halvertoluke/edx-platform,zhenzhai/edx-platform,synergeticsedx/deployment-wipro,B-MOOC/edx-platform,Kalyzee/edx-platform,xuxiao19910803/edx-platform,ESOedX/edx-platform,abdoosh00/edraak,DefyVentures/edx-platform,longmen21/edx-platform,ubc/edx-platform,utecuy/edx-platform,waheedahmed/edx-platform,dkarakats/edx-platform,EduPepperPD/pepper2013,mtlchun/edx,ak2703/edx-platform,don-github/edx-platform,vikas1885/test1,naresh21/synergetics-edx-platform,chauhanhardik/populo,atsolakid/edx-platform,bitifirefly/edx-platform,JioEducation/edx-platform,cyanna/edx-platform,DefyVentures/edx-platform,don-github/edx-platform,EduPepperPDTesting/pepper2013-testing,nikolas/edx-platform,J861449197/edx-platform,PepperPD/edx-pepper-platform,jazztpt/edx-platform,benpatterson/edx-platform,beni55/edx-platform,EDUlib/edx-platform,utecuy/edx-platform,abdoosh00/edraak,eestay/edx-platform,amir-qayyum-khan/edx-platform,ovnicraft/edx-platform,abdoosh00/edraak,SivilTaram/edx-platform,apigee/edx-platform,torchingloom/edx-platform,apigee/edx-platform,rationalAgent/edx-platform-custom,mjg2203/edx-platform-seas,IndonesiaX/edx-platform,appliedx/edx-platform,romain-li/edx-platform,hkawasaki/kawasaki-aio8-0,olexiim/edx-platform,solashirai/edx-platform,kmoocdev/edx-platform,PepperPD/edx-pepper-platform,Edraak/circleci-edx-platform,sameetb-cuelogic/edx-platform-test,proversity-org/edx-platform,don-github/edx-platform,JCBarahona/edX,edry/edx-platform,Edraak/edx-platform,chauhanhardik/populo,abdoosh00/edraak,IONISx/edx-platform,tiagochiavericosta/edx-platform,chauhanhardik/populo_2,nttks/edx-platform,miptliot/edx-platform,10clouds/edx-platform,4eek/edx-platform,pepeportela/edx-platform,chudaol/edx-platform,wwj718/edx-platform,chand3040/cloud_that,bdero/edx-platform,msegado/edx-platform,DefyVentures/edx-platform,mjg2203/edx-platform-seas,appsembler/edx-platform,auferack08/edx-platform,nikolas/edx-platform,simbs/edx-platform,MSOpenTech/edx-platform,carsongee/edx-platform,motion2015/edx-platform,a-parhom/edx-platform,franosincic/edx-platform,zadgroup/edx-platform,J861449197/edx-platform,marcore/edx-platform,miptliot/edx-platform,Lektorium-LLC/edx-platform,B-MOOC/edx-platform,TsinghuaX/edx-platform,mushtaqak/edx-platform,zubair-arbi/edx-platform,praveen-pal/edx-platform,praveen-pal/edx-platform,nanolearningllc/edx-platform-cypress-2,yokose-ks/edx-platform,romain-li/edx-platform,halvertoluke/edx-platform,AkA84/edx-platform,chrisndodge/edx-platform,ahmedaljazzar/edx-platform,zofuthan/edx-platform,shubhdev/edxOnBaadal,yokose-ks/edx-platform,CredoReference/edx-platform,tanmaykm/edx-platform,inares/edx-platform,Edraak/edx-platform,UOMx/edx-platform,arbrandes/edx-platform,doganov/edx-platform,Stanford-Online/edx-platform,hmcmooc/muddx-platform,longmen21/edx-platform,franosincic/edx-platform,appsembler/edx-platform,pabloborrego93/edx-platform,SivilTaram/edx-platform,dcosentino/edx-platform,shubhdev/openedx,olexiim/edx-platform,tanmaykm/edx-platform,alexthered/kienhoc-platform,mitocw/edx-platform,appliedx/edx-platform,jolyonb/edx-platform,pomegranited/edx-platform,SravanthiSinha/edx-platform,rismalrv/edx-platform,pomegranited/edx-platform,philanthropy-u/edx-platform,longmen21/edx-platform,zhenzhai/edx-platform,JCBarahona/edX,motion2015/a3,torchingloom/edx-platform,olexiim/edx-platform,benpatterson/edx-platform,AkA84/edx-platform,shubhdev/openedx,shashank971/edx-platform,simbs/edx-platform,eduNEXT/edunext-platform,edx/edx-platform,auferack08/edx-platform,franosincic/edx-platform,lduarte1991/edx-platform,shashank971/edx-platform,shurihell/testasia,J861449197/edx-platform,UOMx/edx-platform,jamiefolsom/edx-platform,zubair-arbi/edx-platform,pdehaye/theming-edx-platform,WatanabeYasumasa/edx-platform,arbrandes/edx-platform,IndonesiaX/edx-platform,jzoldak/edx-platform,EduPepperPDTesting/pepper2013-testing,zadgroup/edx-platform,chand3040/cloud_that,auferack08/edx-platform,Livit/Livit.Learn.EdX,playm2mboy/edx-platform,nanolearningllc/edx-platform-cypress,caesar2164/edx-platform,kalebhartje/schoolboost,stvstnfrd/edx-platform,romain-li/edx-platform,abdoosh00/edx-rtl-final,shubhdev/edx-platform,andyzsf/edx,dkarakats/edx-platform,xinjiguaike/edx-platform,LearnEra/LearnEraPlaftform,rhndg/openedx,etzhou/edx-platform,ZLLab-Mooc/edx-platform,nttks/edx-platform,adoosii/edx-platform,etzhou/edx-platform,IndonesiaX/edx-platform,praveen-pal/edx-platform,bitifirefly/edx-platform,vasyarv/edx-platform,appsembler/edx-platform,alexthered/kienhoc-platform,jbzdak/edx-platform,DefyVentures/edx-platform,SravanthiSinha/edx-platform,Stanford-Online/edx-platform,waheedahmed/edx-platform,4eek/edx-platform,carsongee/edx-platform,cselis86/edx-platform,CredoReference/edx-platform,kamalx/edx-platform,ampax/edx-platform-backup,hamzehd/edx-platform,zadgroup/edx-platform,nagyistoce/edx-platform,ampax/edx-platform-backup,prarthitm/edxplatform,jbzdak/edx-platform,simbs/edx-platform,mushtaqak/edx-platform,knehez/edx-platform,proversity-org/edx-platform,nanolearningllc/edx-platform-cypress,pomegranited/edx-platform,Ayub-Khan/edx-platform,ak2703/edx-platform,antonve/s4-project-mooc,nttks/jenkins-test,atsolakid/edx-platform,ovnicraft/edx-platform,pabloborrego93/edx-platform,jazkarta/edx-platform-for-isc,ak2703/edx-platform,DNFcode/edx-platform,shabab12/edx-platform,cyanna/edx-platform,chrisndodge/edx-platform,sudheerchintala/LearnEraPlatForm,RPI-OPENEDX/edx-platform,leansoft/edx-platform,dsajkl/123,bigdatauniversity/edx-platform,louyihua/edx-platform,cecep-edu/edx-platform,zofuthan/edx-platform,xingyepei/edx-platform,Semi-global/edx-platform,AkA84/edx-platform,devs1991/test_edx_docmode,chudaol/edx-platform,mitocw/edx-platform,ahmadio/edx-platform,cselis86/edx-platform,OmarIthawi/edx-platform,kmoocdev/edx-platform,proversity-org/edx-platform,nttks/jenkins-test,10clouds/edx-platform,IITBinterns13/edx-platform-dev,andyzsf/edx,ahmadiga/min_edx,waheedahmed/edx-platform,jbassen/edx-platform,abdoosh00/edx-rtl-final,BehavioralInsightsTeam/edx-platform,TeachAtTUM/edx-platform,atsolakid/edx-platform,morpheby/levelup-by,JCBarahona/edX,doganov/edx-platform,hkawasaki/kawasaki-aio8-0,waheedahmed/edx-platform,prarthitm/edxplatform,ZLLab-Mooc/edx-platform,alu042/edx-platform,eestay/edx-platform,prarthitm/edxplatform,SivilTaram/edx-platform,LICEF/edx-platform,pelikanchik/edx-platform,IONISx/edx-platform,zhenzhai/edx-platform,DNFcode/edx-platform,alu042/edx-platform,hkawasaki/kawasaki-aio8-0,MSOpenTech/edx-platform,nanolearning/edx-platform,zofuthan/edx-platform,morenopc/edx-platform,mcgachey/edx-platform,valtech-mooc/edx-platform,kxliugang/edx-platform,martynovp/edx-platform,UXE/local-edx,zubair-arbi/edx-platform,caesar2164/edx-platform,cecep-edu/edx-platform,prarthitm/edxplatform,mahendra-r/edx-platform,sameetb-cuelogic/edx-platform-test,morpheby/levelup-by,stvstnfrd/edx-platform,morenopc/edx-platform,sameetb-cuelogic/edx-platform-test,eemirtekin/edx-platform,jelugbo/tundex,a-parhom/edx-platform,Lektorium-LLC/edx-platform,jbzdak/edx-platform,procangroup/edx-platform,wwj718/edx-platform,eemirtekin/edx-platform,IndonesiaX/edx-platform,sudheerchintala/LearnEraPlatForm,itsjeyd/edx-platform,dkarakats/edx-platform,shashank971/edx-platform,xuxiao19910803/edx,cpennington/edx-platform,EDUlib/edx-platform,ampax/edx-platform-backup,nanolearningllc/edx-platform-cypress-2,naresh21/synergetics-edx-platform,mjirayu/sit_academy,raccoongang/edx-platform,martynovp/edx-platform,Shrhawk/edx-platform,UXE/local-edx,pomegranited/edx-platform,beacloudgenius/edx-platform,MakeHer/edx-platform,JCBarahona/edX,ubc/edx-platform,etzhou/edx-platform,halvertoluke/edx-platform,motion2015/edx-platform,leansoft/edx-platform,iivic/BoiseStateX,UXE/local-edx,knehez/edx-platform,LearnEra/LearnEraPlaftform,nttks/edx-platform,fintech-circle/edx-platform,deepsrijit1105/edx-platform,synergeticsedx/deployment-wipro,rhndg/openedx,wwj718/edx-platform,ovnicraft/edx-platform,deepsrijit1105/edx-platform,jbzdak/edx-platform,vikas1885/test1,EduPepperPD/pepper2013,amir-qayyum-khan/edx-platform,Kalyzee/edx-platform,eemirtekin/edx-platform,jonathan-beard/edx-platform,beacloudgenius/edx-platform,jamesblunt/edx-platform,a-parhom/edx-platform,Kalyzee/edx-platform,eestay/edx-platform,kalebhartje/schoolboost,don-github/edx-platform,shubhdev/edxOnBaadal,marcore/edx-platform,marcore/edx-platform,wwj718/ANALYSE,teltek/edx-platform,benpatterson/edx-platform,EduPepperPDTesting/pepper2013-testing,mcgachey/edx-platform,appsembler/edx-platform,antoviaque/edx-platform,nanolearningllc/edx-platform-cypress-2,edry/edx-platform,CourseTalk/edx-platform,Edraak/circleci-edx-platform,a-parhom/edx-platform,inares/edx-platform,nagyistoce/edx-platform,Semi-global/edx-platform,ZLLab-Mooc/edx-platform,peterm-itr/edx-platform,EDUlib/edx-platform,Unow/edx-platform,pku9104038/edx-platform,chauhanhardik/populo_2,alexthered/kienhoc-platform,nagyistoce/edx-platform,mahendra-r/edx-platform,antonve/s4-project-mooc,UOMx/edx-platform,gsehub/edx-platform,4eek/edx-platform,PepperPD/edx-pepper-platform,nttks/edx-platform,zhenzhai/edx-platform,lduarte1991/edx-platform,vikas1885/test1,OmarIthawi/edx-platform,jruiperezv/ANALYSE,kxliugang/edx-platform,hmcmooc/muddx-platform,devs1991/test_edx_docmode,shurihell/testasia,pku9104038/edx-platform,TeachAtTUM/edx-platform,solashirai/edx-platform,MakeHer/edx-platform,Shrhawk/edx-platform,ubc/edx-platform,jjmiranda/edx-platform,kmoocdev2/edx-platform,10clouds/edx-platform,iivic/BoiseStateX,bitifirefly/edx-platform,edry/edx-platform,eduNEXT/edunext-platform,nanolearning/edx-platform,ferabra/edx-platform,EDUlib/edx-platform,benpatterson/edx-platform,raccoongang/edx-platform,DefyVentures/edx-platform,Lektorium-LLC/edx-platform,kamalx/edx-platform,jonathan-beard/edx-platform,analyseuc3m/ANALYSE-v1,hamzehd/edx-platform,rismalrv/edx-platform,philanthropy-u/edx-platform,jolyonb/edx-platform,UOMx/edx-platform,romain-li/edx-platform,rhndg/openedx,Ayub-Khan/edx-platform,shabab12/edx-platform,Lektorium-LLC/edx-platform,devs1991/test_edx_docmode,Softmotions/edx-platform,shurihell/testasia,doganov/edx-platform,playm2mboy/edx-platform,ZLLab-Mooc/edx-platform,IONISx/edx-platform,10clouds/edx-platform,DNFcode/edx-platform,longmen21/edx-platform,dsajkl/123,hkawasaki/kawasaki-aio8-2,jonathan-beard/edx-platform,cognitiveclass/edx-platform,jamiefolsom/edx-platform,iivic/BoiseStateX,unicri/edx-platform,angelapper/edx-platform,cselis86/edx-platform,gymnasium/edx-platform,xuxiao19910803/edx,wwj718/ANALYSE,pku9104038/edx-platform,Edraak/circleci-edx-platform,rationalAgent/edx-platform-custom,IONISx/edx-platform,kalebhartje/schoolboost,RPI-OPENEDX/edx-platform,4eek/edx-platform,dcosentino/edx-platform,Softmotions/edx-platform,andyzsf/edx,LearnEra/LearnEraPlaftform,edx/edx-platform,jazkarta/edx-platform-for-isc,ahmadio/edx-platform,pabloborrego93/edx-platform,nanolearningllc/edx-platform-cypress,defance/edx-platform
b6cfb1299e78dc71980bb35613b386e01040d156
assets/js/gimme/gimme.coffee
assets/js/gimme/gimme.coffee
do -> mapOptions = center: new (google.maps.LatLng)(43.8321591, 4.3428536) mapTypeId: google.maps.MapTypeId.ROADMAP streetViewControl: false scrollwheel: false navigationControl: false mapTypeControl: false scaleControl: false draggable: false zoomControlOptions: style: google.maps.ZoomControlStyle.SMALL zoom: 9 map = new (google.maps.Map)(document.getElementById('map'), mapOptions) Caman.remoteProxy = "proxy"; Caman.DEBUG = true Caman "#uploaded-marker", () -> @brightness(5).render()
do -> mapOptions = center: new (google.maps.LatLng)(43.8321591, 4.3428536) mapTypeId: google.maps.MapTypeId.ROADMAP streetViewControl: false scrollwheel: false navigationControl: false mapTypeControl: false scaleControl: false draggable: false zoomControlOptions: style: google.maps.ZoomControlStyle.SMALL zoom: 9 map = new (google.maps.Map)(document.getElementById('map'), mapOptions) marker = new (google.maps.Marker)( position: map.getCenter() map: map draggable:true animation: google.maps.Animation.DROP icon: url: window.originalImage ) Caman.remoteProxy = "proxy"; Caman.DEBUG = true Caman "#uploaded-marker", () -> @brightness(5).render()
Add uploaded marker to map
Add uploaded marker to map
CoffeeScript
apache-2.0
mr-wildcard/marquis
0fc458045e70da588bc6861672aa058365667871
src/FileManager/Selection.coffee
src/FileManager/Selection.coffee
angular.module('fileManager'). factory('Selection', ()-> return class Selection @_files: {} @number: 0 @add: (file)-> if not @hasFile(file) @_files[file._id] = file @number++ @remove: (file)-> if @hasFile(file) delete @_files[file._id] @number-- @clear: -> @_files = {} @number = 0 @hasFile: (file)-> if typeof file == 'object' id = file._id else id = file return @_files.hasOwnProperty(id) @select: (file, ctrl = false, contextMenu = false) -> if contextMenu and @hasFile(file) return true @clear() if not ctrl if not @hasFile(file) @add(file) else @remove(file) @isEmpty: -> return @number == 0 @isSingle: -> return @number == 1 @isMultiple: -> return @number > 1 @forEach: (callback)-> for id, file of @_files callback(file) @getSize: -> total = 0 for id, file of @_files total += file.metadata.size ? 0 return total @getFirst: -> for i, file of @_files return file @hasAtLeastOneFolder: -> for i, file of @_files if file.isFolder() return true return false )
angular.module('fileManager'). factory('Selection', ($rootScope)-> class Selection @_files: {} @number: 0 @add: (file)-> if not @hasFile(file) @_files[file._id] = file @number++ @remove: (file)-> if @hasFile(file) delete @_files[file._id] @number-- @clear: -> @_files = {} @number = 0 @hasFile: (file)-> if typeof file == 'object' id = file._id else id = file return @_files.hasOwnProperty(id) @select: (file, ctrl = false, contextMenu = false) -> if contextMenu and @hasFile(file) return true @clear() if not ctrl if not @hasFile(file) @add(file) else @remove(file) @isEmpty: -> return @number == 0 @isSingle: -> return @number == 1 @isMultiple: -> return @number > 1 @forEach: (callback)-> for id, file of @_files callback(file) @getSize: -> total = 0 for id, file of @_files total += file.metadata.size ? 0 return total @getFirst: -> for i, file of @_files return file @hasAtLeastOneFolder: -> for i, file of @_files if file.isFolder() return true return false $rootScope.$on('$stateChangeSuccess', -> Selection.clear() ) return Selection )
Clear selection every time you change of folder.
Clear selection every time you change of folder.
CoffeeScript
mit
LupoLibero/Lupo-proto
0e13c51a8a4375dabd2cfd1615a379b24575921c
spec/keybinding-panel-spec.coffee
spec/keybinding-panel-spec.coffee
path = require 'path' KeybindingPanel = require '../lib/keybinding-panel' describe "KeybindingPanel", -> panel = null describe "loads and displays core key bindings", -> beforeEach -> expect(atom.keymap).toBeDefined() spyOn(atom.keymap, 'getKeyBindings').andReturn [ source: "#{atom.getLoadSettings().resourcePath}#{path.sep}keymaps", keystroke: 'ctrl-a', command: 'core:select-all', selector: '.editor' ] panel = new KeybindingPanel it "shows exactly one row", -> expect(panel.keybindingRows.children().length).toBe 1 row = panel.keybindingRows.find(':first') expect(row.find('.keystroke').text()).toBe 'ctrl-a' expect(row.find('.command').text()).toBe 'core:select-all' expect(row.find('.source').text()).toBe 'Core' expect(row.find('.selector').text()).toBe '.editor'
path = require 'path' KeybindingPanel = require '../lib/keybinding-panel' describe "KeybindingPanel", -> panel = null beforeEach -> expect(atom.keymap).toBeDefined() spyOn(atom.keymap, 'getKeyBindings').andReturn [ source: "#{atom.getLoadSettings().resourcePath}#{path.sep}keymaps", keystroke: 'ctrl-a', command: 'core:select-all', selector: '.editor' ] panel = new KeybindingPanel it "loads and displays core key bindings", -> expect(panel.keybindingRows.children().length).toBe 1 row = panel.keybindingRows.find(':first') expect(row.find('.keystroke').text()).toBe 'ctrl-a' expect(row.find('.command').text()).toBe 'core:select-all' expect(row.find('.source').text()).toBe 'Core' expect(row.find('.selector').text()).toBe '.editor' describe "when a keybinding is copied", -> describe "when the keybinding file ends in .cson", -> it "writes a CSON snippet to the clipboard", -> spyOn(atom.keymap, 'getUserKeymapPath').andReturn 'keymap.cson' panel.find('.copy-icon').click() expect(atom.pasteboard.read()[0]).toBe """ '.editor': 'ctrl-a': 'core:select-all' """ describe "when the keybinding file ends in .json", -> it "writes a JSON snippet to the clipboard", -> spyOn(atom.keymap, 'getUserKeymapPath').andReturn 'keymap.json' panel.find('.copy-icon').click() expect(atom.pasteboard.read()[0]).toBe """ ".editor": { "ctrl-a": "core:select-all" } """
Add spec for copying keybinding
Add spec for copying keybinding
CoffeeScript
mit
atom/settings-view
f5009812a5a6ca7b630f207b653eb362cd63f046
public/javascripts/game.photography.coffee
public/javascripts/game.photography.coffee
jQuery(document).ready -> class photographyGame constructor: (@debug, @map) -> init: () -> return
jQuery(document).ready -> class photographyGame constructor: (@debug, @map) -> init: () -> class location constructor: (@position, @name, @icon) -> @marker addTo: (map) -> if @icon marker = new google.maps.Marker({ position: @position, map: map, icon: @icon, title: @name }) else marker = new google.maps.Marker({ position: @position, map: map, title: @name }) @marker = marker @setListener(@marker) setListener: (marker) -> self = this marker.addListener 'click', -> mark.moveTo(self) class player extends location constructor: (@position, @name, @icon) -> super(@position, @name, @icon) @playerMarker initTo: (map) -> @playerMarker = new google.maps.Marker({ position: @position, map: map, icon: @icon, title: 'Mark' }) moveTo: (location) -> console.log("current position", this.position, "new position", location.position, "distance travelled", distanceTravelled(this.position, location.position) + 'km') @position = location.position @playerMarker.setPosition(new google.maps.LatLng(location.position.lat, location.position.lng))
Add location and player classes
Add location and player classes
CoffeeScript
mit
STAB-Inc/Bygone,STAB-Inc/Bygone,STAB-Inc/Bygone
4e92a5fea793c4ea458a984054f6c281999b0ba3
lib/package-menu-view.coffee
lib/package-menu-view.coffee
_ = require 'underscore-plus' {View} = require 'atom' # Menu item view for an installed package module.exports = class PackageMenuView extends View @content: -> @li => @a outlet: 'link', class: 'icon', => @span outlet: 'nameLabel' @span outlet: 'packageAuthorLabel', class: 'package-author' initialize: (@pack, @packageManager) -> @attr('name', @pack.name) @attr('type', 'package') @nameLabel.text(@packageManager.getPackageTitle(@pack)) @packageAuthorLabel.text(@packageManager.getAuthorUserName(@pack)) @checkForUpdates() @subscribe @packageManager, 'package-updated theme-updated', ({name}) => @link.removeClass('icon-squirrel') if @pack.name is name checkForUpdates: -> return if atom.packages.isBundledPackage(@pack.name) @getAvailablePackage (availablePackage) => if @packageManager.canUpgrade(@pack, availablePackage) @link.addClass('icon-squirrel') getAvailablePackage: (callback) -> @packageManager.getOutdated().then (packages) => for pack in packages when pack.name is @pack.name callback(pack)
_ = require 'underscore-plus' {View} = require 'atom' # Menu item view for an installed package module.exports = class PackageMenuView extends View @content: -> @li => @a outlet: 'link', class: 'icon', => @span outlet: 'nameLabel' @span outlet: 'packageAuthorLabel', class: 'package-author' initialize: (@pack, @packageManager) -> @attr('name', @pack.name) @attr('type', 'package') @nameLabel.text(@packageManager.getPackageTitle(@pack)) @packageAuthorLabel.text(@packageManager.getAuthorUserName(@pack)) @checkForUpdates() @subscribe @packageManager, 'package-updated theme-updated', ({name}) => @link.removeClass('icon-squirrel') if @pack.name is name checkForUpdates: -> return if atom.packages.isBundledPackage(@pack.name) @getAvailablePackage (availablePackage) => if @packageManager.canUpgrade(@pack, availablePackage.latestVersion) @link.addClass('icon-squirrel') getAvailablePackage: (callback) -> @packageManager.getOutdated().then (packages) => for pack in packages when pack.name is @pack.name callback(pack)
Check if package can be upgraded using the latest version
Check if package can be upgraded using the latest version
CoffeeScript
mit
atom/settings-view
23b1a9249729ce599eda12f1b81e32cf88436336
test/has_one_chage_test.coffee
test/has_one_chage_test.coffee
require './setup' Song = null Album = null spy = null describe 'has one change', -> beforeEach -> Song = Ento() .use(Ento.relations) .attr('id') .attr('title') Album = Ento() .use(Ento.relations) .attr('id') .hasOne('song', Song, as: 'album') describe 'propagate change event of children', -> beforeEach -> spy = sinon.spy() it 'one level, change:attr', -> parent = new Album() parent.song = new Song(title: 'Wrecking Ball') parent.on('change:song', spy) parent.song.title = 'Party in the USA' expect(spy).calledOnce it 'one level, change', -> parent = new Album() parent.song = new Song(title: 'Wrecking Ball') parent.on('change', spy) parent.song.title = 'Party in the USA' expect(spy).calledOnce expect(spy.firstCall.args).be.like ['title']
require './setup' Song = null Album = null spy = null describe 'has one change', -> beforeEach -> Song = Ento() .use(Ento.relations) .attr('id') .attr('title') Album = Ento() .use(Ento.relations) .attr('id') .hasOne('song', Song, as: 'album') describe 'propagate change event of children', -> beforeEach -> spy = sinon.spy() it 'one level, change:attr', -> parent = new Album() parent.song = new Song(title: 'Wrecking Ball') parent.on('change:song', spy) parent.song.title = 'Party in the USA' expect(spy).calledOnce it 'one level, change', -> parent = new Album() parent.song = new Song(title: 'Wrecking Ball') parent.on('change', spy) parent.song.title = 'Party in the USA' expect(spy).calledOnce expect(spy.firstCall.args).be.like [['song']]
Fix test related to relations.
Fix test related to relations.
CoffeeScript
mit
rstacruz/ento
62815471244de3b8dd1d9b03e8c683a5be37778b
lib/layervault/organization.coffee
lib/layervault/organization.coffee
module.exports = class Organization constructor: (org, @api) -> @orgName = if typeof org is "object" then org.name else org node: (path, cb) -> @api.get @apiPath(path), {}, cb apiPath: (path) -> path = path.path || path.name if typeof path is "object" "/#{encodeURIComponent(@orgName)}/#{path}"
module.exports = class Organization constructor: (org, @api) -> @orgName = if typeof org is "object" then org.name else org node: (path..., cb) -> @api.get @apiPath(path), {}, cb apiPath: (path) -> compiledPath = [] for p in path p = p.path || p.name if typeof p is "object" compiledPath.push p "/#{encodeURIComponent(@orgName)}/#{compiledPath.join('/')}"
Change semantics of node() a little to allow for string path or multiple arguments
Change semantics of node() a little to allow for string path or multiple arguments
CoffeeScript
mit
layervault/layervault_js_client
e08a8a0602b2dfaf58b20829b59137358899fc71
src/io/tty/log.coffee
src/io/tty/log.coffee
winston = require 'winston' util = require 'util' winston .remove winston.transports.Console .add winston.transports.File, level: 'silly' filename: 'output.log' json: no exports.log = (level, params...) -> winston.log level, (params.map util.inspect)...
winston = require 'winston' util = require 'util' winston .remove winston.transports.Console .add winston.transports.File, level: 'silly' filename: 'output.log' json: no exports.log = (level, params...) -> if params[0] instanceof Error winston.log level, params[0], params[1..]... else winston.log level, (params.map util.inspect)...
Tweak to Winston output handler
Tweak to Winston output handler
CoffeeScript
mit
raymond-h/krogue
9195806b7fd704d5e7977f2a6c7d6e24218264cb
source/scripts/views/list/item.coffee
source/scripts/views/list/item.coffee
Base = require 'base' class ListItem extends Base.View template: require '../../templates/list' elements: '.name': 'name' '.count': 'count' events: 'click': 'click' constructor: -> Base.touchify(@events) super return unless @list? @listen [ @list, 'select': @select 'change': @updateName 'before:destroy': @remove @list.tasks, 'change': @updateCount ] # Create the list element render: => @el = $ @template @list @bind() el = @el[0] el.list = @list mouse.addDrop(el) # TODO: Setup droppable # @el.droppable # hoverClass: 'ui-state-active' # tolerance: 'pointer' # drop: (event, ui) => # movedTask = Task.get(ui.draggable.attr('id').slice(5)) # List.current.moveTask(movedTask, @list) return this updateCount: => @count.text @list.tasks.length updateName: => @name.text @list.name click: => @list.trigger 'select' select: => @el.addClass 'current' remove: => @unbind() @el.remove() module.exports = ListItem
Base = require 'base' class ListItem extends Base.View template: require '../../templates/list' elements: '.name': 'name' '.count': 'count' events: 'mousedown': 'click' constructor: -> Base.touchify(@events) super return unless @list? @listen [ @list, 'select': @select 'change': @updateName 'before:destroy': @remove @list.tasks, 'change': @updateCount ] # Create the list element render: => @el = $ @template @list @bind() el = @el[0] el.list = @list mouse.addDrop(el) # TODO: Setup droppable # @el.droppable # hoverClass: 'ui-state-active' # tolerance: 'pointer' # drop: (event, ui) => # movedTask = Task.get(ui.draggable.attr('id').slice(5)) # List.current.moveTask(movedTask, @list) return this updateCount: => @count.text @list.tasks.length updateName: => @name.text @list.name click: => @list.trigger 'select' select: => @el.addClass 'current' remove: => @unbind() @el.remove() module.exports = ListItem
Use mousedown instead of click
Use mousedown instead of click
CoffeeScript
unknown
CaffeinatedCode/nitro,nitrotasks/nitro,nitrotasks/nitro