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
<picture> | |
<!-- serve WebP to Chrome and Opera --> | |
<source | |
media="(min-width: 50em)" | |
sizes="50vw" | |
srcset="/image/thing-200.webp 200w, /image/thing-400.webp 400w, | |
/image/thing-800.webp 800w, /image/thing-1200.webp 1200w, | |
/image/thing-1600.webp 1600w, /image/thing-2000.webp 2000w" | |
type="image/webp"> | |
<source |
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 dummyHandle = function() { | |
// Just here to help with debugging if its needed | |
//console.log(arguments); | |
} | |
var fetchAttibuteByName = function(element, name, regex) { | |
// Fetch a named attribute from a DOM element - passing in the element, the attribute name | |
// and an optional regex to parse the attribute name by | |
if (Array.isArray(element)) { |
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 txId = "TheTXIdGoesHere"; | |
$.getJSON('http://blockchain.info/tx-index/'+txId+'?format=json', | |
function(data) { | |
console.log(JSON.stringify(data)); | |
} | |
); |
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
'use strict'; | |
var _ = require('lodash'); | |
_.string = require("underscore.string"); | |
// enhance the console a little | |
require("consoleplusplus"); | |
// Timestamps not needed | |
console.disableTimestamp(); | |
// Mock |
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
// Relic integration point | |
/** | |
* Create a transactional scope in which instrumentation that will only add | |
* trace segments to existing transactions will funciton. | |
* | |
* @param Agent agent The agent whose tracer should be used to create the | |
* transaction. | |
* @param Function callback The function to be run within the transaction. | |
*/ |
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
"vectors" : "1", | |
"worksize" : "256", | |
"kernel" : "scrypt", | |
"lookup-gap" : "2", | |
"thread-concurrency" : "24576", | |
"shaders" : "1792", | |
"gpu-threads" : "1", | |
"scan-time" : "60", |
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
export DISPLAY=:0 | |
export GPU_MAX_ALLOC_PERCENT=100 | |
export GPU_USE_SYNC_OBJECTS=1 | |
aticonfig --od-enable | |
aticonfig --od-setclocks=1000,1490 --adapter=0 | |
./bfgminer -K ./ |
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
Getting started | |
With node installed (download), get your first application started by creating a directory somewhere on your machine: | |
$ mkdir hello-world | |
$ cd hello-word | |
$ git init | |
In this same directory you'll be defining the application "package", which are no different than any other node package. You'll need a package.json file in the directory, with express defined as a dependency. You may use npm info express version to fetch the latest version, it's preferred that you do this instead of "3.x" below to prevent any future surprises. | |
{ | |
"name": "hello-world", |
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
"83.169.3.31" | |
"82.226.138.81" | |
"93.62.173.122" | |
"94.23.253.228" | |
"91.121.174.223" | |
"188.120.246.137" | |
"12.23.127.175" | |
"99.243.145.178" | |
"79.142.22.72" | |
"198.23.159.10" |
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
# litecoin.conf configuration file. Lines beginning with # are comments. | |
# Network-related settings: | |
# Run on the test network instead of the real litecoin network. | |
#testnet=0 | |
# Connect via a socks4 proxy | |
#proxy=127.0.0.1:9050 |
NewerOlder