This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.gist .line, | |
.gist .line-number { | |
font-size:14px !important; | |
line-height:25px !important; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Add Short Excerpt Meta | |
Plugin URI: https://gist.github.com/enigmaticape/4751121 | |
Description: Add an additional excerpt box for front page | |
Version: 1.0 | |
Author: Steve Trewick | |
Author URI: http://www.enigmaticape.com | |
License: Public Domain | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# topgrossingfreeapps.py [country code] | |
# us, gb, ch, etc | |
# quick and dirty python script to grab the percentage | |
# of top grossing aps in a given app store which are | |
# currently free | |
import feedparser |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
zoomWithWheel = false; | |
zoomLevel = 1; | |
zoomIncrement = 0.2; | |
document.addEventListener( "mousewheel", function( event ) { | |
if( zoomWithWheel ) { | |
if( event.wheelDeltaY > 0 ) { | |
zoomLevel += zoomIncrement; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"manifest_version": 2, | |
"name": "Wheel Zoom", | |
"description": "Mouse Wheel Zooming.", | |
"version": "1.0", | |
"permissions": [ | |
"tabs", | |
"https://*/*", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// AppDelegate.m | |
// GCD_SPIKE_2 | |
// | |
// Created by Steve Trewick on 29/05/2013. | |
// Copyright (c) 2013 Enigmatic Ape. All rights reserved. | |
// | |
#import "AppDelegate.h" | |
#import <dispatch/dispatch.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void sineWaveSamples( int num_of_samples, double *buffer) { | |
double frequency = 260; | |
double sample_rate = 8000; | |
double increment = 2.0 * M_PI * (frequency / sample_rate); | |
double amplitude = 0.25; | |
static double theta = 0; | |
for( UInt32 i = 0; i < num_of_samples; i++ ) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
typedef struct _WaveState { | |
double amplitude; | |
double increment; | |
double theta; | |
} WaveState; | |
void fillWaveSamples( WaveState * state, UInt32 number_of_samples, Float32 * buffer) { | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OSStatus RenderToneWithState | |
( | |
void *inRefCon, | |
AudioUnitRenderActionFlags *ioActionFlags, | |
const AudioTimeStamp *inTimeStamp, | |
UInt32 inBusNumber, | |
UInt32 inNumberFrames, | |
AudioBufferList *ioData | |
) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>FormatVersion</key> | |
<string>1.2</string> | |
<key>RunDestination</key> | |
<dict> | |
<key>Name</key> | |
<string>iPhone Retina (4-inch)</string> |