Skip to content

Instantly share code, notes, and snippets.

@razarahil
razarahil / 0_reuse_code.js
Created December 8, 2013 04:57
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@razarahil
razarahil / ScaleFadePageTransformer.java
Created December 10, 2012 18:18 — forked from jgilfelt/ScaleFadePageTransformer.java
An ICS+ app/widget drawer style PageTransformer for your ViewPager
/***
* Copyright (c) 2012 readyState Software Ltd
*
* 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
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@razarahil
razarahil / MainActivity.java
Created June 25, 2012 15:45 — forked from romannurik/SwipeDismissListViewTouchListener.java
**BETA** Android 4.0-style "Swipe to Dismiss" sample code
// THIS IS A BETA! I DON'T RECOMMEND USING IT IN PRODUCTION CODE JUST YET
/*
* Copyright 2012 Roman Nurik
*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
@razarahil
razarahil / class.C2DMParallel.php
Created June 3, 2012 20:31 — forked from mhlipson/class.C2DMParallel.php
Call C2DM in parallel using PHP
<?php
/*
class.C2DMParallel.php
PHP Class to send single messages to multiple devices
using Google's C2DM service.
*/
class C2DMParallel{