Finn alle primtall mellom to gitte tall ved hjelp av et gitt antall tråder.
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
// 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) |
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
{ | |
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
"blocks": [ | |
{ | |
"alignment": "left", | |
"segments": [ | |
{ | |
"background": "#a69986", | |
"foreground": "#292827", | |
"style": "powerline", |
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
// 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 |
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
<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 |
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
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 |