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 * as fsPromises from 'node:fs/promises' | |
import * as fs from 'node:fs' | |
import * as path from 'path' | |
import { SourceMapConsumer } from 'source-map' | |
import * as archiver from 'archiver' | |
async function readHarFile(fileName) { | |
const harFileContent = await fsPromises.readFile(fileName, 'utf8') | |
const harFile = JSON.parse(harFileContent) | |
return harFile |
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
vim.api.nvim_create_autocmd("ModeChanged", { | |
callback = function () | |
local new_mode = vim.v.event.new_mode | |
local color = "" | |
if new_mode == "n" or new_mode == "nt" then | |
color = "1e66f5" | |
elseif new_mode == "i" or new_mode == "t" then | |
color = "40a02b" | |
elseif new_mode == "c" then | |
color = "fe640b" |
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
package main | |
import ( | |
"encoding/json" | |
"log" | |
"net/http" | |
) | |
type Spaceship struct { | |
Name string `json:"name"` |
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
{ | |
"aboutConfig": { | |
"creditsURL": "https://github.com/teamulster/soHappy", | |
"feedbackURL": "https://github.com/teamulster/soHappy", | |
"imprintURL": "https://github.com/teamulster/soHappy", | |
"issueURL": "https://github.com/teamulster/soHappy", | |
"licenseURL": "https://github.com/teamulster/soHappy", | |
"privacyURL": "https://github.com/teamulster/soHappy" | |
}, | |
"imageAnalyzerConfig": { |
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
@media print { | |
@page { | |
margin: 0; | |
} | |
body { | |
margin: 2.5cm; | |
} | |
} | |
img { |
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
#!/usr/bin/bash | |
# | |
# This script transcodes the input video into x265 30fps | |
# | |
INPUT=$1 | |
SEC=$2 | |
[[ -f "$INPUT" ]] || (echo "No input file specified" && exit 1) | |
[ -z "$SEC" ] && OUTPUT="${INPUT%.*}.mp4" || OUTPUT="$SEC" |
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
package main | |
import ( | |
"fmt" | |
"net/http" | |
"net/url" | |
"os" | |
"github.com/gorilla/context" | |
"github.com/gorilla/handlers" |
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 requests | |
import json | |
from bs4 import BeautifulSoup | |
BASE_URL = "https://coinmarketcap.com/currencies/{currency}/historical-data/" | |
def main(): | |
url = BASE_URL.format(currency="bitcoin") | |
payload = { |
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
<fontconfig> | |
... | |
<match target="pattern"> | |
<test qual="any" name="family"><string>monospace</string></test> | |
<edit name="family" mode="assign" binding="same"><string>Iosevka Custom</string></edit> | |
<edit name="family" mode="append" binding="weak"><string>JoyPixels</string></edit> | |
</match> | |
... | |
</fontconfig> |