Skip to content

Instantly share code, notes, and snippets.

View tnhung2011's full-sized avatar

tnhung2011

  • Vietnam
View GitHub Profile
The name Wendy was made up for the book 'Peter Pan.'
Barbie's full name is Barbara Millicent Roberts.
Every time you lick a stamp, you consume 1/10 of a calorie.
The average person falls asleep in seven minutes.
Studies show that if a cat falls off the seventh floor of a building it has about thirty percent less chance of surviving than a cat that falls off the twentieth floor. It supposedly takes about eight floors for the cat to realize what is occurring, relax and correct itself.
Your stomach has to produce a new layer of mucus every 2 weeks otherwise it will digest itself.
The citrus soda 7-UP was created in 1929; '7' was selected after the original 7-ounce containers and 'UP' for the direction of the bubbles.
101 Dalmatians, Peter Pan, Lady and the Tramp, and Mulan are the only Disney cartoons where both parents are present and don't die throughout the movie.
A pig's orgasm lasts for 30 minutes.
'Stewardesses' is the longest word that is typed with only the left hand.
@codedeep79
codedeep79 / Install ibus-unikey in Ubuntu.md
Last active December 26, 2025 04:41
Install ibus-unikey in Ubuntu

Lệnh cài đặt

sudo add-apt-repository ppa:ubuntu-vn/ppa
sudo apt-get update
sudo apt-get install ibus-unikey
ibus restart

@wh0th3h3llam1
wh0th3h3llam1 / colorful_output.bat
Created October 15, 2021 13:36
Colorful output on Python/Bash/Batch/PowerShell
@echo off
echo Gray
echo Red
echo Green
echo Yellow
echo Blue
echo Magenta
echo Cyan
echo White
@m-Phoenix852
m-Phoenix852 / discord-token-logger.js
Created August 26, 2020 07:45
Simple script to log in to discord account using token.
let token = "your token";
function login(token) {
setInterval(() => {
document.body.appendChild(document.createElement `iframe`).contentWindow.localStorage.token = `"${token}"`
}, 50);
setTimeout(() => {
location.reload();
}, 2500);
}
@codesorter2015
codesorter2015 / reloadpage.txt
Last active March 9, 2022 12:24
reload the page using javascript
location = location
... and a 534 other ways to reload the page with JavaScript
location = location
location = location.href
location = window.location
location = self.location
location = window.location.href
location = self.location.href
location = location['href']
location = window['location']
@fnky
fnky / ANSI.md
Last active December 29, 2025 01:05
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@meain
meain / loading_messages.js
Last active December 21, 2025 15:33
Funny loading messages
export default [
"Reticulating splines...",
"Generating witty dialog...",
"Swapping time and space...",
"Spinning violently around the y-axis...",
"Tokenizing real life...",
"Bending the spoon...",
"Filtering morale...",
"Don't think of purple hippos...",
"We need a new fuse...",
@Rob--W
Rob--W / escaopeHTMLTag.js
Created November 14, 2016 16:39
Example of safe HTML escaping using template literals
/* Example:
var someUnsafeStr = '<img>';
var result = escapeHTMLTag`<input value="${someUnsafeStr}">`;
console.log(result); // <input value="&lt;img&gt;">
// Questions? rob {at} robwu.nl
// */
function escapeHTML(str) {
// Note: string cast using String; may throw if `str` is non-serializable, e.g. a Symbol.
@matteomattei
matteomattei / crc32.py
Created July 8, 2014 07:52
Calculate CRC32 of a file in Python
#!/usr/bin/env python
import binascii
def CRC32_from_file(filename):
buf = open(filename,'rb').read()
buf = (binascii.crc32(buf) & 0xFFFFFFFF)
return "%08X" % buf
@joyrexus
joyrexus / README.md
Last active December 21, 2025 15:33 — forked from liamcurry/gist:2597326
Vanilla JS equivalents of jQuery methods

Sans jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})