Skip to content

Instantly share code, notes, and snippets.


William Entriken fulldecent

  • Philadelphia USA
View GitHub Profile
View unroll-recursion.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef struct node {
int value;
struct node *left;
struct node *right;
} node;
View encfs with exclude
# NOTE: See .encfs6.xml file in this directory!
plaintext_dir = "/Volumes/FD Disk/"
filtered_dir = "/Volumes/FD Disk/FILTERED NOSYNC/"
ciphertext_dir = "/tmp/fd-disk-encrypted/"
backup_location = ""
backup_location_tmp = ""
photo_dir = "/Volumes/FD Disk/media/my photos/"
View backup-to-insecure-remote-server
## backup-to-insecure-remote-server v1.0
## William Entriken /
## * Create a restore action
## * Make a quick task to confirm that restoring works
fulldecent / fen2html.html
Last active Oct 19, 2019
Paste in a Chess FEN position to get a board representation in HTML
View fen2html.html
<!-- COPIED FROM -->
<!doctype html>
<html lang="en">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
table.chess { border: 1px solid black; margin: 2px; font-size: xx-large}
fulldecent / chriscms
Last active Jan 3, 2016
A knowledge management system we created in under 5 minutes
View chriscms
$title = "Knowledge Base 0.1";
$datadir = './data/';
if (!is_dir($datadir) || !is_writable($datadir)) die('The DATADIR directory must be writable');
<title><?= $title ?></title>
fulldecent / Google Analytics Experiment Dashboard.php
Last active Oct 24, 2020
Google Analytics dashboard. Shows a lit of all your experiments with Bootstrap 3 and the current progress of those experiments.
View Google Analytics Experiment Dashboard.php
// Service account code from
// Analytics code from
require_once 'google-api-php-client/src/Google_Client.php';
require_once 'google-api-php-client/src/contrib/Google_AnalyticsService.php';
// Set your client id, service account name (AKA "EMAIL ADDRESS"), and the path to your private key.
// For more information about obtaining these keys, visit:
fulldecent / reminders.scpt
Created Oct 20, 2012 — forked from statonjr/reminders.scpt
Write out Reminders to file on desktop
View reminders.scpt
tell application "Reminders"
set todo_accounts to every account
-- accounts have lists. loop thru accounts to get their lists.
repeat with i from 1 to length of todo_accounts
tell account i
set todo_lists to get every list
-- lists have reminders. loop thru lists to get their reminders
repeat with j from 1 to length of todo_lists
tell list j
set todos to (get reminders)
View gist:3909763
echo "FD & mnh
FD & minamhere
fd & MNH
Fd & MNH
fulld & mnh
fulld & minamhere
fulldecent & mnh
fulldecent & minamhere
fd MNH
fulld MNH
fulldecent /
Last active Oct 8, 2015
Perl Sudoku solver
# usage: $0 00030050204050205040520370782340520508485019857294857049587
use integer;
@A = split //, <>;
sub R {
return if grep { # if this solution is invalid, bail
($_ / 9 == $i / 9 # find pairs of boxes to compare