Skip to content

Instantly share code, notes, and snippets.

View paultreny's full-sized avatar

Paul Reny paultreny

View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>Railscasts 2</string>
<key>settings</key>
<array>
<dict>
<key>settings</key>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>Refresh</string>
<key>settings</key>
<array>
<dict>
<key>settings</key>
@paultreny
paultreny / dabblet.css
Created March 15, 2013 17:47
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
@paultreny
paultreny / dabblet.css
Created March 15, 2013 17:47 — forked from LeaVerou/dabblet.css
iOS 6 style switch checkboxes
/**
* iOS 6 style switch checkboxes
* by Lea Verou http://lea.verou.me
*/
:root input[type="checkbox"] { /* :root here acting as a filter for older browsers */
position: absolute;
opacity: 0;
}
@paultreny
paultreny / Tag.py
Created April 4, 2013 15:20
comment these lines to enable closing <style> and <script> tags
# script
unparseable = content.split('<script')
content = unparseable.pop(0)
l = len(unparseable)
i = 0
while i < l:
tmp = unparseable[i].split('</script>')
content += '.......'
content += len(tmp.pop(0))*'.'
content += '.........'

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
@paultreny
paultreny / index.html
Created April 9, 2013 17:16
A CodePen by Paul Reny. Code Blocks - Highlighting linear gradient background scales with the body font size, thanks to Lea Verou - vimeo.com/52882799
<h1>Code Blocks</h1>
<pre class="html"><code>
&lt;pre class=&quot;html&quot;&gt;&lt;code&gt;
&lt;!doctype html&gt;
&lt;html lang=&quot;en&quot;&gt;
&lt;head&gt;
&lt;meta charset=&quot;UTF-8&quot;&gt;
&lt;title&gt;Document&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
@paultreny
paultreny / index.html
Created April 9, 2013 17:17
A CodePen by Antti Nyman. Party Damage Text-Shadow - Inspiration from Dribbble by Adam Grano: http://dribbble.com/shots/1015796-PD
<h1>Party<br><span>Damage</span></h1>
@paultreny
paultreny / index.haml
Created April 9, 2013 17:18
A CodePen by noeldelgado.
.spinner
@paultreny
paultreny / index.html
Created April 9, 2013 17:19
A CodePen by Paul Reny.
<canvas id="stage"></canvas>