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
/* | |
Create an account on a Flak server | |
Uses ivar's for server, serverKey, firstName, lastName, email and password | |
*/ | |
- (BOOL) createAccount | |
{ | |
NSLog(@"Trying to create account.."); | |
// Server Key, First Name, Last Name, Email, Password, Password | |
static NSString *createUserFormat = @"{ \"key\": \"%@\", \"user\": { \"first_name\": \"%@\", \"last_name\": \"%@\", " | |
"\"email\": \"%@\", \"password\": \"%@\", \"password_confirmation\": \"%@\", \"time_zone\": \"Central Time (US & Canada)\" } }"; |
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
<project default="main"> | |
<target name="main" depends="clean, buildlabs, buildproj"></target> | |
<target name="clean"> | |
<delete dir="classes" /> | |
</target> | |
<target name="buildlabs"> | |
<mkdir dir="classes" /> |
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
#import <stdio.h> | |
int main() { | |
int value = 0; | |
if (5 == (value = thisReturnsFive())) { | |
printf("It works!\n"); | |
} else { | |
printf("It doesn't work!\n"); |
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
#import <AVFoundation/AVFoundation.h> | |
// Initialize the music player | |
rickroll = [[AVAudioPlayer alloc] | |
initWithContentsOfURL:[[NSBundle mainBundle] | |
URLForResource:@"Rickroll" | |
withExtension:@"mp3"] | |
error:nil]; | |
// Play music for 300ms |
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
body { | |
background-color: black; | |
color: white; | |
} | |
div { | |
padding: 1.5px; | |
border: 1px white solid; | |
} |
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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<link rel="stylesheet" href="StealthBot.css" /> | |
<title>StealthBot 3 - TestUser @ Azeroth in Channel "Op x86" (Mockup)</title> | |
</head> | |
<body> |
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
// Implement viewDidLoad to do additional setup after loading the view, typically from a nib. | |
- (void)viewDidLoad | |
{ | |
[super viewDidLoad]; | |
CALayer *myLayer = [[CALayer alloc] init]; | |
myLayer.position = CGPointMake(50, 50); | |
myLayer.backgroundColor = [[UIColor greenColor] CGColor]; | |
myLayer.frame = CGRectMake(50, 50, 50, 50); | |
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
/** | |
* Division Challenge - divide.c | |
* William LaFrance | |
* 2011 March 28 | |
*/ | |
#import <stdio.h> | |
#define null 0x0 |
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
out = File.open("/tmp/dougalisms", "w") | |
(1..50).to_a.each { | ism_id | | |
system ("curl dougalisms.com/#{ism_id} > /tmp/dougalism#{ism_id}") | |
if File.exists?("/tmp/dougalism#{ism_id}") then | |
f = File.open("/tmp/dougalism#{ism_id}", "r") | |
while (line = f.gets) do | |
if line =~ /8e8e8e/ and not line =~ /refresh for more/ then |
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
#Create a file named project2.properties and place it into the projects/config directory. | |
#This file will contain entries for the following: | |
#The name of the author of the project | |
project.author.name=William LaFrance | |
#The email address of the author | |
[email protected] | |
#The course title | |
course.title=Java 112 | |
#The course meeting days and times | |
course.section=MW230 |
OlderNewer