Skip to content

Instantly share code, notes, and snippets.

View avocade's full-sized avatar
💭
Designing domains and coding clojure for Fluent.to

Oskar Boëthius Lissheim avocade

💭
Designing domains and coding clojure for Fluent.to
View GitHub Profile

TodoMVC Composed (it's just a for loop!!!) — Electric Clojure

  • An early demonstration "Compiler Managed Network" and the extreme dynamic composition it makes possible
  • TodoMVC Composed merely calls the previous TodoMVC function inside a for loop.
20220822.Todomvc.Composed.mp4
8be9f66e1ca5a8d1c45af69ecf6b575f787cd562265bb4c432d1ee4d4742dbf63a20f3ce81c4a4bbc40c3f0379c670f3770abebdcd4eb0ba34dfc093f5488cd4
@avocade
avocade / erl-observe.sh
Created February 22, 2017 12:34
Connect to remote erlang node with remote iex session (eg over k8s port-forwarding), and start observer on it
#!/bin/bash
# This script provides easy way to debug remote Erlang nodes that is running in a kubernetes cluster.
# Usage: ./erl-observe.sh -l app=my_all -n default -c erlang_cookie
#
# Don't forget to include `:runtime_tools` in your mix.exs application dependencies.
set -e
# Trap exit so we can try to kill proxies that has stuck in background
function cleanup {
echo " - Stopping kubectl proxy."
@avocade
avocade / keybase.md
Created October 25, 2014 12:38
Keybase.io public gist

Keybase proof

I hereby claim:

  • I am avocade on github.
  • I am avocade (https://keybase.io/avocade) on keybase.
  • I have a public key whose fingerprint is 70E5 063A 021F 84A0 188C DDE1 504F DA78 B59D 201F

To claim this, I am signing this object:

Users = new Meteor.Collection 'users'
currentUser = ->
Users.findOne Session.get 'user_id'
if Meteor.is_client
Meteor.startup = ->
Meteor.autosubscribe = ->
Meteor.subscribe 'users'
puts 'creating admins'
Admin.create :name => 'superadmin', :password => 'rollercoaster'
puts 'creating countries'
countries = []
countries << { :name => 'sweden', :iso_code => 'se' }
countries << { :name => 'sweden', :iso_code => 'se' }
countries << { :name => 'usa', :iso_code => 'us' }
@avocade
avocade / Gemfile
Created July 11, 2012 10:59
gemfile group dev
group :development, :test do
gem 'factory_girl_rails'
gem 'debugger'
gem 'rspec-rails'
end