Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View unimatrixZxero's full-sized avatar
🌱
💎

Sam Figueroa unimatrixZxero

🌱
💎
View GitHub Profile

⬜⬜⬜⬜🗼🌁⬜⬜📉📂🕕📂📉⬜⬜🗼🗼🌁📉🏢📂💾🏦💍🎐🔪🎼📼🎐🎐📼🎣🎣🎐🔎🎐📼📼🎐🎧📱💸🔘🔎🎼📼🎐🔪🎣🔝🔝🎼📼🎼🎣🔝🔝🎣📼🎐📼🎣🔝🎣🔪📼🎼🍨📩📟🎣🔪🎐🎧🔎
⬜⬜⬜⬜🗼🌁⬜⬜📉📂⛲📂🎡🌁🗼⏬🎹💨🏦🏪🏪👟🔘👀🐦🗿🎼🔪🗿⌚📼🎣🎣📼🔎🎐📼📼🎐🔗💳📩🔘🎐🚏📼🎐🔪🎣🔝🔝🔪📼🚏🎣🔝🔝🎣📼🎐📼🎣🔝🚏🔪📼🔪🐶⛅📟🎼🎐🔊📹💻
⬜⬜⬜⬜🗼🌁⬜🌁🏢🕖🎲🏦🏦🏦👀🔦🔦🔦🔗🎐🍬🎧💍👀👟🔲🐦⌚🗿🔎📼🎣🎣📼🎐🎐📼📼👤🔗📠📩👟📼🎣📼📼🔪🎣🔝🔝📼📼🎼🎣🔝🔝🎣📼🎐🎐🎼🚏📼🎐📼📼🍨⛅🔊📼🚉👟📤📤
⬜⬜⬜⬜📃📉📉📧👟💍🚉🔗🔦🎧📼🎼📼🎐🎧🗿📼📼🗿🔊🐦👟📱🔘🔲📟🍬🎣🚏📼🎐🎐📼📼👤🍬⚾⛅🚽🔪🎣📼📼🔪🎣🔝🔝📼📼🔪🎣🎣🚏🔪🔎🚉🔍🔍🔊📹📹🎧🍬🍨⛅🔊📼💍📱📤📤
⬜🌁📉📂📱🏦👟💍🍬🔪🚏🔪🎐🎧📼🎼🔪🎐🐦🐦🔎📼🗿🔎🔎🔗🐦📱🎹📤👀🔊📹🔊🔎🎐📼🔪📼📼💳⛅🐦🎼🎣📼📼🔪🎣🔝🎣🎐🎧🎧🔗🔊💍📹🔲👟🔘🔘📱📤🔘🔊🍬🍨📠🔊📼🚽🃏🕕🔳
🏦🏦👟📹🔦🎧🔗🔎🔪🎣🎣🎼🎐🔗🍬🎼🔪🔦🔘🔘🚉📼🗿🔎🗿🔪🔪🔗👟📧🕖🕓📂🏦🔦🎐📼🔪📼📼🍨⚾🔊🎼🎼🎐🔎🔎🔎🎧🔊💻👀🔘📱📱📱📤📤🎲🎲📤📤🎲📤💍🍬🍨😰🔊🔪⛪📩📈🌁
🎐🎐🔦🔦🎐🎐🔗🎧📼🎣🎣🎼🎐🔗🍬🚏🔪🔊📱🔘🔗📼📼🔎🎐🎼🎣🎣🔎💍🏦📂📉📱🔗🎐📼🔪📼🗿🐚🐶💍🔎🔊🔩👀👟🔘📱📱🎲💾💾🎹🎲🎲🎲🎲🎹🎹🕕📄🏭🔳🚽🍬🐶😰📟🔪🍲📝⬜⬜
🎧🔗🚉🚉⌚🗿🔗🔗📼🎣🎣🎼🎐🔗🍬🎼🎼🚉🔘🔲🎐📼📼🎐🎐🎼🎣🎣📼🔎🔗🏦🏢🏦🚉🔗🔗🔗🔗🔍💀⛪🚓📹📱🎲🎹🎹🎲📤📱🎲💾🕖🔳📄💬🏭📃📈🏭📈⬜⬜📃🔩⌚🐶😰🔊🔪🍲📈⬜⬜
🔲🐦💍🚉🍬🍬🔗🎧📼🎣🎣🔪🔎🔗📼🎣🔪🚉🔘🔩🎐🔪🎐🎐📼🎼🎣🔪🔎🚉🔊🏦📂📱🔍🐧🌷🚬🚬🚬🚬🌷🌷🎏🛀👀🐚🎹🎹🕖💬📃📈🗼🌁⬜⬜⬜⬜⬜🌁⬜⬜⬜📈💀🍬🐶😰🔍🔪🔏📈⬜⬜
🐚🔲💍🚉🍬⌚🔗🔎📼🎣🎣🔪🔎🔗📼🎣🎼🔦👀💍📼📼🗿🎧🔗🔗🚉🐦👀👟🔩🚽🛀🐘🚬🐗🐗💣🐗🐗🐗🍢🐗🍢🍢🚥🎏📓📠📈⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜📃🚽📼🐶💳🚉🔪🔏📈⬜⬜

