Ruby homeworks
- Explain
{
12345: ["trademark", 12]
}
Test |
App = AirLock.initialize("client_secret"); |
var credentials = { | |
username: "john", | |
password: "test" | |
}; | |
App.createUser(credentials, success); |
Ruby homeworks
{
12345: ["trademark", 12]
}
# 1. Install dependencies | |
brew install autoconf automake berkeley-db4 boost miniupnpc openssl pkg-config protobuf qt | |
# 2. Checkout PR | |
git clone git@github.com:namecoin/namecoin.git | |
# Edit your .git/config file accordingly: | |
# https://gist.github.com/piscisaureus/3342247 |
<html> | |
<script type="text/javascript"> | |
var Salsa20 = (function () { | |
function Salsa20(key, nonce) { | |
// Constants. | |
this.rounds = 20; // number of Salsa rounds | |
this.sigmaWords = [0x61707865, 0x3320646e, 0x79622d32, 0x6b206574]; | |
console.time('start'); | |
# iPhone 5s | |
var clientKeypair = KEYUTIL.generateKeypair("EC", "secp224r1"); | |
var pubKeyPEM = KEYUTIL.getPEM(clientKeypair.pubKeyObj); | |
var caPrvKey = KEYUTIL.generateKeypair("EC", "secp256r1").prvKeyObj; | |
var password = 'password'; | |
console.time('start'); | |
var certPEM = KJUR.asn1.x509.X509Util.newCertPEM( |
var BLAKE2s = (function () { | |
function BLAKE2s(digestLength, key) { | |
if (typeof digestLength === "undefined") { digestLength = 32; } | |
this.isFinished = false; | |
this.digestLength = 32; | |
this.blockLength = 64; | |
this.iv = [ | |
0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a, | |
0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19 | |
]; |
blake32=(function(){var k,g,r,l,m,o,p,q,t,w,x;x=4*(1<<30);k=[0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19];m=[0x243F6A88,0x85A308D3,0x13198A2E,0x03707344,0xA4093822,0x299F31D0,0x082EFA98,0xEC4E6C89,0x452821E6,0x38D01377,0xBE5466CF,0x34E90C6C,0xC0AC29B7,0xC97C50DD,0x3F84D5B5,0xB5470917];w=function(i){if(i<0){i+=x}return("00000000"+i.toString(16)).slice(-8)};o=[[16,50,84,118,152,186,220,254],[174,132,249,109,193,32,123,53],[139,12,37,223,234,99,23,73],[151,19,205,235,98,165,4,143],[9,117,66,250,30,203,134,211],[194,166,176,56,212,87,239,145],[92,241,222,164,112,54,41,184],[189,231,28,147,5,79,104,162],[246,158,59,128,44,125,65,90],[42,72,103,81,191,233,195,13]];p=function(a,b,n){var s=q[a]^q[b];q[a]=(s>>>n)|(s<<(32-n))};g=function(i,a,b,c,d){var u=l+o[r][i]%16,v=l+(o[r][i]>>4);a%=4;b=4+b%4;c=8+c%4;d=12+d%4;q[a]+=q[b]+(t[u]^m[v%16]);p(d,a,16);q[c]+=q[d];p(b,c,12);q[a]+=q[b]+(t[v]^m[u%16]);p(d,a,8);q[c]+=q[d];p(b,c,7)};return function(a,b){if(!(b instanceof Array&&b.len |
/** | |
* Aminer - a bitcoin miner for various platforms. | |
* | |
* Andreas Rueckert <a_rueckert@gmx.net> | |
* | |
* A good part of this code is based on the GLSL sha256 code of xaci: https://bitcointalk.org/index.php?topic=4618.msg191488#msg191488 | |
*/ | |
/* | |
#pragma optionNV looplimit 32768 |