This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#![no_std] | |
#![no_main] | |
use adafruit_kb2040 as bsp; | |
use defmt_rtt as _; | |
use panic_halt as _; | |
use bsp::{ | |
entry, hal, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This script adapted from the compilation guide here: | |
# https://github.com/Chatterino/chatterino2/blob/master/BUILDING_ON_LINUX.md | |
# Install dependencies, including a library required on RasPi/ARM Linux that is | |
# not listed in the compilation docs (libatomic) | |
sudo apt install -y qttools5-dev qtmultimedia5-dev libqt5svg5-dev libboost-dev \ | |
libssl-dev libboost-system-dev libboost-filesystem-dev cmake g++ \ | |
libatomic-ops-dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Browser Fira Code | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
const GM_addCssResource = href => { | |
const head = document.getElementsByTagName('head')[0] | |
if (!head) { return } | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; https://github.com/borkdude/draggable-button-in-reagent/blob/master/src-cljs/drag/main.cljs | |
(def columns | |
[{:key :one :display "One"} | |
{:key :two :display "Two"} | |
{:key :three :display "Three"} | |
{:key :four :display "Four"} | |
{:key :five :display "Five"}]) | |
(def cell-renderers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Telegram dark theme / night mode | |
// @namespace https://github.com/digitalheir/ | |
// @version 1.0 | |
// @description Dark theme / night mode for Telegram Web | |
// @author Maarten Trompper <maartentrompper@freedom.nl> | |
// @match https://web.telegram.org/* | |
// ==/UserScript== | |
// Since GM removed it (https://wiki.greasespot.net/GM_addStyle) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns beard-oil.lib.blueprint.core | |
(:require ["@blueprintjs/core" :as bpc] | |
[camel-snake-kebab.core :refer [->kebab-case-keyword]] | |
[camel-snake-kebab.extras :refer [transform-keys]])) | |
(def ^:private constant | |
(comp | |
(partial transform-keys ->kebab-case-keyword) | |
js->clj)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns svg.core | |
(:require [reagent.core :refer [render-component]] | |
[svg.lib.core :as s])) | |
(def sand-color "#efc58d") | |
(defn cool-image | |
[] | |
(-> (s/svg {:view-box "0 0 100 100" | |
:stroke "none" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#define sli60 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const handler = { | |
get: (obj, prop) => { | |
// Call should be run when calling invoke(). | |
if (prop === 'invoke') { | |
return body => console.log(`Would call ${obj.route} with body: ${JSON.stringify(body)}`) | |
} | |
// First access sets the request method. | |
if (obj.route === null) { | |
return (new Proxy({ route: '', method: prop }, handler)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const makeCourse = (code, name) => ({ code, name }) | |
const makeHonors = (course, section, semester) => ({ course, section, semester }) | |
const courses = [ | |
makeCourse(220, 'D Two Two Zero'), | |
makeCourse(110, 'A One One Zero'), | |
makeCourse(130, 'C One Three Zero'), | |
makeCourse(120, 'B One Two Zero') | |
] |
NewerOlder