Skip to content

Instantly share code, notes, and snippets.

@wkoffel
wkoffel / Podfile,AppDelegate.swift,ViewController.swift
Last active November 30, 2018 17:31
Relevant Diffs from GCP Migration of Janus iOS
# Uncomment this line to define a global platform for your project
# platform :ios, '9.0'
target 'Janus' do
# Comment this line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
platform :ios, '9.3'
# Pods for Janus
php -r 'date_default_timezone_set("America/New_York"); print date("Y-m-d H:i:s\n", time());'
@wkoffel
wkoffel / simple-timestamp.html
Created May 25, 2013 16:43
Results of simple-timestamp.php
<html>
<h3>Favorite Quotes</h3>
<strong>Seymour Cray</strong> famously said:
<blockquote>"The trouble with programmers is that you can never tell what a programmer is doing until it's too late."</blockquote>
I was reading this page on
2013-05-25 12:42:47
</html>
@wkoffel
wkoffel / simple-timestamp.php
Created May 25, 2013 16:04
Simple timestamp in PHP
<html>
<h3>Favorite Quotes</h3>
<strong>Seymour Cray</strong> famously said:
<blockquote>"The trouble with programmers is that you can never tell what a programmer is doing until it's too late."</blockquote>
I was reading this page on
<?php
echo date("Y-m-d H:i:s", time());
?>
</html>
@wkoffel
wkoffel / full-favorite-quotes-example.html
Last active December 17, 2015 12:19
Example with full XHTML valid syntax
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>Favorite Quotes</title>
</head>
<body>
<h3>Favorite Quotes</h3>
<p><strong>Seymour Cray</strong> famously said:</p>
<blockquote>
<html>
<h3>Favorite Quotes</h3>
<strong>Seymour Cray</strong> famously said:
<blockquote>"The trouble with programmers is that you can never tell what a programmer is doing until it's too late."</blockquote>
That is <em>so true</em>, don't you think?
</html>
@wkoffel
wkoffel / gist:5436879
Created April 22, 2013 17:20
Awk script for splitting very large files. Customize the field and record separators and size for the split.
# split.awk --- do split in awk
#
# Requires ord() and chr() library functions
# usage: split [-num] [file] [outname]
BEGIN {
RS = "\036"
ORS = "\036"
@wkoffel
wkoffel / 0_reuse_code.js
Last active August 29, 2015 14:13
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@wkoffel
wkoffel / gist:af26290e58613e025dd9
Created October 29, 2014 14:33
w͢͢͝h͡o͢͡ ̸͢k̵͟n̴͘ǫw̸̛s͘ ̀́w͘͢ḩ̵a҉̡͢t ̧̕h́o̵r͏̵rors̡ ̶͡͠lį̶e͟͟ ̶͝in͢ ͏t̕h̷̡͟e ͟͟d̛a͜r̕͡k̢̨ ͡h̴e͏a̷̢̡rt́͏ ̴̷͠ò̵̶f̸ u̧͘ní̛͜c͢͏o̷͏d̸͢e̡͝')
w͢͢͝h͡o͢͡ ̸͢k̵͟n̴͘ǫw̸̛s͘ ̀́w͘͢ḩ̵a҉̡͢t ̧̕h́o̵r͏̵rors̡ ̶͡͠lį̶e͟͟ ̶͝in͢ ͏t̕h̷̡͟e ͟͟d̛a͜r̕͡k̢̨ ͡h̴e͏a̷̢̡rt́͏ ̴̷͠ò̵̶f̸ u̧͘ní̛͜c͢͏o̷͏d̸͢e̡͝')
@wkoffel
wkoffel / keybase.md
Created March 25, 2014 02:05
keybase.md

Keybase proof

I hereby claim:

  • I am wkoffel on github.
  • I am wkoffel (https://keybase.io/wkoffel) on keybase.
  • I have a public key whose fingerprint is 6726 34EA 063C 5A52 6EFB 198B 5A74 69FB 954B B523

To claim this, I am signing this object: