Skip to content

Instantly share code, notes, and snippets.

// If you need to be able to compare Arrays this is the prototype to do it. Pass an Array you
// want to compare and if they are identical the method will return true. If there's a
// difference it will return false. The match must be identical so '80' is not the same as 80.
Array.prototype.compare = function(testArr) {
if (this.length != testArr.length) return false;
for (var i = 0; i < testArr.length; i++) {
if (this[i].compare) {
if (!this[i].compare(testArr[i])) return false;
}
@desaperados
desaperados / gist:3443867
Created August 24, 2012 00:16
Rgeo - GEOS extconf
# -----------------------------------------------------------------------------
#
# Makefile builder for GEOS wrapper
#
# -----------------------------------------------------------------------------
;
if ::RUBY_DESCRIPTION =~ /^jruby\s/
account
achiever
acoustics
act
action
activity
actor
addition
adjustment
advertisement

Keybase proof

I hereby claim:

  • I am desaperados on github.
  • I am desaperados (https://keybase.io/desaperados) on keybase.
  • I have a public key whose fingerprint is 0EDA BEF3 11AE E810 68F8 E999 2C4C F1A5 0937 98AE

To claim this, I am signing this object:

(defActor RHOPattern)
(defOprn match?)
(defOprn miss?)
(defActor NameSpace)
(defOprn chart)
(defOprn consume)
(defOprn subscribe)
(defOprn read)
(defOprn fetch)
/*
* Copyright (c) Rich Hickey. All rights reserved.
* The use and distribution terms for this software are covered by the
* Common Public License 1.0 (http://opensource.org/licenses/cpl.php)
* which can be found in the file CPL.TXT at the root of this distribution.
* By using this software in any fashion, you are agreeing to be bound by
* the terms of this license.
* You must not remove this notice, or any other, from this software.
*/
:~$ mkdir install
:~$ cd install/
:~/install$ wget https://github.com/MysteriumNetwork/node/releases/download/0.0.5/mysterium-node_linux_amd64.deb
--2017-05-10 09:41:23-- https://github.com/MysteriumNetwork/node/releases/download/0.0.5/mysterium-node_linux_amd64.deb
Resolving github.com (github.com)... 192.30.253.113, 192.30.253.112
Connecting to github.com (github.com)|192.30.253.113|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github-cloud.s3.amazonaws.com/releases/80073079/b0e74c48-346f-11e7-8d17-74ba54753546.deb?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAISTNZFOVBIJMK3TQ%2F20170510%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170510T094123Z&X-Amz-Expires=300&X-Amz-Signature=1a03b67c7c87db9491cf498efe37440e1100d0e43731a3897f95b4c9d480042a&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dmysterium-node_linux_amd64.deb&response-content-type=application%2Foctet-stream [following]
--2017-05-10 09:41:23-- https://g
@desaperados
desaperados / geometry.geojson
Last active October 21, 2017 02:32
Santa Cruz - Force Main Geometry
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@desaperados
desaperados / solrconfig.xml
Created December 20, 2012 01:32
Solr spellcheck configuration
<requestHandler name="/select" class="solr.SearchHandler">
<arr name="last-components">
<str>spellcheck</str>
</arr>
</requestHandler>
<searchComponent name="spellcheck" class="solr.SpellCheckComponent">
<str name="queryAnalyzerFieldType">textSpell</str>
<lst name="spellchecker">
<str name="name">default</str>
{config, pkgs, ... }:
let
dapphub = import <dapphub> {};
in
{
imports = [ <nixpkgs/nixos/modules/virtualisation/amazon-image.nix> ];
ec2.hvm = true;