Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 PIL import Image, ImageDraw | |
def parse_atlas_data(text): | |
lines = text.split("\n") | |
line_id = 0 | |
items = [] | |
meta = {} | |
curr_item = None | |
meta_read = False | |
while line_id < len(lines): |
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
-----BEGIN PGP SIGNED MESSAGE----- | |
Hash: SHA256 | |
Visit this page at https://ovv.im/sig | |
Verify this profile at https://keyoxide.org/sig | |
proof=dns:outv.im | |
proof=https://mk.outv.im/notes/9bh4ciud3g | |
proof=https://gist.github.com/outloudvi/aa7b25657eae3d3114b8ce78ba0beb2e | |
proof=https://news.ycombinator.com/user?id=outloudvi |
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 toMwTracklist = (title, tracks) => | |
` | |
{{Tracklist | |
| headline = ${title} | |
| all_music = | |
| all_lyrics = | |
| longnote_column = no | |
| singer_credits = yes | |
${tracks | |
.map(({ title, singer, note }, index) => |
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
// This is needed for any .jsx file | |
// JSX allows you to use HTML tags in JavaScript | |
import React from 'react' | |
// Give a **number**, return mm:ss | |
function formattedYtTime(sec) { | |
// minute | |
const h = Math.floor(sec / 60) | |
// second | |
const s = sec - h * 60 |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>OAuth | Spotify</title> | |
</head> |
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
/** | |
Usage: | |
1. Get a SPOTIFY_TOKEN (e.g. from kira.vercel.app) and run `deno run --allow-net ./denonbu-tpl.mjs` | |
2. Import `checkSongs()` from the file and call checkSongs(SPOTIFY_TOKEN). | |
**/ | |
import fetch from 'https://cdn.skypack.dev/node-fetch@3' | |
import { table } from 'https://cdn.skypack.dev/[email protected]' | |
// Change this | |
const SPOTIFY_TOKEN = '' |
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 HOSHIMI = '星見プロダクション' | |
const LN = 'LizNoir' | |
const TY = 'TRINITYAiLE' | |
const MANA = '长濑麻奈' | |
const SUNNYP = 'サニーピース' | |
const TSUKI = '月のテンペスト' | |
const alb = [ | |
{ | |
ti: ['IDOLY PRIDE(歌曲)', 'IDOLY PRIDE'], |
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
// Run this in "vtbs/". | |
const fs = require('fs') | |
const FIX_FILENAME = false | |
const FIX_CONTENTFILENAME = true | |
async function main() { | |
const info = fs.readdirSync('.') | |
for (let filename of info) { |
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
pkgname=vscode-ssh-askpass-kde | |
pkgver=0.1.0 | |
pkgrel=0 | |
pkgdesc="Fix VSCode SSH push process for KDE" | |
arch=('any') | |
url="https://github.com/microsoft/vscode/issues/57488#issuecomment-636184685" | |
license=('MIT') | |
depends=('ksshaskpass') | |
optdepends=('code: open source build of VSC' | |
'visual-studio-code-bin: official version of VSC' |
NewerOlder