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
My directory structure is this: | |
| - rest-in-motion.gemspec | |
| - /lib | |
| - rest-in-motion.rb | |
| - /rest-in-motion | |
| | |
| - 5 .rb files that make up the gem | |
The contents of rest-in-motion.gemspec are: |
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
Build ./build/iPhoneSimulator-5.1-Development | |
Build vendor/Pods | |
Build settings from command line: | |
ARCHS = i386 | |
CONFIGURATION_BUILD_DIR = build | |
SDKROOT = iphonesimulator5.1 | |
=== BUILD NATIVE TARGET Pods OF PROJECT Pods WITH CONFIGURATION Release === | |
Check dependencies |
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
// | |
// ViewController.m | |
// ColorTest | |
// | |
// Created by Paul Marano on 7/13/12. | |
// Copyright (c) 2012 Cogent Technologies, Inc. All rights reserved. | |
// | |
#import "ViewController.h" | |
#import "ASIHTTPRequest.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
pachun@pepe-78 ~/motion/cancer (master●)$ rake retina=4 [ruby-1.9.3-p286] | |
Build ./build/iPhoneSimulator-6.0-Development | |
Build vendor/Pods | |
Compile ./app/controller/quiz_vc.rb | |
Link ./build/iPhoneSimulator-6.0-Development/cancer.app/cancer | |
Create ./build/iPhoneSimulator-6.0-Development/cancer.dSYM | |
Simulate ./build/iPhoneSimulator-6.0-Development/cancer.app | |
(main)> *** simulator session ended with error: Error Domain=DTiPhoneSimulatorErrorDomain Code=1 "The simulated application quit." UserInfo=0x100417f30 {NSLocalizedDescription=The simulated application quit., DTiPhoneSimulatorUnderlyingErrorCodeKey=-1} | |
rake aborted! | |
Command failed with status (1): [DYLD_FRAMEWORK_PATH="/Applications/Xcode.a...] |
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
app.libs << '/usr/lib/libz.1.1.3.dylib' | |
app.libs << '/usr/lib/libsqlite3.dylib' | |
app.frameworks += [ | |
'AudioToolbox', | |
'Accounts', | |
'AdSupport', | |
'CFNetwork', | |
'CoreGraphics', | |
'CoreLocation', | |
'MobileCoreServices', |
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 TestVC < UIViewController | |
attr_accessor :hello | |
def viewDidLoad | |
super | |
@hello = 5 | |
@goodbye = 3 | |
puts "view did load:\n@hello = #{@hello}\n@goodbye = #{@goodbye}" | |
end |
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
Incident Identifier: CB0DBA77-FA71-4D3C-BDFF-0D6D625FF88D | |
CrashReporter Key: b810119dddf8f33bb1195bb3b4b1424e81273d30 | |
Hardware Model: iPhone5,1 | |
Process: mlp [22017] | |
Path: /var/mobile/Applications/86FB2D6F-8D30-4771-A955-75D7DA1FC2EF/mlp.app/mlp | |
Identifier: mlp | |
Version: ??? (???) | |
Code Type: ARM (Native) | |
Parent Process: launchd [1] |
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 Client | |
attr_accessor :socket, :thread, :connection_time | |
def initialize(socket) | |
@socket = socket | |
@connection_time = Time.now | |
end | |
def run | |
@thread = Thread.start 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
require 'socket' | |
socket = TCPSocket.open('localhost', 6969) | |
socket.puts('CHAT') | |
msg = socket.gets | |
puts "sent:CHAT received:#{msg}" |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Chat Server - Nick Pachulski</title> | |
<link href="../static/chat.css" rel="stylesheet" type="text/css"> | |
</head> | |
<body> | |
<div id='header'> | |
</div> | |
</body> |
OlderNewer