@author Cristian Ferrari <cristianferrarig@gmail.com> || @energettico
Licensed under WTFPL.
// Usage
# CSS | |
.visible { | |
display: block; | |
} | |
.oculta { | |
display: none; | |
} | |
// Generic names | |
// --------------------------------------------------- | |
$size-mini: 480px !default; | |
$size-small: 768px !default; | |
$size-medium: 992px !default; | |
$size-large: 1200px !default; | |
$size-oversized: 1500px !default; | |
$size-container: 960px !default; |
@author Cristian Ferrari <cristianferrarig@gmail.com> || @energettico
Licensed under WTFPL.
// Usage
<?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"> | |
<array> | |
<dict> | |
<key>name</key> | |
<string>Pages</string> | |
<key>presets</key> |
for admin packages use http://wbond.net/sublime_packages/package_control
Synced Side Bar
/* Initialisation / Button events */ | |
// If added to home screen... | |
if(navigator.standalone === undefined || !!navigator.standalone) { | |
// On Android scroll the screen by 1 pixel to hide the address bar | |
if (navigator.userAgent.match(/Android/i)) { | |
window.addEventListener("load", function() { window.scrollTo(0,1); }, false); | |
} | |
// Show the converter & hide the install option by default |
<% if current_article %> | |
<title><%= "#{current_article.title}" %></title> | |
<meta name="twitter:card" content="summary"> | |
<meta property="twitter:creator" content="@alexbaldwin"> | |
<meta name="twitter:title" content="<%= truncate(current_article.title, length: 70) %>"> | |
<meta name="twitter:image" content="<%= "#{current_article.data.image}" %>"> | |
<meta name="twitter:description" content="<%= truncate(strip_tags(current_article.summary), length: 200) %>"> | |
<meta name="twitter:domain" content="<%= "http://www.alexbaldwin.com#{current_article.url}" %>"> | |
<% else %> |
ActiveSupport::Inflector.inflections do |inflect| | |
inflect.plural /([aeiou])([A-Z]|_|$)/, '\1s\2' | |
inflect.plural /([rlnd])([A-Z]|_|$)/, '\1es\2' | |
inflect.plural /([aeiou])([A-Z]|_|$)([a-z]+)([rlnd])($)/, '\1s\2\3\4es\5' | |
inflect.plural /([rlnd])([A-Z]|_|$)([a-z]+)([aeiou])($)/, '\1es\2\3\4s\5' | |
inflect.singular /([aeiou])s([A-Z]|_|$)/, '\1\2' | |
inflect.singular /([rlnd])es([A-Z]|_|$)/, '\1\2' | |
inflect.singular /([aeiou])s([A-Z]|_)([a-z]+)([rlnd])es($)/, '\1\2\3\4\5' | |
inflect.singular /([rlnd])es([A-Z]|_)([a-z]+)([aeiou])s($)/, '\1\2\3\4\5' |
$ php -v PHP 5.3.6 with Suhosin-Patch (cli) (built: Jun 16 2011 22:26:57) Copyright (c) 1997-2011 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies\
$ httpd -v Server version: Apache/2.2.19 (Unix) Server built: Jun 16 2011 22:09:54Technologies
body { | |
position:absolute; | |
top:0; | |
right:15px; | |
bottom:0; | |
left:0; | |
overflow-y:scroll; | |
overflow-x:hidden; | |
} |