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
package main | |
import ( | |
"fmt" | |
"log" | |
) | |
func main(){ | |
var num uint8 = 5 | |
var paddedString string = fmt.Sprintf("%02d", num) |
// | |
// 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; |
3 | |
9.000000 |
#include <stdio.h> | |
int myGlobalVar = 3; | |
float myGlobalVar2 = 9.f; | |
void doSomething(); | |
int main(int argc, const char * argv[]) | |
{ | |
doSomething(); |