Skip to content

Instantly share code, notes, and snippets.

View SuCicada's full-sized avatar
๐Ÿ˜…
่ •ๅ‹•

SuCicada๏ผˆใ‚นใ‚ทใ‚ซใƒ€๏ผ‰ SuCicada

๐Ÿ˜…
่ •ๅ‹•
View GitHub Profile
// code updates are now there:
// https://github.com/Bleuje/processing-animations-code/blob/main/code/fractalsliding2d/fractalsliding2d.pde
// Processing code by Etienne JACOB
// for collab with Yann Le Gall (https://demozoo.org/graphics/322553/)
// motion blur template by beesandbombs
// See the license information at the end of this file.
// View the rendered result at: https://bleuje.com/gifanimationsite/single/2dfractalslidingsquares/
// using double instead of float makes the code a bit more complicated
@zaptrem
zaptrem / gist:717b168583a323ef8215ada1fb057d1d
Created December 2, 2022 05:34
ChatGPT Improves Itself
javascript:(function() {
var timeout = null;
var delay = 1000;
var script = document.createElement('script');
script.src = 'https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js';
document.head.appendChild(script);
script.addEventListener('load', function() {
var mathJaxConfig = {
@fuweichin
fuweichin / index.html
Last active November 28, 2025 08:04
User Agent Client Hints API (navigator.userAgentData) polyfill and ponyfill
<h3>native navigator.userAgentData</h3>
<pre><code id="naviveUserAgentData">...</code></pre>
<h3>polyfilled navigator.userAgentData</h3>
<pre><code id="customUserAgentData">...</code></pre>
<script type="module">
import {ponyfill, polyfill} from './user-agent-data.js';
const $ = (s, c = document) => c.querySelector(s);
@uenoB
uenoB / README.en.md
Last active November 14, 2023 17:20
How to set up QEMU working properly on M1 Mac

English | Japanese

How to set up QEMU working properly on M1 Mac

Last-Update: June 8, 2021.

This document describes how to run Windows 10 for ARM and Linux operating systems properly on Apple Silicon (M1) Mac by using open source software only. The combination of [QEMU] and [Alexander Graf's Hypervisor.framework support patch][Alexander Graf's patch] allows us to run Windows 10 and Linux for 64-bit ARM processors on M1 Mac efficiently. Several webpages such as [How to run Windows 10 on ARM or Ubuntu for ARM64 in QEMU on Apple Silicon Mac] and [QEMU on M1 Mac] describe how to set up a QEMU environment with Alex's patch. While they are helpful for the first trial, additional effort is needed to realize a proper QEMU environment that can be used for our daily business.

@woblerr
woblerr / README.md
Created December 12, 2019 14:01
Docker containers logs clearing script

Docker containers logs clearing script

chmod +x ./clear_docker_container_logs.sh

Usage

Usage: ../clear_docker_container_logs.sh [-c ""]
@SystemFw
SystemFw / Conversions.scala
Last active April 23, 2021 07:53
Typed schema conversion with shapeless
object Conversions {
import cats._, implicits._, data.ValidatedNel
import mouse._, string._, option._
import shapeless._, labelled._
private type Result[A] = ValidatedNel[ParseFailure, A]
case class ParseFailure(error: String)
trait Convert[V] {
@nakaly
nakaly / n1.csv
Created July 30, 2016 07:51
JLPT N1 Words
1 ใ‚ใใฉใ„
1 ใ‚ใ–็ฌ‘ใ†
1 ใ‚ใฃใ•ใ‚Š
1 ใ‚ในใ“ใน
1 ใ‚ใ‚„ใตใ‚„
1 ใ‚ใ‚‰
1 ใ‚ใ‚‰ใ‚Œ
1 ใ„ใ„ๅŠ ๆธ›
1 ใ„ใ
1 ใ„ใ–
@ctechols
ctechols / compinit.zsh
Last active March 13, 2026 15:17
Speed up zsh compinit by only checking cache once a day.
# On slow systems, checking the cached .zcompdump file to see if it must be
# regenerated adds a noticable delay to zsh startup. This little hack restricts
# it to once a day. It should be pasted into your own completion file.
#
# The globbing is a little complicated here:
# - '#q' is an explicit glob qualifier that makes globbing work within zsh's [[ ]] construct.
# - 'N' makes the glob pattern evaluate to nothing when it doesn't match (rather than throw a globbing error)
# - '.' matches "regular files"
# - 'mh+24' matches files (or directories or whatever) that are older than 24 hours.
autoload -Uz compinit
@willurd
willurd / web-servers.md
Last active March 13, 2026 17:53
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@czl026
czl026 / setip.bat
Created October 18, 2012 14:39 — forked from ninehills/setip.bat
Windows IP ๅฟซ้€Ÿๅˆ‡ๆข่„šๆœฌ
@echo off&color 1E&title IPๅœฐๅ€ๅฟซ้€Ÿๅˆ‡ๆขๅ™จ
echo โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
echo ๏ฝœ ๏ฝœ
echo ๏ฝœ ๅˆ‡ๆข็ฝ‘็ปœ็Žฏๅขƒ๏ผŒ่ฏท่พ“ๅ…ฅๅฝ“ๅ‰ๆ‰€ๅœจไฝ็ฝฎ โ”‚
echo ๏ฝœ ๏ฝœ
echo โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
:choice
set choice=
set /p choice=ใ€ๅฎž้ชŒๅฎคๆ— ็บฟใ€‘่ฏท้€‰ๆ‹ฉ1๏ผŒใ€ๅฎž้ชŒๅฎคๆœ‰็บฟใ€‘่ฏท้€‰ๆ‹ฉ2๏ผŒใ€ๅฎฟ่ˆๆ— ็บฟใ€‘่ฏท้€‰ๆ‹ฉ3๏ผŒใ€ๅฎฟ่ˆๆœ‰็บฟใ€‘่ฏท้€‰ๆ‹ฉ4:[1,2,3,4]?