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
<template name="t1"> | |
<select id="selector"></select> | |
</template> | |
Tempalate['t1'].rendered = function(){ | |
//attach to a DOM element with JQuery plugin | |
$('#selector').someJQueryPluginIn({}); //initializing | |
} |
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
cta-button { | |
display: inline-block; | |
padding: 17px 31px; | |
border-radius: 3px; | |
background-color: #8f69d9; | |
box-shadow: rgba(0, 0, 0, 0.09) 0px 2px 0px 0px; | |
-webkit-transition: background-color 300ms ease; | |
-o-transition: background-color 300ms ease; | |
transition: background-color 300ms ease; | |
font-family: proxima-nova, sans-serif; |
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 () { | |
var d1 = []; | |
for (var i = 0; i < 14; i += 0.5) | |
d1.push([i, Math.sin(i)]); | |
var data = [ | |
{ label: "IE", data: 19.5, color: "#4572A7"}, | |
{ label: "Safari", data: 4.5, color: "#80699B"}, | |
{ label: "Firefox", data: 36.6, color: "#AA4643"}, | |
{ label: "Opera", data: 2.3, color: "#3D96AE"}, | |
{ label: "Chrome", data: 36.3, color: "#89A54E"}, |
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
/*Main.java*/ | |
public class Main { | |
public static void main(String[] args) { | |
Animal dog = new Dog(); | |
dog = new Name(dog, "Fido"); | |
dog = new Color(dog, "brown"); |
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
uploadS3: function (file, callback, callbackArgs) { | |
var s3 = new AWS.S3(); | |
var options = { | |
partSize: 10 * 1024 * 1024, | |
queueSize: 1 | |
}; | |
s3.upload(file, options, function (error, data) { | |
if (callback) { | |
Meteor.wrapAsync(Meteor.call(callback, callbackArgs, {error: error, data: data})); //Barfs | |
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
https://github.com/mitsuhiko/click/blob/master/click/_bashcomplete.py#L42 | |
def do_complete(cli, prog_name): | |
cwords = split_arg_string(os.environ['COMP_WORDS']) | |
cword = int(os.environ['COMP_CWORD']) | |
args = cwords[1:cword] | |
try: | |
incomplete = cwords[cword] | |
except IndexError: | |
incomplete = '' |
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
http://www.spritekitlessons.com/day-5-learn-sprite-kit-and-swift/ |
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
<html> | |
<head> | |
<!-- Your stuff --> | |
<!-- Include Sidr bundled CSS theme --> | |
<link rel="stylesheet" href="stylesheets/jquery.sidr.dark.css"> | |
</head> | |
<body onload="init()"> | |
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
#!/bin/bash | |
# let's start fresh | |
rm -rf .demeteorized | |
rm /tmp/newfile | |
# run + cd | |
demeteorizer | |
cd .demeteorized |
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
collection.find().observe({ | |
removed: function (oldDoc) { | |
// delete oldDoc._id from S3 | |
} | |
}); |
OlderNewer