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
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
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
/*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
$(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
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
<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
//Using node-elasticsearch-client and meteor-npm | |
var ElasticSearchClient = Meteor.require('elasticsearchclient'), | |
url = Npm.require('url'); | |
//local elastic search envrionment running on port 9200 | |
// create an _opts object for remote systems with credentials: See ElasticSearch documentation | |
var serverOptions = { | |
host: 'localhost', | |
port: 9200, |
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
///Markup | |
<div id="st-container" class="st-container"> | |
<div class=" fullscreen-container animated fadeInDown" id="fullscreen-container"> | |
<div class=" custom_inner offset2" id="fullScreenAyahs"> | |
<div class="pageHolder" id=""> | |
</div> | |
<div class="pageHolder" id=""> | |
</div> |
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
<div class="PlainText"> | |
Date: 2013-10-28 20:00:43 -0500<br> | |
Source: Text<br> | |
Incident type: Text<br> | |
Incident detection rule: Text (ID=19762)<br> | |
Text: App - fard.com<br> | |
Text rating: 37<br> | |
Text: 171<br> | |
Description: Text d<br> | |
<br> |
NewerOlder