Skip to content

Instantly share code, notes, and snippets.

View kaylarose's full-sized avatar

Kayla Rose kaylarose

View GitHub Profile
@kaylarose
kaylarose / iOS-Snippets.m
Created February 22, 2014 01:51
Google Analytics Snippets
// Pre-(psuedo) "Symbolicated" Crash Reports
id tracker = [[GAI sharedInstance] defaultTracker];
NSString * model = [[UIDevice currentDevice] model];
NSString * version = [[UIDevice currentDevice] systemVersion];
NSArray * backtrace = [exception callStackSymbols];
NSString * description = [NSString stringWithFormat:@"%@.%@.%@.Backtrace:%@",
model,
version,
@kaylarose
kaylarose / git-config
Last active August 29, 2015 13:56
Git Snippets
git config --global alias.ksreview '!f() { local SHA=${1:-HEAD}; local BRANCH=${2:-master}; if [ $SHA == $BRANCH ]; then SHA=HEAD; fi; git difftool -y -t Kaleidoscope $BRANCH...$SHA; }; f'
git config --global alias.ksshow '!f() { local SHA=${1:-HEAD}; git difftool -y -t Kaleidoscope $SHA^..$SHA; }; f'
git config --global alias.ksdiff "difftool -y -t Kaleidoscope"
git config --global core.editor vim
git config --global color.ui true
# || git config --global color.ui auto
git config --global rerere.enabled true
git config --list
@kaylarose
kaylarose / cobblestone.sh
Last active August 29, 2015 14:09
Cobblestone: Bootstrap a Mac for Hacking & Development
#!/bin/bash
# Cobblestone: Bootstrap a Mac for Hacking & Development
# Cobble together a decent Mac Developer setup from scratch
# Author: Kayla Hinz
# LICENSE: MIT
#
# TODO:
# ANSI-Fun!
@kaylarose
kaylarose / resources.js
Last active August 29, 2015 14:10 — forked from brucecoddington/resources.js
An abstract $resource Provider for consuming RESTful resources on Angular JS
// Original Source:
// - http://www.objectpartners.com/2014/06/03/extending-angulars-resource-service-for-a-consistent-api/
// - https://gist.github.com/brucecoddington/92a8d4b92478573d0f42
//
// Enhancements/Fixes:
// - Delete by Query instead of Model Instance
// - Delete single by Model
// - Added ability to have Root Host appended to all resources registered.
// - Added Count action. (TODO Configurable)
// - Fixed lots of Misc. Dependency Injection/Recursion, scope issues.

Google+ Domains API - Quick Start

introduction

Google+ Domains API are meant to interact with your G+ accounts in the domain. With these APIs you can manage circles, read and write posts, shares, and comments etc.. more informations here

This tutorial is for creating an application that uses the Domains API, running on Google App Engine with python.

create GAE (Google App Engine) app

# Ruby 1.9 using ruby-ni
#
# VERSION 0.0.1
#
FROM base
MAINTAINER Ivan Acosta-Rubio "ivan@softwarecriollo.com"
ADD https://gist.github.com/ivanacostarubio/9309be8a79a94aafd02d/raw/8e84fac50a57a23f191eccf5e41bae4ecde80873/gistfile1.txt /etc/resolv.conf
# Installing basic stuf: wget, git, ruby
//This will patch the jquery.iviewer plugin to accept a post-zoom callback function
//http://github.com/can3p/iviewer/issues/issue/1
/**
* event is triggered when zoom value is changed
* @param int new zoom value
* @return boolean if false zoom action is aborted
**/
onZoom: null,
//begin patch
@kaylarose
kaylarose / ADebuggable_Soap_Client.php
Created February 8, 2011 23:01
Basic SOAP Client with Debugging Features and Dynamic API Method Invocation
/**
* Basic SOAP Debugging and Service Discovery Methods for Programming Against SOAP Services
*/
abstract class ADebuggable_Soap_Client extends SoapClient
{
protected $_cached_apis;
/**
* Output some useful info about this SoapClient Instnace or State
*/
public abstract function debug();
/* This is a linear gradient that will go from:
very light grey (#EEE) at the top,
to medium grey (#BBB) at the bottom
*/
.grey_gradient {
/* Graceful fallback for unsupported browsers */
background: #ccc;
/* Firefox 3.6+ */
background-image: -moz-linear-gradient(top, #eee, #bbb);
/* Webkit (Safari 4+, Chrome) */
@kaylarose
kaylarose / OctoStats.html
Created February 24, 2011 21:05
5-line GitHub API Client and Example of GitHub badge
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>untitled</title>
<meta name="generator" content="TextMate http://macromates.com/">
<meta name="author" content="WAVE Corp">
<!-- Date: 2011-02-24 -->