Skip to content

Instantly share code, notes, and snippets.

View atroutt's full-sized avatar

Audrey Troutt atroutt

View GitHub Profile
@sydcurie
sydcurie / checkstyleRules.md
Created August 12, 2011 02:45 — forked from raphaelmor/checkstyleRules.md
Rules for an Objective-C checkstyle tool

#Formating options for .h / .m

##File

###Rules

  • No EmptyLine at begining of file
  • No EmptyLine at end of file
  • Must start with FileCommentBlock
  • Must end with @end
@atroutt
atroutt / transitionQuestions_allQuestions.vm
Created November 16, 2012 21:54
Liferay velocity templates and structures for displaying all articles with a given structure.
## name: All transition questions
## description:
## This is the template to display all transition questions. The structure that is associated with this template directly is not really used.
## Instead it depends on the TransitionQuestion template and TransitionQuestion structure.
## The $structureId, below needs to be updated with the id of the TransitionQuestion structure in your instance of Liferay.
#* update your portal-ext.properties to add these two lines:
#allow velocity templates to use the serviceLocator variable
journal.template.velocity.restricted.variables=
*#
## --------------------------------------------
@atroutt
atroutt / cp-android-drawables.sh
Last active July 17, 2016 22:14
Convenient script for sucking icons from https://github.com/google/material-design-icons into your Android app
#!/bin/bash
# 1. PUT THIS SCRIPT IN YOUR APP's RES folder, for example /Users/myname/Developer/MyAndroidProject/app/src/main/res
# 2. UPDATE THIS VARIABLE to point to your local clone of https://github.com/google/material-design-icons
# if you don't alread have it git clone git@github.com:google/material-design-icons.git
basefolder="/Users/myname/Developer/material-design-icons"
# 3. Find Material Icons on https://design.google.com/icons/ and note the group and icon name and use this script to suck them into your project
if [ $# -lt 2 ]; then