These are NOT product / license keys that are valid for Windows activation.
These keys only select the edition of Windows to install during setup, but they do not activate or license the installation.
This file contains hidden or 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
# Support lib for RobotBit from [KittenBot](https://www.kittenbot.cn/), works on Micro:bit and Adafruit CLUE | |
import busio | |
import neopixel | |
import pulseio | |
from adafruit_motor import servo, motor, stepper | |
from adafruit_pca9685 import PCA9685 | |
from board import SCL, SDA, P0, P16 | |
class RobotBit: |
This file contains hidden or 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
#!/bin/sh | |
export DOCKER_HOST="YOUR_DOCKER_ENDPOINT:2375" | |
docker volume create data-volume | |
docker run -d -v data-volume:/data --name helper ubuntu sleep 1000000 | |
tar --exclude=./target -c -v -f - . | docker exec -i helper bash -c 'tar -x -v --strip-components 1 -f - -C /data' | |
docker kill helper | |
docker rm helper | |
docker run -v data-volume:/home/rust/src --name cargo messense/rust-musl-cross:x86_64-musl cargo "$@" |
This file contains hidden or 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 re | |
from enum import Enum | |
from typing import List | |
from feathr.definition.feature import Feature | |
from feathr.definition.feature_derivations import DerivedFeature | |
from feathr.definition.transformation import ExpressionTransformation, WindowAggTransformation | |
class Token: | |
def __init__(self, name, value): |
This file contains hidden or 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 feathr import AvroJsonSchema | |
from feathr import KafKaSource | |
from feathr import KafkaConfig | |
from typing import List | |
import os | |
import random | |
from datetime import datetime, timedelta | |
from feathr import (BOOLEAN, FLOAT, INPUT_CONTEXT, INT32, STRING, | |
DerivedFeature, Feature, FeatureAnchor, HdfsSource, |
This file contains hidden or 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
#!/bin/bash | |
# Usage: | |
# /path/to/musl.sh some-rust-target-name cargo subcommand --options ... | |
# E.g. musl.sh aarch64-linux-unknown-musl cargo build --release | |
# | |
# Note: | |
# Linking C++ libs doesn't work, as we don't have musl version of C++ std libs | |
TARGET=$1 |
This file contains hidden or 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
# `.ssh` must not be readable or writable by others | |
# Run `apt install bindfs` first | |
/mnt/c/Users/UserName/.ssh /home/wsluser/.ssh fuse.bindfs defaults,force-user=wsluser,perms=0000:u+rwD 0 0 |
This file contains hidden or 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
/// Attach console from parent process and hold it until being dropped. | |
/// Used to access console in Windows GUI application when it's started from console. | |
/// Does nothing if it's started from GUI because `AttachConsole` will fail. | |
/// ```no_run | |
/// // Add this line at the beginning to suppress console window | |
/// #![windows_subsystem = "windows"] | |
/// // ... | |
/// fn main() { | |
/// // Attach console from parent process, if any | |
/// let c = ConsoleHolder::new(); |
This file contains hidden or 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
conda config --set changeps1 false |
This file contains hidden or 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
#!/bin/bash | |
set -o allexport | |
XDG_RUNTIME_DIR="/run/user/$(id -u)" | |
eval "$(systemctl --user show-environment)" | |
exec "$@" | |
################################################# | |
# Usage: | |
# env-wrapper gedit | |
################################################# |
OlderNewer