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
// ==UserScript== | |
// @name Pass für alle | |
// @namespace https://gist.githubusercontent.com | |
// @version 2.17 | |
// @description Ett snabbt och enkelt sätt att boka passtid | |
// @author Jonk | |
// @match https://*.nemoq.se/Booking/Booking/* | |
// @grant none | |
// @require https://code.jquery.com/jquery-3.6.0.min.js#sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4= | |
// @require https://cdnjs.cloudflare.com/ajax/libs/ion-sound/3.0.7/js/ion.sound.min.js |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<testsuites> | |
<testsuite tests="70" failures="0" errors="0" skipped="0" time="8.822" name="com.spotify.royaltyplatform.webapi.it.goldentests.BookingGoldenTest"> | |
<properties> | |
<property name="spotify.components" value="rp-web-api"></property> | |
</properties> | |
<testcase classname="com.spotify.royaltyplatform.webapi.it.goldentests.BookingGoldenTest" name="Ingesting reruns as a user with no role returns a "Client Error" response (401 Unauthorized)" time="0.109"></testcase> | |
<testcase classname="com.spotify.royaltyplatform.webapi.it.goldentests.BookingGoldenTest" name="Ingesting reruns as a user with role "viewer" returns a "Client Error" response (401 Unauthorized)" time="0.187"></testcase> | |
<testcase classname="com.spotify.royaltyplatform.webapi.it.goldentests.BookingGoldenTest" name="Ingesting reruns as a user with role "config editor" returns a "Client Error" response (401 Unauthorized)" time="0.16"></testcase> |
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
{"maintenance":true} |
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
const srand32 = seed => { | |
const s = Math.sin(seed) * 10000; | |
return Math.floor((s - Math.floor(s)) * Math.pow(2, 32)); | |
}; | |
const suuid = seed => | |
new Uint32Array(8) | |
.map((_, idx) => srand32(seed + idx)) | |
.reduce((acc, val, idx) => acc + (idx < 2 || idx > 5 ? '' : '-') + val.toString(16).slice(-4), ''); |
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
const uuid = () => { | |
const arr = new Uint32Array(8); | |
window.crypto.getRandomValues(arr); | |
return arr.reduce((acc, val, idx) => acc + (idx < 2 || idx > 5 ? '' : '-') + val.toString(16).slice(-4), ''); | |
}; |
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(win, doc, version, onError, onUnhandledRejection, sentry) { | |
var SENTRY_SDK = win.SENTRY_SDK; | |
var queue = function(exception) { | |
queue.data.push(exception); | |
}; | |
queue.data = []; | |
win[sentry] = function() { | |
var SDK = win.Sentry; |
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
// @flow strict | |
class Node<K> { | |
key: K | |
next: Node<K> | null | |
prev: Node<K> | null | |
constructor(key: K) { | |
this.key = key | |
} |
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 React, { Component } from 'react' | |
import classNames from 'classnames' | |
import styles from './Styles.css' | |
// Constant with scroll offset to trigger sticky | |
const SCROLL_OFFSET = 100 | |
class ComponentThatNeedsScrollHandling extends Component { | |
state = { sticky: false } | |
ticking = false |
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
fallocate -l 1G /swapfile | |
chmod 600 /swapfile | |
mkswap /swapfile | |
swapon /swapfile | |
echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab | |
sysctl vm.swappiness=10 | |
sysctl vm.vfs_cache_pressure=50 | |
echo 'vm.swappiness = 10' | sudo tee -a /etc/sysctl.conf | |
echo 'vm.vfs_cache_pressure = 50' | sudo tee -a /etc/sysctl.conf |
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
class BinaryTree {} | |
class EmptyBinaryTree extends BinaryTree { | |
isEmpty () { return true } | |
depth () { return 0 } | |
count () { return 0 } | |
inorder (fn) {} | |
preorder (fn) {} | |
postorder (fn) {} | |
contains (x) { return false } |
NewerOlder