Skip to content

Instantly share code, notes, and snippets.


Keybase proof

I hereby claim:

  • I am mabako on github.
  • I am mabako ( on keybase.
  • I have a public key whose fingerprint is D91F 3155 2D57 CA0F 362A 4C67 AF45 C9AC 8FAA 66A1

To claim this, I am signing this object:

View ogs-sgf-downloader.js
require 'httparty'
require 'net/http'
player_id = 115095
folder_name = 'sgf-files'
Dir.mkdir(folder_name) unless Dir.exist?(folder_name)
class Player
View gist:6be62805f95eb87de89a
private UILabel CreateLabel(string type, Vector2 location, string text)
var lblObject = new GameObject("NameOfTheMod/" + type, typeof(UILabel));
lblObject.transform.parent = panel.transform;
var label = lblObject.GetComponent<UILabel>();
label.absolutePosition = location;
label.textAlignment = UIHorizontalAlignment.Center;
label.verticalAlignment = UIVerticalAlignment.Middle;
View gist:5fc7eac3a50fc8cf0680
func main() {
var url string = ""
cs := make(chan Wortspeicher, 1337)
done := make(chan bool)
go KompletteWortanalyse(cs, done)
// Es sollte die gesamte Textanalyse für alle Seiten geschehen, bevor (cs) geschlossen wird, d.h. wie auch immer das umgesetzt wird.
go AnalyzeText(url, cs) // ... usw. für mehrere Textdateien
View commits.html.slim
- title 'Commits'
- content_for(:head) do
= auto_discovery_link_tag :rss, commits_url(:rss), title: "Commits"
- grouped = @commits.group_by { |c| c[:date].to_date }
- grouped.each_pair do |date, commits|
View gist:47c503bbc75f06687fcd
virt-install --connect qemu:///system -n win -r 2048 --vcpus=2 --disk /path/win.img,device=disk,bus=virtio --os-type windows --os-variant win2k8 -w network=default,model=virtio --hvm --vnc --noautoconsole --import
mabako / Events.nut
Created Sep 11, 2014
View Events.nut
class Events
* Add all Events & Execute the relevant ones for the players currently in game
function Initialize()
Event.Add(Package.Current(), "stop", OnStop);
Event.Add(Player, "enterVehicle", OnEnterVehicle);
mabako / gist:b4e3558cf313bf8cca5b
Created Aug 23, 2014
mysql2 gem segmentation fault
View gist:b4e3558cf313bf8cca5b
gendef.exe libmysql.dll
dlltool -v --dllname libmysql.dll --def libmysql.def --output-lib libmysql.lib
View customtype.hpp
#ifndef __CUSTOMTYPE_H
#define __CUSTOMTYPE_H
#include <cassert>
#include <map>
#include "SDK/ScriptInstance.h"
#include "SDK/ScriptArguments.h"
class CustomType : public SDK::ScriptInstance
View veh guns.lua
local disabled = {[425] = true, [520] = true, [476] = true, [464] = true, [430] = true}
addEventHandler("onPlayerVehicleEnter", root,
local enabled = not disabled[getElementModel(vehicle)]
toggleControl(source, 'vehicle_fire', enabled)
toggleControl(source, 'vehicle_secondary_fire', enabled)
addEventHandler("onResourceStart", resourceRoot,