Skip to content

Instantly share code, notes, and snippets.

View timothyjoh's full-sized avatar
💪
flexin

Timothy Johnson timothyjoh

💪
flexin
View GitHub Profile

Keybase proof

I hereby claim:

  • I am timothyjoh on github.
  • I am timothyjoh (https://keybase.io/timothyjoh) on keybase.
  • I have a public key ASDvYdNUixN-URGakGsLNg4yp1k5vLddbNEf_6h4uTtqOQo

To claim this, I am signing this object:

<p>You are accessing U.S. Government information technology and/or information systems which includes:</p>
<p>&nbsp;</p>
<ol>
<li>this information technology</li>
<li>this information system</li>
<li>all information technology devices connected to this network, and&nbsp;</li>
<li>all devices and storage media attached to this information system&nbsp;or to information technology on this network.&nbsp;</li>
</ol>
The Problem
===========
We want you to create a command-line application that will calculate the
ranking table for a hockey league.
Input/output
------------
The input and output will be text. Your solution should parse the provided
sample-input.txt file via stdin (pipe or redirect) or by parsing a file passed
by name on the command line. Your solution should output the correct result via
@timothyjoh
timothyjoh / exam_item.html
Last active September 27, 2018 23:15
Exam Item slide HTML
<div class="swiper-slide">
<section class='stem'>
<p class='small' data-stagger>Lead goes here</p>
<p>Stem paragraphs just go in P tags here</p>
<div class="photo-gallery" itemscope itemtype="http://schema.org/ImageGallery">
<figure itemprop="associatedMedia" itemscope itemtype="http://schema.org/ImageObject">
<a href="img/79b73057-ef65-4b52-b2b2-8282e2c8fcef.jpg" itemprop="contentUrl" data-size="372x496">
@timothyjoh
timothyjoh / gist:8db5ba0d160741b05b8d9615a264a3ff
Created September 21, 2018 15:24
The Question Datatable Widget
<section id='item_datatable'>
<table class="display" width="100%">
<thead>
<td>Title</td>
<td>Stem</td>
<td>Tags</td>
<td>Assigned To</td>
</thead>
<tbody>
{{ entries from="/questions" }}
stem:
-
type: text
text: '<p>An OT revises an electronic medical record documentation template to more accurately report evidence-based practice information for each client. Which Core Value is the OT demonstrating?&nbsp;<br></p>'
answers:
-
choice:
-
type: text
text: '<p>Truth</p>'
'use strict';
var _ = require('lodash');
// allow for parenthesis square brackets, curly braces
function check(input) {
var tokens = [[/\[/,/\]/],[/\{/,/\}/],[/\(/, /\)/]];
/*
search for the token pair on a string, starting with input
## SYNTAX:
var pattern = new RegExp(pattern, attributes); # attributes: g (global); i (case-sensitive); m (multiline matches)
var pattern = /pattern/attributes; # same as above
## BRACKETS:
[...]: Any one character between the brackets.
[^...]: Any one character not between the brackets.
<!DOCTYPE html>
<html lang="en">
<head>
<!-- added by alex dergachev -->
<base href="http://scratchpad.io/">
<title>Scratchpad</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
</head>
<body id="scratchpad" tabindex="0">

Terms of Service

Last revised on [DATE]

The Gist

[COMPANY] operates the [SERVICE] service, which we hope you use. If you use it, please use it responsibly. If you don't, we'll have to terminate your account.

For paid accounts, you'll be charged on a monthly basis. You can cancel anytime, but there are no refunds.