Skip to content

Instantly share code, notes, and snippets.

@baileylo
baileylo / style.css
Created October 15, 2010 07:29
basic global styles
/* Layout Styles */
#wrapper {
width: 750px;
margin: 25px auto;
border: 1px solid black;
}
#top_nav {
padding: 5px;
text-align: right;
@zyxar
zyxar / exercise.tour.go
Last active April 28, 2024 17:06
tour.golang exercise solutions
/* Exercise: Loops and Functions #43 */
package main
import (
"fmt"
"math"
)
func Sqrt(x float64) float64 {
z := float64(2.)
@javan
javan / screenshot.js
Created June 19, 2012 21:40
Create a screenshot of any URL using phantomjs (headless webkit)
//
// Example usage: phantomjs screenshot.js http://yahoo.com /tmp/yahoo.png
//
var system = require('system');
var url = system.args[1];
var filename = system.args[2];
var page = new WebPage();
page.open(url, function (status) {
@Davidslv
Davidslv / .vimrc
Last active December 11, 2015 04:48
My Vim configuration
" https://github.com/tpope/vim-pathogen
call pathogen#infect()
syntax on
set number
set expandtab " no real tabs
set softtabstop=2
set tabstop=4
" make backspace work normally