Skip to content

Instantly share code, notes, and snippets.

protocol Term {
}
extension Term {}
struct Statement {
var terms: [Term] = []
mutating func addItem(term: Term) {
protocol Term {
}
extension Term {
func descripton() -> String {
return "\(self.dynamicType)"
}
}
import UIKit
class TermView: UIView {
var items: [String] = ["item1", "item2"] {
didSet {
setupView()
}
}

#Install Debian on G4 PowerPC

Download the Netinstall ISO image

###COPY DEBIAN TO USB STICK Now you need to put the Debian installer on a USB stick.

Be sure to partition the usb stick with an Apple Partition Map. Select 1 Partition and in the dropdown, choose Apple Partition Map.

Class Person {
var name = "ilteris"
init(_ name: String) {
self.name = name
}
func nickname(nick: String) {
name = nick
}
@ilteris
ilteris / gist:91a2dbda222045eee676
Created March 26, 2015 14:05
swift mapOptional
var urlStrings = [“http://www.google.es”,”http://yahoo.com”]
let urls = urlStrings.map{ NSURL(string: $0) }.filter{ $0 != nil }.map{ $0! }
@ilteris
ilteris / rates
Last active August 29, 2015 14:16
[ { id: 'AUDUSD',
Name: 'AUD to USD',
Rate: '0.7766',
Date: '3/3/2015',
Time: '9:27pm',
Ask: '0.7766',
Bid: '0.7765' },
{ id: 'CADUSD',
Name: 'CAD to USD',
Rate: '0.798',
{
"objects": [
{
"name": "sqrt",
"term": [
{
"name": "subscript",
"term": [
{
"base": [
{
"objects": [
{
"name": "sqrt",
"term":
[
{
"name" : "variable",
"value" : "x"
},
{
"objects": [
{
"name": "fraction",
"term": [
{
"name": "number",
"value": "1"
},
{