I hereby claim:
- I am brandonb927 on github.
- I am brandonb927 (https://keybase.io/brandonb927) on keybase.
- I have a public key whose fingerprint is 8826 74F2 B591 348F B704 0CE6 5356 85E8 95E5 E538
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
body {max-width: 106ex; margin: 0 auto; padding: 1em 1ex; font-family: monospace; color: rgb(64,64,64)} | |
h1:before, h2:before, h3:before, h4:before, h5:before, h6:before {color: rgb(192,0,0)} | |
h1, h2, h3, h4, h5, h6 {font-weight: bold; color: black; font-size: 1.2em; margin: 2em 0 1em 0} | |
h1 {text-indent: -2ex; font-size: 2em} | |
h2 {text-indent: -3ex; font-size: 1.5em} | |
h3 {text-indent: -4ex; font-size: 1.2em} | |
h4 {text-indent: -5ex; font-size: 1em} | |
h5 {text-indent: -6ex; font-size: 1em} | |
h6 {text-indent: -7ex; font-size: 1em} | |
h1:before {content: '# '} |
/* JS */ | |
function getDomain(url) { | |
return url.match(/:\/\/(.[^/]+)/)[1]; | |
} | |
$("a[href^='http']").each(function() { | |
$(this).css({ | |
background: "url(http://www.google.com/s2/u/0/favicons?domain=" + getDomain(this.href) + | |
") left center no-repeat", | |
"padding-left": "20px" |
/* CSS */ | |
@font-face { | |
font-family: 'Collegia'; | |
font-style: normal; | |
font-weight: normal; | |
src: local("Bangers"), url("http://roparz.me/fonts/COLLEGIA.otf") format("woff"); | |
} | |
.forkme { | |
display: block; | |
position: absolute; |
// shamefully stolen from http://friendlybit.com/js/lazy-loading-asyncronous-javascript/ | |
(function() { | |
function async_load(){ | |
var s = document.createElement('script'); | |
s.type = 'text/javascript'; | |
s.async = true; | |
s.src = 'http://yourdomain.com/script.js'; | |
var x = document.getElementsByTagName('script')[0]; | |
x.parentNode.insertBefore(s, x); |
<!DOCTYPE html> | |
<html lang="en-US" prefix="og: http://ogp.me/ns#"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>{% if is_home %} {{ site.author }} {% elif is_post %} {{ post.title }} {% elif is_page %} {{ page.title }} {% endif %} | {{ site.name }}</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> | |
<meta name="apple-mobile-web-app-capable" content="yes" /> | |
<meta name="apple-mobile-web-app-status-bar-style" content="black" /> |
<!DOCTYPE hl> | |
<html lang="en-US" prefix="og: http://ogp.me/ns#"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>{% if is_home %} {{ site.author }} {% elif is_post %} {{ post.title }} {% elif is_link %} {{ link.title }} {% elif is_tag %} {{ tag }} {% elif is_page %} {{ page.title }} {% endif %} | {{ site.name }}</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<meta name="apple-mobile-web-app-capable" content="yes" /> | |
<meta name="apple-mobile-web-app-status-bar-style" content="black" /> |
/** | |
* REM units mixin with PX fallback for legacy browsers with no REM unit support | |
* https://github.com/christopher-ramirez/remixings | |
*/ | |
// ===== REM UNIT MIXINS ==== | |
@base-font-size-px: 16; // root's font size. @base-font-size-px MUST ME AN INTEGER. | |
@pxtorem-js-function: ~`pxtorem = function(px){ if (typeof rmxsBaseFontSize == 'undefined') rmxsBaseFontSize = @{base-font-size-px}; return (parseInt(px.replace(/(^\d+)(.+$)/i,'$1')) / rmxsBaseFontSize + 'rem') }`; | |
// ===== FONT MIXINS ===== | |
.font-size(@value) { |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<meta name="apple-mobile-web-app-capable" content="yes" /> | |
<meta name="apple-mobile-web-app-status-bar-style" content="black" /> | |
<meta name="description" content="{{ site.bio }} - {{ site.author }}" /> | |
<meta name="copyright" content="Copyright (c) 2013 {{ site.author }}" /> | |
<meta name="classification" content="blog" /> | |
{% if is_post %} | |
<meta property="article:published_time" content="{{ post.created_at }}" /> |
git config --global alias.lg "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative" |