Skip to content

Instantly share code, notes, and snippets.

View egoens's full-sized avatar

Erik Goens egoens

View GitHub Profile
.is-question {
width: 14px;
height: 14px;
line-height: 14px;
fill: red;
stroke: yesplease;
border-width: 50%;
content: "Q";
text-align: center;
color: #fff;
@egoens
egoens / gist:bdc32d15fb871c4fea22
Last active August 29, 2015 14:13 — forked from jeradesign/gist:6747572
iOS Font List
2013-09-28 15:54:13.369 iOSFontListTest[3753:60b] Font Family Names (
"Academy Engraved LET",
"Al Nile",
"American Typewriter",
"Apple Color Emoji",
"Apple SD Gothic Neo",
Arial,
"Arial Hebrew",
"Arial Rounded MT Bold",
Avenir,
@egoens
egoens / iphones-responsive.css
Last active August 29, 2015 14:22
General responsive containers for iPhones
/***********
iPhone 2G-4S
************/
/* iPhone 2G-4S In Portrait & Landscape */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px) {
}
@egoens
egoens / psql_table_exporter.sh
Created August 14, 2015 16:57
Shell script for exporting all tables for any given postgresql database_name
#!/bin/bash
# exports separate sql files for each table in the db. excludes "pg_" and "sql_" prefixed tables
for table in $(psql database_name -t -c "Select table_name From information_schema.tables Where table_type='BASE TABLE' and table_name not like 'pg_%' and table_name not like 'sql_%'");
do pg_dump -t $table database_name > /path/to/export/your/tables/$table.sql;
done;
(courseload)erik%git status ~/Sites/chrome-app 5:04PM
# On branch uxing
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: dev/media/css/main.css
# modified: dev/media/img/checkin-example.jpg
# modified: dev/media/img/checkout-example.jpg
#
erik%git status Sites/courseload/clip 11:52AM
# On branch checkout-ui
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: src/media/js/nav.coffee
#
no changes added to commit (use "git add" and/or "git commit -a")
erik%git status Sites/courseload/clip 11:52AM
@egoens
egoens / gist:4067120
Created November 13, 2012 17:23
new question
span.new-notification.yellow {
background-color: #FFEA00;
background-color: rgba(255, 234, 0, 0.2);
color: #5E5600;
border-bottom: 1px solid #5E5600;
}
index.htmlmedia="screen"
.sidebar span.new-notification {
padding: 1px 3px;
font-size: 60%;
(function(){
var v = "1.3.2";
if (window.jQuery === undefined || window.jQuery.fn.jquery < v) {
var done = false;
var script = document.createElement("script");
script.src = "http://ajax.googleapis.com/ajax/libs/jquery/" + v + "/jquery.min.js";
script.onload = script.onreadystatechange = function(){
if (!done && (!this.readyState || this.readyState == "loaded" || this.readyState == "complete")) {

Sublime Text 2 - Useful Shortcuts

Tested in Mac OS X: super == command

Open/Goto


  • super+t: go to file
  • super+ctrl+p: go to project
  • super+r: go to methods
@egoens
egoens / Medium's hide header on scroll.markdown
Created January 20, 2016 21:24
Medium's hide header on scroll