Skip to content

Instantly share code, notes, and snippets.

@MiracleXYZ
MiracleXYZ / VTuber-Hiragana-Keyboard.kbd.json
Last active October 7, 2019 12:26
VTuber-Hiragana-Keyboard
[
{
"name": "VTuber-Hiragana-Keyboard",
"pcb": false
},
[
"~\n`\n\nろ\n\n\n\n\n\n<img src=\"https://yt3.ggpht.com/a/AGF-l79gkgR05I6pSCM2VQUZfalk4YV0WemNwfXGzg=s176-c-k-c0x00ffffff-no-rj-mo\" width=36 height=36>",
"!\n1\n\nぬ\n\n\n\n\n\n<img src=\"https://yt3.ggpht.com/a/AGF-l7-fE2Mhle5lvjeQCxr8ZEtufNkDuCRAg5LSkA=s176-c-k-c0x00ffffff-no-rj-mo\" width=36 height=36>",
"@\n2\n\nふ\n\n\n\n\n\n<img src=\"https://yt3.ggpht.com/a/AGF-l7-oeSvjxgdwMoDyT1LMH8nyqkWJCZH8MAOjzg=s176-c-k-c0x00ffffff-no-rj-mo\" width=36 height=36>",
"#\n3\nぁ\nあ\n\n\n\n\n\n<img src=\"https://yt3.ggpht.com/a/AGF-l7_OXxl-HOWIQaxDv8KNbYNQOWl6lu0hBflqnw=s176-c-k-c0x00ffffff-no-rj-mo\" width=36 height=36>",
@simon300000
simon300000 / factorial.js
Last active September 18, 2019 22:40
wow Y combinator.js?
// Simple
const simpleRecursive = () => simpleRecursive()
simpleRecursive()
// "simpleRecursive" is undefined! (static check)
const notSoSimpleRecursive = me => me(me)
notSoSimpleRecursive(notSoSimpleRecursive)
// Don't run forever!
const factorial = (me, n) => n < 1 ? 1 : n * me(me, n - 1)
@simon300000
simon300000 / worker.js
Created September 14, 2019 00:41
make function a WebWorker
// 刚刚说的感觉很有意思
// 我做了个Demo2333
// 不过只能弄很简单的Function( 可见Functional是未来( 误)
const testFunction = num => num * 2
const slowFunction = time => {
const now = Date.now()
let round = 0
while (now + time > Date.now()) {
round++
@TennousuAthena
TennousuAthena / qwq.gif
Last active May 4, 2020 20:25
你看我辣么可爱,给个Star好不好?
qwq.gif
@3TUSK
3TUSK / A_letter_to_modders.md
Last active April 14, 2017 07:49
This is a letter to all Minecraft modders. TLDR: blocking i/o vs. nonblocking i/o in minecraft mod on main thread. Even though we suggest things, they are still our suggestions. We are here solely for discussing this topic, including our suggestions. If you want to express your support, don't click star, reply or simply give an emoji. Stargazer …

A LETTER TO ANY MODDERS WHO SEE THIS

First of all, happy new year!

This letter has sole purpose on request of threaded version checker, or more generally speaking, threaded I/O for any operations that involved with internet. If you are a player, you may ignore this letter as it would not matter much for you.

Well, let’s talk about the version check today.
Under most circumstances, one is always expected to have mods of latest version running in his/her modpack, as it will contains less bugs/malfunctions/any of unexpected behaviors. To ensure that, modders will usually apply version check mechanism onto their mod. This is with good motive isn’t it?

@myusuf3
myusuf3 / delete_git_submodule.md
Created November 3, 2014 17:36
How effectively delete a git submodule.

To remove a submodule you need to:

  • Delete the relevant section from the .gitmodules file.
  • Stage the .gitmodules changes git add .gitmodules
  • Delete the relevant section from .git/config.
  • Run git rm --cached path_to_submodule (no trailing slash).
  • Run rm -rf .git/modules/path_to_submodule (no trailing slash).
  • Commit git commit -m "Removed submodule "
  • Delete the now untracked submodule files rm -rf path_to_submodule
@hofmannsven
hofmannsven / README.md
Last active May 3, 2024 15:30
Git CLI Cheatsheet
@jed
jed / LICENSE.txt
Created May 20, 2011 13:27 — forked from 140bytes/LICENSE.txt
generate random UUIDs
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Jed Schmidt <http://jed.is>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE