Skip to content

Instantly share code, notes, and snippets.

@loopspace
loopspace / Main.lua
Created Nov 19, 2019
Codea solution to Bri_G's beermats puzzle
View Main.lua
-- Beermats
function setup()
displayMode(OVERLAY)
-- load the socket library to get accurate time readings
local socket=require("socket")
-- measue the time at the start
local st=socket:gettime()
@loopspace
loopspace / SquareHexagonCircle.scad
Created Mar 11, 2019
A suggestion of a solid with a square, hexagon, and circle orthogonal projections.
View SquareHexagonCircle.scad
radius = 20;
hexradius = radius * cos(15);
intersection()
{
translate([0,0,-radius])
{
linear_extrude(height=2*radius)
{
rotate([0,0,15])
{
@loopspace
loopspace / 1aTabOrder
Created May 20, 2013
Library Graphics Release v2.2a -A library of classes and functions relating to graphical things.
View 1aTabOrder
Library Graphics Tab Order
------------------------------
This file should not be included in the Codea project.
#ChangeLog
#Main
#Bezier
#Explosion
#Path
#TextNode
#View
@loopspace
loopspace / Tracks.lua
Created Dec 19, 2018
Codea Tracks code
View Tracks.lua
--[[
Track definitions.
--]]
function TrackPoints(a)
a = a or {}
local pts = a.points or {}
local t = a.start or 0
local r = a.step or .1
View stargraph.tex
\documentclass{article}
\usepackage{tikz}
\tikzset{
star graph/.pic={
\node[
fill,
inner sep=0pt,
outer sep=0pt,
circle,
@loopspace
loopspace / ImageTools.h
Created May 23, 2018 — forked from tnlogy/ImageTools.h
A Codea addon for saving images to the photo album, share photos to facebook and detect faces in an image. Just add [self.viewController registerAddon:[ImageTools sharedInstance]]; to AppDelegate.mm
View ImageTools.h
//
// ImageTools.h
// FaceDetection
//
// Created by Tobias Teleman on fredag 12 april 2013
// Copyright (c) Tobias Teleman. All rights reserved.
//
#import <Foundation/Foundation.h>
View Codea Tube
-- BezierTubes
function setup()
assert(craft, "Please include Craft as a dependency")
assert(OrbitViewer, "Please include Cameras (not Camera) as a dependency")
scene = craft.scene()
scene.camera:add(OrbitViewer)
local track = scene:entity()
local p = f(0)
@loopspace
loopspace / TJ_Knots.tex
Created Sep 24, 2016
Knot for TJ Hitchman's course
View TJ_Knots.tex
\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
Library Miscellaneous Release v2 -A library of miscellaneous classes and functions.
View 1aTabOrder
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
Library Maths Release v2.1 -A library of classes and functions for mathematical objects.
View 1aTabOrder
Library Maths Tab Order Version: 2.1
------------------------------
This file should not be included in the Codea project.
#ChangeLog
#Main
#Matrix
#Complex
#Quaternion
#Vec3
#Vector
You can’t perform that action at this time.