Skip to content

Instantly share code, notes, and snippets.

View karlstolley's full-sized avatar

Karl Stolley karlstolley

View GitHub Profile
@karlstolley
karlstolley / README.md
Last active January 8, 2018 22:39
Quick Twitter username/id scraper for Bill. Writes username,id to a CSV file. Ugly, but workable.

Should be pretty easy to set up:

  1. Install the twitter gem with gem install twitter (you may have to do sudo gem install twitter).
  2. Look at the comments in sn-to-id.rb for where you'll go to set up an app with Twitter (the URLs they ask for don't matter, in this case). Put in all of the keys, tokens, and secrets.
  3. On line 23, you'll paste in your list of usernames. You are limited to 100 usernames for each time you run the script. And I think you're limited to running the script 60 times an hour. Check the docs on the latter point tho. This is fairly permissive; as long as you have usernames separated by commas, you'll be golden (it doesn't matter if there's a space or not after the commas).
  4. Create a text file (like above) called my_users.csv in the same directory as the sn-to-id.rb file; put username,id as its first line. Every time you run the sn-to-id.rb script, your new batch of usernames/ids will be appended to the file. NOTE: the script is not smart enough to filter out dupl
@karlstolley
karlstolley / agenda.md
Last active March 14, 2017 15:40
Workshop MW.08: Foundations in Programming (CCCC 2017)

Agenda

9:00a-12:30p

This is the general order of business for the morning. We'll start with basic values in JavaScript, and how they are stored in variables. We'll also look at more complex ways of storing values before turning to basic operators. With that in hand, we'll be able to work our way up to statements and functions, which are the core building-blocks to programming. All of this is just a plan. We can move in different directions based on particpant interest.

We'll use the following technology:

Keybase proof

I hereby claim:

  • I am karlstolley on github.
  • I am karlstolley (https://keybase.io/karlstolley) on keybase.
  • I have a public key whose fingerprint is B2FA 005E 1159 DFC8 750B E005 A9BE DF11 854D 4903

To claim this, I am signing this object:

@karlstolley
karlstolley / index.html
Created September 12, 2013 00:02
In-Class jQuery Basics for the API Course.
<!DOCTYPE>
@karlstolley
karlstolley / abstract.md
Created May 2, 2013 17:33
Draft abstract for my #cwcon keynote.

In Search of Troublesome Digital Writing: A Meditation on Difficulty

Scaffolding the pursuit of digital writing is a whole galaxy of software tools that automate away difficulty. WYWISYGs. One-click installers. Hosted applications. In a computing culture of "There's an app for that," digital writers are attuned to obvious difficulties that software can simply solve. Point. Click. Done.

Abstracted away from technological concerns, difficulty presents itself in many different forms as part of education and learning generally and writing instruction more specifically. Some difficulties are written into the challenges of a course or curriculum; others are deferred to more advanced study, or simply ignored. Whether the product of conscious effort or not, the structure and content of courses and entire curricula form complex orbits around different points of difficulty.

Institutional structures such as course numbering, sequences, and prerequisites are familiar approaches to managing those orbits. But technol

@karlstolley
karlstolley / gist:5321525
Created April 5, 2013 18:30
CCDP front page embedded PHP markup for TL & MY
<div class="loud-promo"><?php $file='promotext.swf'; $args=array('params' => array('height' => '335', 'width' => '900')); print swf($file, $args); ?></div>
@karlstolley
karlstolley / html5.htm
Created March 13, 2013 18:14
My basic HTML5 starter, ready for responsiveness.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
</head>
<body>
@karlstolley
karlstolley / software-list.md
Last active November 17, 2015 20:54
Temporary home for Gewgaws Lab/LLC Software List

All Platforms (Mac/Win/Linux)

  • Audacity
  • Gephi (currently will not run; JRE issue, need to talk to Libby H.)
  • Firefox
  • Chrome

Mac OS X

  • iLife (all)
  • iWork (all)
  • TextWrangler
@karlstolley
karlstolley / Gemfile
Created November 8, 2012 21:47
Using Windy in Rails
# snip
gem 'windy' # https://github.com/Chicago/windy
# snip
@karlstolley
karlstolley / email.md
Created October 2, 2012 16:05
Teaching Rails via commits

This is what I emailed my students for my Web Application Development course this morning...

Hi All,

I wanted to share some commits with you that illustrate a few common Rails concerns that have been cropping up from a number of you. This is based on the app we started in class, and can be found in the myapp branch of the 531 repo, https://github.com/karlstolley/531/tree/myapp

Seed Data

Two examples of this. The first seeds the Page model with a Welcome and About page. Because Page is a standalone model (without relationships to any other model), the seeding is pretty straightforward: https://github.com/karlstolley/531/commit/aebb27da948148e3f5698a265c1562da37e5b713