Table of Contents
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 deepLApiKey = '' // REQUIRED, Specify your DeepL API key here | |
const apiSubdomain = deepLApiKey.endsWith(':fx') ? 'api-free' : 'api' | |
class DeepLTranslator { | |
async translate(text, from, to) { | |
const deeplFrom = from === 'nn' ? 'nb' : from | |
let deeplText = text | |
// If from language is Nynorsk, convert to Bokmål using Apertium | |
if (from === 'nn') { |
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
// MOVED TO https://gist.github.com/adalinesimonian/b52a753c9fd6c176598745df01ba12dc |
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
// 1. Search for the Twitter users you want to block. | |
// 2. Execute this script in your browser console. | |
// Only the accounts visible on the current page of results will be blocked. | |
// Scroll further down as the script runs to block more users. | |
// One-liner | |
(async () => { let element; while (element = document.querySelector('[role="article"] [aria-label="More"]')) { element.click(); await new Promise((resolve) => { const observer = new MutationObserver(() => { if (document.querySelector('[data-testid="block"]')) { observer.disconnect(); resolve(); } }); observer.observe(document.body, { childList: true, subtree: true }); }); document.querySelector('[data-testid="block"]').click(); await new Promise((resolve) => setTimeout(resolve, 500)); document.querySelector('[data-testid="confirmationSheetConfirm"]').click(); await new Promise((resolve) => setTimeout(resolve, 500)); } })(); |
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
-- instrument_track.lua fork v0.1 by Adaline Simonian | |
-- (@adaline on reaper forums, @adalinesimonian on github) | |
-- forked from instrument_track.lua v0.2 by Christian Fillion (cfillion) | |
-- | |
-- use this script while selecting a multi-channel vst track. | |
-- | |
-- it creates instrument tracks that both send midi and receive audio | |
-- so make sure that you have feedback in routing enabled (found in | |
-- project settings -> advanced). | |
-- |
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
[Desktop Entry] | |
Name=Visual Studio Code | |
Exec=/usr/local/share/vscode/Code %U | |
Terminal=false | |
Icon=/usr/local/share/vscode/resources/app/vso.png | |
Type=Application | |
StartupNotify=true | |
Categories=TextEditor;Development;Utility; | |
MimeType=text/plain; |
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
#!/bin/sh | |
# Requires ag - The Silver Searcher (https://github.com/ggreer/the_silver_searcher) | |
# (no options) - checks if dependencies are in use | |
# -d - checks if all requires have a matching dependency entry | |
# One-liner that checks for in-use dependencies | |
# grep -Pzo "(?s)(?<=\"dependencies\": {)[^}]+" package.json | grep -ohP "(?<=\")[^\"]+(?=\":)" | xargs -L1 --replace sh -c "if ! ag \"require[\\( ]'{}'\" > /dev/null 2> /dev/null; then printf '\\033[1;31mREQUIRE NOT FOUND:\\t%s\033[m\\n' {}; else printf 'Require found:\\t\\t%s\\n' {}; fi" |
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 gulp = require('gulp') | |
var watch = require('gulp-watch') | |
var babel = require('gulp-babel') | |
var plumber = require('gulp-plumber') | |
var libDir = 'lib/' | |
var srcDir = 'src/**/*.es6' | |
function runBabel () { | |
return gulp.src(srcDir) |
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
vartan@Vartan-Desktop ~/Code/Practice/buffer-segfault gdb --args node main.js | |
GNU gdb (Ubuntu 7.9-1ubuntu1) 7.9 | |
Copyright (C) 2015 Free Software Foundation, Inc. | |
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> | |
This is free software: you are free to change and redistribute it. | |
There is NO WARRANTY, to the extent permitted by law. Type "show copying" | |
and "show warranty" for details. | |
This GDB was configured as "x86_64-linux-gnu". | |
Type "show configuration" for configuration details. | |
For bug reporting instructions, please see: |
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
$material_colors: ( | |
red_50: #ffebee, | |
red_100: #ffcdd2, | |
red_200: #ef9a9a, | |
red_300: #e57373, | |
red_400: #ef5350, | |
red_500: #f44336, | |
red_600: #e53935, | |
red_700: #d32f2f, | |
red_800: #c62828, |