Skip to content

Instantly share code, notes, and snippets.

@codeboy
codeboy / tree.md
Created July 16, 2013 13:32 — forked from hrldcpr/tree.md

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!

@codeboy
codeboy / sms_sender.py
Last active December 19, 2015 19:18
send sms via smsaero.ru
###
# Sending sms via smsaero.ru gate
###
import requests
import time
import hashlib
def sms_sender(
number='79825552211',
@codeboy
codeboy / Base.js
Created August 8, 2012 16:01
ExtJs template
// КОНТРОЛЛЕР
Ext.define('C300.controller.Base', {
extend: 'Ext.app.Controller',
stores:[
'C300.store.streetStore'
],
views: [
# -*- coding: utf-8 -*-
import os, sys, locale
import site, os
locale.setlocale(locale.LC_TIME,'ru_RU.utf8')
#projects_root = '/home/codeboy/xxx/svn2/'
#
#if projects_root not in sys.path: