This file contains 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
#!/bin/sh | |
# | |
# An example hook script to verify what is about to be committed. | |
# Called by git-commit with no arguments. The hook should | |
# exit with non-zero status after issuing an appropriate message if | |
# it wants to stop the commit. | |
# | |
# To enable this hook, make this file executable. | |
# This is slightly modified from Andrew Morton's Perfect Patch. |
This file contains 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
<html> | |
<head> | |
<meta http-equiv="Content-type" content="text/html; charset=utf-8"> | |
<title>closuretest</title> | |
<script type="text/javascript" src="http://code.jquery.com/jquery-1.4.2.min.js"> | |
</script> | |
<script> | |
var list = [ |
This file contains 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
<html> | |
<head> | |
<meta http-equiv="Content-type" content="text/html; charset=utf-8"> | |
<title>atest</title> | |
</head> | |
<body id="atest" onload=""> | |
<a href="#blah"> | |
<table border="2"> |
This file contains 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
#include <Client.h> | |
#include <Dhcp.h> | |
#include <dns.h> | |
#include <Ethernet.h> | |
#include <Server.h> | |
#include <sockutil.h> | |
#include <Udp.h> | |
#include <util.h> | |
#include <SPI.h> |
This file contains 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 ruby | |
# This script converts xccolorthemes to dtvcolorthemes for porting xcode 3.x themes to xcode 4.x | |
# created by ashley towns <[email protected]> | |
# Public domain. | |
# ./dvtcolorconvert <inputfile> | |
# spits out a .dtvcolortheme file | |
require 'rubygems' | |
require 'plist' | |
raise "Error: need a source file #{__FILE__} [file.xccolortheme]" if ARGV.length == 0 |
This file contains 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
import readline, rlcompleter | |
readline.parse_and_bind ("bind ^I rl_complete") | |
globals().update({"test": 123}) | |
test2 = 123 | |
try: | |
from django.conf import settings | |
except ImportError: | |
pass |
This file contains 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
oak[cappuccino]% ./bootstrap.sh 15:09 | |
================================================================================ | |
Narwhal JavaScript platform is required. Install it automatically now? | |
Enter "yes" or "no": | |
yes | |
================================================================================ | |
To use the default location, "/usr/local/narwhal", just hit enter/return, or enter another path: | |
Downloading Narwhal from "http://github.com/280north/narwhal/zipball/master"... | |
% Total % Received % Xferd Average Speed Time Time Time Current |
This file contains 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
import os | |
if os.path.exists('/etc/myapp_django_settings.py'): | |
execfile('/etc/myapp_django_settings.py') | |
if os.path.exists('local_django_settings.py'): | |
execfile('local_django_settings.py') | |
This file contains 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
0010 Z0FZ MBP 15.4/2.4/CTO | |
With the following configuration: | |
Processor 2.4GHz Intel Core 2 Duo | |
Memory 4GB 1066Mz DDR3 SDRAM-2x1GB | |
Hard Drive 500GB Serial ATA @ 7200 | |
Optical DriveSuperDrive 8X DL | |
Keyboard and Documentation KYBD/User's Guide -B | |
Country Kit/AEXCountry Kit-GBR |
This file contains 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
# Assumes that you tag versions with the version number (e.g., "1.1") and then the build number is | |
# that plus the number of commits since the tag (e.g., "1.1.17") | |
echo "Updating version/build number from git..." | |
plist=${PROJECT_DIR}/${INFOPLIST_FILE} | |
# increment the build number (ie 115 to 116) | |
versionnum=`git describe | awk '{split($0,a,"-"); print a[1]}'` | |
buildnum=`git describe | awk '{split($0,a,"-"); print a[1] "." a[2]}'` |
OlderNewer