Skip to content

Instantly share code, notes, and snippets.

View Xe's full-sized avatar
😂
h

Xe Iaso Xe

😂
h
View GitHub Profile
Another Mind Open
There was a fire where smoke gathered
and danced like rivers without gravity
to the rattle of drums.
Sometimes I would look inside the smoke
but it curled away and covered itself
with a cloak so opaque I could only cry.
It became the mask of its consumption.
type
🖋 = object
🍎 = object
🍍 = object
🍎🖋 = object
🍍🖋 = object
proc `$`(p: 🖋): string = "🖋 "
proc `$`(a: 🍎): string = "🍎 "
proc `$`(p: 🍍): string = "🍍 "
@Xe
Xe / orig.lua
Last active December 19, 2017 07:10
Russian roulette script for Tetra
Command("ROULETTE", function(source) local rdm = math.floor(100000000 * math.random() % 6) if rdm == 2 then client.Kill(source, "ROULETTE: KILL: " .. source.Nick .. " " .. tostring(rdm)) return "BANG! " .. tostring(rdm) else return "click " .. tostring(rdm) end end)
@Xe
Xe / Dockerfile
Last active October 15, 2017 15:23
mage goroot leak proof of concept
FROM xena/alpine
RUN apk add --no-cache mage
COPY /proj /root/go/src/cetacean.club/proj
WORKDIR /root/go/src/cetacean.club/proj
RUN mage -l

Infix to Postfix and Postfix Eval of BigIntegers

Due Thursday, May 24th by 11:59:59pm

Basic documentation is required, but no javadoc is necessary -- UNLESS YOU DID NOT SUCCESSFULLY UTILIZE JAVADOC ON YOUR LAST ASSIGNMENT For this assignment you will convert infix expressions to postfix expressions and then evaluate those postfix expressions. You will be given a table of symbols (A - Z) and their associated values to be used in evaluating expressions. The value for each symbol is to be considered a BigInteger. Negative values are also possible. Following this table you will be given a series of strings which will contain INFIX expressions which may be fully or partially parenthesized, but will be valid. The infix expressions will be given one per line and the series of expressions will be terminated by a line containing only a #. You may assume the following about the INFIX expressions:

  • the expressions will contain only the characters: A through Z, +, -, *, /, ^, (, ). NOTE: ^ represents the exponent
{
"swagger": "2.0",
"info": {
"title": "schema.proto",
"version": "version not set"
},
"schemes": [
"http",
"https"
],
package main
import (
"compress/gzip"
"encoding/csv"
"flag"
"log"
"os"
)
@Xe
Xe / main.go
Created November 2, 2016 18:44
package main
import (
"context"
"fmt"
"log"
"net/http"
"os"
"time"
)
package main
import (
"errors"
"fmt"
"strings"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/awserr"
//os global Good news all! We are glad to announce the official partnership between PonyChat and the Pusher and Shover robots! We hope to learn a lot from and share with them to make things better for everypony. Good stuff is on the way!
//os global send
WAIT 5 MINUTES
//os global Okay, the pusher robot apparently shoves around blind people, and the shover robot pushes bread down their throats. However, we're all okay thanks to them being here to protect us from the terrible secret of space.
//os global send
WAIT 5 MINUTES