Skip to content

Instantly share code, notes, and snippets.

@loopspace
loopspace / TJ_Knots.tex
Created September 24, 2016 19:23
Knot for TJ Hitchman's course
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{knots,hobby}
\begin{document}
\begin{tikzpicture}[use Hobby shortcut]
\begin{knot}[
consider self intersections,
% draft mode=crossings,
ignore endpoint intersections=false,
@loopspace
loopspace / 1aTabOrder
Created May 20, 2013 10:40
Library Miscellaneous Release v2 -A library of miscellaneous classes and functions.
Library Miscellaneous Tab Order Version: 2
------------------------------
This file should not be included in the Codea project.
#ChangeLog
#Main
#EuclideanPlane
#ComplexPlane
#Shape
#ShapeElements
#Shapes
@loopspace
loopspace / 1aTabOrder
Created May 20, 2013 10:39
Library Maths Release v2.1 -A library of classes and functions for mathematical objects.
Library Maths Tab Order Version: 2.1
------------------------------
This file should not be included in the Codea project.
#ChangeLog
#Main
#Matrix
#Complex
#Quaternion
#Vec3
#Vector
@loopspace
loopspace / 1aTabOrder
Created January 27, 2014 23:11
Flying Ignatz Release v1.12 -Using quaternions to fly a plane.
Flying Ignatz Tab Order Version: 1.12
------------------------------
This file should not be included in the Codea project.
#Main
#Flight
#Joystick
#Plane
#Quaternion
#Sky
#VecExt
@loopspace
loopspace / 1aTabOrder
Created January 19, 2014 22:42
Flying Release v1.7 -Using quaternions to fly a plane.
Flying Tab Order Version: 1.7
------------------------------
This file should not be included in the Codea project.
#Main
#JoyStick
#Quaternion
#Flight
#Plane
#Sky
@loopspace
loopspace / 1aTabOrder
Created January 11, 2014 19:51
Spitfire II Release v1.4 -Using quaternions to orient a plane.
Spitfire II Tab Order Version: 1.4
------------------------------
This file should not be included in the Codea project.
#Main
#Andrew
#Quaternion
#Q
#Plane
@loopspace
loopspace / 1aTabOrder
Created January 11, 2014 19:47
Plane Quaternions Release v1.2 -Using quaternions to orient a plane.
Plane Quaternions Tab Order Version: 1.2
------------------------------
This file should not be included in the Codea project.
@loopspace
loopspace / gist:7924800
Last active December 31, 2015 02:59 — forked from mattattui/gist:879249
<?php
/* html_convert_entities($string) -- convert named HTML entities to
* XML-compatible numeric entities.
*/
function html_convert_entities($string) {
return preg_replace_callback('/&([a-zA-Z][a-zA-Z0-9]+);/S',
'convert_entity', $string);
}
\documentclass[border=4pt]{standalone}
\usepackage{amsmath,mathpazo,gensymb}
\usepackage{tikz}
\makeatletter
\pgfarrowsdeclare{centre*}{centre*}
{
\pgfarrowsleftextend{+-.5\pgflinewidth}
\pgfutil@tempdima=0.4pt%
\advance\pgfutil@tempdima by.2\pgflinewidth%
@loopspace
loopspace / 1aTabOrder
Created October 14, 2013 18:51
Fake Sphere Release v1.1 -A shader that fakes a sphere effect, based on code by Ignatz.
Fake Sphere Tab Order Version: 1.1
------------------------------
This file should not be included in the Codea project.