Skip to content

Instantly share code, notes, and snippets.

View unimatrixZxero's full-sized avatar
🌱
💎

Sam Figueroa unimatrixZxero

🌱
💎
View GitHub Profile
@unimatrixZxero
unimatrixZxero / umlauts.ahk
Created April 19, 2019 22:41
Umlauts with capslock
;Umlaut
#Persistent
SetCapsLockState, AlwaysOff
CapsLock & a::
GetKeyState, state, Shift
if state = U
SendInput {ASC 0228} ;CapsLock+a = lower case a-umlaut
else Send, {ASC 0196} ;CapsLock+Shift+a = UPPER CASE A-umlaut
return
@unimatrixZxero
unimatrixZxero / solarized_slack.css
Last active February 19, 2019 08:28
Solarized Slack Theme
body { background: #002c37; color: #7F9596; }
a { color: #b38300; }
a:link, a:visited { color: #949494; }
a:hover, a:active, a:focus { color: #c7c7c7; }
hr { border-bottom: 1px solid #424242; border-top: 1px solid #222; }

Video Games and the (Male) Meaning of Life

“Virtual worlds give back what has been scooped out of modern life . . . it gives us back community, a feeling of competence, and a sense of being an important person whom people depend on.” - Jonathan Gottschall

When I was 7, my parents bought me and my brother an Atari 2600, the first mass game console. The game it came with was Asteroids. We played that game an awful lot. One night, we snuck down in the middle of the night only to discover my Dad already playing.

My brother and I loved going to local arcades and try to make a few quarters last as long as possible. It was the perfect set of incentives – you win, you keep playing. You lose, you’re forced to stand there and watch others play, hoping that someone is forced to leave their game in the middle so you can jump in. We became very good at video games. My favorite was Street Fighter II. I memorized the Mortal Kombat fatalities to inflict graphic harm on defeated enemies. On the PC, I was hooked the f

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

@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
@unimatrixZxero
unimatrixZxero / append_watermark.sh
Created February 27, 2015 11:32
Script that uses imagemagick to append a watermark to the bottom of each image in the given folder.
#!/bin/sh
# _ __ _ _____
# __ ______ (_)___ ___ ____ _/ /______(_) _/__ / _ _____ _________
# / / / / __ \/ / __ \__ \/ __ \/ __/ ___/ / |/_/ / / | |/_/ _ \/ ___/ __ \
# / /_/ / / / / / / / / / / /_/ / /_/ / / /> < / /___> </ __/ / / /_/ /
# \__,_/_/ /_/_/_/ /_/ /_/\__,_/\__/_/ /_/_/|_| /____/_/|_|\___/_/ \____/
#
# 2012-11-02
# Script to use imagemagick to append a watermark to the bottom of a folder of images.
#
@unimatrixZxero
unimatrixZxero / cf_chat.css
Created November 21, 2014 14:04
Make Propane's chat transcript a bit easier on the eyes
body {
background-color:white ! important;
}
#upload_target {
display:none ! important;
}
div.bottom {
padding:0px ! important;
margin:0px ! important;
background-image: none ! important;

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