Edward Snowden answered questioned after a showing of CITIZENFOUR at the IETF93 meeting; this is a transcript of the video recording.
For more information, see the Internet Society article.
| package main | |
| import ( | |
| "fmt" | |
| "time" | |
| ) | |
| import "math/rand" | |
| func main() { | |
| interactiveGame() |
| import Foundation | |
| import UIKit | |
| extension UIViewController { | |
| /// Whether the view is currently displayed in modal style. | |
| var isModal: Bool { | |
| return self.presentingViewController?.presentedViewController == self | |
| || self.navigationController?.presentingViewController?.presentedViewController == self.navigationController | |
| || self.tabBarController?.presentingViewController?.isKindOfClass(UITabBarController) == true |
| // ... | |
| override func viewDidLoad() | |
| { | |
| super.viewDidLoad() | |
| // Thanks http://stackoverflow.com/a/27665207 | |
| NSNotificationCenter.defaultCenter().addObserverForName( | |
| UIKeyboardWillChangeFrameNotification, | |
| object: nil, |
| // Usage: | |
| // var a = new LinkedSortedIntStack(1, 2, 5); | |
| // a.push(4, 3); | |
| // a.getStackAsArray(); | |
| // a.getSortedListAsArray(); | |
| var LinkedSortedIntStack = function() { | |
| this.nodeCount = 0; | |
| // Push all arguments (varargs-style) |
Edward Snowden answered questioned after a showing of CITIZENFOUR at the IETF93 meeting; this is a transcript of the video recording.
For more information, see the Internet Society article.
| /** | |
| * You shouldn't call this method anymore. | |
| * | |
| * Don't forget to add a clarifying javadoc field for the programmer: | |
| * | |
| * @deprecated Use {@link #new()} instead. | |
| */ | |
| @Deprecated | |
| public void old() { | |
| // ... |
| package main | |
| import ( | |
| "bytes" | |
| "fmt" | |
| "sort" | |
| ) | |
| func main() { |
| $(function() { | |
| var footnotes = {}; | |
| // Gather footnotes. | |
| var footnotePattern = /^\*(\w+):/; | |
| $("p, .footnote").not(".footnote p, p .footnote").each(function() { | |
| var match = footnotePattern.exec($(this).text()); | |
| if (match && match.length) { | |
| footnotes[match[1]] = $(this); | |
| } | |
| }); |
| /* =========================================================================== */ | |
| // 75 ='s followed by title/subject of section. | |
| /* ================================================== */ | |
| // 50 ='s followed by title/subject of section. | |
| /* | |
| |-------------------------------------------------------------------------- | |
| | Title | |
| |-------------------------------------------------------------------------- |
| package main | |
| import "fmt" | |
| type element struct { | |
| count int | |
| } | |
| var samples = [][]int{ | |
| {1, 2, 3, 4, 5, 6, 7, 8, 9}, |