Skip to content

Instantly share code, notes, and snippets.

View christydennison's full-sized avatar

Christy Dennison christydennison

  • MIT
  • Cambridge, MA
  • X @cbd
View GitHub Profile
@christydennison
christydennison / wanikani_skipahead.py
Last active November 17, 2023 20:47
wanikani: skip ahead lesson ordering and do specific subject lessons
import requests
from itertools import batched
from collections import defaultdict
import json
import os
API_KEY = os.environ["WANIKANI_READ_API_KEY"]
HEADERS = {"Authorization": f"Bearer {API_KEY}"}
BASE_URL = "https://api.wanikani.com/v2"
SUBJECTS_PATH = os.path.join(BASE_URL, "subjects")
@christydennison
christydennison / slack_colors
Created September 10, 2014 23:15
Slack colors for bookmarklet
.light_theme .message.show_user {
border-top: 1px solid #ccc;
padding-left: 10px;
padding-top: 0.5rem;
}
.light_theme .message {
padding-top: 0;
padding-left: 10px;
}

Keybase proof

I hereby claim:

  • I am christydennison on github.
  • I am christy (https://keybase.io/christy) on keybase.
  • I have a public key whose fingerprint is 63D4 2918 20F2 EFF1 87C9 C16D D199 FE4A 5C12 F1A1

To claim this, I am signing this object:

@christydennison
christydennison / rubinius_fail
Created October 29, 2012 00:46
Failed test
34)
An Undef node is compiled from
undef :"x#{1}", :"x#{2}" FAILED
Expected:
[:test_generator,
[[:push_scope],
[:push_const, :String],
^ differs
[:push_literal, "x"],
@christydennison
christydennison / typeerror_profile_show
Created March 28, 2012 04:51
TypeError in Profiles#show
TypeError in Profiles#show
Showing /Users/Christy/Documents/UROP/CSAIL/workspace/gitty/app/views/feed_items/_feed_item.html.erb where line #102 raised:
can't convert Symbol into Integer
Extracted source (around line #102):
99:
100: <% when 'new_issue' %>
101: <% Rails.logger.debug "*** Feed item data: #{feed_item.data}" %>
@christydennison
christydennison / nomethoderror
Created March 27, 2012 15:15
NoMethodError
NoMethodError in Issues#index
Showing /Users/Christy/Documents/UROP/CSAIL/workspace/gitty/app/views/issues/_open.html.erb where line #26 raised:
undefined method `can_edit?' for nil:NilClass
Extracted source (around line #26):
23: params[:repo_name], issue) %></td>
24: <% Rails.logger.debug "*****Issue Class: #{issue.class}"%>
25: <% Rails.logger.debug "*****Issue Nil: #{issue.nil?}"%>
@christydennison
christydennison / errno_eperm
Created March 25, 2012 04:37
Errno::EPERM in ProfilesController#create
Errno::EPERM in ProfilesController#create
Operation not permitted - /Users/git/repos/christy
Rails.root: /Users/Christy/Documents/UROP/CSAIL/workspace/gitty
Application Trace | Framework Trace | Full Trace
/Users/Christy/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/fileutils.rb:1323:in `chmod'
/Users/Christy/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/fileutils.rb:1323:in `chmod'
/Users/Christy/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/fileutils.rb:996:in `block (2 levels) in chmod_R'
/Users/Christy/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/fileutils.rb:1433:in `preorder_traverse'
@christydennison
christydennison / session_controller_error
Created March 4, 2012 03:12
ArgumentError in SessionController#show
ArgumentError in SessionController#show
wrong number of arguments (0 for 1)
Rails.root: /Users/Christy/Documents/UROP/CSAIL/workspace/gitty
Application Trace | Framework Trace | Full Trace
activerecord (3.2.1) lib/active_record/relation.rb:377:in `destroy'
activerecord (3.2.1) lib/active_record/querying.rb:7:in `destroy'
activesupport (3.2.1) lib/active_support/dependencies.rb:469:in `load'
activesupport (3.2.1) lib/active_support/dependencies.rb:469:in `block in load_file'
@christydennison
christydennison / gitty_error0
Created February 19, 2012 23:42
Error traceback
Errno::EACCES in ProfilesController#create
Permission denied - /Users/git
Rails.root: /Users/Christy/Documents/UROP/CSAIL/workspace/gitty
Application Trace | Framework Trace | Full Trace
app/models/profile.rb:85:in `create_profile_directory'
app/controllers/profiles_controller.rb:54:in `block in create'
app/controllers/profiles_controller.rb:53:in `create'
Request