Skip to content

Instantly share code, notes, and snippets.

[{"name":"locations","color":"Green","position":{"x":256,"y":91},"increment":true,"timestamp":true,"softdelete":true,"column":[{"name":"name","type":"string","length":"50","defaultvalue":"","enumvalue":"","ai":false,"pk":false,"nu":false,"ui":false,"in":false,"un":false,"fillable":true,"guarded":false,"visible":true,"hidden":false,"colid":"c35","order":0},{"name":"hours","type":"text","length":"","defaultvalue":"Coming Soon","enumvalue":"","ai":false,"pk":false,"nu":false,"ui":false,"in":false,"un":false,"fillable":true,"guarded":false,"visible":true,"hidden":false,"colid":"c43","order":1}],"relation":[{"extramethods":"","foreignkeys":"","name":"district","relatedmodel":"districts","relationtype":"belongsTo","usenamespace":""}],"seeding":[]},{"name":"districts","color":"Green","position":{"x":822,"y":36},"increment":true,"timestamp":true,"softdelete":true,"column":[],"relation":[{"extramethods":"","foreignkeys":"","name":"locations","relatedmodel":"locations","relationtype":"hasMany","usenamespace":""}],"seed
@ts
ts / php_2014-01-31-101911_ts.crash
Created January 31, 2014 17:44
Segmentation fault with Rocketeer
Process: php [81954]
Path: /usr/local/Cellar/php54/5.4.23/bin/php
Identifier: php
Version: 0
Code Type: X86-64 (Native)
Parent Process: bash [69546]
Responsible: Terminal [69338]
User ID: 501
Date/Time: 2014-01-31 10:19:10.299 -0700
@ts
ts / image-tag.scpt
Created November 20, 2013 20:02
Copy <img /> tag with dimensnions
set this_file to choose file without invisibles
try
tell application "Image Events"
-- start the Image Events application
launch
-- open the image file
set this_image to open this_file
-- get dimensions of the image
copy dimensions of this_image to {W, H}
set file_name to name of this_image
@ts
ts / html5video.sh
Created October 29, 2013 22:20 — forked from dajoho/html5.sh
#!/bin/bash
# FILTERS="-filter:v crop=504:374:6:4,unsharp=5:5:1.0:5:5:0.0";
FILTERS="";
RESIZE="960x540";
VIDEO_BITRATE="2048k";
AUDIO_BITRATE="96k";
############################################################
for f in "$@"
do
@ts
ts / display-between-hours.php
Last active December 25, 2015 01:09
Conditional based on hour of day (and day of week)
date_default_timezone_set('America/Denver');
$H = (int) date('H');
$N = (int) date('N');
if ( $N < 6 && ($H >= 9 || $H < 1)) {
echo "hey @ $H on $N";
}
$prefixes: ("-webkit-","-moz-", "-o-", "-ms-", "");
@mixin prefix($property, $value) {
@each $prefix in $prefixes {
#{$prefix}#{$property}: #{$value};
}
}
@include prefix(transition, "color #{$animation-speed} linear");
@include prefix(transition, "color #{$animation-speed} linear, margin-left #{$animation-speed} linear");
@ts
ts / about.md
Created September 12, 2011 17:43 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer
@ts
ts / ts.conf
Created November 6, 2009 00:12
<Directory "/Users/*/Sites">
AllowOverride FileInfo AuthConfig Limit Indexes
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
<Limit GET POST OPTIONS>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS>
Order deny,allow
Deny from all
@ts
ts / LogIt.scpt
Created September 24, 2009 14:06 — forked from sippey/LogIt.scpt
using terms from application "Quicksilver"
on process text log_text
set theDate to (do shell script "date '+%m-%d-%Y %H:%M'")
set theText to log_text
set theText to theDate & " " & theText & "
"
set thePosixFilePath to "/Users/ts/Dropbox/Sync/todo.txt" as string
set theFilePath to POSIX file thePosixFilePath
set theFileReference to open for access theFilePath with write permission
write theText to theFileReference starting at eof