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
@class EXApplication : UIApplication { | |
} | |
- tableView:table numberOfRowsInSection:section { | |
return 2; | |
} | |
- tableView:table cellForRowAtIndexPath:index { | |
var cell = [new UITableViewCell initWithStyle:UITableViewCellStyleDefault reuseIdentifier:"cell"]; | |
[cell setText:([index row] == 0 ? "test" : "help")]; |
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/bash | |
unset CPATH | |
unset C_INCLUDE_PATH | |
unset CPLUS_INCLUDE_PATH | |
unset OBJC_INCLUDE_PATH | |
unset LIBS | |
unset DYLD_FALLBACK_LIBRARY_PATH | |
unset DYLD_FALLBACK_FRAMEWORK_PATH |
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
TESTS = $(shell find test/test.*.js) | |
test: | |
@./test/run.sh $(TESTS) | |
.PHONY: test |
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/bash | |
working=$(mktemp -d); | |
mkdir -p "$working/usr/lib" | |
cp -R "$1/usr/lib/" "$working/usr/lib" | |
mkdir -p "$working/usr/include" | |
cp -R "$1/usr/include/" "$working/usr/include" | |
mkdir -p "$working/System/Library/PrivateFrameworks" | |
cp -R "$1/System/Library/PrivateFrameworks/" "$working/System/Library/PrivateFrameworks" |
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/bash | |
printf "Enter IP of device:" | |
read IP | |
SAVEIFS=$IFS | |
IFS=$(echo -en "\n\b") | |
FILES=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/* | |
for f in $FILES | |
do |
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
//[[[UIAlertView alloc] initWithTitle:@"Alert title" message:msg delegate:self //cancelButtonTitle:@"Don't remember" otherButtonTitles:@"OK" , @"remember later", nil] //autorelease];[alert show]; | |
var $ = require('./NodObjC'); | |
$.import('Foundation'); | |
$.import('UIKit'); | |
var pool = $.NSAutoreleasePool('alloc')('init'); | |
var alert = $.UIAlertView('alloc'); |
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
* | |
!*.m | |
!Makefile |
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> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"></script> | |
<script> | |
window.onload = function(){ | |
function View(name) { | |
if (!(this instanceof View)) return new View(name); | |
var html; | |
if (~name.indexOf('<')) html = name; |
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
// | |
// main.m | |
// ProtectTest | |
// Demonstrates newer versions of iOS now support PROT_EXEC pages, for just-in-time compilation. | |
// | |
// Must be compiled with Thumb disabled | |
// | |
// Created by Stuart Carnie on 3/4/11. | |
// Copyright 2011 Manomio LLC. All rights reserved. | |
// |
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 node | |
// requires node v0.3 | |
// telnet.js 80 google.com | |
net = require('net'); | |
a = process.argv.slice(2); | |
if (!a.length) { | |
console.error("telnet.js port [ host=localhost ]"); | |
process.exit(1); | |
} | |
s = require('net').Stream(); |