Skip to content

Instantly share code, notes, and snippets.

⚽️
Kick it

Richard T. Miles RichardTMiles

Block or report user

Report or block RichardTMiles

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View BlackJack.php
<?php
/**
* Created by IntelliJ IDEA.
* User: Richard Miles
* Date: 6/27/2018
* Time: 4:05 PM
*
* A 6-Deck blackjack card counting game
*
* 2-6 is +1
@RichardTMiles
RichardTMiles / HopHashTable.cpp
Last active Feb 4, 2018
Compile with [ g++ -std=c++0x main.cpp ]. Run with [ ./a.out ], 110 lines.
View HopHashTable.cpp
#include <iostream>
#include <bitset>
using namespace std;
const int TABLE_SIZE = 17; // You can change consts with
const int MAX_DIST = 4; // *((int*)(&a)) = 6
unsigned int startingPlace = 1; // a binary representation of the hop
struct item {
int *input;
@RichardTMiles
RichardTMiles / Dynamic_Javascript_Inclusion.html
Last active Jan 18, 2018
Dynamic Javascript Inclusion using LoadJS and PJAX. Loading javascript files on call time when refreshing with Ajax.
View Dynamic_Javascript_Inclusion.html
<html> // This was chopped from https://carbonphp.com , a php framework which incorporates PJAX and and HTML5 Sockets
<head>
<script>
/*! loadJS: load a JS file asynchronously. [c]2014 @scottjehl, Filament Group, Inc. (Based on http://goo.gl/REQGQ by Paul Irish). Licensed MIT */
(function (w) {
let loadJS;
loadJS = function (src, cb) {
"use strict";
let ref = w.document.getElementsByTagName("script")[0];
let script = w.document.createElement("script");
You can’t perform that action at this time.