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
// 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; |
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
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]; |
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
/** | |
* Define strategies here | |
*/ | |
let rnd = (deck, enemyDeck) => { | |
//plays a random card | |
return deck[Math.floor(Math.random() * deck.length)]; | |
}; | |
let lowest = (deck, enemyDeck) => { |
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
# 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 |
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
# 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 |
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
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 |
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, { 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'; |
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
// 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; |
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
#include<iostream> | |
#include "xxhash.h" | |
#include <algorithm> | |
using namespace std; | |
int main() { | |
unsigned long long |
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
from hashlib import sha256 | |
import itertools | |
import xxhash | |
hashes = [387926980213842431, | |
2951043163173678585, | |
16720874773084141888, | |
17181926294437511708, | |
9312877567425344755, | |
8363454362106170326, |
NewerOlder