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
/* --------------------------------------------------------- | |
* | Arduino Experimentation Kit Example Code | | |
* | CIRC-02 .: 8 LED Fun :. (Multiple LEDs) | | |
* --------------------------------------------------------- | |
* | |
* A few Simple LED animations | |
* | |
* For more information on this circuit http://tinyurl.com/d2hrud | |
* | |
*/ |
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/python | |
import argparse | |
"""Boilerplate code for using argparse. | |
Clone, configure, and copy to your script. | |
Usage: | |
python argparse_cut_paste.py a 80 b 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
%% LyX 1.5.4 created this file. For more info, see http://www.lyx.org/. | |
%% Do not edit unless you really know what you are doing. | |
\documentclass[a4paper,english,hebrew]{article} | |
\usepackage[T1]{fontenc} | |
\usepackage[latin9,cp1255]{inputenc} | |
\usepackage{babel} | |
\usepackage{culmus} | |
\begin{document} |
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
% Glider, a hacker emblem (http://www.catb.org/hacker-emblem/) | |
% Author: Alex Hirzel | |
% License: Public Domain | |
\documentclass[border=1mm]{article} | |
\usepackage{tikz} | |
%%%< | |
\usepackage{verbatim} | |
\usepackage{listings} | |
\begin{document} |
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
<!-- language: lang-java --> | |
<!-- language: lang-python --> | |
<!-- language: lang-sql --> | |
<!-- language: lang-bash --> |
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
#!/bin/bash | |
# Based on http://www.cyberciti.biz/faq/shell-script-to-get-the-time-difference/ | |
START=$(date +%s) | |
# Do something useful | |
END=$(date +%s) | |
DIFF=$(( $END - $START )) | |
echo "Finished in $DIFF seconds." |
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
-- Creates an index if it does not already exist in MySQL. | |
-- Code by RolandoMySQLDBA, minor modifications by Adam Matan. | |
-- License: CC BY-SA, http://creativecommons.org/licenses/by-sa/3.0/ | |
-- Source: http://dba.stackexchange.com/questions/24531/mysql-create-index-if-not-exists/24541#24541 | |
DELIMITER $$ | |
DROP PROCEDURE IF EXISTS `pixels`.`CreateIndex` $$ | |
CREATE PROCEDURE `pixels`.`CreateIndex` |
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
xset -dpms | |
alias star='ssh ' | |
alias pass='ssh ' | |
alias sair='sudo apt-get install' | |
alias srch='apt-cache search' |
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
\documentclass[10pt,landscape]{article} | |
\usepackage{multicol} | |
\usepackage{tabularx} | |
\usepackage{calc} | |
\usepackage{ifthen} | |
\usepackage[landscape]{geometry} | |
\usepackage{verbatim} | |
\usepackage{graphicx} | |
\usepackage{color} |
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/python | |
import subprocess as sp | |
# Pipes used to prevent buffer problems with verbose output. | |
# stdout is redirected to stderr. | |
# shell=True allows spaces in 'cmd'. | |
# communicate() waits for termination and empties buffers into 'output'. | |
cmd = "ls" |
OlderNewer