Skip to content

Instantly share code, notes, and snippets.

View seebs's full-sized avatar

seebs seebs

View GitHub Profile
package main
import (
"bytes"
"fmt"
"sync"
"time"
"github.com/daviddengcn/go-colortext"
)
- // read from teensy
- return
- (PINF&(1<<0) ? 0 : (1<<0)) |
- (PINF&(1<<1) ? 0 : (1<<1)) |
- (PINF&(1<<4) ? 0 : (1<<2)) |
- (PINF&(1<<5) ? 0 : (1<<3)) |
- (PINF&(1<<6) ? 0 : (1<<4)) |
- (PINF&(1<<7) ? 0 : (1<<5)) ;
+ /* read from teensy
+ * bitmask is 0b11110011, but we want those all
package main
import (
"flag"
"fmt"
"math/big"
"time"
)
/* there are four interesting values:
/* someone posted to comp.lang.c asking for homework help. i felt the need to contribute.
* -seebs
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <limits.h>
#include <stddef.h>
#include <math.h>
0227_UATraps.pdf
02_UA_Underdark_Characters.pdf
04_UA_Classics_Revisited.pdf
1_UA_Artificer_20170109.pdf
2016_Fighter_UA_1205_1.pdf
2017_01_UA_RangerRogue_0117JCMM.pdf
20170213_Wizrd_Wrlck_UAv2_i48nf.pdf
2017_UAMassCombat_MCUA_v1.pdf
26_UASorcererUA020617s.pdf
M_2016_UAMonk1_12_12WKWT.pdf
/*
* SK's Minecraft Launcher
* Copyright (C) 2010-2014 Albert Pham <http://www.sk89q.com> and contributors
* Please see LICENSE.txt for license information.
*/
package com.skcraft.launcher.util;
import javax.swing.*;
import javax.swing.event.DocumentEvent;
Inserting 99 bytes of text at offset 2322.
>removeLines
>removeFromStart(1 excess)
rFS: excess 1, element is 0-119, new count 27/25
<removeFromStart(1 excess)
After removing lines (26), still have 27/25 lines.
<removeLines
[19:03:06] [Client thread/INFO] [WAILA Plugins]: Attempting to load plugin for harvestcraft.
Inserting 94 bytes of text at offset 2302.
[19:03:06] [Client thread/INFO] [WAILA Plugins]: Successfully loaded plugin for harvestcraft.
int elements = root.getElementCount();
int excess = elements - maximumLines;
if (excess > 0) {
if (isRemoveFromStart) {
root.replace(0, excess, new Element[0]);
} else {
root.replace(elements - excess, excess, new Element[0]);
}
}
}
/*
* SK's Minecraft Launcher
* Copyright (C) 2010-2014 Albert Pham <http://www.sk89q.com> and contributors
* Please see LICENSE.txt for license information.
*/
package com.skcraft.launcher.util;
import javax.swing.*;
import javax.swing.event.DocumentEvent;
#!/usr/bin/python2
import pymclevel
import sys
print "Loading world..."
level = pymclevel.loadWorld('/home/seebs/src/mcaedit/world')
print "Loaded."
def has_object(chunk, id):