#Objectified: a very brief overview of Objects in Javascript
written for myself, by myself.
much love,
Nick
This file contains 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
<?php | |
// change this | |
echo "\n\t<script>\n"; | |
echo "\t\tvar _gaq=[['_setAccount','$roots_google_analytics_id'],['_trackPageview'],['_trackPageLoadTime']];\n"; | |
echo "\t\t(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];\n"; | |
echo "\t\tg.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';\n"; | |
echo "\t\ts.parentNode.insertBefore(g,s)}(document,'script'));\n"; | |
echo "\t</script>\n"; | |
// to this (using this snippet from: http://googlecode.blogspot.com/2009/12/google-analytics-launches-asynchronous.html ) |
This file contains 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
html { | |
font-size:@remSize; /* 16px/100% */ | |
} | |
/* general proportional styles */ | |
p { | |
font-size: 2em; // 32px @ max-width /* (text needs to *pop* ;) ) */ | |
line-height: 1.5; | |
margin:0 0 3em 0; |
This file contains 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
/** | |
* Column Layout test | |
*/ | |
* { | |
} | |
html { |
This file contains 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
/** | |
* .netboxes | |
*/ | |
/* universal */ | |
body { | |
margin: 0; | |
background: url('http://subtlepatterns.com/patterns/lightpaperfibers.png') repeat; | |
} | |
img { |
This file contains 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
/** | |
* Skeleton playground | |
*/ | |
/* | |
* Skeleton V1.1 | |
* Copyright 2011, Dave Gamache | |
* www.getskeleton.com | |
* Free to use under the MIT license. | |
* http://www.opensource.org/licenses/mit-license.php |
Random Useful stuff ^^
Note: if a section grows too large, consider splitting it off into a seperate document surrounding the command/concept
From: http://superuser.com/questions/47192/google-search-from-linux-terminal
Add this to your .bash_profile / .zshrc etc.
This file contains 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
<?php | |
/* ========================================================================== | |
Bootstrap Drupal | |
========================================================================== */ | |
define('DRUPAL_ROOT', getcwd()); | |
require_once DRUPAL_ROOT . '/includes/bootstrap.inc'; | |
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL); | |
This file contains 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
// include typekit | |
function typekit_init(){?> | |
<script type="text/javascript" src="//use.typekit.net/TYPEKITIDHERE.js"></script> | |
<script type="text/javascript">try{Typekit.load();}catch(e){}</script> | |
<?} | |
add_action('wp_head', 'typekit_init'); |
OlderNewer