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:3290126
Created August 7, 2012 22:38
FFmpeg options
Main options:
-L show license
-h show help
-? show help
-help show help
--help show help
-version show version
-formats show available formats
-codecs show available codecs
-bsfs show available bit stream filters
@desaperados
desaperados / gist:3443867
Created August 24, 2012 00:16
Rgeo - GEOS extconf
# -----------------------------------------------------------------------------
#
# Makefile builder for GEOS wrapper
#
# -----------------------------------------------------------------------------
;
if ::RUBY_DESCRIPTION =~ /^jruby\s/
@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>
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:

@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.
(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.
*/
// Internal Node
// suffixes -> keys
{
"_id": "69bdeec6-5ad1-4d02-9982-5a1a9c9f9d80",
"sx": [
"e",
"ing",
"ment",
"s"
],