Skip to content

Instantly share code, notes, and snippets.

View stackola's full-sized avatar

Willi K. stackola

View GitHub Profile
// How to use:
// Step 1: go to https://iss-sim.spacex.com/
// Step 2: Let everything load, click on "Begin" and wait 10 seconds
// Step 3: Copy this whole programm into your browser's console
// Step 4: Hit enter!
class Controller {
constructor(k_p, k_i, k_d, dt) {
let i_max;
if (typeof k_p === "object") {
let options = k_p;
let assert = require("assert");
let rngesus = (deck, enemyDeck, score, bonus) => {
// rngesus ist immer Spieler 2
switch (isMatchBall(score, bonus)) {
case "winning":
if (bonus >= 1) {
return deck.sort((a, b) => b - a)[0];
} else {
return deck.sort((a, b) => a - b)[0];
/**
* Define strategies here
*/
let rnd = (deck, enemyDeck) => {
//plays a random card
return deck[Math.floor(Math.random() * deck.length)];
};
let lowest = (deck, enemyDeck) => {
# diff all
# Betaflight / OMNIBUS (OMNI) 3.2.0 Aug 28 2017 / 12:01:58 (b2cd7294e)
defaults
name lizard
resource MOTOR 1 B09
resource MOTOR 2 A03
resource MOTOR 3 B08
resource SERVO 1 A08
resource LED_STRIP 1 NONE
resource TRANSPONDER 1 NONE
# dump
# Betaflight / OMNIBUS (OMNI) 3.2.0 Aug 28 2017 / 12:01:58 (b2cd7294e)
name lizard
resource BEEPER 1 C15
resource MOTOR 1 B08
resource MOTOR 2 B09
resource MOTOR 3 A03
resource MOTOR 4 A02
resource MOTOR 5 B07
resource MOTOR 6 B06
We, the Operators of this Website, provide it as a public service to our users.
Your privacy is important to the us. Our goal is to provide you with a personalized online experience that provides you with the information, resources, and services that are most relevant and helpful to you. This Privacy Policy has been written to describe the conditions under which this web site is being made available to you. The Privacy Policy discusses, among other things, how data obtained during your visit to this web site may be collected and used. We strongly recommend that you read the Privacy Policy carefully. By using this web site, you agree to be bound by the terms of this Privacy Policy. If you do not accept the terms of the Privacy Policy, you are directed to discontinue accessing or otherwise using the web site or any materials obtained from it. If you are dissatisfied with the web site, by all means contact us; otherwise, your only recourse is to disconnect from this site and refrain from visiting the site in th
import React, { useRef, useEffect, useMemo, useState } from 'react'
import "./prism.css"
import _ from "lodash"
import * as d3 from "d3"
import { scrollTo } from "./../../utils.js"
import './Code.scss';
import ClipboardTrigger from '../ClipboardTrigger/ClipboardTrigger';
// Decompiled Web Assembly generated by wasmdec. Preamble:
#include <stdint.h> // For the bit size specific types
#include <math.h> // For certian WASM operations
typedef
const char * wasm_table_t; // WASM tables
// Bit size specific types not declared in stdint.h:
typedef float float32_t;
typedef double float64_t;
#include<iostream>
#include "xxhash.h"
#include <algorithm>
using namespace std;
int main() {
unsigned long long
from hashlib import sha256
import itertools
import xxhash
hashes = [387926980213842431,
2951043163173678585,
16720874773084141888,
17181926294437511708,
9312877567425344755,
8363454362106170326,