Skip to content

Instantly share code, notes, and snippets.

View casspangell's full-sized avatar

mondousage casspangell

View GitHub Profile
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Calendar</title>
<!-- link calendar files -->
<script language="JavaScript" src="calendar_us.js"></script>
<link rel="stylesheet" href="calendar.css">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Calendar</title>
<!-- link calendar files -->
<script language="JavaScript" src="calendar_us.js"></script>
<link rel="stylesheet" href="calendar.css">
-(void)trackOmnitureEventInfo:(NSDictionary *)eventInfo
{
NSLog( @"TLOmnitureManager:trackOmnitureEventInfo:%@", eventInfo );
[_omAppMeasurement track:eventInfo];
}
-(void)handleNotifications:(NSNotification *)notification
{
NSMutableDictionary *mutable_d = [NSMutableDictionary dictionaryWithDictionary:notification.userInfo];
+ (TLAdView *)adViewForTopLevelTab:(NSDictionary *)topLevelTab
frame:(CGRect)frame
parentViewController:(UIViewController *)parentViewController
{
NSString *adViewClassName = @"BCWebAdView";
TLAdView *adView = nil;
//cass: create green button in the newscontroller
import java.util.*;
import java.lang.*;
class test1 extends Thread
{
static long sum;
long start;
long end;
@casspangell
casspangell / DWDtest1
Created February 2, 2012 01:18
DWDtest1.java
//Cassidy Pangell
import java.util.*;
import java.lang.*;
//Since there is only two threads, I used synchronize
class test1 extends Thread{
static long sum = 0;
long start;
long end;
-(NSDictionary *)submitted {
NSArray *keys = [NSArray arrayWithObjects:@"offercode",@"firstname",@"lastname",@"address", nil];
NSArray *objs = [NSArray arrayWithObjects:offerCodeField.text, firstNameField.text, lastNameField.text, emailAddressField.text, nil];
data = [NSDictionary dictionaryWithObjects:objs forKeys:keys];
for (id keys in data) {
//Check whether we can send email
if ([MFMailComposeViewController canSendMail]) {
[composer setToRecipients:[NSArray arrayWithObjects:messageEmail, nil]];
[composer setSubject:@"Urban Cow Registration"];
[composer setMessageBody:messageBody isHTML:NO];
[composer setModalTransitionStyle:UIModalTransitionStyleCrossDissolve];
[self presentModalViewController:composer animated:YES];
//Switch views to Home
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Test</title>
</head>
<body>
<?php
//
// ViewController.h
// SearchViewNIB
//
// Created by Cassidy Pangell on 3/30/12.
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//
#import <UIKit/UIKit.h>