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
function home { set-location "~" } | |
Set-Alias vim nvim | |
# Create a command similar to Linux `touch` | |
function touch { | |
Param( | |
[Parameter(Mandatory=$true)] | |
[string]$Path | |
) |
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 | |
from sseclient import SSEClient | |
import json | |
from math import sqrt | |
import winsound # NOTE: Windows only | |
from datetime import datetime, timezone, timedelta | |
''' | |
Version 2.1 (2023-07-07): A small script that alerts the user of lightning if it strikes within 16 km (10 miles) of your home position in the Nordics. | |
Based on lightning observations broadcast as SSE from The Norwegian Meteorological Institute, https://www.met.no/. |
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 | |
from sseclient import SSEClient | |
import json | |
# get the stream | |
thundercloud = SSEClient('https://lyn.met.no/events') | |
# keep checking for new lighning strikes | |
for lightning in thundercloud: |
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
<!DOCTYPE html> | |
<html class="no-js" lang="eng"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<title></title> | |
<meta name="description" content="Order Formatting App"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<!-- <link rel="stylesheet" href="css/main.css"> --> | |
<style type="text/css"> |
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
CREATE (h:Module { | |
name: "Air Filtering Unit I", | |
requirements: [ | |
'$10,000', | |
'Generator III', | |
'Vents III', | |
'Skier III' | |
], | |
functions: [ | |
"Group of skills levelling boost: Physical, +40%" |
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
"source":"https://www.vg.no/spesial/2020/corona/", | |
"events":[ | |
{"2020-03-13":"Change of test criteria"}, | |
{"2020-03-26":"NIPH (FHI) uses MSIS data"}, | |
{"2020-04-20":"Partial reopening of kindergartens and hair dressers"} | |
], | |
"majorReCheckOfDataset":["2020-04-03"], | |
"lastUpdated":["2020-04-03", "2020-04-08", "2020-04-17", "2020-04-21"], | |
"coronaTestDataForNorway": [ | |
{ |
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
Show hidden characters
{ | |
"symbols": { | |
"emdash": "\u2014", // — | |
"endash": "\u2013", // – | |
"laquo": "\u00AB", // « | |
"raquo": "\u00BB", // » | |
"ldquo": "\u201C", // “ | |
"rdquo":"\u201D", // ” | |
"lsquo": "\u2018", // ‘ | |
"rsquo": "\u2019", // ’ |
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/local/bin/python3.7 | |
principal = 10000.0 | |
interest_rate = 5.0 | |
time_units = 10 | |
def get_percentage(inputf, percentage): | |
return inputf * percentage / 100.0 | |
def get_compounding(principalf, n): |
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
// See: Here's Exactly WHEN I am Buying Bitcoin. Alessio Rastani. Published on 8 Jun 2019. https://youtu.be/TiUUJxdynaY | |
study(title = "Rastani Ribbon", shorttitle="Rastani Ribbon", overlay=true) | |
src0 = close, len1 = input(21, minval=1, title="MA Length") | |
src1 = close, len2 = input(55, minval=1, title="MA Length") | |
src2 = close, len3 = input(100, minval=1, title="EMA Length") | |
src3 = close, len4 = input(100, minval=1, title="MA Length") | |
src4 = close, len0 = input(200, minval=1, title="MA Length") | |
sma1 = sma(src1, len1) |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>USD/NOK Slider</title> | |
<meta charset="utf-8"> | |
<style type="text/css"> | |
.slidecontainer { | |
width: 20em; /* Width of the outside container */ | |
} | |
/* Slider */ |
NewerOlder