try
do shell script "ls /Volumes/Terrabyte/"
do shell script "ls /Volumes/TerrabyteTwo/"
on error
display dialog "External drive not mounted."
error number -128 #supposedly kills the current Automator workflow
end try
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
; <COMPILER: v1.0.35.10> | |
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 foreach ($katies_items as $i=>$item) { ?> | |
<li<?php echo ($i % 2 == 0) ? " class='special'" : "" ?>> | |
.. stuff goes here | |
</li> | |
<?php } ?> |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | |
<head> | |
<script language="javascript" type="text/javascript"> | |
//<![CDATA[ | |
function getCount(){ | |
removeAllAnswers(); |
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 | |
$reader = new XMLReader(); | |
$reader->open('http://weather.yahooapis.com/forecastrss?p=' . $_REQUEST['Digits']); | |
while ($reader->read()) { | |
if($reader->name == "yweather:location"){ | |
$location = $reader->getAttribute("city"); | |
} | |
if($reader->name == "yweather:condition"){ | |
$condition = $reader->getAttribute("text"); |
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
XMLElement xml; | |
void setup() { | |
size(200, 200); | |
String url = YOUR_URL_HERE; | |
xml = new XMLElement(this, url); | |
XMLElement[] tracks = xml.getChildren("recenttracks/track"); | |
for (int i = 0; i < tracks.length; i++) { | |
XMLElement artist = tracks[i].getChild("artist"); |
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
import processing.pdf.*; | |
// Size of each cell in the grid, ratio of window size to video size | |
// 80 * 8 = 640 | |
// 60 * 8 = 480 | |
int videoScale = 8; | |
// Number of columns and rows in our system | |
int cols, rows; |
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
curl -d "username=XXXXX&password=XXXXX" --cookie-jar cookies.txt -i -X POST https://www.newsblur.com/api/login | |
curl -b cookies.txt -o NewsBlur_$(date +"%Y-%m-%d").opml https://www.newsblur.com/import/opml_export |
I hereby claim:
- I am jpfinley on github.
- I am heyfinley (https://keybase.io/heyfinley) on keybase.
- I have a public key whose fingerprint is RETU RN T HIS. PGP. GET_ FING ERPR INT( ); }
To claim this, I am signing this object: