Skip to content

Instantly share code, notes, and snippets.

View Arxcis's full-sized avatar
✌️

Jonas Johan Solsvik Arxcis

✌️
  • Oslo, Norway
View GitHub Profile
@Arxcis
Arxcis / TSE2220-øving-uke2.py
Created January 9, 2024 14:59
TSE2220-øving-uke2
import matplotlib.pyplot as plt
from numpy import arange, pi, e
from matplotlib.widgets import Slider
# Initial values
V_0 = 40 # volt
f = 50 # hz
R = 10 # Ohm
L = 10 # henry
<!DOCTYPE html>
<html>
<head>
<style>
body {
margin: 0;
}
#a,#b,#c,#d {
height: 100vh;
}
{
"app-id": "com.transmissionbt.Transmission",
"runtime": "org.gnome.Platform",
"runtime-version": "42",
"sdk": "org.gnome.Sdk",
"command": "transmission-gtk",
"rename-desktop-file": "transmission-gtk.desktop",
"rename-appdata-file": "transmission-gtk.appdata.xml",
"rename-icon": "transmission",
"copy-icon": true,
{
"typ":"JWM",
"enc":"XC20P",
"alg":"ECDH-ES+A256KW",
"iv":[142,224,127,99,142,169,216,98,250,212,27,107,120,74,151,4,233,68,107,75,77,138,121,147],
"id":10584863993335768629,
"type":"didcomm/unknown",
"to":["did:key:z6MkpKtD5e2G7R4S2UYkb8BxcaFZaeCSPAHZuAG3wQ1RigkH"],
"from":"did:key:z6MkpKtD5e2G7R4S2UYkb8BxcaFZaeCSPAHZuAG3wQ1RigkH",
"created_time":1616404868,
<template>
<label :class="[$options.name, color, mark, shape, size, { disabled }]">
<input
type="checkbox"
:class="['box', { selected: value }]"
@click="onClick"
>
<slot v-if="$slots.default" />
</label>
</template>
@Arxcis
Arxcis / demo.html
Created January 25, 2019 08:08
How to navigate without hard-refresh of browser
<!DOCTYPE html>
<html>
<head>
<title></title>
<style>
#open {height: 200px;}
#close {height: 200px;}
#gallery { height: 200px; display: none; }
</style>
</head>
@Arxcis
Arxcis / demo.html
Created January 25, 2019 08:08
How to navigate without hard-refresh of browser
<!DOCTYPE html>
<html>
<head>
<title></title>
<style>
#open {height: 200px;}
#close {height: 200px;}
#gallery { height: 200px; display: none; }
</style>
</head>
<tbody
v-for="(row, index) in filteredRows"
:key="row.id"
@dragenter.prevent="dragenter"
@dragleave.prevent="dragleave"
@dragover.prevent="dragover"
@drop.prevent="drop"
:data-id="row.id"
:data-idx="index"
v-show="row.visible"
@Arxcis
Arxcis / gist:b28f3c8363ca9051db37617aa0c0719a
Created September 18, 2018 22:14
install with feature/prompt-with-affordance
jonasjso in ~/git/technocake/goto on master
$ git fetch origin feature/prompt-with-affordance
remote: Counting objects: 4, done.
remote: Compressing objects: 100% (2/2), done.
remote: Total 4 (delta 2), reused 4 (delta 2), pack-reused 0
Unpacking objects: 100% (4/4), done.
From github.com:technocake/goto
* branch feature/prompt-with-affordance -> FETCH_HEAD
* [new branch] feature/prompt-with-affordance -> origin/feature/prompt-with-affordance
jonasjso in ~/Desktop/npmcoolinit
$ npm init
This utility will walk you through creating a package.json file.
It only covers the most common items, and tries to guess sensible defaults.
See `npm help json` for definitive documentation on these fields
and exactly what they do.
Use `npm install <pkg>` afterwards to install a package and
save it as a dependency in the package.json file.