Skip to content

Instantly share code, notes, and snippets.

@th0ma5w
th0ma5w / easing.py
Created March 31, 2014 01:32
Easing Equations in Python (orig by Robert Penner)
# ported from http://www.gizma.com/easing/
# by http://th0ma5w.github.io
#
# untested :P
import math
linearTween = lambda t, b, c, d : c*t/d + b
@SteveBenner
SteveBenner / yaml-env-vars-groups.rb
Last active April 28, 2023 22:14
Define Environment variables in your shell using a YAML config file
#!/usr/bin/env ruby
#
# This bit of code lets you define Environment variables in your shell via a YAML file.
# It works by composing Bash commands from the parsed data, meant to be executed within
# a Bash environment, which will export the variables just as in a regular Bash profile.
# This is accomplished by executing this script via the Bash substitution syntax $(...)
# which returns the output of evaluating whatever is inside the parenthesis, which in
# the case of this script would be appropriate 'export' commands that are run by Bash.
#
# This version is designed to parse aliases organized under named groups in the YAML
@pingud98
pingud98 / Distancemeasurement
Created August 27, 2015 07:33
HC-SR04 ultrasonic position sensor - without any wiring
/*
A (neat) cheat way of getting the HC-SR04 distance sensor working on an Arduino Uno
put it in the end, with the GND aligned with the GND pin next to pin 13 and AREF
This example code is in the public domain.
*/
// Pin 13 has an LED connected on most Arduino boards.
// give it a name:

How to use

Install dependencies

sudo easy_install everyconfig visitor

or

sudo pip install everyconfig visitor
@bheisig
bheisig / pi3_browser-only.md
Last active January 15, 2024 08:05
Run Raspberry 3 in digital signage mode with Chromium Web browser on a TV screen