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
// ==UserScript== | |
// @name New Userscript | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://chat.openai.com/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=openai.com | |
// @grant none | |
// ==/UserScript== |
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
#![cfg_attr( | |
all(not(debug_assertions), target_os = "windows"), | |
windows_subsystem = "windows" | |
)] | |
// Learn more about Tauri commands at https://tauri.app/v1/guides/features/command | |
#[tauri::command] | |
fn sync(name: &str) -> String { | |
format!("Hello, {}! You've been greeted from Rust!", name) |
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
# git add commit amend // usage: "gaca" | |
function gaca() { | |
# Add all files & changes to your most recent local commit | |
git add . | |
git commit --amend --no-edit | |
} | |
# To push this amended change into your most recent * remote * commit use the next function (after using gaca) 🚨 WITH EXTREME CAUTION! 🚨 If you git push force to wrong remote branch you will overwrite its entire branch history with a different branch! If possible always choose to add another commit instead! |
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 { Global, css } from '@emotion/core' | |
import styled from '@emotion/styled' | |
import { ThemeProvider, useTheme } from 'emotion-theming' | |
import { reset } from '~/src/global-styles/reset' | |
const Headline = styled.h1` | |
color: ${props => props.theme.color}; | |
font-size: 28px; | |
` |
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
# For loop to open all subdirectories in vscode | |
function openfoldersincode() { | |
declare -a dirs | |
i=1 | |
for d in */ | |
do | |
dirs[i++]="${d%/}" | |
done | |
echo "There are ${#dirs[@]} dirs in the current path." | |
for((i=1;i<=${#dirs[@]};i++)) |
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
.hero { | |
width: 100%; | |
height: 400px; | |
position: relative; | |
.callout { | |
padding: 2rem; | |
.title { font-size: 3rem; } | |
} |
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
(function() { | |
window.addEventListener('keydown', function(e) { | |
var player = document.querySelector('video') | |
// console.log("TCL: vimeoControls -> e", e) | |
if (e.keyCode === 37) { | |
player.currentTime -= 5 | |
} | |
if (e.keyCode === 39) { | |
player.currentTime += 5 | |
} |