Skip to content

Instantly share code, notes, and snippets.

View shontzu-deriv's full-sized avatar
❤️‍🔥
lesgo!

shontzu shontzu-deriv

❤️‍🔥
lesgo!
View GitHub Profile
@danrovito
danrovito / countrydropdown.html
Last active July 3, 2024 12:57
HTML Country Select Dropdown List
<label for="country">Country</label><span style="color: red !important; display: inline; float: none;">*</span>
<select id="country" name="country" class="form-control">
<option value="Afghanistan">Afghanistan</option>
<option value="Åland Islands">Åland Islands</option>
<option value="Albania">Albania</option>
<option value="Algeria">Algeria</option>
<option value="American Samoa">American Samoa</option>
<option value="Andorra">Andorra</option>
<option value="Angola">Angola</option>
@BboyAkers
BboyAkers / object-is.js
Created January 5, 2020 15:09
Exercise For Creating a Type Check Polyfill
// TODO: define polyfill for `Object.is(..)`
if(!Object.is || true) {
Object.is = function ObjectIs(x,y) {
let xNegZero = isItNegZero(x);
let yNegZero = isItNegZero(y);
if(xNegZero || yNegZero) {
return xNegZero && yNegZero;
}
else if(isItNaN(x) && isItNaN(y)){
@megaacheyounes
megaacheyounes / huawei_devices_detection_demo.html
Last active April 18, 2024 09:53
Simple example showing the detection of Huawei devices using the UserAgent
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Huawei device detection using user agent</title>
</head>
<body>
<h1 id="h1">Loading...</h1>
@Preethi-Dev
Preethi-Dev / git__stash__commands.md
Created March 31, 2022 15:19
Cheat sheet for git stash commands

Stash the changes

  1. git stash
  2. git stash save

Stash the untracked files

  1. git stash --include-untracked
  2. git stash -u

List the stashes

  1. git stash list

show the latest stash

  1. git stash show