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
https://developers.google.com/events/io/sessions/326148829 | |
https://developers.google.com/events/io/2012/sessions/gooio2012/106/ | |
https://developers.google.com/events/io/2012/sessions/gooio2012/131/ | |
https://developers.google.com/events/io/2012/sessions/gooio2012/114/ | |
https://developers.google.com/events/io/2012/sessions/gooio2012/122/ | |
https://developers.google.com/events/io/2012/sessions/gooio2012/103/ | |
https://developers.google.com/events/io/2012/sessions/gooio2012/107/ | |
https://developers.google.com/events/io/2012/sessions/gooio2012/102/ | |
https://developers.google.com/events/io/sessions/326425499 | |
https://sites.google.com/site/io/dalvik-vm-internals |
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
#!/bin/bash | |
# Argument = -h -v -i groupId:artifactId:version -c classifier -p packaging -r repository | |
#shopt -o -s xtrace | |
# Define Nexus Configuration | |
NEXUS_BASE=http://repository.example.com:8081/nexus | |
REST_PATH=/service/local | |
ART_REDIR=/artifact/maven/redirect |
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
class Box<A> { | |
public let value: A | |
init(_ value: A) { self.value = value } | |
} | |
enum Result<A> { | |
case Success(Box<A>) | |
case Failure(NSError) | |
} |
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
private class Poller<ResultType, ErrorType: JiveError, ErrorCodeType where ErrorType.CodeType == ErrorCodeType> { | |
private let retryInterval: NSTimeInterval | |
private let timeoutErrorCode: ErrorCodeType | |
private let expectation: XCTestExpectation | |
private var state: PollerState<ResultType, ErrorType> | |
init( | |
createJiveFuture: () -> JiveFuture<ResultType, ErrorType>, | |
acceptJiveResult: (JiveResult<ResultType, ErrorType>) -> JiveResult<ResultType, ErrorType>?, | |
retryInterval: NSTimeInterval, |
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
enum Foo { | |
// enums can have many values, and they can be labeled | |
case Bar( | |
barString: String, | |
barInt: Int) | |
// or unlabeled | |
case Baz( | |
String, | |
Int) | |
} |
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
:start | |
duplicate | |
not | |
goto done | |
push 1 | |
add | |
duplicate | |
push 2 | |
subtract | |
push 3 -1 |
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
- (void) setSelectedViewController:(UIViewController<SFCustomTabbedViewController> *)selectedViewController { | |
if (_selectedViewController != selectedViewController) { | |
if (_selectedViewController) { | |
NSUInteger selectedViewControllerIndex = [self.viewControllers indexOfObject:_selectedViewController]; | |
if (selectedViewControllerIndex != NSNotFound) { | |
UIButton *tabButton = [self.tabButtons objectAtIndex:selectedViewControllerIndex]; | |
tabButton.selected = NO; | |
} | |
[_selectedViewController willMoveToParentViewController:nil]; |
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
// if we submit more than one div with a class of "jive-rendered-context", only the first div is accepted | |
innerHTMLContent = innerHTMLContent.replace(/(<div class="jive-rendered-content">)/ig,"<div>"); |
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
public static final int BUTTON_MASK; | |
public static final int MODIFIER_MASK; | |
static { | |
/* | |
* These values represent bit masks that may need to | |
* expand in the future. Therefore they are not initialized | |
* in the declaration to stop the compiler from inlining. | |
*/ | |
BUTTON_MASK = BUTTON1 | BUTTON2 | BUTTON3 | BUTTON4 | BUTTON5; |
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
/* | |
* Plug-ins need an opportunity to set the org.eclipse.swt.browser.DefaultType | |
* system property before the first Browser is created. To facilitate this, | |
* reflection is used to reference non-existent class | |
* org.eclipse.swt.browser.BrowserInitializer the first time a Browser is created. | |
* A client wishing to use this hook can do so by creating a fragment of | |
* org.eclipse.swt that implements this class and sets the system property in its | |
* static initializer. | |
*/ | |
try { |
OlderNewer