View utf8.c
/*
Copyright (c) 2014, Robert Maupin <chasesan>
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
View Makefile
SRC_PATH = src
OBJ_PATH = obj
CC = clang
CFLAGS = -std=c11 -Wall -Wpointer-arith -Wwrite-strings -Wuninitialized -pedantic
LDFLAGS = -static-libgcc -lmingw32
TARGET = elsewhere.exe
CFLAGS += -DSDL
View powersys.cpp
bool power_plant::has_power(uint64_t time) {
return shutdown_time > time;
}
void power_plant::powerup(uint64_t time) {
//set next shutdown time to 4-12 days in the future
shutdown_time = time + 24 * (4 + (rand() % 8));
for(int i = 0; i < buildings.size(); ++i) {
buildings[i].powerup();
}
View Expr.ATG
package org.csdgn.expr.coco;
import java.math.BigDecimal;
COMPILER CompilationUnit
public Expr tree;
CHARACTERS
digit
View launcher.cpp
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <wchar.h>
#include <windows.h>
/*
* Poor Mans Windows Java Unicode Command Line Passer.
* Easily uses up to 4kb of stack.
*/
View Scarlet.ATG
COMPILER CompilationUnit
CHARACTERS
tab = '\u0009' .
lf = '\u000a' .
cr = '\u000d' .
digit = "1234567890" .
letter = 'A' .. 'Z' + 'a' .. 'z' + '_'.
View jenkins.go
package jenkins
import "hash"
// Jenkins hash function
type jenkins uint32
func New32() hash.Hash32 {
var j jenkins = 0
return &j;
View hash.go
package hash
type Hasher interface {
Update(uint8)
UpdateArray([]uint8)
Hash() uint32
Reset()
}
const (
View rain.cpp
#include <stdlib.h>
#include <windows.h>
#include <objidl.h>
#include <gdiplus.h>
using namespace Gdiplus;
wchar_t* characters =
//Hiragana
L"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもや"
View SkeletonHelper.java
/**
* The MIT License (MIT)
*
* Copyright (c) 2013-2014 Robert Maupin
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is