Skip to content

Instantly share code, notes, and snippets.

View onethirtyfive's full-sized avatar

Joshua Morris onethirtyfive

View GitHub Profile
@onethirtyfive
onethirtyfive / provider_example.js
Created August 25, 2011 17:44 — forked from mbbx6spp/provider_example.js
Illustration of provider idiom in Javascript for sharing with fellow Code PaLOUsa 2011 conference attendee from this morning #CPL11
/*
* Javascript provider idiom illustrated
* @author Susan Potter
* @date 2011-01-28
*/
// FinEnv "interface"
var FinEnv = function () {
return {
println: function (output) {
class Base
A_VALUE = 2
def foo
end
end
module Refiner
refine Base do
def foo
old_value = super
@onethirtyfive
onethirtyfive / sensor-light.yaml
Created April 21, 2024 16:28 — forked from Blackshome/sensor-light.yaml
Home Assistant Sensor Light that can be used in Blueprints
blueprint:
name: Sensor Light
description: >
# 💡 Sensor Light
**Version: 6.5**
Your lighting experience, your way - take control and customize it to perfection! 💡✨