This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try | |
{ | |
Robot shaz=new Robot(); | |
shaz.setAutoDelay(100); | |
char ch; | |
int len=0; | |
String text="hello my name is Github"; | |
len=text.length(); | |
for (int i=0;i<len;i++) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <math.h> | |
#define precision 6 //precision for decimal digits | |
int main(int argc, char const *argv[]) | |
{ | |
float f,ff; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
REST Ful WEB API in Flask | |
Simple Rest api in which resource is list of tasks | |
methods are implemented for GET, POST, PUT, DELETE | |
author: Shivam Bansal | |
website: shivambansal.com | |
Reference: http://blog.miguelgrinberg.com/post/designing-a-restful-api-with-python-and-flask | |
''' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Python script showing the use of lambda, map, reduce and filter keywords in Python | |
lambda: instantaneous, anonymous, use and throw function to be used at run time. | |
syntax: output = lambda arguments: express | |
map: Apply an expression over each element of list | |
filter: filtering out some elements out of a list based on a condition | |
reduce: reducing down list into a single element by applying a common expression |