Skip to content

Instantly share code, notes, and snippets.

View AstraLuma's full-sized avatar
🐍
snek snek snek snek

Jamie Bliss AstraLuma

🐍
snek snek snek snek
View GitHub Profile
@AstraLuma
AstraLuma / index.html
Created November 11, 2014 18:53
Comfy
<!DOCTYPE html>
<html>
<head>
<title>Comfy</title>
</head>
<body>
<table id="chat">
<thead>
<tr>
<th>Timestamp</th>
@AstraLuma
AstraLuma / designer.html
Created January 7, 2015 00:37
designer
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../paper-icon-button/paper-icon-button.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../core-item/core-item.html">
<polymer-element name="captainslog-app">
<template>
<style>
:host {
/*
`\\ \\ !||
\ \\\\\\\\, !||
\,,.\\\,\ ,\ |\\/!||
\\V\ ,\ V \\| |//!||
\\VVVV\\\V/ |/ //||
VVVV\\((-\\./ /||
\VVV_\\==- ''/|FF|
\V( \ ., ,|JL|
\_\| (( \||/
@AstraLuma
AstraLuma / fillet-90-straight.node
Last active August 29, 2015 14:22
Antimony: Fillet, straight, 90deg
# ANEX-SPEC: 1
# ANEX-ID: astronouth7303@gmail.com/fillet-90-straight
# ANEX-VERSION: 1.0
# ANEX-AUTHOR: Jamie Bliss <astronouth7303@gmail.com>
# ANEX-CATEGORY: Routing
# ANEX-TAGS: routing, fillet
# ANEX-DESC: A 90deg straight-line fillet primitve suitable for union or subtraction
"""
A primitive for fillets. Union for interior corners; subtract with exterior ones.
@AstraLuma
AstraLuma / parameters.node
Last active August 29, 2015 14:22
Antimony: Parameters
# ANEX-SPEC: 1
# ANEX-ID: astronouth7303@gmail.com/parameters
# ANEX-VERSION: 1.0
# ANEX-AUTHOR: Jamie Bliss <astronouth7303@gmail.com>
# ANEX-CATEGORY: Utility
# ANEX-TAGS: parameters, constants, numbers
# ANEX-DESC: A simple parameters node, from a to z
"""
Simple parameters, from `a` to `z`.
@AstraLuma
AstraLuma / astdemo.py
Created July 5, 2015 06:51
Compile a python expression to forward polish notation (antimony style)
import ast
import io
class SubSyntaxError(SyntaxError):
"""
A syntax error in parsing or little mini language.
"""
#!/usr/bin/env python3
#!C:\Python34\python.exe -u
"""
This is a CGI script to read the phone list (in YAML) and format it in HTML.
"""
import cgitb
cgitb.enable() # for troubleshooting
try:
import yaml # Docs: http://pyyaml.org/wiki/PyYAML
import jinja2 # Docs: http://jinja.pocoo.org/
@AstraLuma
AstraLuma / ufactor.html
Created July 31, 2011 18:36
Page to continuously factor the timestamp
<!DOCTYPE html>
<html>
<head><title>ufactor</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script>
function factor(n) {
if (n == 0 || n == 1) return [];
f = 2;
s = Math.sqrt(n);
while (n%f != 0) {
@AstraLuma
AstraLuma / gist:1318930
Created October 27, 2011 06:41 — forked from Steve-V/gist:1318915
seen.old.db
(dp0
S'kellyev'
p1
(S'#thegeekgroup'
p2
F1307326422.069239
tp3
sS'leadhead'
p4
(S'#thegeekgroup'
[user]
name = YOUR NAME HERE
email = your.email@somewhere.com