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 <stdlib.h> | |
int main (void) | |
{ | |
char ch; | |
short count = 0; | |
printf ("Type in a line of text\n"); |
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 <stdlib.h> | |
int main (void) | |
{ | |
char ch; | |
short count = 0; | |
printf ("Type in a line of text\n"); |
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/env bash | |
#upload tmp imgs to http://imgur.com | |
if [[ ! $1 ]]; then | |
echo "$0: You must specify a file to upload." | |
exit 1 | |
fi | |
img=$1 | |
curl -s -F "image=@$img" -F "key=486690f872c678126a2c09a9e196ce1b" http://imgur.com/api/upload.xml | grep -E -o "<original_image>(.)*</original_image>" | grep -E -o "http://i.imgur.com/[^<]*" | tee /dev/fd/2 | xclip |
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
/********************************************************************** | |
* UAM/Cuajimalpa - Programación estructurada | |
* P.L. Francisco Javier <fco.plj@gmail.com> 210368224 | |
*********************************************************************/ | |
/*TODO 15-03-2011 10:30 => save/open from/to a file*/ | |
/*TODO 14-03-2011 19:34 => use linked lists, so user can calculate any number of ints*/ | |
/*TODO 14-03-2011 19:35 => use elementary libs to beautify the app*/ | |
#include <stdio.h> | |
#include <stdlib.h> /* atoi() */ |
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
/********************************************************************** | |
* UAM/Cuajimalpa - Programación estructurada | |
* P.L. Francisco Javier <fco.plj@gmail.com> 210368224 | |
*********************************************************************/ | |
/*TODO 15-03-2011 10:30 => save/open from/to a file*/ | |
/*TODO 14-03-2011 19:34 => use linked lists, so user can calculate any number of ints*/ | |
/*TODO 14-03-2011 19:35 => use elementary libs to beautify the app*/ | |
#include <stdio.h> | |
#include <stdlib.h> /* atoi() */ |
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
/********************************************************************** | |
* UAM/Cuajimalpa - Programación estructurada | |
* P.L. Francisco Javier <fco.plj@gmail.com> 210368224 | |
*********************************************************************/ | |
/*TODO 15-03-2011 10:30 => save/open from/to a file*/ | |
/*TODO 14-03-2011 19:34 => use linked lists, so user can calculate any number of ints*/ | |
/*TODO 14-03-2011 19:35 => use elementary libs to beautify the app*/ | |
#include <stdio.h> | |
#include <stdlib.h> /* atoi() */ |
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/env bash | |
#chilicuil <chilicuil@gmail.com> 2011 | |
#cd wrapper function | |
#due to cd & subshells nature this script only works if it's sourced | |
#alias cd=". this_script" | |
WICD_BIN="/usr/lib/wcd/wcd.exec" | |
WICD_OPTIONS="-j -GN -c -i" | |
#-j just go mode |
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/env bash | |
#add it as a cronjob (every 3 min) | |
#*/3 * * * * /path/to/this/script | |
# ======= Initial checks ============ | |
if [[ ! -e /usr/bin/notify-send || ! -e /usr/sbin/pm-suspend || ! -e /usr/bin/acpi ]]; then | |
if [[ $TERM != "rxvt-unicode" ]]; then #X | |
xmessage "[+] You need install acpi, notify-send and pm-suspend before using this script | |
In Ubuntu/Debian use: \$ sudo apt-get install acpi libnotify-bin pm-utils" | |
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/env bash | |
#add it as a cronjob (every 3 min) | |
#*/3 * * * * /path/to/this/script | |
# ======= Initial checks ============ | |
if [[ ! -e /usr/bin/notify-send || ! -e /usr/sbin/pm-suspend || ! -e /usr/bin/acpi ]]; then | |
if [[ $TERM != "rxvt-unicode" ]]; then #X | |
xmessage "[+] You need install acpi, notify-send and pm-suspend before using this script | |
In Ubuntu/Debian use: \$ sudo apt-get install acpi libnotify-bin pm-utils" | |
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/env bash | |
#add it as a cronjob (every 3 min) | |
#*/3 * * * * /path/to/this/script | |
# ======= Initial checks ============ | |
if [[ ! -e /usr/bin/notify-send || ! -e /usr/sbin/hibernate || ! -e /usr/bin/acpi ]]; then | |
if [[ $TERM != "rxvt-unicode" ]]; then #X | |
xmessage "[+] You need install acpi, notify-send and hibernate before using this script | |
In Ubuntu/Debian use: \$ sudo apt-get install acpi libnotify-bin hibernate" | |
else |