Skip to content

Instantly share code, notes, and snippets.

View lildude's full-sized avatar
🐶
Puppeeeeeeee

Colin Seymour lildude

🐶
Puppeeeeeeee
View GitHub Profile
@lildude
lildude / auto-deploy.md
Created July 2, 2016 16:54 — forked from domenic/0-github-actions.md
Auto-deploying built products to gh-pages with Travis

Auto-deploying built products to gh-pages with Travis

This is a set up for projects which want to check in only their source files, but have their gh-pages branch automatically updated with some compiled output every time they push.

Create a compile script

You want a script that does a local compile to e.g. an out/ directory. Let's call this compile.sh for our purposes, but for your project it might be npm build or gulp make-docs or anything similar.

The out/ directory should contain everything you want deployed to gh-pages. That almost always includes an index.html.

@lildude
lildude / TagCloud.as.diff
Last active December 23, 2015 13:41
Patch that fixes the Flash tag cloud used by wp-cumulus and HB-Cumulus (https://github.com/lildude/HB-Cumulus) (already implemented in HB-Cumulus).
--- /Users/col/Downloads/tmpTors/wp-cumulus/flash sources/com/roytanck/wpcumulus/TagCloud.as
+++ TagCloud.as
@@ -39,6 +39,7 @@
import flash.events.ContextMenuEvent;
import flash.net.navigateToURL;
import flash.net.URLRequest;
+ import flash.net.LocalConnection;
import com.roytanck.wpcumulus.Tag;
public class TagCloud extends MovieClip {
@lildude
lildude / disconnect.rb
Last active August 29, 2015 14:02 — forked from tmcw/disconnect.rb
#!/usr/bin/env ruby
## disconnect
# ./disconnect.rb -u yourusername [-o /your/path] [-p yourhttpproxyserver]
#
# Updated: 8 Jun '14 to work with the new Garmin login redirect step (@lildude)
#
# This is a command-line utility for the bulk-downloading of run data from
# the connect.garmin.com web application, which has lackluster export

Keybase proof

I hereby claim:

  • I am lildude on github.
  • I am lildude (https://keybase.io/lildude) on keybase.
  • I have a public key whose fingerprint is 81D0 3EE9 0A0D CBBB 8EFA 37EC 4754 A3E7 DC27 3608

To claim this, I am signing this object:

@lildude
lildude / coinslider-demo-excerpt.php
Last active December 20, 2015 04:18
PHP code and phpZenfolio calls used in the Coin Slider example at http://phpzenfolio.com
<div id="slider" style="background-color:#fff;margin:0 auto;">
<?php
if ( !class_exists( 'phpZenfolio' ) ) {
require_once( 'phpZenfolio/phpZenfolio.php' );
}
$out = '';
$f = new phpZenfolio( 'AppName=phpZenfolio Demo (http://phpzenfolio.com)' );
$f->enableCache( 'type=fs', 'cache_dir='.HABARI_PATH . '/user/cache/', 'cache_expire=86400' );
// Taken from the source of http://demo.zenfolio.com/
$set = $f->LoadPhotoSet( 844670625, 'Level1', TRUE );