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
Don't write in C. |
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
import time | |
import urllib2 | |
from datetime import datetime | |
def do_dave(): | |
while 10 < datetime.now().hour < 15: | |
time.sleep(5) | |
urllib2.urlopen('http://www.reddit.com/') | |
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
import android.content.Context; | |
import android.os.Handler; | |
import android.util.AttributeSet; | |
import android.widget.TextView; | |
public class TypeWriter extends TextView { | |
private CharSequence mText; | |
private int mIndex; | |
private long mDelay = 150; //Default 150ms delay |
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
clear && | |
echo 'Installing Flash for Midori' && | |
read -p 'Press Enter to continue, or abort by pressing CTRL+C' nothing && | |
mkdir -p ~/.mozilla/plugins && | |
wget https://fpdownload.adobe.com/get/flashplayer/pdc/11.2.202.626/install_flash_player_11_linux.i386.tar.gz && | |
tar -zxvf install_flash_player_11_linux.i386.tar.gz libflashplayer.so && | |
rm install_flash_player_11_linux.i386.tar.gz && | |
if [ $(getconf LONG_BIT) = '64' ] | |
then | |
mv libflashplayer.so ~/.mozilla/plugins/libflashplayer.32.so && |
brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "you@example.com"