Skip to content

Instantly share code, notes, and snippets.

@pabloav
pabloav / isupgofive-clinton.txt
Created March 13, 2016 01:56
Output for various speech analyses
Using speeches/clinton01.txt
Unique words: 1365
Unique words that are simple: 410
Unique words that are simple (%): 30 %
---
Total words: 4710
Total words that are simple: 3159
Total words that are simple (%): 67 %
---
Top simple words by frequency:
These are the fables for he "Aesops Classic Gone Viral" OOTM long term project (2015-2016)
These were sourced from Project Gutenberg: http://www.gutenberg.org/files/21/21-h/21-h.htm
-------------------------------
The Bear and the Two Travelers
-------------------------------
TWO MEN were traveling together, when a Bear suddenly met them on their path. One of them
climbed up quickly into a tree and concealed himself in the branches. The other, seeing that
he must be attacked, fell flat on the ground, and when the Bear came up and felt him with
// As requested by @ultrazero on the forums, here's the complete listing for my device type:
/**
* Copyright 2015 SmartThings
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed
@pabloav
pabloav / dashproxy.conf
Last active April 5, 2016 10:45
SmartThings integration with Amazon Dash buttons
# This is the xinetd configuration file for the dashproxy file
service dashproxy
{
type = UNLISTED
socket_type = stream
protocol = tcp
wait = no
port = 9999
user = nobody
server = /usr/local/bin/dashproxy.py
@pabloav
pabloav / Native RQR Functionality
Last active October 14, 2016 16:44
Readable QR codes in Terminal
# as of rqrcode 10.0 (Feb 2016), it can natively render ANSI making my code irrelevant:
require 'rubygems'
require 'rqrcode'
puts RQRCode::QRCode.new("http://www.example.com/").as_ansi