- PEP-0008
- Follow the hierarchy by distribute module
- Implement argparse if it's a command line program
- Post it on comp.lang.python with some masala
- obviously on social networking sites, specially Geeklist, Reddit
- Choose appropriate audience for app
#include <thread> | |
unsigned int nthreads = std::thread::hardware_concurrency(); |
import maya.cmds as mc | |
import random | |
for i in range(5): | |
x = random.uniform(-10.0, 10.0) | |
y = random.uniform(-10.0, 10.0) | |
z = random.uniform(-10.0, 10.0) | |
mycube = mc.polyCube(h=2, w=2, d=2, n="Object#") | |
mc.move(x, y, z, mycube) |
<?php | |
/* | |
@scriptName: noteredirect.php | |
@author: Santosh Kumar | |
@authorURL: http://sntsh.com | |
*/ | |
// set the content type which is read by browser | |
header("Content-type: text/plain"); |
<!DOCTYPE html> | |
<html dir="ltr" lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title> Loopingtriangle </title> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> | |
<meta name="viewport" content="width=device-width,initial-scale=1.0"/> | |
</head> | |
<body> | |
<script charset="utf-8"> |
[core] | |
editor = vii # See : http://unix.stackexchange.com/a/45877/22240 | |
whitespace = nowarn | |
pager = less | |
diff = vimdiff | |
excludesfile = ~/.gitignore_global | |
[user] | |
name = # Santosh Kumar | |
email = # {Email Here} | |
[github] |
<!DOCTYPE html> | |
<html dir="ltr" lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<meta name="viewport" content="width=device-width"> | |
<title> Randomise Element's Position </title> | |
<style type="text/css" media="screen"> | |
.randomizeme { | |
position:absolute; |
<!DOCTYPE html> | |
<html dir="ltr" lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<meta name="viewport" content="width=device-width"> | |
<title>Randomize Element</title> | |
<style type="text/css" media="screen">/* mininal style {{ */ | |
html, body { height: 100%; overflow: hidden;} |
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> | |
<CodeBlocksConfig version="1"> | |
<!-- application info: | |
svn_revision: 9501 | |
build_date: Dec 10 2013, 22:28:10 | |
gcc_version: 4.7.1 | |
Windows Unicode --> | |
<app> | |
<locale> | |
<CATALOGNUM int="61" /> |
" {{ | |
se nocompatible autoindent autoread autowrite autowriteall confirm cindent expandtab foldenable gdefault hidden hlsearch ignorecase incsearch lazyredraw lbr nu ruler sm sc smd scs smartindent sta spell splitright ttyfast undofile noerrorbells wildmenu wrap equalalways splitbelow wrapscan list | |
" }} | |
se dir=~/tmp/vimswapfiles//,~/.vim/vimswapfiles// bs=eol,start,indent,start cb=unnamed cc=-1 cot=menu,longest,preview enc=utf-8 ffs=unix fdm=marker foldlevel=0 fmr={{,}} foldopen=block,hor,insert,jump,mark,percent,quickfix,search,tag,undo formatoptions=tcqrn1 history=100 laststatus=2 matchtime=1 mouse=a nrformats=octal,hex,alpha scrolloff=5 shiftwidth=4 softtabstop=4 spl=en_us timeoutlen=300 tw=77 ts=4 undolevels=1000 udir=~/tmp/vimundo,~/.vim/vimundo uc=10 whichwrap+=<,>,[,],h,l wildchar=<tab> wig=*.o,*.obj,*.bak,*.exe,*.py[co],*.swp,*~,*.pyc,.svn guioptions-=T lcs=tab:?\ ,eol:¬,trail:·,nbsp:? | |
" ESSENTIALS | |
" ========== | |
" {{ | |
filetype plugin indent on | |
let snips_author = 'Santosh Kumar' |