Author: Chris Lattner
This file contains 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 sys | |
import random | |
import string | |
from itertools import combinations, repeat | |
from multiprocessing import Pool, cpu_count | |
from typing import List, Iterable, Tuple | |
def random_word(length: int) -> str: | |
return ''.join(random.choice(string.ascii_lowercase) for i in range(length)) |
This file contains 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
{ | |
"translated_on" : "2017-03-31T17:49:08.013463-04:00", | |
"sentences" : [ | |
{ | |
"index" : 0, | |
"tokens" : [ | |
{ | |
"index" : 1, | |
"pos" : "NR", | |
"word_translation" : "United States", |
This file contains 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
<html:html xmlns:html="http://www.w3.org/1999/xhtml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="-//W3C//DTD XHTML 2.0//EN" xsi:schemaLocation="http://www.w3.org/1999/xhtml http://www.w3.org/MarkUp/SCHEMA/xhtml2.xsd" xml:lang="en"> | |
<html:HEAD> | |
<html:TITLE>Request Error</html:TITLE> | |
</html:HEAD> | |
<html:BODY> | |
<html:DIV id="content"> | |
<html:P class="heading1"> | |
<html:B>Error Status Code:</html:B> | |
'InternalServerError' | |
</html:P> |
This file contains 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
[{ | |
"title": "Blinker", | |
"contents": [ | |
[11, 11], | |
[12, 11], | |
[11, 12], | |
[12, 12], | |
[13, 12], | |
[11, 13], | |
[12, 13] |
This file contains 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
Open the terminal | |
cd <directory_that_contains_repository> | |
git add . | |
git commit -m "<your message here>" | |
git pull | |
git push origin master |
This file contains 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
Readings: | |
The Swift Programming Language (Swift 2.2) (Links to an external site.) - https://itunes.apple.com/us/book/swift-programming-language/id881256329?mt=11 (Links to an external site.) | |
Pages 1-271 | |
You will want to download that to iBooks and eventually read the entire thing. The Swift Tour on Pages 3-33 you should know like the back of your hand. Everything up through properties you should be familiar with starting next week. | |
Optional reading (Playgrounds which follow the book): | |
https://github.com/nettlep/learn-swift (Links to an external site.) | |
Highly recommend exploring portions of the book which don't seem clear in the noted playgrounds. These implement all of the examples from the book so that you don't have to type them in yourself. | |
Assignment | |
Problem 1 (20 points) | |
Create a single view Project called Assignment2. |
While in background:
Jan 12 11:20:14 iPhone-von-reBuy RebuyAppiOS[950] <Warning>: Warning: Unhandled exception: System.AggregateException: A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. ---> System.NullReferenceException: Object reference not set to an instance of an object
at RebuyApp.iOS.Renderers.ExtendedMapsRenderer.OnElementChanged (Xamarin.Forms.Platform.iOS.ElementChangedEventArgs`1 e) <0x1000a97b0 + 0x00240> in <filename unknown>:0
at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1[TElement].SetElement (Xamarin.Forms.Platform.iOS.TElement element) <0x100dc3ac0 + 0x0028f> in <filename unknown>:0
at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1[TElement].Dispose (Boolean disposing) <0x100dc4288 + 0x000d3> in <filename unknown>:0
at Xamarin.Forms.Platform.iOS.ViewRenderer`2[TView,TNativeView].Dispose (Boolean disposing) <0x100dc2b00 + 0x000
This file contains 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
(1a) | |
double * line(double * pt1, double * pt2){ | |
double xTmp, yTmp; | |
xTmp = (pt2[1]-pt1[1])/(pt2[0]-pt1[0]); | |
yTmp = pt1[1] - xTmp*pt1[0]; | |
pt1[0] = xTmp; | |
pt1[1] = yTmp; | |
return pt1; | |
} |
This file contains 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 | |
PREREQ="dropbear" | |
prereqs() { | |
echo "$PREREQ" | |
} | |
case "$1" in | |
prereqs) |
NewerOlder