Install the Windows Terminal from the Microsoft Store. This allows you to always be on the latest version.
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
var URLs = UI.panels.network._networkLogView._dataGrid._rootNode._flatNodes.map(n => n._request._url).filter((v, i, a) => a.indexOf(v) === i) | |
copy(URLs.join('\n')); |
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
"use strict"; | |
if (window.cordova && cordova.platformId !== "browser") { | |
document.addEventListener("deviceready", function () { | |
document.addEventListener("click", function (e) { | |
var elem = e.target; | |
while (elem != document) { | |
if (elem.tagName === "A" && elem.hasAttribute("download")) { | |
e.preventDefault(); |
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
/** | |
* Author: Sem Postma (sem@esstudio.site) | |
* Name: Final Export | |
* License: MIT | |
* | |
* Installation: Copy this file to your illustrator scripts folder: | |
* For windows: C:\Program Files\Adobe\Adobe Illustrator CC 2019\Presets\<your locale>\Scripts | |
* For Mac: Applications/Adobe Illustrator CC/Presets/<your locale>/Scripts | |
* | |
* Usage: File->Scripts->Final Export |
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
@ECHO off | |
SETLOCAL EnableDelayedExpansion | |
pushd %CD% | |
FOR /F "tokens=2* skip=2" %%a in ('reg query "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Steam App 24010" /v "InstallLocation"') DO set RW_INSTALL_LOCATION=%%b | |
ECHO. | |
ECHO Make sure you have 7zip installed! | |
ECHO Run this script as administrator, otherwise files may not be created/moved. | |
ECHO. |
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
const { exec } = require('child_process') | |
const fs = require('fs') | |
const path = require('path') | |
let lastDir = '' | |
let currDir | |
const recurse = async (dir, filenames, writeStream) => { | |
currDir = dir | |
const stats = filenames.map(async filename => { |
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
<?php | |
$counter = 0; | |
$flags = array(); | |
$db1; | |
$db2; | |
$db1_table_prefix = ''; | |
$db2_table_prefix = ''; | |
$truncate = false; | |
$truncate_user_groups = false; | |
$batch_size = 1000; |
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
// (c) 2018 Sem Postma | |
// This code is licensed under MIT license | |
(function () { | |
var endScopeObj = {}; | |
window.obj2xml = function (obj, opt) { | |
if (!opt) opt = {}; | |
var rootName = opt.rootName || 'root'; | |
var declaration = opt.declaration === 'auto' ? '<?xml version="1.0" encoding="utf-8"?>' : opt.declaration; | |
var indentation = opt.indentation || 0; |
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
[ | |
{ | |
"key": "No Event", | |
"hidUsagePage": 7, | |
"hidUsageID": 0, | |
"ps2Set1Make": [ | |
null | |
], | |
"ps2Set1Break": [ | |
null |
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
var gradient = ["#11a7b6", "#29b827", "#f8bf00", "#f66d31", "#ef66a0"] | |
var parts = gradient.map((x, i, self) => `${x} ${i / self.length * 100}%, ${x} ${(i + 1) / self.length * 100}%`) | |
var result = `linear-gradient(90deg, ${parts.join(', ')})` |
NewerOlder