A Pen by Jason Melgoza on CodePen.
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
@mixin font-size($percent, $min-font-size, $max-font-size) { | |
// Min | |
font-size: $min-font-size; | |
@include breakpoint($min-font-size/$percent * 100) { | |
font-size: #{$percent}vw; | |
} | |
@include breakpoint($max-font-size/$percent * 100) { | |
font-size: $max-font-size; |
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
<script> | |
$(window).resize(function() { | |
var windowWidth = $(window).width(); | |
$('.screen-width').text(windowWidth + 'px'); | |
}); | |
</script> | |
<div id="debug" style="position:fixed;padding:0.3em 0.6em;background:#f1f1f1;font-size:0.6em;bottom:0;left:50%;"> | |
<span class="screen-width">0</span> | |
</div> |
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
// http://css-tricks.com/transitions-only-after-page-load/ | |
.preload * | |
-webkit-transition: none !important | |
-moz-transition: none !important | |
-ms-transition: none !important | |
-o-transition: none !important |
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
Rails CMS alternatives | |
====================== | |
Note: project activity was checked on 11/26/09 for most of these projects, and the "last update" field has not been kept up to date since then. | |
Active projects: | |
--------------- | |
adva-cms | |
repo: http://github.com/svenfuchs/adva_cms/ | |
site: http://adva-cms.org/ | |
Last update: 11/24/09 |
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
#!/bin/sh | |
# Original script by Jason Tan: http://solutions.treypiepmeier.com/2009/03/03/virtual-hosts-on-osx-leopard/#comment-41787 | |
DIR=/Users/$SUDO_USER/Sites/$1 | |
if [[ ! -d $DIR && `id -u` -eq 0 ]]; then | |
echo "" | |
echo "Downloading site-template repository ..." | |
sudo -u $SUDO_USER git clone --quiet git://github.com/trey/site-template.git $DIR | |
cd $DIR |
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
/* | |
Form Elements | |
-- Styled to look like native Safari on OS X. | |
-- Drop-down <select> menus are unaffected. | |
-- Buttons are unaffected. Native OS style. | |
*/ | |
::-webkit-input-placeholder { | |
color: #000; | |
} |
download and un-tar
create db directory
mkdir -p /data/db
export mongo bin directory
export MONGO_BIN="/usr/local/mongodb/mongodb-osx-x86_64-1.4.4/bin"
export PATH="$PATH:$MONGO_BIN"
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 xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | |
<title>Nice Buttons</title> | |
<style> | |
* { margin: 0; padding: 0; } | |
ul { | |
padding: 20px; | |
width: 80px; | |
float: left; |
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
#!/usr/bin/env bash | |
src=$PWD | |
h5bp_remote=git://github.com/h5bp/html5-boilerplate.git | |
bootstrap_remote=git://github.com/twitter/bootstrap.git | |
h5bp_branch=master | |
bootstrap_branch=master |
OlderNewer