I hereby claim:
- I am peterkos on github.
- I am peterkoss (https://keybase.io/peterkoss) on keybase.
- I have a public key ASDNZ1X061KSnznAanHxsQIEQpHBajCAYajHhhHs_-PUsAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
func add(num1: Int, num2: Int) -> Int { | |
return num1 + num2 | |
} | |
let result = add(num1: 3, num2: 3) | |
print(result) |
/* | |
* RESOURCES: | |
* http://www.curious-creature.com/2013/12/21/android-recipe-4-path-tracing/ | |
* (Implementation came from this SO link, however I derived something similar w/ ViewAnimator first) | |
* https://stackoverflow.com/questions/50674847/how-to-draw-several-lines-slowly-in-constant-velocity-on-canvas-by-android | |
* https://stackoverflow.com/questions/15010156/android-using-paint-to-draw-dashed-line-with-two-different-colors | |
*/ |
// rotate, translate, mirror (solid) | |
// union, | |
// difference (subtract shapes), | |
// hull (fills bounding box as tight as shape input) | |
// linear extrusion is a thing | |
// Inner triangle shape |
// | |
// main.swift | |
// MarkovTest | |
// | |
// Created by Peter Kos on 4/20/19. | |
// Copyright © 2019 UW. All rights reserved. | |
// | |
import Foundation |
import UIKit | |
let array = [5, 16, 67, 2, 9] | |
// "Manual" way | |
for index in stride(from: 0, to: array.count, by: 2) { | |
print(array[index]) | |
} |
// ----------------------------------------- | |
// Playground Code | |
// ----------------------------------------- | |
import UIKit | |
var str = "Hello, playground" | |
// sayHello() prints "hello, person!" |
import UIKit | |
// var -- Variable (value can change) | |
// let -- Constant (value cannot change) | |
var str = "Hello, playground" | |
str = "My New String" |
.answer { | |
opacity: 1 !important; | |
} | |
.answer_arrow { | |
display: none; | |
} | |
.answer.wrong_answer { | |
border-top: 1px solid #ddd !important; |
import static java.lang.System.*; | |
import java.util.ArrayList; | |
public class PCLegitBinaryTree { | |
public static void main(String[] args) { | |