Skip to content

Instantly share code, notes, and snippets.

@adilkhash
adilkhash / vkmixin.py
Created May 11, 2011 06:17
Vkontakte Oauth 2.0 Mixin
#!/usr/bin/env python
#
# Vkontatke OAuth 2.0 wrapper
# Copyright 2011, Adil Khashtamov [adil.khashtamov@gmail.com]
# http://khashtamov.kz
#
#
import logging
@LeverOne
LeverOne / LICENSE.txt
Created October 24, 2011 04:17 — forked from jed/LICENSE.txt
generate random v4 UUIDs (107 bytes)
DO WTF YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Alexey Silin <pinkoblomingo@gmail.com>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WTF YOU WANT TO PUBLIC LICENSE
@hrldcpr
hrldcpr / tree.md
Last active June 8, 2024 18:11
one-line tree in python

One-line Tree in Python

Using Python's built-in defaultdict we can easily define a tree data structure:

def tree(): return defaultdict(tree)

That's it!

@odoe
odoe / esrileaf.html
Created April 19, 2012 21:08
Demo of Backbone.js using ESRI REST in Leaflet
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta content='text/html, charset=UTF-8' http-equiv='Content-Type' />
<meta content='IE=7,IE=8,IE=9' http-equiv='X-UA-Compatible' />
<meta content='initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport' />
<style type="text/css">
@import url("http://code.leafletjs.com/leaflet-0.3.1/leaflet.css");
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
@Nurdok
Nurdok / python_conversion.md
Last active December 16, 2022 03:45
Python Conversion

Python Number Conversion Chart

From To Expression
@fireismyflag
fireismyflag / torrent-info.py
Last active July 12, 2020 10:29
This Python script will connect to a Deluge deamon running on localhost, and generate a summarized status of active torrents.
import os
'''
The command "deluge-console info" generates this output:
/home/pi$ deluge-console info
Name: Some video file
ID: 670b10e3842dfe57bedbd0653b09f0548034cbbb
@arvidfm
arvidfm / asyncio-tornado.py
Last active December 4, 2018 12:56
Running Tornado on asyncio's event loop, including 'yield from' support in request handlers
import asyncio
import tornado.concurrent
import tornado.ioloop
import tornado.web
import tornado.platform.asyncio
import tornado.httpclient
class ReqHandler(tornado.web.RequestHandler):
async def get(self):
@kunev
kunev / coroutines_example.py
Last active July 9, 2020 15:09
Coroutines example with python's asyncio module
import asyncio
@asyncio.coroutine
def open_file(name):
print("opening {}".format(name))
return open(name)
@asyncio.coroutine
def close_file(file):
print("closing {}".format(file.name))
@codeboy
codeboy / CV_Resume.markdown
Last active January 27, 2024 19:25
Maxim Vavilov - Full-stack Python developer - CV (resume)

Меня зовут Вавилов Максим.

Я программист на Python/Django и Javascript.

Skype - codeboy.ru

Опыт более 10 лет работы в разработке интернет проектов. Принял участие в создании и развитии десятках различных проектов. От сложных, до очень сложных. Умею работать как в большой команде, так и один. Могу разрабатывать проекты, как с нулевой стадии, так и переделывать уже действующие. Способен спасти даже самый пропащий проект.