This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
# This return the current file "real document root" | |
$root = str_replace($_SERVER['SCRIPT_NAME'],'',$_SERVER['SCRIPT_FILENAME']).'/'; | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/******************************************************************************************************************* | |
@file jquery.clearTypeFix.fade.js | |
@function Custom FadeIn/FadeOut/FadeTo : Fix IE ClearType | |
@source http://blog.bmn.name/2008/03/jquery-fadeinfadeout-ie-cleartype-glitch/comment-page-1/#comment-123 | |
********************************************************************************************************************/ | |
jQuery.fn.clearTypeFadeTo = function(options) { | |
if (options) | |
$(this) | |
.show() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>Custom Initial and Blockquote (Cross-Browser except IE8 and lower)</title> | |
<style> | |
/* Reset {{{ */ | |
/* | |
html5doctor.com Reset Stylesheet |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias findbom="grep -orHbm1 \"^`echo -ne '\xef\xbb\xbf'`\" . | sed '/:0:/!d;s/:0:.*//'" | |
alias removebom="grep -orHbm1 \"^`echo -ne '\xef\xbb\xbf'`\" . | sed '/:0:/!d;s/:0:.*//' | xargs vim -u NONE +'argdo se nobomb | wq'" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_URL, htmlspecialchars($_GET['URL'])); | |
curl_exec($ch); | |
curl_close($ch); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<!--[if lt IE 8]><html class="lt-ie8" lang="en"> <![endif]--> | |
<!--[if gt IE 8]><!--><html lang="en"><!--<![endif]--> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>Dead Simple Cross-Browser Custom-Select</title> | |
<style> | |
body { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
margin: 2em; | |
} | |
a { | |
display: inline-block; | |
margin-bottom: 1em; | |
position: relative; | |
border-bottom: 1px solid black; | |
text-decoration: none; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
h1,h2,h3{ font-weight: bold; font-family: Helvetica, Arial, sans-serif; margin: 0 0 .25em; } | |
h1 { font-size: 30px; } | |
h2 { font-size: 20px; } | |
h3 { font-size: 16px; } | |
p { margin: 0 0 1em; } | |
#container { | |
width:100%; | |
max-width:600px; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
guard 'shell' do | |
watch(/(^src\/haml\/(.+)\.haml)/) do |match| | |
puts match[0] + " changed at " + Time.now.strftime("%H:%M:%S") +". Re-generating HTML from HAML" | |
`haml #{match[1]} #{match[2]}.html` | |
`terminal-notifier -group 'haml' -title 'Regenerating Coffeescript' -message '#{match[0]}'` | |
end | |
watch(/(^src\/sass\/.+)/) do |match| | |
puts match[0] + " changed at " + Time.now.strftime("%H:%M:%S") +". Re-generating CSS from SASS." | |
`Compass compile` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$sprites: sprite-map("sprites/*.png"); | |
$sprites-retina: sprite-map("sprites-retina/*.png"); | |
@mixin sprite-background($name) { | |
background-image: sprite-url($sprites); | |
background-position: sprite-position($sprites, $name); | |
background-repeat: no-repeat; | |
display: block; | |
height: image-height(sprite-file($sprites, $name)); | |
width: image-width(sprite-file($sprites, $name)); |
OlderNewer