1 2 3 4 5. www.newurl.com
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 deleteAllGroupMembers = (function () { | |
var deleteAllGroupMembers = {}; | |
// the facebook ids of the users that will not be removed. | |
// IMPORTANT: add your own facebook id here so that the script will not remove yourself! | |
var excludedFbIds = ['653570476', '663301985', '100008698604779', '100008668843451']; // make sure each id is a string! | |
var usersToDeleteQueue = []; | |
var scriptEnabled = false; | |
var processing = false; | |
deleteAllGroupMembers.start = function() { |
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 deleteAllGroupMembers = (function () { | |
var deleteAllGroupMembers = {}; | |
// the facebook ids of the users that will not be removed. | |
// IMPORTANT: add your own facebook id here so that the script will not remove yourself! | |
var excludedFbIds = ['653570476', '663301985']; // make sure each id is a string! | |
var usersToDeleteQueue = []; | |
var scriptEnabled = false; | |
var processing = false; | |
deleteAllGroupMembers.start = function() { |
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
/* | |
Taken and cribbed from blog.datalicious.com/free-download-all-australian-postcodes-geocod | |
May contain errors where latitude and longitude are off. Use at own non-validated risk. | |
*/ | |
SET NAMES utf8; | |
SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO'; | |
DROP TABLE IF EXISTS postcodes_geo; |
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 isContainedinArrayMatrix = function(inputOrOutputMatrix, currentAddress){ | |
for (var i = 0; i < inputOrOutputMatrix.length; i ++ ){ | |
var returnedAddress = inputOrOutputMatrix[i][0]; | |
var returnedValue = inputOrOutputMatrix[i][1]; | |
var txTime = inputOrOutputMatrix[i][2]; | |
if (currentAddress === returnedAddress) { | |
console.log("match is found: ", inputOrOutputMatrix[i]); | |
return [returnedAddress, returnedValue, txTime]; | |
} | |
} |
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
describe('Unit: sendFactory - TxBuilder', function () { | |
beforeEach(module('bitclip')); | |
var $scope, $rootScope, $location, $window, $q, $timeout, transactionDetails, createController, TxBuilder, tempStore; | |
beforeEach(inject(function($injector) { | |
$rootScope = $injector.get('$rootScope'); | |
$location = $injector.get('$location'); | |
$scope = $rootScope.$new(); | |
$window = $injector.get('$window'); |
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 HelloBlock = require('helloblock-js'); | |
var bitcoin = require('bitcoinjs-lib'); | |
var helloblock = new HelloBlock({ | |
network: 'testnet' | |
}); | |
var testnet = bitcoin.networks.testnet; | |
//source addres: | |
// Path m / 0 '/' / 0 Base58 ms2pdqyQxyWR82DV8BjiQuqUxBt3hbwSPu | |
// child private key: tprv8d9nbHThZv8whawuraZNUE7FfXFSsS2pgjH2ziZTTDe5cWpkYQtPnzffAxqWZfDtd7AHmHGmpMdjMBU4fHKoH1nFnyEjn73fLYcm3aWtivY |
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
// specify your destination address | |
var destAddress = "mra8YqBVMPFEdi8f4w1vcb4UUjmbfD6mGR"; | |
var request = require("request"); //npm install request | |
var counter = 0; | |
getTestCoins(getBalance); | |
// Make 3 x http request to HelloBlock Testnet Faucet to get | |
// 3m test satoshis. | |
function getTestCoins(callback) { |
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 bitcoin = require('bitcoinjs-lib'); | |
var BigInteger = require('bigi'); | |
var chainCode = new Buffer(32); //buffer of 32 bytes | |
// fill buffer with 1, do I increment .fill parameter up | |
// to generate new chaincodes? | |
chainCode.fill(1); | |
console.log("---------START-----------"); |
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 ng-app="test"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width"> | |
<title>Side Menus</title> | |
<link href="http://code.ionicframework.com/1.0.0-beta.11/css/ionic.css" rel="stylesheet"> | |
<script src="http://code.ionicframework.com/1.0.0-beta.11/js/ionic.bundle.js"></script> | |
</head> |
NewerOlder