Skip to content

Instantly share code, notes, and snippets.

extends Spatial
export (int) var num_points = 3
export (Vector2) var pane_scale = Vector2.ONE
var points = []
var polygons = []
var intersection = null
var default_verts = [
Vector2(0,0),
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="UTF-8">
<title>Raquat.ro</title>
<script>
function updateFrame(page) {
switch (page) {
case 'lewdgen':
@aarqon
aarqon / preshow.html
Last active March 26, 2017 21:47
LP Preshow Checklist
<!DOCTYPE html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="UTF-8">
<title>Preshow Checklist</title>
<style>
@import url('https://fonts.googleapis.com/css?family=Roboto+Slab:300');
body {
font-family: "Roboto Slab", sans-serif;
margin: 2em;
@aarqon
aarqon / motd-fancy.py
Created March 8, 2017 20:57
Makes a fancy /etc/motd
import subprocess
import re
last_re = re.compile('\s{2,}')
ip_re = re.compile('\d+\.\d+\.\d+\.\d+')
temp = open("/etc/motd-base",'r')
base = temp.read()
temp.close()
@aarqon
aarqon / slicer.py
Created February 25, 2017 05:24
Slices an image into uniform square tiles of a given size
# Usage: python3 slicer.py [image] [size in pixels]
# Requires Pillow
import os
import sys
from PIL import Image
image_url = sys.argv[1]
size = int(sys.argv[2])
print(image_url, size)
{
"name": "testSceneConditionals2",
"child": false,
"actors": ["actor1"],
"body": "{actor:actor1} has a test with two outcomes in this paragraph.{condition:actor1.modattr.health:25:testSceneConditionals2_true:testSceneConditionals2_false}"
}
import re
import random
from Condition import Condition
class SceneProcessor():
scenelist = {}
def __init__(self, scenelist=[]):
for scene in scenelist:
self.scenelist[scene.getName()] = scene
@aarqon
aarqon / 8bit-binned.py
Created January 14, 2017 04:43
A Python script used to generate the prettier BGR332 palette
import math
import colorsys
def scale(mult,step):
value = (mult)*(255/step)
if value % 1 > 0.5:
return math.ceil(value)
else:
return int(value)
@aarqon
aarqon / gbc.gpl
Created January 14, 2017 04:39
A GIMP-Formatted Palette Mimicking all colors across the optional Game Boy palettes
GIMP Palette
Name: Game Boy Color
Columns: 7
#
254 255 252 Untitled
254 148 148 Untitled
254 232 195 Untitled
254 254 164 Untitled
121 255 50 Untitled
97 165 253 Untitled
@aarqon
aarqon / BGR332.gpl
Created January 14, 2017 04:32
A GIMP-Format Palette for 8-bit color space (BGR332)
GIMP Palette
Name: 8-bit Binned
Columns: 19
#
0 0 0 -
36 0 0 -
73 0 0 -
109 0 0 -
146 0 0 -
146 35 0 -