I hereby claim:
- I am erynofwales on github.
- I am erynofwales (https://keybase.io/erynofwales) on keybase.
- I have a public key whose fingerprint is 7BDF 859E 4100 1C15 1A9F 0B11 FF6C 66F5 E56D 0154
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#include <cstdio> | |
template<unsigned int N, unsigned int M> | |
struct Matrix | |
{ | |
static const unsigned int sRows = N; | |
static const unsigned int sCols = M; | |
template <unsigned int P> | |
Matrix<N, P> |
BASE=$(cd "$(dirname "$0")" && pwd) |
2236 13:08:37 ~ % brew doctor | |
Your OS X is ripe for brewing. | |
Any troubles you may be experiencing are likely purely psychosomatic. |
/* Do bit rotations. x is the data to rotate, c is the number of bits to rotate */ | |
#define ROTATE_R(x,c) (x) = ((x) >> c) | ((x) << (sizeof(x) - c)) | |
#define ROTATE_L(x,c) (x) = ((x) << c) | ((x) >> (sizeof(x) - c)) |
git branch --set-upstream foo upstream/foo |
command | while read x; do [some stuff on $x]; done |
// Create a unique temporary direction | |
// This procedure is safe from a number of potential problems including | |
// concurrency, file permission, security, and persistence issues | |
// Taken from http://cocoawithlove.com/2009/07/temporary-files-and-folders-in-cocoa.html | |
NSString *tmpdirTemplate = [NSTemporaryDirectory() | |
stringByAppendingPathComponent:@"app.XXXXXX"]; | |
const char *tmpdirTemplateCStr = [tmpdirTemplate fileSystemRepresentation]; | |
char *tmpdirCStr = (char *) malloc(strlen(tmpdirTemplateCStr) + 1); | |
strcpy(tmpdirCStr, tmpdirTemplateCStr); |
$module = 'name.of.module' | |
Get-Command | Where { $_.ModuleName -Eq $module } |
find . -maxdepth 1 -type d -print | sed '/^.$/d' |