Skip to content

Instantly share code, notes, and snippets.

View danielledeleo's full-sized avatar

Dani De Leo danielledeleo

View GitHub Profile
@danielledeleo
danielledeleo / start.sh
Created April 16, 2024 20:45
PaperMC startup script
#!/bin/bash
set -e
VERSION=1.20.4
LATEST_JSON=$(curl -X 'GET' \
"https://api.papermc.io/v2/projects/paper/versions/$VERSION/builds" \
-H 'accept: application/json' \
| jq '.builds | last ')
<html>
<head>
<title>jagger27.com</title>
<style>
.twoseven {
font-family: Georgia, 'Times New Roman', Times, serif;
font-weight: bold;
font-size: calc(300px + (600 - 300) * ((100vw - 300px) / (1600 - 300)));
display:block;
transform: rotate(-25deg);
#include "dz60.h"
#define MODS_CTRL_MASK (MOD_BIT(KC_LSHIFT)|MOD_BIT(KC_RSHIFT))
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
LAYOUT(
F(0), KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSLS, KC_GRV,
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSPC,
KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT,

Keybase proof

I hereby claim:

  • I am jagger27 on github.
  • I am jaggerdeleo (https://keybase.io/jaggerdeleo) on keybase.
  • I have a public key ASDMBMr9MY8xhvOVwfUUT3EpLP-sAp9MJDEONDOe5lN66Ao

To claim this, I am signing this object:

@danielledeleo
danielledeleo / cb-4th-patrons-call.md
Last active October 12, 2017 22:45
Citybound: 4th Patrons Call Notes

Citybound: 4th Patron's Call Notes

Favourites and Discovery

  • To reduce search space of "is there a new favourite/better alternative" shop to get <something>
    • Cims may not be aware of the "new pizza place" that just opened (and only consider places they know exist)
    • some other event needs to trigger their awareness of it, like:
      • from walking/driving by the place
  • proximity to Cims who know about it (family, coworkers, people at the park..)
@danielledeleo
danielledeleo / littlemultifilegrep.js
Created January 7, 2016 21:23
A little asynchronous multi-file grep
(function() {
const fs = require('fs');
if (process.argv.length < 4) {
console.error('Not enough parameters given. Try this: "node littlemultifilegrep filename.txt term"');
process.exit(1);
}
filenames = process.argv.slice(2, -1);
searchterm = process.argv.slice(-1);
@danielledeleo
danielledeleo / littlegrep_sync.js
Last active January 7, 2016 21:14
A little synchronous grep
(function() {
const fs = require('fs');
if (process.argv.length < 4) {
console.error('Not enough parameters given. Try this: "node findinfile_sync filename.txt term"');
process.exit(1);
}
const filename = process.argv[2];
const searchterm = process.argv[3];
@danielledeleo
danielledeleo / littlegrep_async.js
Last active January 7, 2016 20:41
A little asynchronous grep
(function() {
const fs = require('fs');
if (process.argv.length < 4) {
console.error('Not enough parameters given. Try this: "node littlegrep_async filename.txt term"');
process.exit(1);
}
filename = process.argv[2];
searchterm = process.argv[3];
@danielledeleo
danielledeleo / gcc-on-osx.md
Last active May 20, 2022 11:54
Compiling and Running C on Mac OS X 10.10 Yosemite

Compiling and Running C on Mac OS X Yosemite

If you're like me, you find working on the provided Ubuntu VM to be tortuous and inefficient. It's such a shame to be running an operating system with all of the tools to you need to compile and run simple toy C programs but being forced to use a clunky virtual machine without all your favourite software. Here's what I do to ease the pain.

Mac OS X

This guide was tested on Mac OS X 10.10 Yosemite, but should also work on any version of OS X that Homebrew supports. It should work just fine on Mavericks, plus you get access to valgrind. (valgrind hasn't been ported to 10.10 yet, but it does work on 10.9)

gcc on OS X

By default, if you have Xcode installed, typing gcc into Terminal.app links to the llvm/clang compiler. Although clang is a great, modern compiler it isn't what's specified by the professor and could potentially lead to incompatible code (and lost marks). To avoid this,

Jagger De Leo

(613) 700-9367
Ottawa, ON, Canada
jagger@twoseven.ca

Objectives

  • Gain career-valuable experience in the CS field
  • Get my hands dirty in the real world
  • Form new career relationships and connections