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 |
|---|---|---|---|---|---|---|---|---|---|
e281e9654ec9a5b4764d3f4a8f166192c43559c6 | lib/operators/indent-operators.coffee | lib/operators/indent-operators.coffee | {Operator} = require './general-operators'
#
# It indents everything selected by the following motion.
#
class Indent extends Operator
# Public: Indents the text selected by the given motion.
#
# count - The number of times to execute.
#
# Returns nothing.
execute: (count=1) ->
@indent(count)
# Prote... | {Operator} = require './general-operators'
class AdjustIndentation extends Operator
execute: (count=1) ->
mode = @vimState.mode
@motion.select(count)
{start} = @editor.getSelectedBufferRange()
@indent()
if mode isnt 'visual'
@editor.setCursorBufferPosition([start.row, 0])
@editor.mo... | Fix screen-row vs buffer-row error in indent operators | Fix screen-row vs buffer-row error in indent operators
| CoffeeScript | mit | t9md/atom-vim-mode-plus |
3cfb9bb9fe78c41adc9c9d44e1c7e36070a2c94d | Gruntfile.coffee | Gruntfile.coffee | module.exports = (grunt) ->
require('load-grunt-tasks')(grunt)
grunt.initConfig
pkg: grunt.file.readJSON 'package.json'
shell:
clean:
command: '[ -e gametime.db ] && rm gametime.db'
init_db:
command: 'sqlite3 gametime.db < db.sql'
nointro:
command: 'coffee nointro.... | module.exports = (grunt) ->
require('load-grunt-tasks')(grunt)
grunt.initConfig
pkg: grunt.file.readJSON 'package.json'
shell:
clean:
command: '[ ! -e gametime.db ] || rm gametime.db'
init_db:
command: 'sqlite3 gametime.db < db.sql'
nointro:
command: 'coffee nointr... | Update the shell command to make travis happy. | Update the shell command to make travis happy.
| CoffeeScript | mit | matthewbauer/gametime-db,matthewbauer/gametime-db |
ef9cde35482a068ff16d4cd3e13ecfb4ef48d893 | Gruntfile.coffee | Gruntfile.coffee | module.exports = (grunt) ->
grunt.initConfig
pkg: grunt.file.readJSON('package.json')
clean:
lib: './lib/'
coffee:
src:
options:
bare: true
expand: true
cwd: './src/'
src: ['**/*.coffee']
dest: './lib/'
ext: '.js'
uglify:
opti... | module.exports = (grunt) ->
grunt.initConfig
pkg: grunt.file.readJSON('package.json')
clean:
lib: './lib/'
coffee:
src:
options:
bare: true
expand: true
cwd: './src/'
src: ['**/*.coffee']
dest: './lib/'
ext: '.js'
uglify:
opti... | Move beautify config above compress config | Move beautify config above compress config
| CoffeeScript | mit | KenanY/nwitch |
a873d3bca71cc60237c59709c87e6b64207e2c2d | src/tools/junction.coffee | src/tools/junction.coffee | ###
Working with Junction Point(s)
###
module.exports = exports = (id = 'none')->
run 0, true, (bin = file install2, 'linkd.exe'), link, '/D'
if false == id
return
bat id
run 0, true, bin, link, folder install2, id
return
# Path to link
exports.$ =
link =
folder install2, 'this'
| ###
Working with Junction Point(s)
###
module.exports = exports = (id = 'none')->
unless (bin = file install2, 'linkd.exe').y()
throw Error "File not found: #{bin}"
run 0, true, bin, link, '/D'
if false == id
return
bat id
run 0, true, bin, link, folder install2, id
return
# Path to link
exports.$... | Check for linkd to exist | Check for linkd to exist
| CoffeeScript | isc | ukoloff/nvms |
65bff64198347b274d197c41af4da86c01a26dd5 | src/coffee/cilantro/ui/concept/info.coffee | src/coffee/cilantro/ui/concept/info.coffee | define [
'../core'
'tpl!templates/concept/info.html'
], (c, templates...) ->
templates = c._.object ['info'], templates
class ConceptInfo extends c.Marionette.ItemView
className: 'concept-info'
template: templates.info
serializeData: ->
data = @model.toJSON()
... | define [
'../core'
'tpl!templates/concept/info.html'
], (c, templates...) ->
templates = c._.object ['info'], templates
class ConceptInfo extends c.Marionette.ItemView
className: 'concept-info'
template: templates.info
# Shorthand references to primary UI elements. After the... | Implement ConceptInfo.ui property for element access post-render | Implement ConceptInfo.ui property for element access post-render
| CoffeeScript | bsd-2-clause | chop-dbhi/cilantro,chop-dbhi/cilantro,chop-dbhi/cilantro |
011b0f149c95e0c393c0418e9225c76efddd5ba9 | keymaps/line-jumper.cson | keymaps/line-jumper.cson | # DOCUMENT: link to keymap documentation
'.editor':
'ctrl-up': 'line-jumper:move-up'
'ctrl-down': 'line-jumper:move-down'
'ctrl-shift-up': 'line-jumper:select-up'
'ctrl-shift-down': 'line-jumper:select-down'
| # DOCUMENT: link to keymap documentation
'.editor':
'alt-up': 'line-jumper:move-up'
'alt-down': 'line-jumper:move-down'
'alt-shift-up': 'line-jumper:select-up'
'alt-shift-down': 'line-jumper:select-down'
| Use alt rather than ctrl | Use alt rather than ctrl
ctrl+shift+up and down clashes with multiple cursor creation
| CoffeeScript | mit | pomutemu/atom-half-pager,benogle/line-jumper |
a679b8681feec1a8fecd4c841da3c0a72cdfbd6a | files/.atom/config.cson | files/.atom/config.cson | "*":
Zen:
width: 100
"atom-ternjs":
useSnippets: false
documentation: false
urls: false
lint: false
guess: false
inlineFnCompletion: false
"autocomplete-plus":
confirmCompletion: "tab always, enter when suggestion explicitly selected"
core:
excludeVcsIgnoredPaths: false
d... | "*":
Zen:
width: 100
"atom-ternjs":
useSnippets: false
documentation: false
urls: false
lint: false
guess: false
inlineFnCompletion: false
"autocomplete-plus":
confirmCompletion: "tab always, enter when suggestion explicitly selected"
core:
disabledPackages: [
"autocomp... | Exclude ignored files from search etc. | Exclude ignored files from search etc.
| CoffeeScript | mit | scherermichael/dotfiles,scherermichael/dotfiles |
df0aec67a55c133cbf2c55c5267502a6b8082dd6 | app/assets/javascripts/keyboard_shortcuts.js.coffee | app/assets/javascripts/keyboard_shortcuts.js.coffee | $ ->
$(document).on 'keydown', (event) ->
active = $(document.activeElement)
if active.is('.group-dropdown-search, .selector-link')
switch event.which
when 40 # select next group with down arrow
target = active.parent().next('.group-item').find('.selector-link')
target = $('#... | $ ->
$(document).on 'keydown', (event) ->
active = $(document.activeElement)
if active.is('.group-dropdown-search, .selector-link')
switch event.which
when 40 # select next group with down arrow
target = active.parent().next('.group-item:visible').find('.selector-link')
targe... | Handle keyboard navigation with hidden selections better | Handle keyboard navigation with hidden selections better
| CoffeeScript | agpl-3.0 | Collabforge/site-collabio,labhackercd/loomio,tachyons/loomio,juliagra/loomio,tachyons/loomio,Collabforge/site-collabio,doomergithub/loomio,labhackercd/loomio,FSFTN/Loomio,sicambria/loomio,gvalerin/loomio,codingnutty/loomio,isomerase/loomio,doomergithub/loomio,mhjb/loomio,aca13jmf/loomio,codingnutty/loomio,FSFTN/Loomio,... |
d72b80d574863223d0d5a73a0b05dca655dbcf68 | test/node_http_client.spec.coffee | test/node_http_client.spec.coffee | # Copyright 2012-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You
# may not use this file except in compliance with the License. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" fil... | # Copyright 2012-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You
# may not use this file except in compliance with the License. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" fil... | Add test to ensure cert bundle only gets loaded once | Add test to ensure cert bundle only gets loaded once
| CoffeeScript | apache-2.0 | misfitdavidl/aws-sdk-js,grimurjonsson/aws-sdk-js,mohamed-kamal/aws-sdk-js,aws/aws-sdk-js,guymguym/aws-sdk-js,michael-donat/aws-sdk-js,dconnolly/aws-sdk-js,ugie/aws-sdk-js,aws/aws-sdk-js,j3tm0t0/aws-sdk-js,prembasumatary/aws-sdk-js,GlideMe/aws-sdk-js,GlideMe/aws-sdk-js,chrisradek/aws-sdk-js,dconnolly/aws-sdk-js,jeskew/a... |
3f910ca86b083be547b813cd5bceb3a3cf08ec99 | config.cson | config.cson | "*":
"exception-reporting":
userId: "53c5f869-8a29-d7f5-ef48-bc598612bb8d"
welcome:
showOnStartup: false
editor:
invisibles: {}
tabs:
usePreviewTabs: true
core: {}
"linter-eslint":
disableWhenNoEslintrcFileInPath: true
react: {}
autosave:
enabled: true
| "*":
"exception-reporting":
userId: "53c5f869-8a29-d7f5-ef48-bc598612bb8d"
welcome:
showOnStartup: false
editor:
invisibles: {}
tabs:
usePreviewTabs: true
core: {}
"linter-eslint":
disableWhenNoEslintrcFileInPath: true
react: {}
autosave:
enabled: true
"advanced-new-file":
... | Add some options to advanced new file | Add some options to advanced new file
| CoffeeScript | mit | substantial/atomfiles,substantial/atomfiles |
d3d5f0581e256630c3dd73dccca3ad653766c595 | app/assets/javascripts/static.js.coffee | app/assets/javascripts/static.js.coffee | # Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/
roundUpBy = (value, round_to) ->
return round_to * Math.ceil(value / round_to)
formatNumber = (number) ->... | # Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/
formatNumber = (number) ->
Math.ceil(number).toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",")
animateNumb... | Remove old unused function (refactor only) | Remove old unused function (refactor only)
| CoffeeScript | agpl-3.0 | otherchirps/morph,openaustralia/morph,otherchirps/morph,otherchirps/morph,openaustralia/morph,otherchirps/morph,openaustralia/morph,openaustralia/morph,openaustralia/morph,openaustralia/morph,otherchirps/morph,otherchirps/morph,openaustralia/morph,otherchirps/morph |
30f4aa3e3c0fa8ac67516e233d251b004ebae2ab | atom/config.cson | atom/config.cson | "*":
core:
disabledPackages: [
"background-tips"
"exception-reporting"
"metrics"
"styleguide"
"timecop"
"welcome"
]
editor:
invisibles: {}
showIndentGuide: true
showInvisibles: true
fontFamily: "Source Code Pro"
| "*":
core:
disabledPackages: [
"background-tips"
"exception-reporting"
"metrics"
"styleguide"
"timecop"
"welcome"
]
editor:
fontFamily: "Source Code Pro"
invisibles: {}
showIndentGuide: true
showInvisibles: true
"file-icons":
forceShow: true
onCh... | Add Atom package custom settings | Add Atom package custom settings
| CoffeeScript | mit | jmlntw/dotfiles,jmlntw/dotfiles |
294022091f9029964c248b1e795301f932132af6 | atom/config.cson | atom/config.cson | "*":
"atom-ctags": {}
"autocomplete-plus":
enableAutoActivation: false
core:
audioBeep: false
disabledPackages: [
"exception-reporting"
]
ignoredNames: [
".bundle"
".git"
"log"
"repositories"
"tmp"
]
themes: [
"atom-dark-ui"
"solarized-da... | "*":
"atom-ctags": {}
"autocomplete-plus":
enableAutoActivation: false
core:
audioBeep: false
disabledPackages: [
"exception-reporting"
"linter"
]
ignoredNames: [
".bundle"
".git"
"log"
"repositories"
"tmp"
]
themes: [
"atom-dark-ui"
... | Disable Atom linter by default | Disable Atom linter by default
| CoffeeScript | mit | jeffcole/dotfiles-local |
c910b87c35019f3a53e772e4d12983f145fcf157 | src/components/reference-book/exercise.cjsx | src/components/reference-book/exercise.cjsx | React = require 'react'
{ReferenceBookExerciseActions, ReferenceBookExerciseStore} = require '../../flux/reference-book-exercise'
Question = require '../question'
LoadableItem = require '../loadable-item'
ReferenceBookMissingExercise = React.createClass
displayName: 'ReferenceBookMissingExercise'
render: ->
... | React = require 'react'
{ReferenceBookExerciseActions, ReferenceBookExerciseStore} = require '../../flux/reference-book-exercise'
Question = require '../question'
LoadableItem = require '../loadable-item'
ReferenceBookMissingExercise = React.createClass
displayName: 'ReferenceBookMissingExercise'
render: ->
... | Use ? to test for existence | Use ? to test for existence
| CoffeeScript | agpl-3.0 | openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js |
b1d0bbc76d14083d67cc5aa4e2b1aee03ac93638 | app/utils/connector-rfb.coffee | app/utils/connector-rfb.coffee | `import Ember from 'ember'`
`import ENV from 'irene/config/environment';`
updateState = ->
return true
xvpInit = ->
return true
ConnectorRFB = Ember.Object.extend
rfb: null
constructor: (@canvasEl, @deviceToken) ->
console.log "ConnectorRFB - constructor"
console.log @canvasEl, @deviceToken
@r... | `import ENV from 'irene/config/environment';`
updateState = ->
return true
xvpInit = ->
return true
class ConnectorRFB
rfb: null
constructor: (@canvasEl, @deviceToken) ->
@rfb = new RFB
'target': @canvasEl
'encrypt': ENV.deviceFarmSsl
'repeaterID': ''
'true_color': true
'... | Move to regular class based views | Move to regular class based views
| CoffeeScript | agpl-3.0 | appknox/irene,appknox/irene,appknox/irene |
2a3cc8903b4ac96df7b1b7756b6a9e45d958cf1e | src/tasks/drawing.coffee | src/tasks/drawing.coffee | RadioTask = require './radio'
class DrawingTask extends RadioTask
@type: 'drawing'
value = []
tools:
point: require '../drawing-tools/point'
ellipse: require 'marking-surface/lib/tools/ellipse'
rect: require 'marking-surface/lib/tools/rectangle'
text: require 'marking-surface/lib/tools/transc... | RadioTask = require './radio'
class DrawingTask extends RadioTask
@type: 'drawing'
value = []
tools:
point: require '../drawing-tools/point'
ellipse: require 'marking-surface/lib/tools/ellipse'
rect: require 'marking-surface/lib/tools/rectangle'
text: require 'marking-surface/lib/tools/transc... | Select a tool when we check a box. | Select a tool when we check a box.
| CoffeeScript | apache-2.0 | zooniverse/zooniverse-readymade |
71b6f921f19def85071c4f0ce9332db1916347c4 | src/scripts/ascii.coffee | src/scripts/ascii.coffee | # Description:
# ASCII art
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# hubot ascii me <text> - Show text in ascii art
#
# Author:
# atmos
module.exports = (robot) ->
robot.respond /ascii( me)? (.+)/i, (msg) ->
msg
.http("http://asciime.heroku.com/generate_ascii")
.que... | # Description:
# ASCII art
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# hubot ascii me <text> - Show text in ascii art
#
# Author:
# atmos
module.exports = (robot) ->
robot.respond /ascii( me)? (.+)/i, (msg) ->
msg
.http("http://asciime.heroku.com/generate_ascii")
.que... | Replace single space with double for readability. | Replace single space with double for readability.
Replacing all single spaces with double spaces. The words were too close together and hard to read. | CoffeeScript | mit | terryjbates/hubot-scripts,davidsulpy/hubot-scripts,wsoula/hubot-scripts,ambikads/hubot-scripts,alexhouse/hubot-scripts,modulexcite/hubot-scripts,zecahnin/hubot-scripts,arcaartem/hubot-scripts,jan0sch/hubot-scripts,contolini/hubot-scripts,github/hubot-scripts,marksie531/hubot-scripts,opentable/hubot-scripts,chauffer/hub... |
4725e1c2d98cf60b3787b9e9b0eda650c13eb3a6 | src/core/Pointer.coffee | src/core/Pointer.coffee | 'use strict'
dirTable =
'^': { x: 0, y: -1 }
'<': { x: -1, y: 0 }
'v': { x: 0, y: 1 }
'>': { x: 1, y: 0 }
Pointer = (@x, @y, dir, @space) ->
@_updateDir dir
return
Pointer::_updateDir = (dir) ->
@dir = dir
@ax = dirTable[dir].x
@ay = dirTable[dir].y
Pointer::turn = (dir) ->
if dirTable[dir]? and... | 'use strict'
dirTable = new Map [
['^', { x: 0, y: -1 }]
['<', { x: -1, y: 0 }]
['v', { x: 0, y: 1 }]
['>', { x: 1, y: 0 }]
]
Pointer = (@x, @y, dir, @space) ->
@_updateDir dir
return
Pointer::_updateDir = (dir) ->
@dir = dir
entry = dirTable.get dir
@ax = entry.x
@ay = entry.y
Pointer::turn = (... | Use Map instead of object | Use Map instead of object
| CoffeeScript | mit | adrianton3/befunjit,adrianton3/befunjit,adrianton3/befunjit |
693094593a176830643b16a0646acabae696db51 | lib/git-log-class.coffee | lib/git-log-class.coffee | {$$, ScrollView, View} = require 'atom'
module.exports =
class GitLogView extends ScrollView
@content: ->
@div class: 'git-log editor editor-colors native-key-bindings', tabindex: -1, =>
@div class: 'panels', =>
@subview 'graph', new ColumnView('Graph', 'graph')
... | {$$, ScrollView, View} = require 'atom'
module.exports =
class GitLogView extends ScrollView
@content: ->
@div class: 'git-log native-key-bindings', tabindex: -1, =>
@div class: 'panels', =>
@subview 'graph', new ColumnView('Graph', 'graph')
@subview 'comments',... | Remove editor class, fixes autosave error | Remove editor class, fixes autosave error
| CoffeeScript | mit | akash0x53/git-log,NikhilKalige/git-log,SlimeQ/git-log |
b8bb2b0b06188726abf00bd57e33491a3edcd117 | lib/scope-helpers.coffee | lib/scope-helpers.coffee | slick = require 'atom-slick'
EscapeCharacterRegex = /[-!"#$%&'*+,/:;=?@|^~()<>{}[\]]/g
parseScopeChain = (scopeChain) ->
scopeChain = scopeChain.replace EscapeCharacterRegex, (match) -> "\\#{match[0]}"
scope for scope in slick.parse(scopeChain)[0] ? []
selectorForScopeChain = (selectors, scopeChain) ->
scopes ... | slick = require 'atom-slick'
EscapeCharacterRegex = /[-!"#$%&'*+,/:;=?@|^~()<>{}[\]]/g
parseScopeChain = (scopeChain) ->
scopeChain = scopeChain.replace EscapeCharacterRegex, (match) -> "\\#{match[0]}"
scope for scope in slick.parse(scopeChain)[0] ? []
selectorForScopeChain = (selectors, scopeChain) ->
for sel... | Fix spec: Handle multiple scopes. | Fix spec: Handle multiple scopes. | CoffeeScript | mit | atom-community/autocomplete-plus,wakermahmud/autocomplete-plus,atom/autocomplete-plus,lestat220255/autocomplete-plus,brntbeer/autocomplete-plus,Lyleo/autocomplete-plus |
ff73218a12710f32fe3ee1acd8c7982f8538cfcf | spec/spec-helper.coffee | spec/spec-helper.coffee | auth = require '../lib/auth'
global.silenceOutput = ->
spyOn(console, 'log')
spyOn(console, 'error')
spyOn(process.stdout, 'write')
spyOn(process.stderr, 'write')
global.spyOnToken = ->
spyOn(auth, 'getToken').andCallFake (callback) -> callback(null, 'token')
| auth = require '../lib/auth'
global.silenceOutput = (callThrough = false) ->
spyOn(console, 'log')
spyOn(console, 'error')
spyOn(process.stdout, 'write')
spyOn(process.stderr, 'write')
if callThrough
spy.andCallThrough() for spy in [
console.log,
console.error,
process.stdout.write,
... | Allow silenceOutput to spy without silencing output | Allow silenceOutput to spy without silencing output
Signed-off-by: Michelle Tilley <19f7a7eb6786def4c39d6d86c40af5dbc6589663@github.com>
| CoffeeScript | mit | bronson/apm,bronson/apm,bronson/apm,Nikpolik/apm,Nikpolik/apm,atom/apm,Nikpolik/apm,atom/apm,Nikpolik/apm,atom/apm,bronson/apm,atom/apm |
564b1d907b08494e1eb258e2d1bc3de21d216816 | src/coffee/quality.coffee | src/coffee/quality.coffee | class Quality
constructor: (@id, @name, @description, @defaultValue,
@defaultProgress, @maxProgress, @progressEscalation,
@visible) ->
Object.freeze @
increase: (whole, partial = 0) ->
levelUp = () =>
@value++
@maxProgress += @maxProgress * @progressEscalation
... | class Quality
constructor: (@id, @name, @description, @defaultValue,
@defaultProgress, @maxProgress, @progressEscalation,
@visible) ->
Object.freeze @
increase: (whole, partial = 0) ->
levelUp = () =>
@value++
@maxProgress += @maxProgress * @progressEscalation
... | Add a Single Blank Line | Add a Single Blank Line
| CoffeeScript | unlicense | arashikou/exper3-2015 |
54445ddc9efe9aca1771e05ba9323402e8dca9ff | app/client/delete_survey_modal/delete_survey_modal.coffee | app/client/delete_survey_modal/delete_survey_modal.coffee | Template.delete_survey_modal.onCreated ->
@deleting = new ReactiveVar false
Template.delete_survey_modal.onRendered ->
$('#delete-survey-modal').on 'show.bs.modal', (event) =>
@surveyId = $(event.relatedTarget).data 'id'
Template.delete_survey_modal.helpers
deleting: ->
Template.instance().deleting.get(... | {Survey} = require '../../imports/models'
Template.delete_survey_modal.onCreated ->
@deleting = new ReactiveVar false
Template.delete_survey_modal.onRendered ->
$('#delete-survey-modal').on 'show.bs.modal', (event) =>
@surveyId = $(event.relatedTarget).data 'id'
Template.delete_survey_modal.helpers
deletin... | Fix survey deletion - add reference to Survey class | Fix survey deletion - add reference to Survey class
| CoffeeScript | apache-2.0 | ecohealthalliance/mobile-survey,ecohealthalliance/mobile-survey,ecohealthalliance/mobile-survey |
09eab8f8649844a34268c04bd4d65e6c87441ea0 | app/components/svg-image.cjsx | app/components/svg-image.cjsx | React = require 'react'
# React.DOM doesn't include an SVG <image> tag
# (because of its namespaced `xlink:href` attribute, I think),
# so this fakes one by wrapping it in a <g>.
module.exports = React.createClass
displayName: 'SVGImage'
getDefaultProps: ->
src: ''
width: 0
height: 0
render: ->
... | React = require 'react'
# React.DOM doesn't include an SVG <image> tag
# (because of its namespaced `xlink:href` attribute, I think),
# so this fakes one by wrapping it in a <g>.
module.exports = React.createClass
displayName: 'SVGImage'
getDefaultProps: ->
src: ''
width: 0
height: 0
render: ->
... | Update the SVG image on frame change | Update the SVG image on frame change
| CoffeeScript | apache-2.0 | parrish/Panoptes-Front-End,alexbfree/Panoptes-Front-End,edpaget/Panoptes-Front-End,jelliotartz/Panoptes-Front-End,mrniaboc/Panoptes-Front-End,parrish/Panoptes-Front-End,CKrawczyk/Panoptes-Front-End,amyrebecca/Panoptes-Front-End,camallen/Panoptes-Front-End,edpaget/Panoptes-Front-End,alexbfree/Panoptes-Front-End,alexbfre... |
4e9cc58b6d216fc9163f34a3d58c541254aa2329 | app.coffee | app.coffee | express = require 'express'
stylus = require 'stylus'
assets = require 'connect-assets'
app = express.createServer()
app.use assets()
app.set 'view engine', 'jade'
app.get '/', (req, resp) -> resp.render 'index'
app.get '/:filename.:extension', (req, resp) ->
content = req.param['content']
if (content and conten... | express = require 'express'
stylus = require 'stylus'
assets = require 'connect-assets'
app = express.createServer()
app.use assets()
app.use express.bodyParser()
app.set 'view engine', 'jade'
app.get '/', (req, resp) -> resp.render 'index'
app.get '/:filename.:extension', (req, resp) ->
content = req.param['conte... | Use body parser middleware to make content accessible in POST requests | Use body parser middleware to make content accessible in POST requests
| CoffeeScript | mit | joshmcarthur/savefile |
81b1f18ac669c456e80f029f105d056114b2cd39 | tests/batman/navigator/navigator_test.coffee | tests/batman/navigator/navigator_test.coffee | QUnit.module 'Batman.Navigator'
setup: ->
test "normalizePath(segments...) joins the segments with slashes, prepends a slash if necessary, and removes final trailing slashes", ->
equal Batman.Navigator.normalizePath(''), '/'
equal Batman.Navigator.normalizePath('','foo','','bar'), '/foo/bar'
equal Batman.Navi... | QUnit.module 'Batman.Navigator'
setup: ->
test "normalizePath(segments...) joins the segments with slashes, prepends a slash if necessary, and removes final trailing slashes", ->
equal Batman.Navigator.normalizePath(''), '/'
equal Batman.Navigator.normalizePath('','foo','','bar'), '/foo/bar'
equal Batman.Navig... | Add regression test for Navigator push and replace with nested dispatch | Add regression test for Navigator push and replace with nested dispatch
| CoffeeScript | mit | getshuvo/batman,getshuvo/batman |
8ea6d5aaabd7e94e59ff0f6d0b9cd2cb0d6cc7c8 | spec/Parse.coffee | spec/Parse.coffee | noflo = require 'noflo'
if typeof process is 'object' and process.title is 'node'
chai = require 'chai' unless chai
Parse = require '../components/Parse.coffee'
else
Parse = require 'noflo-adapters/components/Parse.js'
describe 'Parse component', ->
c = null
ins = null
out = null
encoding = null
befor... | noflo = require 'noflo'
unless noflo.isBrowser()
chai = require 'chai' unless chai
Parse = require '../components/Parse.coffee'
else
Parse = require 'noflo-adapters/components/Parse.js'
describe 'Parse component', ->
c = null
ins = null
out = null
encoding = null
beforeEach ->
c = Parse.getCompone... | Use `isBrowser` check for tests | Use `isBrowser` check for tests
| CoffeeScript | mit | kenhkan/noflo-crypto |
a5288e8c7b997f1f4116bd35e9d8dade533a0add | src/errors.coffee | src/errors.coffee | class ConsumerError extends Error
constructor: ->
super
class StoreError extends Error
constructor: ->
super
class ParameterError extends Error
constructor: ->
super
class SignatureError extends Error
constructor: ->
super
class NonceError extends Error
constructor: ->
super
module.export... | class ConsumerError extends Error
constructor: ->
super
class StoreError extends Error
constructor: ->
super
class ParameterError extends Error
constructor: ->
super
class SignatureError extends Error
constructor: ->
super
class NonceError extends Error
constructor: ->
super
class OutcomeR... | Add a new error for the outcomes service | Add a new error for the outcomes service
| CoffeeScript | mit | dmapper/ims-lti |
b714be3d653a0e91db01b6cccf3bd8aab8e8c43c | app/assets/javascripts/application.js.coffee | app/assets/javascripts/application.js.coffee | #= require libraries
#= require_tree .
$ ->
$('.alert').delay(4000).fadeOut('slow')
$('.chosen').chosen()
$('.timeago').timeago()
# Have a loading screen when turbolinks is working it's magic
document.addEventListener 'page:fetch', ->
html = "<div id='loading'><div><i class='icon-spinner icon-spin icon-4x'></... | #= require libraries
#= require_tree .
$ ->
$('.alert').delay(4000).fadeOut('slow')
$('.chosen').chosen()
$('.timeago').timeago()
# Have a loading screen when turbolinks is working it's magic
document.addEventListener 'page:fetch', ->
html = "<div id='loading'><div><i class='icon-spinner icon-spin icon-4x'></... | Fix issue where loading screen would stay stuck. | Fix issue where loading screen would stay stuck. | CoffeeScript | mit | gmanley/loggia,gmanley/loggia |
7566444d3b2dc9cacf910ac9522365c1a2711ce6 | lib/package-readme-view.coffee | lib/package-readme-view.coffee | {$, $$$, View} = require 'atom-space-pen-views'
roaster = require 'roaster'
fs = require 'fs'
cheerio = require 'cheerio'
# Displays the readme for a package, if it has one
# TODO Decide to keep this or current button-to-new-tab view
module.exports =
class PackageReadmeView extends View
@content: ->
@section cla... | {$, $$$, View} = require 'atom-space-pen-views'
roaster = require 'roaster'
fs = require 'fs'
cheerio = require 'cheerio'
# Displays the readme for a package, if it has one
# TODO Decide to keep this or current button-to-new-tab view
module.exports =
class PackageReadmeView extends View
@content: ->
@section cla... | Use native keybindings in Readme preview | Use native keybindings in Readme preview
| CoffeeScript | mit | atom/settings-view |
4aceccdfe317f0f333fca5bcb20b90a4ac0e30b0 | spec/metrics-spec.coffee | spec/metrics-spec.coffee | {WorkspaceView} = require 'atom'
Reporter = require '../lib/reporter'
describe "Metrics", ->
beforeEach ->
atom.workspaceView = new WorkspaceView
spyOn(Reporter, 'request')
it "reports event", ->
waitsForPromise ->
atom.packages.activatePackage('metrics')
waitsFor ->
Reporter.request.... | {WorkspaceView} = require 'atom'
Reporter = require '../lib/reporter'
describe "Metrics", ->
beforeEach ->
atom.workspaceView = new WorkspaceView
spyOn(Reporter, 'request')
it "reports event", ->
waitsForPromise ->
atom.packages.activatePackage('metrics')
waitsFor ->
Reporter.request.... | Verify call count increasing in spec | Verify call count increasing in spec
| CoffeeScript | mit | atom/metrics |
10c80617e0daeba1549980a4330a5bf3dfa4f910 | assets/coffee/app.coffee | assets/coffee/app.coffee | $ ->
window.chartColors = ['#3498DB', '#2ECC71', '#9B59B6', '#E74C3C', '#1ABC9C', '#F39C12', '#95A5A6']
$('#tabs a').click(
(e) ->
e.preventDefault()
$(this).tab 'show'
)
angular.module("main", ["ngResource", "ngRoute"])
| $ ->
window.chartColors = ['#3498DB', '#2ECC71', '#9B59B6', '#E74C3C', '#1ABC9C', '#F39C12', '#95A5A6']
$('#tabs a').click(
(e) ->
e.preventDefault()
$(this).tab 'show'
)
angular.module("main", ["ngResource", "ngRoute"])
.config(($interpolateProvider) ->
$interpolateProvider.startSymbol('<%').e... | Change angular interpolate provider to not conflict with Blade | Change angular interpolate provider to not conflict with Blade
| CoffeeScript | mit | modess/git-pretty-stats,modess/git-pretty-stats,modess/git-pretty-stats |
c2a6efdf1423da80922f3cd40a76c3efcc431c25 | community/browser/app/scripts/init/httpHeaders.coffee | community/browser/app/scripts/init/httpHeaders.coffee | ###!
Copyright (c) 2002-2014 "Neo Technology,"
Network Engine for Objects in Lund AB [http://neotechnology.com]
This file is part of Neo4j.
Neo4j is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 ... | ###!
Copyright (c) 2002-2014 "Neo Technology,"
Network Engine for Objects in Lund AB [http://neotechnology.com]
This file is part of Neo4j.
Neo4j is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 ... | Add no-cache headers on Ajax GET calls. | Add no-cache headers on Ajax GET calls.
- Fixes IE 9 getting 304:s form the server when requesting labels etc.
| CoffeeScript | apache-2.0 | HuangLS/neo4j,HuangLS/neo4j,HuangLS/neo4j,HuangLS/neo4j,HuangLS/neo4j |
bdc6cd397d11d0a116945dc876cd3eacfeeb0832 | services/chat/config/settings.defaults.coffee | services/chat/config/settings.defaults.coffee | module.exports =
internal:
chat:
host: process.env['LISTEN_ADDRESS'] or "localhost"
port: 3010
apis:
web:
url: "http://#{process.env['WEB_HOST'] || "localhost"}:3000"
user: "sharelatex"
pass: "password"
mongo:
url : "mongodb://#{process.env['MONGO_HOST'] || "localhost"}/sharelatex"
redis... | module.exports =
internal:
chat:
host: process.env['LISTEN_ADDRESS'] or "localhost"
port: 3010
apis:
web:
url: "http://#{process.env['WEB_HOST'] || "localhost"}:#{process.env['WEB_PORT'] or 3000}"
user: "sharelatex"
pass: "password"
mongo:
url : "mongodb://#{process.env['MONGO_HOST'] || "l... | Use setting instead of hard-coding port | Use setting instead of hard-coding port
| CoffeeScript | agpl-3.0 | sharelatex/sharelatex |
858c9ca873a0f83083fb8afb22166d4b4141ae9f | apps/galleries_institutions/queries/partner_fragment.coffee | apps/galleries_institutions/queries/partner_fragment.coffee | module.exports =
'''
fragment partner on Partner {
id
name
initials
locations(size:15) {
city
}
profile {
id
href
image {
cropped(width:400, height:300) {
url
}
}
}
}
''' | module.exports =
'''
fragment partner on Partner {
id
name
initials
locations(size:15) {
city
}
profile {
id
href
image {
cropped(width:400, height:300, version: ["wide", "large", "featured", "larger"]) {
url
}
}
}
}
'''
| Fix blurry partner profile cover image. | Fix blurry partner profile cover image.
| CoffeeScript | mit | kanaabe/force,erikdstock/force,erikdstock/force,damassi/force,joeyAghion/force,xtina-starr/force,mzikherman/force,eessex/force,izakp/force,kanaabe/force,yuki24/force,dblock/force,mzikherman/force,izakp/force,joeyAghion/force,anandaroop/force,erikdstock/force,anandaroop/force,izakp/force,dblock/force,mzikherman/force,ar... |
687e965ba722c7a0ec43817530d499280d420e9e | src/coffee/save.coffee | src/coffee/save.coffee | angular.module 'qbn.save', ['qbn.quality']
.factory 'savedGame', (qualities) ->
storageName = 'qbnSave'
api =
load: () ->
save = JSON.parse localStorage.getItem storageName
return undefined if not save?
for savedQuality in save.qualities
quality = qualities.lookup saved... | angular.module 'qbn.save', ['qbn.quality']
.factory 'savedGame', (qualities) ->
storageName = 'qbnSave'
api =
load: () ->
save = JSON.parse localStorage.getItem storageName
return undefined if not save?
for savedQuality in save.qualities
quality = qualities.lookup saved... | Allow Clearing the Save from the Console in a Pinch | Allow Clearing the Save from the Console in a Pinch
| CoffeeScript | unlicense | arashikou/exper3-2015 |
fda9254e8ca152cf73595a13e27d7fe5f25bf55f | app.coffee | app.coffee | #
# Modules
#
readdirp = require('readdirp')
path = require('path')
es = require('event-stream')
coffeescript = require('coffee-script')
_ = require('underscore')
#
# Parsers
#
frontMatterParser = require('./parsers/front_matter_parser')
markdownParser = require('./parsers/markdow... | #
# Modules
#
readdirp = require('readdirp')
path = require('path')
es = require('event-stream')
coffeescript = require('coffee-script')
fs = require('graceful-fs')
_ = require('underscore')
#
# Parsers
#
frontMatterParser = require('./parsers/front_matter_parser')
markdown... | Support a commit_analyzer_ignore.txt file in project root | Support a commit_analyzer_ignore.txt file in project root
| CoffeeScript | apache-2.0 | CenturyLinkCloud/KB-Commit-Analyzer |
4926dc40cb458e03b42bf709b076227b8b6d0a19 | spec/Initialization.coffee | spec/Initialization.coffee | describe 'NoFlo UI initialization', ->
win = null
doc = null
db = null
before (done) ->
@timeout 20000
iframe = document.getElementById 'app'
iframe.src = '../app.html'
iframe.onload = ->
win = iframe.contentWindow
doc = iframe.contentDocument
setTimeout ->
done()
... | describe 'NoFlo UI initialization', ->
win = null
doc = null
db = null
before (done) ->
@timeout 20000
iframe = document.getElementById 'app'
iframe.src = '../app.html'
iframe.onload = ->
win = iframe.contentWindow
doc = iframe.contentDocument
setTimeout ->
done()
... | Split store checks to separate tests to get better output from CI | Split store checks to separate tests to get better output from CI
| CoffeeScript | mit | noflo/noflo-ui,oportocala/noflo-ui,taylorzane/noflo-ui,rasata/noflo-ui,rasata/noflo-ui,rdf-pipeline/noflo-server,noflo/noflo-ui,oportocala/noflo-ui,taylorzane/noflo-ui,flyboarder/noflo-ui,lxfschr/noflo-ui,rdf-pipeline/noflo-server,lxfschr/noflo-ui |
b08216deb4c17fd6e8cceb3ece193899765d2e55 | lib/soft-wrap-indicator-view.coffee | lib/soft-wrap-indicator-view.coffee | {View} = require 'atom'
# Status bar view for the soft wrap indicator.
module.exports =
class SoftWrapIndicatorView extends View
@content: ->
@div class: 'inline-block', =>
@a 'Wrap', class: 'soft-wrap-indicator', outlet: 'light'
# Initializes the view by subscribing to various events.
#
# statusBar... | {View} = require 'atom'
# Status bar view for the soft wrap indicator.
module.exports =
class SoftWrapIndicatorView extends View
@content: ->
@div class: 'inline-block', =>
@a 'Wrap', class: 'soft-wrap-indicator', outlet: 'light'
# Initializes the view by subscribing to various events.
#
# statusBar... | Update indicator when first attached to status bar | :bug: Update indicator when first attached to status bar
| CoffeeScript | mit | lee-dohm/soft-wrap-indicator |
31ae11cb5ab7926ec0fa1ee45bf131846b232395 | lib/linter.coffee | lib/linter.coffee | Path = require 'path'
{CompositeDisposable, Emitter} = require 'atom'
{LinterTrace, LinterMessage, LinterError, LinterWarning} = require './messages'
class Linter
constructor: ->
@Emitter = new Emitter
@SubRegular = new CompositeDisposable
@SubFly = new CompositeDisposable
| Path = require 'path'
{CompositeDisposable, Emitter} = require 'atom'
{LinterTrace, LinterMessage, LinterError, LinterWarning} = require './messages'
class Linter
constructor: ->
@Emitter = new Emitter
@Subscriptions = new CompositeDisposable
@SubscriptionsFly = new CompositeDisposable # Fly needs to b... | Add a Basic API Structure | :new: Add a Basic API Structure
| CoffeeScript | mit | mdgriffith/linter,shawninder/linter,AsaAyers/linter,blakeembrey/linter,atom-community/linter,AtomLinter/Linter,simurai/linter-plus,steelbrain/linter,JohnMurga/linter,Arcanemagus/linter,josa42/Linter,DanPurdy/linter,e-jigsaw/Linter,UltCombo/linter,kaeluka/linter,levity/linter,elkeis/linter,iam4x/linter |
3e0c6c53637ae397be1ed2417dea469ce09b32e4 | lib/toolbar-button-view.coffee | lib/toolbar-button-view.coffee | {CompositeDisposable} = require 'atom'
{View, $} = require 'atom-space-pen-views'
module.exports =
class ToolbarButtonView extends View
@content: ->
@div class: 'icon'
initialize: (icon, callback, tooltip = null, iconset = null) ->
@subscriptions = new CompositeDisposable
iconClass = if !iconset then... | {CompositeDisposable} = require 'atom'
{View} = require 'atom-space-pen-views'
module.exports =
class ToolbarButtonView extends View
@content: ->
@div class: 'icon'
initialize: (icon, callback, tooltip = null, iconset = null) ->
@subscriptions = new CompositeDisposable
iconClass = if !iconset then 'i... | Simplify getting command dispatch target | Simplify getting command dispatch target
| CoffeeScript | mit | jerone/tool-bar,cakecatz/toolbar,jerone/tool-bar,suda/tool-bar,suda/tool-bar |
14a33c442a1e529478cc3d8d14c241e89864f6b8 | lib/linter-scalac.coffee | lib/linter-scalac.coffee | {exec, child} = require('child_process')
fs = require('fs')
Linter = require(atom.packages.getLoadedPackage('linter').path + '/lib/linter')
class LinterScalac extends Linter
@syntax: ['source.scala']
classpath: null
cmd: 'scalac'
linterName: 'scalac'
regex: 'scala:(?<line>\\d+): ((?<error>error)|(?<warning>wa... | {exec, child} = require('child_process')
fs = require('fs')
Linter = require(atom.packages.getLoadedPackage('linter').path + '/lib/linter')
class LinterScalac extends Linter
@syntax: ['source.scala']
classpath: null
cmd: 'scalac'
linterName: 'scalac'
regex: 'scala:(?<line>\\d+): ((?<error>error)|(?<warning>wa... | Include verbose details about error/warning. | Include verbose details about error/warning.
| CoffeeScript | mit | AtomLinter/linter-scalac |
747accd4c0f769700e330ba2945fe62ecbecd353 | client/view/agenda.coffee | client/view/agenda.coffee | mid = new Date('02/25/14 00:00:00')
Template.agenda.day1 = ->
_.sortBy(@items.filter((i) -> i.time < mid), (i) -> i.time)
Template.agenda.day2 = ->
_.sortBy(@items.filter((i) -> i.time > mid), (i) -> i.time)
Template.agenda.canSee = -> true
# u = User.current()
# u and (u.admin() or u.moderator())
Template.a... | mid = new Date('02/25/2014 00:00:00')
Template.agenda.day1 = ->
_.sortBy(@items.filter((i) -> i.time < mid), (i) -> i.time)
Template.agenda.day2 = ->
_.sortBy(@items.filter((i) -> i.time > mid), (i) -> i.time)
Template.agenda.canSee = -> true
# u = User.current()
# u and (u.admin() or u.moderator())
Template... | Fix FF bug: parsing the mid date was wrong. cc: @urielster @ofri | Fix FF bug: parsing the mid date was wrong. cc: @urielster @ofri
| CoffeeScript | apache-2.0 | rantav/reversim-summit-2015,rantav/reversim-summit-2015,rantav/reversim-summit-2014,rantav/reversim-summit-2015,rantav/reversim-summit-2014 |
fd0ec0ed8a45d02f80c68e15fed3dd34291cec7a | lms/static/coffee/spec/requirejs_spec.coffee | lms/static/coffee/spec/requirejs_spec.coffee | 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 ... | describe "RequireJS namespacing", ->
beforeEach ->
@addMatchers
requirejsTobeUndefined: ->
typeof requirejs is "undefined"
requireTobeUndefined: ->
typeof require is "undefined"
defineTobeUndefined: ->
typeof define is "undefined"
it "check that the RequireJS object... | Work on RequireJS Jasmine test. | Work on RequireJS Jasmine test.
| CoffeeScript | agpl-3.0 | jbzdak/edx-platform,jonathan-beard/edx-platform,atsolakid/edx-platform,andyzsf/edx,syjeon/new_edx,pdehaye/theming-edx-platform,adoosii/edx-platform,zerobatu/edx-platform,chauhanhardik/populo,utecuy/edx-platform,teltek/edx-platform,synergeticsedx/deployment-wipro,OmarIthawi/edx-platform,pabloborrego93/edx-platform,arbra... |
d7dff525b434770ceb5afdbbfc7d4c430fd2b70d | app/views/home_page_view.coffee | app/views/home_page_view.coffee | template = require 'views/templates/home'
PageView = require 'views/base/page_view'
module.exports = class HomePageView extends PageView
template: template
className: 'home-page'
| template = require 'views/templates/home'
PageView = require 'views/base/page_view'
module.exports = class HomePageView extends PageView
template: template
className: 'home-page'
id: 'home-page'
| Make home page trackable by sidebar | Make home page trackable by sidebar
| CoffeeScript | apache-2.0 | despairblue/scegratoo |
8a0aef8d618ae4aa4e8ca5276e9b24302731e47f | plugins/owned-list/index.cjsx | plugins/owned-list/index.cjsx | {React, ReactBootstrap} = window
{Button} = ReactBootstrap
remote = require 'remote'
BrowserWindow = remote.require 'browser-window'
module.exports =
name: 'OwnedList'
priority: 50
displayName: '详细信息'
description: '提供已有舰娘和已有装备详细信息查看'
reactClass: React.createClass
shipInfoWindow: new BrowserWindow
... | {React, ReactBootstrap} = window
{Button} = ReactBootstrap
remote = require 'remote'
BrowserWindow = remote.require 'browser-window'
shipInfoWindow = null
initialShipInfoWindow = ->
shipInfoWindow = new BrowserWindow
#Use cconfig
x: 0
y: 0
width: 800
height: 600
show: false
shipInfoWindow... | Adjust pop-up window as a variable | Adjust pop-up window as a variable [issue]
Issue:
Failed to hide window
| CoffeeScript | mit | syncsyncsynchalt/poi,xuqing1989/poi,dkwingsmt/poi,Dibel/poi,syncsyncsynchalt/poi,poooi/poi,pnlybubbles/poi,gnattu/poi,Tedko/poi,poooi/poi,dkwingsmt/poi,TedaLIEz/poi,yukixz/poi,nagatoyk/poi,Wafer-Li/poi,xuqing1989/poi,pnlybubbles/poi,PHELiOX/poi,TedaLIEz/poi,cnrpman/poi,zyc434343/poi,kafuuchino/poi,agentmario/poi,NatLee... |
90526d9b0d1b384db1d529a3b81599947f09d6dc | 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()}"
@butto... | {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()}"
@butto... | Reposition *after* you add to the DOM. | Reposition *after* you add to the DOM.
It doesn't seem to flicker, and you need the parent for positioning to work
properly.
| CoffeeScript | mit | antcodd/merge-conflicts,smashwilson/merge-conflicts,smashwilson/merge-conflicts |
c10d09869266a48ce5bd9f3d43e48222d38d4d33 | client/skr/components/TermsChooser.cjsx | client/skr/components/TermsChooser.cjsx | SHARED_COLLECTION = new Skr.Models.PaymentTerm.Collection
class Skr.Components.TermsChooser extends Lanes.React.Component
propTypes:
model: Lanes.PropTypes.Model.isRequired
label: React.PropTypes.string
name: React.PropTypes.string
getDefaultProps: ->
label: 'Payment Terms', ... | SHARED_COLLECTION = new Skr.Models.PaymentTerm.Collection
class Skr.Components.TermsChooser extends Lanes.React.Component
propTypes:
model: Lanes.PropTypes.Model.isRequired
label: React.PropTypes.string
name: React.PropTypes.string
useFinder: React.PropTypes.bool
getDefaultPr... | Add finder to terms chooser | Add finder to terms chooser
| CoffeeScript | agpl-3.0 | argosity/stockor,argosity/stockor,argosity/stockor,argosity/stockor |
de67d1b62fc5dc31f2e94af8ebf00d601af6c733 | keymaps/to-the-hubs.cson | keymaps/to-the-hubs.cson | '.workspace':
'alt-g o': 'open-on-github:file'
'alt-g b': 'open-on-github:blame'
'alt-g h': 'open-on-github:history'
'alt-g c': 'open-on-github:copy-url'
'alt-g r': 'open-on-github:branch-compare'
| 'atom-workspace':
'alt-g o': 'open-on-github:file'
'alt-g b': 'open-on-github:blame'
'alt-g h': 'open-on-github:history'
'alt-g c': 'open-on-github:copy-url'
'alt-g r': 'open-on-github:branch-compare'
| Fix deprecated selector in keymap | Fix deprecated selector in keymap
| CoffeeScript | mit | atom/open-on-github |
8cdae359c7ca2af423014dc5571743c2daed0c2f | src/pry/commands/xecute.coffee | src/pry/commands/xecute.coffee | Command = require('../command')
Range = require('../range')
Compiler = require('../compiler')
class Xecute extends Command
name: ''
last_error: null
args: new Range(1, Infinity)
constructor: ->
super
@compiler = new Compiler({@scope})
execute: (input, chain) ->
return @switch_mode(chain) if ... | Command = require('../command')
Range = require('../range')
Compiler = require('../compiler')
class Xecute extends Command
name: 'mode'
definition: 'Switched between CoffeeScript and JavaScript execution.'
help: 'Type `mode` to switch between using JavaScript or CoffeeScript.'
last_error: null
args: new R... | Document hidden feature to switch between javascript and coffeescript. | Document hidden feature to switch between javascript and coffeescript.
| CoffeeScript | mit | blainesch/pry.js |
fbbc325a84f5856ec024b803f34cf9b4894ebcce | src/search-subscription.coffee | src/search-subscription.coffee | _ = require 'underscore'
Rx = require 'rx-lite'
NylasAPI = require './flux/nylas-api'
DatabaseStore = require './flux/stores/database-store'
Thread = require './flux/models/thread'
MutableQuerySubscription = require './flux/models/mutable-query-subscription'
class SearchSubscription extends MutableQuerySubscription
... | _ = require 'underscore'
Rx = require 'rx-lite'
NylasAPI = require './flux/nylas-api'
DatabaseStore = require './flux/stores/database-store'
Thread = require './flux/models/thread'
MutableQuerySubscription = require './flux/models/mutable-query-subscription'
class SearchSubscription extends MutableQuerySubscription
... | Update SearchSubscription to support basic multiaccount search... seems to work? | Update SearchSubscription to support basic multiaccount search... seems to work?
| CoffeeScript | mit | nylas/nylas-mail,nirmit/nylas-mail,nylas/nylas-mail,nylas/nylas-mail,simonft/nylas-mail,nylas-mail-lives/nylas-mail,nylas-mail-lives/nylas-mail,simonft/nylas-mail,nylas/nylas-mail,nirmit/nylas-mail,nirmit/nylas-mail,simonft/nylas-mail,nirmit/nylas-mail,nirmit/nylas-mail,simonft/nylas-mail,nylas-mail-lives/nylas-mail,ny... |
6a6f2dbd21f238f5b5ea29d24403a6be4dee05d3 | vendor/assets/javascripts/qrious-ui.js.coffee | vendor/assets/javascripts/qrious-ui.js.coffee | #= require es5-shim/es5-shim.js
#= require spin.js/dist/spin
#= require jquery/jquery
#= require angular/angular
#= require angular-bootstrap/ui-bootstrap-tpls
#= require angular-bootstrap-colorpicker/js/bootstrap-colorpicker-module
#= require angular-file-upload/angular-file-upload
#= require angular-resource/angular-... | #= require es5-shim/es5-shim.js
#= require spin.js/dist/spin
#= require jquery/jquery
#= require angular/angular
#= require angular-bootstrap/ui-bootstrap-tpls
#= require angular-bootstrap-colorpicker/js/bootstrap-colorpicker-module
#= require angular-file-upload/angular-file-upload
#= require angularjs-rails-resource/... | Remove ng-resource include (keep the bower component for now) | Remove ng-resource include (keep the bower component for now)
| CoffeeScript | mit | kmamykin/qrious-ui |
5bff4afe05b30d0806280bd64b7079dbf36fd17a | 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 minim... | 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 minim... | Add version test for minimap v3 | Add version test for minimap v3
| CoffeeScript | mit | atom-minimap/minimap-find-and-replace |
f8cbdc429a3665e38d590f3d821f14efeafdf1f9 | src/components/task/viewing-as-student-name.cjsx | src/components/task/viewing-as-student-name.cjsx | React = require 'react'
LoadableItem = require '../loadable-item'
{PerformanceStore, PerformanceActions} = require '../../flux/performance'
ViewingAsStudentName = React.createClass
displayName: 'ViewingAsStudentName'
propTypes:
courseId: React.PropTypes.string.isRequired
taskId: React.PropTypes.string.isR... | React = require 'react'
LoadableItem = require '../loadable-item'
Name = require '../name'
{PerformanceStore, PerformanceActions} = require '../../flux/performance'
ViewingAsStudentName = React.createClass
displayName: 'ViewingAsStudentName'
propTypes:
courseId: React.PropTypes.string.isRequired
taskId: Re... | Use Name comp for teacher viewing student tasks | Use Name comp for teacher viewing student tasks
| CoffeeScript | agpl-3.0 | openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js |
f4d5832a119a72e0a83948774ec67b4aa946636b | project_template/app/application.coffee | project_template/app/application.coffee | $ = require('jquery')
attachFastClick = require('fastclick')
app = require('./app')
$ ->
app.start()
attachFastClick(document.body)
# Stretch main container height so it's not resized when the viewport is
# resized. This happens on Android when the keyboard pops up.
setTimeout ->
... | $ = require('jquery')
FastClick = require('fastclick')
app = require('./app')
$ ->
app.start()
FastClick.attach(document.body)
# Stretch main container height so it's not resized when the viewport is
# resized. This happens on Android when the keyboard pops up.
setTimeout ->
... | Fix FastClick for webpack compatibility | Fix FastClick for webpack compatibility
https://github.com/ftlabs/fastclick/issues/398
| CoffeeScript | mit | kabisa/maji,kabisa/maji,kabisa/maji |
e46c37786e0968a46234e8af23470d7e371ecccb | src/coffee/cilantro.coffee | src/coffee/cilantro.coffee | define [
'./cilantro/core'
'./cilantro/changelog'
'./cilantro/models'
'./cilantro/structs'
'./cilantro/ui'
], (c, changelog, models, structs, ui) ->
c.changelog = changelog
c.models = models
c.structs = structs
c.ui = ui
# Defines the minimum version of Serrano that this versio... | define [
'./cilantro/core'
'./cilantro/changelog'
'./cilantro/models'
'./cilantro/structs'
'./cilantro/ui'
], (c, changelog, models, structs, ui) ->
c.changelog = changelog
c.models = models
c.structs = structs
c.ui = ui
# Defines the minimum version of Serrano that this versio... | Drop the minimum Serrano version to >= 2.0.18 | Drop the minimum Serrano version to >= 2.0.18
| CoffeeScript | bsd-2-clause | chop-dbhi/cilantro,chop-dbhi/cilantro,chop-dbhi/cilantro |
e9f45ab2f6d84fcb6735224fbabc1e8386d70baa | src/flux/ecosystems.coffee | src/flux/ecosystems.coffee | _ = require 'underscore'
flux = require 'flux-react'
LOADING = 'loading'
FAILED = 'failed'
EcosystemsActions = flux.createActions [
'load'
'loaded'
'FAILED'
]
EcosystemsStore = flux.createStore
actions: _.values(EcosystemsActions)
_asyncStatus: null
load: -> # Used by API
@_asyncStatus = LOADING
... | _ = require 'underscore'
flux = require 'flux-react'
LOADING = 'loading'
FAILED = 'failed'
EcosystemsActions = flux.createActions [
'load'
'loaded'
'FAILED'
]
EcosystemsStore = flux.createStore
actions: _.values(EcosystemsActions)
_asyncStatus: null
load: -> # Used by API
@_asyncStatus = LOADING
... | Return book instead of ecosystem | Return book instead of ecosystem
| CoffeeScript | agpl-3.0 | openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js |
4f5b989cbbaec67572339d381f5c53779c729cbc | src/overlay-manager.coffee | src/overlay-manager.coffee | module.exports =
class OverlayManager
constructor: (@container) ->
@overlayNodesById = {}
render: (props) ->
{presenter} = props
for decorationId, {pixelPosition, item} of presenter.state.content.overlays
@renderOverlay(presenter, decorationId, item, pixelPosition)
for id, overlayNode of @o... | module.exports =
class OverlayManager
constructor: (@container) ->
@overlayNodesById = {}
render: (props) ->
{presenter} = props
for decorationId, {pixelPosition, item} of presenter.state.content.overlays
@renderOverlay(presenter, decorationId, item, pixelPosition)
for id, overlayNode of @o... | Use property instead of non-existent method in OverlayManager | Use property instead of non-existent method in OverlayManager | CoffeeScript | mit | mnquintana/atom,elkingtonmcb/atom,Rodjana/atom,AlbertoBarrago/atom,mnquintana/atom,Jonekee/atom,burodepeper/atom,kevinrenaers/atom,codex8/atom,prembasumatary/atom,Neron-X5/atom,matthewclendening/atom,hagb4rd/atom,tisu2tisu/atom,deepfox/atom,RobinTec/atom,florianb/atom,jlord/atom,CraZySacX/atom,t9md/atom,nucked/atom,vje... |
ce6dc7ecac4d85ab56ebbf7a3701151b34bcfe96 | base/assets/javascripts/base.coffee | base/assets/javascripts/base.coffee | # Toggle the administration system.
($ document).keypress (e) ->
($ '.administration').toggleClass 'visible' if (e.keyCode || e.which) == 96
# "Hero" image fade-in.
window.onload = ->
($ '.hero-image img').animate({opacity: 1}, 300)
# Search field highlighting.
($ document).ready ->
($ '#id_q').focus ->
($ ... | # Toggle the administration system.
($ document).keypress (e) ->
($ '.administration').toggleClass 'visible' if (e.keyCode || e.which) == 96
# "Hero" image fade-in.
window.onload = ->
($ '.hero-image img').animate({opacity: 1}, 300)
($ document).ready ->
# Search field highlighting.
($ '#id_q').focus ->
(... | Move all the JS under one .ready() call. Not sure if correct. | Move all the JS under one .ready() call. Not sure if correct.
| CoffeeScript | apache-2.0 | hello-base/web,hello-base/web,hello-base/web,hello-base/web |
bee322e07f591687955bf92f266d8bcec988a43f | core/app/backbone/collections/evidence_collection.coffee | core/app/backbone/collections/evidence_collection.coffee | class window.EvidenceCollection extends Backbone.Factlink.Collection
initialize: (models, options) ->
@fact = options.fact
@_supportingCollection = new OneSidedEvidenceCollection null, fact: @fact, type: 'supporting'
@_weakeningCollection = new OneSidedEvidenceCollection null, fact: @fact, type: 'weaken... | class window.EvidenceCollection extends Backbone.Factlink.Collection
initialize: (models, options) ->
@fact = options.fact
@_supportingCollection = new OneSidedEvidenceCollection null, fact: @fact, type: 'supporting'
@_weakeningCollection = new OneSidedEvidenceCollection null, fact: @fact, type: 'weaken... | Remove evidence when it is removed from an underlying collection | Remove evidence when it is removed from an underlying collection
| CoffeeScript | mit | Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core,Factlink/factlink-core,daukantas/factlink-core,daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core |
c520d596fa7103d0c63b68fccb9e47589a93e672 | src/scripts/views/gui/SourceFileMarkup.coffee | src/scripts/views/gui/SourceFileMarkup.coffee | #= require data/ViewData.coffee
#= require gui/GuiBase.coffee
class SourceFileMarkup extends GuiBase
constructor: (@filename, @id, @uri, @sourceFile) ->
@formatted_code = null
@element = $("<li>#{@filename}</li>", id: @id)
super()
# Create HTML code to represent a source file
getFormattedCode: ->
... | #= require data/ViewData.coffee
#= require gui/GuiBase.coffee
class SourceFileMarkup extends GuiBase
constructor: (@filename, @id, @uri, @sourceFile) ->
@formatted_code = null
@element = $("<li>#{@filename}</li>", id: @id)
super()
# Create HTML code to represent a source file
getFormattedCode: ->
... | Fix line numbering of source files | Fix line numbering of source files
| CoffeeScript | mit | kevinvandervlist/asbru-chrome-plugin,kevinvandervlist/asbru-chrome-plugin |
68c4d968fadc265c54d97719f924efa29a115ece | lib/sensu-dashboard/assets/javascripts/handlebars_helpers.coffee | lib/sensu-dashboard/assets/javascripts/handlebars_helpers.coffee | Handlebars.registerHelper "selected", (selected) ->
return if selected then "checked" else ""
Handlebars.registerHelper "truncate", (text, length) ->
truncated = text.substring(0, length)
if text.length > length
truncated = truncated + "..."
return truncated
Handlebars.registerHelper "strip", (text) ->
... | Handlebars.registerHelper "selected", (selected) ->
return if selected then "checked" else ""
Handlebars.registerHelper "truncate", (text, length) ->
truncated = text.substring(0, length)
if text.length > length
truncated = truncated + "..."
return truncated
Handlebars.registerHelper "strip", (text) ->
... | Use ISO8601 format for timestamps | Use ISO8601 format for timestamps
| CoffeeScript | mit | sensu/sensu-dashboard,sensu/sensu-dashboard |
ee9f9c6c60fb86c202f1d68ad8e719a0247fb1fe | test/javascripts/support/mock_server.js.coffee | test/javascripts/support/mock_server.js.coffee | @mockEventStreamResponse = ->
@server.respondWith 'GET', '/event_stream', [
400
'Content-Type': 'application/json'
JSON.stringify {}
]
@mockAuthorizedRouteReponse = ->
@server.respondWith 'GET', '/admin/journals', [
403
'Tahi-Authorization-Check': 'true'
JSON.stringify {}
]
# papers/... | @mockEventStreamResponse = ->
@server.respondWith 'GET', '/event_stream', [
400
'Content-Type': 'application/json'
JSON.stringify {}
]
@mockAuthorizedRouteReponse = ->
@server.respondWith 'GET', '/admin/journals/authorization', [
204
'Tahi-Authorization-Check': 'true'
'Content-Type': 'app... | Add a standard authorization response | Add a standard authorization response
| CoffeeScript | mit | johan--/tahi,johan--/tahi,johan--/tahi,johan--/tahi |
6cb6f6ed66000a52036e4573b6ebfed96a87c643 | tests/setup.coffee | tests/setup.coffee | _ = require('lodash')
Promise = require('bluebird')
IS_BROWSER = window?
if (IS_BROWSER)
# The browser mock assumes global fetch prototypes exist
realFetchModule = require('fetch-ponyfill')({ Promise })
global.Promise = Promise
global.Headers = realFetchModule.Headers
global.Request = realFetchModule.Request
gl... | _ = require('lodash')
Promise = require('bluebird')
IS_BROWSER = window?
if (IS_BROWSER)
# The browser mock assumes global fetch prototypes exist
# Can improve after https://github.com/wheresrhys/fetch-mock/issues/158
realFetchModule = require('fetch-ponyfill')({ Promise })
global.Headers = realFetchModule.Header... | Document fetch-mock issue workarounds so we can remove them later | Document fetch-mock issue workarounds so we can remove them later
This also removes global.Promise - that workaround was independently
solved by setting fetchMock.fetchMock.Promise
| CoffeeScript | apache-2.0 | resin-io/resin-request,resin-io-modules/resin-request |
c7fc84f5162f58d1f643beaf88196a3333c75980 | app/assets/javascripts/commits.js.coffee | app/assets/javascripts/commits.js.coffee | class @CommitsList
@timer = null
@init: (ref, limit) ->
$("body").on "click", ".day-commits-table li.commit", (event) ->
if event.target.nodeName != "A"
location.href = $(this).attr("url")
e.stopPropagation()
return false
Pager.init limit, false
@content = $("#commits-li... | class @CommitsList
@timer = null
@init: (ref, limit) ->
$("body").on "click", ".day-commits-table li.commit", (event) ->
if event.target.nodeName != "A"
location.href = $(this).attr("url")
e.stopPropagation()
return false
Pager.init limit, false
@content = $("#commits-li... | Use fadeTo instead of css | Use fadeTo instead of css
Signed-off-by: Dmitriy Zaporozhets <be23d75b156792e5acab51b196a2deb155d35d6a@gmail.com>
| CoffeeScript | mit | mmkassem/gitlabhq,dwrensha/gitlabhq,larryli/gitlabhq,jrjang/gitlabhq,Soullivaneuh/gitlabhq,martijnvermaat/gitlabhq,larryli/gitlabhq,iiet/iiet-git,dreampet/gitlab,icedwater/gitlabhq,duduribeiro/gitlabhq,mrb/gitlabhq,jirutka/gitlabhq,screenpages/gitlabhq,jirutka/gitlabhq,allysonbarros/gitlabhq,daiyu/gitlab-zh,dplarson/gi... |
af85e7f827729ce9059daa465f6e0b8a9cd8e202 | scripts/butt.coffee | scripts/butt.coffee | # Description:
# Taunt dat ass
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# butt name
#
# Author:
# sshirokov
insult = [
(opt) -> "#{opt.name} has a big butt.",
(opt) -> "And their big butt smells.",
(opt) -> "#{opt.name} likes to smell their big butt."
]
module.exports = (robot) ... | # Description:
# Taunt dat ass
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# butt name
#
# Author:
# sshirokov
insult = [
(opt) -> "#{opt.name} has a big butt.",
(opt) -> "And their big butt smells.",
(opt) -> "#{opt.name} likes to smell their big butt."
]
module.exports = (robot) ... | Allow for a plurality of ass. | Allow for a plurality of ass. | CoffeeScript | mit | sbryant/arrakis-hubot,n1ckn4m3/hayt,desert-planet/hayt,thecodercody/hayt,skalnik/hayt,websages/hayt,pmn/hayt,drobati/hayt,Drewzar/arrakis-hubot |
d4d73ae6d89806fc8fecdb9e7103d6b8074d53f3 | test/helpers/fake-window.coffee | test/helpers/fake-window.coffee | class FakeWindow
clearInterval: sinon.spy()
setInterval: sinon.spy -> Math.random()
localStorage:
getItem: sinon.stub().returns('[]')
setItem: sinon.stub()
document:
hidden: false
module.exports = FakeWindow
| _ = require 'underscore'
EmptyFn = ->
return undefined
class FakeWindow
clearInterval: EmptyFn
setInterval: -> Math.random()
localStorage:
getItem: -> []
setItem: EmptyFn
document:
hidden: false
constructor: ->
for method in _.functions(@)
sinon.spy(@, method)
module.exports = Fake... | Make FakeWindow spy on itself when instantiated | Make FakeWindow spy on itself when instantiated
| CoffeeScript | agpl-3.0 | openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js |
16dc71885a5c004f4ba0bcae925ce9cc0289549f | .atom/packages.cson | .atom/packages.cson | packages: [
"atom-beautify"
"atom-ide-ui"
"atom-python-virtualenv"
"autocomplete-python"
"autocomplete-robot-framework"
"build-gradle"
"busy-signal"
"editorconfig"
"file-icons"
"highlight-selected"
"hyperclick"
"hyperclick-robot-framework"
"ide-flowtype"
"ide-java"
"ide-php"
"ide-python"... | packages: [
"atom-beautify"
"atom-ide-ui"
"atom-python-virtualenv"
"autocomplete-python"
"autocomplete-robot-framework"
"build-gradle"
"busy-signal"
"editorconfig"
"emmet"
"file-icons"
"highlight-selected"
"hyperclick"
"hyperclick-robot-framework"
"ide-flowtype"
"ide-java"
"ide-php"
"i... | Add Emmet plugin to Atom. | Add Emmet plugin to Atom.
| CoffeeScript | mit | rickypc/dotfiles,rickypc/dotfiles,rickypc/dotfiles,rickypc/dotfiles,rickypc/dotfiles,rickypc/dotfiles,rickypc/dotfiles |
096a782f7834e03ea933076ddb566e0241a32edd | test/languages.coffee | test/languages.coffee | humanizeDuration = require ".."
assert = require "assert"
fs = require "fs"
path = require "path"
parseCSV = require "csv-parse"
options = (language) ->
return {
language: language
delimiter: "+"
units: [
"year"
"month"
"week"
"day"
"hour"
"minute"
"second"
... | humanizeDuration = require ".."
assert = require "assert"
fs = require "fs"
path = require "path"
parseCSV = require "csv-parse"
options = (language) ->
return {
language: language
delimiter: "+"
units: [
"year"
"month"
"week"
"day"
"hour"
"minute"
"second"
... | Fix tests that'd give false positives | Fix tests that'd give false positives
| CoffeeScript | unlicense | TioNoob/HumanizeDuration.js,smnbbrv/HumanizeDuration.js,EvanHahn/HumanizeDuration.js |
1d36c44519303605f70dde9eb2e35f3a6072ec38 | coffee/application.coffee | coffee/application.coffee | _ = require "underscore"
$ = require "jquery"
net = require "net"
{AppDispatcher} = require "./dispatchers"
setupGlobals = (g, win) ->
g = _.extend g,
window: win.window
document: win.window.document
navigator: win.window.navigator
configureReload = (document) ->
client = net.connect {port: 35729}, ->... | _ = require "underscore"
$ = require "jquery"
net = require "net"
{AppDispatcher} = require "./dispatchers"
setupGlobals = (g, win) ->
g = _.extend g,
window: win.window
document: win.window.document
navigator: win.window.navigator
configureReload = (document) ->
client = net.connect {port: 35729}, ->... | Add code to enable native menu and fix copy-n-paste | Add code to enable native menu and fix copy-n-paste
This fix was from https://github.com/nwjs/nw.js/issues/1955.
| CoffeeScript | apache-2.0 | ContinuumIO/dide,ContinuumIO/dide,ContinuumIO/dide |
2a7ca364fa722f5cf1e61d7baf0d7b6383613df7 | app/assets/javascripts/sprangular/directives/creditCardForm.coffee | app/assets/javascripts/sprangular/directives/creditCardForm.coffee | Sprangular.directive 'creditCardForm', ->
restrict: 'E'
templateUrl: 'credit_cards/form.html'
scope:
creditCard: '='
controller: ($scope) ->
$scope.months = [
{index: 1, name: 'January'},
{index: 2, name: 'February'},
{index: 3, name: 'March'},
{index: 4, name: 'April'},
{i... | Sprangular.directive 'creditCardForm', ->
restrict: 'E'
templateUrl: 'credit_cards/form.html'
scope:
creditCard: '='
controller: ($scope, $locale) ->
$scope.months = _.map $locale.DATETIME_FORMATS.MONTH, (month, index) ->
{"index": index, "name": month}
currentYear = (new Date).getFullYear()
... | Use angular locale for credit card months | Use angular locale for credit card months
| CoffeeScript | mit | sprangular/sprangular,sprangular/sprangular,sprangular/sprangular |
c9deb4f7f2ffa3d35a597fea58b9a1c9cac43084 | src/content.coffee | src/content.coffee | # Copyright (c) 2012 Mattes Groeger
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, dist... | # Copyright (c) 2012 Mattes Groeger
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, dist... | Update context menu after deselection click | Update context menu after deselection click
| CoffeeScript | mit | dragon788/chrome-open-links |
0e4b8eab8e95be529f8d98f1683c29bbc9c125f7 | lib/csv-progress-element.coffee | lib/csv-progress-element.coffee | {registerOrUpdateElement, SpacePenDSL} = require 'atom-utils'
module.exports =
class CSVProgressElement extends HTMLElement
SpacePenDSL.includeInto(this)
@content: ->
@div class: 'wrapper', =>
@label class: 'bytes', outlet: 'bytesLabel', '---'
@label class: 'lines', outlet: 'linesLabel', '---'
... | {registerOrUpdateElement, SpacePenDSL} = require 'atom-utils'
byteUnits = ['B', 'kB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB']
module.exports =
class CSVProgressElement extends HTMLElement
SpacePenDSL.includeInto(this)
@content: ->
@div class: 'wrapper', =>
@label class: 'bytes', outlet: 'bytesLabel',... | Add human readable file size in progress | Add human readable file size in progress
| CoffeeScript | mit | abe33/atom-tablr |
af60f2869bf552e9351e8ace6adc65ffdef4a316 | spec/format-spec.coffee | spec/format-spec.coffee | {WorkspaceView} = require 'atom'
require 'fs'
format = require '../lib/format'
describe "JSFormat package tests", ->
beforeEach ->
atom.workspaceView = new WorkspaceView()
atom.workspace = atom.workspaceView.model
# JSFormat tests here
describe "when the textbuffer is being formatted", ->
beforeEa... | {WorkspaceView} = require 'atom'
require 'fs'
format = require '../lib/format'
describe "JSFormat package tests", ->
beforeEach ->
atom.workspaceView = new WorkspaceView()
atom.workspace = atom.workspaceView.model
# JSFormat tests here
describe "when the textbuffer is being formatted", ->
beforeEa... | Format on save test passing | Format on save test passing
| CoffeeScript | mit | jdc0589/jsformat-atom,gupta-tarun/jsformat-atom |
2635979fcc68f39fd81742fa151a2dd8aab87306 | test/progress/index.spec.coffee | test/progress/index.spec.coffee | React = require 'react'
{Testing, expect, sinon, _} = require 'openstax-react-components/test/helpers'
Collection = require 'task/collection'
{Progress} = require 'progress'
TASK = require 'cc/tasks/C_UUID/m_uuid/GET'
Wrapper = React.createClass
childContextTypes:
moduleUUID: React.PropTypes.string
getCh... | React = require 'react'
{Testing, expect, sinon, _} = require 'openstax-react-components/test/helpers'
Collection = require 'task/collection'
{Progress} = require 'progress'
TASK = require 'cc/tasks/C_UUID/m_uuid/GET'
Wrapper = React.createClass
childContextTypes:
moduleUUID: React.PropTypes.string
coll... | Add collectionUUID to context & props | Add collectionUUID to context & props
| CoffeeScript | agpl-3.0 | openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js |
fd751141903bd6cea14c001ade44f2df946ce3a6 | source/javascripts/application.js.coffee | source/javascripts/application.js.coffee | nav = document.querySelectorAll('header.page-header')[0]
window.onscroll = ->
if window.pageYOffset > 400
nav.classList.add 'start'
else
nav.classList.remove 'start'
return
| nav = document.querySelectorAll('header.page-header')[0]
window.onscroll = ->
if window.pageYOffset > 150
nav.classList.add 'start'
else
nav.classList.remove 'start'
return
| Change header sooner on homepage | Change header sooner on homepage
| CoffeeScript | mit | team1432/team1432.github.io,team1432/team1432.github.io,team1432/team1432.github.io |
e965c603d2641c6a6f2dd6afd2b2ff76d97978c4 | gulpfile.coffee | gulpfile.coffee | path = require('path')
gulp = require('gulp')
coffee = require('gulp-coffee')
inlinesource = require('gulp-inline-source')
mocha = require('gulp-mocha')
shell = require('gulp-shell')
packageJSON = require('./package.json')
OPTIONS =
files:
coffee: [ 'lib/**/*.coffee', 'gulpfile.coffee' ]
app: 'lib/**/*.coffee'
... | path = require('path')
gulp = require('gulp')
coffee = require('gulp-coffee')
inlinesource = require('gulp-inline-source')
mocha = require('gulp-mocha')
shell = require('gulp-shell')
packageJSON = require('./package.json')
OPTIONS =
files:
coffee: [ 'lib/**/*.coffee', 'gulpfile.coffee' ]
app: 'lib/**/*.coffee'
... | Use spec test reporter, so we can debug with output | Use spec test reporter, so we can debug with output
| CoffeeScript | apache-2.0 | resin-io/resin-cli,resin-io/resin-cli,resin-io/resin-cli,resin-io/resin-cli |
0cdef40f13c1e0ddd5c089454f151323edf0fb67 | impls/browser/index.coffee | impls/browser/index.coffee | 'use strict'
[utils, Model] = ['utils', 'model'].map require
exports.Request = require('./request.coffee')()
exports.Response = require('./response.coffee')()
exports.init = ->
uri = location.pathname
uid = utils.uid()
res = @onRequest
uid: uid
method: @constructor.GET
uri: uri.slice 1
data: null
expo... | 'use strict'
[utils, Model] = ['utils', 'model'].map require
exports.Request = require('./request.coffee')()
exports.Response = require('./response.coffee')()
exports.init = ->
# Send internal request to change the page based on the URI
changePage = (uri) =>
# change browser URI in the history
history.pushSt... | Add support for anchors in the browser impl | Add support for anchors in the browser impl
| CoffeeScript | apache-2.0 | Neft-io/neft,Neft-io/neft,Neft-io/neft,Neft-io/neft,Neft-io/neft,Neft-io/neft |
2868fbfad4930a17ccc867233defeac4d527e6d9 | src/views/ui/form/editors/factory.coffee | src/views/ui/form/editors/factory.coffee | module.exports =
build: (options) =>
field = options.field
fieldClass = require "./#{field.get 'as'}"
new fieldClass
controller: options.controller
presenter: field
fieldStyle: options.fieldStyle
| module.exports =
build: (options) =>
field = options.field
fieldClass = require "./#{field.get 'as'}"
new fieldClass
controller: options.controller
presenter: field
name: field.get 'key'
fieldStyle: options.fieldStyle
| Set 'name' on editor view based on field key | Set 'name' on editor view based on field key | CoffeeScript | mit | trabian/titanium-backbone,trabian/titanium-backbone,vcu/titanium-backbone,vcu/titanium-backbone |
15544c5c3841a3d6fc18b6331e40ac4b43c2aaf4 | client/app/lib/util/isVideoFeatureEnabled.coffee | client/app/lib/util/isVideoFeatureEnabled.coffee | checkFlag = require './checkFlag'
module.exports = isVideoFeatureEnabled = ->
return yes
# for now we are only allowing super-admins to start video chat.
# After we release it publicly, we only need to change the logic here. ~Umut
# checkFlag 'super-admin'
| kd = require 'kd'
module.exports = isVideoFeatureEnabled = ->
not kd.singletons.mainController.isFeatureDisabled 'video-collaboration'
| Use mainController's feature check to enable video | Use mainController's feature check to enable video
| CoffeeScript | agpl-3.0 | koding/koding,usirin/koding,gokmen/koding,sinan/koding,koding/koding,gokmen/koding,acbodine/koding,szkl/koding,gokmen/koding,alex-ionochkin/koding,rjeczalik/koding,alex-ionochkin/koding,kwagdy/koding-1,kwagdy/koding-1,mertaytore/koding,jack89129/koding,sinan/koding,gokmen/koding,koding/koding,andrewjcasal/koding,cihang... |
f6983cec54327d9b4af938d5c179e0ce68485db4 | app/api/config.coffee | app/api/config.coffee | DEFAULT_ENV = 'staging'
API_HOSTS =
production: 'https://panoptes.zooniverse.org'
staging: 'https://panoptes-staging.zooniverse.org'
API_APPLICATION_IDS =
production: 'f79cf5ea821bb161d8cbb52d061ab9a2321d7cb169007003af66b43f7b79ce2a'
staging: '535759b966935c297be11913acee7a9ca17c025f9f15520e7504728e71110a27'
... | DEFAULT_ENV = 'staging'
API_HOSTS =
production: 'https://www.zooniverse.org'
staging: 'https://panoptes-staging.zooniverse.org'
API_APPLICATION_IDS =
production: 'f79cf5ea821bb161d8cbb52d061ab9a2321d7cb169007003af66b43f7b79ce2a'
staging: '535759b966935c297be11913acee7a9ca17c025f9f15520e7504728e71110a27'
host... | Change API host to zooniverse.org | Change API host to zooniverse.org
| CoffeeScript | apache-2.0 | zooniverse/wildcam-gorongosa,conneelyb/wildcam-gorongosa,zooniverse/wildcam-gorongosa,conneelyb/wildcam-gorongosa |
d0d4f3c0c884f5e37618fcca6ab77620a1e1a761 | widgets/textcarousel/textcarousel.coffee | widgets/textcarousel/textcarousel.coffee | class Dashing.Textcarousel extends Dashing.Widget
ready: ->
@currentIndex = 0
@textElem = $(@node).find('p')
@nextComment()
@startCarousel()
onData: (data) ->
@currentIndex = 0
startCarousel: ->
setInterval(@nextComment, 8000)
nextComment: =>
texts = @get('texts')
if texts
... | class Dashing.Textcarousel extends Dashing.Widget
ready: ->
@currentIndex = 0
@textElem = $(@node).find('p')
@nextComment()
@startCarousel()
onData: (data) ->
# attempt to pick up where we left off, but default to starting over
@currentIndex = Math.max(0, @get('texts').indexOf(@get('curren... | Make text carousel pick up where it left off | Make text carousel pick up where it left off
| CoffeeScript | mit | TheAustinStone/far-more-dashboard-2014,jasontbradshaw/far-more-dashboard-2014,jasontbradshaw/far-more-dashboard-2014,TheAustinStone/far-more-dashboard-2014,TheAustinStone/far-more-dashboard-2014 |
6991eddf049ddedd22801b9c58049c38ed9cbb15 | lib/pg-hoff-types.coffee | lib/pg-hoff-types.coffee | class PgHoffTypes
@Type:
1184:
name: 'Timestamp'
format: (value) ->
return new Date(value).toLocaleString(atom.config.get('pg-hoff.locale'))
compare: (left, right) ->
return Date.parse(left) - Date.parse(right)
23:
name:... | class PgHoffTypes
@Type:
1184:
name: 'Timestamp'
format: (value) ->
return new Date(value).toLocaleString(atom.config.get('pg-hoff.locale'))
compare: (left, right) ->
return Date.parse(left) - Date.parse(right)
23:
name:... | Add support for bigint and character varying | Add support for bigint and character varying
| CoffeeScript | mit | rikard2/pg-hoff,rikard2/pg-hoff |
1cb248065d69a3048ec7c52d6f5e802ccdc03080 | app/lib/splits.coffee | app/lib/splits.coffee | translate = require 'lib/translate'
Classification = require 'models/classification'
User = require 'zooniverse/lib/models/user'
userCount = -> User.count or 0
none = -> ''
social = -> translate('classify.splits.social').replace '###', userCount()
task = -> translate 'classify.splits.task'
science = -> translate 'cla... | translate = require 'lib/translate'
Classification = require 'models/classification'
User = require 'zooniverse/lib/models/user'
userCount = -> User.count or 0
none = -> ''
social = -> translate('classify.splits.social').replace '###', userCount()
task = -> translate 'classify.splits.task'
science = -> translate 'cla... | Change split to ignore tutorial | Change split to ignore tutorial
| CoffeeScript | apache-2.0 | alexbfree/Serengeti,zooniverse/Serengeti,zooniverse/Serengeti,zooniverse/Wisconsin-Zoo,zooniverse/gorongosa,zooniverse/Snapshot-Chicago,zooniverse/gorongosa,alexbfree/Serengeti,alexbfree/Serengeti,zooniverse/Wisconsin-Zoo,zooniverse/Serengeti,zooniverse/Snapshot-Chicago |
8e02d957424c7bf1edc927899e8e78a4ed699719 | spec/file-icons-spec.coffee | spec/file-icons-spec.coffee | DefaultFileIcons = require '../lib/default-file-icons'
getIconServices = require '../lib/get-icon-services'
describe 'IconServices', ->
describe 'FileIcons', ->
afterEach ->
getIconServices().resetFileIcons()
getIconServices().resetElementIcons()
it 'provides a default', ->
expect(getIconS... | # vim: ts=2
DefaultFileIcons = require '../lib/default-file-icons'
getIconServices = require '../lib/get-icon-services'
{Disposable} = require 'atom'
describe 'IconServices', ->
afterEach ->
getIconServices().resetFileIcons()
getIconServices().resetElementIcons()
describe 'FileIcons', ->
it 'provides ... | Add specs for element-icons service | Add specs for element-icons service
| CoffeeScript | mit | atom/tree-view,jarig/tree-view |
26bc48634f251c40d1147dcc3eb2e2d2df1fcb7e | jquery.transparency.coffee | jquery.transparency.coffee | jQuery.fn.render = (data) ->
data = [data] unless jQuery.isArray(data)
context = this
template = this.clone()
# Iterate over data objects
jQuery.each data, (index, object) ->
tmp = template.clone()
# Iterate over keys in the data object
jQuery.each object, (key, value) ->
[klass, att... | jQuery.fn.render = (data) ->
data = [data] unless jQuery.isArray(data)
context = this
template = this.clone()
# Iterate over data objects
jQuery.each data, (index, object) ->
tmp = template.clone()
# Iterate over keys in the data object
jQuery.each object, (key, value) ->
[klass, att... | Handle list of data objects | Handle list of data objects
| CoffeeScript | mit | webmechanicx/fill,cravelight/transparency,cravelight/transparency,laomu1988/transparency,laomu1988/transparency,phcomputer/template,webmechanicx/fill,phcomputer/template,leonidas/transparency,chorks/transparency,chorks/transparency,leonidas/transparency |
a1b25571827e3882a98a0b484c18f4bc311e0b25 | lib/assets/javascripts/unified_collection.js.coffee | lib/assets/javascripts/unified_collection.js.coffee | TentStatus.UnifiedCollection = class UnifiedCollection extends Marbles.UnifiedCollection
fetchNext: (options = {}) =>
collections = _.select @collections(), (c) => !!c.pagination.next
next_params = null
for collection in collections
continue unless collection.pagination.next
next_params ?= {}... | TentStatus.UnifiedCollection = class UnifiedCollection extends Marbles.UnifiedCollection
sortModelsBy: (model) =>
model.get('received_at') * -1
fetchNext: (options = {}) =>
collections = _.select @collections(), (c) => !!c.pagination.next
next_params = null
for collection in collections
cont... | Sort by received_at for merging unified collection results | Sort by received_at for merging unified collection results
| CoffeeScript | bsd-3-clause | tent/tent-status,tent/tent-status |
88c61501d6d27ff447cafbbb3b9358e1c51b6578 | lib/linter-pyflakes.coffee | lib/linter-pyflakes.coffee | linterPath = atom.packages.getLoadedPackage("linter").path
Linter = require "#{linterPath}/lib/linter"
class LinterPyflakes extends Linter
# The syntax that the linter handles. May be a string or
# list/tuple of strings. Names should be all lowercase.
@syntax: 'source.python'
# A string, list, tuple or callab... | linterPath = atom.packages.getLoadedPackage("linter").path
Linter = require "#{linterPath}/lib/linter"
class LinterPyflakes extends Linter
# The syntax that the linter handles. May be a string or
# list/tuple of strings. Names should be all lowercase.
@syntax: 'source.python'
# A string, list, tuple or callab... | Call constructor to initialize @cwd | Call constructor to initialize @cwd
Fixes similar error to https://github.com/AtomLinter/linter-pep8/issues/2
| CoffeeScript | mit | AtomLinter/linter-pyflakes |
ce2466431db21f4be23e51c4f366261fcf46f6bc | app/assets/javascripts/lights.coffee | app/assets/javascripts/lights.coffee | # Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/
$ ->
$('.update').on 'input', (event) ->
$(this).parent().find('.update').val(this.value)
$... | # Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/
$ ->
$('.update').on 'input', (event) ->
$(this).parent().find('.update').val(this.value)
$... | Update canvases when a bulb is pressed | Update canvases when a bulb is pressed
| CoffeeScript | mit | cthit/HueIT-Rails,cthit/HueIT-Rails,cthit/HueIT-Rails,cthit/HueIT-Rails |
7e2bead54de64c42ce92cfcd2897ac20cfdbede6 | app/assets/javascripts/darkswarm/directives/on_hand.js.coffee | app/assets/javascripts/darkswarm/directives/on_hand.js.coffee | Darkswarm.directive "ofnOnHand", ->
restrict: 'A'
require: "ngModel"
link: (scope, elem, attr, ngModel) ->
# In cases where this field gets its value from the HTML element rather than the model,
# initialise the model with the HTML value.
if scope.$eval(attr.ngModel) == undefined
# Don't dirty ... | Darkswarm.directive "ofnOnHand", ->
restrict: 'A'
require: "ngModel"
link: (scope, elem, attr, ngModel) ->
# In cases where this field gets its value from the HTML element rather than the model,
# initialise the model with the HTML value.
if scope.$eval(attr.ngModel) == undefined
# Don't dirty ... | Make finalizedquantity optional in the ofn-on-hand directive and extract avaiable quantity to a separate method for clarity | Make finalizedquantity optional in the ofn-on-hand directive and extract avaiable quantity to a separate method for clarity
| CoffeeScript | agpl-3.0 | mkllnk/openfoodnetwork,lin-d-hop/openfoodnetwork,openfoodfoundation/openfoodnetwork,mkllnk/openfoodnetwork,Matt-Yorkley/openfoodnetwork,openfoodfoundation/openfoodnetwork,mkllnk/openfoodnetwork,lin-d-hop/openfoodnetwork,mkllnk/openfoodnetwork,openfoodfoundation/openfoodnetwork,Matt-Yorkley/openfoodnetwork,Matt-Yorkley/... |
feecd631c3c367e26ed43c72d517626211230207 | app/resources/main.coffee | app/resources/main.coffee | # WTF: Why aren't these being resolved?
require 'zooniverse/views/zooniverse-logo-svg'
require 'zooniverse/views/group-icon-svg'
require 'zooniverse/views/language-icon-svg'
require 'zooniverse/views/mail-icon-svg'
window.jQuery = require 'jquery'
Project = require '../../src/project'
window.zooniverseProject = new ... | window.jQuery = require 'jquery'
Project = require '../../src/project'
window.zooniverseProject = new Project window.zooniverseProjectConfig
| Remove fix for a weird browserify issue in Chrome Canary | Remove fix for a weird browserify issue in Chrome Canary | CoffeeScript | apache-2.0 | zooniverse/zooniverse-readymade |
949908247d9263279f0bbf6ec37989d6576475d0 | assets/javascripts/string_score.js.coffee | assets/javascripts/string_score.js.coffee | String::score = (abbreviation) ->
string = @
return 1 if string == abbreviation
index = string.indexOf(abbreviation)
# only allow substrings to match
return 0 if index == -1
return 1 if index == 0
abbreviation.length / string.length
| String::score = (abbreviation) ->
string = @toLowerCase()
abbreviation = abbreviation.toLowerCase()
return 1 if string == abbreviation
index = string.indexOf(abbreviation)
# only allow substrings to match
return 0 if index == -1
return 1 if index == 0
abbreviation.length / string.length
| Update string scoring to be case insensitive | Update string scoring to be case insensitive
| CoffeeScript | bsd-3-clause | tent/tent-status,tent/tent-status |
93ecb09a5da66803ac41039cb7b6a26993887e5d | apps/user/client/channels.coffee | apps/user/client/channels.coffee | { USER } = require("sharify").data
User = require '../../../models/user.coffee'
PathView = require '../../../components/path/client/path_view.coffee'
setupChannelsView = require '../components/channels/index.coffee'
MetaEditableAttributeView = require '../../../components/editable_attribute/client/meta_editable_attribu... | { USER } = require("sharify").data
User = require '../../../models/user.coffee'
initTips = require '../../../components/tips/index.coffee'
PathView = require '../../../components/path/client/path_view.coffee'
setupChannelsView = require '../components/channels/index.coffee'
MetaEditableAttributeView = require '../../..... | Initialize tips in the channel route | Initialize tips in the channel route
| CoffeeScript | mit | aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell |
9ff3b8dc43dc1143e0d3f588362a149090c32aa9 | vendor/assets/javascripts/active_admin.js.coffee | vendor/assets/javascripts/active_admin.js.coffee | #= require active_admin/base
#= require activeadmin-sortable
#= require jquery-ui
#= require chosen-jquery
#= require admin/form_translation
#= require admin/froala_editor
#= require admin/settings
#= require admin/chosen
#= require admin/newsletters_preview
#= require gmaps.js
#= require globals/_functions
#= require ... | #= require active_admin/base
#= require activeadmin-sortable
#= require jquery-ui
#= require chosen-jquery
#= require admin/form_translation
#= require admin/froala_editor
#= require admin/settings
#= require admin/chosen
#= require admin/newsletters_preview
#= require gmaps.js
#= require globals/_functions
#= require ... | Load vex config inside a partial | Load vex config inside a partial
| CoffeeScript | mit | lr-agenceweb/rails-starter,lr-agenceweb/rails-starter,lr-agenceweb/rails-starter,lr-agenceweb/rails-starter |
ec28d341e33b4fd14a818aff076af828fbba35d5 | app/assets/javascripts/neighborly/admin/modules/sort.js.coffee | app/assets/javascripts/neighborly/admin/modules/sort.js.coffee | Neighborly.Admin ?= {} if Neighborly.Admin is undefined
Neighborly.Admin.Modules ?= {} if Neighborly.Admin.Modules is undefined
Neighborly.Admin.Modules.Sort = Backbone.View.extend
el: ".admin"
events:
"click [data-sort]": "sort"
initialize: ->
@form = @$("form")
@table = @$(".data-table")
@sel... | Neighborly.Admin ?= {} if Neighborly.Admin is undefined
Neighborly.Admin.Modules ?= {} if Neighborly.Admin.Modules is undefined
Neighborly.Admin.Modules.Sort = Backbone.View.extend
el: ".admin"
events:
"click [data-sort]": "sort"
initialize: ->
@form = @$("form")
@table = @$(".data-table")
@sel... | Fix sort JS module crash | Fix sort JS module crash
| CoffeeScript | mit | jinutm/silverpro,jinutm/silverme,jinutm/silveralms.com,gustavoguichard/neighborly,raksonibs/raimcrowd,jinutm/silvfinal,jinutm/silverpro,jinutm/silverprod,jinutm/silverpro,MicroPasts/micropasts-crowdfunding,jinutm/silveralms.com,jinutm/silverme,rockkhuya/taydantay,MicroPasts/micropasts-crowdfunding,gustavoguichard/neigh... |
fcb308de652169d25c90c92588ff26894c6e63a9 | assets/javascripts/controllers/users_new_controller.js.coffee | assets/javascripts/controllers/users_new_controller.js.coffee | App.UsersNewController = Em.Controller.extend
needs: ["application"]
currentUser: Ember.computed.alias("controllers.application.currentUser")
validRoles: ["member", "admin"]
actions:
save: ->
userAttributes = @getProperties(["firstName", "lastName", "role", "password", "email"])
user = @store... | App.UsersNewController = Em.Controller.extend
needs: ["application"]
currentUser: Ember.computed.alias("controllers.application.currentUser")
validRoles: ["member", "admin"]
actions:
save: ->
userAttributes = @getProperties(["firstName", "lastName", "role", "password", "email"])
user = @store... | Remove logging line from UsersNewController | Remove logging line from UsersNewController
| CoffeeScript | mit | louishawkins/mogo-chat,di-stars/mogo-chat,sashafklein/bloc-mogo,louishawkins/mogo-chat,louishawkins/mogo-chat,sashafklein/bloc-mogo,HashNuke/mogo-chat,sashafklein/bloc-mogo,di-stars/mogo-chat,HashNuke/mogo-chat,di-stars/mogo-chat,HashNuke/mogo-chat |
46f0d606e3c549b56d8e4336489e99f7df3df885 | src/coffee/refining.coffee | src/coffee/refining.coffee | #query = require("pg-query")
#oreList = query("select itemName from Ore order by itemName", (err, rows, result) ->
# alert rows )
#alert oreList
#alert "3333"
refiningTable = null
refineMe = []
#accepts optional array of values as 2nd parameter for parameterized queries
AddNewRefiningElement = ->
Quantity = pa... | #query = require("pg-query")
#oreList = query("select itemName from Ore order by itemName", (err, rows, result) ->
# alert rows )
#alert oreList
#alert "3333"
refiningTable = null
refineMe = []
#accepts optional array of values as 2nd parameter for parameterized queries
AddNewRefiningElement = ->
Quantity = pa... | Use CoffeeScript syntax for rowData check | Use CoffeeScript syntax for rowData check
| CoffeeScript | apache-2.0 | eve-apps/karma,eve-apps/karma |
23d67bf5d57aebcdc59a7b6e85dda11f5d797220 | keymaps/python-isort.cson | keymaps/python-isort.cson | # For more detailed documentation see
# https://atom.io/docs/latest/advanced/keymaps
'.editor.python':
'ctrl-alt-s': 'python-isort:sortImports'
| # For more detailed documentation see
# https://atom.io/docs/latest/advanced/keymaps
'atom-text-editor[data-grammar="source python"]':
'ctrl-alt-s': 'python-isort:sortImports'
| Fix deprecation warning and fix indentation | Fix deprecation warning and fix indentation
| CoffeeScript | mit | lexicalunit/atom-isort,lexicalunit/atom-isort |
4d796b3e86cebf3fe36e0f897a11e6768bbe81ce | lib/adwaita-pro-ui.coffee | lib/adwaita-pro-ui.coffee | module.exports =
config:
fontFamily:
description: 'Experimental: set to gtk-3 to load the font settings from ~/.config/gtk-3.0/settings.ini'
type: 'string'
default: 'Cantarell'
enum: [
'Cantarell',
'Sans Serif',
'DejaVu Sans',
'gtk-3'
]
fontSize:
... | module.exports =
config:
fontFamily:
description: 'Experimental: set to gtk-3 to load the font settings from ~/.config/gtk-3.0/settings.ini'
type: 'string'
default: 'Cantarell'
enum: [
'Cantarell',
'Sans Serif',
'DejaVu Sans',
'Oxygen-Sans',
'gtk-3'... | Add oxygen-sans to the font list (for kde5) | Add oxygen-sans to the font list (for kde5)
| CoffeeScript | mit | tsbarnes/ambiance-pro-ui,forivall/adwaita-pro-ui |
a184f6cc89348419118944f995b1803b6010925e | apps/fair_info/routes.coffee | apps/fair_info/routes.coffee | Fair = require '../../models/fair'
@assignFair = (req, res, next) ->
return next() unless res.locals.profile
fair = new Fair id: res.locals.profile.get('owner').id
fair.fetch
cache: true
error: res.backboneError
success: ->
res.locals.fair = fair
res.locals.sd.FAIR = fair.toJSON()
... | Fair = require '../../models/fair'
@assignFair = (req, res, next) ->
return next() unless res.locals.profile?.isFair()
fair = new Fair id: res.locals.profile.get('owner').id
fair.fetch
cache: true
error: res.backboneError
success: ->
res.locals.fair = fair
res.locals.sd.FAIR = fair.toJSO... | Check for fair profile type before fair info app | Check for fair profile type before fair info app
| CoffeeScript | mit | anandaroop/force,anandaroop/force,yuki24/force,cavvia/force-1,kanaabe/force,dblock/force,damassi/force,joeyAghion/force,oxaudo/force,izakp/force,joeyAghion/force,damassi/force,eessex/force,yuki24/force,oxaudo/force,cavvia/force-1,erikdstock/force,oxaudo/force,cavvia/force-1,izakp/force,artsy/force,anandaroop/force,izak... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.