Skip to content

Instantly share code, notes, and snippets.

View andatoshiki's full-sized avatar
😼
Solitudinous hermit

Anda Toshiki andatoshiki

😼
Solitudinous hermit
View GitHub Profile
@andatoshiki
andatoshiki / fish.js
Last active April 24, 2022 20:18
🐬 Flarum forum footer dolphin effect
// navigate to the bottom to see the README installation guide first!
// navigate to the bottom to see the README installation guide first!
// navigate to the bottom to see the README installation guide first!
var RENDERER = {
POINT_INTERVAL : 5,
FISH_COUNT : 3,
MAX_INTERVAL_COUNT : 50,
INIT_HEIGHT_RATE : 0.5,
THRESHOLD : 50,
@andatoshiki
andatoshiki / 📊 Weekly development breakdown
Last active May 14, 2023 00:17
📊 Weekly development breakdown
Vue.js 2 hrs 9 mins ███████▉░░░░░░░░░░░░░ 37.5%
Go 1 hr 36 mins █████▊░░░░░░░░░░░░░░░ 27.9%
TypeScript 36 mins ██▏░░░░░░░░░░░░░░░░░░ 10.5%
YAML 28 mins █▊░░░░░░░░░░░░░░░░░░░ 8.4%
Makefile 15 mins ▉░░░░░░░░░░░░░░░░░░░░ 4.6%
@renbaoshuo
renbaoshuo / codespaces.zsh-theme
Created September 8, 2021 12:14
GitHub Codespaces zsh Theme
# Codespaces zsh prompt theme
__zsh_prompt() {
local prompt_username
if [ ! -z "${GITHUB_USER}" ]; then
prompt_username="@${GITHUB_USER}"
else
prompt_username="%n"
fi
PROMPT="%{$fg[green]%}${prompt_username} %(?:%{$reset_color%}➜ :%{$fg_bold[red]%}➜ )" # User/exit code arrow
PROMPT+='%{$fg_bold[blue]%}%(5~|%-1~/…/%3~|%4~)%{$reset_color%} ' # cwd
@iamandrewluca
iamandrewluca / bookmarks-to-notion.js
Last active May 30, 2024 16:34
Export bookmarks to Notion as a Database
(function bookmarksExportToCsv() {
/**
* 1. Export bookmarks from browser (supported any Chromium based browsers and Safari) (chrome://bookmarks)
* 2. Open exported html file again in the browser
* 3. Copy paste this entire file in console, and execute it (hit enter)
* 4. You will be prompted to save a CSV file. Save it.
* 5. Open Notion. Click Import -> CSV
* 6. Select saved CSV file. Wait for import
* 7. You have a new database with all your bookmarks
*/
@JonathanDn
JonathanDn / medium_clap.html
Last active June 9, 2023 07:34
(moved to a repo https://github.com/JonathanDn/mediumclap ) Medium Clap Reproduction - My take on it by looking, researching and trial & error. Demo available --> https://jsfiddle.net/urft14zr/425/
<div class="canvas">
<div id="totalCounter" class="total-counter"></div>
<div id="clap" class="clap-container">
<i class="clap-icon fa fa-hand-paper-o"></i>
</div>
<div id="clicker" class="click-counter">
<span class="counter"></span>
</div>
@juampynr
juampynr / CHANGELOG.md
Created March 27, 2018 09:35
Sample CHANGELOG

Change Log

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

[Unreleased] - yyyy-mm-dd

Here we write upgrading notes for brands. It's a team effort to make them as

@josantonius
josantonius / language-codes.json
Last active June 9, 2024 06:11
List of 217 language codes (ISO 639-1)
{
"aa": "Afar",
"ab": "Abkhazian",
"ae": "Avestan",
"af": "Afrikaans",
"ak": "Akan",
"am": "Amharic",
"an": "Aragonese",
"ar-ae": "Arabic (U.A.E.)",
"ar-bh": "Arabic (Bahrain)",
@matthewjberger
matthewjberger / instructions.md
Last active June 28, 2024 09:47
Install a nerd font on ubuntu

1.) Download a Nerd Font

2.) Unzip and copy to ~/.fonts

3.) Run the command fc-cache -fv to manually rebuild the font cache

@mlocati
mlocati / win10colors.cmd
Last active June 16, 2024 17:49
ANSI Colors in standard Windows 10 shell
@echo off
setlocal
call :setESC
cls
echo %ESC%[101;93m STYLES %ESC%[0m
echo ^<ESC^>[0m %ESC%[0mReset%ESC%[0m
echo ^<ESC^>[1m %ESC%[1mBold%ESC%[0m
echo ^<ESC^>[4m %ESC%[4mUnderline%ESC%[0m
/*
* Chemical equation balancer
*
* Copyright (c) 2014 Project Nayuki
* All rights reserved. Contact Nayuki for licensing.
* http://www.nayuki.io/page/chemical-equation-balancer-javascript
*/
"use strict";