Skip to content

Instantly share code, notes, and snippets.

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

Michiel Sikma msikma

๐Ÿš€
ใ‚ชใƒผใƒ—ใƒณใ‚ฝใƒผใ‚นใฎ็†ฑ็‹‚็š„ใชใƒ•ใ‚กใƒณ
View GitHub Profile
@msikma
msikma / SassMeister-input.scss
Created June 23, 2015 14:42
Generated by SassMeister.com.
// ----
// libsass (v3.2.5)
// ----
// Hide My Ass <https://www.hidemyass.com/>
// Copyright (C) 2005-2015, Privax Ltd.
$payments: "avangate_bank", "avangate_cashu", "avangate_webmoney", "avangate_qiwi", "avangate_boleto",
"avangate_sofort", "avangate_cc", "adyen_cc", "adyen_ideal", "onebip", "mopay", "bitpay", "paypal";
@msikma
msikma / es6-styles.js
Created July 22, 2015 11:38
Which of these styles is nicer?
/**
* Returns server environment information and copyright. This is intended
* only to be displayed inside of a terminal.
*
* @returns {String} Copyright and server environment information
*/
function getServerInfo() {
const engineName = process.title == 'node' ? 'Node.js'
: process.title == 'iojs' ? 'io.js' : '(unknown engine)';
const engineVersion = process.title + ' v' + process.versions.node;
@msikma
msikma / lines.c
Created September 20, 2015 15:24
/** file 1: lines.c */
/**************************************************************************
* lines.c *
* written by David Brackeen *
* http://www.brackeen.com/home/vga/ *
* *
* Tab stops are set to 2. *
@msikma
msikma / test.c
Created September 27, 2015 11:11
// small test (compiled with DJGPP for MSDOS)
#include <stdio.h>
int main(int argc, char *argv[])
{
int a;
char *arg;
if (argc == 0) {
@msikma
msikma / cli.c
Created September 27, 2015 11:41
Command line arguments
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(int argc, char *argv[])
{
int a, b, len, chr;
for (a = 1; a < argc; ++a) {
var fs = require('fs');
var fse = require('fs-extra');
var path = require('path');
var mkdirp = require('mkdirp');
// The file we'll write the stats to.
var deployPath = path.resolve(__dirname, '../../../deploy/');
var filepath = deployPath + '/.webpack-stats.json';
// 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');
CC = $(DJGPP_CC)
VENDOR = vendor
CFLAGS =
LDFLAGS =
BIN = game1.exe
SRCDIR = src
OBJDIR = obj
DISTDIR = dist
/*
* 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.
/*
* 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);