Skip to content

Instantly share code, notes, and snippets.

View joncarlmatthews's full-sized avatar
UTV

Jon Matthews joncarlmatthews

UTV
  • Shopify
  • Wiltshire, UK
View GitHub Profile
package main
import (
"fmt"
"log"
)
func main(){
var num uint8 = 5
var paddedString string = fmt.Sprintf("%02d", num)
@joncarlmatthews
joncarlmatthews / Contract Killer 3.md
Created March 10, 2016 10:50 — forked from malarkey/Contract Killer 3.md
The latest version of my ‘killer contract’ for web designers and developers

Contract Killer

The popular open-source contract for web designers and developers by Stuff & Nonsense

  • Originally published: 23rd December 2008
  • Revised date: October 8th 2015
  • Original post

@joncarlmatthews
joncarlmatthews / main.c
Created February 3, 2016 19:31
A small base32hex (Triacontakaidecimal) Conversion Program
//
// main.c
// base32hex Conversion Program
//
// Created by Jon Carl Matthews on 03/02/2016.
// Copyright (c) 2015 Jon Carl Matthews. All rights reserved.
//
#include <stdio.h>
#include <math.h>
CREATE DATABASE IF NOT EXISTS `myNewDB` CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
CREATE DATABASE IF NOT EXISTS `myNewDB` CHARACTER SET utf8 COLLATE utf8mb4_unicode_ci;
ERROR 1253 (42000): COLLATION 'utf8mb4_unicode_ci' is not valid for CHARACTER SET 'utf8'
//
// main.c
// Small Base Conversion Program
//
// Created by Jon Carl Matthews on 23/04/2015.
// Copyright (c) 2015 Jon Carl Matthews. All rights reserved.
//
#include <stdio.h>
#include <math.h>
#include <stdio.h>
int main(int argc, const char * argv[])
{
short unsigned int i;
short unsigned int fib[15];
fib[0] = 0;
#include <stdio.h>
int myGlobalVar = 3;
float myGlobalVar2 = 9.f;
void doSomething();
int main(int argc, const char * argv[])
{
doSomething();