Jump to content

User:Rehty77/sandbox

From Wikipedia, the free encyclopedia

Mass development beginning in the Technical Infrastructure of TaxiDroid[edit]

From: Owen Bailey-Waltz <owenbaileywaltz@yahoo.com>

Subject: TaxiDroid Completion Algorithm Date: May 26, 2012 11:41:55 AM GMT+08:00 To: Stephen Bailey <steph@cs.uchicago.edu>

Hi there,

I was wondering about the plan for TaxiDroid, and I wanted to make sure you 同意'd to it. Here's the layout of it so you can put it on your PC in a Sticky.

The app should include:

A card interface to show the taxi driver: On this interface there should be

• The words 'Hello, I'm going to' in English and in Chinese

• The English name in a small font

• The Chinese name in a big font

• The address: the street name, a near street, the district, the side of the Huangpu River, and a lane number

A search interface to find cards:

On this interface there should be

• A table showing the cards the search result falls under

• Categories for browsing

• A search bar in the top corner

• A scroll bar

AND

An editing/viewing UI to edit/view cards:

This should include

• All the information on the card interface PLUS

• The English name of the district

• The English address AND

• The English name of the side of the Huangpu (Select box)

Cheers!

CEO Owen

(By the way, do you know how to fix our Balsamiq problem of being locked out?)


TaxiDroid is about to go under mass development, and things can be unusual in this case. I feel that it will be an interesting application for the OCS corporation and helpful to the technological department as they will all get their fair share. (Just so you know, TaxiDroid is a non-profit application to be released on the Play Store, and will not be a paid app. What I said is a figure of speech. It will **ALSO** be open source, and the code will be released on GitHub.)

How the project started[edit]

The TaxiDroid Project started as an idea and grew into a mockup which will soon grow into an app for Android platforms. My colleague bought a new MyTouch, and he's not very acute with Mandarin. He used to have an 3GS with a HoodHot Shanghai Taxi guide app on it, but on the day he wanted it badly, he said this:

This doesn't have a taxicard! 没有taxicard!

This told me he wanted it badly, so we started out with a mockup and practiced with a few mini apps, but we just happened to leave it hanging like that!

A few 21st Century Flops[edit]

Do you know of the Beach Boys and the All Summer Long volume? There was a "favorite recording session" where they fooled around, said some random things, and made a few singing flubs in the process. Well, we at the OCS Stroller Line have decided to make an album of flubbed recording sessions called 21st Century Flops.

Side 1[edit]

(Side 1 recordings)

Side 2[edit]

(Side 2 recordings)

Minecraft[edit]

This is still a stub.

Pro Code![edit]

package net.kevin;
import java.util.Scanner;
public class KevinsConsole{
    public static void main(String[] args){
	Scanner in = new Scanner(System.in);
	System.out.println("What do you want to print?");
	String out = in.nextLine();
	System.out.println("How many times do you want to print it?");
	int count = Integer.parseInt(in.nextLine());
	for(int i = 1; i<= count; i++){
	   System.out. println(out);
	}
    }
}

This source code is from KevinsConsole(R).

{-
 -Once you've installed Haskell from http://www.haskell.org/platform/, load the interpreter with the command ghci.
 -
 -You can load (and reload) this file in the interpreter with the command: ":l 2-starting-out.hs"
 -
 -The first function has been completed as an example. All the other functions are undefined.
 -They can be implemented in one line using the material covered in http://learnyouahaskell.com/starting-out
 -
 -All indices are zero based.
 -}

-- Find the penultimate element in list l
penultimate l = last (init l)

-- Find the element at index k in list l
-- For example: "findK 2 [0,0,1,0,0,0]" returns 1
findK k l = l !! k -- Indeces start @ 0

-- Determine if list l is a palindrome
isPalindrome l = l == (reverse l)

{-
 - Duplicate the elements in list xs, for example "duplicate [1,2,3]" would give the list [1,1,2,2,3,3]
 - Hint: The "concat [l]" function flattens a list of lists into a single list. 
 - (You can see the function definition by typing ":t concat" into the interpreter. Perhaps try this with other variables and functions)
 -
 - For example: concat [[1,2,3],[3,4,5]] returns [1,2,3,3,4,5]
 -}
duplicate xs = concat [[x, x] | x <- xs]

