Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block tuxtina

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
tuxtina / TagCloud.html
Created Jan 31, 2015
Delicious JavaScript Tag API Replacement (List + Simple Tag Cloud)
View TagCloud.html
<title>Delicious JavaScript Tag API Replacement (Tag Cloud)</title>
<div id="deliciousPlaceholder"></div>
<script type="text/javascript">
"use strict";
var username = "delicious";
tuxtina / gist:5694143
Created Jun 2, 2013
Quick & dirty PHP syntax check on save for use with TextWrangler. Put into ~/Library/ApplicationSupport/TextWrangler/Attachment Scripts/Document.scpt.
View gist:5694143
on documentDidSave(currentDoc)
set fileName to the name of the currentDoc as string
if ((offset of ".php" in fileName) > 1) then
set f to the file of the currentDoc
set filePath to the POSIX path of f
set lintOutput to do shell script "php -l \"" & filePath & "\"; exit 0"
if ((offset of "No syntax errors detected" in lintOutput) 1) then
display dialog lintOutput buttons {"OK"} default button "OK" with title "PHP Syntax Error"
end if
end if
You can’t perform that action at this time.