Skip to content

Instantly share code, notes, and snippets.


Matti Schneider MattiSG

View GitHub Profile
tiffany352 / index.html
Last active Jun 19, 2021
Twitter archive browser
View index.html
<!DOCTYPE html>
<meta charset="UTF-8" />
<title>Twitter Archive Browser</title>
<script src=""></script>
<script src=""></script>
<script src=""></script>
MattiSG /
Last active Mar 23, 2021 — forked from fyrk/
Convert a wiki from MediaWiki to Gollum and Markdown, importing all metadata.

This will convert a wiki from MediaWiki to Gollum and Markdown (or any other format supported by Pandoc).

  1. Install dependencies:

    brew install pandoc icu4c
    gem install --no-ri --no-rdoc hpricot gollum gollum-lib pandoc-ruby
  2. Perform a Special:Export

View Makefile
casperjs index.js && convert *.jpg video.mpeg && gify video.mpeg out.gif && rm *.jpg video.mpeg
mikeal / gist:9242748
Last active Jun 23, 2020
Response to Nodejitsu NPM Trademark
View gist:9242748

I've known people at nodejitsu for years, since before the company even existed. I still consider many of them friends. That said, somebody over there has lost their mind.

Trademarks are an important part of open source. They protect the integrity of the trust that is built by any project. A classic example of why this is the case is Firefox. Suppose that a malware producer takes the Firefox codebase, which is free and open source, packages up their malware with it and then releases it as "Firefox". Then they buy search advertising and suddenly their bad and malicious version of Firefox is the first result on search engines across the web. This is clearly a bad thing for Firefox and open source everywhere, but what can Mozilla do to protect their community of users?

They can't enforce a software license since the use is permitted under the Mozilla Public License. They can, however, enforce on these hypothetical bad actors using their trademark on the word "Fi

jookyboi /
Last active Oct 13, 2021
CSS libraries and guides to bring some order to the chaos.


  • 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
  • Compass - Open source CSS Authoring Framework.
  • Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
  • Font Awesome - The iconic font designed for Bootstrap.
  • Zurb Foundation - Framework for writing responsive web sites.
  • SASS - CSS extension language which allows variables, mixins and rules nesting.
  • Skeleton - Boilerplate for responsive, mobile-friendly development.


MattiSG / localize_helper.rb
Created Oct 14, 2013
Add number localization to Rails' `i18n` module.
View localize_helper.rb
module LocalizeHelper
# Wraps I18n.localize to add support for Numbers l12n.
# @param value [Numeric|DateTime|Time|Date] The value to localize.
# @return [String] The localized value.
# @see <>
def localize(value)
if value.is_a?(Numeric)
number_with_delimiter(value, locale: I18n.locale)
gaelrottier /
Last active Dec 20, 2015
Dashing widget to show the burndown form Pivotal Tracker


This Dashing widget allows you to see the current burndown of your iteration, thanks to Pivotal Tracker's API

  • On the top of the widget, there is the current number of iteration.
  • At top left, there is the total number of points of the iteration.
  • On the top of the point of the graph representing the current day, there is the number of points left in the iteration.


MattiSG / brewv
Created Jul 9, 2012
Install a previous version of a formula with Homebrew
View brewv
# Installs the previous version of a Homebrew formula
# Usage: brewv formula_name desired_version
# Based on
# Author: Matti Schneider <> (
masak /
Last active Oct 18, 2021
How is git commit sha1 formed

Ok, I geeked out, and this is probably more information than you need. But it completely answers the question. Sorry.

Locally, I'm at this commit:

$ git show
commit d6cd1e2bd19e03a81132a23b2025920577f84e37
Author: jnthn <>
Date:   Sun Apr 15 16:35:03 2012 +0200

    When I added FIRST/NEXT/LAST, it was idiomatic but not quite so fast. This makes it faster. Another little bit of masak++'s program.