Skip to content

Instantly share code, notes, and snippets.

View jamiebullock's full-sized avatar

Jamie Bullock jamiebullock

View GitHub Profile
@daniepetrov
daniepetrov / fix.md
Last active January 15, 2021 12:14
How to Fix Blurry Fonts in MacOS Mojave / Catalina for Non-Retina Displays
defaults write -g CGFontRenderingFontSmoothingDisabled -bool NO
defaults -currentHost write -globalDomain AppleFontSmoothing -int 1

Light font smoothing defaults command (my selection):

defaults -currentHost write -globalDomain AppleFontSmoothing -int 1
@JISyed
JISyed / SnippetsXcodeCpp.cpp
Created April 4, 2016 03:11
A collection of C++ snippets that are useful for Xcode
//==================================================================
/// <#Insert description of new class here#>
class <#NewClassName#>
{
public:
//
// Essentials
//
@fny
fny / GNU GPL Comment Headers.md
Last active July 14, 2024 01:28
GNU GPL formatted into a comment block and hard wrapped at 80 characters.

GNU GPL Comment Headers Formatted in Various Languages

A convenient reference for adding a GPL license to a work.

All prepared texts are hard wrapped at 80 characters unless stated otherwise.

No Wrap

@alexbw
alexbw / Kohonen.ipynb
Created August 20, 2012 20:24
Kohonen Map with Numba
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sekati
sekati / xcode-build-bump.sh
Created July 24, 2012 20:44
Xcode Auto-increment Build & Version Numbers
# xcode-build-bump.sh
# @desc Auto-increment the build number every time the project is run.
# @usage
# 1. Select: your Target in Xcode
# 2. Select: Build Phases Tab
# 3. Select: Add Build Phase -> Add Run Script
# 4. Paste code below in to new "Run Script" section
# 5. Drag the "Run Script" below "Link Binaries With Libraries"
# 6. Insure that your starting build number is set to a whole integer and not a float (e.g. 1, not 1.0)
@reinhrst
reinhrst / dct.c
Created March 20, 2012 19:46
DCT-II implementation using the vDSP on the iOS (and also OSX?)
/* This implementation does DCT-II on iOS, using the iOS vDSP FFT methods. Supposedly this is faster than in plain C (i.e. FFTW), but I didn't do any tests to support this claim. For one thing, as far as I understand it, doing DCT takes less clock cycles than FFT, and using this code we do an FFT of size 2N for a DCT of size N (and then some post processing. Anyone is welcome to comment :)
This code was developed using the following 2 sources, and I owe great gratitude to their authors: http://developer.apple.com/library/ios/#documentation/Performance/Conceptual/vDSP_Programming_Guide/UsingFourierTransforms/UsingFourierTransforms.html and http://www.hydrogenaudio.org/forums//lofiversion/index.php/t39574.html
I don't claim I understand everything I do, but the thing is, it works -- as in, it gives me the same result as jtransform with scaling on :) And it's fast enough for my use: on the iPhone 4S I can get 320 DCTs of length 2048 per second. Perhaps I can improve this with some further tweaking (although I'
@jnrbsn
jnrbsn / GPL.md
Last active April 29, 2023 14:59
A Markdown-formatted GPL for your GitHub projects.

GNU GENERAL PUBLIC LICENSE

Version 3, 29 June 2007

Copyright © 2007 Free Software Foundation, Inc. <http://fsf.org/>

Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.

@rjungemann
rjungemann / FudiParser.java
Created October 11, 2010 01:49
Fudi parser in Java (for use with PureData)
package com.teamsketchy.utils;
import java.util.LinkedList;
import java.util.ListIterator;
public class FudiParser {
public static LinkedList<String[]> tokenize(String string) {
LinkedList<String[]> tokens = new LinkedList<String[]>();
for(int i = 0; i < string.length(); i++) {
@mkhl
mkhl / Makefile
Created July 31, 2009 21:44
Small and generic Makefile skeleton
PROJECT=foo
SOURCES=bar.c baz.c
LIBRARY=nope
INCPATHS=../some_other_project/
LIBPATHS=../yet_another_project/
LDFLAGS=-ldosomething
CFLAGS=-c -Wall
CC=gcc
# ------------ MAGIC BEGINS HERE -------------