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
{ | |
"AD": "ca", | |
"AE": "ar-AE,fa,en,hi,ur", | |
"AF": "fa-AF,ps,uz-AF,tk", | |
"AG": "en-AG", | |
"AI": "en-AI", | |
"AL": "sq,el", | |
"AM": "hy", | |
"AN": "nl-AN,en,es", | |
"AO": "pt-AO", |
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
/** | |
* @description | |
* Support patch-package in pnpm projects. | |
* | |
* `pnpm` can be tricky to use with patch-package. To minimize friction creating patches, | |
* this script helps automate patching by using npm and a temp workspace to generate | |
* patch files. | |
* | |
* @usage | |
* 0. ensure the dependencies of interest are top level dependencies/devDependencies (no patching transitive deps) |
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
Note : These are the settings i wrote by observing the Mediainfo of RARBG Encodes , these might not be 100% identical to RARBG Encodes. | |
These are FFMPEG Settings. | |
See comment below to see the code |
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> | |
<meta charset="utf-8"/> | |
<title>performance of different loop types #jsbench #jsperf</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script> | |
<script src="./suite.js"></script> | |
</head> | |
<body> | |
<h1>Open the console to view the results</h1> |
The general gist is that we replace normal link underlines (text-decoration: underline
) with an SVG background image. The background image is positioned along the bottom of the element, prevented from repeating vertically, and then scaled by defining the background size in text units:
a {
text-decoration: none;
}
This gist contains two Python modules:
- sourcemap: a module to parse and generate JavaScript source maps
- base64vlq: code to decode and encode base64 VLQ sequences, an encoding used in source maps.
The code is licensed under the terms of the MIT license, included in the gist.
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
/** | |
* Pure JS JSON Parser | |
* | |
* @see https://lihautan.com/json-parser-with-javascript/ | |
* @param {string} str | |
*/ | |
function parseJSON(str) { | |
let i = 0; | |
const value = parseValue(); |
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
const path = require("path"); | |
function replacePathAlias(currentFilePath, importPath, pathMap) { | |
// if windows env, convert backslashes to "/" first | |
console.log(currentFilePath) | |
currentFilePath = path.posix.join(...currentFilePath.split(path.sep)); | |
const regex = createRegex(pathMap); | |
return importPath.replace(regex, replacer); |
You need to modify code of a Java NetBeans project but you neither have or want to install that IDE in order to re-compile it.
Use Apache Ant to compile your Java code.
- Create a folder (e.g.
lib
) in your project, at the same level ofnbproject
, and save all dependencies (jars) there.
NewerOlder