This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
| [{"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 |
| 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 |
| 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 |
| #!/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 |
| 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"); |
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
| <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 |
| 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 |