Skip to content

Instantly share code, notes, and snippets.

@makmanalp
makmanalp / comparison.md
Last active June 10, 2024 14:24
Angular vs Backbone vs React vs Ember notes

Note: these are pretty rough notes I made for my team on the fly as I was reading through some pages. Some could be mildly inaccurate but hopefully not terribly so. I might resort to convenient fiction & simplification sometimes.

My top contenders, mostly based on popularity / community etc:

  • Angular
  • Backbone
  • React
  • Ember

Mostly about MVC (or derivatives, MVP / MVVM).

@cpressey
cpressey / Hope_and_Remembrance.md
Created November 28, 2014 09:45
Hope and Remembrance

Hope and Remembrance

Purnima and Leszek saw a vampire getting on a bus.

Then one day, Leszek turned to Purnima and asked, "Purnima, do you think that one day we will remember that time when we remembered that time when we saw the Loch Ness monster underneath the bridge?" "Somehow, Leszek, I'm sure we will," said Purnima.

Then one day, Leszek turned to Purnima and said, "Purnima, do you remember that one time when we saw a vampire getting on a bus?" Purnima smiled. "Of course I do, Leszek."

Then one day, Leszek turned to Purnima and said, "Purnima, do you remember that one time when we wondered if we'd ever remember that time when we remembered that time when we saw the Loch Ness monster underneath the bridge?" Purnima smiled. "Of course I do, Leszek."

@migimunz
migimunz / gist:3eb99184fb9d3b8ac5a1
Created September 13, 2014 00:38
Solving fizzbuzz with genetic algorithms - somewhat correct!
# The best result I got so far is 72.9% , which is
# close enough for most real word uses.
Defs = {
fizz: 0,
buzz: 1,
fizzbuzz: 2,
neither: 3
}
@geeksam
geeksam / dsl-or-api-checklist.md
Last active June 12, 2017 20:46
The "Is It a DSL or an API?" Ten Question Checklist

[NOTE: The original version was posted in 2007 on an O'Reilly blog, but the page has been erroring out for months now. I'm copying it here because archive.org, while useful, can be slow. chromatic is a lovely person who (he thinks) probably has copyright to this piece.]


The "Is It a DSL or an API?" Ten Question Checklist

Saturday May 19, 2007 6:00AM
by chromatic in Opinion

@staltz
staltz / introrx.md
Last active June 28, 2025 13:44
The introduction to Reactive Programming you've been missing
@tsiege
tsiege / The Technical Interview Cheat Sheet.md
Last active June 28, 2025 04:50
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

ANNOUNCEMENT

I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!






\

module RandomString
HUMAN = %w{2 3 4 6 7 9 a c d e f g h j k m n p q r t v w x y}
LOWER = [*'a'..'z']
PARAM = [*'a'..'z', *0..9]
FULL = [*'a'..'z', *'A'..'Z', *0..9]
MIXED = [*'a'..'z', *'A'..'Z']
def self.by_rand(length = 8, set = :full)
chars = get_chars(set)
@sabman
sabman / Using-DViz-with-ActiveAdmin.md
Last active June 28, 2017 11:15
Using DViz.js to visualize data on ActiveAdmin Dashboard https://github.com/akngs/dviz

Using DViz.js with ActiveAdmin (Rails)

At https://BringBee.ch we have an internal ActiveAdmin App that we use to keep tabs on the recent activity. It's dashboard could do with some pretty graphs showing the stats of orders processed each week.

Today I ran across https://github.com/akngs/dviz so I decided to give it a spin. What follows is not by any means best practice but it got the results I wanted. The steps were pretty simple:

Get the source

in your vendor/assets/javascripts:

@shunsukeaihara
shunsukeaihara / mcl.rb
Created January 23, 2013 08:38
markov cluster algorithm in ruby
#!/usr/bin/ruby
class MCL
def initialize(path,min=0.00001,minpred=0.1)
@minimum=min
@minimunPred=minpred
@matrix=Hash.new
id=0
edgelist=Array.new
@mlafeldt
mlafeldt / app.rb
Created July 11, 2012 15:41
Skeleton for Ruby command-line app
#!/usr/bin/env ruby
#/ SYNOPSIS
#
# Run `CMD --help` for full documentation.
#
# Written by NAME
require 'optparse'
options = {