Skip to content

Instantly share code, notes, and snippets.

View amackera's full-sized avatar
💭
Hack and /

Anson MacKeracher amackera

💭
Hack and /
View GitHub Profile
<div id='choice'>
<div class='container'>
<h1 class='h-type-1'>Engage students with active learning</h1>
<div class='greenpill'>
<h2 class='h-type-2'>Student</h2>
<p>Participate in your teacher's lectures</p>
<a id='btn_student_signup' href=''>Student Signup</a>
</div>
<div class='bluepill'>
<h2 class='h-type-2'>Professor</h2>
@amackera
amackera / .vimrc
Created January 25, 2013 15:18
My vimrc
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Maintainer: Anson MacKeracher (amackera)
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Fancy runtime path manipulation
call pathogen#infect()
"call pathogen#helptags()
" Enable filetype plugin
filetype plugin indent on
" Enable syntax highlighting
syntax on
authorization = (Role('teacher') & Owner()) |\
(Role('student') & Enrolled() & ItemAvailable() &\
Methods(['get', 'post'])) | Admin()
@amackera
amackera / keybase.md
Created October 14, 2015 19:50
keybase.md

Keybase proof

I hereby claim:

  • I am amackera on github.
  • I am amackera (https://keybase.io/amackera) on keybase.
  • I have a public key whose fingerprint is 5AD1 C7D1 FBAB D13E 5D4B 6981 AB06 6E97 400D 3A83

To claim this, I am signing this object:

@amackera
amackera / gist:4279092
Created December 13, 2012 19:36
syncdb
Syncing...
Creating tables ...
Creating table auth_permission
Creating table auth_group_permissions
Creating table auth_group
Creating table auth_user_user_permissions
Creating table auth_user_groups
Creating table auth_user
Creating table django_content_type
Creating table django_session
@amackera
amackera / gist:4115606
Created November 20, 2012 02:46
wtfquery
SELECT `auth_user`.`id`, `auth_user`.`username`, `auth_user`.`first_name`, `auth_user`.`last_name`, `auth_user`.`email`, `auth_user`.`password`, `auth_user`.`is_staff`, `auth_user`.`is_active`, `auth_user`.`is_superuser`, `auth_user`.`last_login`, `auth_user`.`date_joined`, `accounts_thmuser`.`user_ptr_id`, `accounts_thmuser`.`key_str`, `accounts_thmuser`.`role`, `accounts_thmuser`.`created_date`, `accounts_thmuser`.`last_active`, `accounts_thmuser`.`logged_in`, `accounts_thmuser`.`student_id`, `accounts_thmuser`.`course_passwords`, `accounts_thmuser`.`current_ip_address`, `accounts_thmuser`.`is_anonymous_account`, `accounts_thmuser`.`phone_number`, `accounts_thmuser`.`verified`, `accounts_thmuser`.`clicker_id`, `accounts_thmuser`.`clicker_checksum`, `accounts_thmuser`.`department_id`, `accounts_thmuser`.`org_id`, `accounts_thmuser`.`subscription_id`, `accounts_thmuser`.`current_course_id`, `accounts_thmuser`.`weekly_notification_email`, `accounts_thmuser`.`alias` FROM `accounts_thmuser` INNER JOIN `course_co
@amackera
amackera / Procfile
Created October 29, 2012 15:11
Procfile
#rabbitmq: rabbitmq-server
#pushy: pushy
mongodb: mongodb
pingpong: pingpong
cottontail: cottontail
celery: python manage.py celeryd -E
celery_socket_reqs: python manage.py celeryd -E -Q socket_reqs
celery_highest_priority: python manage.py celeryd -E -Q highest_priority
celery_priority: python manage.py celeryd -E -Q priority
if (this.model.get('survey_url').indexOf('?') == -1) {
// start the survey URL query string
$(this.el).html('The tournament is complete. To see your rank, please complete <a target="_new" href="'+this.model.get('survey_url')+'?entry_0='+window.user.get('alias')+'&entry_10='+window.user.get('id')+'">this survey.</a>')
} else {
$(this.el).html('The tournament is complete. To see your rank, please complete <a target="_new" href="'+this.model.get('survey_url')+'&entry_0='+window.user.get('alias')+'&entry_10='+window.user.get('id')+'">this survey.</a>')
}
@amackera
amackera / gist:3845274
Created October 6, 2012 15:47
harakiri
*** HARAKIRI ON WORKER 8 (pid: 32233) ***
HARAKIRI: -- wchan> sk_wait_data
*** backtrace of 32233 ***
/usr/local/bin/uwsgi(uwsgi_backtrace+0x29) [0x807ff59]
/usr/local/bin/uwsgi(what_i_am_doing+0x21) [0x80804b1]
[0xb7873400]
/usr/lib/libpython2.6.so.1.0(+0x1283c6) [0xb75ca3c6]
/usr/lib/libpython2.6.so.1.0(PyCFunction_Call+0x112) [0xb7513c92]
/usr/lib/libpython2.6.so.1.0(PyEval_EvalFrameEx+0x49fe) [0xb757445e]
/usr/lib/libpython2.6.so.1.0(PyEval_EvalFrameEx+0x59c1) [0xb7575421]
@amackera
amackera / Procfile
Created October 2, 2012 14:17
Foreman Procfile and supporting scripts
rabbitmq: rabbitmq-server
pushy: pushy
mongodb: mongodb
pingpong: pingpong
cottontail: cottontail