Skip to content

Instantly share code, notes, and snippets.

View harshildarji's full-sized avatar

Harshil harshildarji

View GitHub Profile
@harshildarji
harshildarji / HuffMan.cs
Last active July 17, 2021 21:19
This code is to implement Huffman compression algorithm.
using System;
using System.Collections.Generic;
using System.Linq;
namespace DC5
{
class Huff
{
public int frequency;
public string data;
@harshildarji
harshildarji / Shannon-Fano.cs
Last active April 15, 2016 13:01
This code is to implement Shannon Fano compression algorithm. This takes a string from the user and gives appropriate code for each symbol in the string.
using System;
using System.Linq;
namespace DC4
{
class Program
{
class fano
{
public float pro;
@harshildarji
harshildarji / Calculator.java
Created November 2, 2015 15:42
This is a simple java program to create a basic calculator.
package calculator;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.*;
public class Calculator extends JFrame implements ActionListener {
JFrame f;
@harshildarji
harshildarji / Binning.c
Last active April 1, 2017 05:33
This code performs binning by mean and binning by boundary. Language used in this code is 'C'.
#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
int a[100],**b,i,j,r,c,n,temp,k=0,sum,avg[10],l,h;
clrscr();
printf("How many data? ");
scanf("%d",&n);
"Oranges and Lemons" say the Bells of St. Clements
"Bullseyes and Targets" say the Bells of St. Margaret's
"Brickbats and Tiles" say the Bells of St. Giles
"Halfpence and Farthings" say the Bells of St. Martin's
"Pancakes and Fritters" say the Bells of St. Peter's
"Two Sticks and an Apple" say the Bells of Whitechapel
"Maids in white aprons" say the Bells at St. Katherine's
"Pokers and Tongs" say the Bells of St. John's
"Kettles and Pans" say the Bells of St. Anne's
"Old Father Baldpate" say the slow Bells of Aldgate
@tanayseven
tanayseven / autokey_cypher.c
Last active March 31, 2022 20:06
Implementation of autokey cipher in c
/*
The MIT License (MIT)
Copyright (c) 2014 Tanay PrabhuDesai
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is