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 { readdirSync, readFileSync, writeFileSync, copyFileSync, mkdirSync } from 'fs'; | |
import { join, dirname, relative } from 'path'; | |
function parseIni(content: string) { | |
const result: Record<string, { comments: string[], options: Record<string, { comments: string[], value: string }> }> = {}; | |
let currentSection: string = ''; | |
let currentComments: string[] = []; | |
content.split('\n').forEach(line => { |
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>Test report tpl vars</title> | |
<style> | |
* { font-size: 10px; } | |
html, body { margin: 0; padding: 0; } | |
body { padding: 0 5px; } | |
.container { height: 100%; display: flex; flex-direction: row; } | |
.fill-height { height: 100vh; } |
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 Webflow Variables CSV Export Import Magic | |
// @namespace http://tampermonkey.net/ | |
// @version 0.6 | |
// @description try to take over the world! | |
// @author gaabora | |
// @match https://webflow.com/design/* | |
// @match https://*.design.webflow.com/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=webflow.com | |
// @grant none |
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 | |
{ |