Skip to content

Instantly share code, notes, and snippets.

View TealOcean's full-sized avatar

Tony Dieppa TealOcean

  • Blank Canvas LLC
  • US, Remote
View GitHub Profile
@TealOcean
TealOcean / Solution.java
Last active December 10, 2017 03:57
2 Sum Solution
public class Solution {
public int[] twoSum(int[] nums, int target) {
int[] indexes = new int[]{-1, -1};
Map<Integer, List<Integer>> contents = new HashMap<>();
/*
Let's record where we find a value in the map.
This safe guards if a value appears twice.
*/
for(int i = 0; i < nums.length; i++) {
VideoPlayerView#customizedStatusCallback paused site-0.0.8.js:1
AppModel#onVideoStateChange - state: playing site-0.0.8.js:1
VideoPlayerView#onVideoStateChange playing site-0.0.8.js:1
VideoPlayerView#customizedStatusCallback playing site-0.0.8.js:1
VideoPlayerView#onPlaying site-0.0.8.js:1
[ 47.703s] [goog.net.WebSocket] The WebSocket on ws://localhost:8008/v2/ipc closed. cast_receiver.js:18
[ 47.731s] [goog.net.WebSocket] The WebSocket disconnected unexpectedly: undefined cast_receiver.js:18
[ 47.734s] [goog.net.WebSocket] Seconds until next reconnect attempt: 1 cast_receiver.js:18
VideoPlayerView#customizedStatusCallback playing site-0.0.8.js:1
Uncaught AssertionError: Assertion failed: Cannot send without an open socket cast_receiver.js:7
@TealOcean
TealOcean / build.gradle
Created February 16, 2014 04:43
Android Annotations Gradle Sample
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:+'
classpath 'com.neenbedankt.gradle.plugins:android-apt:+'
}
}
apply plugin: 'android'