Call it like:
$ ./e2r.py "the english string"
Or import it into script:
from e2r import e2r
#!/usr/bin/env python | |
#-*- coding: utf-8 -*- | |
import sys | |
import keyword | |
''' | |
File: python_keywords.py | |
Author : Santosh Kumar <https://twitter.com/sntshk> | |
Date created: Fri 22 Feb 2013 07:00:09 PM IST |
try: | |
input = raw_input | |
except NameError: | |
pass |
#!/usr/bin/env python | |
#-*- coding: utf-8 -*- | |
from __future__ import print_function | |
from time import sleep | |
string = "The words in this sentence should appear letter by letter." | |
print("Please wait if you don't see another sentence appearing below.", end="\n\n") |
/** | |
* 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> |
/** | |
* 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> |
#!/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. |
#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"); |