Skip to content

Instantly share code, notes, and snippets.

@riley-dog
riley-dog / build.gradle
Last active March 7, 2020 15:01
Adding google api to build.gradle file in android studio
// After reading this shit
//http://www.gradle.org/docs/1.9/userguide/userguide_single.html#N10565
// And some of this shit
// https://code.google.com/p/google-http-java-client/wiki/Setup
// And of course guessing what the dependency package is named
// I was able to use Gradle and see its awesomeness after adding my dependenices to build.gradle in Android Studio
compile('com.google.api-client:google-api-client-android:1.17.0-rc') {
@riley-dog
riley-dog / token_authenticatable.rb
Created December 10, 2013 03:46
Devise 2.2.3 token_authenticatable.rb
require 'devise/strategies/token_authenticatable'
module Devise
module Models
# The TokenAuthenticatable module is responsible for generating an authentication token and
# validating the authenticity of the same while signing in.
#
# This module only provides a few helpers to help you manage the token, but it is up to you
# to choose how to use it. For example, if you want to have a new token every time the user
# saves his account, you can do the following:
@riley-dog
riley-dog / State.h
Created November 2, 2013 01:43
States in NSArray using Objective-C new literals/syntax
//
// States.h
// CrediteraIOS
//
// Created by Buddha on 10/24/13.
// Copyright (c) 2013 Buddha Soumpholphakdy. All rights reserved.
//
#import <Foundation/Foundation.h>
@riley-dog
riley-dog / McLuvnYoMomma.java
Created September 7, 2011 22:49
Downstairz' Random Thoughts
People failedPeople = new People();
People successPeople = new People();
Goals goals = new Goals();
String[] peopleYouKnow = {…};
for(Goals goal : goals)
{
for (String peep : peopleYouKNow)
{