This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var traverseDomAndCollectElements = function(matchFunc, startEl) { | |
var resultSet = []; | |
if (typeof startEl === "undefined") { | |
startEl = document.body; | |
} | |
if(matchFunc(startEl)) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function playNote(note, tempo){ | |
setTimeout(function(){ | |
synth.triggerAttackRelease(note+"4", 0.25); | |
}, tempo); | |
} | |
function Note(note,tempo){ | |
this.note = note; | |
this.tempo = tempo; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Tealeaf Academy - Postit</title><meta name="description" content=""><meta name="author" content=""><link href="/assets/application.css?body=1" media="all" rel="stylesheet" /><script src="/assets/jquery.js?body=1"></script><script src="/assets/jquery_ujs.js?body=1"></script><script src="/assets/turbolinks.js?body=1"></script><script src="/assets/react.js?body=1"></script><script src="/assets/react_ujs.js?body=1"></script><script src="/assets/components/category.js?body=1"></script><script src="/assets/components/checkbox.js?body=1"></script><script src="/assets/components/comment.js?body=1"></script><script src="/assets/components/votebox.js?body=1"></script><script src="/assets/components.js?body=1"></script><script src="/assets/bootstrap-transition.js?body=1"></script><script src="/assets/bootstrap-affix.js?body=1"></script><script src="/assets/bootstrap-alert.js?body=1"></script><scr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.Aeon.Components.DiffSlider = React.createClass | |
renderSliderTemplate: (defaultValue, children) -> | |
<ReactSlider | |
defaultValue={defaultValue} | |
min={0} | |
max={@props.versions.length-2} | |
onAfterChange={@props.updateDiffs} | |
> | |
{children} | |
</ReactSlider> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Performs an attribute search on the serialized object | |
def self.where_object(args = {}) | |
fail ArgumentError, 'expected to receive a Hash' unless args.is_a?(Hash) | |
if columns_hash['object'].type == :jsonb | |
where_conditions = "object @> '#{args.to_json}'::jsonb" | |
elsif columns_hash['object'].type == :json | |
where_conditions = args.map do |field, value| | |
"object->>'#{field}' = '#{value}'" | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#= require ./diff-slider | |
#= require ./diff-panel | |
DiffSlider = window.Aeon.Components.DiffSlider | |
DiffPanel = window.Aeon.Components.DiffPanel | |
window.Aeon.Components.RevisionsContainer = React.createClass | |
setCurrDiff: (diff) -> | |
@_updateDiffPanel diff, diff+1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; -*- mode: dotspacemacs -*- | |
;; This file is loaded by Spacemacs at startup. | |
;; It must be stored in your home directory. | |
(defun dotspacemacs/layers () | |
"Configuration Layers declaration. | |
You should not put any user code in this function besides modifying the variable | |
values." | |
(setq-default | |
;; Base distribution to use. This is a layer contained in the directory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var primaryContacts = _.filter(docs, function(parent) {return parent.account_relationship ? true : false}); | |
var primaryContactsCount = primaryContacts.length; | |
var primaryContactsDownloadsCount = _.filter(primaryContacts, function(parent) {return parent.download_app_at ? true : false}).length; | |
var guardiansCount = 0; | |
var guardiansDownloadsCount = 0; | |
async.each(docs, function(parent, callback) { | |
Guardian.find({_id: parent._id}, function(err, guardian){ | |
if(!err && guardian){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# dat - the DAT that received the data | |
# rowIndex - the row number the data was placed into | |
# message - an ascii representation of the data | |
# Unprintable characters and unicode characters will | |
# not be preserved. Use the 'bytes' parameter to get | |
# the raw bytes that were sent. | |
# bytes - byte array of the data received | |
import binascii |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"boxes" : [ { | |
"box" : { | |
"maxclass" : "flonum", | |
"maximum" : 3.0, | |
"minimum" : -1.0, | |
"style" : "", | |
"numinlets" : 1, | |
"id" : "obj-31", | |
"numoutlets" : 2, |
OlderNewer