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
i=2 | |
cfl=2 | |
print "What is the number to compute?", | |
cno=int(raw_input(">")); | |
while i>0: | |
cfl=cfl+1 | |
i= cno%cfl | |
print cno,"is exactly divisible by",cfl |
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
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-menu/core-submenu.html"> | |
<link rel="import" href="../core-item/core-item.html"> | |
<link rel="import" href="../core-input/core-input.html"> | |
<link rel="import" href="../speech-mic/speech-mic.html"> | |
<polymer-element name="my-element"> | |
<template> |
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
### Keybase proof | |
I hereby claim: | |
* I am amithkk on github. | |
* I am amithkk (https://keybase.io/amithkk) on keybase. | |
* I have a public key whose fingerprint is 261F 45B9 E372 D041 557A 8039 AFDA 3780 22DE 2311 | |
To claim this, I am signing this object: |
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
for (i = 0; exp[i]; ++i) | |
{ | |
// If the scanned character is an operand (number here), | |
// push it to the stack. | |
if (isdigit(exp[i])) | |
push(stack, exp[i] - '0'); | |
// If the scanned character is an operator, pop two | |
// elements from stack apply the operator | |
else |
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
#!/usr/bin/python3 | |
""" | |
KMZGEN - Python Script to generate kmz with thumbnails from a .csv file | |
GNU GPL v3 - http://github.com/amithkk | |
""" | |
import os | |
from PIL import Image, ImageDraw, ImageFont |
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
import csv | |
import itertools | |
import os | |
from openpyxl import Workbook, load_workbook | |
from openpyxl.utils.exceptions import IllegalCharacterError | |
OUTFILE = 'Weather_Data.xlsx' | |
if os.path.isfile(OUTFILE): |
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
/* | |
3.Write a C program to convert and print a given valid parenthesized infix arithmetic expression to postfix expression. | |
The expression consists of single character and binary operators + - * /. | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <ctype.h> | |
#define STKSZ 100 | |
struct stack { char items[STKSZ]; int top} stk; |
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 <sys/socket.h> | |
#include <stdlib.h> | |
#include <netinet/in.h> | |
#include <string.h> | |
int main() | |
{ | |
struct sockaddr_in serv_addr; // Structure To Store Internet Address | |
char *msg = "Hey From Client!"; // Message we want to send |
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
""" | |
Yarowsky's supervised Decision List | |
""" | |
import sys | |
import argparse | |
import pprint | |
import string | |
import re | |
import math |
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
{ | |
"configurations": [ | |
{ | |
"name": "Linux", | |
"includePath": [ | |
"${workspaceFolder}/**", | |
"/usr/lib/x86_64-linux-gnu/openmpi/include" | |
], | |
"defines": [], | |
"compilerPath": "/usr/bin/mpicc", |
OlderNewer