Skip to content

Instantly share code, notes, and snippets.

View rguico's full-sized avatar
🚂
Choo choo

Robert Guico rguico

🚂
Choo choo
View GitHub Profile
@rguico
rguico / test.rss
Last active December 1, 2017 17:05
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/">
<channel>
<title>News &#8211; Blog | Chordify | Tune Into Chords</title>
<atom:link href="https://chordify.net/pages/category/news/feed/" rel="self" type="application/rss+xml" />
<link>https://chordify.net/pages</link>
<description></description>
<lastBuildDate>Mon, 20 Nov 2017 14:01:10 +0000</lastBuildDate>
<language>en-US</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
accumulator = []
def names_are_palindrome(names):
"""Returns True if the ordered list of names provided forms a palindrome, False otherwise."""
name = ''.join(names)
while name != '':
first = name[:1]
last = name[-1:]

Keybase proof

I hereby claim:

  • I am rguico on github.
  • I am rguico (https://keybase.io/rguico) on keybase.
  • I have a public key ASC474WdyBTcE-jmJGm7BM4jmkKzHs67ufO6TU_l6oOXwwo

To claim this, I am signing this object:

@rguico
rguico / sonos-to-hipchat.js
Last active October 5, 2015 14:53
Sonos to Hipchat using hipchatter
var config = {
token: '[room token]',
ipAddress: '[IP Address]',
roomID: '[Hipchat Room]',
msgFrom: 'Sonos',
msgColor: 'purple',
pollInterval: 15000
};
var Sonos = require('sonos').Sonos;
@rguico
rguico / 0_reuse_code.js
Last active August 29, 2015 14:15
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@rguico
rguico / divvy_turf_count.html
Created February 20, 2015 05:01
Super Simple Divvy / Turf.js example
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css" />
<link rel="stylesheet" href="bower_components/leaflet-draw/dist/leaflet.draw.css" />
<script src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script>
<script src="bower_components/turf/turf.js"></script>
<script src="bower_components/jquery/dist/jquery.min.js"></script>
<script src="bower_components/leaflet-draw/dist/leaflet.draw.js"></script>
<style>
#map { height: 600px; }
</style>