Installs ruby-2.0.0-p0 on ubuntu via checkinstall so it's in your package manager and you can remove it.
Quick install:
curl -L https://gist.github.com/werm/5330232/raw/02da122ae042af2b814f39d27db335639e403237/ruby-2-install-ubuntu.sh | bash -s
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
Installs ruby-2.0.0-p0 on ubuntu via checkinstall so it's in your package manager and you can remove it.
Quick install:
curl -L https://gist.github.com/werm/5330232/raw/02da122ae042af2b814f39d27db335639e403237/ruby-2-install-ubuntu.sh | bash -s
// this is because of http://stackoverflow.com/questions/4398966/how-can-i-hide-select-options-with-javascript-cross-browser/4423543 | |
(function($){ | |
$.fn.extend({detachOptions: function(o) { | |
var s = this; | |
return s.each(function(){ | |
var d = s.data('selectOptions') || []; | |
s.find(o).each(function() { | |
d.push($(this).detach()); |
settings = { | |
jshint: true, | |
editor: { | |
indentUnit: 2, | |
smartIndent: true, | |
tabSize: 2, | |
indentWithTabs: false, | |
autoClearEmptyLines: true, | |
lineWrapping: true, | |
lineNumbers: true, |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8" /> | |
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true"></script> | |
</head> | |
<body> | |
<div id="content" style="height: 450px"></div> | |
<script> |
add_filter('body_class','browser_body_class'); | |
function browser_body_class($classes) { | |
global $is_lynx, $is_gecko, $is_IE, $is_opera, $is_NS4, $is_safari, $is_chrome, $is_iphone; | |
if($is_lynx) $classes[] = 'lynx'; | |
elseif($is_gecko) $classes[] = 'gecko'; | |
elseif($is_opera) $classes[] = 'opera'; | |
elseif($is_NS4) $classes[] = 'ns4'; | |
elseif($is_safari) $classes[] = 'safari'; | |
elseif($is_chrome) $classes[] = 'chrome'; | |
elseif($is_IE) $classes[] = 'ie'; |
#returns the active template directory | |
<?php bloginfo('template_directory'); ?> | |
#returns URL of web root | |
<?php bloginfo('url'); ?> | |
#returns blog name | |
<?php bloginfo('title'); ?> |
<span>Loading</span> | |
<span class="l-1"></span> | |
<span class="l-2"></span> | |
<span class="l-3"></span> | |
<span class="l-4"></span> | |
<span class="l-5"></span> | |
<span class="l-6"></span> |
<?php the_category(', '); ?> |