Instance | Branch |
---|
Discover gists
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
##path you want the script to execute on, please note the script does not work on the parent item | |
$rootItem = Get-Item -Path master:"A Valid Sitecore Path" | |
##grab the guids of your workflow states and the workflow itself and make variables out of them | |
$desiredWorkflowStateDraft = "a workflow State" | |
$desiredWorkflowStateAwaitingApproval = "another workflow state" | |
$desiredWorkflowStateApproved = "another another workflow state" | |
$desiredWorkflow = "workflow guid" | |
$desiredDefaultWorkflow = "workflow guid" |
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
#btrfs benchmark for daily used desktop OS |
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 numpy as np | |
from scipy.linalg import eigh | |
def soft_partition(eigenvectors, eigenvalues, num_partitions): | |
# Apply a weighted sum of eigenvectors in an eigenvalue-dependent manner | |
partitions = np.linspace(np.min(eigenvalues), np.max(eigenvalues), num_partitions) | |
encodings = np.zeros_like(eigenvectors) | |
for i, val in enumerate(partitions[:-1]): | |
start, end = partitions[i], partitions[i+1] | |
mask = (eigenvalues >= start) & (eigenvalues < end) |
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++. It is used in Chrome and in Node.js, among others. It implements ECMAScript and WebAssembly, and runs on Windows 7 or later, macOS 10.12+, and Linux systems that use x64, IA-32, ARM, or MIPS processors. V8 can run standalone, or can be embedded into any C++ application.
SpiderMonkey is Mozilla’s JavaScript and WebAssembly Engine, used in Firefox, Servo and various other projects. It is written in C++, Rust and JavaScript. You can embed it into C++ and Rust projects, and it can be run as a stand-alone shell. It can also be [compiled](https://bytecodealliance.org/articles/making-javascript-run-fast-on
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 setuptools import setup | |
setup(name='MyShell-OpenVoice', | |
version='0.0.0', | |
description='Instant voice cloning by MyShell.', | |
long_description=open('README.md').read().strip(), | |
long_description_content_type='text/markdown', | |
keywords=[ | |
'text-to-speech', | |
'tts', |
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
# ======================================================== | |
# Setup a Dumb AP, Wired backbone for OpenWRT / LEDE | |
# ======================================================== | |
# Set lan logical interface as bridge (to allow bridge multiple physical interfaces) | |
uci set network.lan.type='bridge' | |
# assign WAN physical interface to LAN (will be available as an additional LAN port now) | |
uci set network.lan.ifname="$(uci get network.lan.ifname) $(uci get network.wan.ifname)" | |
uci del network.wan.ifname | |
# Remove wan logical interface, since we will not need it. | |
uci del network.wan |
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
#!/bin/sh | |
# Rifaz Nahiyan | |
# https://github.com/rifazn | |
# Hook for gammastep that changes between light and dark variants of theme | |
# Place this in $XDG_CONFIG_DIR/gammastep/hooks/ | |
# TODO: if prefers-dark-theme is set to true, don't do anything | |
set_theme () { |
NewerOlder