- Walk This Way (Aerosmith) https://www.youtube.com/watch?v=pL4uESRCnv8
- Eat The Rich (Aerosmith) https://www.youtube.com/watch?v=o-0lAhnoDlU
- Slash's Snakepit - Been There Lately (Aint Life Grand) https://www.youtube.com/watch?v=WrNkxy9e2Sg
- Slash's Snakepit - Shine (Ain't Life Grand) https://www.youtube.com/watch?v=INkE4k4cIJ0
- Slash - "30 Years to Life" https://www.youtube.com/watch?v=J4ySsES7hyA
- Guns N' Roses Rocket Queen https://www.youtube.com/watch?v=ICCrzU65iOw
- Staring At The Sun - Rooster https://www.youtube.com/watch?v=SgPwy4--Tw8
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 UIKit | |
| import ReactiveSwift | |
| import Result | |
| import ReactiveCocoa | |
| class TestVC: UIViewController { | |
| @IBOutlet weak var emailTextField : UITextField! | |
| @IBOutlet weak var nameTextField : UITextField! | |
| @IBOutlet weak var passTextField : UITextField! |
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
| class ViewController: UIViewController { | |
| override func viewDidLoad() { | |
| super.viewDidLoad() | |
| let urlstring = "http://jsonplaceholder.typicode.com/posts" | |
| Alamofire.request(urlstring).responseJSON { (data) in | |
| let results = Mapper<Post>().mapArray(JSONObject: data.result.value) | |
| for post in results! { | |
| print(post.id) |
- Download Go: https://golang.org/dl/
- Create a
gofolder in local machine, in this case~/go
Note: all the go code should be inside this
gofolder
- Set your GOPATH
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
| # Setup Git | |
| git config --global alias.la '!git config -l | grep alias | cut -c 7-' | |
| git config --global alias.br 'branch -vv' | |
| git config --global alias.brd 'branch -D' | |
| git config --global alias.cm 'commit -m' | |
| git config --global alias.co 'checkout' | |
| git config --global alias.coo 'checkout -' | |
| git config --global alias.cob 'checkout -b' | |
| git config --global alias.st 'status' | |
| git config --global alias.pr 'pull --rebase upstream develop' |
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
| func panGestureAction(_ panGesture: UIPanGestureRecognizer) { | |
| let translation = panGesture.translation(in: view) | |
| if panGesture.state == .began { | |
| originalPosition = view.center | |
| originalPositionNC = navigationController?.navigationBar.center | |
| currentPositionTouched = panGesture.location(in: view) | |
| } else if panGesture.state == .changed { | |
| if (translation.y > 0){ | |
| view.frame.origin = CGPoint( |
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
| enum Route { | |
| case modal | |
| case tab(TabBarViewController.Tab) | |
| init?(url: URL) { | |
| switch url.absoluteString { | |
| case "\(scheme)://tab1": self = .tab(.tab1) | |
| case "\(scheme)://tab2": self = .tab(.tab2) | |
| case "\(scheme)://modal": self = .modal | |
| default: return nil |
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
| const https = require('https'); | |
| https.get('https://jsonplaceholder.typicode.com/posts/1', (resp) => { | |
| let data = ''; | |
| resp.on('data', (chunk) => { | |
| data += chunk; | |
| }); | |
| resp.on('end', () => { | |
| console.log(data) | |
| }); | |
| }).on("error", (err) => { |
Every week we will have an
easyleet code question, posted on every friday. and on the same day we will share the code for the previous challenage :)
Weekly Leet Code 771. Jewels and Stones
OlderNewer