Skip to content

Instantly share code, notes, and snippets.

View Jesper-Hustad's full-sized avatar

Jesper Hustad Jesper-Hustad

View GitHub Profile
@Jesper-Hustad
Jesper-Hustad / chocoInstallAll.bat
Created March 13, 2020 23:42
Install all my programs
rem https://gist.github.com/jake-g/930717fa63e6b090febb61ac6dd707c9 <- i just copied this from here
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
rem enable batch confirm
choco feature enable -n=allowGlobalConfirmation
rem INSTALL STUFF
cinst chrome
cinst nvidia-display-driver
@Jesper-Hustad
Jesper-Hustad / README.md
Created February 23, 2021 20:17
nt_threads

Nettverksprogrammering Øving 3

Programmeringsspråk og tråder

Oppgaven

Finn alle primtall mellom to gitte tall ved hjelp av et gitt antall tråder.

@Jesper-Hustad
Jesper-Hustad / terminalAlertBox.js
Created October 28, 2021 23:55
StreamLabs Alert Box terminal output
<div id="alert-text-wrap">
<div id="alert-text" style="display: none;">
<div id="alert-message">{messageTemplate}</div>
<div id="alert-user-message">{userMessage}</div>
</div>
</div>
<script>
setTimeout(() => {
const messageElement = document.querySelector("#alert-message").childNodes
@Jesper-Hustad
Jesper-Hustad / DVD-bounce-expression.js
Created March 16, 2022 17:38
Bouncing DVD After Effects expression
// customize speed, position and offset here
var v = 100; //velocity
var o = 0; //time offset
var i = [0,0]; //initial position
var f = (time+o) * v //function
var t = [i[0]+f, i[1]+f]; //time x/y
var d = thisLayer.sourceRectAtTime(); //dimensions
var s = transform.scale; //scale
var lw = d.width *(s[1]/100); //layer width
@Jesper-Hustad
Jesper-Hustad / .mytheme.omp.json
Created August 10, 2022 11:52
GRUVBOX - Oh my posh theme
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"segments": [
{
"background": "#a69986",
"foreground": "#292827",
"style": "powerline",
@Jesper-Hustad
Jesper-Hustad / AE-spritesheet.js
Created April 12, 2023 20:22
Ater Effects Spritesheet animation
// Add these effects to your spritesheet:
// Slider Control, Linear wipe, Linear wipe (again), Offset
// For Linear wipe 2 set Wipe Angle to 270.0
// Expression for Slider Control > Slider
var fps = 4;
var frames = 6;
(Math.floor(time*fps)%frames)*(100/frames)