{-
 - Imitate the functinality of zip
 - The function "min x y" returns the lower of values x and y
 - For example "ziplike [1,2,3] ['a', 'b', 'c', 'd']" returns [(1,'a'), (2, 'b'), (3, 'c')]
 -}
ziplike xs ys = zip xs ys

-- Split a list l at element k into a tuple: The first part up to and including k, the second part after k
-- For example "splitAtIndex 3 [1,1,1,2,2,2]" returns ([1,1,1],[2,2,2])
splitAtIndex k l = (take k l, drop k l)
-- Drop the element at index k in list l
-- For example "dropK 3 [0,0,0,1,0,0,0]" returns [0,0,0,0,0,0]
dropK k l = take k l ++ drop (k + 1) l

-- Extract elements between ith and kth element in list l. Including i, but not k
-- For example, "slice 3 6 [0,0,0,1,2,3,0,0,0]" returns [1,2,3]
slice i k l = drop i (take k l)

-- Insert element x in list l at index k
-- For example, "insertElem 2 5 [0,0,0,0,0,0]" returns [0,0,0,0,0,2,0]
insertElem x k l = take k l ++ (x : (drop k l))

-- Rotate list l n places left.
-- For example, "rotate 2 [1,2,3,4,5]" gives [3,4,5,1,2]
rotate n l = drop n l ++ take n l

What's more, it actually works!

$ chsh -s /bin/zsh && exec /bin/zsh

NHAAFL Bracket Test[edit]

Western Wild Card[edit]

Western Wild Card Game #1
   
3 Griffins 31
4 Timberwolves 30
Western Wild Card Game #2
   
1 Gators 41
6 Vaqueros 0
Western Wild Card Game #3
   
2 Sea Kings 10
5 Vikings 9

Eastern Wild Card[edit]

Eastern Wild Card Game #1
   
3 Cougars 21
4 Bearcats 14
Eastern Wild Card Game #2
   
1 Fighting Bostonians 17
6 Sounders 20
Eastern Wild Card Game #3
   
2 Owls 43
5 Bulldogs 41

Main Postseason[edit]

Divisional Round Interdivisional Round Conference Championship NHAAFL Championship Game
            
1 Warriors 31
5 Titans 18
1 Warriors 34
2 Orioles 27
2 Orioles 50
4 Conquistadors 17
1 Warriors 37
Western Conference
7 Sea Kings 31
3 Grizzlies 21
8 Griffins 24
8 Griffins 16
7 Sea Kings 23
6 Gators 14
7 Sea Kings 20
W1 Warriors 28
E1 Hilltoppers 24
2 Patriots 26
3 Jets 20
2 Patriots 27
4 Rockets 20
5 Saints 29
4 Rockets 31
2 Patriots 17
Eastern Conference
1 Hilltoppers 23
1 Hilltoppers 43
8 Cougars 14
1 Hilltoppers 26
7 Owls 20
6 Sounders 17
7 Owls 43

ISAF Results[edit]

Cedar Lake Match Racing Bracket Sim[edit]

Sweet Sixteen Elite Eight Final Four Championship
            
42 Vaupel
86 Bailey-Waltz
86 Bailey-Waltz
17 Vollmar
4 Thoma
17 Vollmar
17 Vollmar
15 Kent
12 Spitz
136 Eckert
136 Eckert
15 Kent
15 Kent
88 M. Bailey-Waltz
17 Vollmar
25 Jaessing
25 Jaessing
32 Hafner
25 Jaessing
5 Shabino
5 Shabino
9 King
25 Jaessing
14 L. Vollmar
14 L. Vollmar
13 C. Eckert
14 L. Vollmar
11 Rolfs
11 Rolfs
3 Kirk

WYA Regular Season Results (Cedar Lake Storyline)[edit]

Team Cedar Final Roster[edit]

WYA Chase for the Cup[edit]

The Sixteen Best Quarterfinals Final Four WYA Finals
            
