Skip to content

Instantly share code, notes, and snippets.

View bollwyvl's full-sized avatar

Nicholas Bollweg bollwyvl

View GitHub Profile
#~/bin/bash
# usage:
# ./hash_finder.sh <hash_file> <location>
# Finds all files in a given location whose hashes appear in an a given file
find "$2" -type f -print0 | xargs -0 sha1sum | grep -e "`sed 's/^/^/' $1`"
@bollwyvl
bollwyvl / LineSeriesChart.mxml
Created January 3, 2011 22:28
LineSeriesChart.mxml
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (c) 2009 Team Axiis
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"
xmlns:components="components.*"
creationComplete="init()">
<mx:Script>
<![CDATA[
import components.PortfolioFundingChart;
import org.axiis.data.DataSet;
import mx.collections.ArrayCollection;
public function init():void
class RugWorkspaceImplementation(WorkspaceImplementation):
def pretty_status(self, project=None):
"""
returns a nicely-formatted version of the rug status command
TODO: refactor when the pretty status comes out for reals
"""
if project is None:
project = self.repo._impl._rug
@bollwyvl
bollwyvl / BOSHClient.py
Created April 22, 2012 18:45
Quite simple BOSH client used by Django-XMPPAuth
"""
Copied from:
https://friendpaste.com/1R4PCcqaSWiBsveoiq3HSy/edit
BOSH Client
-----------
Quite simple BOSH client used by Django-XMPPAuth
For now, it only supports the DIGEST-MD5 authentication method.
@bollwyvl
bollwyvl / wiki-extract-commonjs-schema.json
Created June 10, 2012 17:38
building a package.json schema for cdnjs
{
"type":"object",
"$schema": "http://json-schema.org/draft-03/schema",
"id": "#",
"required":false,
"properties":{
"bugs": {
"type":"object",
"id": "bugs",
"required":false,
@bollwyvl
bollwyvl / html_drafting.js
Created November 19, 2012 23:01
HTML5 Canvas Drafting
// Taken from:
// http://cautery.blogspot.com/2012/05/compass-and-straightedge-geometry-meets.html
// Things I'm allowed to do:
// http://en.wikipedia.org/wiki/File:Basic-construction-demo.png
var cnv, ctx; // Canvas, 2d context
var cr = Math.PI * 2;
var Type = {POINT : 0, LINE : 1, CIRCLE : 2};
var col, sm, interval, label;
var pointRadius = 3;
var textOffsetX = 5;
@bollwyvl
bollwyvl / traverse.js
Created December 5, 2012 00:48
JavaScript Array.sample and Object.traverse
function sample(opts, num){
// like python sample
var choice,
choices = [];
while(choices.length < num && choices < opts.length){
choice = parseInt(Math.random() * opts.length);
if(choices.indexOf(choice) == -1){
choices.push(choice);
}
}
@bollwyvl
bollwyvl / rd3f.js
Created December 5, 2012 03:13
d3-style RDF API experiments
// mock classes, no state
var rdfstore = {
Store: function(){}
},
d3 = {
rdf: function(store){}
};
d3.rdf.query = function(){
var query = function(){ return query; };
@bollwyvl
bollwyvl / PROPOSAL.md
Created December 11, 2012 15:22
Proposal: IT Roadmap for opensourceecology.org

PROPOSAL

Open Source Ecology, through its use of many different online tools on opensourceecology.org, presents a diffuse user experience to the new user, hampering engagement. Once engaged, many hurdles still remain for contributors in the form of design tools which don't meet the GVCS core principals. To improve the functionality, usability, and adherence to the principals, a phased approach to consolidation of collaboration tools is proposed, with the linked goals of:

  • ose.org 2.0: A unified collaboration web site with all data from existing tools
  • OSE Linux: An OSE-branded Free Software Operating System distribution suitable for use by collaborators
  • A "Data Cube": A GVCS Tool which can meet the day-to-day computing needs of a Village