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
<?php | |
/* | |
Extract the data represented as an array of columns and represent it as an | |
array of rows. | |
Assert that the data in all non-empty columns is of the same length. | |
Represent empty columns with an array of $zeros. | |
*/ |
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
/* | |
Less Flimsy Arduino Ocelli | |
Get the direction of the source of light from three photoresistors. | |
Andrej Primc <aprimc@gmail.com> (http://fgh.si) | |
*/ | |
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
/* | |
NOTE: don't use this, use https://gist.github.com/3968902 instead | |
Flimsy Arduino Ocelli | |
Get the direction of the source of light from three photoresistors and | |
present it as a number on a clock dial. | |
Andrej Primc <aprimc@gmail.com> (http://fgh.si) inspired by the bees | |
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 python | |
# -*- coding: utf-8 -*- | |
from copy import copy | |
class T: | |
def __init__(self, tag, value = None, props = None, comment = None, head = False, assign = None, agree = None, consume = None): | |
# tag |
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
%% @author Andrej Primc | |
%% @copyright 2011 Andrej Primc | |
%% @doc Utility for parsing robots.txt file. | |
-module(robots_txt). | |
-export([parse/1, parse/2, is_allowed/2, is_allowed/3]). | |