Skip to content

Instantly share code, notes, and snippets.

View felixangell's full-sized avatar
🐛

Felix Angell felixangell

🐛
View GitHub Profile
@felixangell
felixangell / Default (OSX).sublime-keymap
Created May 25, 2015 14:13
Felix's Sublime Preferences, this is just in case I reformat or whatever.
[
{ "keys": ["super+d"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Line.sublime-macro"} },
{ "keys": ["super+left"], "command": "move", "args": {"by": "subwords", "forward": false} },
{ "keys": ["super+right"], "command": "move", "args": {"by": "subword_ends", "forward": true} },
{ "keys": ["super+shift+left"], "command": "move", "args": {"by": "subwords", "forward": false, "extend": true} },
{ "keys": ["super+shift+right"], "command": "move", "args": {"by": "subword_ends", "forward": true, "extend": true} },
{ "keys": ["super+alt+left"], "command": "move", "args": {"by": "subwords", "forward": false} },
{ "keys": ["super+alt+right"], "command": "move", "args": {"by": "subword_ends", "forward": true} },
{
"color_scheme": "Packages/Colorsublime - Themes/Solarized-ocean.tmTheme",
"dictionary": "Packages/Language - English/en_GB.dic",
"ensure_newline_at_eof_on_save": true,
"file_exclude_patterns":
[
"*.jpg",
"*.jpeg",
"*.png",
"*.gif",
felix@felix-arch ~/d/a/idiot> ls
main* main.ark
felix@felix-arch ~/d/a/idiot> cat main.ark
#use std::mem
pub func main() -> int {
foo := "bar";
length := len(foo) + 1;
bar: [length]u8;
baz := bar[0];
@felixangell
felixangell / count.sh
Created October 7, 2016 21:03
Simple line count shell script.
#!/bin/bash
if [ $# -eq 0 ]; then
echo "Expected file extension to line count"
exit 1
fi
echo "There are $(git ls-files | grep ".$1" | xargs cat | wc -l) lines of $1 code."
@felixangell
felixangell / setup.sh
Created April 2, 2017 17:14
stupid simple setup script
#!/bin/bash
echo "Running Felix's setup script!"
#Check if run as root
if [[ $EUID -ne 0 ]]; then
echo "Please re-run the setup script with sudo"
exit 1
fi
@felixangell
felixangell / felix thing
Created March 7, 2018 02:38
please ignore me
#include "arduino_simulator.h"
enum {
RED, AMBER, GREEN,
NUM_LIGHTS,
};
enum {
SET_A,
SET_B,
@felixangell
felixangell / .eslintrc.js
Created July 20, 2019 14:53
otzaf js eslint
module.exports = {
'env': {
'browser': true,
'es6': true
},
'extends': 'eslint:recommended',
'globals': {
'Atomics': 'readonly',
'SharedArrayBuffer': 'readonly'
},

Keybase proof

I hereby claim:

  • I am felixangell on github.
  • I am felixangell (https://keybase.io/felixangell) on keybase.
  • I have a public key whose fingerprint is C7D4 D692 B6DB 9443 BA60 9F87 001F CE5A AF20 79A7

To claim this, I am signing this object:

{"name":"Current","device":1,"model":5,"type":"layout","data":{"layer0":[41,30,31,32,33,34,35,36,37,38,39,45,46,42,43,20,26,8,21,23,28,24,12,18,19,47,48,49,57,4,22,7,9,10,11,13,14,15,51,52,40,225,29,27,6,25,5,17,16,54,55,56,82,224,226,227,44,192,80,81,79],"layer1":[53,58,59,60,61,62,63,64,65,66,67,68,69,0,0,0,82,0,0,0,0,0,82,0,70,74,77,0,0,80,81,79,0,0,0,80,81,79,75,78,0,0,53,0,0,0,0,0,0,0,73,76,0,0,0,0,0,192,0,0,0],"layer2":[0,200,201,202,203,0,0,0,0,241,240,244,243,0,0,0,82,0,0,0,0,0,82,0,70,74,77,0,0,80,81,79,0,0,0,80,81,79,75,78,0,0,0,0,0,0,0,0,0,0,73,76,0,0,0,0,0,192,0,0,0],"taps":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,80,81,79]},"crc":"4edb512f"}
font:
size: 18.0
key_bindings:
- { key: Key3, mods: Alt, chars: "#" }
- { key: Left, mods: Alt, chars: "\x1bb" }
- { key: Right, mods: Alt, chars: "\x1bf" }
- { key: Left, mods: Command, chars: "\x1bOH", mode: AppCursor } # Home
- { key: Right, mods: Command, chars: "\x1bOF", mode: AppCursor }