Skip to content

Instantly share code, notes, and snippets.

View fixr's full-sized avatar

Freddie Peña fixr

View GitHub Profile
@eltercero
eltercero / init.lua
Last active June 22, 2019 12:29
Config file for hammerspoon
local hotkey = require "hs.hotkey"
local application = require "hs.application"
-- HOTKEYS
local hyper = {"ctrl", "alt", "cmd"}
local app_opener = {"cmd", "ctrl"}
function toggle_app(app_name)
return function()
local app = hs.appfinder.appFromName(app_name)
@weapp
weapp / _Regions_.md
Last active February 7, 2022 17:21
Experiment about functional programing in different languages

Definitions:

  • callable: something that can be called with params; like a function, method, procedure, macro...
  • Point:: 2d tuple/list/array or object/struct with coordinates (x, y) as attributes/fields
  • Region: a callable that receive a point and return true if is inside of a a region, and false if is out.
  • Distance : a float

Problem:

  • We have a two tanks (in a two positions), and we want to know if we can shot to another positions without danger.
  • The tanks have a secure region defined by a circle
  • The tanks have a maximun shot distance.
@mklabs
mklabs / bootstrap-plugins.txt
Created December 2, 2011 11:23
h5bp + twitter bootstrap integration
bootstrap-tooltip.js
bootstrap-popover.js
bootstrap-alert.js
bootstrap-button.js
bootstrap-carousel.js
bootstrap-collapse.js
bootstrap-dropdown.js
bootstrap-modal.js
bootstrap-scrollspy.js
bootstrap-tab.js