Skip to content

Instantly share code, notes, and snippets.

View hawkrives's full-sized avatar
🦋
Butterflies

Hawken Rives hawkrives

🦋
Butterflies
View GitHub Profile
@hawkrives
hawkrives / gist:5d3a5bd1d40cf4e02ab8
Last active May 3, 2024 16:15
chem 398 for cs elective proposal
  • This course is devoted to team research/development projects, employing established software development methodologies.
  • Projects frequently have:
    • an interdisciplinary nature,
    • involving consultation with faculty and/or students in other fields,
    • and taking advantage of the particular backgrounds of team members.
  • One or more research papers, posters ,etc., on results are ordinarily expected.
  • Offered alternate years.
  • Prerequisites: one core course with implementation in computer science or permission of instructor.
@hawkrives
hawkrives / src.js
Last active October 20, 2024 17:12
6to5 _interopRequire and node `exports`
let coursesAtOrAboveLevel = (level, course) => (course.level >= level)
export {coursesAtOrAboveLevel}
import '6to5/runtime'
import csp from "js-csp"
function* player(name, table) {
while (true) {
var ball = yield csp.take(table);
if (ball === csp.CLOSED) {
console.log(name + ": table's gone");
return;
}
@hawkrives
hawkrives / gist:8895bca135959ca875ae
Created November 29, 2014 23:04
Possible SVGDiplomacy game format
{
id: 'sdywf9874ia8hos9290',
owner: '8WswhCVIse',
players: ['hawkrives', 'heroine', 'dominator'],
mapName: 'Europe',
mapId: '91nf8932',
title: 'STOLAF DOMINATES EUROPE!',
}
console.log('obj 1');
var obj = {
data: 0,
get x() {
return this.data + 1;
}
}
console.log(obj.x);
command: "echo Hello World!",
refreshFrequency: 5000,
render: function (output) {
return "<div><h1>" + output + "</h1></div>";
},
style: [
"top: 20px",
@hawkrives
hawkrives / select2.bookmarklet.js
Last active December 17, 2024 17:46
Bookmarklet to turn <select>s into <select²>s
javascript:(function()%7Bvar%20select2%3D%7Bcss%3A%22https%3A%2F%2Fcdn.rawgit.com%2Fivaynberg%2Fselect2%2F8cc9d48d5881a5760178b5cd615c5174fbd98672%2Fselect2.css%22%2Cjs%3A%22https%3A%2F%2Fcdn.rawgit.com%2Fivaynberg%2Fselect2%2F8cc9d48d5881a5760178b5cd615c5174fbd98672%2Fselect2.min.js%22%7D%2CselectCssLoadedPromise%3Dnew%20Promise(function(a%2Cb)%7Bconsole.log(%22inside%20css%20promise%22)%2Cselect2.link%3Ddocument.createElement(%22link%22)%2Cselect2.link.onload%3Dfunction()%7Bconsole.log(%22select%20css%20loaded%22)%2Ca()%7D%2Cselect2.link.onerror%3Dfunction(a)%7Bconsole.log(%22select%20css%20errored%22%2Ca)%2Cb()%7D%2Cselect2.link.href%3Dselect2.css%2Cselect2.link.rel%3D%22stylesheet%22%2Cselect2.link.type%3D%22text%2Fcss%22%2Cdocument.body.appendChild(select2.link)%7D)%2CselectScriptLoadedPromise%3Dnew%20Promise(function(a%2Cb)%7Bconsole.log(%22inside%20js%20promise%22)%3Bvar%20c%3Ddocument.createElement(%22script%22)%3Bc.onload%3Dfunction()%7Bconsole.log(%22select%20js%20loaded%22)%2Ca()%7D%2Cc.onerror%3Df
@hawkrives
hawkrives / newStructure.css
Last active December 22, 2024 17:30
St. Olaf's Moodle Revisited
@-moz-document domain('moodle-2014-15.stolaf.edu') {
/*! normalize.css v3.0.1 | MIT License | git.io/normalize */
/**
* 1. Set default font family to sans-serif.
* 2. Prevent iOS text size adjust after orientation change, without disabling
* user zoom.
*/
html {

Keybase proof

I hereby claim:

  • I am hawkrives on github.
  • I am hawkrives (https://keybase.io/hawkrives) on keybase.
  • I have a public key whose fingerprint is 3796 3D9A 25A9 390E 0FCC 4499 02F6 870A FBB3 FAE6

To claim this, I am signing this object:

@hawkrives
hawkrives / README.md
Last active November 18, 2024 19:36 — forked from JoelBesada/README.md

This is an example command for Backtick. A Backtick command consists of some executable JavaScript and a bit of metadata in JSON.

Here are the required steps to create a command:

  1. Create a new Gist with a command.js and command.json file, or simply fork this one.

  2. Write your JavaScript in command.js. This will be injected into and executed on the page the user is currently on when they run it.

  3. Add some metadata to the command.json file:

  • name: The name of the command.