Thoughtful to the extreme, you are often obsessed with perfection and the rules governing your own personal interests. Your world is black and white. You love to work within a logical system, such as language, computer programming, or mathematics. Manipulating a system that can be completely understood is a distinct pleasure to you, because of your confidence in the underlying veracity of your belief system. Because of your appreciation for logic and order, those who speak or think in a sloppy manner are apt to generate more than their share of wrath. Although very amiable, you are not drawn to friendships out of a sense of personal need. You are just as happy by yourself with a good book or puzzle. Because you are so involved with thought, you will on occasion have difficulty dealing with the day-to-day problems of a normal life. Taking out the trash, doing the dishes, these are often left until the last possible moment, if at all.
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 | |
# Monitors for signals from gnome-screensaver and activates or deactivates | |
# bitcoin miners accordingly. | |
# Params to the mining programs are all hardcoded. Change 'em manually. Leave the "&"s. | |
dbus-monitor --session "type='signal',interface='org.gnome.ScreenSaver',member='ActiveChanged'" | \ | |
while read line; do | |
case "$line" in |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Hola</title> | |
</head> | |
<body style="background-color: gray;"> | |
<div id="outer" style=" background-color:pink;"> | |
<div style="width:5000px; height:200px; background-color: green;"> | |
Hi | |
</div> |
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
# Cumulative totals of lines added/deleted | |
git log --numstat STARTING_HASH..ENDING_HASH -M | grep '^[0-9]\+[[:space:]]\+[0-9]\+[[:space:]]' | awk '{added+=$1} {deleted+=$2} END { print added, deleted }' |
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
" Vim indent file | |
" Language: Yaml | |
" Author: Ian Young | |
" Get it bundled for pathogen: https://github.com/avakhov/vim-yaml | |
if exists("b:did_indent") | |
finish | |
endif | |
"runtime! indent/ruby.vim | |
"unlet! b:did_indent |
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
[core] | |
excludesfile = /Users/ian/.gitignore | |
[color] | |
ui = auto | |
[alias] | |
co = checkout | |
st = status | |
br = branch | |
ci = commit | |
m = checkout master |
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
[diff "ruby"] | |
wordRegex = (@@?|\\b:|[^:]:)?[[:alnum:]_]+|:\"[^\"]+\"|::|[^[:space:]] | |
[diff "php"] | |
wordRegex = \\${0,2}[[:alnum:]_]+|::|->|[^[:space:]] |
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
# Mergesort | |
# precondition: no nils in the array | |
def sort some_array | |
return some_array if some_array.length == 1 | |
half_length = some_array.length / 2 | |
first_half = sort(some_array[0,half_length]) | |
second_half = sort(some_array[half_length, some_array.length - half_length]) | |
result = [] |
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
;; Semicolons are comments | |
> (+ 2 4) | |
6 | |
> (+ 2 4 8) | |
14 | |
> (define double (lambda (a) (+ a a))) | |
> (double 3) | |
6 | |
> '(1 2 3) ; this is a list | |
(1 2 3) |