Skip to content

Instantly share code, notes, and snippets.

View Contract Killer 3.md

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

@esteluk
esteluk / styles.css
Created May 14, 2012
CSS Styles for greyscale image hover
View styles.css
.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);
}
@esteluk
esteluk / filters.svg
Created May 14, 2012
Greyscale layer for an image
View filters.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@esteluk
esteluk / layout.xml
Created Aug 5, 2011
Example XML file using ModifiedScrollView
View layout.xml
<?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 / ModifiedScrollView.java
Created Aug 5, 2011
Scrollview allowing for a fixed lower background that can be interacted with
View ModifiedScrollView.java
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
View gist:740773
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");
You can’t perform that action at this time.