Skip to content

Instantly share code, notes, and snippets.

View SmithWinter's full-sized avatar
🏠
Working from home

Hồ Vũ Minh Đức SmithWinter

🏠
Working from home
  • HCMUTE
  • Vietnam
  • 22:27 (UTC +07:00)
View GitHub Profile
@nerdCopter
nerdCopter / gist:ca1c3d7ed5dae67029afbc4c80dc0cd0
Created March 10, 2021 13:57
Enhancer for Youtube (EfYT) custom script
// plugin (addon) for web browser youtube controls
// https://www.mrfdev.com/enhancer-for-youtube
function sleep(ms) {
console.log('Taking a break...');
var date = new Date();
var curDate = null;
do { curDate = new Date(); }
while(curDate-date < ms);
console.log(ms+'ms later');
@Log1x
Log1x / debloatNox.md
Last active June 26, 2024 06:51
Debloating & Optimizing Nox

Debloating Nox

Nox, despite being the most feature-filled Android emulator, has a lot of negativity surrounding it due to their antics when it comes to making income off of their program. It is known for running repeated advertisments in the background, calling home and passing along system information (outside of your Android instance) as well as a vast amount of potentially sensitive data in an encrypted payload back to their multitude of servers. With the following preventitive measures, we can stop a majority of this happening as well as greatly improve the overall performance.

  1. Download and Install a fresh copy of Nox. The latest version is fine (for now). If you already have it installed, that is fine too. No need to reinstall.

  2. Enable Root Mode on Nox by clicking the gear icon and then checking the Root Startup box.

  3. Install a new Launcher from the Play Store. ANYTHING but Nox's default. I suggest [Nova Launcher](https://play.google.com/s

@kottenator
kottenator / simple-pagination.js
Created July 13, 2015 20:44
Simple pagination algorithm
// Implementation in ES6
function pagination(c, m) {
var current = c,
last = m,
delta = 2,
left = current - delta,
right = current + delta + 1,
range = [],
rangeWithDots = [],
l;
@yang-wei
yang-wei / fullscreen.css
Last active June 6, 2024 06:56
Full size background image using CSS cover in mobile devices
html {
background: url(image url) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
height: 100%;
overflow: hidden;
}
@shimondoodkin
shimondoodkin / goals.md
Last active January 9, 2023 08:17
plain vanilla node.js intro tutorial to learn a lot in the shortest time.

The plan is to take a simple nodejs server. and add to it simple file serving capabilities. also to have a custom responce to a certien url. to be able to make a simple api in addition of serving files.

goals:

  • to learn read the documentation
  • to understand the whole concept
  • to use some api for hands on expirience
  • streach goal: learn basic npm usage.