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 lang="en"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"> | |
<style> | |
@font-face { | |
font-family: "proxima-regular"; | |
font-style: normal; | |
font-weight: normal; |
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
/* | |
To run: | |
- npm install ws && npm install autobahn | |
- node websocket {ws, wss} {v1, v2} {if v2 --> channels} | |
*/ | |
var protocol = process.argv[2]; | |
var api = process.argv[3]; |
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
defaults write com.apple.screencapture location /Users/... | |
killall SystemUIServer | |
defaults write -g InitialKeyRepeat -int 10 # normal minimum is 15 (225 ms) | |
defaults write -g KeyRepeat -int 1 # normal minimum is 2 (30 ms) | |
# Log out and log back in to see ^ take effect |
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 x = 0; | |
var n = 1988; | |
do { | |
if (n % 2 == 0) { | |
n = n / 2; | |
} else { | |
n = (3 * n) + 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
const language = `en`, | |
numResults = `100`, // 1 to 100 | |
personalization = `0`, // Non-personalized | |
encoding = `UTF-8`, | |
verbatim = `li:1`, // No auto-correct and no location | |
ssl = `ssl`; | |
const googleSearchUrl = `https://www.google.com/search` + | |
`?q=${keyword}` + | |
`&hl=${language}` + |
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
<img class="col-md-4 pull-right" src="http://emojipedia-us.s3.amazonaws.com/cache/41/af/41aff1557db7c43d38d4d9f33f59be5f.png" /> |
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
<p class="col-lg-3 col-md-3 col-sm-3"> | |
<div class="marvel-device iphone6plus silver"> | |
<div class="top-bar"> </div> | |
<div class="sleep"> </div> | |
<div class="volume"> </div> | |
<div class="camera"> </div> | |
<div class="sensor"> </div> | |
<div class="speaker"> </div> | |
<div class="screen"> | |
<!-- <img src=""> goes here --> |
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="marvel-device iphone6plus silver"> | |
<div class="top-bar"></div> | |
<div class="sleep"></div> | |
<div class="volume"></div> | |
<div class="camera"></div> | |
<div class="sensor"></div> | |
<div class="speaker"></div> | |
<div class="screen"> | |
<!-- <img src=""> goes here --> | |
</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
app.factory('PollingService', function($http, $timeout) { | |
var data = { response: {} }; | |
var poller = function() { | |
$http.get('data.json').then(function(r) { | |
data.response = r.data; | |
$timeout(poller, 1000); | |
}); | |
}; | |
poller(); |
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
/////////////////////////////////////////////////// | |
// Source: http://marcel.turi.co/up/favicon.html // | |
/////////////////////////////////////////////////// | |
var favIcon = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABrUlEQVR42mNkwAOepOgxMTD9mwhk..."; | |
var docHead = document.getElementsByTagName('head')[0]; | |
var newLink = document.createElement('link'); | |
newLink.rel = 'shortcut icon'; | |
newLink.href = favIcon; |
NewerOlder