Skip to content

Instantly share code, notes, and snippets.

View eleventigers's full-sized avatar

Jokubas Dargis eleventigers

View GitHub Profile
eleventigers /
Created March 14, 2014 10:34
GLTextureView from GLSurfaceView
import java.lang.ref.WeakReference;
import java.util.ArrayList;
import javax.microedition.khronos.egl.EGL10;
import javax.microedition.khronos.egl.EGL11;
import javax.microedition.khronos.egl.EGLConfig;
import javax.microedition.khronos.egl.EGLContext;
import javax.microedition.khronos.egl.EGLDisplay;
import javax.microedition.khronos.egl.EGLSurface;
import javax.microedition.khronos.opengles.GL;
def getPlatformNdkBuildCommand() {
def rootDir = project.rootDir
def localProperties = new File(rootDir, "")
if (localProperties.exists()) {
Properties properties = new Properties()
localProperties.withInputStream {
instr -> properties.load(instr)

Keybase proof

I hereby claim:

  • I am eleventigers on github.
  • I am eleventigers ( on keybase.
  • I have a public key whose fingerprint is FFE9 5F15 CED4 443E C163 B08D 4D52 DD4A E48A 728E

To claim this, I am signing this object:

eleventigers / gist:8428111
Last active January 3, 2016 07:18
Found on HN

Note to a PSD web designer

First, PSD's that assume text length. For example, if you have three call-out boxes with a title and some text to follow, don't assume that the title will always be one line and the text will always be the same length. Instead, figure out what this will all look like when you do have very uneven amounts of text. Do we center it vertically? Do we abbreviate it?

Second, PSD's that don't assume a responsive design. Sure, working directly in the medium (HTML/CSS) would solve this, but you can still provide some direction here. Tell me how the columns should be laid out. Which parts of the site should expand/collapse with size, which parts can be hidden, etc.

Third, and this goes without saying, but clean up the PSD layer names and groupings. Layer 1, Layer 2, etc. is not a great convention for this.

Fourth, show me the unusual cases. I know the clients always want to focus on the prominent pages, like the home page, the product listing, etc. Those are impo

(function() {
var SECTION = "date";
var NOW = "now";
Playtomic.Date = {
now: function(callback) {
sendAPIRequest(SECTION, NOW, dateComplete, callback);
eleventigers / build.gradle
Created October 24, 2015 13:44
Gradle: suppress SNAPSHOT dependencies caching
configurations.all {
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
eleventigers / build.gradle
Created December 16, 2015 10:30
Configures all JUnit (or TestNG) test tasks to write message to console whenever "test failed" / "test passed" / "test skipped" events occur.
tasks.matching {it instanceof Test}.all { = ["failed", "passed", "skipped"]
# Convert ANSI (terminal) colours and attributes to HTML
# Licence: LGPLv2
# Author:
# Examples:
# ls -l --color=always | > ls.html
# git show --color | > last_change.html
Copyright (c) 2014 CommonsWare, LLC
Licensed under the Apache License, Version 2.0 (the "License"); you may not
use this file except in compliance with the License. You may obtain a copy
of the License at Unless required
by applicable law or agreed to in writing, software distributed under the
OF ANY KIND, either express or implied. See the License for the specific
language governing permissions and limitations under the License.