Skip to content

Instantly share code, notes, and snippets.

View rahulgautam's full-sized avatar

Rahul Gautam rahulgautam

View GitHub Profile
#########################
# .gitignore file for Xcode4 / OS X Source projects
#
# Version 2.0
# For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects
#
# 2013 updates:
# - fixed the broken "save personal Schemes"
#
# NB: if you are storing "built" products, this WILL NOT WORK,
#!/bin/bash
# Downloads and install a .dmg from a URL
#
# Usage
# $ dmginstall [url]
#
# For example, for installing alfred.app
# $ dmginstall http://cachefly.alfredapp.com/alfred_1.3.1_261.dmg
#
from tastypie import fields
from tastypie.authentication import Authentication
from tastypie.authorization import Authorization
from tastypie.bundle import Bundle
from tastypie.exceptions import NotFound
from tastypie.resources import Resource
# a dummy class representing a row of data
class Row(object):

Setup

git clone <repo>

clone the repository specified by ; this is similar to "checkout" in some other version control systems such as Subversion and CVS

Add colors to your ~/.gitconfig file:

%%%
%%% ejabberd configuration file
%%%
%%% The parameters used in this configuration file are explained in more detail
%%% in the ejabberd Installation and Operation Guide.
%%% Please consult the Guide in case of doubts, it is included in
%%% your copy of ejabberd, and is also available online at
%%% http://www.process-one.net/en/ejabberd/docs/
{loglevel, 5}.
%%% ================
%%% SERVED HOSTNAMES
{hosts, ["127.0.0.1"]}.
#
# Varnish VCL file for Ghost blogging platform.
# http://ghost.org/
#
# Written for Ghost v0.3.0.
#
# This is a low-hanging-fruit type of VCL. TTL of objects are overridden to 2
# minutes, and everything below /ghost/ is pass()-ed so the user sessions
# work.
#
@protocol LYRClientDelegate <NSObject>
@optional
/**
@abstract Called when client status changes.
@param client The client calling the delegate method.
@param status The new status of the client.
@param error An `NSError` object that contains error information in case the action was not successful.
*/
package com.layer.sample.adapters;
import android.database.DataSetObserver;
import android.net.Uri;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Adapter;
import com.layer.sdk.LayerChange;
import com.layer.sdk.LayerChangeEvent;
///**********************
/// Project build.gradle
///**********************
buildscript {
repositories {
maven { url "https://github.com/layerhq/releases-gradle/raw/master/releases" }
mavenCentral()
jcenter()
}