Skip to content

Instantly share code, notes, and snippets.

View CernerJT's full-sized avatar

Jason W. Thompson CernerJT

  • Cerner
  • Kansas City, MO
View GitHub Profile
@CernerJT
CernerJT / donate-to-firsthand.html
Created September 14, 2015 13:18
Demonstrates how to do an HTML redirect using meta tags.
<html>
<head>
<title>First Hand Donator</title>
<meta name="description" content="Don't know how to donate to First Hand? Just open up this webpage in any Internet connected web browser and find out!" />
<meta name="author" content="Jason W. Thompson" />
<meta http-equiv="refresh" content="0; url=https://www.firsthandfoundation.org/donate/" />
</head>
</html>
@CernerJT
CernerJT / comments.cpl
Last active August 29, 2015 14:07
So I get infinite comments, eh?
# So this programming language is all about comments. And nothing else.
/* It can be found at http://c-p-l.sourceforge.net/ */
-- I'm not sure what this program does... or should do. It's just comments.
' Techinically by the rules that means this program can be as long as I want
REM But unfortunatelly it doesn't do anything.
// I guess you can say that it does nothing...
% This programming language sucks... I'll never win the Bose headphones this way
{ :( }
@CernerJT
CernerJT / pokemon.py
Created October 15, 2014 01:59
I want to be the best. Like no one ever was...
# Sorry... This was the first thing I thought of when I was trying to figure
# out how to capture Engineering Health in code... :D
import sys
import random
print("A wild Engineering Health has appeared!")
print("Magikarp! Go get 'em!")
print
while 1==1:
@CernerJT
CernerJT / engineeringhealth.chef
Last active August 29, 2015 14:07
Engineering Health a la Code.
Engineering Health a la Code.
Many people wonder what the ingredients of an Engineering Health engineer is. Look no further!
This chef recipe will help you create the perfect Engineering Health engineer!
For the story about how this came to be, please read https://connect.ucern.com/blogs/jasonthompson/2014/10/14/2-competition
Ingredients.
101 l eggs
110 l nectarines
103 l grapes
@CernerJT
CernerJT / quiz.php
Created October 1, 2014 02:36
Day 18: Trivia Night Done Right!
<html><head><title>Trivia Night!</title></head><body><h1>Trivia Round 1: Ponies, Power Rangers, or Pokémon!</h1><form method="GET" action="quiz.php">
<p>Please choose whether each item is a Pokémon, a Power Ranger character (any series), or a character from "My Little Pony: Friendship is Magic"</p><?
# One of my favorite things about the Engineering Health culture is the trivia nights. We typically have two
# Trivia nights a year. Once during our annual DevCon conference, and one on Programmer Day. This year we
# dominated. Well, almost. We got third. But it was close! Now if this was a category, we would have won!
class TriviaItem { public $name; public $type; function __construct($name, $type) { $this->name = $name; $this->type = $type; } };
$items=[new TriviaItem("Zororak","Pokémon"), new TriviaItem("Zorua", "Pokémon"), new TriviaItem("Zordon", "Power Rangers"), new TriviaItem("Zygarde", "Pokémon"),
new TriviaItem("Ziggy", "Power Rangers"), new TriviaItem("Zurgane", "Power Rangers"), new TriviaItem("Zir
@CernerJT
CernerJT / japh.pl
Created September 19, 2014 03:22
Day 6 (9/18): Japh
#!/bin/perl
# Who doesn't like a good Japh?
$_="Cerner Corporation";
s/C/Just/g;
s/[Nerd]+/ Another/gi;
s/[Joust]{5}/ing/gi;
s/(?<=.{12})[Phone Art]{10}/ Health/gi;
s/(?:(?<=^.{12} )|.{16}$)/Engineer/g;
print;
@CernerJT
CernerJT / sixteen.bas
Last active August 29, 2015 14:06
Day 5 (9/17): My first programming language
1 REM BEING A CERNER ENGINEER MEANS HAVING TINKERING IN YOUR BLOOD
2 REM THIS IS A PROGRAM I WROTE IN THE THIRD GRADE IN A NOTEBOOK
3 REM YOU CAN'T WIN
4 REM TYPE THIS INTO A COMMODORE 64 EMULATOR. IT'LL WORK
10 LET A%=16
20 PRINT "THERE ARE"+STR$(A%)+" MATCHES LEFT. TAKE 1 OR 2"
30 INPUT B%
40 IF B%=1 OR B%=2 THEN GOTO 70
50 PRINT "ONLY PICK 1 OR 2"
60 GOTO 30
@CernerJT
CernerJT / hello_two_the_fifth.sh
Created September 16, 2014 20:46
Day 4 (9/16): Hello World
#!/bin/bash
# All programming journeys begin the same. By saying "Hello World!"
# It's a fun greeting that is inviting and yet simple. It says,
# "I've got the whole world ahead of me in this new programming
# language and I just want to say, 'Hello!'"
# When I began my journey here at Cerner, I had the same feeling
# as starting a new language. I was excited and ready to learn.
# To grow. But most important to start.
# So for my first entry in the 2^5 competition, I simply