This file contains hidden or 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
'#' + '000000'.split('').map(c => Number(Math.floor(Math.random() * 16)).toString(16)).join('') |
This file contains hidden or 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
/** | |
* Generate a URL safe key with sufficient bits of complexity. | |
*/ | |
const generateKey = function(bits){ | |
var alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" | |
+ "abcdefghijklmnopqrstuvwxyz" | |
+ "012345678910" | |
+ "-_" | |
var expectedEntroy = Math.pow(2, bits) | |
var key = '' |
This file contains hidden or 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
/** | |
* Usage | |
* Include this file in the <head /> | |
* | |
* Then you can use HTML like so. | |
* | |
* ```html | |
* <browser-test pass="false"> | |
* <span slot="description">This is a failed test</span> | |
* <pre slot="info"> |
This file contains hidden or 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
git for-each-ref --sort=committerdate refs/heads/ --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(color:red)%(objectname:short)%(color:reset) - %(contents:subject) - %(authorname) (%(color:green)%(committerdate:relative)%(color:reset))' |
This file contains hidden or 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
using System; | |
using System.Collections.Generic; | |
using System.Data.SqlClient; | |
using System.Linq; | |
using System.Text; | |
using System.Threading; | |
namespace ThreadCorruptionTest | |
{ | |
class Program |