Skip to content

Instantly share code, notes, and snippets.

View ritcheyer's full-sized avatar
🏠
Working from home

Eric Ritchey ritcheyer

🏠
Working from home
  • E&J Design
  • Lincoln, CA
View GitHub Profile
@ritcheyer
ritcheyer / SublimeText2IconFix.sh
Created November 7, 2011 18:42
Fix Sublime Text 2 icon after update
sudo curl -L -o icon.zip http://eandjdesign.com/icons/SublimeText2/icon.zip && unzip icon.zip && mv Sublime\ Text\ 2.icns /Applications/Sublime\ Text\ 2.app/Contents/Resources/
@ritcheyer
ritcheyer / more-mute-regex.md
Created October 17, 2012 22:52 — forked from jimmynotjim/more-mute-regex.md
Tweetbot can use regular expressions to mute tweets in your timeline and mentions.

##Simply annoying Tweets

Annoyingly extended words (4+ of the same letter in a phrase): OOOOHHHHMMMMYYYYGGGGOOOODDDD

([a-z])/1{4}

Tweet w/ just a single hashtag: #omgthissucks

^ *#[^ ]+$
@ritcheyer
ritcheyer / mq.css
Created October 18, 2012 16:55 — forked from chriscoyier/mq.css
@media only screen and (min-width: 320px) {
/* Small screen, non-retina */
}
@media
only screen and (-webkit-min-device-pixel-ratio: 2) and (min-width: 320px),
only screen and ( min--moz-device-pixel-ratio: 2) and (min-width: 320px),
only screen and ( -o-min-device-pixel-ratio: 2/1) and (min-width: 320px),
@ritcheyer
ritcheyer / gist:3915121
Created October 18, 2012 22:20
How websites should be built
This is how the internet and all websites should be built
---------------------------------
| Javascript | Now we layer on the interactions.
---------------------------------
| CSS | Now that we have a solid foundation (document) we can layer on the UI
---------------------------------
| HTML | The document should work regardless of where it finds itself.
---------------------------------
@ritcheyer
ritcheyer / 1. Example.scss
Created October 22, 2012 21:37 — forked from Integralist/1. Example.scss
Sass Mixin for CSS3 Animations
@include keyframe(fadeout) {
0% {
opacity: 1;
}
100% {
opacity: 0;
}
}

Sass/Less Comparison

In this document I am using Sass's SCSS syntax. You can choose to use the indented syntax in sass, if you prefer it, it has no functional differences from the SCSS syntax.

For Less, I'm using the JavaScript version because this is what they suggest on the website. The ruby version may be different.

Variables

@ritcheyer
ritcheyer / gist:3955631
Created October 25, 2012 21:45
Porting an SVN Repo to Git with SVN History Intact

Introduction

There are a number of resources online that are helpful in documenting the flow of converting your entire SVN Repo (including all history) to Git. This documentation was derived from two locations:

Get Authors

cd /path/to/svn/repo
svn log -q | awk -F '|' '/^r/ {sub("^ ", "", $2); sub(" $", "", $2); print $2" = "$2" <"$2">"}' | sort -u > /path/to/authors.txt
@ritcheyer
ritcheyer / style.css
Created March 5, 2013 22:15
A CodePen by Eric Ritchey. SASS-Based Inline Media Queries
.storage-meta .storage-status {
border: 1px solid #333;
display: inline-block;
.status-icon { display: none; }
@media screen and (max-width: $storage-types-step-1) {
.status-title { display: none; }
@ritcheyer
ritcheyer / Policies Table
Last active December 14, 2015 16:59
I want to display the number of records returned in this policies dataset, but not sure how..
<!--
===================================
Update: using {{ policies.length }}
===================================
-->
{{#if policies.length}}
<table id="policiesTable" class="policy-table table-framework table-panel table-striped" border="0" cellpadding="0" cellspacing="0">
<thead class="table-head">
<tr>
<th class="policy-name">Name</th>
@ritcheyer
ritcheyer / webappJob.html
Last active December 20, 2015 07:19
is there a better way to do this?
<div class="form-two-col" data-validate="isonefilled">
<div class="form-column group form-group form-inline input-prepend">
<label for="benchURL" class="pull-left">
<input id="benchURL" type="radio" name="benchmark-settings">
<label for="benchURL" class="input-xsmall">Benchmark URL</label>
<span class="add-on" title="benchmark URL"><span class="urlProtocol"></span>://HOST_IP/</span>
</label>
<div class="input-contain">
<input id="benchURLInput" name="benchURL" type="text" class="input-fluid appsettings" placeholder="url to run benchmark on">
</div>