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
import XMonad | |
import XMonad.Hooks.DynamicLog | |
import XMonad.Hooks.ManageHelpers | |
import XMonad.Hooks.ManageDocks | |
import XMonad.Hooks.UrgencyHook | |
import XMonad.Hooks.FadeInactive | |
import qualified XMonad.StackSet as W | |
import XMonad.Util.Run (spawnPipe, hPutStrLn) | |
import XMonad.Util.EZConfig | |
import XMonad.Util.WorkspaceCompare |
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
"-64431" | |
| | |
------------------------- | |
/ \ | |
"13169" "-50918" | |
| | | |
--------------------- -- | |
/ \ / \ | |
"60088" "50455" ∅ ∅ | |
| | |
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
#include <Stepper.h> | |
// change this to the number of steps on your motor | |
#define STEPS 64 | |
#define SWITCH_PIN A0 | |
// create an instance of the stepper class, specifying | |
// the number of steps of the motor and the pins it's | |
// attached to | |
Stepper stepper(STEPS, 8, 10, 9, 11); |
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
escape = (str) -> | |
return '' if str is '' | |
first = str[0] | |
rest = str[1..-1] | |
first = if first is "'" or first is "\\" | |
"\\#{first}" | |
else | |
first | |
return first + escape(rest) | |
str = [ |
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 | |
echoerr() { echo "$@" 1>&2; } | |
upper() { echo "$@" | tr [a-z] [A-Z]; } | |
if [ $# -lt 5 ]; then | |
echoerr "Exports data from mysql database in tables matching a like pattern e.g. 'table_%'" | |
echoerr "Usage: $0 host dbname dbuser dbpass pattern" | |
exit 1 |
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
* | |
********************************************** *********************************************** | |
** | |
******************************************** ************************************************* | |
** | |
****************************************** *************************************************** | |
** | |
**************************************** ***************************************************** | |
** | |
************************************** ******************************************************* |
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
* | |
** | |
*** | |
** * | |
***** | |
** * | |
*** ** | |
** * *** | |
******* * | |
** *** |
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/sh | |
# prepend i3status with wb01 | |
# metrics | |
i3status | while : | |
do | |
apache1=`ssh apache1 'ps -ef | grep httpd | wc -l'` | |
apache2=`ssh apache2 'ps -ef | grep httpd | wc -l'` | |
read line |
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
Header | |
======= | |
This is a paragraph. Hello! | |
Another paragraph. This time | |
with more than one line. | |
| | |
V |
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
2) Login should warn on authentication errors: | |
TypeError: Object #<XMLHttpRequest> has no method 'open' | |
at Object.send (/home/gnidan/src/ui/selling/node_modules/jqueryify/index.js:8068:11) | |
at Function.ajax (/home/gnidan/src/ui/selling/node_modules/jqueryify/index.js:7580:15) | |
at Function.authenticate (/home/gnidan/src/ui/selling/app/models/session.coffee:29:16) | |
at Login.onSubmit (/home/gnidan/src/ui/selling/app/controllers/login.coffee:37:22) | |
at Object.<anonymous> (/home/gnidan/src/ui/selling/node_modules/spine/lib/spine.js:114:21) | |
at Object.<anonymous> (/home/gnidan/src/ui/selling/node_modules/jqueryify/index.js:3256:9) | |
at Object.<anonymous> (/home/gnidan/src/ui/selling/node_modules/jqueryify/index.js:2875:28) | |
at Object.trigger (/home/gnidan/src/ui/selling/node_modules/jqueryify/index.js:3144:12) |