Skip to content

Instantly share code, notes, and snippets.

View rgsoto's full-sized avatar

Renier G Soto rgsoto

View GitHub Profile
@rgsoto
rgsoto / wikp.js
Created December 10, 2019 17:49
wikp
#!/usr/local/bin/node
// Returns the paragraphs from a wikipedia link, stripped of reference numbers.
let request = require("request");
let url = process.argv[2];
const jsdom = require("jsdom");
const { JSDOM } = jsdom;
@rgsoto
rgsoto / Output
Created December 5, 2019 03:07
Node stuff
palindrome detected: A butt tuba
palindrome detected: A man, a plan, a canal—Panama!
palindrome detected: A man, a plan, a canoe, pasta, heros, rajahs, a coloratura, maps, snipe, percale, macaroni, a gag, a banana bag, a tan, a tag, a banana bag again (or a camel), a crepe, pins, Spam, a rut, a Rolo, cash, a jar, sore hats, a peon, a canal–Panama!
palindrome detected: A Toyota's a Toyota
palindrome detected: Able was I ere I saw Elba.
palindrome detected: Ah, Satan sees Natasha
palindrome detected: deified
palindrome detected: Dennis sinned.
palindrome detected: Dennis and Edna sinned.
palindrome detected: Dennis, Nell, Edna, Leon, Nedra, Anita, Rolf, Nora, Alice, Carol, Leo, Jane, Reed, Dena, Dale, Basil, Rae, Penny, Lana, Dave, Denny, Lena, Ida, Bernadette, Ben, Ray, Lila, Nina, Jo, Ira, Mara, Sara, Mario, Jan, Ina, Lily, Arne, Bette, Dan, Reba, Diane, Lynn, Ed, Eva, Dana, Lynne, Pearl, Isabel, Ada, Ned, Dee, Rena, Joel, Lora, Cecil, Aaron, Flora, Tina, Arden, Noel, and Ellen sinned.
@rgsoto
rgsoto / index.html
Created September 2, 2018 17:56
twitch api rs
<head>
<title> Twitch stream app </title>
</head>
<body>
<div class="container">
<div class="header">
<img class = "header_img" src="https://vignette4.wikia.nocookie.net/logopedia/images/2/26/Twitch_logo.svg/revision/latest?cb=20140727180649"></img>
<h1 id="title"> Streamers </h1>
@rgsoto
rgsoto / keybase.md
Last active October 12, 2017 19:40
keybase

Keybase proof

I hereby claim:

  • I am rgsoto on github.
  • I am bigie35 (https://keybase.io/bigie35) on keybase.
  • I have a public key ASCASt53zr7cVhW_nly17cSXeB6gSBRRitsE_XtcTkoAZwo

To claim this, I am signing this object:

Website Maintenance
shopfilthyriches.com
Maintenance
Monthly - $425.00
WordPress updates for plugins and theme
@rgsoto
rgsoto / rock_paper_scissors_2.rb
Created September 26, 2016 01:10
Rock Paper Scissors Lizzard Spock bonus features
#VALID_CHOICES = %w(rock paper scissors lizzard spock)
VALID_CHOICES = %w(r p s l sp)
def prompt(message)
Kernel.puts("=> #{message}")
end
def win?(first, second)
(first == 'r' && second == 's') ||
(first == 'p' && second == 'r') ||
@rgsoto
rgsoto / rails-exercise.md
Last active December 16, 2015 03:06 — forked from Shiggiddie/gist:643e7153605354b84686
Ruby/Rails HW: get/post routes, passing parameters into .erb templates, .erb if/else template logic
  1. Make a new Rails project.
  2. Make necessary modifications to the project such that an HTML response of "<h1>Hello World</h1>" is returned when hitting the path "hello_world" with a GET request
  3. Make necessary modifications to the rails project such that an HTML response of "<h1>Hello POST world</h1>" is returned when hitting the path "hello_world" with a POST request, do not remove any code created in #1.
  4. Make necessary modifications to the rails project such that an HTML response of "Hello POST world PLUS" is returned when hitting the path "hello_world" with a POST request AND a payload that contains the key/value pair "plus"/"true", otherwise the HTML response should be "Hello POST world NO-PLUS"
@rgsoto
rgsoto / SassMeister-input-HTML.html
Created August 18, 2014 14:03
Generated by SassMeister.com.
<div class="buttons">
<a class="gray" href="#">
Default
<strong>
</a>
<a class="blue" href="#">
Primary
</a>
@rgsoto
rgsoto / SassMeister-input-HTML.html
Created August 15, 2014 22:00
Generated by SassMeister.com.
<div class="buttons">
<a class="gray" href="#">
Default
</a>
<a class="blue" href="#">
Primary
</a>
@rgsoto
rgsoto / SassMeister-input-HTML.html
Created August 15, 2014 21:02
Generated by SassMeister.com.
<div id="mediaDisplayArea" style="margin-top: 2px;">
<div id="ambienceContainer">
<div id="ambience"></div>
</div>
<!-- copy and paste. Modify height and width if desired. --> <a href="http://content.screencast.com/users/DLavin23/folders/Snagit/media/d8a32c55-7540-4474-8778-890649550a4a/2014-08-15_15-01-44.png"><img style="width: 457px; height: 38px;" class="embeddedObject" src="http://content.screencast.com/users/DLavin23/folders/Snagit/media/d8a32c55-7540-4474-8778-890649550a4a/2014-08-15_15-01-44.png" border="0" height="38" width="457"></a>
</div>