Skip to content

Instantly share code, notes, and snippets.

View lildude's full-sized avatar
🌻

Colin Seymour lildude

🌻
View GitHub Profile
@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 );

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 / 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
@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 / 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 / nft-flush.sh
Created March 20, 2017 12:11
Flush and delete all nftables rules, chains and tables
#!/bin/bash
#
# Name: nft-flush
# Auth: Gavin Lloyd <gavinhungry@gmail.com>
# Date: 06 Mar 2014
# Desc: Flush and delete all nftables rules, chains and tables
#
NFT=/usr/bin/nft
FAMILIES="ip ip6 arp bridge"
@lildude
lildude / tablebear
Created December 26, 2018 11:26 — forked from matux/tablebear
How to Tables on Bear app. Copy/paste example _as is_ on a note. (https://www.reddit.com/r/bearapp/comments/8a2k04/how_to_craft_pseudo_tables_on_bear/)
# Playgrounds Markup Cheat Sheet
## Callouts
::Name Description PG QH::
[Note](https://developer.apple.com/library/content/documentation/Xcode/Reference/xcode_markup_formatting_ref/Note.html#//apple_ref/doc/uid/TP40016497-CH39-SW1) Adds a Note callout. ✓ ✓
[Example](https://developer.apple.com/library/content/documentation/Xcode/Reference/xcode_markup_formatting_ref/Example.html#//apple_ref/doc/uid/TP40016497-CH58-SW1) Adds an Example callout. ✓
[Experiment](https://developer.apple.com/library/content/documentation/Xcode/Reference/xcode_markup_formatting_ref/Experiment.html#//apple_ref/doc/uid/TP40016497-CH36-SW1) Adds an Experiment callout. ✓ ✓
[Important](https://developer.apple.com/library/content/documentation/Xcode/Reference/xcode_markup_formatting_ref/Important.html#//apple_ref/doc/uid/TP40016497-CH37-SW1) Adds an Important callout ✓ ✓
[Custom Callout](https://developer.apple.com/library/content/documentation/Xcode/Reference/xcode_markup_formatting_ref/CustomCallouts.html#//apple_re
@lildude
lildude / v7.11.1-source.lean.json
Created October 26, 2020 14:25
Testing Lean grammars
{
"name": "Lean",
"scopeName": "source.lean",
"patterns": [
{
"include": "#comments"
},
{
"name": "meta.definitioncommand.lean",
"begin": "\\b(?\u003c!\\.)(inductive|coinductive|structure|theorem|axiom|axioms|abbreviation|lemma|definition|def|instance|class|constant)\\b\\s+(\\{[^}]*\\})?",
# This file contains custom benchmark configs, in addition to the ones generated
# in the source code.
# CUDA 9.x + Volta performance regressions in cuDNN from 7.1.4 to 7.3.0, but then fixed in 7.3.1.
convolution_benchmark {
label: "NHWC_128x20x20x56x160"
input {
dimension: [128, 56, 20, 20]
data_type: DATA_HALF
format: TENSOR_NHWC
SHELL = /bin/sh
# V=0 quiet, V=1 verbose. other values don't work.
V = 0
Q1 = $(V:1=)
Q = $(Q1:0=@)
ECHO1 = $(V:1=@ :)
ECHO = $(ECHO1:0=@ echo)
NULLCMD = :