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 | |
class CopyAsanaWorkspace | |
{ | |
public $apiKey; /// Get it from http://app.asana.com/-/account_api | |
public $indentationLevel = 0; | |
public $verbose = true; | |
private $projectFields = array('name','color','notes'); |
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
$tag_colors_intense: #0563BB #C96408 #C70078 #10998F #649218 #C85CEF #CC8A90 #244D6F #9EA9CB #4D286B #EA9B5E #F95BC8 #9B0046 #783DB5 #72B2F7 | |
$tag_colors_green: #49B51B #6E8163 #B0FBB0 #5D821A #2AFD5A #2FA87E #90AB66 #23BC58 #92EB61 #7EEC8A #8ABE2B #8CB68D #6BDF23 #1AC67F #8CEBB7 | |
$tag_colors_blue: #4CE68D #63825C #7AE42C #5C9020 #D2EE95 #54B47A #AADB4B #AED7A3 #4BB33A #398D42 #65E55B #9DBB6D #60813D #A2D66A #88E593 | |
$tag_colors: $tag_colors_intense | |
@mixin tag($n) | |
$color: nth($tag_colors, $n) | |
background: $color | |
@if lightness($color) > 60 | |
color: #111 |
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
def tag_class(tag,max_number=15) | |
srand(tag.id) | |
tag_id = rand(1..max_number) | |
"tag#{tag_id}" | |
end |
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
$(".crossword table thead span, .crossword table tfoot span").css({ | |
"transform": "translate(26px, 15px) rotate(-25deg)", | |
"text-align": "left" | |
}); |
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
window.CrossCrutch = {} | |
window.CrossCrutch.check = function() { | |
var messages = []; | |
$(".puzzle table tbody tr").each(function (i,e) { | |
var $row = $(e); | |
var $cols = $row.find("th,td"); | |
var $rowHeader = $cols.filter("th"); | |
var $other = $cols.filter("td"); |
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 | |
while [ true ]; do | |
echo -n `date '+%Y-%m-%d_%H:%M:%S'` ; echo -n ' '; awk '{print date $1,$2,$3}' /proc/loadavg | |
sleep 5 | |
done |
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
DELIMITER $$ | |
/** qStart (DATE date) | |
* Get the date of the start of a quarter given a date in that quarter. | |
*/ | |
DROP FUNCTION IF EXISTS `qStart`$$ | |
CREATE FUNCTION `qStart`(d DATE) RETURNS DATE | |
DETERMINISTIC | |
BEGIN | |
RETURN d - INTERVAL MOD(MONTH(d)-1,3) MONTH - INTERVAL DAY(d)-1 DAY; |
NewerOlder