Skip to content

Instantly share code, notes, and snippets.

🎃
I may be slow to respond.

Kenton Hamaluik hamaluik

🎃
I may be slow to respond.
Block or report user

Report or block hamaluik

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View init.vim
call plug#begin('~/.vim/plugged')
Plug 'junegunn/vim-easy-align'
Plug 'airblade/vim-gitgutter'
Plug 'jdonaldson/vaxe'
Plug 'tpope/vim-surround'
Plug 'vim-airline/vim-airline'
Plug 'tpope/vim-commentary'
Plug 'w0rp/ale'
Plug 'ctrlpvim/ctrlp.vim'
Plug 'scrooloose/nerdtree'
View config
[bar/i3wmthemer_bar]
width = 100%
height = 27
radius = 0
fixed-center = true
background = #162025
foreground = #bfbfbf
line-size = 3
View clippy-version.rs
while let Some(c) = self.chars.peek() {
match c {
'\n' => { self.line += 1; },
'"' => { break; },
_ => { self.advance(); }
};
}
View Ease.hx
/**
@see https://github.com/armory3d/iron/blob/3e2b6f8d89e5136801bd5dc43172127926847a83/Sources/iron/system/Tween.hx#L134-L158
*/
class Ease {
static inline var DEFAULT_OVERSHOOT:Float = 1.70158;
public static function linear(k:Float):Float { return k; }
public static function sineIn(k:Float):Float { if(k == 0){ return 0; } else if(k == 1){ return 1; } else { return 1 - Math.cos(k * Math.PI / 2); } }
public static function sineOut(k:Float):Float { if(k == 0){ return 0; } else if(k == 1){ return 1; } else { return Math.sin(k * (Math.PI * 0.5)); } }
public static function sineInOut(k:Float):Float { if(k == 0){ return 0; } else if(k == 1){ return 1; } else { return -0.5 * (Math.cos(Math.PI * k) - 1); } }
@hamaluik
hamaluik / launch.json
Created Nov 8, 2017
Kha debugging in Visual Studio Code with Chrome
View launch.json
{
"version": "0.2.0",
"configurations": [
{
"name": "Kha/HTML5",
"type": "chrome",
"request": "launch",
"preLaunchTask": "khamake html5",
"file": "${workspaceRoot}/build/html5/index.html"
}
View thx.core vs haxe-4.0.0-preview.2
λ haxe tests.hxml
thx.core/src/thx/Eithers.hx:157: characters 12-17 : Warning : Potential typo detected (expected similar values are Right). Consider using `var right` instead
thx.core/src/thx/Eithers.hx:164: characters 12-17 : Warning : Potential typo detected (expected similar values are Right). Consider using `var right` instead
thx.core/src/thx/Validation.hx:67: characters 22-23 : thx.Validation<thx.Validation.E, flatMapV.B> should be thx.Either<thx.Validation.E, flatMapV.B>
thx.core/src/thx/Validation.hx:77: characters 27-32 : thx.Validation<thx.Validation.E, thx.Validation.A> should be thx.Either<thx.Validation.E, thx.Validation.A>
thx.core/src/thx/Validation.hx:107: characters 34-36 : thx.Validation<val3.X, val3.A> should be thx.Either<Unknown<0>, val3.A>
thx.core/src/thx/Validation.hx:107: characters 34-36 : For function argument 'v1'
thx.core/src/thx/Validation.hx:113: characters 34-36 : thx.Validation<val4.X, val4.A> should be thx.Either<Unknown<0>, val4.A>
thx.core/src/thx/Validation.hx:113: charac
View keybase.md

Keybase proof

I hereby claim:

  • I am FuzzyWuzzie on github.
  • I am fuzzywuzzie (https://keybase.io/fuzzywuzzie) on keybase.
  • I have a public key whose fingerprint is 0D2D BDE7 9900 EDE8 961E EC29 F353 D551 3210 A1E5

To claim this, I am signing this object:

View _vimrc
set nocompatible
source $VIMRUNTIME/mswin.vim
behave mswin
set diffexpr=MyDiff()
function MyDiff()
let opt = '-a --binary '
if &diffopt =~ 'icase' | let opt = opt . '-i ' | endif
if &diffopt =~ 'iwhite' | let opt = opt . '-b ' | endif
let arg1 = v:fname_in
View .gitconfig
[alias]
ls = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --
plog = log --graph --pretty='format:%C(red)%d%C(reset) %C(yellow)%h%C(reset) %ar %C(green)%aN%C(reset) %s'
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
tlog = log --stat --since='1 Day Ago' --graph --pretty=oneline --abbrev-commit --date=relative
fuck = reset HEAD --hard
yolo = push -f
news = log -p @{1}..
d = diff -c HEAD
cleanup = !git clean -i -x -d -e "TAGS" -e 'tags' ; git fetch -p
View trimzeros.m
function [ varargout ] = trimzeros( varargin )
%TRIMZEROS Removes trailing "zero" datapoints from the input vectors
% At the end of the `emg` array are expected to be a series of 0.0 values which
% cause problems for data analysis. This function will remove those zeros from the
% input columns. Call this function using either:
% >> [ t, emg ] = trimzeros(t, emg);
% or:
% >> [ t, emg, force ] = trimzeros(t, emg, force);
if (nargin < 2) || (nargin > 3)
You can’t perform that action at this time.