commit
stringlengths
40
40
old_file
stringlengths
4
264
new_file
stringlengths
4
264
old_contents
stringlengths
0
4.24k
new_contents
stringlengths
1
5.44k
subject
stringlengths
14
778
message
stringlengths
15
9.92k
lang
stringclasses
277 values
license
stringclasses
13 values
repos
stringlengths
5
127k
18d5a3b8df70181bd3e5afc893e727e25291f493
lib/extension-helper.coffee
lib/extension-helper.coffee
extensionsByFenceName = 'bash': 'sh' 'coffee': 'coffee' 'coffeescript': 'coffee' 'coffee-script': 'coffee' 'css': 'css' 'go': 'go' 'java': 'java' 'javascript': 'js' 'js': 'js' 'json': 'json' 'less': 'less' 'mustache': 'mustache' 'python': 'py' 'rb': 'rb' 'ruby': 'rb' 'sh': 'sh' 'toml':...
extensionsByFenceName = 'bash': 'sh' 'coffee': 'coffee' 'coffeescript': 'coffee' 'coffee-script': 'coffee' 'css': 'css' 'go': 'go' 'java': 'java' 'javascript': 'js' 'js': 'js' 'json': 'json' 'less': 'less' 'mustache': 'mustache' 'objc': 'm' 'objective-c': 'm' 'python': 'py' 'rb': 'rb' ...
Add Extension types for objc
Add Extension types for objc
CoffeeScript
mit
danielgtaylor/atom-api-blueprint-preview,tkssharma/markdown-preview,atom/markdown-preview,ArnaudRinquin/markdown-preview,grimmer0125/markdown-preview-kramdown,makyo/markdown-preview,rugk/markdown-preview,Galadirith/markdown-preview,sctlee/markdown-preview
1f6a72615795b58eca1f2d805d72860f127ef3f7
frontend-admin/src/app/components/mnoe-api/api.svc.coffee
frontend-admin/src/app/components/mnoe-api/api.svc.coffee
@App.factory 'MnoeApiSvc', ($log, Restangular, inflector) -> return Restangular.withConfig((RestangularProvider) -> RestangularProvider.setBaseUrl('/mnoe/jpi/v1') RestangularProvider.setDefaultHeaders({Accept: "application/json"}) # Unwrap api response RestangularProvider.addResponseInterceptor( ...
@App.factory 'MnoeApiSvc', ($log, Restangular, inflector) -> return Restangular.withConfig((RestangularProvider) -> RestangularProvider.setBaseUrl('/mnoe/jpi/v1/admin') RestangularProvider.setDefaultHeaders({Accept: "application/json"}) # Unwrap api response RestangularProvider.addResponseInterceptor...
Set the right admin API URL
Set the right admin API URL
CoffeeScript
apache-2.0
maestrano/mno-enterprise,maestrano/mno-enterprise,hedudelgado/mno-enterprise,hedudelgado/mno-enterprise,hedudelgado/mno-enterprise,maestrano/mno-enterprise,hedudelgado/mno-enterprise,maestrano/mno-enterprise
1080f7883af54f5b395da4acedeb5f20693451ac
app/assets/javascripts/rahani/helpers/pagination.js.coffee
app/assets/javascripts/rahani/helpers/pagination.js.coffee
Rahani.module 'Helpers', -> @pagination = (view, collection, selector = '.pager-region') -> @paginationView = new Rahani.Views.Application.Pagination collection: collection renderPagination = => view.$el.find(selector).html(@paginationView.render().el) view.on 'render', renderPagination ...
Rahani.module 'Helpers', -> @pagination = (view, collection, selector = '.pager-region') -> paginationView = new Rahani.Views.Application.Pagination collection: collection renderPagination = => view.$el.find(selector).html(paginationView.render().el) view.on 'render', renderPagination p...
Allow multiple pagers on a single page.
Allow multiple pagers on a single page.
CoffeeScript
apache-2.0
pipeline/dotledger,pipeline/dotledger,malclocke/dotledger,dotledger/dotledger,pipeline/dotledger,amorphid/dotledger,dotledger/dotledger,amorphid/dotledger,malclocke/dotledger,amorphid/dotledger,malclocke/dotledger,dotledger/dotledger,dotledger/dotledger
3658d008dcac183246ecd9702ab0131a6abbcbd9
spec/javascripts/jquery.paginator_spec.coffee
spec/javascripts/jquery.paginator_spec.coffee
require 'jquery.history.js' require 'jquery.paginator.js' describe "Paginator", -> beforeEach -> loadFixtures('paginator.html') $('#list').ajaxPaginator() describe 'clicking a link', -> link = null beforeEach -> link = $('.pagination a:first') link.click() it "calls the link via ...
require 'jquery.history.js' require 'jquery.paginator.js' describe "Paginator", -> beforeEach -> loadFixtures('paginator.html') $('#list').ajaxPaginator() describe 'clicking a link', -> link = null beforeEach -> link = $('.pagination a:first') link.click() it "calls the link via ...
Test que comprueba cuando estamos cargando.
Test que comprueba cuando estamos cargando.
CoffeeScript
mit
javierv/41cero10asesores,javierv/41cero10asesores
3ccd876f9d00da099c5a2f6a91c1554b3def4614
keymaps/command-palette.cson
keymaps/command-palette.cson
'.platform-darwin, .platform-darwin .command-palette .editor': 'cmd-shift-p': 'command-palette:toggle' '.platform-win32, .platform-win32 .command-palette .editor': 'ctrl-shift-p': 'command-palette:toggle' '.platform-linux, .platform-linux .command-palette .editor': 'ctrl-shift-p': 'command-palette:toggle'
'.platform-darwin, .platform-darwin .command-palette atom-text-editor': 'cmd-shift-p': 'command-palette:toggle' '.platform-win32, .platform-win32 .command-palette atom-text-editor': 'ctrl-shift-p': 'command-palette:toggle' '.platform-linux, .platform-linux .command-palette atom-text-editor': 'ctrl-shift-p': 'co...
Fix deprecated selectors in keymap
Fix deprecated selectors in keymap
CoffeeScript
mit
atom/command-palette
75a0ddb69b57c812982b3023d10bd7a67b8e4b7e
client/app/books/book.coffee
client/app/books/book.coffee
App = require '../app' Book = require './model' App.PriceChartView = require './price-chart' # App.BookRoute = Ember.Route.extend # serialize: (model) -> # book_id: model._id App.BookController = Ember.ObjectController.extend deleteBook: -> title = @get('model').get('title') @get('model').one 'didD...
App = require '../app' Book = require './model' App.PriceChartView = require './price-chart' App.BookRoute = Ember.Route.extend model: (params) -> Book.find(params.book_id) App.BookController = Ember.ObjectController.extend deleteBook: -> title = @get('model').get('title') @get('model').one 'didDel...
Make Books Page Load Faster
Make Books Page Load Faster Display stuff after just one request and update the list of books with another one.
CoffeeScript
mit
killercup/atric
707f44b9b6fc937b4d28e9e6e9e3618b3479dbce
bin/www.coffee
bin/www.coffee
# Module dependencies. models = require '../models' app = require('../app')(models.sequelize) http = require 'http' config = require '../config' # Event listener for HTTP server "error" event. onError = (error) -> if error.syscall != 'listen' throw error bind = if typeof port == 'string' then 'Pipe ' ...
# Module dependencies. models = require '../models' app = require('../app')(models.sequelize) http = require 'http' config = require '../config' # Event listener for HTTP server "error" event. onError = (error) -> if error.syscall != 'listen' throw error bind = if typeof port == 'string' then 'Pipe ' ...
Add TODO for database migrations
Add TODO for database migrations
CoffeeScript
mit
jez/cmd-queue,jez/cmd-queue,jez/cmd-queue
f514488656e5a2e5efc22e8e423d7befd4d9ce27
assets/scripts/mandrill_merge.coffee
assets/scripts/mandrill_merge.coffee
window.MandrillMerge or= {} class MandrillMergeApp constructor: -> @bindEvents() bindEvents: -> $('#hello-coffeescript').on('click', @greet) submit_my_form: (caller)-> caller.parent().prev('form').submit() go_back: (caller)-> alert 'watch this space' $ -> window.MandrillMerge.app = new Ma...
window.MandrillMerge or= {} class MandrillMergeApp constructor: -> @bindEvents() bindEvents: -> $('#hello-coffeescript').on('click', @greet) submit_my_form: (caller)-> caller.parent().prev('form').submit() go_back: (caller)-> caller.parents('.accordion-navigation').prev().find('a').click() ...
Implement back button. Wasn't that hard.
Implement back button. Wasn't that hard.
CoffeeScript
mit
envato/mandrill-merge,envato/mandrill-merge
b30fbc6a5091a2b62758c4aaa537bb54b916a383
app/assets/javascripts/sprangular/static_content/services/page.coffee
app/assets/javascripts/sprangular/static_content/services/page.coffee
angular.module('Sprangular.StaticContent').service 'StaticContent', ($q, $http) -> service = current: {} findContent: (id) -> _service = @ deferred = $q.defer() $http.get "/api/pages/#{id}.json" .success (data) -> _service.current = data deferred.resolve "Success...
angular.module('Sprangular.StaticContent').service 'StaticContent', ($q, $http) -> service = findContent: (id) -> $http.get "/api/pages/#{id}.json" service
Refactor service to remove extra promise
Refactor service to remove extra promise
CoffeeScript
bsd-3-clause
sprangular/sprangular_static_content,sprangular/sprangular_static_content,sprangular/sprangular_static_content
2aa576aab2a867cfc4ff97069d2129fb2e80bdec
src/components/task-step/step-mixin.cjsx
src/components/task-step/step-mixin.cjsx
React = require 'react' BS = require 'react-bootstrap' {TaskActions} = require '../../flux/task' {TaskStepActions, TaskStepStore} = require '../../flux/task-step' LoadableItem = require '../loadable-item' {CardBody} = require '../pinned-header-footer-card/sections' _ = require 'underscore' module.exports = getInit...
React = require 'react' BS = require 'react-bootstrap' _ = require 'underscore' LoadableItem = require '../loadable-item' {CardBody} = require '../pinned-header-footer-card/sections' module.exports = renderGenericFooter: -> buttonClasses = '-continue' buttonClasses += ' disabled' unless @isContinueEnabled(...
Simplify logic, use tutor-ui-banner class
Simplify logic, use tutor-ui-banner class
CoffeeScript
agpl-3.0
openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js
f9501e213c8bbe1d33a88f0102c22b3c406f0c26
tests/batman/testing/model_test_case_test.coffee
tests/batman/testing/model_test_case_test.coffee
QUnit.module "Batman.ModelTestCase", setup: -> @testCase = new Batman.ModelTestCase class @Foo extends Batman.Model @resourceName: 'foo' @validate 'title', presence: true @encode 'foo', 'bar' @encode 'baz', decode: false encode: (v) -> "!#{v}!" @foo = new @Foo ...
QUnit.module "Batman.ModelTestCase", setup: -> @testCase = new Batman.ModelTestCase class @Foo extends Batman.Model @resourceName: 'foo' @validate 'title', presence: true @encode 'foo', 'bar' @encode 'baz', decode: false encode: (v) -> "!#{v}!" @foo = new @Foo ...
Add explicit assertion count for model test case tests
Add explicit assertion count for model test case tests
CoffeeScript
mit
getshuvo/batman,getshuvo/batman
061069f03f5e7247186d28b038abcb2270529693
client/code/view/view/tile.coffee
client/code/view/view/tile.coffee
class Cu.View.ViewTile extends Backbone.View className: 'view tile' tagName: 'a' attributes: -> href: "/dataset/#{@model.get('plugsInTo').get('box')}/view/#{@model.get 'box'}" events: 'click .hide': 'hideView' initialize: -> @model.on 'change', @render, this render: -> @$el.html JST['view...
class Cu.View.ViewTile extends Backbone.View className: 'view tile' tagName: 'a' attributes: -> href: "/dataset/#{@model.get('plugsInTo').get('box')}/view/#{@model.get 'box'}" events: 'click .hide-view': 'hideView' 'click .dropdown-menu a': 'dropdownMenuItemClick' 'click .rename-view': 'renameV...
Rename and hide links working
Rename and hide links working
CoffeeScript
agpl-3.0
scraperwiki/custard,scraperwiki/custard,scraperwiki/custard
0fdae737038a72858ab1854e18dea72bd845359b
highlights/highlight-filename-from-stdin.coffee
highlights/highlight-filename-from-stdin.coffee
#!highlights/node_modules/coffee-script/bin/coffee Highlights = require 'highlights' fs = require 'fs' path = require 'path' highlighter = new Highlights() highlighter.requireGrammarsSync modulePath: require.resolve('./atom-language-perl6/package.json') stdin = process.openStdin() stdin.setEncoding 'utf8' stdin.o...
#!highlights/node_modules/coffee-script/bin/coffee Highlights = require 'highlights' fs = require 'fs' path = require 'path' highlighter = new Highlights() highlighter.requireGrammarsSync modulePath: require.resolve('./atom-language-perl6/package.json') stdin = process.openStdin() stdin.setEncoding 'utf8' mystderr...
Make highlights even less talkative. aka not at all
Make highlights even less talkative. aka not at all
CoffeeScript
artistic-2.0
MasterDuke17/doc,dmaestro/doc,tbrowder/doc,stmuk/doc,perl6/doc,gfldex/doc,gfldex/doc,jonathanstowe/doc,dmaestro/doc,perl6/doc,dmaestro/doc,gfldex/doc,dmaestro/doc,gfldex/doc,perl6/doc,perl6/doc,stmuk/doc,antquinonez/doc,antquinonez/doc,antquinonez/doc,jonathanstowe/doc,stmuk/doc,stmuk/doc,tbrowder/doc,MasterDuke17/doc,...
5dae8aecc97d24e0b72ea0d552a500cc433670a7
lib/styleguide.coffee
lib/styleguide.coffee
styleguideUri = 'atom://styleguide' createStyleguideView = (state) -> StyleguideView = require './styleguide-view' new StyleguideView(state) atom.deserializers.add name: 'StyleguideView' deserialize: (state) -> createStyleguideView(state) module.exports = activate: -> atom.workspace.addOpener (filePath...
{CompositeDisposable} = require 'atom' StyleguideUri = 'atom://styleguide' createStyleguideView = (state) -> StyleguideView = require './styleguide-view' new StyleguideView(state) atom.deserializers.add name: 'StyleguideView' deserialize: (state) -> createStyleguideView(state) module.exports = activate: ->...
Remove workspace opener on deactivate
Remove workspace opener on deactivate
CoffeeScript
mit
atom/styleguide
02f51311200c1cd8d35a8552f137f6bfbc5fd585
app/assets/javascripts/chapter-carousel.coffee
app/assets/javascripts/chapter-carousel.coffee
$ -> $owl = $(".chapter-projects") $owl.owlCarousel loop: false, nav: true, margin: 10, autoWidth: true, dotsContainer: ".owl-dots-wrapper #owl-dots", responsive: 0: {items: 2}, 600: {items: 2}, 960: {items: 2}, 1200: {items: 3...
$ -> $owl = $(".chapter-projects") $owl.owlCarousel loop: false, nav: true, margin: 10, autoWidth: true, dotsContainer: ".owl-dots-wrapper #owl-dots", responsive: 0: {items: 2}, 600: {items: 2}, 960: {items: 2}, 1200: {items: 3...
Fix chapter page nav direction
Fix chapter page nav direction
CoffeeScript
agpl-3.0
awesomefoundation/awesomebits,awesomefoundation/awesomebits,awesomefoundation/awesomebits,awesomefoundation/awesomebits,awesomefoundation/awesomebits
6174858821bf841db85da278d886613b8ad540a3
app/assets/javascripts/rglossa/views/current_paginator_page_view.coffee
app/assets/javascripts/rglossa/views/current_paginator_page_view.coffee
App.CurrentPaginatorPageView = Em.TextField.extend classNames: 'input-mini' # If we bind the value to the currentPageNo of the controller, it will # a page change for each key press, causing a page change for each # digit in a multi-digit page number. We don't want that, so we rather # initialize the value o...
App.CurrentPaginatorPageView = Em.TextField.extend classNames: 'input-mini' # If we use a two-way binding from the value to the currentPageNo of the # controller, it will cause a page change for each key press, meaning a page # change for each digit in a multi-digit page number. We don't want that, so # we r...
Set up a one-way binding for the paginator input
Set up a one-way binding for the paginator input
CoffeeScript
mit
textlab/rglossa,textlab/rglossa,textlab/glossa,textlab/glossa,textlab/rglossa,textlab/rglossa,textlab/glossa,textlab/glossa,textlab/rglossa,textlab/glossa
62ee0a82ae0a2c5d962dd8d10180762f9ed409a0
app/assets/javascripts/controllers/map.js.coffee
app/assets/javascripts/controllers/map.js.coffee
Wheelmap = @Wheelmap Wheelmap.MapController = Ember.ArrayController.extend boundsRatioBuffer: 0.3 previousBounds: null center: null zoom: null startNode: null nodes: [] isLoading: false init: ()-> properties = center: new L.LatLng(52.50521, 13.4231) zoom: 12 if $.cookie('last_lat'...
Wheelmap = @Wheelmap Wheelmap.MapController = Ember.ArrayController.extend boundsRatioBuffer: 0.3 previousBounds: null center: null zoom: null startNode: null nodes: [] isLoading: false init: ()-> properties = center: new L.LatLng(52.50521, 13.4231) zoom: 12 if $.cookie('last_lat'...
Fix wrong lon attribute name.
Fix wrong lon attribute name.
CoffeeScript
agpl-3.0
sozialhelden/wheelmap,sozialhelden/wheelmap,sozialhelden/wheelmap,sozialhelden/wheelmap,sozialhelden/wheelmap
60372af0b2dc7ac017cb04c9f9162ec5d10c325b
app/frontend/javascripts/visualization.js.coffee
app/frontend/javascripts/visualization.js.coffee
VisualizationBase = require './visualization-base.js' class Visualization extends VisualizationBase constructor: (_id) -> console.log 'Visualization' super _id resize: => # setup container height h = if $('body').hasClass('fullscreen') then $(window).height() else $(window).height() - 178 # -50-6...
VisualizationBase = require './visualization-base.js' class Visualization extends VisualizationBase constructor: (_id) -> console.log 'Visualization' super _id # activate table tabs selector $('#visualization-table-selector a').click (e) -> e.preventDefault() $(this).tab 'show' resize...
Fix visualization/show tables tab selection
Fix visualization/show tables tab selection
CoffeeScript
agpl-3.0
civio/onodo,civio/onodo,civio/onodo,civio/onodo
0d1e107d2126b80fe6ff9d8f46f6c3ec03078aa1
app/js/jail_iframe/classes/proxy_message.coffee
app/js/jail_iframe/classes/proxy_message.coffee
FactlinkJailRoot.showProxyMessage = -> content = """ <div class="proxy-message"> <strong>Factlink demo page</strong> <ul> <li>Get the <a href="https://factlink.com">extension</a> to add discussions on every site <li>Or <a href="https://factlink.com/p/on-your-site">install</a> Factlink ...
FactlinkJailRoot.showProxyMessage = -> content = """ <div class="proxy-message"> <strong>Factlink demo page</strong> <ul> <li>Get the <a href="https://factlink.com">extension</a> to add discussions on every site <li>Or <a href="https://factlink.com/p/on-your-site">install</a> Factlink ...
Put notice on the left, on the right didn't *feel* right (pun intended).
Put notice on the left, on the right didn't *feel* right (pun intended). If someone who owns a site opens Factlink in the proxy and is all like, what the heck is this doing on my site, they should always see some kind of explanation. Hiding away the explanation under the sidebar seems therefore not a good idea.
CoffeeScript
mit
Factlink/js-library,Factlink/js-library,Factlink/js-library
6b84b91eacde10213e1dbb881fe4fd86a53daeee
app/assets/javascripts/editable.js.coffee
app/assets/javascripts/editable.js.coffee
$ -> enableEditables() enableEditables = -> $('span.editable').editable (value, settings) -> $span = $(this) data = {_method: 'PUT'} data[$span.data('attribute')] = value # TODO: We should handle failures and timeouts in POSTing, and make our own "Saving..." indicator. $.post($span.data('url'),...
$ -> enableEditables() enableEditables = -> $('span.editable').editable (value, settings) -> $span = $(this) data = {_method: 'PUT'} data[$span.data('attribute')] = value # TODO: We should handle failures and timeouts in POSTing, and make our own "Saving..." indicator. $.post($span.data('url'),...
Configure jEditable to not add "Click to edit" on blank cells.
Configure jEditable to not add "Click to edit" on blank cells.
CoffeeScript
mit
boochtek/DynamicDB,boochtek/DynamicDB,boochtek/DynamicDB
1399ee46898f5bb08fc62ff653ab6c1863c76430
services/web/app/coffee/Features/Notifications/NotificationsBuilder.coffee
services/web/app/coffee/Features/Notifications/NotificationsBuilder.coffee
logger = require("logger-sharelatex") NotificationsHandler = require("./NotificationsHandler") module.exports = # Note: notification keys should be url-safe groupPlan: (user, licence)-> key : "join-sub-#{licence.subscription_id}" create: (callback = ->)-> messageOpts = groupName: licence.name subscr...
logger = require("logger-sharelatex") NotificationsHandler = require("./NotificationsHandler") module.exports = # Note: notification keys should be url-safe groupPlan: (user, licence)-> key : "join-sub-#{licence.subscription_id}" create: (callback = ->)-> messageOpts = groupName: licence.name subscr...
Fix reference to `@key` in log expression.
Fix reference to `@key` in log expression.
CoffeeScript
agpl-3.0
sharelatex/sharelatex
87a61baa93d2903b2b617abc3d98dc76335cedb8
js-library/app/js/jail_iframe/util/create.coffee
js-library/app/js/jail_iframe/util/create.coffee
getTextRange = -> doc = window.document if doc.getSelection doc.getSelection() else if doc.selection doc.selection.createRange().text else '' FactlinkJailRoot.createFactFromSelection = -> success = -> FactlinkJailRoot.createButton.hide() FactlinkJailRoot.off 'factlinkAdded', success se...
getTextRange = -> doc = window.document if doc.getSelection doc.getSelection() else if doc.selection doc.selection.createRange().text else '' FactlinkJailRoot.createFactFromSelection = -> success = -> FactlinkJailRoot.createButton.hide() FactlinkJailRoot.off 'modalOpened', success selI...
Revert "Don't depend on modalOpened events but on factlinkAdded events for hiding the loading button"
Revert "Don't depend on modalOpened events but on factlinkAdded events for hiding the loading button" This reverts commit 5ba5108e925cde7082a0e1e837b2d28ae2388c7f.
CoffeeScript
mit
daukantas/factlink-core,Factlink/factlink-core,daukantas/factlink-core,Factlink/factlink-core,daukantas/factlink-core,Factlink/factlink-core,daukantas/factlink-core,Factlink/factlink-core
cfb60e385ae35354111270681a8857556386d507
highlights/highlight-filename-from-stdin.coffee
highlights/highlight-filename-from-stdin.coffee
#!highlights/node_modules/coffee-script/bin/coffee Highlights = require 'highlights' fs = require 'fs' path = require 'path' highlighter = new Highlights() highlighter.requireGrammarsSync modulePath: require.resolve('./atom-language-perl6/package.json') stdin = process.openStdin() stdin.setEncoding 'utf8' mystderr ...
#!highlights/node_modules/coffee-script/bin/coffee Highlights = require 'highlights' fs = require 'fs' path = require 'path' highlighter = new Highlights() highlighter.requireGrammarsSync modulePath: require.resolve('./atom-language-perl6/package.json') stdin = process.openStdin() stdin.setEncoding 'utf8' mystderr ...
Add some more fallback for the Highlights runner
Add some more fallback for the Highlights runner If the file we are passed doesn't exist, we check back to see if it is then created. We give an error regardless if we don't find the file the first time, but this makes it a little more fault tolerant.
CoffeeScript
artistic-2.0
gfldex/doc,perl6/doc,MasterDuke17/doc,stmuk/doc,perl6/doc,gfldex/doc,antquinonez/doc,stmuk/doc,gfldex/doc,dmaestro/doc,gfldex/doc,antquinonez/doc,jonathanstowe/doc,stmuk/doc,perl6/doc,antquinonez/doc,tbrowder/doc,jonathanstowe/doc,MasterDuke17/doc,antquinonez/doc,dmaestro/doc,jonathanstowe/doc,stmuk/doc,dmaestro/doc,st...
96f923d3641caf1c0f44a8a4e09d80f2b91d329b
core/app/backbone/views/channels/add_channel_to_channels_button_view.coffee
core/app/backbone/views/channels/add_channel_to_channels_button_view.coffee
#= require ./add_channel_to_channels_modal_view class window.AddChannelToChannelsButtonView extends Backbone.Marionette.Layout template: 'channels/add_channel_to_channels_button' events: "click .js-add-to-channel-button": "openAddToChannelModal" initialize: -> @collection = @model.getOwnContainingChann...
#= require ./add_channel_to_channels_modal_view class window.AddChannelToChannelsButtonView extends Backbone.Marionette.Layout template: 'channels/add_channel_to_channels_button' events: "click .js-add-to-channel-button": "openAddToChannelModal" initialize: -> @collection = @model.getOwnContainingChann...
Fix channel suggestion in add-to-channel on channel page
Fix channel suggestion in add-to-channel on channel page
CoffeeScript
mit
Factlink/factlink-core,daukantas/factlink-core,Factlink/factlink-core,daukantas/factlink-core,Factlink/factlink-core,daukantas/factlink-core,Factlink/factlink-core,daukantas/factlink-core
2bb4461378cec090c165f16483e4dc47c45f23dd
test/api/loader.spec.coffee
test/api/loader.spec.coffee
{Testing, expect, sinon, _} = require 'openstax-react-components/test/helpers' $ = require 'jquery' describe 'API loader', -> beforeEach -> @jquery = ajax: sinon.spy -> d = $.Deferred() _.defer -> d.resolve({}) d.promise() delete require.cache[require.resolve('api')] delet...
{Testing, expect, sinon, _} = require 'openstax-react-components/test/helpers' $ = require 'jquery' describe 'API loader', -> beforeEach -> @jquery = ajax: sinon.spy -> d = $.Deferred() _.defer -> d.resolve({}) d.promise() delete require.cache[require.resolve('api')] delet...
Add done() and set delay
Add done() and set delay
CoffeeScript
agpl-3.0
openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js
5c0e58006b98cff41d65cbabc491645925cc662b
src/scripts/helpers/backbone/views/base.coffee
src/scripts/helpers/backbone/views/base.coffee
define [ 'jquery' 'underscore' 'backbone' ], ($, _, Backbone) -> class Region constructor: (el, parent) -> @parent = parent @el = el show: (view) -> @close() @views = null @append(view) append: (view) -> @$el = @$el or @parent.$el.find(@el) view.parent = ...
define [ 'jquery' 'underscore' 'backbone' ], ($, _, Backbone) -> class Region constructor: (el, parent) -> @parent = parent @el = el show: (view) -> @close() @views = null @append(view) append: (view) -> @$el = @$el or @parent.$el.find(@el) view.parent = ...
Allow template to be a function
Allow template to be a function
CoffeeScript
agpl-3.0
dak/webview,katalysteducation/webview,katalysteducation/webview,Connexions/webview,Connexions/webview,dak/webview,katalysteducation/webview,dak/webview,carolinelane10/webview,Connexions/webview,Connexions/webview,katalysteducation/webview
5c15c6c86cd7568a77d12185ca604de3eaf2eadb
src/plugins/markdown.coffee
src/plugins/markdown.coffee
marked = require 'marked' highlight = require '../highlight' # Initialize markdown marked.setOptions gfm: true module.exports = converters: markdown: priority: 2 matches: (ext) -> ext is '.md' or ext is '.markdown' outputExtension: (ext) -> '.html' convert: (content, ca...
marked = require 'marked' highlight = require('pygments').colorize # Initialize markdown marked.setOptions gfm: true smartypants: true highlight: (code, lang, callback) -> highlight code, lang, 'html', (data) -> # Strip out the HTML wrapper added around the code data = data.replace( # Fin...
Use async API from latest version of marked
Use async API from latest version of marked
CoffeeScript
mit
fortes/enfield,fortes/enfield
9e4026aba322c30367bd277053f2b5ef746f301d
source/js/main.coffee
source/js/main.coffee
#= jquery/jquery
#= jquery/jquery app = angular.module 'barebones', [] app.controller 'mainController', ($scope) -> $scope.appName = 'BareBones'
Add angular declaration so it works
Add angular declaration so it works
CoffeeScript
mit
dansackett/barebones
a66df13e71ed5d838d60660425b317b2f61f58e0
app/assets/javascripts/date_time_input.js.coffee
app/assets/javascripts/date_time_input.js.coffee
$(document).on 'ready page:change', -> $('input[type=datetime]').prop('type','text').datetimepicker useSeconds: false sideBySide: false $('input[type=date]').prop('type','text').datetimepicker pickTime: false $('input.datetime').on 'dp.change', (event)-> hidden = $(event.target).next 'input[type...
$(document).on 'ready page:change', -> $('input[type=datetime]').prop('type','text').datetimepicker useSeconds: false sideBySide: false $('input[type=date]').prop('type','text').datetimepicker pickTime: false handleChange = (format)-> (event)-> hidden = $(event.target).next 'input[type=hid...
Allow to clear datetime inputs
Allow to clear datetime inputs
CoffeeScript
mit
hwuethrich/scoobar,hwuethrich/scoobar
dfd893984152e389b87ec154da01e64af2b55e37
lib/minimap-selection.coffee
lib/minimap-selection.coffee
MinimapSelectionView = require './minimap-selection-view' module.exports = active: false views: {} activate: (state) -> minimapPackage = atom.packages.getLoadedPackage('minimap') return @deactivate() unless minimapPackage? @minimap = require minimapPackage.path @minimap.registerPlugin 'selecti...
MinimapSelectionView = require './minimap-selection-view' module.exports = active: false views: {} activate: (state) -> minimapPackage = atom.packages.getLoadedPackage('minimap') return @deactivate() unless minimapPackage? @minimap = require minimapPackage.path return @deactivate() unless @min...
Add version test for minimap v3
Add version test for minimap v3
CoffeeScript
mit
atom-minimap/minimap-selection
dc1635c9da885491e0be5246429758554c2775f3
gulpfile.coffee
gulpfile.coffee
# Load all required libraries. gulp = require 'gulp' gutil = require 'gulp-util' clean = require('gulp-clean') coffee = require 'gulp-coffee' coffeelint = require('gulp-coffeelint') istanbul = require 'gulp-istanbul' mocha = require 'gulp-mocha' gulp.task 'clean', -> gulp.src(['lib/**/*.js'], read: false).pipe(clea...
# Load all required libraries. gulp = require 'gulp' gutil = require 'gulp-util' clean = require('gulp-clean') coffee = require 'gulp-coffee' coffeelint = require('gulp-coffeelint') istanbul = require 'gulp-istanbul' mocha = require 'gulp-mocha' gulp.task 'clean', -> gulp.src(['lib/**/*.js'], read: false).pipe(clea...
Add include untested option to istanbul
Add include untested option to istanbul
CoffeeScript
mit
duereg/fit-parser
b10baaa65cf145a7df982f18462ae929e36683a8
app/assets/javascripts/custom-bootstrap.js.coffee
app/assets/javascripts/custom-bootstrap.js.coffee
$document = $(document) $document.on 'click.dropdown', '[data-toggle="collapse"]', (e)-> # Don't close dropdown when accordion togglers are clicked e.stopPropagation() $document.on 'click.dropdown', '[data-toggle="dropdown"]', (e)-> # Close all collapse elements, if dropdown was closed $parent = $(this).paren...
$document = $(document) $document.on 'click.dropdown', '[data-toggle="collapse"]', (e)-> # Don't close dropdown when accordion togglers are clicked e.stopPropagation() $document.on 'click.dropdown', '[data-toggle="dropdown"]', (e)-> # Close all collapse elements, if dropdown was closed $parent = $(this).paren...
Add fix for arrows in collapsables showing the wrong collapse status.
Add fix for arrows in collapsables showing the wrong collapse status.
CoffeeScript
agpl-3.0
sozialhelden/wheelmap,sozialhelden/wheelmap,sozialhelden/wheelmap,sozialhelden/wheelmap,sozialhelden/wheelmap
3bdf9c0f32e8e96df1a9ffec6f19f18daa73e216
app/scripts/lib/LocationGrid.coffee
app/scripts/lib/LocationGrid.coffee
Game = @Game class Game.LocationGrid constructor: (settings) -> xs = @_coordList(settings.x) ys = @_coordList(settings.y) coords = [] for y in ys for x in xs coords.push { x, y } @freeCoords = _.shuffle coords _coordList: (listSettings) -> for i in [0...listSettings.steps] ...
Game = @Game class Game.LocationGrid constructor: (settings) -> settings = _.defaults(settings, x: start: 0 steps: 1 stepSize: 1 y: start: 0 steps: 1 stepSize: 1 ) xs = @_coordList(settings.x) ys = @_coordList(settings.y) coords = [] ...
Add defaults for single axis grids
Add defaults for single axis grids
CoffeeScript
mit
matthijsgroen/game-play,matthijsgroen/game-play,matthijsgroen/game-play
318914363a20001667e9292dd32c9c025825b7f7
src/bgg.coffee
src/bgg.coffee
# Description # A hubot script to query Board Game Geek # # Configuration: # LIST_OF_ENV_VARS_TO_SET # # Commands: # hubot hello - <what the respond trigger does> # orly - <what the hear trigger does> # # Notes: # <optional notes required for the script> # # Author: # Bart Dorsey[@<org>] options = timeo...
# Description # A hubot script to query Board Game Geek # # Configuration: # LIST_OF_ENV_VARS_TO_SET # # Commands: # hubot hello - <what the respond trigger does> # orly - <what the hear trigger does> # # Notes: # <optional notes required for the script> # # Author: # Bart Dorsey[@<org>] options = timeo...
Replace all spaces with +
Replace all spaces with +
CoffeeScript
mit
bartdorsey/hubot-bgg,bartdorsey/hubot-bgg
b95733edd493df3a0195cde2c5014171d5764e99
src/scripts/modules/media/tabs/content/node.coffee
src/scripts/modules/media/tabs/content/node.coffee
define (require) -> $ = require('jquery') router = require('cs!router') analytics = require('cs!helpers/handlers/analytics') BaseView = require('cs!helpers/backbone/views/base') template = require('hbs!./node-template') require('less!./node') return class TocNodeView extends BaseView template: templa...
define (require) -> $ = require('jquery') router = require('cs!router') analytics = require('cs!helpers/handlers/analytics') BaseView = require('cs!helpers/backbone/views/base') template = require('hbs!./node-template') require('less!./node') return class TocNodeView extends BaseView template: templa...
Fix navigating to pages from the ToC
Fix navigating to pages from the ToC
CoffeeScript
agpl-3.0
Connexions/webview,katalysteducation/webview,katalysteducation/webview,katalysteducation/webview,Connexions/webview,dak/webview,katalysteducation/webview,Connexions/webview,Connexions/webview,dak/webview,carolinelane10/webview,dak/webview
a9249e2344373f4c84497a4eb2f61521118c8c4e
core/app/backbone/factlink/cross_fade_region.coffee
core/app/backbone/factlink/cross_fade_region.coffee
Backbone.Factlink ||= {} class Backbone.Factlink.CrossFadeRegion extends Backbone.Marionette.Region fadeIn: -> @$el?.stop().hide().fadeIn(@_fadeTime()) fadeOut: (callback=->) -> @$el?.stop().fadeOut(@_fadeTime(), callback) crossFade: (newView) -> if @currentView @fadeOut => @show newView else ...
Backbone.Factlink ||= {} class Backbone.Factlink.CrossFadeRegion extends Backbone.Marionette.Region fadeIn: -> @ensureEl() @$el.stop().hide().fadeIn(@_fadeTime()) fadeOut: (callback=->) -> @ensureEl() @$el.stop().fadeOut(@_fadeTime(), callback) crossFade: (newView) -> if @currentView ...
Call ensureEl instead of checking if @$el exists, otherwise behaviour is unexpected, e.g. callback may not be called
Call ensureEl instead of checking if @$el exists, otherwise behaviour is unexpected, e.g. callback may not be called
CoffeeScript
mit
daukantas/factlink-core,Factlink/factlink-core,daukantas/factlink-core,daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core,Factlink/factlink-core
db28163e48c1c96438798f0c13e075c5c3c91ec1
source/assets/javascripts/application.coffee
source/assets/javascripts/application.coffee
# ************************************* # # Application # -> Manifest # # ************************************* # ------------------------------------- # Namespace # ------------------------------------- #= require presenter # ------------------------------------- # Routes # ----------------------------------...
# ************************************* # # Application # -> Manifest # # ************************************* # ------------------------------------- # Namespace # ------------------------------------- #= require presenter # ------------------------------------- # Routes # ----------------------------------...
Fix URL redirect when in sub-directory
Fix URL redirect when in sub-directory
CoffeeScript
mit
drewbarontini/gifpoint,drewbarontini/gifpoint
594fe6790eb7cf31bd19a6d721313b148077efb1
web/site/src/javascript/scatter/ScatterDrawer.coffee
web/site/src/javascript/scatter/ScatterDrawer.coffee
# Created by AshGillman, 05/08/12 __ = require '../helpers' ScatterChart = require('../NvWrapper').ScatterChart DrawerBase = require '../DrawerBase' ScatterDrawer = class ScatterDrawer extends DrawerBase constructor: (@parent, sensor_metadata, @ts_params) -> super(@parent, sensor_metadata, @ts_params...
# Created by AshGillman, 05/08/12 __ = require '../helpers' ScatterChart = require('../NvWrapper').ScatterChart DrawerBase = require '../DrawerBase' ScatterDrawer = class ScatterDrawer extends DrawerBase constructor: (@parent, sensor_metadata, @ts_params) -> super(@parent, sensor_metadata, @ts_params...
Fix DOM leak in scatterplot
Fix DOM leak in scatterplot
CoffeeScript
mit
jcuroboclub/Federation-Place,jcuroboclub/Federation-Place,jcuroboclub/Federation-Place,jcuroboclub/Federation-Place
05402ffc806f3e16fbc66d5bb5c29820d1298981
coach/src/task/errors.cjsx
coach/src/task/errors.cjsx
React = require 'react' NoExercises = React.createClass displayName: 'NoExercises' render: -> <div className='no-exercises'> Sorry, there are no exercises for this module. </div> CourseEnded = React.createClass displayName: 'NoExercises' render: -> <div className='no-exercises'> Sorry,...
React = require 'react' NoExercises = React.createClass displayName: 'NoExercises' render: -> <div className='no-exercises'> Sorry, there are no exercises for this module. </div> CourseEnded = React.createClass displayName: 'CourseEnded' render: -> <div className='course-ended'> This C...
Use correct error message for course ended
Use correct error message for course ended
CoffeeScript
agpl-3.0
openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js
e70f12146187ee4cbe8e4918075930cbf2c54bfe
services/web/app/coffee/models/ProjectInvite.coffee
services/web/app/coffee/models/ProjectInvite.coffee
mongoose = require 'mongoose' Settings = require 'settings-sharelatex' Schema = mongoose.Schema ObjectId = Schema.ObjectId THIRTY_DAYS_IN_SECONDS = 60 * 60 * 24 * 30 ProjectInviteSchema = new Schema( { email: String token: String sendingUserId: ObjectId projectId: ObjectId privi...
mongoose = require 'mongoose' Settings = require 'settings-sharelatex' Schema = mongoose.Schema ObjectId = Schema.ObjectId THIRTY_DAYS_IN_SECONDS = 60 * 60 * 24 * 30 ProjectInviteSchema = new Schema( { email: String token: String sendingUserId: ObjectId projectId: ObjectId privi...
Correct name of expireAfterSeconds index
Correct name of expireAfterSeconds index
CoffeeScript
agpl-3.0
sharelatex/sharelatex
71985d5bdbe98782ab751d606777b1fce944fa05
specs/unit/type_factory/factory/js_type_spec.coffee
specs/unit/type_factory/factory/js_type_spec.coffee
TypeFactory = require '../../../../lib/type/factory' should = require 'should' describe 'TypeFactory#jsType', -> factory = new TypeFactory describe 'when used with a JS class', -> subject = factory.jsType(Number) subject.should.equal(Number) describe 'when used with a JS class name', -> subj...
TypeFactory = require '../../../../lib/support/factory' should = require 'should' describe 'TypeFactory#jsType', -> factory = new TypeFactory describe 'when used with a JS class', -> subject = factory.jsType(Number) subject.should.equal(Number) describe 'when used with a JS class name', -> s...
Fix one require on new test
Fix one require on new test
CoffeeScript
mit
llambeau/finitio.js,llambeau/finitio.js
3afa607d227e6400e0a6be477eb7da82a5817b25
app/assets/javascripts/pods/pods_store.js.coffee
app/assets/javascripts/pods/pods_store.js.coffee
class @PodsStore records: [] all: -> @records update: (new_records) -> @records = @records.concat(new_records) @writeObjects(new_records) writeObjects: (pods) -> r = indexedDB.open('pods', 1) r.onupgradeneeded = (e) -> db = event.target.result if !db.objectStoreNames.contains 'po...
class @PodsStore records: [] all: -> @records update: (new_records) -> @records = @records.concat(new_records) @countAll (c) -> console.log c @writeObjects(new_records) writeObjects: (pods) -> @database (db) -> t = db.transaction 'pods', 'readwrite' s = t.objectStore('pods'...
Add index ddb record count.
Add index ddb record count.
CoffeeScript
mit
bsingr/cocoa-tree,bsingr/cocoa-tree,bsingr/cocoa-tree
423deacad25ae91fabf94097bebd83cbbb54ffc1
engine/node_fetch_file.coffee
engine/node_fetch_file.coffee
# This module allows fetch to load local files from file:// # in node.js, electron and NW.js if window.process?.execPath req = eval 'require' fs = req 'fs' class Body constructor: (err, @buffer) -> @ok = not err @status = '' @statusText = err?.message ...
# This module allows fetch to load local files from file:// # in node.js, electron and NW.js if window.process?.execPath and process.execPath != '/' req = eval 'require' fs = req 'fs' class Body constructor: (err, @buffer) -> @ok = not err @status = '' @status...
Fix check of actual node.js (and not a polyfill of process).
Fix check of actual node.js (and not a polyfill of process).
CoffeeScript
mit
myou-engine/myou-engine
d3b6c0626761f18c354255df68d51fcbeed90286
src/trans-eventsource.coffee
src/trans-eventsource.coffee
# ***** BEGIN LICENSE BLOCK ***** # Copyright (c) 2011-2012 VMware, Inc. # # For the license see COPYING. # ***** END LICENSE BLOCK ***** utils = require('./utils') transport = require('./transport') class EventSourceReceiver extends transport.ResponseReceiver protocol: "eventsource" doSendFrame: (payload) ...
# ***** BEGIN LICENSE BLOCK ***** # Copyright (c) 2011-2012 VMware, Inc. # # For the license see COPYING. # ***** END LICENSE BLOCK ***** utils = require('./utils') transport = require('./transport') class EventSourceReceiver extends transport.ResponseReceiver protocol: "eventsource" doSendFrame: (payload) ...
Remove charset from even source. Spec says it is always utf-8.
Remove charset from even source. Spec says it is always utf-8.
CoffeeScript
mit
sockjs/sockjs-node,modulexcite/sockjs-node,modulexcite/sockjs-node,sockjs/sockjs-node
a2f52c318db53d54e0a31068b935c5f2f7581513
src/webpackConfigBase.coffee
src/webpackConfigBase.coffee
webpack = require 'webpack' LANGS = ['en_gb'] module.exports = resolve: # Add automatically the following extensions to required modules extensions: ['', '.coffee', '.cjsx', '.js'] plugins: [ new webpack.ContextReplacementPlugin /moment[\\\/]locale$/, new RegExp ".[\\\/](#{LANGS.join '|'})" ] de...
webpack = require 'webpack' LANGS = ['en_gb'] module.exports = resolve: # Add automatically the following extensions to required modules extensions: ['', '.coffee', '.cjsx', '.js'] plugins: [ new webpack.ContextReplacementPlugin /moment[\\\/]locale$/, new RegExp ".[\\\/](#{LANGS.join '|'})" ] ##...
Remove Webpack devtool configuration (not allowed for Chrome extensions)
Remove Webpack devtool configuration (not allowed for Chrome extensions)
CoffeeScript
mit
guigrpa/storyboard,guigrpa/storyboard
f3f811811789e91712ab7b9ff71c68a94c67f1e2
app/controllers/actions.coffee
app/controllers/actions.coffee
Spine = require('spine') class Actions extends Spine.Controller elements: '.deal': 'deal_button' '.continue': 'continue_button' '.surrender': 'surrender_button' '.bet': 'bet_buttons' '.action': 'action_buttons' events: 'click .deal': 'deal' constructor: -> super Spine.bind 'res...
Spine = require('spine') class Actions extends Spine.Controller elements: '.deal': 'deal_button' '.continue': 'continue_button' '.surrender': 'surrender_button' '.bet': 'bet_buttons' '.action': 'action_buttons' events: 'click .deal': 'deal' constructor: -> super Spine.bind 'res...
Hide the action buttons instead of just disabling them
Hide the action buttons instead of just disabling them
CoffeeScript
mit
cameronhunter/blackjack-spine,cameronhunter/blackjack-spine
3f9605be36e16d160f636e04fb874376fd4a95ca
app/scripts/models/link.coffee
app/scripts/models/link.coffee
define [ 'spine' 'models/moves_path' 'models/simplifies_segments' 'models/link_shape' 'spine.relation' ], (Spine, MovesPath, SimplifiesSegments, LinkShape) -> class Link extends Spine.Model @configure "Link", "sourceId", "targetId", "segments", "shape" @belongsTo 'drawing', 'models/drawing' ...
define [ 'spine' 'models/moves_path' 'models/link_shape' 'spine.relation' ], (Spine, MovesPath, LinkShape) -> class Link extends Spine.Model @configure "Link", "sourceId", "targetId", "segments", "shape" @belongsTo 'drawing', 'models/drawing' # TODO duplication with Node constructor: (attr...
Remove dependency on simplifies segments, which is no longer needed in Paper 0.99
Remove dependency on simplifies segments, which is no longer needed in Paper 0.99
CoffeeScript
epl-1.0
louismrose/eugenia-live,louismrose/eugenia-live
f8272bcf090c94aa8e763edee6d0453836301134
lib/views/status-view.coffee
lib/views/status-view.coffee
{Subscriber} = require 'emissary' {$, View} = require 'atom-space-pen-views' module.exports = class StatusView extends View Subscriber.includeInto(this) @content = (params) -> @div class: 'git-plus overlay from-bottom', => @div class: "#{params.type} message", params.message initialize: -...
{Subscriber} = require 'emissary' {$, View} = require 'atom-space-pen-views' module.exports = class StatusView extends View Subscriber.includeInto(this) @content = (params) -> @div class: 'git-plus overlay from-bottom', => @div class: "#{params.type} message", params.message initialize: -...
Fix destroy of status view bottom panel
Fix destroy of status view bottom panel
CoffeeScript
mit
akonwi/git-plus,akonwi/git-plus
35bf525858348fd5a0d5ef976d03219606f59873
test/items.coffee
test/items.coffee
items = require("../build/liblol.js").items describe "items", -> describe "find", -> it "should return all items when nothing is passed to it", -> items.find().should.include item for item in items.list it "should throw an error if the filter isn't a function", -> try items.find "blah"...
items = require("../build/liblol.js").items describe "items", -> describe "find", -> it "should return all items when nothing is passed to it", -> items.find().should.include item for item in items.list it "should throw an error if the filter isn't a function", -> try items.find "blah"...
Add unit tests for withStats filter
Add unit tests for withStats filter Signed-off-by: Ian Macalinao <08370e385f4778cad8fe504ec5445edd3d45bd9a@gmail.com>
CoffeeScript
mit
simplyianm/liblol
98d06e9c95f779d271113029f0371cd0012e6eb9
menus/decoration-example.cson
menus/decoration-example.cson
# See https://atom.io/docs/latest/creating-a-package#menus for more details 'context-menu': '.overlayer': 'Enable decoration-example': 'decoration-example:toggle' 'menu': [ { 'label': 'Packages' 'submenu': [ 'label': 'decoration-example' 'submenu': [ { 'label': 'Toggle', 'command'...
# See https://atom.io/docs/latest/creating-a-package#menus for more details 'context-menu': 'atom-text-editor, .overlayer': [ {label: 'Enable decoration-example', command: 'decoration-example:toggle'} ] 'menu': [ { 'label': 'Packages' 'submenu': [ 'label': 'decoration-example' 'submenu': ...
Use new CSON format for menus
Use new CSON format for menus
CoffeeScript
mit
pombredanne/decoration-example
07778ba2cae04cd9f8d1099ade9418458417502c
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 'de...
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 'bu...
Add Grunt task alias build
Add Grunt task alias build
CoffeeScript
bsd-2-clause
SonicHedgehog/brave-mouse
f9a48be13e0b9d5571b8dc4ed7f912160024f9fd
core/app/backbone/controllers/client_controller.coffee
core/app/backbone/controllers/client_controller.coffee
class window.ClientController constructor: (@annotatedSiteEnvoy) -> showFact: (fact_id) -> @_renderDiscussion new Fact id: fact_id showNewFact: (params={}) => fact = new Fact displaystring: params.displaystring url: params.url fact_title: params.fact_title if Factlink.Global.signed...
class window.ClientController constructor: (@annotatedSiteEnvoy) -> showFact: (fact_id) -> @_renderDiscussion new Fact id: fact_id showNewFact: (params={}) => fact = new Fact displaystring: params.displaystring url: params.url fact_title: params.fact_title if Factlink.Global.signed...
Use just "deleteFactlink" event, as we also fire another event for closing the modal already
Use just "deleteFactlink" event, as we also fire another event for closing the modal already
CoffeeScript
mit
Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core,daukantas/factlink-core,Factlink/factlink-core,daukantas/factlink-core
4bee0753f42c1f598e0e670cd5dc5562f59f5b77
lineman/app/services/key_event_service.coffee
lineman/app/services/key_event_service.coffee
angular.module('loomioApp').factory 'KeyEventService', ($rootScope) -> new class KeyEventService keyboardShortcuts: 73: 'pressedI' 71: 'pressedG' 84: 'pressedT' 27: 'pressedEsc' 13: 'pressedEnter' 191: 'pressedSlash' 38: 'pressedUpArrow' 40: 'pressedDownArro...
angular.module('loomioApp').factory 'KeyEventService', ($rootScope) -> new class KeyEventService keyboardShortcuts: 73: 'pressedI' 71: 'pressedG' 84: 'pressedT' 27: 'pressedEsc' 13: 'pressedEnter' 191: 'pressedSlash' 38: 'pressedUpArrow' 40: 'pressedDownArro...
Fix cmd + enter submit
Fix cmd + enter submit
CoffeeScript
agpl-3.0
mhjb/loomio,loomio/loomio,sicambria/loomio,mhjb/loomio,mhjb/loomio,FSFTN/Loomio,loomio/loomio,piratas-ar/loomio,piratas-ar/loomio,piratas-ar/loomio,FSFTN/Loomio,mhjb/loomio,sicambria/loomio,sicambria/loomio,FSFTN/Loomio,loomio/loomio,piratas-ar/loomio,sicambria/loomio,loomio/loomio,FSFTN/Loomio
ad0134fc5d9d07eed07bc0aa46626c73289b5bea
components/SetLayerProperties.coffee
components/SetLayerProperties.coffee
noflo = require 'noflo' require 'framerjs' createLayer = (properties) -> return new Layer properties exports.getComponent = -> component = new noflo.Component component.description = 'Set layer properties.' # component.icon = 'picture' # Add input ports component.inPorts.add 'in', datatype: 'object' ...
noflo = require 'noflo' require 'framerjs' createLayer = (properties) -> return new Layer properties exports.getComponent = -> component = new noflo.Component component.description = 'Set layer properties.' component.icon = 'cogs' # Add input ports component.inPorts.add 'in', datatype: 'object' d...
Configure icon for SetLayerProperty component.
Configure icon for SetLayerProperty component.
CoffeeScript
mit
paulyoung/noflo-framer
3904014c9d09408ed66f39f5071f0df06ae50f7e
config/config.coffee-dist.coffee
config/config.coffee-dist.coffee
# Facebook config exports.facebook = appId: null secretKey: null # Meetup config exports.meetup = null # API key as string #Eventbrite config exports.eventbrite = appKey: null exports.elasticsearch = host: 'localhost:9200' log: 'trace' apiVersion: '1.5'
# Facebook config exports.facebook = appId: null secretKey: null # Meetup config exports.meetup = null # API key as string #Eventbrite config exports.eventbrite = appKey: null exports.elasticsearch = host: 'localhost:9200' log: 'trace' apiVersion: '1.5' exports.geo = center: # Insert lat and lon coordinates ...
Add geoconfig to config example
Add geoconfig to config example Add example of geo module config to config example file.
CoffeeScript
mit
pilsprog/paraply2,pilsprog/paraply2
b9b2f1b76b328ba3ceb9f1e0f4273dd065468bca
cosmo.coffee
cosmo.coffee
window.Cosmo = version: '0.1.0' # more # All apps should be an extended instance of this class class Cosmo.Router # app regions, assumes main content goes in a div#container regions: container: $('#container') initialize: -> # do initialization stuff and then start app routing # TODO: Do some url man...
window.Cosmo = version: '0.1.0' # All apps should be an extended instance of this class class Cosmo.Router # app regions, assumes main content goes in a div#container regions: container: $('#container') initialize: -> # do initialization stuff and then start app routing # TODO: Do some url management...
Remove comment in branch test
Remove comment in branch test
CoffeeScript
mit
akonwi/cosmo.js,akonwi/cosmo.js
73cdd2a7088ce0342b19cb2ba08ae1879f0f1cc5
app/assets/javascripts/controllers/application_controller.js.coffee
app/assets/javascripts/controllers/application_controller.js.coffee
ETahi.ApplicationController = Ember.Controller.extend currentUser:(-> userId = Tahi.currentUser?.id.toString() @store.getById('user', userId) ).property().volatile() connectToES:(-> return unless Tahi.currentUser?.id store = @store params = url: '/event_stream' method: 'GET' ...
ETahi.ApplicationController = Ember.Controller.extend currentUser:(-> userId = Tahi.currentUser?.id.toString() @store.getById('user', userId) ).property().volatile() connectToES:(-> return unless Tahi.currentUser?.id store = @store params = url: '/event_stream' method: 'GET' ...
Handle new addhoc Tasks to existing Phase
Handle new addhoc Tasks to existing Phase
CoffeeScript
mit
johan--/tahi,johan--/tahi,johan--/tahi,johan--/tahi
e867c43b17fd90e84466dfbc16c306ad52284c59
src/atom/command-interpreter/select-all-matches.coffee
src/atom/command-interpreter/select-all-matches.coffee
Command = require 'command-interpreter/command' Range = require 'range' module.exports = class SelectAllMatches extends Command @regex: null constructor: (pattern) -> @regex = @regexForPattern(pattern) execute: (editor) -> rangesToSelect = [] for selection in editor.getSelections() selectedTe...
Command = require 'command-interpreter/command' Range = require 'range' module.exports = class SelectAllMatches extends Command regex: null constructor: (pattern) -> @regex = new RegExp(pattern, 'g') execute: (editor) -> rangesToSelect = [] for selection in editor.getSelections() editor.buffe...
Implement select all matches command (x) with Buffer.traverseRegexMatchesInRange
Implement select all matches command (x) with Buffer.traverseRegexMatchesInRange
CoffeeScript
mit
originye/atom,h0dgep0dge/atom,Austen-G/BlockBuilder,yomybaby/atom,Galactix/atom,Galactix/atom,svanharmelen/atom,kdheepak89/atom,kjav/atom,prembasumatary/atom,einarmagnus/atom,vinodpanicker/atom,vcarrera/atom,boomwaiza/atom,liuxiong332/atom,YunchengLiao/atom,anuwat121/atom,rjattrill/atom,anuwat121/atom,Rychard/atom,mdum...
5aefba289cf76a80d89fa4f5e4044223ae68c68a
lib/written/app/assets/javascripts/written.coffee
lib/written/app/assets/javascripts/written.coffee
#= require_tree ./vendors #= require_tree ./written/core #= require_tree ./written/extensions #= require_tree ./written/parsers
#= require_tree ./vendors #= require_tree ./written/core #= require_tree ./written/parsers
Remove sprocket directive for extensions
Remove sprocket directive for extensions
CoffeeScript
mit
pothibo/written,pothibo/written,pothibo/written
13d3df3c74bb979d1f54df459e20a224b1fe0fe6
menus/encoding-selector.cson
menus/encoding-selector.cson
'menu': [ 'label': 'Edit' 'submenu': [ 'label': 'Select Encoding' 'command': 'encoding-selector:show' ] ]
'menu': [ 'label': 'Edit' 'submenu': [ 'label': 'Select Encoding' 'command': 'encoding-selector:show' ] ] 'context-menu': '.overlayer': [ 'label': 'Change Encoding' 'command': 'encoding-selector:show' ]
Add change item to editor context menu
Add change item to editor context menu
CoffeeScript
mit
pombredanne/encoding-selector,atom/encoding-selector
6a6725bb00ced5a58bab35522309460005d9ff7c
components/logged_in_navigation/components/notifications/view.coffee
components/logged_in_navigation/components/notifications/view.coffee
Promise = require 'bluebird-q' { delay } = require 'underscore' Backbone = require 'backbone' template = -> require('./index.jade') arguments... module.exports = class NotificationsView extends Backbone.View events: 'click a': -> delay (=> @render()), 250 initialize: ({ @state }) -> @listenTo @collection,...
Promise = require 'bluebird-q' { delay } = require 'underscore' Backbone = require 'backbone' template = -> require('./index.jade') arguments... module.exports = class NotificationsView extends Backbone.View events: 'click a': -> delay (=> @render()), 250 'mouseleave': 'markAsRead' 'click': 'markAsRead' ...
Set notification events in backbone event hash
Set notification events in backbone event hash
CoffeeScript
mit
aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell
8deaeed6b7f3a0733c63cafbd20c2df8bf9c24fd
src/packages/editor-stats/lib/editor-stats.coffee
src/packages/editor-stats/lib/editor-stats.coffee
StatsTracker = require './stats-tracker' module.exports = stats: null editorStatsView: null activate: -> @stats = new StatsTracker() rootView.command 'editor-stats:toggle', => @createView().toggle(@stats) deactivate: -> @editorStatsView = null @stats = null createView: -> unless @edito...
StatsTracker = require './stats-tracker' module.exports = stats: null editorStatsView: null activate: -> @stats = new StatsTracker() rootView.command 'editor-stats:toggle', => @createView().toggle(@stats) deactivate: -> @editorStatsView = null @stats = null createView: -> unless @edito...
Use a relative require path
Use a relative require path
CoffeeScript
mit
Huaraz2/atom,davideg/atom,kittens/atom,yomybaby/atom,basarat/atom,kjav/atom,elkingtonmcb/atom,vinodpanicker/atom,daxlab/atom,einarmagnus/atom,toqz/atom,bcoe/atom,CraZySacX/atom,panuchart/atom,john-kelly/atom,liuderchi/atom,Ju2ender/atom,batjko/atom,nrodriguez13/atom,mnquintana/atom,Ingramz/atom,SlimeQ/atom,tanin47/atom...
4abd7133a5c508c7f74922e3db0b1a5da1ea6fcf
app/assets/javascripts/models/admin_journal.js.coffee
app/assets/javascripts/models/admin_journal.js.coffee
a = DS.attr ETahi.AdminJournal = DS.Model.extend logoUrl: a('string') name: a('string') paperTypes: a() taskTypes: a() manuscriptManagerTemplates: a('manuscriptManagerTemplate') roles: DS.hasMany('role') epubCoverUrl: a('string') epubCoverFileName: a('string') epubCss: a('string') pdfCss: a('string'...
a = DS.attr ETahi.AdminJournal = DS.Model.extend logoUrl: a('string') name: a('string') paperTypes: a() taskTypes: a() manuscriptManagerTemplates: a('manuscriptManagerTemplate') roles: DS.hasMany('role') epubCoverUrl: a('string') epubCoverFileName: a('string') epubCss: a('string') pdfCss: a('string'...
Add createdAt to admin_journal model
Add createdAt to admin_journal model
CoffeeScript
mit
johan--/tahi,johan--/tahi,johan--/tahi,johan--/tahi
e61d3bfb5b770be6a525e7ff31b98e8e03dea43b
src/packages/wrap-guide/lib/wrap-guide-view.coffee
src/packages/wrap-guide/lib/wrap-guide-view.coffee
{View} = require 'space-pen' $ = require 'jquery' _ = require 'underscore' module.exports = class WrapGuideView extends View @activate: -> rootView.eachEditor (editor) => @appendToEditorPane(rootView, editor) if editor.attached @appendToEditorPane: (rootView, editor) -> if underlayer = editor.find('...
{View} = require 'space-pen' $ = require 'jquery' _ = require 'underscore' module.exports = class WrapGuideView extends View @activate: -> rootView.eachEditor (editor) => editor.underlayer.append(new WrapGuideView(editor)) if editor.attached @content: -> @div class: 'wrap-guide' defaultColumn: 80...
Use underlayer property on editor
Use underlayer property on editor Removes unneeded call to find
CoffeeScript
mit
ppamorim/atom,mertkahyaoglu/atom,gontadu/atom,jlord/atom,medovob/atom,Rodjana/atom,Locke23rus/atom,florianb/atom,Dennis1978/atom,Austen-G/BlockBuilder,ali/atom,rxkit/atom,Arcanemagus/atom,deoxilix/atom,russlescai/atom,sxgao3001/atom,lovesnow/atom,daxlab/atom,niklabh/atom,mdumrauf/atom,ivoadf/atom,acontreras89/atom,Denn...
96b52a3f28eb96cae64e1ad801eb124040508f3f
static/src/scripts/app/views/IndexStatsView.coffee
static/src/scripts/app/views/IndexStatsView.coffee
define [ 'jquery' 'underscore' 'jade.templates' 'mixen' 'mixens/BaseViewMixen' 'mixens/ModelViewMixen' 'views/DonationFormView' 'vex' ], ($, _, jade, Mixen, BaseView, ModelView, DonationFormView, vex) -> class IndexStats extends Mixen(ModelView, BaseView) template: jade.indexStats events: ...
define [ 'jquery' 'underscore' 'jade.templates' 'mixen' 'mixens/BaseViewMixen' 'mixens/ModelViewMixen' 'views/DonationFormView' 'vex' ], ($, _, jade, Mixen, BaseView, ModelView, DonationFormView, vex) -> class IndexStats extends Mixen(ModelView, BaseView) template: jade.indexStats events: ...
Fix the target progress bar
Fix the target progress bar
CoffeeScript
mit
jailbreakhq/public-static,jailbreakhq/public-static
96bf347f8204e1504e8e664351a22257e9d34f81
app/assets/javascripts/components/FeedList.coffee
app/assets/javascripts/components/FeedList.coffee
VoteButton = require './VoteButton.coffee' init = (el)-> $feeds = $(el) $btnReload = $('#btn-reload-feeds') $tipLoading = $('#feeds-loading-tip') $tipLoaded = $('#feeds-loaded-tip') pages = parseInt $feeds.data('pages') loading = false page = 1 load = ()-> loading = true $.ajax data: ...
VoteButton = require './VoteButton.coffee' init = (el)-> $feeds = $(el) $btnReload = $('#btn-reload-feeds') $tipLoading = $('#feeds-loading-tip') $tipLoaded = $('#feeds-loaded-tip') pages = parseInt $feeds.data('pages') loading = false page = 1 load = ()-> loading = true $.ajax data: ...
Update feed list load check
Update feed list load check
CoffeeScript
agpl-3.0
lc-soft/GitDigger,lc-soft/GitDigger,lc-soft/GitDigger,lc-soft/GitDigger
8bd01c5667cb3f272a23385cccb7e43f78611ed4
atom/packages.cson
atom/packages.cson
packages: [ "autocomplete-emojis" "editorconfig" "file-icons" "highlight-selected" "linter" "linter-coffeelint" "linter-csslint" "linter-flake8" "linter-htmlhint" "linter-js-yaml" "linter-jshint" "linter-jsonlint" "linter-less" "linter-php" "linter-scss-lint" "linter-shellcheck" "linte...
packages: [ "autocomplete-emojis" "editorconfig" "file-icons" "highlight-selected" "linter" "linter-coffeelint" "linter-csslint" "linter-eslint" "linter-flake8" "linter-htmlhint" "linter-js-yaml" "linter-jsonlint" "linter-less" "linter-php" "linter-scss-lint" "linter-shellcheck" "linte...
Replace linter-jshint with linter-eslint in Atom
Replace linter-jshint with linter-eslint in Atom
CoffeeScript
mit
jmlntw/dotfiles,jmlntw/dotfiles
0b3a91b5feb6f38734c144cd48f8df5ce278cb6b
src/packages/fuzzy-finder/lib/load-paths-task.coffee
src/packages/fuzzy-finder/lib/load-paths-task.coffee
_ = require 'underscore' BufferedProcess = require 'buffered-process' module.exports = class LoadPathsTask constructor: (@callback) -> start: -> rootPath = project.getPath() ignoredNames = config.get('fuzzyFinder.ignoredNames') ? [] ignoredNames = ignoredNames.concat(config.get('core.ignoredNames') ? ...
_ = require 'underscore' BufferedProcess = require 'buffered-process' module.exports = class LoadPathsTask constructor: (@callback) -> start: -> rootPath = project.getPath() ignoredNames = config.get('fuzzyFinder.ignoredNames') ? [] ignoredNames = ignoredNames.concat(config.get('core.ignoredNames') ? ...
Rename VCS ignore config setting to fuzzyFinder.hideVcsIgnoredPaths
Rename VCS ignore config setting to fuzzyFinder.hideVcsIgnoredPaths
CoffeeScript
mit
paulcbetts/atom,hagb4rd/atom,beni55/atom,niklabh/atom,Abdillah/atom,anuwat121/atom,matthewclendening/atom,fredericksilva/atom,Neron-X5/atom,synaptek/atom,jlord/atom,kc8wxm/atom,xream/atom,oggy/atom,dannyflax/atom,MjAbuz/atom,russlescai/atom,bj7/atom,RobinTec/atom,Rychard/atom,decaffeinate-examples/atom,liuderchi/atom,n...
9d62d920d8346f6a278b95923345e0e969ac3a50
app/assets/javascripts/emoji.js.coffee
app/assets/javascripts/emoji.js.coffee
window.emojify = -> $(".js-emoji").each -> $(@).html(emojione.toImage($(@).text())) $ -> emojify()
window.emojify = -> $(".js-emoji").each -> # $(@).html(emojione.toImage($(@).text())) $ -> emojify()
Disable emoji support for now as it’s unescaping escaped html!
Disable emoji support for now as it’s unescaping escaped html! #919
CoffeeScript
mit
jasnow/24pullrequests5,24pullrequests/24pullrequests,arumoy-shome/24pullrequests,eliotsykes/24pullrequests,tarebyte/24pullrequests,acrogenesis-lab/24pullrequests,arumoy-shome/24pullrequests,vyorkin-forks/24pullrequests,eliotsykes/24pullrequests,vyorkin-forks/24pullrequests,tarebyte/24pullrequests,pimterry/24pullrequest...
39f90c0161c1854c30e5f2be9d6e473849e99d48
backend/app/assets/javascripts/admin/progress.coffee
backend/app/assets/javascripts/admin/progress.coffee
$(document).ready -> opts = lines: 11 length: 2 width: 3 radius: 9 corners: 1 rotate: 0 color: '#fff' speed: 0.8 trail: 48 shadow: false hwaccel: true className: 'spinner' zIndex: 2e9 top: 'auto' left: 'auto' target = document.getElementById("spinner") ...
$(document).ready -> opts = lines: 11 length: 2 width: 3 radius: 9 corners: 1 rotate: 0 color: '#fff' speed: 0.8 trail: 48 shadow: false hwaccel: true className: 'spinner' zIndex: 2e9 top: 'auto' left: 'auto' target = document.getElementById("spinner") ...
Change spinner to stop if another is started for a new ajax request
Change spinner to stop if another is started for a new ajax request * During testing I was rapidly saving a payment to make sure there were no timing related issues in the javascript. One thing I noticed is that the spinners would queue up, and keep fading in and out long after the last ajax request has complete...
CoffeeScript
bsd-3-clause
bonobos/solidus,Engeltj/spree,mleglise/spree,PhoenixTeam/spree_phoenix,siddharth28/spree,tomash/spree,SadTreeFriends/spree,edgward/spree,miyazawatomoka/spree,CJMrozek/spree,jeffboulet/spree,beni55/spree,ayb/spree,rbngzlv/spree,volpejoaquin/spree,Nevensoft/spree,dandanwei/spree,pervino/solidus,raow/spree,bjornlinder/Spr...
747e1ae47f2de882adf560695cbd545e52b6bc82
app/scripts/services/shareddata.coffee
app/scripts/services/shareddata.coffee
'use strict' ###* # @ngdoc service # @name arashike-blog.githubshareddata # @description # # githubshareddata # Service in the arashike-blog. ### angular.module 'arashike-blog' .service 'sharedDataService', -> gists = [] return { gists: gists }
'use strict' ###* # @ngdoc service # @name arashike-blog.githubshareddata # @description # # githubshareddata # Service in the arashike-blog. ### angular.module 'arashike-blog' .service 'sharedDataService', -> author = {} gists = [] return { author: author gists: gists }
Add property `author` to sharedDataService
Add property `author` to sharedDataService
CoffeeScript
mit
JumpeiArashi/blog.arashike.com,JumpeiArashi/blog.arashike.com
f21135a7e09f61793d1cbc2b1442265483db9e19
app/js/jail_iframe/initializers/scrollbarSuppressor.coffee
app/js/jail_iframe/initializers/scrollbarSuppressor.coffee
FactlinkJailRoot.on 'modalOpened', -> document.documentElement.setAttribute('data-factlink-suppress-scrolling', '') FactlinkJailRoot.on 'modalClosed', -> document.documentElement.removeAttribute('data-factlink-suppress-scrolling')
scrollbarWidth = 0 FactlinkJailRoot.loaded_promise.then -> # Create the measurement nod; see http://davidwalsh.name/detect-scrollbar-width scrollDiv = document.createElement("div"); $(scrollDiv).css( width: "100px" height: "100px" overflow: "scroll" position: "absolute" top: "-9999px" ) do...
Implement a scrollbar width detector
Implement a scrollbar width detector
CoffeeScript
mit
Factlink/js-library,Factlink/js-library,Factlink/js-library
50e897f574af2fb173e2d0c58abb4f04a25e5f46
keymaps/bracket-matcher.cson
keymaps/bracket-matcher.cson
'.editor': 'ctrl-m': 'bracket-matcher:go-to-matching-bracket' 'ctrl-]': 'bracket-matcher:remove-brackets-from-selection' '.platform-darwin .editor': 'ctrl-cmd-m': 'bracket-matcher:select-inside-brackets' 'alt-cmd-.': 'bracket-matcher:close-tag' '.platform-linux .editor': 'alt-ctrl-.': 'bracket-matcher:close...
'.editor': 'ctrl-m': 'bracket-matcher:go-to-matching-bracket' 'ctrl-]': 'bracket-matcher:remove-brackets-from-selection' 'ctrl-backspace': 'bracket-matcher:remove-matching-brackets' '.platform-darwin .editor': 'ctrl-cmd-m': 'bracket-matcher:select-inside-brackets' 'alt-cmd-.': 'bracket-matcher:close-tag' '....
Add a new keymap `ctrl-backspace`
Add a new keymap `ctrl-backspace`
CoffeeScript
mit
lpommers/bracket-matcher,adamCoGithub/Bracket-Matcher-no-smart-quotes,adamCoGithub/Bracket-Matcher-no-autoclose,jacekkopecky/bracket-matcher,bwinton/bracket-matcher,lpommers/bracket-matcher,bwinton/bracket-matcher,adamCoGithub/Bracket-Matcher-no-autoclose,atom/bracket-matcher,adamCoGithub/Bracket-Matcher-no-smart-quote...
0130ea8c144442713f5803a2f7fefc6a35daea3a
app/assets/javascripts/app/lib/app_init/log.js.coffee
app/assets/javascripts/app/lib/app_init/log.js.coffee
class App.Log _instance = undefined @log: ( module, level, args... ) -> if _instance == undefined _instance ?= new _Singleton _instance.log( module, level, args ) @debug: ( module, level, args... ) -> if _instance == undefined _instance ?= new _Singleton _instance.log( module, level,...
class App.Log _instance = undefined @log: ( module, level, args... ) -> if _instance == undefined _instance ?= new _Singleton _instance.log( module, level, args ) @debug: ( module, level, args... ) -> if _instance == undefined _instance ?= new _Singleton _instance.log( module, level,...
Make console.log working in IE8.
Make console.log working in IE8.
CoffeeScript
agpl-3.0
monotek/zammad,monotek/zammad,monotek/zammad,zammad/zammad,monotek/zammad,zammad/zammad,zammad/zammad,monotek/zammad,monotek/zammad,zammad/zammad,zammad/zammad,zammad/zammad
54c461ebc0f8df75f01e1adff9600c89a7b6c2da
app/assets/javascripts/application/widget_edit.coffee
app/assets/javascripts/application/widget_edit.coffee
jQuery.initializer '.edit_widget.map_search', -> oz = new OZ('oz_map_search') $form = $('form.widget_map_search') oz.api 'on_params_changed', (params) -> $('#widget_map_search_api_params').val(JSON.stringify(params)) $.post $form.attr('action'), $form.serialize(), (data) -> $('textarea#snippet').val...
jQuery.initializer '.edit_widget.map_search', -> oz = new OZ('oz_map_search') $form = $('form.widget_map_search') oz.api 'on_params_changed', (params) -> $('#widget_map_search_api_params').val(JSON.stringify(params)) $.post $form.attr('action'), $form.serialize(), (data) -> $('textarea#snippet').val...
Update width/height in the snippet block if changed
Update width/height in the snippet block if changed
CoffeeScript
bsd-3-clause
netkodo/otwartezabytki,netkodo/otwartezabytki,netkodo/otwartezabytki,netkodo/otwartezabytki
dc13f7cc5148af059e9c33d49e0980bc3033fce5
lib/main.coffee
lib/main.coffee
{Disposable, CompositeDisposable} = require 'atom' ViewURI = 'atom://deprecation-cop' DeprecationCopView = null module.exports = disposables: null activate: -> @disposables = new CompositeDisposable @disposables.add atom.workspace.addOpener (uri) => @deserializeDeprecationCopView({uri}) if uri is ...
{Disposable, CompositeDisposable} = require 'atom' ViewURI = 'atom://deprecation-cop' DeprecationCopView = null module.exports = disposables: null activate: -> @disposables = new CompositeDisposable @disposables.add atom.workspace.addOpener (uri) => @deserializeDeprecationCopView({uri}) if uri is ...
Add deserializers.add call for backwards compatibility
Add deserializers.add call for backwards compatibility
CoffeeScript
mit
atom/deprecation-cop
30353ce44147ec91f6b09bf20aaa9f31de90b199
newsroom.coffee
newsroom.coffee
nconf = require("nconf") nconf.env().argv() # Add config file nconf.file(file: nconf.get("config")) Base = require('./src/base') newsroom = new Base nconf.get("newsroom")
nconf = require("nconf") nconf.env().argv() # Add config file nconf.file(file: nconf.get("config") || "config.json") Base = require('./src/base') newsroom = new Base nconf.get("newsroom")
Add config fallback for development
Add config fallback for development
CoffeeScript
mit
bricker/Newsroom,SCPR/Newsroom
bc7d2a1bd2a48cd991920f250dad8a3aadcd8ce0
test/helpers/index.coffee
test/helpers/index.coffee
_ = require 'lodash' expect = chai.expect React = require 'react/addons' ReactTestUtils = React.addons.TestUtils {Promise} = require 'es6-promise' {commonActions} = require './utilities' sandbox = null Wrapper = React.createClass render: -> React.createElement(@props._wrapped_component, _.extend(_.om...
_ = require 'underscore' expect = chai.expect React = require 'react/addons' ReactTestUtils = React.addons.TestUtils {Promise} = require 'es6-promise' {commonActions} = require './utilities' sandbox = null Wrapper = React.createClass render: -> React.createElement(@props._wrapped_component, _.extend(...
Use underscore instead of lodash
Use underscore instead of lodash
CoffeeScript
agpl-3.0
openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js
a363b62f23d1feeea908bd4f830c605167206a62
services/web/public/coffee/ide/labels/LabelsManager.coffee
services/web/public/coffee/ide/labels/LabelsManager.coffee
define [ ], () -> AUTOMATIC_REFRESH_PERIOD = 1000 * 60 * 10 class LabelsManager constructor: (@ide, @$scope) -> @$scope.$root._labels = this @state = documents: {} # map of DocId => List[Label] @loadLabelsTimeout = null @periodicLoadInterval = null setTimeout( () => # set up a regul...
define [ ], () -> class LabelsManager constructor: (@ide, @$scope) -> @$scope.$root._labels = this @state = documents: {} # map of DocId => List[Label] @loadLabelsTimeout = null setTimeout( () => # listen for document open @$scope.$on 'document:opened', (e, doc) => setTimeout(...
Remove periodic polling of document for labels
Remove periodic polling of document for labels
CoffeeScript
agpl-3.0
sharelatex/sharelatex
e7582a29f046885d6d3bd0bc3044cd846b34d65f
js/libs/browser.coffee
js/libs/browser.coffee
CI.Browser or= {} CI.Browser.scroll_to = (position) => element = if jQuery.browser.webkit then "body" else "html" offset = if position == "top" then 0 else document.body.offsetHeight # Scrolling instantly is actually a smoother experience than # incorporating a delay. When the animation takes some time to run ...
CI.Browser or= {} CI.Browser.scroll_to = (position) => offset = if position == "top" then 0 else document.body.scrollHeight # Scrolling instantly is actually a smoother experience than # incorporating a delay. When the animation takes some time to run the # page jumps unpleasantly when new content is added. ...
Use document.body.scrollHeight, it's more correct
Use document.body.scrollHeight, it's more correct
CoffeeScript
epl-1.0
prathamesh-sonpatki/frontend,circleci/frontend,circleci/frontend,prathamesh-sonpatki/frontend,RayRutjes/frontend,circleci/frontend,RayRutjes/frontend
4bb93d1f84bbc2c98a3cf0dd9e8c4374f167975f
SingularityUI/config.coffee
SingularityUI/config.coffee
exports.config = paths: public: '../SingularityService/src/main/resources/static' files: javascripts: defaultExtension: 'coffee' joinTo: 'static/js/app.js': /^app/ 'static/js/vendor.js': /^vendor/ order: be...
exports.config = paths: public: '../SingularityService/src/main/resources/static' files: javascripts: defaultExtension: 'coffee' joinTo: 'static/js/app.js': /^app/ 'static/js/vendor.js': /^vendor/ order: be...
Fix responsive styles (vendor stylesheet order was busted)
Fix responsive styles (vendor stylesheet order was busted)
CoffeeScript
apache-2.0
tejasmanohar/Singularity,andrhamm/Singularity,grepsr/Singularity,stevenschlansker/Singularity,stevenschlansker/Singularity,acbellini/Singularity,hs-jenkins-bot/Singularity,calebTomlinson/Singularity,tejasmanohar/Singularity,calebTomlinson/Singularity,acbellini/Singularity,grepsr/Singularity,stevenschlansker/Singularity...
4a17f6777929b263a27aa600d9554edb46ae9628
proxy.coffee
proxy.coffee
colors = require('colors') url = require('url') http = require('http') Proxy = require('http-proxy') start = (config) -> match = (url, route) -> new RegExp(route).test(url) debug = (args...) -> if config.debug console.log args... getTarget = (req) -> debug "Proxying request to #{ req.url }" ...
colors = require('colors') url = require('url') http = require('http') Proxy = require('http-proxy') start = (config) -> match = (url, route) -> new RegExp(route).test(url) debug = (args...) -> if config.debug console.log args... getTarget = (req) -> debug "Proxying request to #{ req.url }" ...
Use port 80 by default
Use port 80 by default
CoffeeScript
mit
HubSpot/vee
f961d44fd7f2af2fb8de1cd1d142b8e1609f9249
gulpfile.coffee
gulpfile.coffee
path = require('path') gulp = require('gulp') mocha = require('gulp-mocha') coffeelint = require('gulp-coffeelint') mochaNotifierReporter = require('mocha-notifier-reporter') OPTIONS = config: coffeelint: path.join(__dirname, 'coffeelint.json') files: coffee: [ 'lib/**/*.coffee', 'gulpfile.coffee' ] tests: 'li...
path = require('path') gulp = require('gulp') mocha = require('gulp-mocha') coffeelint = require('gulp-coffeelint') mochaNotifierReporter = require('mocha-notifier-reporter') OPTIONS = config: coffeelint: path.join(__dirname, 'coffeelint.json') files: coffee: [ 'lib/**/*.coffee', 'gulpfile.coffee' ] tests: 'li...
Watch all coffee files for running test
Watch all coffee files for running test
CoffeeScript
apache-2.0
resin-io/resin-cli,resin-io/resin-cli,resin-io/resin-cli,resin-io/resin-cli
a3bc71d93832b8c40a99858065f9fb37423383b7
app/assets/javascripts/protected_area_map.js.coffee
app/assets/javascripts/protected_area_map.js.coffee
class @ProtectedAreaMap constructor: ($container) -> @map = L.map($container.attr('id'), {zoomControl: false, scrollWheelZoom: false}) L.tileLayer('http://api.tiles.mapbox.com/v3/unepwcmc.ijh17499/{z}/{x}/{y}.png').addTo(@map) L.tileLayer('http://carbon-tool.cartodb.com/tiles/wdpa_poly_feb2014_0/{z}/{x}/...
class @ProtectedAreaMap constructor: ($container) -> @map = L.map($container.attr('id'), {zoomControl: false, scrollWheelZoom: false}) L.tileLayer('http://api.tiles.mapbox.com/v3/unepwcmc.ijh17499/{z}/{x}/{y}.png').addTo(@map) L.tileLayer('http://carbon-tool.cartodb.com/tiles/wdpapoly_july2014_0/{z}/{x}/...
Update cartodb layer for july
Update cartodb layer for july
CoffeeScript
bsd-3-clause
unepwcmc/ProtectedPlanet,unepwcmc/ProtectedPlanet,unepwcmc/ProtectedPlanet,unepwcmc/ProtectedPlanet,unepwcmc/ProtectedPlanet
49cf2a8dee64d98d52d5820d06703685d028a0fd
services/web/public/coffee/directives/mathjax.coffee
services/web/public/coffee/directives/mathjax.coffee
define [ "base" ], (App) -> mathjaxConfig = messageStyle: "none" imageFont:null "HTML-CSS": { availableFonts: ["TeX"] }, TeX: equationNumbers: { autoNumber: "AMS" }, useLabelIDs: false tex2jax: inlineMath: [ ['$','$'], ["\\(","\\)"] ], displayMath: [ ['$$','$$'], ["\\[","\\]"] ], processEscap...
define [ "base" ], (App) -> mathjaxConfig = extensions: ["Safe.js"] messageStyle: "none" imageFont:null "HTML-CSS": { availableFonts: ["TeX"] }, TeX: equationNumbers: { autoNumber: "AMS" }, useLabelIDs: false tex2jax: inlineMath: [ ['$','$'], ["\\(","\\)"] ], displayMath: [ ['$$','$$'], ["\\["...
Use the MathJax `Safe.js` extension to prevent XSS
Use the MathJax `Safe.js` extension to prevent XSS
CoffeeScript
agpl-3.0
sharelatex/sharelatex
1f1963ab56b15c7d790c3a871d8666000feac70b
src/index.coffee
src/index.coffee
fs = require 'fs' path = require 'path' CSON = require 'cson' postcss = require 'postcss' namespace = postcss.plugin 'postcss-namespace', (opts) -> if not opts? opts = {token: '-'} (css) -> ref = null css.walkRules (rule) -> if /^&/.test rule.selector ...
fs = require 'fs' path = require 'path' postcss = require 'postcss' namespace = postcss.plugin 'postcss-namespace', (opts) -> if not opts? opts = {token: '-'} (css) -> ref = null css.walkRules (rule) -> if /^&/.test rule.selector rule.selector = rule.selector.r...
Remove CSON reference from coffee file
Remove CSON reference from coffee file
CoffeeScript
mit
totora0155/postcss-preref
ceb5177b5f297d4c6c7f2ace2407780cddb14f4b
app/assets/javascripts/uploadcare/widget/live.js.coffee
app/assets/javascripts/uploadcare/widget/live.js.coffee
uploadcare.whenReady -> { jQuery: $ } = uploadcare dataAttr = 'uploadcareWidget' uploadcare.initialize = (targets) -> for target in $(targets || '@uploadcare-uploader') el = $(target) initializeWidget(el) return initializeWidget = (el) -> widget = el.data(dataAttr) if !widge...
uploadcare.whenReady -> { jQuery: $ } = uploadcare dataAttr = 'uploadcareWidget' uploadcare.initialize = (targets) -> for target in $(targets || '@uploadcare-uploader') el = $(target) initializeWidget(el) return initializeWidget = (el) -> widget = el.data(dataAttr) if !widge...
Use interval instead of recreating timers in live
Use interval instead of recreating timers in live
CoffeeScript
bsd-2-clause
uploadcare/uploadcare-widget,prognostikos/uploadcare-widget,BIGWOO/uploadcare-widget,BIGWOO/uploadcare-widget,BIGWOO/uploadcare-widget,prognostikos/uploadcare-widget,toscale/uploadcare-widget,uploadcare/uploadcare-widget,prognostikos/uploadcare-widget,toscale/uploadcare-widget,toscale/uploadcare-widget
f71e08ce7432edb03f91288ee8badf4798d09868
assets/javascripts/views/permissions_fields_toggle.js.coffee
assets/javascripts/views/permissions_fields_toggle.js.coffee
Marbles.Views.PermissionsFieldsToggle = class PermissionsFieldsToggleView extends TentStatus.View @template_name: 'permissions_fields_toggle' @view_name: 'permissions_fields_toggle' constructor: -> super @once 'ready', => setImmediate @bindEvents @render() context: (permissions = { public:...
Marbles.Views.PermissionsFieldsToggle = class PermissionsFieldsToggleView extends TentStatus.View @template_name: 'permissions_fields_toggle' @view_name: 'permissions_fields_toggle' constructor: -> super @once 'ready', => setImmediate @bindEvents @render() context: (permissions = @parentVi...
Fix permissions toggle for limited posts
Fix permissions toggle for limited posts
CoffeeScript
bsd-3-clause
tent/tent-status,tent/tent-status
9ee1b02c50c7c37d4ea4cfe20328ca2bf23cecb8
server/models/contact.coffee
server/models/contact.coffee
cozydb = require 'cozydb' module.exports = Contact = cozydb.getModel 'Contact', fn : String n : String datapoints : [Object] revision : String note : String tags : [String] accounts : String title : String org :...
cozydb = require 'cozydb' module.exports = Contact = cozydb.getModel 'Contact', fn : String n : String datapoints : [Object] revision : String note : String tags : [String] accounts : String title : String org :...
Fix error due to mediatype being undefined
Fix error due to mediatype being undefined
CoffeeScript
agpl-3.0
frankrousseau/cozy-calendar,cozy/cozy-calendar,frankrousseau/cozy-calendar,clochix/cozy-calendar,cozy/cozy-calendar
03877a7bd2c17c857f5c2ac10944bcbca96bc8be
src/Game.coffee
src/Game.coffee
Player = require './Player' TextInput = require './TextInput' class Game constructor: (game) -> @textBox = new TextInput(game) @player = new Player(game) window.Game = @ @socket = io.connect('http://localhost:8080', {secure: true}) @socket.emit 'new player', 'name' @socket.on 'snap', (...
Player = require './Player' TextInput = require './TextInput' class Game constructor: (game) -> @textBox = new TextInput(game) @player = new Player(game) window.Game = @ @socket = io.connect('https://snapgame.herokuapp.com', {secure: true}) @socket.emit 'new player', 'name' @socket.on ...
Use heroku app as backend
Use heroku app as backend
CoffeeScript
mit
CMS611-snap/snap-frontend,CMS611-snap/snap-frontend,CMS611-snap/snap-frontend
4aef4bf31af02f45b599be73adab8d17ac25820b
projects.cson
projects.cson
[ { title: "@Atom Theme" paths: [ "/Users/johngardner/Labs/Atom-PhoenixTheme" ] devMode: true } { title: ".files" paths: [ "/Users/johngardner/.files" ] devMode: true } { title: "language-roff" paths: [ "/Users/johngardner/Labs/language-roff" ] devMode: true } { title: "file-ic...
[ { title: ".atom" paths: [ "~/.atom" ] devMode: true } { title: ".files" paths: [ "~/.files" ] devMode: true } { title: "language-roff" paths: [ "~/Labs/language-roff" ] devMode: true } { title: "file-icons" paths: [ "~/Labs/file-icons" ] devMode: true } { title: ...
Fix broken project paths from old macOS installation
Fix broken project paths from old macOS installation
CoffeeScript
isc
Alhadis/Atom-PhoenixTheme
55a99490da7d53ea7a93b3c12ad4464be849f66d
core/app/backbone/views/react_feed_selection.coffee
core/app/backbone/views/react_feed_selection.coffee
window.ReactFeedSelection = React.createClass displayName: 'ReactFeedSelection' mixins: [UpdateOnSignInOrOutMixin] getInitialState: -> feedChoice: 'global' feeds: global: new GlobalFeedActivities personal: new PersonalFeedActivities _handleFeedChoiceChange: (e) -> if(e.target.checked)...
window.ReactFeedSelection = React.createClass displayName: 'ReactFeedSelection' mixins: [UpdateOnSignInOrOutMixin] getInitialState: -> feedChoice: 'global' feeds: global: new GlobalFeedActivities personal: new PersonalFeedActivities discussions: new DiscussionsFeedActivities _handle...
Allow selecting "Discussions" as a feed
Allow selecting "Discussions" as a feed
CoffeeScript
mit
daukantas/factlink-core,daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core
66864759ecddd6a542aa2f361814e3be6b4aa24b
app/main.cjsx
app/main.cjsx
React = require 'react' ReactDOM = {render} = require 'react-dom' {Router, Route, Link} = require 'react-router' {useBasename} = require 'history' createBrowserHistory = require 'history/lib/createBrowserHistory' routes = require './router' # IE, oh my god: location.origin ?= location.protocol + "//" + location.hostna...
React = require 'react' ReactDOM = {render} = require 'react-dom' {Router, Route, Link} = require 'react-router' {useBasename} = require 'history' createBrowserHistory = require 'history/lib/createBrowserHistory' routes = require './router' apiClient = require 'panoptes-client/lib/api-client' # IE, oh my god: location...
Set window object to variable
Set window object to variable
CoffeeScript
apache-2.0
zooniverse/Panoptes-Front-End,mrniaboc/Panoptes-Front-End,amyrebecca/Panoptes-Front-End,mrniaboc/Panoptes-Front-End,fmnhExhibits/Panoptes-Front-End,amyrebecca/Panoptes-Front-End,fmnhExhibits/Panoptes-Front-End,jelliotartz/Panoptes-Front-End,amyrebecca/Panoptes-Front-End,mrniaboc/Panoptes-Front-End,alexbfree/Panoptes-Fr...
7b968518dc38bdf460bc76be2c9bfececb68ff29
app/assets/javascripts/routes/popup.route.js.coffee
app/assets/javascripts/routes/popup.route.js.coffee
#= require routes/map.route Wheelmap.PopupRoute = Wheelmap.MapRoute.extend model: (params)-> @get('store').find('node', params.node_id) setupController: (controller, model, queryParams)-> @_super(controller, model, queryParams) @controllerFor('map').set('poppingNode', controller) renderTemplate: (...
#= require routes/map.route Wheelmap.PopupRoute = Wheelmap.MapRoute.extend model: (params, queryParams)-> self = @ @get('store').find('node', params.node_id).then(null, ()-> # if node was not found self.transitionTo('index') ) setupController: (controller, model, queryParams)-> @_supe...
Fix blank page if node by id was not found.
Fix blank page if node by id was not found.
CoffeeScript
agpl-3.0
sozialhelden/wheelmap,sozialhelden/wheelmap,sozialhelden/wheelmap,sozialhelden/wheelmap,sozialhelden/wheelmap
14ed054b2dd6323bdf84d781e1bc4dd17f58bcb6
lib/grammar-status-view.coffee
lib/grammar-status-view.coffee
{View} = require 'atom' # View to show the grammar name in the status bar. module.exports = class GrammarStatusView extends View @content: -> @div class: 'grammar-status', => @a href: '#', class: 'inline-block', outlet: 'grammarLink' initialize: (@statusBar) -> @subscribe @statusBar, 'active-buffer-...
{View} = require 'atom' # View to show the grammar name in the status bar. module.exports = class GrammarStatusView extends View @content: -> @div class: 'grammar-status inline-block', => @a href: '#', class: 'inline-block', outlet: 'grammarLink' initialize: (@statusBar) -> @subscribe @statusBar, 'a...
Make root div inline-block as well
Make root div inline-block as well
CoffeeScript
mit
atom/grammar-selector
4bde2696a6f04e4c521a60db7276759f1b414eea
Gruntfile.coffee
Gruntfile.coffee
module.exports = (grunt) -> grunt.initConfig pkg: grunt.file.readJSON('package.json') meta: banner: '/*! <%= pkg.name %> <%= pkg.version %> | (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %> | <%= pkg.license %> License */\n' coffee: compile: ...
module.exports = (grunt) -> grunt.initConfig pkg: grunt.file.readJSON('package.json') meta: banner: '/*! <%= pkg.name %> <%= pkg.version %> | (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %> | <%= pkg.license %> License */\n' coffee: compile: ...
Fix incorrect watch path in grunt task
Fix incorrect watch path in grunt task
CoffeeScript
mit
aduth/uTip
8b66f595dd38cdd33b7233cdd57a6fcdb2bc71e2
components/connect_v2/components/create/view.coffee
components/connect_v2/components/create/view.coffee
Backbone = require 'backbone' Promise = require 'bluebird-q' { API_URL } = require('sharify').data Channel = require '../../../../models/channel.coffee' mediator = require '../../../../lib/mediator.coffee' module.exports = class ConnectCreateView extends Backbone.View className: 'Connect__create' events: clic...
Backbone = require 'backbone' Promise = require 'bluebird-q' { API_URL } = require('sharify').data Channel = require '../../../../models/channel.coffee' mediator = require '../../../../lib/mediator.coffee' module.exports = class ConnectCreateView extends Backbone.View className: 'Connect__create' events: clic...
Set attribute before doing anything with it
Set attribute before doing anything with it
CoffeeScript
mit
aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell
72679858c175c7ad02d0ef51f4decea3343e00b8
.atom/config.cson
.atom/config.cson
"*": core: themes: [ "one-light-ui" "solarized-dark-syntax" ] editor: fontSize: 15 "exception-reporting": userId: "76d6bd0a-16fd-42b8-0163-bce5c8c7e379" welcome: showOnStartup: false
"*": core: themes: [ "one-light-ui" "solarized-dark-syntax" ] editor: fontSize: 16 "exception-reporting": userId: "76d6bd0a-16fd-42b8-0163-bce5c8c7e379" welcome: showOnStartup: false
Change Atom editor font size
Change Atom editor font size
CoffeeScript
mit
dreadwarrior/dotfiles,dreadwarrior/dotfiles
990d95b5c87b3b34a63f611116bdeacae2a7d987
app/assets/javascripts/neighborly/neighborly.js.coffee
app/assets/javascripts/neighborly/neighborly.js.coffee
#= require_self #= require_tree . window.Neighborly = configs: turbolinks: true pjax: false respond_with: 'Create': 'New' 'Update': 'Edit' modules: -> [] initPage: -> that = this unless window.Turbolinks is undefined $(document).bind "page:fetch", -> that.Loading.s...
#= require_self #= require_tree . window.Neighborly = configs: turbolinks: true pjax: false respond_with: 'Create': 'New' 'Update': 'Edit' modules: -> [] initPage: -> unless window.Turbolinks is undefined $(document).bind "page:fetch", => this.Loading.show() $(d...
Make flash messages auto dismissible
Make flash messages auto dismissible
CoffeeScript
mit
jinutm/silvfinal,jinutm/silveralms.com,jinutm/silveralms.com,gustavoguichard/neighborly,raksonibs/raimcrowd,MicroPasts/micropasts-crowdfunding,jinutm/silveralms.com,jinutm/silverpro,jinutm/silverprod,jinutm/silverclass,jinutm/silvfinal,MicroPasts/micropasts-crowdfunding,jinutm/silverprod,jinutm/silvfinal,raksonibs/raim...
7ea299bd9420309b6c05d57a9763133dfe675b3d
app/client/js/facebook.coffee
app/client/js/facebook.coffee
goog.provide 'app.Facebook' class app.Facebook ###* @param {app.user.Store} userStore @constructor ### constructor: (@userStore) -> ###* @type {Object} @private ### fb_: null ###* Enable Facebook api. ### init: -> window.fbAsyncInit = => @fb_ = window.FB @fb_.in...
goog.provide 'app.Facebook' class app.Facebook ###* @param {app.user.Store} userStore @constructor ### constructor: (@userStore) -> ###* @type {Object} @private ### fb_: null ###* Load Facebook api async. ### init: -> window.fbAsyncInit = => @fb_ = window.FB @fb...
Comment some code in app.Facebook.
Comment some code in app.Facebook.
CoffeeScript
mit
steida/songary