Skip to content

Instantly share code, notes, and snippets.

View psimoesSsimoes's full-sized avatar

Pedro Simões psimoesSsimoes

View GitHub Profile
@psimoesSsimoes
psimoesSsimoes / .vimrc
Created May 19, 2018 17:03 — forked from JeffreyWay/.vimrc
My .vimrc file
set nocompatible " Disable vi-compatibility
set t_Co=256
colorscheme xoria256
set guifont=menlo\ for\ powerline:h16
set guioptions-=T " Removes top toolbar
set guioptions-=r " Removes right hand scroll bar
set go-=L " Removes left hand scroll bar
set linespace=15
@psimoesSsimoes
psimoesSsimoes / loop_string.pl
Created January 3, 2018 22:24 — forked from ishu3101/loop_string.pl
3 ways to loop through each character in a string in Perl
# 3 ways to loop through each character in a string
$text = "hello world";
for $i (0..length($text)-1){
$char = substr($text, $i, 1);
print "Index: $i, Text: $char \n";
}
foreach $char (split //, $text) {
@psimoesSsimoes
psimoesSsimoes / web-servers.md
Created September 8, 2017 15:18 — forked from willurd/web-servers.md
Big list of http static server one-liners

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.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000