Skip to content

Instantly share code, notes, and snippets.

View ErnieAtLYD's full-sized avatar

Ernie Hsiung ErnieAtLYD

View GitHub Profile
@ErnieAtLYD
ErnieAtLYD / gist:8413816
Created January 14, 2014 06:06
All DecoBike locations on Miami Beach, as an XML file that was to be read by the Google Maps Javascript API. Hidden behind a web app. Information was made to be freed! Data taken from the public url: http://www.decobike.com/playmoves.xml
<locations>
<location>
<Id>3</Id>
<Address>Not in Service</Address>
<Distance>0</Distance>
<Latitude>25.8340416</Latitude>
<Longitude>-80.02682</Longitude>
<Bikes>0</Bikes>
<Dockings>3</Dockings>
<StationAdList/>
@ErnieAtLYD
ErnieAtLYD / gist:8983125
Created February 13, 2014 20:25
Draft 1 of Miami-Dade XML created by Marco, Cristhian & Hal
<?xml version="1.0" encoding="utf-8"?>
<law>
<structure>
<unit label="title"" identifier="Sec. 33H-17." order_by="Sec. 33H-17." level="">PART III CODE OF ORDINANCES</unit>
<unit label="chapter"" identifier="Sec. 33H-17." order_by="Sec. 33H-17." level="">Chapter 33H PARK IMPACT FEE ORDINANCE
</unit>
</structure>
<catch_line>Sec. 33H-1. Short title, applicability and purpose.<</catch_line>
<text>
@ErnieAtLYD
ErnieAtLYD / welcome.txt
Created August 13, 2014 21:59
Code for Miami "welcome" projector text that can be displayed for OpenHack meetings
CODE FOR MIAMI - Civic Hacking Brigade
August 4th, 2014
FOR WIFI:
Use LabRats 5GHz OR LabRats 2.4GHz or TheLabMiami
Password: labrats123$
FIRST THING'S FIRST:
- FILL THE ATTENDENCE SHEET: http://tinyurl.com/cfmattend
- If you'd like check out our projects: http://projects.codeformiami.org
@ErnieAtLYD
ErnieAtLYD / index.html
Last active August 29, 2015 14:11
Simple Leaftlet based map of FIU
<html>
<head>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.6.4/leaflet.css" />
<script src="http://cdn.leafletjs.com/leaflet-0.6.4/leaflet.js"></script>
<style type="text/css">
#mapdiv { height: 100%; }
</style>
</head>
<body>
<div id="mapdiv"></div>
@ErnieAtLYD
ErnieAtLYD / flask-to-heroku.md
Last active September 15, 2015 22:57
The way I (total n00b) got my Flask App Working with Heroku

The way I (total n00b) got my Flask App Working with Heroku

  • Set up a github repo
  • Create a procfile
  • Make sure that gunicorn and all your requirements are in a requirements.txt file
$ pip install gunicorn
$ pip freeze > requirements.txt
@ErnieAtLYD
ErnieAtLYD / city-of-miami-fence-permit.md
Last active August 3, 2016 18:43
Instructions for pulling a fence permit in the city of Miami

You need to contact the zoning department to find out whether the work you wish to do is allowed.

Contact information: Ryan Shedd, [email protected] or 305-416-1315 Jacqueline Ellis, [email protected] or 305-416-1446

If so, you may proceed to obtain a building permit following the procedures below. The required documentation would be a permit application and two sets of plans (survey, fence detail). The permitting process consists of:

  1. Obtaining a permit application and filling it out. The application must be signed and notarized by both the owner and qualifier.

  2. Issuing a process number which may be started online on iBuild Miami, or at our permit counter.

@ErnieAtLYD
ErnieAtLYD / 0_reuse_code.js
Created October 18, 2016 12:47
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@ErnieAtLYD
ErnieAtLYD / setup.sh
Last active November 10, 2017 20:08
Getting WordPress Unit Tests working through CodeShip Basic (as of November 2017)
phpenv local 7.0
composer install --prefer-dist --no-interaction
curl -s "https://wordpress.org/latest.tar.gz" > "/tmp/wordpress.tar.gz"
mkdir -p /tmp/wordpress
tar --strip-components=1 -zxmf /tmp/wordpress.tar.gz -C /tmp/wordpress/
curl -s "https://raw.github.com/markoheijnen/wp-mysqli/master/db.php" > "/tmp/wordpress/wp-content/db.php"
mkdir -p /tmp/wordpress-tests-lib
svn co --quiet https://develop.svn.wordpress.org/tags/4.8.3/tests/phpunit/includes/ /tmp/wordpress-tests-lib/includes
@ErnieAtLYD
ErnieAtLYD / WPEngine Script
Created November 14, 2018 18:30 — forked from leglesslizard/WPEngine Script
Script to setup WPEngine site locally on VVV. This takes a backup.zip of a WPEngine install and creates a local VVV install. It extracts wp-content and database from the backup and installs locally. It also points the local install to a git repo of your choosing. Uses composer to handle dependencies.
1. download backup of live WPEngine site
2. change directory to vagrant/www
3. git clone [email protected]:pie/vvv-init-wpengine.git "sitename"
4. run search and replace on "sitename" directory (replace site-name with wpengine install name)
5. move WPEngine backup.zip into "sitename" directory (DO NOT RENAME IT)
6. run this script (./wpengine-init.sh) and follow the instructions (site name = wpengine install name = "sitename" directory)
7. before vagrant provision is run script notifies you to update the composer.json, make any required changes
8. either provision now or later and after it has run check all loaded properly
@ErnieAtLYD
ErnieAtLYD / Claude Style Instructions 1.txt
Last active November 30, 2024 07:32
Claude Style instructions based on my blog entries
Summary:
Deliver intellectually structured content through a sardonic, self-deprecating lens
Your writing style is characterized by a distinctive blend of casual conversationalism and structured narrative, now with an amplified sense of self-deprecating humor. Use frequent em dashes, parenthetical asides, and italicized emphasis to create a playful, slightly neurotic narrative voice. Employ a mix of short and long paragraphs alongside organized headers and lists, creating dynamic pacing that pokes fun at your own writing process. Balance serious topics with increasingly sardonic dark humor, incorporating pop culture references and specific details that highlight your own awkward observations. Continue using sentence fragments intentionally for comedic emphasis and build complex narratives through accumulated, slightly embarrassing details. Increase meta-commentary on your writing, adding more self-aware asides that humorously critique your own narrative choices. Maintain your strategic formatting - asterisk