Skip to content

Instantly share code, notes, and snippets.

💭
🤖

Aaron Geisler aaron9000

💭
🤖
Block or report user

Report or block aaron9000

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
@ScrimpyCat
ScrimpyCat / xcode_update_dylib_install_name.sh
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
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.
@gre
gre / easing.js
Last active Feb 19, 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
@vxnick
vxnick / gist:380904
Created Apr 27, 2010
Array of country codes (ISO 3166-1 alpha-2) and corresponding names
View gist:380904
<?php
$countries = array
(
'AF' => 'Afghanistan',
'AX' => 'Aland Islands',
'AL' => 'Albania',
'DZ' => 'Algeria',
'AS' => 'American Samoa',
'AD' => 'Andorra',
@vidarh
vidarh / closures-basic.c
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 <stdio.h>
#include <stdlib.h>
struct closure {
void (* call)(struct closure *);
int x;
};
You can’t perform that action at this time.