Skip to content

Instantly share code, notes, and snippets.

View troyharvey's full-sized avatar
:octocat:

Troy Harvey troyharvey

:octocat:
View GitHub Profile
@troyharvey
troyharvey / gist:2956277
Created June 19, 2012 20:15
Links for CIS 150 guest lecture
@troyharvey
troyharvey / DateAdapter.java
Created August 30, 2011 16:25
Marshalling ISO 8601 dates with a custom JAXB DateAdapter
package com.acme.util;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.TimeZone;
import java.util.logging.Logger;
import javax.xml.bind.annotation.adapters.XmlAdapter;
@troyharvey
troyharvey / gist:4f4e6fa41635e350c9fe
Created July 10, 2013 19:20
AngularJS Speaker Notes

Overview

  • Troy Harvey, IT Consultant at ZyQuest

  • Woodport Doors project

  • Demonstrate door.bifold ng-model binding.

    scope = angular.element($0).scope()
    scope.DoorService.door.bifold = false
    

Keybase proof

I hereby claim:

  • I am troyharvey on github.
  • I am troyharvey (https://keybase.io/troyharvey) on keybase.
  • I have a public key ASCz9PmMG0ER6PZQM3ew7Fxb78b7UPnZEAMjYgXod4BJKgo

To claim this, I am signing this object:

@troyharvey
troyharvey / gephi-graph-streaming-cayley.md
Last active August 1, 2018 13:36
Using the Gephi Graph Streaming Plugin with Cayley

Cayley is an open-source graph inspired by the graph database behind Freebase and Google's Knowledge Graph. Gephi is an open-source graph visualization tool. The Graph Streaming plugin for Gephi allows you to visualize a Cayley graph or a stream of real-time changes to a Cayley graph.

  1. Install Cayley

     brew install cayley
    
  2. Start Cayley with the Movie Data sample

@troyharvey
troyharvey / ReEncryptDataCommand.php
Created September 18, 2019 19:26
Encrypt data after changing the APP_KEY
<?php
namespace App\Console\Commands;
use DB;
use Illuminate\Encryption\Encrypter;
use Illuminate\Support\Str;
use Illuminate\Console\Command;
class ReEncryptData extends Command
@troyharvey
troyharvey / README.md
Created May 29, 2020 03:17
Transform the opawg Podcast User Agent list into a jsonl file for BigQuery
  1. Generate a jsonl file with all the Podcast User Agents.

     node agents.js
    
  2. Use the BigQuery console to create a table and load the podcast-user-agents.jsonl file into the new table.

@troyharvey
troyharvey / backpacking-checklist-cool.md
Last active May 25, 2022 11:34
3 Night Cool Weather Backpacking Trip Checklist
@troyharvey
troyharvey / my-git-workflow.md
Last active June 28, 2022 22:20
A brief description of how I like to use git

My git Workflow

This is just one way of using git/GitHub. But I have been using this same basic flow for 10 years and I rarely have trouble.

  1. Checkout the main branch

     git checkout main
    
  2. Pull the most recent version of main from GitHub

@troyharvey
troyharvey / direnv.md
Created June 28, 2022 23:06
Automatically load .env files