Skip to content

Instantly share code, notes, and snippets.

@pearswj
pearswj / index.html
Last active June 3, 2018 01:17
Web page listing latest CI builds for SpeckleRhino
<html>
<head>
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="centered">
<h1>SpeckleRhino</h1>
</div>
@pearswj
pearswj / sfb.py
Created September 12, 2017 10:16
#!/usr/bin/env python
from datetime import datetime
import os
import requests
from slackclient import SlackClient
import time
slack_token = os.environ["SLACK_API_TOKEN"]
sc = SlackClient(slack_token)
@pearswj
pearswj / hubot-errors.coffee
Last active January 12, 2017 14:05
Example adding custom error handlers to hubot and the built-in express server
ERROR_ROOM = process.env.HUBOT_ERROR_ROOM
module.exports = (robot) ->
# Handles unhandled exceptions
#
# Returns nothing.
robot.error (err, msg) ->
# if appropriate, reply to the user
if msg? and msg.envelope.room != ERROR_ROOM
@pearswj
pearswj / data.tsv
Created June 7, 2016 19:45
Area chart for visualising open/closed issues
date resolved unresolved
20111001 63.4 62.7
20111002 58.0 59.9
20111003 53.3 59.1
20111004 55.7 58.8
20111005 64.2 58.7
20111006 58.8 57.0
20111007 57.9 56.7
20111008 61.8 56.8
20111009 69.3 56.7
@pearswj
pearswj / meshCurvatureTensors.py
Created October 25, 2013 07:58
A RhinoPython script which computes the principal curvature directions at any given vertex on a mesh.
import Rhino
import scriptcontext
import System.Guid
#import System.Drawing
import math
from matrix import Matrix
def Torus(R, r, toroidal, poloidal):
"""Returns a parametrically constructs a torus mesh."""
mesh = Rhino.Geometry.Mesh()
@pearswj
pearswj / sickbeard.scpt
Created August 18, 2013 12:16
A folder action script for Mac OS X that turns any folder into a "scan and process" directory for Sick-Beard. Avoids having Sick-Beard scan the directory every 10 minutes.
(*
add - post-process with sick-beard
This Folder Action handler is triggered whenever items are added to the attached folder.
The script will call Sick-Beard's sabToSickbeard script to post-process any episodes dropped into this folder.
Naked video files are automatically wrapped in a folder with the same name before Sick-Beard is called. Folders are processed as they are.
*)
property python_path : "/usr/local/bin/python"
property script_path : "/Applications/Sick-Beard/autoProcessTV/sabToSickbeard.py"
@pearswj
pearswj / README.md
Last active December 12, 2015 09:58
RhinoPython Matrix Library
# Maintainer: Gordin <9ordin @t gmail dot com>
# Contributor: dryes <joswiseman@gmail>
pkgname='sabnzbd-develop-git'
pkgver=20130207
pkgrel=1
pkgdesc='A web-interface based binary newsgrabber with NZB file support. develop branch'
arch=('any')
url='http://www.sabnzbd.org/'
license=('GPL')
diff --git a/PKGBUILD b/PKGBUILD.new
old mode 100755
new mode 100644
index 4f28743..66ea7df
--- a/PKGBUILD
+++ b/PKGBUILD.new
@@ -2,16 +2,16 @@
# Contributor: dryes <joswiseman@gmail>
pkgname='sabnzbd-develop-git'
*** PKGBUILD 2012-10-27 17:55:31.000000000 +0100
--- PKGBUILD.new 2013-02-07 09:27:30.000000000 +0000
***************
*** 2,17 ****
# Contributor: dryes <joswiseman@gmail>
pkgname='sabnzbd-develop-git'
! pkgver=20110930
pkgrel=1
pkgdesc='A web-interface based binary newsgrabber with NZB file support. develop branch'