Skip to content

Instantly share code, notes, and snippets.

View wilkie's full-sized avatar
☠️
screaming into the void

wilkie wilkie

☠️
screaming into the void
View GitHub Profile
@bkerley
bkerley / gist:3389849
Created August 18, 2012 21:04
decentralized microbloggin'

I'm using "microgbloggin'" as a euphemism for Twitter, which is also a company that owns servers and controls how content on those servers is disbursed.

Microbloggin' features:

  • canonical names for status feeds (e.g. BonzoESC on twitter)
  • creating, reading, and deleting statuses
  • creating, reading, and deleting followings
  • creating mentions inline with statuses
  • it's all https (or some caveman plaintext http crap) so making clients is easy
@wilkie
wilkie / diversity_links.md
Last active June 15, 2021 16:49
Some links devoted to diversity discussion.
@wilkie
wilkie / statement.md
Created March 21, 2013 23:07
Open statement to Jim Franklin of SendGrid

To CEO Jim Franklin in response to your statement (available: http://blog.sendgrid.com/a-difficult-situation/)

First, how this looks to me: You responded to a threat by some people on the Internet. You put their consideration and your own above her's. You pushed her out because the threats targeted at her (some absolutely violent) started to overflow on your business. That seems clear.

If you are looking for a developer evangelist to 'unite,' as your statement suggests, this can only be interpreted as somebody that condones the current technology atmosphere. You are setting a terrible example to the tech world that speaking out about an issue is wrong. Specifically, this concerns an under-representated minority of people in this culture, of which you, Jim Franklin, do not belong... and telling them that they must act 'appropriately' as governed by a representative of the majority, you, within the context of inappropriate, unsafe, targeting behavior.

In no way have you opened the door for a woman to rep

require 'net/http'
require 'json'
# a simple wrapper to do an HTTP GET
def fetch_uri(uri, limit = 10)
uri = URI(uri)
request = Net::HTTP::Get.new(uri.request_uri)
http = Net::HTTP.new(uri.hostname, uri.port)
if uri.scheme == 'https'
@wolfwood
wolfwood / activations
Last active November 15, 2022 01:01
XOmB Activations: as they stand
============= Interrupt Primer =====================================
Computer: a deterministic monolith crunching away until infinity one
instruction after the other, as preordained by The Programmer.
If this is not your experience, it is because of interrupts (NB: it is
NOT because we don't write infinite loops, they are hidden down in the
bottom of most OSes and GUI and console applications). The idea
behind interrupts is that we can pause what the CPU is doing, handle
some new information (like key presses or the printer finishing a

Want to push to two Git Repos via a single command?

Want to do it easily via a simple .git edit?

My use case is pushing code that resides on Github as well as on Bitbucket. I want it available in both remote locations in case one is unavailable.

Here's how you do it:

Add the two remotes as normal

@wilkie
wilkie / compile.sh
Last active December 21, 2015 01:28
Rust testing micro-framework based off of typical behavior testing frameworks that's a little rough around the edges, but a good example of the power of rust macros.
rustc test.rs && ./test

http://www.daveramsey.com/blog/20-things-the-rich-do-every-day

I love lists! I especially love those that involve both a selection bias AND a confirmation bias!

I especially love the paragraph immediately after the list talking about how the Christian bible discusses how we should "live on less than we make" and instructs us that we should be "saving money and thereby building wealth". What?! God wants me to not be poor?! God should provide me with better health insurance options, a higher minimum wage, more inclusive workers' rights, and better, cheaper access to healthy food options.

  1. 70% of wealthy eat less than 300 junk food calories per day. 97% of poor people eat more than 300 junk food calories per day. 23% of wealthy gamble. 52% of poor people gamble.

The wealthy have better and more convenient access (through wealth and physical location) to large grocery stores.

@wilkie
wilkie / 00-description.md
Last active August 29, 2015 13:58
Disrupting ruby naming

Disrupting Ruby Naming

In the source files below, 'slash' means it is in a subdirectory. subdirectories are not allowed in gists. Find the source here

Let's say you, a native Spanish speaker, wanted to write some code and use a library, but you wanted it to be equally functional to a library that already exists, but have Spanish names. So far, our community has been focused on and expecting that everybody learn English. This is enforced in several places, but primarily in our programming languages. Let us be code librarians and ask ourselves: shouldn't we change that?

C

At first, I terrorized C's standard library by replacing the function names with those readable in Spanish. It was a good time.

@wilkie
wilkie / example.rb
Created April 22, 2014 00:41
A dynamic natural language translation layer for ruby... an example:
require :spaES # <-- Select the stdlib locale
require 'stdlib' # <-- import the stdlib
# The above will be automatically done in practice, but it is just listed here
# as an illustration. This is because after this point, you need to use the term
# importar to import.
# As in: importar 'some-library'
# Only THIS file uses the function name table in español. Other files and existing libraries
# assuming the original or a different natural language are functionally unaffected. It is