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
/\/show$/.test(document.location.href)&&Array.prototype.map.call(document.querySelectorAll(".deadmark + a"),function(e){e.innerHTML=e.innerHTML.replace("Show HN: ","")}); |
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 UIKit | |
class ViewController: UIViewController { | |
var imageView: UIImageView? | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
let screenSize: CGRect = UIScreen.mainScreen().bounds |
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 UIKit | |
class ViewController: UIViewController { | |
var imageView: UIImageView? | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
let screenSize: CGRect = UIScreen.mainScreen().bounds |
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 UIKit | |
class ViewController: UIViewController { | |
var imageView: UIImageView? | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
let screenSize: CGRect = UIScreen.mainScreen().bounds |
I hereby claim:
- I am xyclos on github.
- I am xyclos (https://keybase.io/xyclos) on keybase.
- I have a public key ASBVnx2R0fi4NR-xfNbXCVNAGwUVk888uJS0yZQmxVfo6Qo
To claim this, I am signing this object:
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
function max(a: number, b: number): number | |
function copyFile(to: string, from: string) |
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
copyFile('/tmp/backup', 'presentation.md') | |
copyFile('presentation.md', '/tmp/backup') |
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
interface String { | |
copyTo(dest: string) : void | |
} | |
String.prototype.copyTo = function (dest: string) { | |
return copyFrom(dest, this.valueOf()) | |
} | |
export { String as Source } |
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
interface String { | |
copyTo(dest: string) : void | |
} | |
class Source extends String implements String { | |
copyTo(dest: string) { | |
return copyFile(dest, this.valueOf()) | |
} | |
} |
OlderNewer