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
#![feature(new_uninit)] | |
use backoff::ExponentialBackoff; | |
use futures::{pin_mut, TryStreamExt}; | |
use hyper::{body::*, Body, Response}; | |
use hyper_tls::HttpsConnector; | |
use kube::{api::ResourceExt, runtime::WatchStreamExt}; | |
use base64::prelude::*; |
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/env zsh | |
inplace() { | |
COMMAND="$1" | |
FILEPATH="$2" | |
set -x | |
OUTPUT="$(bash -c "${COMMAND} '${FILEPATH}'")" | |
RET=$? | |
if [ $RET -eq 0 ]; then | |
echo -n "$OUTPUT" >! "${FILEPATH}" |
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
cmake_minimum_required(VERSION 3.3.0) | |
project(blablabla VERSION 0.1.0) | |
set(CMAKE_CXX_STANDARD 20) | |
#include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake) | |
#conan_basic_setup() | |
#include_directories(${CONAN_INCLUDE_DIRS}) | |
#link_directories(${CONAN_LIB_DIRS}) |
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
package baseX | |
import ( | |
"errors" | |
"math" | |
) | |
type Encoder struct { | |
encodeMap []rune | |
decodeMap map[rune]int |
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
package main | |
import ( | |
"fmt" | |
"log" | |
"os" | |
"os/signal" | |
"strings" | |
"sync" | |
"syscall" |
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" ?> | |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
<xsl:output method="html" encoding="UTF-8" /> | |
<xsl:template match="/"> | |
<xsl:text disable-output-escaping="yes"><!DOCTYPE html></xsl:text> | |
<html> | |
<head> |
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 asyncio | |
import queue | |
ioloop = asyncio.get_event_loop() | |
def timer(interval=5): | |
def wrapper(func): | |
async def runner(*args, **kwargs): | |
while True: | |
asyncio.ensure_future(func(*args, **kwargs)) |