This file contains hidden or 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> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js"></script> | |
<meta charset=utf-8 /> | |
<title>Domain Searcher</title> | |
</head> | |
<body> | |
<form name="domainsearch"> | |
<input id="domainfield" type="search" placeholder="Find your Domain" name="domainsearch"> |
This file contains hidden or 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 ng-app> | |
<head> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js"></script> | |
<script src="http://cdnjs.cloudflare.com/ajax/libs/sugar/1.3.9/sugar.min.js"></script> | |
<meta charset=utf-8 /> | |
<title>Todo List - Using Angular</title> | |
</head> |
This file contains hidden or 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 | |
# Sets node version to install. | |
export NODE_VERSION=v0.10.21; | |
# Verify if nvm installation exist, otherwise install. | |
if ! hash "nvm" >/dev/null 2>&1; then | |
printf "Installing NVM %s\n" >&2 |
This file contains hidden or 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 ng-app> | |
<head> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js"></script> | |
<meta charset=utf-8 /> | |
<title>JS Bin</title> | |
</head> | |
<body ng-controller="domainSearcher"> | |
<input ng-model="search" ng-change="getDomains()" type="search" placeholder="Search Domain" /> | |
<input type="button" value="Go" ng-click="getDomains()" /> |
This file contains hidden or 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 | |
# set your user, token (key) name server and a comma-separated list of A records you want to change | |
[email protected] | |
CFP=myCloudFlareToken | |
CFNS=MYcloudFlareNS | |
CFHOSTS=my.host.tochange.com | |
CFUPHOSTS=myhost.tochange.com,myhost.tochange.com | |
# get your current external ip address |
This file contains hidden or 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 images = Array.prototype.slice.call( document.querySelectorAll('img') ); | |
// Disable Images - if not from BackEnd | |
images.forEach( function(image){ | |
var source = image.getAttribute("src"); | |
image.setAttribute("src", ""); | |
image.setAttribute("data-src", source); | |
}); |
This file contains hidden or 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 PockerDeck = (function(suits,levels){ | |
deck = []; | |
suits.forEach(function(suit){ | |
levels.forEach(function(level){ | |
deck.push(suit+level); | |
}) | |
}) | |
return deck; | |
})(['♠','♡','♢','♣'],['A','1','2','3','4','5','6','7','8','9','J','Q','K']); |
This file contains hidden or 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
.pinch{background-color:yellow} | |
.tap{background-color:lightblue} | |
.hold{background-color:lightgreen} | |
.small-square | |
{ | |
border: 1px solid black; | |
display:inline-block; | |
width:130px; | |
height:130px; |
This file contains hidden or 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 LL(){ //lazyload functionality; | |
var imageList = []; | |
function getImages(){ | |
imageList.each(function(key,el){ | |
var toSRC = el.attr("data-image"); | |
el.attr("src",toSRC); | |
el.removeClass('lazyImage'); |
This file contains hidden or 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 ObserverList(){ | |
this.observerList = []; | |
} | |
ObserverList.prototype.add = function( obj ){ | |
return this.observerList.push( obj ); | |
}; | |
ObserverList.prototype.pull = function(obj){ | |
return this.observerList.slice(0,1); |
OlderNewer