Skip to content

Instantly share code, notes, and snippets.

View HyroVitalyProtago's full-sized avatar
💭
🦾 🧠

HyroVitalyProtago

💭
🦾 🧠
View GitHub Profile
@sp4cemonkey
sp4cemonkey / LitMesh Class
Last active December 14, 2015 15:59
This is a codea class with an ADS lighting with options for colored, textured and bumpmapped
LitMesh = class()
--[[
LitMesh provides a bumpmappable ADS (ambient/diffuse/specular) lighting enhanced class
for meshes.
usage:
setup()
myObject = LitMesh(isTextured, isBumpMapped)
myObject.litMesh.vertices = some table of vertices
@briarfox
briarfox / 1aTabOrder
Last active December 17, 2015 01:08
AutoGist Release v2.2.8 -AutoGist your Codea projects!
AutoGist Tab Order Version: 2.2.8
------------------------------
This file should not be included in the Codea project.
#Main
#Gist
#Installer
#json
#Base64
#UpdateChecker
#ChangeLog
@tmcw
tmcw / d3.md
Last active December 6, 2022 14:04
Accompaniment to dcjq

This is a more wordy, narrative accompaniment to my pretty bare presentation about d3 that I gave to the jQuery DC Meetup.

What is d3?

  • Not a chart library (though you can make charts with it)
  • Not a map library (though you can make maps with it)

Which is to say, d3 can be used for building things, but the 'atomic parts' are lower-level than bar graphs or projections or so on. This is a powerful fact. It also means that d3 is a good basis for simple interfaces, like Vega.js, that make its power accessible in other ways.

  • Not a compatibility layer (it doesn't work with bad browsers)
@briarfox
briarfox / Main.lua
Last active December 17, 2015 05:59
AutoGist Installer
--AutoGist Single Install
--Installer created by @acp edited by @Briarfox
--- This will pull the AutoGist project into Codea for you
-- Instructions:
-- * Create a new project in Codea named AutoGist If you chose another name please change the variable Below
--This is case sensitive
ProjectName = "AutoGist" --Do not change this or else AutoGist will not work
-- * Paste this into the Main (not from the raw view, as iSafari will escape special characters)
-- * Run, run again,
@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 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
@aaronpk
aaronpk / gist:5846789
Last active October 10, 2025 15:42
Added WebFinger support to my email address using one rewrite rule and one static file.
[aaron@parecki.com www]$ cat .htaccess
RewriteEngine on
RewriteCond %{QUERY_STRING} resource=acct:(.+)
RewriteRule ^\.well-known/webfinger /profile/%1? [L]
[aaron@parecki.com www]$ cat profile/aaron@parecki.com
{
"subject": "acct:aaron@parecki.com",
"links": [
{
@dermotbalson
dermotbalson / gist:7590746
Last active December 29, 2015 01:09
Codea users world map
--# Main
--The name of the project must match your Codea project name if dependencies are used.
--Project: Place Project Name Here
--Version: Alpha 1.0
--Comments:
--by ignatz
--November 2013
--This map shows light/dark in real time
--It knows your time, but it needs your longitude, so BEFORE RUNNING THE CODE
@geekhunger
geekhunger / Hook.lua
Last active April 15, 2016 14:20
Easy Backups in Codea.
--# Hook
local s_setup
debug.sethook(function(event)
if setup and setup ~= s_setup then
local o_setup = setup
setup = function()
debug.sethook()
if hook then hook() end
o_setup()
end
@leegrey
leegrey / TileMapPathField.ts
Last active May 4, 2020 12:52
Pathfinding on a Grid with Flow Fields
// Copyright Lee Grey, 2014
// License: MIT
module lg.tileSystem {
import Vector2D = lg.math.geometry.Vector2D;
export class FieldInfo {
distanceFromTarget: number = -1;