For example, you want to set 40% alpha transparence to #000000
(black color), you need to add 66
like this #66000000
.
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
; Version: 2023.04.20.1 | |
; Usages and examples: https://redd.it/s1it4j | |
Ini(Path, Sync := true) { | |
return new Ini_File(Path, Sync) | |
} | |
class Ini_File { |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Lazy load youtube embed</title> | |
<meta charset="UTF-8" /> | |
</head> | |
<body> | |
<main> | |
<h1>Example of a lazy loaded embedded YouTube video</h1> | |
<iframe |
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
# BetterTouchTool reset trial time | |
# ** All preference will reset | |
echo "remove ~/Library/Preferences/com.hegenberg.BetterTouchTool.plist" | |
rm -rf ~/Library/Preferences/com.hegenberg.BetterTouchTool.plist | |
echo "Done" | |
echo "remove ~/Library/Application\ Support/BetterTouchTool/" | |
rm -rf ~/Library/Application\ Support/BetterTouchTool/ | |
echo "Done" |
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
#!/usr/bin/env bash | |
# Licensed by author Alex Birch under CC BY-SA 4.0 | |
# https://creativecommons.org/licenses/by-sa/4.0/ | |
# Example input: | |
# ./make_portable.sh mycoolbinary | |
# where mycoolbinary is a mach-o object file | |
# (for example an executable binary or a .dylib) | |
# |
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
<template> | |
<table-component | |
:data="[ | |
{ firstName: 'John', birthday: '04/10/1940'}, | |
{ firstName: 'Paul', birthday: '18/06/1942'}, | |
{ firstName: 'George', birthday: '25/02/1943'}, | |
{ firstName: 'Ringo', birthday: '07/07/1940'}, | |
]" | |
sort-by="firstName" | |
sort-order="asc" |
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
; [Win+A] Toggle always on top | |
#a:: Winset, Alwaysontop, , A | |
; [Win+WheelUp] Increase opacity | |
#WheelUp:: | |
DetectHiddenWindows, on | |
WinGet, curtrans, Transparent, A | |
if ! curtrans | |
curtrans = 255 | |
newtrans := curtrans + 8 |
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
function encodeURIComponent($str) { | |
$revert = array('%21'=>'!', '%2A'=>'*', '%27'=>"'", '%28'=>'(', '%29'=>')'); | |
return strtr(rawurlencode($str), $revert); | |
} | |
class curl_onHeaders | |
{ |
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
/* ~/Library/KeyBindings/DefaultKeyBinding.Dict | |
This file remaps the key bindings of a single user on Mac OS X 10.5 to more | |
closely match default behavior on Windows systems. This makes the Command key | |
behave like Windows Control key. To use Control instead of Command, either swap | |
Control and Command in Apple->System Preferences->Keyboard->Modifier Keys... | |
or replace @ with ^ in this file. | |
Here is a rough cheatsheet for syntax. | |
Key Modifiers |
##How To Reset Your Github Fork
Let’s say I want to contribute to a project on github. The project repository is at wp-cli/wp-cli. First I fork it, and then clone the resulting repository, scribu/wp-cli:
git clone --recursive [email protected]:scribu/wp-cli.git
cd wp-cli
Now, I make some commits to master, push them to my fork and open a pull request. Piece of cake:
git commit -m "awesome new feature"
NewerOlder