Skip to content

Instantly share code, notes, and snippets.

@benbalter
benbalter / transparency-is-so-08.md
Last active August 29, 2015 14:02
Transparency is so '08: Why treating data as code & collaboration are the next frontier for open gov (Notes from Transparency Camp 2014, http://transparencycamp.org/schedule/2014/transparency-is-so-08-why-treating-data-as-code-co/)

Transparency is so '08: Why treating data as code & collaboration are the next frontier for open gov

Question: Open government is a great first step, but how can we push towards collaborative government, the world's largest and longest-running open source project

Background

  • What differentiates open source from transparency is collaboration: the essential promise that you can see the underlying source code and make things better.
  • PDF of excel spreadsheets are technically transparency, but that's really not good enough.
  • A central promise of open source is not just to see the process, but participate and be able to modify source
  • Nothing -> FOIA -> Open Gov -> (Collaborative Gov?)
@postazure
postazure / StrangeLoop2016Notes.md
Last active September 20, 2016 17:05
Strange Loop 2016 Notes

#StrangeLoop2016 all videos

Simplified Code

video

Program Slicing

Fixing bugs have diminishing returns. There is a one time cost, barrier to entry, to fixing bugs in dependencies. How do you make it easier to read and understand your dependencies?

Docs are perpetually out of date, source code is never out of date for describing what it does.

@polotek
polotek / ember_hurdles.md
Last active March 30, 2017 05:37
Hurdles getting started with Ember.js

This is a brain dump of my experience trying to get something going with Ember.js. My goal was to get to know the ins and outs of the framework by completing a pretty well defined task that I had lots of domain knowledge about. In this case reproducing a simple Yammer feed. As of this time, I have not been able to complete that task. So this is a subjective rundown of the things I think make it difficult to get a handle on Ember. NOTE: My comments are addressing the Ember team and giving suggestions on what they could do to improve the situation.

App setup

The new guides have pretty good explanation of the various parts of the framework; routers, models, templates, views. But it's not clear how they all get strapped together to make something that works. There are snippets of examples all over the place like:

App.Router.map(function() {
  match('/home').to('home');
});
@jjhageman
jjhageman / item_image.rb
Created June 3, 2011 20:59
Extracting Geolocation Image Data with Carrierwave and RMagick on Heroku
class ItemImage < ActiveRecord::Base
belongs_to :item
mount_uploader :image, ImageUploader
before_save :extract_geolocation
def extract_geolocation
img = Magick::Image.read(image)[0] rescue nil
@jcarbaugh
jcarbaugh / jobs-jobs-jobs.md
Last active October 16, 2017 15:21
Open Positions at ISL
@dbernheisel
dbernheisel / elixirconf-2018.md
Last active February 26, 2019 05:33
Notes from ElixirConf 2018

ElixirConf 2018

Short Version

Elixir in the Next 5 Years - Jose Valim Video

  • Earlier
  • Community is getting better. New podcasts, frameworks, and faster compilation.
@emeeks
emeeks / d3.sankey.js
Last active December 31, 2021 13:45
Sankey Particles
d3.sankey = function() {
var sankey = {},
nodeWidth = 24,
nodePadding = 8,
size = [1, 1],
nodes = [],
links = [];
sankey.nodeWidth = function(_) {
if (!arguments.length) return nodeWidth;
@mbostock
mbostock / .block
Last active April 28, 2022 21:44 — forked from mbostock/.block
Sticky Force Layout
license: gpl-3.0
@alexdiliberto
alexdiliberto / ember-list-all-routes.js
Last active April 21, 2023 08:59
List all Ember route paths. (Just paste this in the console of your favorite Ember app)
// NOTE: `AppName` is simply your PascalCase application name (`modulePrefix` key from `../config/environment.js`)
window.AppName.__container__.lookup('service:router')._router._routerMicrolib.recognizer.names;
@chrismccord
chrismccord / phx-1.4-upgrade.md
Last active June 16, 2023 06:22
Phoenix 1.3.x to 1.4.0 Upgrade Guides

Phoenix 1.4 ships with exciting new features, most notably with HTTP2 support, improved development experience with faster compile times, new error pages, and local SSL certificate generation. Additionally, our channel layer internals receiveced an overhaul, provided better structure and extensibility. We also shipped a new and improved Presence javascript API, as well as Elixir formatter integration for our routing and test DSLs.

This release requires few user-facing changes and should be a fast upgrade for those on Phoenix 1.3.x.

Install the new phx.new project generator

The mix phx.new archive can now be installed via hex, for a simpler, versioned installation experience.

To grab the new archive, simply run: