- 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
| <?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" /> |
| <!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"> |
This is an incomplete list:
| <?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"); |
| 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) |
| #include <thread> | |
| unsigned int nthreads = std::thread::hardware_concurrency(); |
| #!/usr/bin/env python3 | |
| #-*- coding: utf-8 -*- | |
| from __future__ import print_function | |
| import sys | |
| var = sys.argv[1:] | |
| def crazify(string): | |
| """Converts first index of string to uppercase followed by lowercase and so on. |
| /** | |
| * File: 7.7.c | |
| * Author: Santosh Kumar <[email protected]> | |
| * Date created: Tue 08 Oct 2013 06:33:28 IST | |
| * Description: Program to convert a positive integer to another base | |
| * Taken from 'Programming in C' book. | |
| */ | |
| #include <stdio.h> |
| /** | |
| * File: numerical2words.c | |
| * Author: Santosh Kumar <[email protected]> | |
| * Date created: Tue 1 Oct 2013 09:27:49 IST | |
| * Description: Translate numerical digit to English words, ranging 01 to 99 | |
| */ | |
| #include <stdio.h> | |
| #include <string.h> |