{{ message }}

Instantly share code, notes, and snippets.

🥏
Focusing

# Aaron Geisleraaron9000

🥏
Focusing
Created Nov 20, 2015
A run script for Xcode, to automatically update the dylib install names for any dylib's in the Frameworks folder. Adapted from http://ynniv.com/blog/2006/02/deploying-app-that-use-dylibs-on-mac.html
View xcode_update_dylib_install_name.sh
 #!/bin/bash EXECFILE=\$BUILT_PRODUCTS_DIR/\$EXECUTABLE_PATH LIBPATH=\$BUILT_PRODUCTS_DIR/\$FRAMEWORKS_FOLDER_PATH NEWLIBPATH="@executable_path/../Frameworks" for DYLIB in "\$LIBPATH"/*.dylib; do TARGETID=\$(otool -DX "\$DYLIB") NEWTARGETID="\$NEWLIBPATH/\$(basename "\$DYLIB")" install_name_tool -change "\$TARGETID" "\$NEWTARGETID" "\$EXECFILE" done
Last active Dec 2, 2020
View Makefile
 # Hello, and welcome to makefile basics. # # You will learn why `make` is so great, and why, despite its "weird" syntax, # it is actually a highly expressive, efficient, and powerful way to build # programs. # # Once you're done here, go to # http://www.gnu.org/software/make/manual/make.html # to learn SOOOO much more.
Last active Dec 1, 2020
Simple Easing Functions in Javascript - see https://github.com/gre/bezier-easing
View easing.js
 /* * Easing Functions - inspired from http://gizma.com/easing/ * only considering the t value for the range [0, 1] => [0, 1] */ EasingFunctions = { // no easing, no acceleration linear: t => t, // accelerating from zero velocity easeInQuad: t => t*t, // decelerating to zero velocity
Created Apr 27, 2010
Array of country codes (ISO 3166-1 alpha-2) and corresponding names
View gist:380904
 'Afghanistan', 'AX' => 'Aland Islands', 'AL' => 'Albania', 'DZ' => 'Algeria', 'AS' => 'American Samoa', 'AD' => 'Andorra',
Created Dec 18, 2009
A number of ways to implement closures in C, in preparation of an upcoming blog post
View closures-basic.c
 #include #include struct closure { void (* call)(struct closure *); int x; };
You can’t perform that action at this time.