Skip to content

Instantly share code, notes, and snippets.

View cole-wilson's full-sized avatar
:shipit:
cole.ws

Cole Wilson cole-wilson

:shipit:
cole.ws
View GitHub Profile
@cole-wilson
cole-wilson / Welcome file.md
Last active October 1, 2019 16:56
Welcome file
X:2012
T:Liam's Theme
R:Cole Wilson
C:Trad.
O:England
Z:HI LIAM!!!!!
M:4/4
L:1/8
Q: 1/2 =160
@cole-wilson
cole-wilson / key.js
Created October 9, 2019 15:32
I DIDN'T MAKE THIS!!!!
/**
* Simulate a key event.
* @param {Number} keyCode The keyCode of the key to simulate
* @param {String} type (optional) The type of event : down, up or press. The default is down
* @param {Object} modifiers (optional) An object which contains modifiers keys { ctrlKey: true, altKey: false, ...}
*/
function simulateKey (keyCode, type, modifiers) {
var evtName = (typeof(type) === "string") ? "key" + type : "keydown";
var modifier = (typeof(modifiers) === "object") ? modifier : {};
:root {
--colors-one: #d6e685;
--colors-two: #8cc665;
--colors-three: #44a340;
--colors-four: #1e6823;
}
@media (prefers-color-scheme: dark) {
:root {
--colors-text: var(--colors-white);
@cole-wilson
cole-wilson / style.css
Created November 10, 2020 21:35
CSS uploaded by scrapbook.hackclub.com/customizer
* {
font-family: 'Courier New', Courier, monospace;
}
*::first-letter {
text-transform: uppercase;
}
.header-title-name::first-letter {
text-transform: lowercase!important;
}
body {
* {
font-family: 'Courier New', Courier, monospace;
}
body {
background: #1a76ff;
}
*::first-letter {
text-transform: uppercase;
}
.header-title-name::first-letter {
@cole-wilson
cole-wilson / git.bash
Last active February 26, 2021 17:04
A bash script to upload an existing project to git.
# This is a bash script to upload two folders to GitHub
# just type the lines directly into the terminal
# no need to put them in a file or anything
# You don't need to type anything after the # comment
# Tell git who you are:
git config user.email "<YOUR_EMAIL>"
git config user.name "<YOUR_NAME>"
# Note: include files starting with `.`

Comment on this gist with all the clues we know for sure, I will edit and put them here.

  • TRAINS: this def. has something to do with trains:
    • Maybe, sam said it was for a history project

    • Sam posted in #CDN photos of trains from California_Zephyr_Colorado_River_Western_Colorado.
    • Sam downloaded train horn sound effect
    • The lights in the bottom of the second clue are from a train (also in #CDN)
    • Max is a train engineer
    • Orpheus' profile pic looks like a train engineer, and caleb practlically confirmed this.
  • First Clue: coords lead here, near spacex
<!channel>

The SlabBook Pro™

Does your MacBook have a broken screen? Buy a monitor instead of a new computer, and chop off the screen.

In September of 2021, the screen on my family's 2016 MacBook Pro went kaput. This was right in the middle of the pandemic when we used it all the time, and we didn't want to spend money on a new laptop! Here's a photo of the screen:

the broken screen

The screen would only work when it was almost completely closed. I did my best to fix it but the cable that connected the screen had somehow ripped and was unfixable. I decided that instead of buying a new computer, I'd just remove the screen! After a lot of careful work, I removed the WiFi antenna and unscrewed the hinges of the screen itself. Here are some photos of the process and the antenna (ignore the sweatshirt I just used it as a soft surface to work on):

@cole-wilson
cole-wilson / README.md
Created December 1, 2023 06:03
AP Stats SImulation

The following Python code simulates the chances of a random seating assignment based on students selected their seats from randomly drawn cards. What is the chance that one or more student will have the eact same seat as before? The same group? Try it out online at https://www.online-python.com/jYsmy9nK7L.