Skip to content

Instantly share code, notes, and snippets.

View josephrussell's full-sized avatar

Joseph Russell josephrussell

View GitHub Profile
@josephrussell
josephrussell / sine_wave.zig
Created September 16, 2024 16:21
Zig 0.14 sine wave core audio
const std = @import("std");
const c = @cImport({
@cInclude("AudioUnit/AudioUnit.h");
@cInclude("math.h");
});
const kOutputBus = 0;
pub fn main() !void {
const stdout = std.io.getStdOut().writer();
requirejs.config({
baseUrl: '/',
paths: {
"jquery": "vendor/bower/jquery/jquery",
"underscore": "vendor/bower/lodash/dist/lodash.underscore.min",
"backbone": "vendor/bower/backbone/backbone",
"modernizr": "vendor/bower/modernizr/modernizr",
"bootstrap": "vendor/bootstrap"
},
git diff HEAD f4a27733-9210-544b-af2a-5138c84a0ace -- memcache.php
git checkout c070061c0d4d1ae38ffbb7c09e1a80c7ae468bcb -- memcache.php
@josephrussell
josephrussell / git submodules
Last active October 10, 2015 20:17
git submodules
Set up the submodule for the first time:
[~]$ cd ~/main/
[main]$ git submodule add git://github.com/my/submodule.git ./subm
[main]$ git submodule update --init
[main]$ git commit ./submodule -m "Added submodule as ./subm"
Fetch submodules after cloning a repository:
[~]$ git clone git://github.com/my/main.git ~/main
[~]$ cd ~/main/
[main]$ git submodule update --init
@josephrussell
josephrussell / git branching
Last active September 29, 2015 01:47
git branching
Creating
========
git checkout -b branch_name # local
git branch --track branch_name origin/remote_branch_name # tracking
git push -u origin branch_name # remote
Deleting
========
git branch -d branch_name # local