Skip to content

Instantly share code, notes, and snippets.

View colindean's full-sized avatar
🏆
Helping others find happiness and serenity

Colin Dean colindean

🏆
Helping others find happiness and serenity
View GitHub Profile
@colindean
colindean / oo.php
Created September 22, 2010 19:02 — forked from dhotson/oo.php
<?php
// Define the 'class' class
$class = Obj()
->fn('new', function ($class) {
$newClass = Obj($class->methods)
->fn('new', function($class) {
$obj = Obj($class->imethods);
$args = func_get_args();
array_shift($args);
@colindean
colindean / Gemfile
Last active June 2, 2017 11:33
Simple DNSSD FTPS client/server written as an example of a secure file transfer system of peer-to-peer nature with autodiscovery, ala https://pay.reddit.com/r/ruby/comments/1y13h4/secure_peertopeer_in_ruby/
source 'https://rubygems.org'
gem 'dnssd'
gem 'double-bag-ftps'
gem 'ftpd'
@peterkeen
peterkeen / export_tiller.rb
Created March 4, 2018 14:25
Export a Tiller transaction spreadsheet as a ledger file while checking for duplicates in ledger-web database.
require 'rubygems'
require 'bundler/setup'
require 'pg'
require 'sequel'
require 'ledger_gen'
require 'google_drive'
SPREADSHEET_ID = 'your-google-sheet-id'
DATABASE_URL = 'postgres://username:password@host/database'
@calkan
calkan / gist:eaad0bc4458da16a72dd
Last active January 5, 2021 02:09
Michael Hoffman's crazy bash_history backer upper on git
1 - Create a *private* GitHub/Bitbucket or similar git repo. Here I assume the repo is:
https://github.com/calkan/bash_history.git
2 - Create .history directory and initialize it for the repo:
mkdir $HOME/.history
cd $HOME/.history
git init
touch README.md
@RemyPorter
RemyPorter / MarkovGlyphs.pde
Last active May 29, 2021 16:33
A Markov Chain-based glyph generator
/**
A markov-chain based glyph generator. Given sequences of points as a corpus, this will create a markov chain based on those points.
Then, by sampling the chain, we can generate entirely new glyphs that weren't in our original dataset.
Press "r" to generate a new frame. Press "s" to save the frame to a file (with a random UUID as its name).
Requires the PostFx library: https://github.com/cansik/processing-postfx/
*/
import java.util.*;
@colindean
colindean / SEI_Issue_Classifcation_Quadrants.svg
Created November 7, 2017 21:40
SEI Issue Classification Quadrants
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Burgestrand
Burgestrand / README.md
Created February 3, 2012 23:20
A ruby script to construct magnet links out of .torrent files

Magneto

It reads your torrents. Spit out magnet URIs.

Example Usage

$ ./magneto.rb magneto.rb.torrent

Results in:

Hi David,
I came across your profile online and wanted to reach out about Development
Opportunities here at Groupon. The company is growing, and we're always
looking for folks with solid skills that can make positive contribution to
our continued success. Any chance you'd be open to a quick conversation
about opportunities, or for any possible networking potential? If so, let me
know when you're free and we can set up a time to chat. Also, if you are
interested, it would be great if you could forward a current resume over
that I can take a look at. I look forward to hearing back from you! Please
let me know if you have any questions.
@patik
patik / osx-special-chars.ahk
Last active November 28, 2022 12:02 — forked from aarongustafson/osx-special-chars.ahk
AutoHotKey stuff
#UseHook
!VKC0SC029::Return ; grave -> the grave ` accent gave some probs, used the virtualkey + scancode instead
!e::Return ; acute
!i::Return ; circumflex
!t::Return ; tilde
!u::Return ; umlaut
; 1 2 3 4 5 6 7 8 9 1
; 0
; r g G a A c C t T u U
<?php
// Define the 'class' class
$class = Obj()
->fn('new', function ($class) {
$newClass = Obj($class->methods)
->fn('new', function($class) {
$obj = Obj($class->imethods);
$args = func_get_args();
array_shift($args);