1 [A-86] R. Kent W
16 [A-13] C. Eckert L
1 [A-86] R. Kent W
8 [B-7] Schmidt L
8 [B-7] Schmidt W
9 [J-60] Weston L
1 [A-86] R. Kent 2
4 [A-136] Eckert 1
4 [A-136] Eckert W
13 [B-3] Komas L
4 [A-136] Eckert W
5 [V-10] Schweda L
5 [V-10] Schweda W
12 [X-2] Zaizer L
1 [A-86] R. Kent 3
2 [A-17] Hansen 2
3 [B-66] Barr L
14 [H-12] Brady W
14 [H-12] Brady W
6 [V-86] Malone L
6 [V-86] Malone W
11 [X-88] Rolfs L
14 [H-12] Brady 0
2 [A-17] Hansen 2
7 [J-2] J. Scherer L
10 [J-11] E. Scherer W
10 [J-11] E. Scherer L
2 [A-17] Hansen W
2 [A-17] Hansen W
15 [A-15] C. Kent L

Cedar Lake College Football Playoff[edit]

Semifinals 2020 Championship Game
December 31st @ 5:00 EDT - Fiesta Bowl
  1   Stanford 0  
  4   Auburn 0   January 13th - Mercedes-Benz Superdome
 
      1   team1 0
December 31st @ 8:00 EDT - Peach Bowl     2   team2 0
 
  2   Alabama 0
  3   Michigan State 0  

FIFA Playoffs[edit]

For all rounds except the final, the scores are in games won, as the first two rounds are best-of-seven series. The final, however, is a single game.

Confederation Series Conference Championship Series FIFA Final
         
1 Real Madrid 3
WC F.C. Barcelona 4
4 F.C. Barcelona 4
Eurasian Football Conference
2 TP Mazembe 0
2 TP Mazembe 4
3 Guangzhou Evergrande 0
E F.C. Barcelona [OT] 3
I Seattle Sounders 2
1 São Paulo 0
WC Seattle Sounders 4
4 Seattle Sounders 4
International Football Conference
3 América 2
2 América 4
3 Auckland City 2

Premier League[edit]

Quarterfinals Semifinals Final
         
1  
4  
 
 
2  
3  
 
 
1  
4  
 
 
2  
3  

National Hockey League 2017-18 Playoffs Predictions (as of way-too-early -- i.e. the end of the Expansion Draft)[edit]

Scenario 1: Ray Kent's Picks[edit]

First round Quarter-finals Semi-finals Final
            
1 Canadiens 4
16 Lightning 2
A1 Canadiens 2
A2 Bruins 4
8 Bruins 4
9 Maple Leafs 3
A2 Bruins 0
M1 Penguins 4
5 Penguins 4
12 Senators 1
M1 Penguins 4
M3 Rangers 1
4 Capitals 3
13 Rangers 4
M1 Penguins 2
P1 Ducks 4
6 Blackhawks 4
11 Flames 2
C1 Blackhawks 4
C2 Predators 2
3 Predators 4
14 Wild 0
C1 Blackhawks 3
P1 Ducks 4
7 Ducks 4
10 Sharks 2
P1 Ducks 4
P2 Oilers 3
2 Oilers 4
15 Kings 3
Legend
  • A1, A2, A3 – The first, second, and third place teams from the Atlantic Division, respectively
  • M1, M2, M3 – The first, second, and third place teams from the Metropolitan Division, respectively
  • C1, C2, C3 – The first, second, and third place teams from the Central Division, respectively
  • P1, P2, P3 – The first, second, and third place teams from the Pacific Division, respectively
  • WC – Wild Card teams

Scenario 2: Charlie Eckert's Picks[edit]

First round Quarter-finals Semi-finals Final
            
1 Canadiens 4
16 Lightning 2
A1 Canadiens 2
A2 Bruins 4
8 Bruins 4
9 Maple Leafs 3
A2 Bruins 0
M1 Penguins 4
5 Penguins 4
12 Senators 1
M1 Penguins 4
M3 Rangers 1
4 Capitals 3
13 Rangers 4
M1 Penguins 3
C1 Blackhawks 4
6 Blackhawks 4
11 Flames 2
C1 Blackhawks 4
C2 Predators 2
3 Predators 4
14 Wild 0
C1 Blackhawks 4
P2 Oilers 3
7 Ducks 4
10 Sharks 2
P1 Ducks 2
P2 Oilers 4
2 Oilers 4
15 Kings 3
Legend
  • A1, A2, A3 – The first, second, and third place teams from the Atlantic Division, respectively
  • M1, M2, M3 – The first, second, and third place teams from the Metropolitan Division, respectively
  • C1, C2, C3 – The first, second, and third place teams from the Central Division, respectively
  • P1, P2, P3 – The first, second, and third place teams from the Pacific Division, respectively
  • WC – Wild Card teams