Skip to content

Instantly share code, notes, and snippets.

Matt Furden zolrath

Block or report user

Report or block zolrath

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
zolrath / WE-Markdown.css
Created Jan 20, 2016 — forked from jerone/WE-Markdown.css
Github Flavored Markdown Stylesheet for Web Essentials
View WE-Markdown.css
html {
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
font-family: sans-serif;
body {
margin: 0;
padding: 30px;
min-width: 1020px;
zolrath / OpenSimplexNoise.cs
Created Jan 19, 2016 — forked from digitalshadow/OpenSimplexNoise.cs
OpenSimplex Noise Refactored for C#
View OpenSimplexNoise.cs
/* OpenSimplex Noise in C#
* Ported from
* and heavily refactored to improve performance. */
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
namespace NoiseTest
zolrath / TimeOfDayManager
Created Jan 19, 2016 — forked from anonymous/TimeOfDayManager
Control the sun, fog, ambient light, and sun rotation through curves and gradients.
View TimeOfDayManager
using UnityEngine;
public class TimeOfDayManager : MonoBehaviour
public float secondsInFullDay = 120f;
public float timeMultiplier = 1f;
zolrath / gist:20632edb82bdb5322652
Created Jun 10, 2014
Partial application of struct method is not allowed
View gist:20632edb82bdb5322652
// Changing struct to class works swimmingly.
struct Test {
func returnTwo() -> Int {
return 2
func returnFive() -> Int {
let twofunc = returnTwo // Partial application of struct method is not allowed
return twofunc() + 3
zolrath / gist:2516236
Created Apr 28, 2012
More Idiomatic Code Example
View gist:2516236
# Current Example:
(1..albums.length).each do |i|
eb.send(pa, {
'action' => 'save',
'collection' => 'albums',
'document' => albums[i - 1]
zolrath / gist:2409649
Created Apr 17, 2012
Changelog Generation Methods
View gist:2409649
" Takes less than a second.
func! s:create_changelog() abort
for bundle in g:updated_bundles
let updates = system('cd '.shellescape(bundle.path()).
\ ' && git log --pretty=format:"%s %an, %ar" --graph'.
\ ' vundle_update..HEAD')
call add(g:vundle_changelog, '')
call add(g:vundle_changelog, 'Updated Bundle: '
zolrath / gist:2305333
Created Apr 4, 2012
tmux status line from wemux example.
View gist:2305333

For a tmux status line as seen in the example image for the wemux project: wemux

The session on the left in the example screen shot uses a patched font from the vim-powerline project. Inconsolata-dz, you beautiful creature.

To duplicate the left status line add the following lines to your ~/tmux.conf

set -g status-left-length 32
set -g status-right-length 150
View facebookchat_parser.rb
require 'nokogiri'
PERSON = "Andrew Marrone"
def extract_messages_of(name)
messages = []
face = Nokogiri::XML("messages.html"))
face.css("div.msgbody").each do |n|
if n.parent.css('span').text == name
messages << n.text.strip + "."
View gist:1181618
;; As it turns out, A is much slower than B in some cases, but faster in others! Fun.
(time (sum-divisorsA 2000000)) => "Elapsed time: 3766.863 msecs"
(time (sum-divisorsB 2000000)) => "Elapsed time: 113.786 msecs"
(time (sum-divisorsA 200000)) => "Elapsed time: 3.233 msecs"
(time (sum-divisorsB 200000)) => "Elapsed time: 8.436 msecs"
zolrath / gist:1177848
Created Aug 29, 2011
Clojure 1.2.1 vs 1.3.0-beta2 Question
View gist:1177848
;; This takes about 1.7 seconds in Clojure 1.2.1 and takes 10 times as long in 1.3.0-beta2
;; Also, I'm learning Clojure so ignore the generally horrible code.
;; Tried switching to lazy-seqs prime to see if that narrowed the gap. It's a bit slower, but the gap is still there!
;; Clojure 1.2.1
(time (solve21))
"Elapsed time: 2333.739 msecs"
;; Clojure 1.3.0-beta2
(time (solve21))
You can’t perform that action at this time.