Skip to content

Instantly share code, notes, and snippets.

View ZdM87's full-sized avatar
🐢
I can't stop

zdm ZdM87

🐢
I can't stop
View GitHub Profile
@ZdM87
ZdM87 / fib.lua
Created October 29, 2021 01:13 — forked from SegFaultAX/fib.lua
Lua Fibonacci
-- Author: Michael-Keith Bernard
-- Date: May 22, 2012
-- Description: Various implementations of the Fibonacci sequence in Lua. Lua
-- has native support for tail-call elimination which is why `tail_call` and
-- `continuation` run in near constant time. For sufficiently large numbers of n
-- you can start to see linear performace characteristics (particularly for the
-- `continuation` implementation), but ultimately the `tail_call` implementation
-- is an order of magnitude faster than iteration even for values of n as small
-- as 500k.
@ZdM87
ZdM87 / user.lua
Created November 21, 2020 14:51 — forked from elmogallen/user.lua
My user settings for ZeroBrane Studio: makes it closer to Sublime Text and Lua Glider, keeps shortcut keys consistent as I go back and forth from Windows to OS X, adjusts the default settings, adds a "well" for the line numbers and code folding arrows, and generally makes some UI elements more subtle (code folding, indent guides).
--[[--
Use this file to specify User preferences.
Review [examples](+/Applications/ZeroBraneStudio.app/Contents/ZeroBraneStudio/cfg/user-sample.lua) or check [online documentation](http://studio.zerobrane.com/documentation.html) for details.
--]]--
editor.fontsize = 14
editor.usewrap = false
editor.tabwidth = 4
editor.indentguide = true
editor.fold = true
editor.foldtype = 'arrow'
@ZdM87
ZdM87 / install.sh
Created November 19, 2020 17:30 — forked from adelq/install.sh
Installing Minion Pro
#!/bin/sh
## Information
## http://carlo-hamalainen.net/blog/2007/12/11/installing-minion-pro-fonts/
## http://www.ctan.org/tex-archive/fonts/mnsymbol/
## 0.1: Install LCDF Typetools
## http://www.lcdf.org/type/
## If you use Homebrew (http://mxcl.github.com/homebrew/), then uncomment:
# brew install lcdf-typetools