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
1 aesdeclast | |
1 aesimc | |
1 cmovp | |
1 fcmovbe | |
1 fcmove | |
1 fcmovnbe | |
1 fdivr | |
1 fdivs | |
1 fild | |
1 fmuls |
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 | |
set -ex | |
# Define your GitHub username and organization name | |
YOUR_USERNAME="pepijndevos" | |
ORG_NAME="SciML" | |
# Iterate through the organization's repositories | |
REPO_LIST=$(gh repo list $ORG_NAME --json name --limit 1000 --no-archived) |
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 lazy-sort) | |
(defn qsort [[head & tail]] | |
(when head | |
(lazy-cat (qsort (filter #(< % head) tail)) | |
[head] | |
(qsort (remove #(< % head) tail))))) | |
(defn merge* | |
[[f1 & r1 :as l1] [f2 & r2 :as l2]] |
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
using ControlSystems | |
using Plots | |
# calculate the inertia from bifilar pendulum experiment | |
# https://www.youtube.com/watch?v=IdhV3lphRcc | |
L = 1.8 # length of the pendulum | |
D = 0.18 # distance between the wires | |
b = D/2 | |
g = 9.81 # graviational constant |
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
#!/usr/bin/python3 | |
import os | |
import re | |
import subprocess | |
import mmap | |
def patch(filename : str, bytes): | |
subprocess.run(["cp",filename, filename + '_patched']) | |
with open(filename + "_patched", "r+b") as f: |
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
import base64 | |
import json | |
import sys | |
import serial | |
import random | |
import os | |
if len(sys.argv) != 4: | |
print(f"Usage\n{sys.argv[1]} tty code.py slot") | |
exit() |
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
(import amaranth *) | |
(defn domain [domain #* expr] (domain.__iadd__ expr)) | |
(defmacro mwhen [m condition #* body] | |
`(do | |
(with [(m.If ~condition)] | |
~body))) | |
(defmacro mif [m condition pos neg] |
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
import minipb | |
import zlib | |
value = (('string_value', 'U'), | |
('float_value', 'f'), | |
('double_value', 'd'), | |
('int_value', 't'), | |
('uint_value', 'T'), | |
('sint_value', 'z'), | |
('bool_value', 'b')) |
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
set -ex | |
ORIGINAL="fox.jpg" | |
OG_SHIRT="#224e2b" | |
OG_PANTS="#9f6e4e" | |
function rand { | |
echo $(($1 + ($RANDOM % ($2 - $1)))); | |
} | |
mkdir -p tiles |
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
We're no strangers to jobs | |
You know the rules and so do I | |
A full commitment's what I'm thinking of | |
You wouldn't get this from any other guy | |
You're just gonna tell me what you're paying | |
Gotta make you understand | |
Never gonna give my pay | |
Never gonna let you know |
NewerOlder