This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass{article} | |
\usepackage{tikz} | |
\usetikzlibrary{patterns} | |
\makeatletter | |
\tikzset{ | |
sub pic actions/.code=\expandafter\tikz@addmode\expandafter{\tikz@picmode} | |
} | |
\makeatother |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass{article} | |
\usepackage{tikz} | |
% These libraries handle the path manipulations | |
\usetikzlibrary{ | |
intersections, | |
spath3 | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\PassOptionsToPackage{svgnames}{xcolor} | |
\documentclass[border=1cm]{standalone} | |
\usepackage{tikz} | |
\colorlet{base}{Moccasin} | |
\colorlet{background canvas}{base} | |
\colorlet{block body}{base!75} | |
\colorlet{block title bg}{base!75!Red} | |
\colorlet{block title fg}{Green} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
radius = 20; | |
hexradius = radius * cos(15); | |
intersection() | |
{ | |
translate([0,0,-radius]) | |
{ | |
linear_extrude(height=2*radius) | |
{ | |
rotate([0,0,15]) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[ | |
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass{article} | |
\usepackage{tikz} | |
\tikzset{ | |
star graph/.pic={ | |
\node[ | |
fill, | |
inner sep=0pt, | |
outer sep=0pt, | |
circle, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ImageTools.h | |
// FaceDetection | |
// | |
// Created by Tobias Teleman on fredag 12 april 2013 | |
// Copyright (c) Tobias Teleman. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\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, |
NewerOlder