Skip to content

Instantly share code, notes, and snippets.

View thenonameguy's full-sized avatar
🛠️
Preparing Schemamap.io go-live 🎉

Krisztián Szabó thenonameguy

🛠️
Preparing Schemamap.io go-live 🎉
View GitHub Profile
@thenonameguy
thenonameguy / leall.py
Created November 6, 2012 17:00
Python leállás
import os
def leall(percmulva):
os.system("shutdown -s -t "+percmulva*60)
@thenonameguy
thenonameguy / singleton.cpp
Created August 28, 2012 11:17
Singleton base
class S
{
public:
static S& getInstance()
{
static S instance; // Guaranteed to be destroyed.
// Instantiated on first use.
return instance;
}
private:
@thenonameguy
thenonameguy / 4chandown.py
Created August 26, 2012 21:00
Download a 4chan thread to a directory
import os
import sys
import urllib
import urllib2
import re
import time
if not len(sys.argv) >= 3:
print "Missing parameters."
print "Usage: python 4chan.py <url> <folder>"