Skip to content

Instantly share code, notes, and snippets.

@windwarrior
windwarrior / main.js
Last active August 29, 2015 14:17
state.js
var state_manager = StateManager.create();
var assets = {};
$.extend({}, State, {
on_enter: function () {
this.build_menu();
},
build_menu: function () {
var self = this;
if [ "${grub_platform}" == "efi" ]; then
menuentry "Microsoft Windows Vista/7/8/8.1 UEFI-GPT" {
insmod part_gpt
insmod fat
insmod search_fs_uuid
insmod chain
search --fs-uuid --set=root $hints_string $fs_uuid
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
fi
- Amelie nieuws (wederom toevoegen) [sort of done]
- Source van get_stream is nog hardcoded none
- Grotere twitter profielafbeeldingen. Gebruik _bigger.jpg ipv _normal.jpg.
- Admin filters van Tweet verbeteren
Netherbrick:
# 4 stonebrick, 4 hellstone
ingredients: [ [98,4], [87,4] ]
# 8 netherbrick
results: [ [112,8] ]
@windwarrior
windwarrior / Broken.css
Created February 12, 2012 21:44
Why doesn't this work?
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
*{
padding:0px;
margin:0px;
}
/**
* Returns the remainder of items that could not be put in
* @param inv
* @param type
* @param amount
* @return
*/
public static int putItemInInventory(Inventory inv, Material type, int amount){
int slot;
int stackSize = type.getMaxStackSize();
@windwarrior
windwarrior / Elevator.java
Created January 6, 2012 22:19
TweakCart2 plugin - WIP
package net.tweakcraft.tweakcart.elevator;
import org.bukkit.Location;
import org.bukkit.block.Block;
import org.bukkit.block.BlockFace;
import org.bukkit.block.Sign;
import org.bukkit.entity.Minecart;
import net.tweakcraft.tweakcart.TweakCart;
import net.tweakcraft.tweakcart.TweakPluginManager;
/* Compile with gcc -Wall -O3 -o as1_t2 as1_t2.c dummysort.c
Then, start ./as1_t2
*/
#include "as1_t2.h"
#include <stdlib.h>
#include <stdio.h>
/** Dummy implementation for msort -- remove! */
void msort(task_t** tasks, int count){
@windwarrior
windwarrior / intersection.syntax
Created November 12, 2011 15:20 — forked from Edoxile/intersection.syntax
Tweakcart intersection syntax
Type of carts:
Storage cart (s)
Powered cart (-) -> ignored because never used anyway
Minecart (m)
Any (a)
Voorwaarden:
empty (&)
full (*)
@windwarrior
windwarrior / intersection.syntax
Created November 9, 2011 01:57 — forked from Edoxile/intersection.syntax
Tweakcart intersection syntax
Type of carts:
Storage cart (s)
Powered cart (-) -> ignored because never used anyway
Minecart (m)
Any (a)
Voorwaarden:
empty (&)
full (*)