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
package com.example.locationfromaddress; | |
import androidx.appcompat.app.AppCompatActivity; | |
import android.content.Context; | |
import android.location.Address; | |
import android.location.Geocoder; | |
import android.os.Bundle; | |
import android.util.Pair; | |
import android.view.View; |
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 turtle | |
import random | |
class LSystem: | |
def __init__(self, start, theta, depth): | |
self.start = start | |
self.theta = theta | |
self.depth = depth | |
self.rules = {} |
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
#lang sketching | |
(require racket/list) | |
(class Player Object | |
(init-field x y x-vel y-vel attached) | |
(super-new) | |
;direction is whether we're rotating clockwise or anti clockwise around the ball. | |
;either -1 or 1 | |
(define-values (direction) (values 1)) |
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
from collections import defaultdict | |
from random import shuffle | |
def compare(a, b): | |
return (a, b) if a > b else (b, a) | |
def second_largest(nums): |