This file contains hidden or 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
<snippet> | |
<content><![CDATA[ | |
/** | |
TODO: | |
- ${1:Enter your todo item} | |
- ${2:Second todo item} | |
**/ |
This file contains hidden or 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
/* | |
* Copyright 2013 Himanshu Mishra <[email protected]> | |
* | |
* 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 |
This file contains hidden or 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
''' | |
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) |
This file contains hidden or 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
/*============================================================================= | |
| Program Name: Server-Client Chatting System on same computer(UNIX-based) | |
| | |
| Description: Server-side code | |
| | |
+----------------------------------------------------------------------------- | |
| Author: Himanshu Mishra | |
| Email : [email protected] | |
*===========================================================================*/ |
This file contains hidden or 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
/*============================================================================= | |
| Program Name: Server-Client Chatting System on same computer(UNIX-based) | |
| | |
| Description: Client-side code | |
| | |
+----------------------------------------------------------------------------- | |
| Author: Himanshu Mishra | |
| Email : [email protected] | |
*===========================================================================*/ |
This file contains hidden or 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/python | |
"""Usage: | |
X.py < X.in > X.out | |
""" | |
################################################################################ | |
# util functions | |
logging = False |
This file contains hidden or 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
; Don't forget to change the Icon and Exec path to your needs | |
; And save this file into the ~/.local/share/applications/ directory | |
[Desktop Entry] | |
Version=1.0 | |
Type=Application | |
Name=Notes | |
Icon=/home/mariocesar/bin/notes.png | |
Exec=/home/mariocesar/bin/notes.py | |
Categories=Accessories; |
This file contains hidden or 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
#!/bin/python3 | |
# | |
# Copyright 2015 Himanshu Mishra | |
# | |
# 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, |
This file contains hidden or 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
#!/bin/bash | |
# Download it. | |
# Name it as 'theme' | |
# Place it in /usr/bin/ | |
# shell_prompt$ theme | |
echo ' | |
3024 Day ( 1) 3024 Night ( 2) AdventureTime ( 3) | |
Afterglow ( 4) AlienBlood ( 5) Argonaut ( 6) | |
Arthur ( 7) Atom ( 8) Belafonte Day ( 9) | |
Belafonte Night ( 10) BirdsOfParadise ( 11) Blazer ( 12) |
This file contains hidden or 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
~/T/fish-2.2b1 ./configure Tue May 19 14:19:20 IST 2015 | |
checking if autoconf needs to be run... no | |
checking if autoheader needs to be run... no | |
checking for g++... g++ | |
checking whether the C++ compiler works... yes | |
checking for C++ compiler default output file name... a.out | |
checking for suffix of executables... | |
checking whether we are cross compiling... no | |
checking for suffix of object files... o | |
checking whether we are using the GNU C++ compiler... yes |
OlderNewer