Skip to content

Instantly share code, notes, and snippets.

@media only screen and (min-width: 320px) {
/* Small screen, non-retina */
}
@media
only screen and (-webkit-min-device-pixel-ratio: 2) and (min-width: 320px),
only screen and ( min--moz-device-pixel-ratio: 2) and (min-width: 320px),
only screen and ( -o-min-device-pixel-ratio: 2/1) and (min-width: 320px),
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Titanium Compiler plugin
# __PROJECT_ID__
#
import os, sys, subprocess, codecs, hashlib
try:
@themattharris
themattharris / nvvotecount.php
Created February 5, 2012 01:02
How @themattharris is following @nvvotecount
<?php
/**
* This script relies on tmhOAuth, which can be downloaded here:
* https://github.com/themattharris/tmhOAuth
*
* Instructions:
* 1) If you don't have one already, create a Twitter application on
* https://dev.twitter.com/apps
* 2) From the application details page copy the consumer key and consumer
<?xml version="1.0" encoding="utf-8"?>
<TabHost xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/tabhost"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<LinearLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
@nathansmith
nathansmith / parseint.js
Created June 15, 2011 15:52
Makes parseInt default to radix of 10.
// Protect against parseInt being used
// without radix, by defaulting to 10.
// Conditionally check value, in case
// future implementations of parseInt
// provide native base-10 by default.
(function(window) {
var _parseInt = window.parseInt;