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
/** | |
* This class extends the Stack | |
* so that there's a pushdown(i) | |
* method which copies the elements | |
* at index 0 and inserts it and index i. | |
* All items beneath index i are pushed down. | |
* | |
*/ | |
import java.util.Stack; |
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
- (void)searchDisplayControllerWillBeginSearch:(UISearchDisplayController *)controller | |
{ | |
[self colorAllTheViews:self.searchDisplayController.searchBar.superview]; | |
} | |
- (void)searchDisplayControllerDidBeginSearch:(UISearchDisplayController *)controller | |
{ | |
[self fungeBackdrop]; | |
} |
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><!--HTML5 doctype--> | |
<html> | |
<!--Rifka Rabinowitz lab2 file--> | |
<head> | |
<title> Rifka Rabinowitz CISC 1600 Lab #2 </title> | |
<link rel="stylesheet" href="./CSS/Rabinowitz-style.css"> | |
<meta http-equiv="Content-type" content="text/html; charset=utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0"/> | |
<script src='intelxdk.js'></script> | |
<script type="text/javascript"> |
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
// | |
// AgreementInput.swift | |
// Intake | |
// | |
// Created by Moshe Berman on 1/14/16. | |
// Copyright © 2016 Moshe Berman. All rights reserved. | |
// | |
import Foundation |
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
// | |
// AgreementView.swift | |
// Intake | |
// | |
// Created by Moshe Berman on 12/11/15. | |
// Copyright © 2015 Moshe Berman. All rights reserved. | |
// | |
import UIKit |
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
class ObjectQueue<T : NSObject> { | |
private var used : [T] = [] | |
private var free : [T] = [] | |
/** Recycle or create object. */ | |
func dequeueObject () -> T { | |
var object : T | |
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
func testTask() -> NSURLSessionDataTask? { | |
let components = NSURLComponents() | |
components.scheme = self.serverURLComponents.scheme | |
components.host = self.serverURLComponents.host | |
components.port = self.serverURLComponents.port | |
components.path = "/" | |
guard let url = components.URL else { | |
print("Failed to build URL from components. \(components)") |
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 UIKit | |
class SubmissionManager: NSObject { | |
static let sharedManager = SubmissionManager() | |
var serverURLComponents : NSURLComponents = NSURLComponents() | |
private let keyDefaultsServerAddress : String = "com.company.serverURL" | |
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 hashlib | |
import sys | |
try: | |
website_name = sys.argv[1] | |
hash_value = hashlib.md5(website_name) | |
print(hash_value.hexdigest().upper() + ".png") | |
except Exception, e: |
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
#!/bin/sh | |
# | |
#################################### | |
# iTunes Command Line Control v1.0 | |
# written by David Schlosnagle | |
# created 2001.11.08 | |
#################################### | |
showHelp () { | |
echo "-----------------------------"; |