Skip to content

Instantly share code, notes, and snippets.

View esteluk's full-sized avatar
🏠
Working from home

Nathan Wong esteluk

🏠
Working from home
View GitHub Profile
public class DownloadPicker extends PreferenceActivity {
DatabaseHelper locationData;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
PreferenceScreen root = getPreferenceManager().createPreferenceScreen(this);
root.setTitle("Choose clock packs");
@esteluk
esteluk / ModifiedScrollView.java
Created August 5, 2011 17:36
Scrollview allowing for a fixed lower background that can be interacted with
package com.gravitywell.examples;
import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.widget.ScrollView;
/**
* This class is used on the about screen when we have a background layer that
* requires interaction but a scrollview above it that can slide to cover this
@esteluk
esteluk / layout.xml
Created August 5, 2011 17:42
Example XML file using ModifiedScrollView
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<RelativeLayout android:id="@+id/topLayout"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView android:id="@+id/backgroundImage"
android:layout_width="match_parent"
android:layout_height="match_parent"
@esteluk
esteluk / filters.svg
Created May 14, 2012 00:51
Greyscale layer for an image
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@esteluk
esteluk / styles.css
Created May 14, 2012 00:55
CSS Styles for greyscale image hover
.image {
filter: url(filters.svg#grayscale); /* Firefox 3.5+ */
filter: gray; /* IE6-9 */
-webkit-filter: grayscale(1); /* Webkit Nightlies & Google Chrome Canary */
}
.image:hover {
filter: none; /* Applies to FF + IE */
-webkit-filter: grayscale(0);
}

Contract Killer

The popular open-source contract for web designers and developers by Stuff & Nonsense

  • Originally published: 23/12/2008
  • Revised date: 15/12/2013
  • Original post

### Keybase proof
I hereby claim:
* I am esteluk on github.
* I am nathanbb (https://keybase.io/nathanbb) on keybase.
* I have a public key ASD_2YRJ2bJ2KitLqC8mM84kiplCEGjOpd-zqxMDoZ0Chgo
To claim this, I am signing this object: