Skip to content

Instantly share code, notes, and snippets.

View amithkk's full-sized avatar
:octocat:
Hello There ^_^

Amith KK amithkk

:octocat:
Hello There ^_^
View GitHub Profile
@amithkk
amithkk / test.py
Created December 18, 2011 11:23
Divisibilty test
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
<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>
### 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:
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
#!/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
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):
/*
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;
@amithkk
amithkk / client.c
Created October 29, 2018 16:03
Server and Client Programs for Socket Use (TCP) with no error handling
#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
"""
Yarowsky's supervised Decision List
"""
import sys
import argparse
import pprint
import string
import re
import math
{
"configurations": [
{
"name": "Linux",
"includePath": [
"${workspaceFolder}/**",
"/usr/lib/x86_64-linux-gnu/openmpi/include"
],
"defines": [],
"compilerPath": "/usr/bin/mpicc",