Skip to content

Instantly share code, notes, and snippets.

View lain-dono's full-sized avatar
🦀
Busy doing nothing

Lain-dono lain-dono

🦀
Busy doing nothing
View GitHub Profile
@lain-dono
lain-dono / README.md
Last active August 29, 2015 13:57
BareBones arm

Собираем стартовый файл arm-eabi-as -o boot.o boot.s

Собираем main.c arm-eabi-gcc -nostdlib -nostartfiles -ffreestanding -std=c99 -c kernel_main.c -o kernel_main.o

Линкуем всё в kernel arm-eabi-ld -T linker.ld -o kernel boot.o kernel_main.o

Запускаем qemu-system-arm -m 128 -kernel kernel -serial stdio

Собираем стартовый файл i686-elf-as -o boot.o boot.s

Собираем main.c i686-elf-gcc -nostdlib -nostartfiles -ffreestanding -std=c99 -c kernel_main.c -o kernel_main.o

Линкуем всё в kernel i686-elf-ld -T linker.ld -o kernel boot.o kernel_main.o

Запускаем qemu-system-i386 -m 128 -kernel kernel

@lain-dono
lain-dono / sample.js
Last active August 29, 2015 14:02
Isomer on PIXI.Graphics
"use strict";
var w = 600, h = 400;
// init PIXI stage and renderer
var stage = new PIXI.Stage(0xCC0000, true);
var renderer = PIXI.autoDetectRenderer(w, h);
// add PIXI to body
document.body.appendChild(renderer.view);
// init Isomer
@lain-dono
lain-dono / SwitchActive.cs
Created April 23, 2015 06:43
SwitchActive for Unity3D
using UnityEngine;
public class SwitchActive : MonoBehaviour {
public enum ModeType { Toggle, On, Off };
public GameObject Object;
public ModeType Mode;
public void UserInteraction() {
switch(Mode) {
case ModeType.Off:
// ==UserScript==
// @name IDDQD
// @namespace dobro
// @include http://dobrochan.com/b/*
// @include http://dobrochan.ru/b/*
// @include http://dobrochan.org/b/*
// @include https://dobrochan.com/b/*
// @include https://dobrochan.ru/b/*
// @include https://dobrochan.org/b/*
// @version 1