This is the sequence of steps to follow to create a root gh-pages
branch. It is based on a question at [SO]
cd /path/to/repo-name
git symbolic-ref HEAD refs/heads/gh-pages
rm .git/index
git clean -fdx
echo "My GitHub Page" > index.html
CGFloat BNRTimeBlock (void (^block)(void)); |
/* | |
* This program is free software; you can redistribute it and/or | |
* modify it under the terms of the GNU General Public License | |
* as published by the Free Software Foundation; either version 2 | |
* of the License, or (at your option) any later version. | |
* | |
* This program is distributed in the hope that it will be useful, | |
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
* GNU General Public License for more details. |
############################################################################# | |
# Documentation # | |
############################################################################# | |
# Author: Todd Whiteman | |
# Date: 16th March, 2009 | |
# Verion: 2.0.0 | |
# License: Public Domain - free to do as you wish | |
# Homepage: http://twhiteman.netfirms.com/des.html | |
# |
import bisect | |
import itertools | |
import operator | |
class _BNode(object): | |
__slots__ = ["tree", "contents", "children"] | |
def __init__(self, tree, contents=None, children=None): | |
self.tree = tree | |
self.contents = contents or [] |
#!/bin/sh | |
# | |
# By default, VMWare Fusion creates proxy Mac apps for every application | |
# installed in a Windows VM, including all of the system utilities, installers & | |
# uninstallers, etc. I never use these and don't want them clogging up Launchbar, | |
# Spotlight or Launchpad and want to disable them for all of my VMs: | |
echo proxyApps.publishToHost = "FALSE" >> ~/Library/Preferences/VMware\ Fusion/preferences | |
echo proxyApps.publishToGuest = "FALSE" >> ~/Library/Preferences/VMware\ Fusion/preferences |
#!/usr/bin/env sh | |
# Download lists, unpack and filter, write to stdout | |
curl -s https://www.iblocklist.com/lists.php \ | |
| sed -n "s/.*value='\(http:.*=bt_.*\)'.*/\1/p" \ | |
| xargs wget -O - \ | |
| gunzip \ | |
| egrep -v '^#' |
/* | |
To test that the Linux framebuffer is set up correctly, and that the device permissions | |
are correct, use the program below which opens the frame buffer and draws a gradient- | |
filled red square: | |
retrieved from: | |
Testing the Linux Framebuffer for Qtopia Core (qt4-x11-4.2.2) | |
http://cep.xor.aps.anl.gov/software/qt4-x11-4.2.2/qtopiacore-testingframebuffer.html | |
*/ |
#import <Foundation/Foundation.h> | |
#import <IOKit/hid/IOHIDManager.h> | |
#import <IOKit/hid/IOHIDUsageTables.h> | |
#define KEYS 4 | |
static void Handle_InputCallback(void *inContext, IOReturn inResult, void *inSender, IOHIDValueRef value) | |
{ | |
IOHIDElementRef elem = IOHIDValueGetElement(value); |