Skip to content

Instantly share code, notes, and snippets.

View jlaeser's full-sized avatar

Jason Laeser jlaeser

View GitHub Profile
@jlaeser
jlaeser / gist:6940351
Created October 11, 2013 19:09
Terminal Command for printing out the full path
ls -R /directory | awk '
/:$/&&f{s=$0;f=0}
/:$/&&!f{sub(/:$/,"");s=$0;f=1;next}
NF&&f{ print s"/"$0 }'
##############
/directory/directory/foo.txt
@jlaeser
jlaeser / index.html
Created January 25, 2013 17:26
A CodePen by Chris Coyier. Three-Line Menu Icon, Various Techniques
<button>Toggle Font Size</button>
<h2>Unicode</h2>
<div>&#9776; Menu </div>
<h2>Pseudo Element w/ box-shadow</h2>
<div class="box-shadow-menu">Menu</div>
<h2>Pseudo Element w/ border</h2>
<div class="border-menu">Menu</div>
/**
* Stylesheet that implements Entypo font
* http://www.entypo.com/
*
* Autor Yordan Ivanov
* [email protected]
*/
@font-face {
font-family: 'EntypoRegular';
@jlaeser
jlaeser / gist:4611168
Created January 23, 2013 18:12
remove ".svn" files
find . -name "*.svn" -exec rm -rf {} \;
@jlaeser
jlaeser / index.html
Created December 10, 2012 18:05
A CodePen by Jason Laeser. Testing if Images are loaded - This is a simple test to see if images are still loaded even though they are set to display none.
<div id="image-loaded-test-01">
<h1>Test 01</h1>
<div>
<p class="results">Image Hidden.</p>
<img class="image" src="http://mailamonkey.com/blog/wp-content/uploads/2010/09/monkey_glasses.jpg" />
</div>
<div >
<p class="image">
<img src="http://images.nationalgeographic.com/wpf/media-live/photos/000/007/cache/spider-monkey_719_600x450.jpg" />
</p>
@jlaeser
jlaeser / Contract Killer 3.md
Created November 8, 2012 14:49
The latest version of my ‘killer contract’ for web designers and developers

Contract Killer 3

Revised date: 07/11/2012

Between us [company name] and you [customer name]

Summary:

We’ll always do our best to fulfil your needs and meet your expectations, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. We’ve no desire to trick you into signing something that you might later regret. What we do want is what’s best for both parties, now and in the future.

@jlaeser
jlaeser / gist:4017488
Created November 5, 2012 14:36 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
@jlaeser
jlaeser / index.html
Created July 2, 2012 15:14
A web page created at CodePen.io
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>OOCSS 12 unit grid &middot; CodePen</title>
<style>

JavaScript-Patterns

This is a starting point for a collection of JavaScript Pattern Examples.