Skip to content

Instantly share code, notes, and snippets.

View mewisme's full-sized avatar
🙏
Suffering

Nguyễn Mậu Minh mewisme

🙏
Suffering
View GitHub Profile
(function () {
let t = S.default.default_reaction.reaction_type.rType;
!e.isDefaultButton &&
void 0 !== e.currentIcon &&
e.currentIcon.constructor === Number &&
o.b.getIconMap()[e.currentIcon] &&
(t = e.currentIcon);
const a = o.b.getIconMap()[t];
let n;
if (e.isDefaultButton)
@mewisme
mewisme / tutorial.md
Last active June 6, 2025 10:52
Using serveo.net to create tunnel

Using serveo.net to create tunnel

Tutorial

Step 1 (Your server)

  • Using ssh-keygen to generate key pair to get fringerprint.
  • Note your key's fingerprint to use later. Fingerprint look like: SHA256:07jcXlJ4SkBnyTmaVnmTpXuBiRx2+Q2adxbttO9gt0M.
ssh-keygen
@mewisme
mewisme / animevietsub-hotkey.user.js
Last active May 16, 2025 18:59
A user script for AnimeVietsub that enhances video player control using keyboard shortcuts.
/* globals jQuery, $, waitForKeyElements */
/* eslint-disable userscripts/avoid-regexp-include */
// ==UserScript==
// @name AnimeVietsub Hotkey Enhancer
// @namespace http://mewis.me/userscript/animevietsub-hotkey
// @version 1.0.3
// @description A user script for AnimeVietsub that enhances video player control using keyboard shortcuts.
// @author MewTheDev
// @require https://code.jquery.com/jquery-3.7.1.min.js
// @include /^https:\/\/animevietsub\..*/
@mewisme
mewisme / index.html
Last active November 25, 2023 06:57
Thank you
<section class="login-main-wrapper">
<div class="main-container">
<div class="login-process">
<div class="login-main-container">
<div class="thankyou-wrapper">
<h1><img src="http://montco.happeningmag.com/wp-content/uploads/2014/11/thankyou.png" alt="thanks" /></h1>
<p>for contacting us, we will get in touch with you soon... </p>
<a href="index.html">Back to home</a>
<div class="clr"></div>
</div>
/*
* Copyright (c) 2006 Ho Ngoc Duc. All Rights Reserved.
* Astronomical algorithms from the book "Astronomical Algorithms" by Jean Meeus, 1998
*
* Permission to use, copy, modify, and redistribute this software and its
* documentation for personal, non-commercial use is hereby granted provided that
* this copyright notice and appropriate documentation appears in all copies.
*/
var PI = Math.PI;
@mewisme
mewisme / script.js
Created December 1, 2022 04:00
ThreeJS Fireworks
/**
* Global utils
*/
(function() {
var _w = window,
_s = window.screen,
_b = document.body,
_d = document.documentElement;
import { Dispatch, SetStateAction, useEffect, useState } from "react";
interface StickyState<S> {
key: string,
defaultValue: S | (() => S),
}
export function useStickyState<S>({ defaultValue, key }: StickyState<S>): [S, Dispatch<SetStateAction<S>>] {
const [value, setValue] = useState<S>(defaultValue);

Next.js + Tailwind CSS Example

This example shows how to use Tailwind CSS (v3.0) with Next.js. It follows the steps outlined in the official Tailwind docs.

How to use

Execute create-next-app with npm or Yarn to bootstrap the example:

npx create-next-app --example with-tailwindcss my-app
echo "# love-cube" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M MeewMeew
git remote add origin https://github.com/MeewMeew/love-cube.git
git push -u origin MeewMeew
@mewisme
mewisme / index.html
Created August 1, 2022 18:09
Web Text Editor using highlight.js
<h1 class="wte-title">Web Text Editor</h1>
<div class="wrapper">
<div class="edit-window">
<div class="window-border">
<span class="close"></span>
<span class="minimize"></span>
<span class="maximize"></span>
<select class="language">