Skip to content

Instantly share code, notes, and snippets.

View cycomachead's full-sized avatar
status

Michael Ball cycomachead

status
View GitHub Profile
@cycomachead
cycomachead / lab03.py
Last active February 18, 2020 09:34
lab-extra-credit-function
# Add the following code to your lab03.py
# There should be a function for lab03 already, so when you submit you'll have 2 functions.
# Optional, Extra Credit.
def lab02_extra_credit():
"""
Fill in the values for these two variables.
You will get the special code from the study tool when you complete all quesitons from lab.
This code will be unique to your okpy email and this lab.
Go here to practice: https://codestyle.herokuapp.com/cs88-lab03
@cycomachead
cycomachead / cloudSettings
Last active September 18, 2020 18:21
My VSCode Settings
{"lastUpload":"2020-09-18T18:21:17.832Z","extensionVersion":"v3.4.3"}
@cycomachead
cycomachead / README.md
Last active January 4, 2019 06:47
Really Basic KaTeX Discourse Theme

This is a really simple KaTeX theme component for Discourse.

It stuffs all the necessary bits at the end of </head>. It loads all KaTeX and CSS (currently v0.10.0) from the jsdelivr CDN. It then uses the Discourse theme API api.decorateCooked to update the content of posts.

NOTE: I have deviated from the default KaTeX and use the delimeters $$ for inline LaTeX and $$$ for block LaTeX. But you can edit the options of the KaTeX function pretty easily from the theme editor.

@cycomachead
cycomachead / a11y-react-live-coding-notes-links.md
Created November 29, 2018 10:12 — forked from svinkle/a11y-react-live-coding-notes-links.md
Creating accessible React apps — a11yTOConf 2018 — Notes and Links
@cycomachead
cycomachead / README.md
Created August 18, 2017 09:31 — forked from yorkxin/README.md
Amazon S3 Redirect Rules Generator

Amazon S3 Redirect Rules Generator

A Ruby script to generate simple Amazon S3 Redirection Rules XML file.

Update: There is an app for that now! Use Amazon S3 Redirector (Web app) and you can generate the XML without any knowledge about Ruby. Thanks to @rainforestapp. BTW, It's open source too.

Dependencies

  • Nokogiri

Make it real

Ideas are cheap. Make a prototype, sketch a CLI session, draw a wireframe. Discuss around concrete examples, not hand-waving abstractions. Don't say you did something, provide a URL that proves it.

Ship it

Nothing is real until it's being used by a real user. This doesn't mean you make a prototype in the morning and blog about it in the evening. It means you find one person you believe your product will help and try to get them to use it.

Do it with style

@cycomachead
cycomachead / color_contrast.js
Last active April 5, 2017 22:51
Testing W3C Color Contrast
/*
Color Contrast
Implement WCAG's Color Contrast formula
Designed to take in hex color codes:
ratio('000000', 'FFFFFF') → 21 is the defined ratio between white and black
*/
// Convert hex to number
// Decimal should be a float [0, 1.0]
let hex2int = (str) => parseInt(str, 16);
@cycomachead
cycomachead / gist:94db03f4bf66a1e3fd63aeb9b1261cb4
Created November 10, 2016 22:01 — forked from kylefox/gist:4512777
If you want to use Xcode's FileMerge as your git mergetool, this is how you set it up.
# Tell system when Xcode utilities live:
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
# Set "opendiff" as the default mergetool globally:
git config --global merge.tool opendiff
@cycomachead
cycomachead / Gradescope Hacks.md
Last active February 25, 2018 16:25
Bookmarklets and scripts for tweaking gradescope.com

Gradescope Hacks

This is a collection of bookmarklets and scripts that you can use to adapt Gradescope to do (currently) unsupported things. Unless otherwise noted, make a new bookmark, then set it's link/URL to the code for each hack.

Directions

To make a new bookmarklet, create a new bookmark in your browser, then use the edit functionality to set the URL. Make sure to include the full text starting with "javascript:". When you click that bookmark while on the page it will prompt you and then do its thing. :) (Nothing should happen on any page that isn't the right one.)

Warning: These are subject to break at any time. :-)

@cycomachead
cycomachead / cer.md
Created November 1, 2016 09:33 — forked from amyjko/cer.md

Computing education research (CER) is the study of how people learn computing and the invention of better ways to teach computing. This FAQ will teach you more more about the field and how you might contribute to it.

What is computing education research?

First, CER is not teaching. Teaching is helping people acquire knowledge, skills, attitudes and beliefs. Research is discovering truth and inventing solutions. Teachers teach computing, whereas computing education researchers discover what is true about the teaching and learning of computing, and invent new techniques for teaching and assessing it (some pedagogical, some computational).

It's also important to note that I construe "computing" broadly: it's not just about programming, or even just about computer science, but also about all of the phenomena surrounding computing (including privacy, security, information ethics, software engineering, etc.). This means that computing education and computing education research can and do cover far more t