Skip to content

Instantly share code, notes, and snippets.

const alphabet : string[] = "oɭɿʟpdzλuy6qg".split('');
const minWordLength : number = 2;
const maxWordLength : number = 8;
const minSentenceLength : number = 2;
const maxSentenceLength : number = 9;
function generateWord() {
let wordLength : number = Math.floor(Math.random() * (maxWordLength)) + (minWordLength);
let word : string = "";
let lastLetterIndex : number;

Keybase proof

I hereby claim:

  • I am jamesondh on github.
  • I am jamesondh (https://keybase.io/jamesondh) on keybase.
  • I have a public key ASCLJf-hyAEjF84W5orgKyMCW8_jDjFEz_6HdFs54Lb8Owo

To claim this, I am signing this object:

@jamesondh
jamesondh / index.html
Last active July 31, 2016 20:16
HTML5 Template
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title>TITLE</title>
@jamesondh
jamesondh / chromium-setup.md
Last active August 29, 2015 14:21
Chromium setup for privacy
  1. Disable all features under Privacy and Passwords and forms in the options menu.
  2. Untick Continue running background apps when Chromium is closed under System in the options menu.
  3. Enable Keep local data only until you quit your browser in the Content settings button under the Privacy section in the options menu.
  4. Enable Smooth Scrolling in the experimental settings menu.
  5. Set DuckDuckGo as the default search engine.
  6. Install uBlock Origin from the Chrome Store and enable I am an advanced user.
  7. After setting up your bookmarks, configuring any other options, and clearing browser history, run chmod a-w -R ~/.config/chromium/Default/* in your terminal to disable history logging and make your Chromium profile static.
  8. That's all! Enjoy your secure, speedy, ad-free, a
@jamesondh
jamesondh / reload.html
Created May 24, 2015 12:04
Javascript automatic page reloader for web development
<!-- Page reloader --> <script>setTimeout(function(){document.location.reload(true)},10000)</script>
#!/bin/bash
# Simple script for updating various git repositories and upgrading
# system packages, configure git repo by adding location to the array
# variable below. This script will only work on Debian and Fedora-based
# operating systems.
repos=( ~/.dotfiles ~/.emacs.d )
# Update git repositories
echo "Updating git repositories...."
@jamesondh
jamesondh / bots.rb
Created July 12, 2014 23:19
twitter ebooks / bots.rb file
#!/usr/bin/env ruby
require 'twitter_ebooks'
include Ebooks
CONSUMER_KEY = ""
CONSUMER_SECRET = ""
OATH_TOKEN = ""
OAUTH_TOKEN_SECRET = ""
@jamesondh
jamesondh / gist:5366766
Created April 11, 2013 20:10
Minecraft server world switcher
# This script makes it easy to switch between worlds and server.properties in a Minecraft server
# Remember to shut down the server before running.
# How to use: Make a folder called "maps" and make a folder for each map you want to use inside. Inside those folders, put the map folder inside (it should be the same exact name as the containing folder) and a server.properties file. Put this script in the maps folder, and bam! you are ready to go.
import shutil
import os
# Change this to where the Minecraft server is located (remember to include trailing slash)
SERVERLOCATION = 'C:/Users/Jameson/Documents/Minecraft Server/'