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 React, { createContext, useContext, useState } from "react"; | |
const CountContext = createContext(999999999); | |
//default value if NO provider | |
//helper hook | |
export const useCountContext = () => useContext(CountContext); | |
//helper provider | |
export const CountContextProvider = (props) => { |
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
#Requires AutoHotkey v2.0 | |
#SuspendExempt | |
^`:: | |
{ | |
if (A_IsSuspended) { | |
SoundBeep 392, 200 | |
} else { | |
SoundBeep 261, 200 | |
} |
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
#Requires AutoHotkey v2.0 | |
#SuspendExempt | |
^`:: | |
{ | |
if (A_IsSuspended) { | |
SoundBeep 392, 200 | |
} else { | |
SoundBeep 261, 200 | |
} |
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
#Requires AutoHotkey v2.0 | |
#SuspendExempt | |
^`:: | |
{ | |
if (A_IsSuspended) { | |
SoundBeep 392, 300 | |
} else { | |
SoundBeep 261, 300 | |
} |
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
#Requires AutoHotkey v2.0 | |
~g:: | |
{ | |
slp := 6 | |
del := 3 | |
while GetKeyState("g") | |
{ | |
Send "{w down}" |
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
$files = Get-ChildItem -Filter *.mkv | |
foreach ($file in $files) { | |
#Write-Output "ffg $file.Name" | |
$b2 = "b2-windows.exe" | |
$args = "upload-file gyozobucket {0} movies/columbo-hu/{0}" -f $file.Name | |
Write-Output "$b2 $args" | |
Start-Process -FilePath $b2 -ArgumentList $args -Wait -NoNewWindow | |
} |
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
// ==UserScript== | |
// @name New Userscript | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://www.instagram.com/p/* | |
// @require http://code.jquery.com/jquery-3.5.1.min.js | |
// @grant none | |
// ==/UserScript== |
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
void Start() | |
{ | |
theRenderer = GetComponent<MeshRenderer>(); | |
theRenderer.material.SetVector("_Resolution", new Vector4((float)Screen.width, (float)Screen.height, 0, 0)); | |
} | |
void OnMouseEnter() | |
{ | |
theRenderer.material = hoverMaterial; | |
theRenderer.material.SetVector("_Resolution", new Vector4((float)Screen.width, (float)Screen.height, 0, 0)); |