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:
| String apiKey = BuildConfig.API_KEY |
| import android.graphics.Bitmap; | |
| import android.media.MediaMetadataRetriever; | |
| import com.squareup.picasso.Picasso; | |
| import com.squareup.picasso.Request; | |
| import com.squareup.picasso.RequestHandler; | |
| import java.io.IOException; | |
| ///********************** | |
| /// Project build.gradle | |
| ///********************** | |
| buildscript { | |
| repositories { | |
| maven { url "https://github.com/layerhq/releases-gradle/raw/master/releases" } | |
| mavenCentral() | |
| jcenter() | |
| } |
| 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; |
| @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. | |
| */ |
| # | |
| # 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. | |
| # |
| 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): |
| #!/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 | |
| # |