Skip to content

Instantly share code, notes, and snippets.

View botandrose's full-sized avatar

Micah Geisel botandrose

View GitHub Profile
@botandrose
botandrose / multiple_apps_binding_test.js
Created May 18, 2015 21:36
Test to expose multiple app view -> controller binding regression in Ember 1.12
import "ember";
import EmberHandlebars from "ember-htmlbars/compat";
var compile = EmberHandlebars.compile;
var App1, App2, $fixture;
function setupExample() {
$fixture.append('<div id="app1"></div>');
@botandrose
botandrose / elm-slider.elm
Last active April 3, 2016 17:42 — forked from NickAger/elm-slider.elm
Understand how components work in Elm - An Elm version of https://jqueryui.com/slider/
module Slider where
import Html exposing (..)
import Html.Attributes exposing (class, style)
import Mouse
import Signal
-- MODEL
@botandrose
botandrose / DrawLines.elm
Created May 20, 2016 00:23
Draw lines on an div with Elm
module DrawLines exposing (..)
import Html.App
import Mouse exposing (Position)
import Svg exposing (..)
import Svg.Attributes exposing (..)
main : Program Config
main =
/*
* Arduino Keyboard Emulation
* learnelectronics
* 13 FEB 2017
*
* www.youtube.com/c/learnelectronics
*/
//#############################################################################################################
//This code only works on an Arduino with the ATmega32U4 chip, so only Arduino Leonardo and Arduino Pro Micro!!
@botandrose
botandrose / spec.rb
Created January 30, 2020 12:51
Attempt to reproduce database cleaner bug
require "active_record"
require "database_cleaner"
ActiveRecord::Base.establish_connection adapter: "sqlite3", database: ":memory:"
ActiveRecord::Schema.define do
create_table :models do |t|
t.string :name
end
end