Skip to content

Instantly share code, notes, and snippets.

@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
@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) {
@zyxar
zyxar / exercise.tour.go
Last active October 31, 2024 22:30
tour.golang exercise solutions
/* Exercise: Loops and Functions #43 */
package main
import (
"fmt"
"math"
)
func Sqrt(x float64) float64 {
z := float64(2.)
@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;