Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
This is my trick to keep a tunnel running on an OSX host. It's setup so that a network state change will trigger the connection. In practice I've found that it's actually very reliable. Certainly beats starting them by hand.
wget --mirror -p --html-extension --convert-links -e robots=off -P . SITEURL |
When times get tough and people get nasty, you’ll need more than a killer smile. You’ll need a killer contract.
Used by 1000s of designers and developers Clarify what’s expected on both sides Helps build great relationships between you and your clients Plain and simple, no legal jargon Customisable to suit your business Used on countless web projects since 2008
…………………………
ul { | |
position: relative; | |
float: left; | |
left: 50%; | |
li { | |
position: relative; | |
float: left; | |
left: -50%; | |
} | |
} |
# | |
# Concept from https://gist.github.com/1205828 | |
# | |
module ApplicationHelper | |
class FoundationLinkRenderer < ::WillPaginate::ActionView::LinkRenderer | |
protected | |
def html_container(html) | |
tag(:ul, html, container_attributes) | |
end |
#!/bin/sh | |
## | |
# This is a script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# Run in interactive mode with: | |
# $ sh -c "$(curl -sL https://raw.github.com/gist/2108403/hack.sh)" | |
# | |
# or run it without prompt questions: |
# NOTE - I do not support this code anymore. | |
# You should use plambjet version @ https://gist.github.com/pjambet/5229322 | |
# | |
# Based on https://gist.github.com/1182136 and https://gist.github.com/1586384 | |
# Make the will_paginate generate markup for Zurb Foundation | |
# Put this in config/initializers/foundation_paginate.rb | |
module WillPaginate | |
module ViewHelpers | |
class LinkRenderer < LinkRendererBase | |
protected |