Skip to content

Instantly share code, notes, and snippets.

View kaylarose's full-sized avatar

Kayla Rose kaylarose

View GitHub Profile
# 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

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

@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.
@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 / 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 / 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 / notes
Last active December 24, 2015 18:19
Cocoapods Cheatsheet
# Cocoapods Notes
## For XCode 5 Dev Preview on Mavericks
If your dynamic frameworks in the Pods project are getting linked to OSX Frameworks instead of iOS, you can try reverting to an earlier version of Cocoapods (0.24.0)
- This is more of an XCode UI bug, than a real build problem, but at this point in time there is no work around in Cocoapods. Original Source: https://github.com/CocoaPods/CocoaPods/issues/1420#issuecomment-25561488
@kaylarose
kaylarose / gist:6072294
Created July 24, 2013 16:48
Force Update Safari to Safari 6 (bypass Software Updater GUI)
curl $(strings /System/Library/PrivateFrameworks/SoftwareUpdate.framework/SoftwareUpdate | grep http | grep sucatalog) | grep Safari6 | grep pkg
@kaylarose
kaylarose / linked_key.py
Last active December 18, 2015 18:39
Google App Engine NDB Snippets
# Creates a back reference to Unknown kinds in a one-to-many model (from Guido Van Rossum)
# Source: http://stackoverflow.com/questions/10731433/following-backreferences-of-unknown-kinds-in-ndb
class LinkedKeyProperty(ndb.KeyProperty):
def _fix_up(self, cls, code_name):
super(LinkedKeyProperty, self)._fix_up(cls, code_name)
modelclass = ndb.Model._kind_map[self._kind]
collection_name = '%s_ref_%s_to_%s' % (cls.__name__,
code_name,
modelclass.__name__)
setattr(modelclass, collection_name, (cls, self))
@kaylarose
kaylarose / rdio_playlist_export.js
Created August 16, 2012 21:05
Bookmarklet to Export Rdio Playlist (Artist=>Track) in csv format
javascript:(function() {
var bookmarklet = {
bootstrap: function() {
var self = this;
if (!window.jQuery) {
var script = document.createElement("script");
script.src = "http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js";
script.async = true;
script.type = "text/javascript";
script.onload = function() { self.parse(); };