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 "common.h" | |
uintptr_t align_forward(uintptr_t ptr, size_t alignment) { | |
uintptr_t p, a, modulo; | |
if (!is_power_of_two(alignment)) { | |
return 0; | |
} | |
p = ptr; | |
a = (uintptr_t)alignment; |
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: | |
// ISQ_UI_RENDER_RECT(buffer, count) | |
// must be defined by the user. | |
// buffer: pointer to an array of rects | |
// count: number of rects in the array | |
// rect: | |
// vec4 min, max; | |
// vec4 color; | |
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
vim.cmd([[ | |
let mapleader = ' ' | |
]]) | |
require('packer').startup(function(use) | |
use "BurntSushi/ripgrep" | |
use "danilamihailov/beacon.nvim" | |
use "folke/todo-comments.nvim" | |
use "folke/trouble.nvim" | |
use "goolord/alpha-nvim" |
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
Machine({ | |
id: 'Dog API', | |
initial: 'idle', | |
context: { | |
dog: null | |
}, | |
states: { | |
idle: { | |
on: { | |
FETCH: 'loading' |
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
/* dict.h */ | |
#pragma once | |
#include <stdlib.h> | |
struct dict { | |
int *hashed_keys; | |
void *values; | |
int count; |
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
<sentence> ::= <subj> <obj> <verb> <part> | |
<sub> ::= <noun> | |
<noun> ::= dog | cat | man | woman | robot | pen | |
<obj> ::= <noun> | |
<verb> ::= kick | whack | dance | own | |
<part> ::= now | earlier | later | |
<subj> <obj> <verb> <part> | |
man pen own now == "A man owns a pen" | |
dog cat dance earlier == "A dog was dacing with a cat" |
Hero | Primary | Secondary |
---|---|---|
Ana | Hitscan (Flicking) | Projectile (Sleepdart and Grenade) |
Ashe | Hitscan (Flicking) | Projectile (Dynamite) |
Baptiste | Hitscan (Flicking) | Projectile (Healing) |
Bastion | Hitscan (Tracking) | |
Brigitte | Hybrid | |
D.Va | Hitscan (Tracking) | Projectile (Rockets) |
Doomfist | Projectile |
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 gulpfile will copy static libraries and a index.html file as well as | |
* merge, babelify and uglify the rest of the javascript project. | |
* | |
* TODO: | |
* - Separate media, libs and src with different watchers. | |
* - Media and libs should only be copied to dist if they are different sizes. | |
* | |
* The expected project is to be laid out as such: | |
* |
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
$ npm i -S react redux react-redux react-dom webpack@2* webpack-dev-server@2* | |
$ npm i -D babel-core babel-loader babel-preset-es2015 babel-preset-react | |
// webpack.config.js | |
module.exports = { | |
context: __dirname + '/src', | |
entry: { | |
app: './index.js' | |
}, |
NewerOlder