This project has moved to https://github.com/jonhoo/drwmutex so it can be imported into Go applications.
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
{"businesses":[ | |
{"address1":"466 Haight St", | |
"city":"San Francisco", | |
"mobile_url":"http://mobile.yelp.com/biz/yyqwqfgn1ZmbQYNbl7s5sQ", | |
"name":"Nickies", | |
"address2":"", | |
"avg_rating":4, | |
"latitude":37.772201, | |
"zip":"94117", | |
"address3":"", |
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
#include <iterator> | |
#include <iostream> | |
void | |
int_squares(int c[5]) | |
{ | |
// won't work because the size of the array is not available | |
// when passed to a function because it is treated as a pointer | |
std::cerr << "auto it : ..." << '\n'; |
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
function u() { | |
requestAnimationFrame(u); | |
g = p ? | |
audio.currentTime * 60 : ( | |
audio = "RIFFdataWAVEfmt " + atob("EAAAAAEAAQAAeAAAAHgAAAEACAA") + "data", | |
b.style.background = "radial-gradient(circle,#345,#000)", | |
b.style.position = "fixed", | |
b.style.height = b.style.width = "100%", |
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
/** | |
* Sobol Noise Generation | |
* GNU LGPL license | |
* By Dr. John Burkardt (Virginia Tech) | |
* https://gist.github.com/alaingalvan/af92ddbaf3bb01f5ef29bc431bd37891 | |
*/ | |
//returns the position of the high 1 bit base 2 in an integer n | |
int getHighBit1(int n) | |
{ |
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
# this is an rsync-excludes format list of files to exclude. |
Check for env::var("DOCS_RS")
in your build.rs
and omit
linking if it is set.
Where to find this: read the complete About
section on docs.rs
.
If you’ve written wrapper crates, e.g. using bindgen
, you may have ran
into this. You have:
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
#define USE_ROBIN_HOOD_HASH 1 | |
#define USE_SEPARATE_HASH_ARRAY 1 | |
template<class Key, class Value> | |
class hash_table | |
{ | |
static const int INITIAL_SIZE = 256; | |
static const int LOAD_FACTOR_PERCENT = 90; | |
struct elem |
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
// Usage: | |
// Copy and paste all of this into a debug console window of the "Who is Hiring?" comment thread | |
// then use as follows: | |
// | |
// query(term | [term, term, ...], term | [term, term, ...], ...) | |
// | |
// When arguments are in an array then that means an "or" and when they are seperate that means "and" | |
// | |
// Term is of the format: | |
// ((-)text/RegExp) ( '-' means negation ) |
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
#!/bin/sh | |
if [ $# -ne 3 ] ; then | |
echo "Usage: $0 <ref> <ref> <filename>" | |
exit 1 | |
fi | |
RevA=$1 | |
RevB=$2 | |
File=$3 |
OlderNewer