Skip to content

Instantly share code, notes, and snippets.

View mimetaur's full-sized avatar

Nathan Koch mimetaur

View GitHub Profile
@catfact
catfact / Engine_SimplePassThru.sc
Last active April 25, 2022 10:53
norns passthru example
Engine_SimplePassThru : CroneEngine {
var amp=0;
var <synth;
// this is your constructor. the 'context' arg is a CroneAudioContext.
// it provides input and output busses and groups.
// see its implementation for details.
*new { arg context, doneCallback;
^super.new(context, doneCallback);
@pandafulmanda
pandafulmanda / Python3 Virtualenv Setup.md
Last active June 28, 2024 18:01 — forked from akszydelko/Python3 Virtualenv Setup.md
Setting up and using Python3 Virtualenv on Mac

Python3 Virtualenv Setup

Requirements
  • Python 3
  • Pip 3
$ brew install python3
@brannondorsey
brannondorsey / of_gitignore.txt
Created May 5, 2016 05:48
OpenFrameworks Project .gitignore
###########################
# ignore generated binaries
# but not the data folder
###########################
*/bin/*
!*/bin/data/
#########
# general
@nemotoo
nemotoo / .gitattributes
Last active June 20, 2024 09:44
.gitattributes for Unity3D with git-lfs
## Unity ##
*.cs diff=csharp text
*.cginc text
*.shader text
*.mat merge=unityyamlmerge eol=lf
*.anim merge=unityyamlmerge eol=lf
*.unity merge=unityyamlmerge eol=lf
*.prefab merge=unityyamlmerge eol=lf
@richy486
richy486 / astar.p8
Created December 17, 2015 22:09
A* pathfinding in pico-8
pico-8 cartridge // http://www.pico-8.com
version 5
__lua__
-- A* pathfinding
-- by @richy486
function _init()
printh("---------------")
printh("starting a star")
@Fonserbc
Fonserbc / Easing.cs
Last active June 16, 2024 23:00
Compact and simple easing functions for Unity
using UnityEngine;
/*
* Most functions taken from Tween.js - Licensed under the MIT license
* at https://github.com/sole/tween.js
* Quadratic.Bezier by @fonserbc - Licensed under WTFPL license
*/
public delegate float EasingFunction(float k);
public class Easing
@indefinit
indefinit / of-bundle-app.md
Last active September 20, 2017 20:54
Openframeworks: bundle app resources inside packaged contents

So you want to bundle your openframeworks app and not have to worry about that pesky "data/" directory... follow this stack overflow article:
http://stackoverflow.com/questions/4882572/how-to-bundle-an-openframeworks-application-in-xcode-relative-resource-linking

TLDR: First you need to tell xCode to copy your /bin/data directory into your application bundle by adding a build phase:

  1. Click on your project in the Project Navigator
  2. Select "Build Phases"
  3. Toggle open the "Run Script" section and paste in the following:
@bbengfort
bbengfort / lsys.py
Last active August 16, 2023 06:03
Draw an L-System with Python's turtle graphics library, where the L-System is defined with a turning angle (d) a line length (l) and an axiom in the using the characters 'F', 'f', '+', and '-' to indicate rules. You can also iterate the axiom for fractal like patterns.
#!/usr/bin/env python
import turtle
D = 90
L = 10
def iterate(axiom, num=0, initator='F'):
"""
Compute turtle rule string by iterating on an axiom
@kylemcdonald
kylemcdonald / pr-log.py
Last active August 18, 2018 23:06
Probe request MAC/SSID pair logging with tcpdump and Python3 for OS X, using airport for channel hopping.
import re
import pickle
from threading import Timer
import subprocess
from subprocess import call
import os.path
import sys
# config
database = 'allPairs.p'
@kentwidman
kentwidman / gist:6940117
Last active December 25, 2015 07:29
Password protected .htaccess allowing Facebook Crawler access
SetEnvIfNoCase User-Agent .*google.* search_robot
Order Deny,Allow
Deny from All
Allow from env=search_robot
#password
AuthName "Restricted Area"
AuthType Basic
AuthUserFile /path/to/.htpasswd