Skip to content

Instantly share code, notes, and snippets.

/Users/chris/.rvm/gems/ruby-2.0.0-p247/gems/kgio-2.8.1/lib/kgio_ext.bundle: [BUG] Segmentation fault
ruby 2.0.0p353 (2013-11-22 revision 43784) [x86_64-darwin12.4.0]
-- Crash Report log information --------------------------------------------
See Crash Report log file under the one of following:
* ~/Library/Logs/CrashReporter
* /Library/Logs/CrashReporter
* ~/Library/Logs/DiagnosticReports
* /Library/Logs/DiagnosticReports
the more detail of.
@beakr
beakr / iecomment.html
Created January 4, 2014 23:25
UPDATE YOUR BROWSER LIEK NAOW.
<!--[if lte IE 7]>
<p>
Oops! Looks like your browser is <strong>outdated</strong>. This means that
you may not be able to view certain sites correctly. Please download a later
version of the software you use to browse the internet for the best experience.
</p>
<![endif]-->
@beakr
beakr / Gemfile
Created January 4, 2014 21:59
Simple Ruby code for parsing markdown in a directory (Github flavoured Markdown, that is).
# Run 'bundle' in the command line afterward
source 'https://rubygems.org'
gem 'guard'
gem 'guard-rake'
gem 'rake'
gem 'rainbow'
gem 'github-markdown'
@beakr
beakr / button.qss
Created December 23, 2013 05:00
Fairly nice Qt buttons that can be easily made great with a few tweaks of the hex codes.
QPushButton {
color: white;
background-color: QLinearGradient(x1: 0, y1: 0,
x2: 0, y2: 0.15,
stop: 0 #31363a,
stop: 0.5 #2a2e32);
border: 1px solid #2a2e32;
border-radius: 10px;
}
@beakr
beakr / scripting_in_dendrite_lua.md
Last active December 31, 2015 20:39
How Dendrite scripting should work.

Dendrite Lua Scripting: How it should work.

This is a simple page meant to be used for documentation-driven design in my Dendrite game engine. This is where I write some simple documentation and use it as a reference for implementing the code.

Linking

To link a script, select an entity in the game editor and click the 'link' dropdown button. Then click the menu item 'lua script'.

If you need to link a script to your scene, simply go to Game > World Settings or use command-shift-W (Mac) cntrl-shift-W (Windows/Linux) to attach a script to the current world.

// Load stdlibs onto lua interpreter instance.
luaL_openlibs(this->L);
int s = luaL_dofile(this->L, file.c_str());
if (s == 0)
{
// Execute the script.
s = lua_pcall(L, 0, LUA_MULTRET, 0);
}
@beakr
beakr / pixi-boilerplate.js
Created December 15, 2013 03:48
Pixi.js boilerplate.
function main()
{
// We render our game with WebGL or canvas depending on the browser automatically
// with Pixi.js in our game renderer variable.
//
// Our game is 400x400 pixels because it will be made of 25x25 tiles measuring 16x16
// pixels.
var gameRenderer = PIXI.autoDetectRenderer(400, 400);
document.body.appendChild(gameRenderer.view);
@beakr
beakr / Scripter.cc
Last active December 27, 2015 06:29
//
// librib -- fast, cross-platform game engine in Coffeescript
//
// Copyright (c) 2013 Christopher Clarke
// Please see attached LICENSE file for your distrobution.
//
#include "Scripter.hh"
#include <stdio.h>
#include <iostream>
@beakr
beakr / 0_reuse_code.js
Created October 22, 2013 21:02
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
# If you screwed up and need to reconfigure a mail server or something,
# just use dpkg-reconfigure!
#
# Here's an example for reconfiguring postfix.
$ sudo dpkg-reconfigure postfix