Edit (2024): You no longer need to follow this guide! Just use PrismLauncher.
.
.
.
.
use std::{collections::HashSet, time::Duration}; | |
use anyhow::Result; | |
use derive_config::{json::Value, DeriveJsonConfig, DeriveTomlConfig}; | |
use headless_chrome::{browser::default_executable, Browser, LaunchOptions}; | |
use serde::{Deserialize, Serialize}; | |
#[derive(Debug, Default, DeriveJsonConfig, Deserialize, Serialize)] | |
struct Combinations(HashSet<(String, String)>); |
import analogio | |
import board | |
import math | |
import time | |
voltage = analogio.AnalogIn(board.VOLTAGE_MONITOR) | |
voltage_conversion_factor = 3 * 3.3 / 65535 | |
def calculate_mean(data): | |
return sum(data) / len(data) |
using UnityEngine; | |
using UnityEditor; | |
using System.IO; | |
using System.Linq; | |
public class CubemapExtractor : Editor | |
{ | |
private static readonly CubemapFace[] CubemapFaces = new CubemapFace[] | |
{ | |
CubemapFace.PositiveX, // Right |
var t="https://github.com/piitaya/lovelace-mushroom"; | |
function e(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a | |
}const n=window,r=n.ShadowRoot&&(void 0===n.ShadyCSS||n.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,i=Symbol(),o=new WeakMap;let a=class{constructor(t,e,n){if(this._$cssResult$=!0,n!==i)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(r&&void 0===t){const n=void 0!==e&&1===e.length;n&&(t=o.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&o.set(e,t))}return t}toString(){return this.cssText}};const s=t=>new a("string"==typeof t?t:t+"",void 0,i),l=(t, |
Edit (2024): You no longer need to follow this guide! Just use PrismLauncher.
.
.
.
.
Ping = 0 = "Ping" | |
GetVersion = 1 = "GetVersion" | |
ResetToBootloader = 2 = "ResetToBootloader" | |
GetSerial = 3 = "GetSerial" | |
GetRgbProfileCount = 4 = "GetRgbProfileCount" | |
REMOVED_GetCurrentRgbProfileIndex = 5 = "REMOVED_GetCurrentRgbProfileIndex" | |
REMOVED_GetRgbMainProfile = 6 = "REMOVED_GetRgbMainProfile" | |
ReloadProfile0 = 7 = "ReloadProfile0" | |
SaveRgbProfile = 8 = "SaveRgbProfile" | |
GetDigitalProfilesCount = 9 = "GetDigitalProfilesCount" |
#! /usr/bin/python3 | |
import json | |
import csv | |
# extract export.data from .1pux file using archive manager | |
# extract.data is a json file | |
json_file_path = './export.data' | |
# output file path |
import asyncio | |
import discord | |
from fastapi import FastAPI | |
app = FastAPI() | |
client = discord.Client() | |
# where the magic happens | |
# register an asyncio.create_task(client.start()) on app's startup event |
// Improved FastPlatformSwitcher for Unity 2018 (and maybe other Unity versions) | |
// For Asset Database v1 | |
// by Andy Miira (Andrei Müller), October 2019 | |
// | |
// Based on: | |
// Unity – fast build platform switcher script! (by Aymeric - Da Viking Code) | |
// https://davikingcode.com/blog/unity-fast-build-platform-switcher-script/ | |
// | |
// A simple fast platform switcher for Unity (by Waldo Bronchart) | |
// https://gist.github.com/waldobronchart/b3cb789c028c199e2855 |
use rocket::{request::FromRequest, Outcome, Request}; | |
pub struct WWWHost; | |
pub struct AAAHost; | |
impl<'a, 'r> FromRequest<'a, 'r> for WWWHost { | |
type Error = (); | |
fn from_request(request: &'a Request<'r>) -> rocket::request::Outcome<Self, Self::Error> { | |
if let Some(hostname) = request.headers().get_one("host") { |