Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am vasc on github.
  • I am vasc (https://keybase.io/vasc) on keybase.
  • I have a public key ASB2yrqrCpyutLvTdgdOoTKrxNdWSPS3_sMlJMt4QiiLNAo

To claim this, I am signing this object:

@vasc
vasc / !Running routes.md
Last active March 21, 2017 10:24 — forked from anonymous/index.html
via:geojson.io

Running routes in Amsterdam

  • 3K -- through Rembrandtpark
  • 5K -- through Vondelpark
  • 8K -- through Rembrandtpark and Vondelpark
  • 10K -- to, from and around Sloterplas
@vasc
vasc / log
Created January 10, 2014 11:05
(s3list)Vascos-MacBook-Air:scripts vasco$ ping github.com
PING github.com (192.30.252.130): 56 data bytes
Request timeout for icmp_seq 0
Request timeout for icmp_seq 1
Request timeout for icmp_seq 2
Request timeout for icmp_seq 3
^C
--- github.com ping statistics ---
5 packets transmitted, 0 packets received, 100.0% packet loss
DefaultHttpClient httpclient = new DefaultHttpClient(new BasicHttpParams());
HttpGet httpget = new HttpGet("http://172.20.0.3:3000/vasc/shots/popular");
InputStream inputStream = null;
String result = null;
try {
HttpResponse response = httpclient.execute(httpget);
HttpEntity entity = response.getEntity();
@vasc
vasc / clean_file_names.py
Last active December 29, 2015 04:19
Clean filenames recursevely
import os
import os.path
import re
for dirpath, dirnames, filenames in os.walk('.'):
print dirpath
print
for dirname in dirnames: print dirname
print
for filename in filenames:
@vasc
vasc / wrong.md
Last active December 26, 2015 15:59
Wrong

- What's wrong?

Wrong?

Do you want to hold my hand as we discover each cobble stone, each arch, each corner of Rome, Paris and Venice? Do you want our fingers to intertwine for so long and so hard that our bones will show those marks long after we are gone?

Do you want to lay on your knees and give everything of you, with no shame, no regret, just joy? Do you want to give yourself to pleasure and pain, night after night with no other hope but to stand closer than the night before?

Do you want to hate my enemies and love my friends with a vengeance and adoration so great that they surpass yours? Do you want to say goodnight, with no heartache, no sorrow, and meet me in your dreams right until we say good morning?

@vasc
vasc / gist:3927805
Created October 21, 2012 17:47
Streaming server
from flask import Flask
from flask import Response
import sys
import time
from threading import Condition
from threading import Thread
from deploy import staging
{ "name": "Artisan",
"scopeName": "source.deploy",
"fileTypes": ["patent"],
"patterns": [
{
"match": "^\\s*(patent\\b|run\\b|error\\b|before\\b|after\\b|default\\b)",
"name": "storage.type.deploy"
},
{
@vasc
vasc / dabblet.css
Created June 21, 2012 03:16
iphone mockup boilerplate
/**
* iphone mockup boilerplate
*/
html{
min-height: 100%
}
body{
background: #f06;
background: linear-gradient(90deg, #eef, #ccc);
@vasc
vasc / .gitconfig
Created September 20, 2011 22:33
gitconfig
[core]
editor = `which vim`
[init]
templatedir = <%= File.expand_path(File.dirname(__FILE__)) %>/git-template-dir
[merge]
tool = opendiff
[alias]
st = status -sb
co = checkout
# via http://ozmm.org/posts/git_msg.html