Skip to content

Instantly share code, notes, and snippets.

View Himanshu-Mishr's full-sized avatar

Himanshu Mishra Himanshu-Mishr

View GitHub Profile
@Himanshu-Mishr
Himanshu-Mishr / server.c
Created March 23, 2014 19:33
Server-Client Chatting System on same computer. This code is to be run before client.c
/*=============================================================================
| Program Name: Server-Client Chatting System on same computer(UNIX-based)
|
| Description: Server-side code
|
+-----------------------------------------------------------------------------
| Author: Himanshu Mishra
| Email : himanshu.m786@gmail.com
*===========================================================================*/
@Himanshu-Mishr
Himanshu-Mishr / mygui.py
Created January 12, 2014 04:26
gui example
'''
shows out a single button GUI in this way as a class
'''
from tkinter import *
from tkinter.messagebox import showinfo
class MyGUI(Frame):
def __init__(self, parent=None):
Frame.__init__(self, parent)
button = Button(self, text='press', command=self.reply)
@Himanshu-Mishr
Himanshu-Mishr / StackOperationWithVector.cpp
Created November 27, 2013 04:51
Implementing stack with vector
/*
* Copyright 2013 Himanshu Mishra <himanshu.m786@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
@Himanshu-Mishr
Himanshu-Mishr / comment_TODO.sublime-snippet
Last active December 12, 2015 08:29
This is SUBLIME TEXT 2 snippet. It contain different types of "comment" snippet for c programming. Just PRESS "z" to get the snippet.It works for c codes.Keep these files in your Packages > User
<snippet>
<content><![CDATA[
/**
TODO:
- ${1:Enter your todo item}
- ${2:Second todo item}
**/