Skip to content

Instantly share code, notes, and snippets.

View Eoin-ONeill-Yokai's full-sized avatar
🦆
アヒル

Eoin O'Neill Eoin-ONeill-Yokai

🦆
アヒル
  • W4 Games
  • Portland, OR. USA.
View GitHub Profile
@staltz
staltz / introrx.md
Last active April 16, 2025 07:21
The introduction to Reactive Programming you've been missing
@hdngr
hdngr / colors.json
Last active May 16, 2023 03:55 — forked from sleamer/colors.json
[
{
"name": "Yellow",
"munsell_hue": "Y",
"hex": "#FFFF00",
"children": [
{
"name": "Cadmium Yellow Light",
"company": "Liquitex",
@seanjensengrey
seanjensengrey / rust-python-cffi.md
Last active January 13, 2025 02:04
Calling Rust from Python/PyPy using CFFI (C Foreign Function Interface)

This is a small demo of how to create a library in Rust and call it from Python (both CPython and PyPy) using the CFFI instead of ctypes.

Based on http://harkablog.com/calling-rust-from-c-and-python.html (dead) which used ctypes

CFFI is nice because:

  • Reads C declarations (parses headers)
  • Works in both CPython and PyPy (included with PyPy)
  • Lower call overhead than ctypes
anonymous
anonymous / playground.rs
Created October 23, 2015 02:43
Shared via Rust Playground
use std::fmt;
struct Vector3<T>( T, T, T );
struct Vector4<T>( T, T, T, T );
struct Vertex
{
pos : Vector3<f32>,
color : Vector4<f32>,
normal : Vector3<f32>
@nikhan
nikhan / twitter.sh
Created January 1, 2016 04:45
twitter ffmpeg
ffmpeg -i test.mov -vcodec libx264 -vf 'scale=640:trunc(ow/a/2)*2' -acodec aac -vb 1024k -minrate 1024k -maxrate 1024k -bufsize 1024k -ar 44100 -strict experimental -r 30 out.mp4
@robertpainsi
robertpainsi / README.md
Last active April 16, 2025 14:39
How to reopen a pull-request after a force-push?

How to reopen a pull-request after a force-push?

Precodinitions

  • You need the rights to reopen pull requests on the repository.
  • The pull request hasn't been merged, just closed.

Instructions

  1. Write down the current commit hash of your PR-branch git log --oneline -1 <PR-BRANCH>
  2. Write down the latest commit hash on github before the PR has been closed.
  3. git push -f origin :
@vladbat00
vladbat00 / ue4-building-scripts
Created September 19, 2016 11:30
Building Unreal Engine 4 MyProject from command line for Windows and Linux platforms
# Windows
Build MyProjectEditor Win64 Development "D:\Unreal\MyProject\MyProject.uproject" -waitmutex
# Linux
Build.sh MyProjectEditor Linux Development "/home/mvlabat/unreal/projects/MyProject/MyProject.uproject" -waitmutex
@JayKickliter
JayKickliter / Makefile
Last active September 7, 2024 21:12
GNU Make: force recompile when flags change
# Make OBJS depend on CPP/C/CXX/LD flags
$(OBJS): $(BUILDDIR)/flags.txt
# Creates a new flags.txt file when flags change
# make will detect this change and force a rebuild of
# all the sources
.PHONY: flags
$(BUILDDIR)/flags.txt: flags
$(Q){ \
TMP=`mktemp`; \
@ObserverOfTime
ObserverOfTime / BDLinux.md
Last active March 7, 2025 10:49
Install BetterDiscord on Linux

Install BetterDiscord on Linux

This Gist contains simple instructions on how to install, update, and uninstall BetterDiscord on Linux.

For more thorough documentation, take a look at betterdiscordctl's README.

Do NOT submit issues here as I don't check the comments. You should submit them here instead.

@chesterlaw
chesterlaw / Evangelion Script Eps 1-5.txt
Created September 4, 2020 14:16
Evangelion Script Eps 1-5
時に、西暦2015年
「本日は12時30分、東海地方を中心とした関東中部全域に特別非常事態宣言が発令されました。住民の方々は速やかに指定のシェルターへ非難してください。繰り返しお伝えいたします。本日は12時30分、東海地方を中心とした関東中部全域に特別非常事態宣言が発令されました。住民の方々は速やかに指定のシェルターへ・・・・・・・」
ミサト:よりによってこんな時に見失うだなんて・・・まいったわねぇ
「特別非常宣言発令のため現在全ての普通回線は不通となっております。」
シンジ:だめか。やっぱり来るんじゃなかった。待ち合わせは無理か。