Skip to content

Instantly share code, notes, and snippets.

require 'faraday'
require 'json'
unregged = []
threads = []
data = Faraday.get("url_to_text_goes_here").body
data.each_line do |element|
puts element
threads << Thread.new {
url = "http://pokemonshowdown.com/users/#{element.strip}.json"
@tlewin
tlewin / chat.rb
Last active March 28, 2018 22:57
#!/usr/bin/env ruby -I ../lib -I lib
# coding: utf-8
require 'rtoken'
require 'json'
require 'sinatra/base'
require 'thin'
class Chat < Sinatra::Base
@minitech
minitech / web-checklist.md
Last active January 4, 2020 11:59
minitech’s Web Checklist

minitech’s Web Checklist

Here are some guidelines that will make me actually like your amazing new web application!

  1. Make sure encoding is handled properly every step of the way. If comes out as ’, you’ve got a problem on your hands. 😊

  2. Make it accessible. Turn off images, JavaScript, and CSS. If your website is still legible and usable (it’s okay if it’s just barely usable, or not particularly interactive) then you are already in the top 0.01%.

  3. Check your grammar. One of the fastest ways to lose respect in a blog post (or worse — in body copy) is to make basic orthographical or grammatical mistakes. These include, but are not limited to:

  • Missing apostrophes — [Bitbucket even did that][bitbucket-apostrophe-catastrophe].
@mattneary
mattneary / index.js
Created November 24, 2012 03:48
Node.js Telnet Chat
// To Access Once Running: `telnet localhost 8124`
var net = require('net');
var users = [];
var red = '\033[31m'; // command line colors
var reset = '\033[0m';
var server = net.createServer(function(c) {
// handle new connection
c.on('end', function() {
console.log("end");