Skip to content

Instantly share code, notes, and snippets.

View kylerberry's full-sized avatar

Kyler Berry kylerberry

View GitHub Profile
@kylerberry
kylerberry / ng-api-templates
Created July 30, 2014 02:45
Angular Templates
//let's a make a housing listing app and a directive that repeats a template component
var app = angular.module('exampleApp', []);
app.controller('myCtrl', function($scope) {
$scope.listings = [
{
title: 'Quiet Apartment',
imgPath: 'images/apt.jpg',
desc: 'This is a description.'
@kylerberry
kylerberry / HTML5 CSS Reset
Created July 30, 2014 04:20
HTML5 CSS Reset
/*
html5doctor.com Reset Stylesheet
v1.6.1
Last Updated: 2010-09-17
Author: Richard Clark - http://richclarkdesign.com
Twitter: @rich_clark
*/
html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
INSERT INTO `feature_flags` (`id`, `name`, `code`, `dependencies`, `conflicts`, `is_active`, `modified`)
VALUES
(UUID(), 'ZinHome.TopMenu', NULL, NULL, NULL, 1, now());
# shorter status command
alias s='git status'
# add all unstaged changes
# commit with a message parameter
## example: ac "a commit message"
ac() {
git add -A && git commit -m "$1"
}
@kylerberry
kylerberry / gist:44d3e1d1d2bdb7effb03
Last active August 29, 2015 14:24
grunt-svg-sprite config
grunt.initConfig({
svg_sprite : {
complex : {
cwd : “/svg”,
expand : true,
src : [“*.svg”],
dest : “/sass”,
options : {
shape : {
dimension : {
@kylerberry
kylerberry / gist:3866864
Created October 10, 2012 16:53 — forked from karolhor/gist:2006508
XHTML: Transitional Template
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta name="description" content=""/>
<meta name="keywords" content=""/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="Content-Style-Type" content="text/css"/>
<title></title>
@kylerberry
kylerberry / reset.css
Created October 10, 2012 17:05
Reset CSS
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
@kylerberry
kylerberry / Simple CSS Template
Created October 10, 2012 17:13
A simple CSS template
@charset "UTF-8";
/*-----------------------------
IMPORT
------------------------------*/
@import url("css/reset.css");
/*-----------------------------
GLOBAL
@kylerberry
kylerberry / html5_template.html
Created October 10, 2012 16:55 — forked from nathansmith/html5_template.html
Simple HTML5 Template
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=edge, chrome=1" />
<title>untitled</title>
<link rel="stylesheet" href="" />
</head>
<body>
@kylerberry
kylerberry / Xcode:showDatabaseContents
Created October 15, 2012 23:11
Read from database and write to console
-(void)showDatabaseContents {
NSArray *path = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectory = [path objectAtIndex:0];
NSString *pathToDB = [documentsDirectory stringByAppendingString:@"/classes.sqlite"];
// NSString *pathToDB = [[NSBundle mainBundle] pathForResource:@"classes" ofType:@"sqlite"];
FMDatabase *db = [FMDatabase databaseWithPath:pathToDB];