Skip to content

Instantly share code, notes, and snippets.

View weerd's full-sized avatar

Diego Lorenzo weerd

View GitHub Profile
@weerd
weerd / SassMeister-input-HTML.html
Created October 16, 2013 14:37
Generated by SassMeister.com.
<article class="module">
<h1>Welcome</h1>
<p>This is a simple example using a combination of both REM and EM to help dictate margin, padding, etc in EM values, based on a font-size set in REM for the parent containers.</p>
<p>Use Rems when a font size change is needed on an element, but then use EMs for padding, margins and any children elements.</p>
<p>Just set the font size in Rems, and then for any other measurements use EMs by doing (desired px value/element font-size in pixels + em).</p>
</article>
<article class="module">
<h1>Example</h1>
<p>I'm sure that it would be possible to use Sass in a better (and cooler) way to start controlling the sizing even moreso and really harness Sass's power. I'll be looking into it, as I play further with this technique.</p>
$ brew install php54
==> Downloading http://www.php.net/get/php-5.4.21.tar.bz2/from/this/mirror
######################################################################## 100.0%
Warning: Backing up all known pear.conf and .pearrc files
Warning: If you have a pre-existing pear install outside
of homebrew-php, or you are using a non-standard
pear.conf location, installation may fail.
==> ./configure --prefix=/usr/local/Cellar/php54/5.4.21 --localstatedir=/usr/local/var --sysconfdir=/usr/local/etc/php/5.4 --with-config-file-path=/usr/local/etc/php/5.4 --with-config-file-scan-dir=/usr/local/etc/php/5.4/conf.d --with-iconv-dir=/usr --enable-dba --with-ndbm=/usr --enable-exif --enable-soap --enable-w
==> make
_zif_dns_get_record in dns.o
@weerd
weerd / 0_reuse_code.js
Created December 10, 2013 17:30
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@weerd
weerd / SassMeister-input.scss
Created December 23, 2013 05:10 — forked from Snugug/SassMeister-input.scss
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.1)
// Compass (v0.13.alpha.10)
// ----
@function quicksort($list) {
$QS-Less: ();
$QS-Equal: ();
$QS-Large: ();
@weerd
weerd / SassMeister-input-HTML.html
Created August 18, 2014 03:10
Generated by SassMeister.com.
<header>Header</header>
<nav>Navigation</nav>
<article>Article</article>
<footer>Footer</footer>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
var makeRequest = function (url, callback) {
@weerd
weerd / brew_cask_applications.md
Created August 16, 2015 03:59
Recommended Brew Cask Applications

List of Recommended Brew Cask Applications

  • alfred
  • dropbox
  • google-chrome
  • qlcolorcode
  • screenflick
  • slack
  • transmit
  • appcleaner
@weerd
weerd / content_editable_styles.css
Last active August 31, 2015 14:52
Styles for content editable browser page
body {
background-color: #eee;
font-family: helvetica;
font-size: 16px;
margin: 0 auto;
padding: 1em 20%;
text-align: center;
}
@weerd
weerd / install.sh
Created December 29, 2015 19:35 — forked from JeffreyWay/install.sh
Super-fast LAMP + 5.5 install script.
sudo apt-get update
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password password root'
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password root'
sudo apt-get install -y vim curl python-software-properties
sudo add-apt-repository -y ppa:ondrej/php5
sudo apt-get update
sudo apt-get install -y php5 apache2 libapache2-mod-php5 php5-curl php5-gd php5-mcrypt php5-readline mysql-server-5.5 php5-mysql git-core php5-xdebug
@weerd
weerd / Vagrantfile
Created December 29, 2015 19:36 — forked from JeffreyWay/Vagrantfile
Quickie vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "precise64"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
config.vm.network :private_network, ip: "192.168.33.21"