Skip to content

Instantly share code, notes, and snippets.

View msikma's full-sized avatar
๐Ÿš€
ใ‚ชใƒผใƒ—ใƒณใ‚ฝใƒผใ‚นใฎ็†ฑ็‹‚็š„ใชใƒ•ใ‚กใƒณ

Michiel Sikma msikma

๐Ÿš€
ใ‚ชใƒผใƒ—ใƒณใ‚ฝใƒผใ‚นใฎ็†ฑ็‹‚็š„ใชใƒ•ใ‚กใƒณ
View GitHub Profile
$ ./run.js --help
usage: run.js [-h] [-v] [--no-caching] [--staging] [--port PORT]
[--api-port API_PORT]
{build,start,dev,lint,clean,copy} ...
Builds and runs the main site code. The primary function of the server is to
serve an HTML page with the contents returned by react-router. Requests to
/api/* are proxied to the API server, running at localhost:3030.
This server requires a more heavy-duty httpd like Apache or Nginx as reverse
# Copyright (C) 2015, Michiel Sikma <[email protected]>
# MIT License
CC = $(DJGPP_CC)
VENDOR = vendor
CFLAGS =
LDFLAGS =
TITLE = CeeGee Engine
BIN = ceegee.exe
#!/usr/bin/env bash
# Copyright (C) 2015, Michiel Sikma <[email protected]>
# MIT License
DEPS=(
'argparse::https://github.com/Cofyc/argparse.git::e1277bf1e3f47663fad54f84ca723db7688630d4'
'allegro5::https://github.com/liballeg/allegro5.git::4.4'
'xorshift::https://github.com/msikma/xorshift::e06c8e131c1b7bce0eea899a4235aba3ba53b6e5'
)
if [ ! -d "vendor" ]; then
#include <sys/nearptr.h>
#include <dos.h>
#include "defs.h"
#include "video.h"
byte *VGA = (byte *)0xA0000; // Pointer to the video memory.
word *SYS_CLOCK = (word *)0x046C; // The 18.2hz internal clock.
// Add the base address.
CC = $(DJGPP_CC)
VENDOR = vendor
CFLAGS =
LDFLAGS =
BIN = game1.exe
SRCDIR = src
OBJDIR = obj
DISTDIR = dist
/usr/local/djgpp/bin/i586-pc-msdosdjgpp-gcc -c -o src/video.o src/video.c
src/video.c: In function 'set_mode':
src/video.c:25:16: error: storage size of 'regs' isn't known
union REGS regs;
^
/*
* Copyright (C) 2015, Michiel Sikma <[email protected]>
* MIT License
*/
#ifndef __GAME1_VIDEO__
#define __GAME1_VIDEO__
void plot_pixel(int x, int y, byte color);
void set_mode(byte mode);
/*
* Copyright (C) 2015, Michiel Sikma <[email protected]>
* MIT License
*/
#include "video.h"
byte *VGA = (byte *)0xA0000; // Pointer to the video memory.
word *SYS_CLOCK = (word *)0x046C; // The 18.2hz internal clock.
CC = $(DJGPP_CC)
VENDOR = vendor
CFLAGS =
LDFLAGS =
BIN = game1.exe
SRCDIR = src
OBJDIR = obj
DISTDIR = dist
// Webpack config for creating the production bundle.
var path = require('path');
var webpack = require('webpack');
var CleanPlugin = require('clean-webpack-plugin');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var strip = require('strip-loader');
// Stats plugin.
var writeStats = require('./utils/write-stats');