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 / git-publish
Created November 7, 2014 23:07
Publish the current git branch to origin
#!/bin/sh
exec git push -u origin `git rev-parse --abbrev-ref HEAD`
@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 / gist:6d57fcc3e1202086a2de
Created October 8, 2015 20:07
Notes on building Smuxi server on freebsd
pkgconf
intltool
gettext
mono
log4net
nini
gtk-sharp20
gmake
--disable-frontend-stfl
@AstraLuma
AstraLuma / yubico.rules
Created October 14, 2015 19:29
Yubico for Udev
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", MODE="0664", GROUP="plugdev", ATTRS{idVendor}=="1050"