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
cd path/to/project-b | |
git remote add project-a path/to/project-a | |
git fetch project-a | |
git merge -s ours --allow-unrelated-histories project-a/master | |
git read-tree --prefix=project-a/ -u project-a/master | |
git commit -m "Merge project-a" | |
git remote remove project-a |
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
# https://github.com/cleanbrowsing/dnsperftest | |
# NO VPN FROM HOME | |
➜ dnsperftest git:(master) ./dnstest.sh | sort -k 22 -n | |
test1 test2 test3 test4 test5 test6 test7 test8 test9 test10 Average | |
cloudflare 40 ms 41 ms 29 ms 36 ms 36 ms 30 ms 29 ms 28 ms 32 ms 40 ms 34.10 | |
level3 41 ms 42 ms 49 ms 55 ms 55 ms 52 ms 43 ms 47 ms 44 ms 43 ms 47.10 | |
quad9 45 ms 52 ms 47 ms 42 ms 47 ms 46 ms 63 ms 52 ms 44 ms 46 ms 48.40 | |
neustar 47 ms 46 ms 56 ms 48 ms 46 ms 58 ms 48 ms 52 ms 45 ms 56 ms 50.20 | |
google 54 ms 45 ms 44 ms 59 ms 53 ms 74 ms 51 ms 75 ms 44 ms 56 ms 55.50 |
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 backward = "backward"; | |
const forward = "forward"; | |
let shadowHealth = 20; | |
class Player { | |
playTurn(warrior) { | |
const senseHealth = warrior.health(); | |
const shouldPivot = warrior.feel().isWall(); |
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 pw = window.crypto.getRandomValues(new Uint8Array(16)); | |
window.crypto.subtle.importKey("raw", pw, "PBKDF2", false, ["deriveBits"]).then(key => { | |
console.log(key); | |
var st = window.crypto.getRandomValues(new Uint8Array(16)); | |
const keySizeBits = 2048; | |
// const keySizeBits = 2056; // this breaks | |
return window.crypto.subtle.deriveBits({ name: "PBKDF2", salt: st, iterations: 10000, hash: "SHA-256" }, key, keySizeBits); | |
}).then(bits => { | |
console.log(bits); | |
}).catch(err => { |
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
license: mit |
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
license: mit |
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
license: mit |
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
``` | |
q(:,:,1) = [1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0; | |
1 1 1 1 1 1 1 2 0 0 0 0 0 0 0 0 0; | |
1 1 1 1 2 1 1 1 1 1 1 2 1 1 1 1 2; | |
1 1 2 1 1 1 1 1 1 2 1 1 1 1 2 0 0]; | |
q(:,:,2) = [8 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0; | |
0 5 0 7 0 0 5 0 0 0 0 0 0 0 0 0 0; | |
0 0 0 3 0 7 0 0 0 0 0 5 0 0 0 0 0; | |
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]; | |
``` |
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
$ ./insyn.py --parse-example --db-offset 0 | |
============== SOURCE CODE ============== | |
package com.cl.interpolatordebugger; | |
import android.app.Application; | |
import android.test.ApplicationTestCase; | |
/** | |
* <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a> | |
*/ |