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
libraryA from ‘library-a’; | |
const bar = new libraryB.Bar(document.body, { withTicks: true }); |
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
import { JSDOM, ResourceLoader } from "jsdom"; | |
import fs from "fs"; | |
import path from "path"; | |
const USER_AGENT = | |
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36"; | |
interface Result { | |
[key: string]: string | Result; | |
} |
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 XLSX = require("xlsx"); | |
const glob = require("glob"); | |
const path = require("path"); | |
let i = 0; | |
glob | |
.sync(path.join(__dirname, "./original/*.xlsx")) | |
.forEach(function(file) { | |
// tslint:disable-next-line: non-literal-require |
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/bash | |
# Based on https://riviera.org.uk/2018/10/23/importing-non-gopro-videos-into-gopro-quik/ | |
if [ -d "$1" ] | |
then | |
mkdir "$1/GoPro Quik" | |
for filename in "$1"/*.mp4; do | |
filename_base=$(basename "$filename") | |
ffmpeg -i "$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
# Taken from https://github.com/kubernetes/kops | |
# Copyright 2017 The Kubernetes Authors. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software |
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
// ==UserScript== | |
// @name GitLab Wider Env | |
// @description Makes environment variables inputs wider in GitLab's CI/CD settings (https://gitlab.com/*/settings/ci_cd) | |
// @version 1 | |
// @match https://gitlab.com/*/ci_cd | |
// @grant none | |
// ==/UserScript== | |
for (const el of document.querySelectorAll(".container-fluid.container-limited.limit-container-width")) { |
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
FROM docker:stable | |
RUN apk add --no-cache python3 | |
RUN pip3 install awscli |
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
/* | |
HTML5 Speedtest v4.3.2 | |
by Federico Dossena | |
https://github.com/adolfintel/speedtest/ | |
GNU LGPLv3 License | |
*/ | |
// data reported to main thread | |
var testStatus = 0 // 0=not started, 1=download test, 2=ping+jitter test, 3=upload test, 4=finished, 5=abort/error | |
var dlStatus = '' // download speed in megabit/s with 2 decimal digits |
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
{ | |
"parserOptions": { | |
"ecmaVersion": 6 | |
}, | |
"env": { | |
"browser": true, | |
"meteor": true | |
}, | |
"ecmaFeatures": { | |
"arrowFunctions": true, |
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
// RutrackerSimpleDownload | |
// Created by Alexander Gusev on 12.04.13. | |
// Copyright (c) 2013 Alexander Gusev. All rights reserved. | |
// http://goooseman.ru | |
// Variables // | |
NSString *username = @""; | |
NSString *password = @""; |