Skip to content

Instantly share code, notes, and snippets.

#! /usr/bin/env bash
# install:
# wget https://gist.githubusercontent.com/vaxinate/2d85f54ae6d279531f45bb8ec5dcd1a8/raw/1b89b34bdedea60394c445e97688d90924022af6/slackdarkmode.sh
# sudo cp slackdarkmode.sh /usr/bin/fixslack
# usage:
# fixslack
fixslack(){
FILEPATH=/Applications/Slack.app/Contents/Resources/app.asar.unpacked/src/static/ssb-interop.js
@vaxinate
vaxinate / word_wrap.rb
Created October 30, 2015 18:03 — forked from prehnRA/word_wrap.rb
Coding Challenge: Word Wrap
# Write a method called `word_wrap` that takes 1 to 2 arguments.
# The first argument is a string.
# The second argument is optional, and represents a maximum line length. The
# default value should be 80.
# `word_wrap` should a string formatted such that no line is longer than the
# line length specified by the second argument (i.e. no more than N characters
# between newlines).
# You should not break words apart, however, you can assume that the line width
# will never be shorter than the longest word.
@vaxinate
vaxinate / jrpgz.md
Last active August 29, 2015 14:31 — forked from anonymous/jrpgz.md

PS2

  • Dragon Quest VIII: Journey of the Cursed King
  • Shin Megami Tensei: Nocturne
  • Tales of the Abyss
  • Rogue Galaxy
  • Shin Megami Tensei: Persona 4
#!/usr/bin/env ruby
require 'open-uri'
require 'json'
`say #{JSON.parse(open('https://raw.github.com/ChaseFlorell/jQuery.ProfanityFilter/master/swearWords.json').read).sample}`
@vaxinate
vaxinate / trace.js
Created January 16, 2013 09:04 — forked from bhelx/trace.js
/**
* Intelligent Traceroute
*
* Do a traceroute on a domain, prints a json array
* of the hops with their physical locations.
*
* //Example
* node trace.js google.com
*
* npm install traceroute async underscore request
@vaxinate
vaxinate / player.rb
Created April 7, 2012 14:18 — forked from poemdexter/hurf.rb
rub
class Player
def initialize(window)
@bandit_sprite = Gosu::Image.new(window, "bandit.bmp", false)
@x = @y = 0
end
def draw
@bandit_sprite.draw(24*@x, 24*@y, 1)
end