@unimatrixZxero
unimatrixZxero / springer-free-maths-books.md
Created December 30, 2015 05:40 — forked from bishboria/springer-free-maths-books.md
Springer have made a bunch of books available for free, here are the direct links

The introduction to Reactive Programming you've been missing

(by @andrestaltz)

So you're curious in learning this new thing called (Functional) Reactive Programming (FRP).

Learning it is hard, even harder by the lack of good material. When I started, I tried looking for tutorials. I found only a handful of practical guides, but they just scratched the surface and never tackled the challenge of building the whole architecture around it. Library documentations often don't help when you're trying to understand some function. I mean, honestly, look at this:

Rx.Observable.prototype.flatMapLatest(selector, [thisArg])

Projects each element of an observable sequence into a new sequence of observable sequences by incorporating the element's index and then transforms an observable sequence of observable sequences into an observable sequence producing values only from the most recent observable sequence.

# Usage:
#
# In your controller
#
# before_filter :set_active_navigation_item
# def set_active_navigation_item
# active_navigation_item :we, :are, :here
# # or
# active_navigation_item controller.controller_name, controller.action_name
# # or
module Abyss
ROUNDTRIP = {}.tap { |abyss| abyss.default = abyss }.freeze
def to_abyss(obj = self)
case obj
when Hash
obj.inject({}) { |h,(k, v)| h.update k => to_abyss(v) }.tap { |h| h.default = ROUNDTRIP }
when Array
obj.map { |e| to_abyss(e) }
else
obj
@unimatrixZxero
unimatrixZxero / gist:4224125
Created December 6, 2012 12:29 — forked from bkimble/gist:1365005
List local memcached keys using Ruby
#!/usr/bin/env ruby
require 'net/telnet'
cache_dump_limit = 100
localhost = Net::Telnet::new("Host" => "localhost", "Port" => 11211, "Timeout" => 3)
slab_ids = []
localhost.cmd("String" => "stats items", "Match" => /^END/) do |c|
matches = c.scan(/STAT items:(\d+):/)
slab_ids = matches.flatten.uniq
end
@unimatrixZxero
unimatrixZxero / a.md
Created August 23, 2012 06:28 — forked from rkh/a.md

This allows you to use the following video streaming services outside of the US from your Mac without having to use a proxy or VPN, so no big bandwidth issues:

  • Netflix
  • Hulu / HuluPlus
  • CBS
  • ABC
  • MTV
  • theWB
  • CW TV
  • Crackle
/*
As of version 1.1.2, Propane will load and execute the contents of
~Library/Application Support/Propane/unsupported/caveatPatchor.js
immediately following the execution of its own enhancer.js file.
You can use this mechanism to add your own customizations to Campfire
in Propane.
Below you'll find two customization examples.
@unimatrixZxero
unimatrixZxero / gist:150346
Created July 20, 2009 13:49 — forked from cypher/gist:150248
script to verify that only syntactically valid ruby code is commited #git
#!/usr/bin/env ruby
#
# A hook script to verify that only syntactically valid ruby code is commited.
# Called by git-commit with no arguments. The hook should
# exit with non-zero status after issuing an appropriate message if
# it wants to stop the commit.
#
# Put this code into a file called "pre-commit" inside your .git/hooks
# directory, and make sure it is executable ("chmod +x .git/hooks/pre-commit")
#