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
### Keybase proof | |
I hereby claim: | |
* I am iamevn on github. | |
* I am iamevn (https://keybase.io/iamevn) on keybase. | |
* I have a public key whose fingerprint is 889A 0993 E9AE CA50 EE56 C506 8394 F8A4 8E0D 01DB | |
To claim this, I am signing this object: |
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 <string.h> | |
#include <stdio.h> | |
#include <stdbool.h> | |
#include <3ds.h> | |
// given buffer, its width and height, real coords, and rgb values | |
// draw corresponding pixel as given rgb color | |
// doesn't draw pixel if (x, y) is outside box bounded by (0, 0) (w-1, h-1) rect | |
bool setPixel(u8 *fb, u16 w, u16 h, u16 r_x, u16 r_y, u8 r, u8 g, u8 b) { |
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 <windows.h> | |
#include <deque> | |
#define VKEY_LEFT 37 | |
#define VKEY_UP 38 | |
#define VKEY_RIGHT 39 | |
#define VKEY_DOWN 40 | |
#define VKEY_Q 81 | |
#define VKEY_START 69 |
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
script_name="Clip Transform Points" | |
script_description="first and last lines selected should have clips with the same number of points. transforms each point's position from first to last line over the selected lines (WARNING: wipes out any clip on intermediate lines" | |
script_author="iamevn" | |
script_version="0.1" | |
script_namespace="evn.ClipTransformPoints" | |
function transform(subs, sel) | |
--[[ |
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
#!/usr/bin/env python3 | |
##let's generate some fucking confetti | |
import random | |
from math import ceil, floor | |
## genconfetti() | |
## args: | |
# line template | |
# - needs to be formatted with start time, end time, color, x position, y position, frz, and drawing coordinates in that order with these keys | |
# times | |
# - array of times |
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
# i3 config file (v4) | |
# | |
# Please see http://i3wm.org/docs/userguide.html for a complete reference! | |
set $mod Mod4 | |
# Font for window titles. Will also be used by the bar unless a different font | |
# is used in the bar {} block below. | |
# This font is widely installed, provides lots of unicode glyphs, right-to-left | |
# text rendering and scalability on retina/hidpi displays (thanks to pango). |
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
#! /usr/bin/env python | |
# created by someone who needs to learn how python even works | |
# released March 2015 under the WTFPL version 2 | |
# you're gonna need PyQt4, also this definitely works in python 3, no clue about 2 | |
import sys, time, tempfile, base64 | |
from PyQt4 import QtGui, QtCore, Qt | |
app = QtGui.QApplication(sys.argv) | |
label = QtGui.QLabel() |
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 | |
# Copyright (C) 2014 Julien Bonjean <julien@bonjean.info> | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# This program is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
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
script_name="Shift Transforms" | |
script_description="shift \\t transforms by input ms" | |
script_author="iamevn" | |
script_version="0.2" | |
script_namespace="evn.ShiftTransforms" | |
--[[ | |
Usage: | |
selected lines should have a transform on them |
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
#! /usr/bin/env python3 | |
from sys import argv, exit | |
from os import walk,path | |
try: | |
from bencodepy import decode_from_file | |
except ImportError: | |
exit("bencodepy is not installed. ") | |
if len(argv) < 2: |
OlderNewer