Skip to content

Instantly share code, notes, and snippets.

Problematic / Edge.cs
Created Aug 31, 2014
Node graph for Unity3D
View Edge.cs
using UnityEngine;
public class Edge
public Edge()
public Edge(Node node, int cost)
#! /usr/bin/env python
# vim: set fileencoding=utf-8:
""" Process URL for intersphinx targets and emit html or text """
def validuri(string):
return string
from sphinx.ext.intersphinx import read_inventory_v2
from posixpath import join
import pprint
theturtle32 /
Created Jul 25, 2012
Compiling and Installing Node v0.8.4 on CentOS 5.x

Compiling/Installing Node 0.8.4 (and Python 2.6, required by Node) on CentOS 5

Update system packages -- will migrate system forward to CentOS 5.8. (Optional?)

$ sudo yum update

Install the EPEL Repo:

stephlocke / mora.R
Last active Feb 10, 2019
Additive or multiplicative time series?
View mora.R
if(!require("ggseas")) install.packages("ggseas")
if(!require("forecast")) install.packages("forecast")
if(!require("data.table")) install.packages("data.table")
if(!require("knitr")) install.packages("knitr")
# Get data
h3 /
Last active Jun 27, 2019
Simple shell color outpout function
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import re
import sys
def c(i):
aeschright /
Last active Jul 27, 2019
A note about npm cli work status

When will npm@6.9.1 be released (and other PRs merged?)

On March 22, npm fired several members of the open source and community team for discussing workplace conditions and other labor organizing activities. As a result, core employee contributors to the npm cli were removed from the project, and others have left in solidarity or put their work on hold.

Multiple claims were filed with the NLRB on this matter. The NLRB has investigated and found sufficient evidence of validity to proceed. The National Labor Relations Act of 1935 protects US employees' right to engage in discussions of workplace concerns without threat of retaliation -- and awareness of the importance of how we treat each other is something I valued so much in collaborating with the cli team. How can we work together if we aren't free to discuss what we need?

It's disappointing for all of us to find the work we were doing interrup

jaigouk /
Created Mar 8, 2012 — forked from lancejpollard/
Complete List of HTML Meta Tags

Copied from

Basic HTML Meta Tags

<meta name="keywords" content="your, tags"/>
<meta name="description" content="150 words"/>
<meta name="subject" content="your website's subject">
<meta name="copyright"content="company name">
<meta name="language" content="ES">
jessitron / gist:8376139
Created Jan 11, 2014
scala: print all URLs on classpath
View gist:8376139
def urlses(cl: ClassLoader): Array[] = cl match {
case null => Array()
case u: => u.getURLs() ++ urlses(cl.getParent)
case _ => urlses(cl.getParent)
val urls = urlses(getClass.getClassLoader)
wayspurrchen / git
Last active Jun 1, 2020
Useful Git Techniques
View git


Show file at certain commit

git show <hash>:<file>

Show history of a file

git log -p <filename>

travisbrown /
Last active Jul 30, 2020
Cease and desist letter from John A. De Goes

Please see this response for more context.

Dear Mr. Brown:

We represent the legal interests of our client, Mr. John Arlen De Goes, Maryland, USA.

For several years now, you have repeatedly defamed our client on the internet. Your public blog specifically targets our client with the goal to publicly vilify our client. This blog can be easily found with the help of search engines like Google by just searching for the name of our client. On this blog, amongst other false statements, you falsely allege the following about our client: