Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<title>Lords &amp; Knights - Trickle Sheet</title>
<link href='http://fonts.googleapis.com/css?family=Allerta+Stencil|Love+Ya+Like+A+Sister|Special+Elite' rel='stylesheet' type='text/css'>
<link href='C:\Users\Matt\Documents\GitHub\l-k\toolkit\css\lk_responsive.css' rel='stylesheet' type='text/css' />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.js"></script>
<style type='text/css'>
var CENTER = [16384, 16384];
var CENTERX = CENTER[0];
var CENTERY = CENTER[1];
var mult = 84;
var DELTA = [[ 2 * mult, 0 * mult],
[ 1 * mult, -2 * mult],
[-1 * mult, -2 * mult],
[-2 * mult, 0 * mult],
[-1 * mult, 2 * mult],
[ 1 * mult, 2 * mult]];
<!doctype html>
<html ng-app='myApp'>
<head>
<!--script src='https://ajax.googleapis.com/ajax/libs/angularjs/1.2.2/angular.js'></script -->
<script src='../angular.js'></script>
</head>
<body>
<!--div ng-controller="MyCtrl">
<!-- input ng-model='name' type='text' placeholder='Your Name' -->
<div ng-controller='myController'>
//function MyCtrl($scope){
// $scope.clock = {
// now: new Date()
// };
// var updateClock = function() {
// $scope.clock.now = new Date();
// };
// setInterval(function(){ $scope.$apply(updateClock);}, 1000);
// updateClock();
//};
<?php
$db_params = new stdClass();
$db_params->host = "localhost";
$db_params->user = "Matt";
$db_params->pass = "";
$db_params->database = "parks";
$db_params->query = "SELECT * FROM currentQueue ORDER BY arrive ASC";
$db = mysqli_init();
@mduleone
mduleone / update.php
Last active August 29, 2015 14:04
Original update query
$updQuery = "UPDATE currentQueue SET ";
if (isset($_GET["arrive"]) && $_GET["arrive"] != "") {
$updQuery .= "arrive=" . $arrive;
}
if (isset($_GET["depart"]) && $_GET["depart"] != "") {
if (isset($_GET["arrive"]) && $_GET["arrive"] != "") {
$updQuery .= ", ";
}
$updQuery .= "depart=" . $depart;
}
Verifying "STYLISH CSS"...
ACTUAL EXPECTED
------ --------
"p {" != "Cannot GET /main.css"
" color: #f00;" != ""
"}" != null
"" != null
# FAIL
function intentHandler (session, other, stuff, callback) {
// some random stuff...
request.post({options: "duh",}, {body: "duh",}, function (e0, r0, b0) {
// Now you know that post has returned, do the get stuff you needed
request.get({otherOptions: "duh",}, function (e1, r1, b1) {
// Now you know that get has returned, do the stuff you need.
callback(
sessionAttributes,
buildSpeechletResponseCard(
cardTitle,
@mduleone
mduleone / 054.cbl
Last active January 20, 2017 06:44
COBOL Solution to Project Euler #54
IDENTIFICATION DIVISION.
PROGRAM-ID. euler054.
ENVIRONMENT DIVISION.
INPUT-OUTPUT SECTION.
FILE-CONTROL.
SELECT POKER-HANDS
ASSIGN TO "./poker.txt"
ORGANIZATION IS LINE SEQUENTIAL
STATUS IS FILE-STATUS.
@mduleone
mduleone / keybase.md
Created February 6, 2017 22:18
keybase.md

Keybase proof

I hereby claim:

  • I am mduleone on github.
  • I am mduleone (https://keybase.io/mduleone) on keybase.
  • I have a public key whose fingerprint is 326C A771 816F 9230 C1A4 561D 90EF F242 B12C 4C9D

To claim this, I am signing this object: