const numberSortFn = (a, b) => (a < b) ? -1 : (a > b) ? 1 : 0;
const arrayName = [7,9,10,2,1];
console.log(arrayName.sort(numberSortFn));
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
mQINBGNCggcBEACxOsMkQHSjZLvwccbQMBUp46cz5uYQ/KO9xx2k0XNkgYSMHdB6 | |
Sz+HR3AFpLguNdyjACue//pQiO/rVi6wl3IXoR4rMdFDnNE5MSfeKTG02IxX1+UW | |
YPxLyi1KG3+qQ2AdJRt2MEERJL0LSUMhbLxuwcfXL+cr2GMHmwjhedi3nJSTdlxS | |
Hq/d8vpaEhKpHVDNy2I8ydIdH1SQbyr/QkFWkoeXMf3Ccdi4SJOpkoAmEnsMpADX | |
ZU8Jc+3nP3PbnipTIyKcV+oRN6yZ8pOPJGvuVW1rUXWsr3785FQVess5YKWc7GS2 | |
tAVl+8yGJ7lVH4stN5tsfYKiDS1eMh3JILYMdpCvZzxF297e1bXI0C5DM6/XAHaI | |
fvqL0K7Hs4MSpCAK/J50lJ9+mjo9IN7/lK1rSdIMKgm06W55zKvMHniihoN2USeP | |
SWUm2+HjRJSQ/dZZC3FylfmlD0txyBxhyG7d7eZPTPkFoUUCVVuvFaPu2IaI8g/r |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
############################ | |
# | |
# Backup Script | |
# | |
############################ | |
# Source | |
source_files="/dir" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
echo "" | |
echo "" | |
echo "(╯°□ °)╯ ┻━┻" | |
echo "" | |
echo "Port Scanning Is Not A Crime" | |
echo "" | |
echo "Enter Target IP:" | |
read TargetIP | |
nc -v -n -z -w1 $TargetIP 7-8080 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python3 | |
import json | |
import requests | |
url = 'https://reddit.com/r/wallpapers.json' | |
headers = {'user-agent': 'Mozilla/5.0 (X11; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0'} | |
r = requests.get(url, headers=headers) | |
for post in r.json()['data']['children']: | |
print('') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python3 | |
import json | |
import requests | |
subr = input('Enter the subreddit:') | |
url = 'https://reddit.com/r/{}.json'.format(subr) | |
headers = {'user-agent': 'Mozilla/5.0 (X11; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0'} | |
r = requests.get(url, headers=headers) | |
for post in r.json()['data']['children']: |
I hereby claim:
- I am r3m4g on github.
- I am z3k31024 (https://keybase.io/z3k31024) on keybase.
- I have a public key whose fingerprint is 87BC D47C 0291 DA57 1B84 8820 83F0 4140 AFB7 506E
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Life Online | |
* voteforme | |
James tweets about Barack Obama who belongs to the "Democratic Party". | |
FLAG=Democratic Party | |
* growingup | |
James tweets about what3words and on his twitter bio he wrote his Birthplace and city using what3words | |
"///push.asking.barn" which is in "Yorkshire" according to Google Maps. | |
FLAG=Yorkshire |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
background: linear-gradient(270deg, #833ab4, #fd1d1d, #fcb045); | |
background-size: 600% 600%; | |
-webkit-animation: Instagram 30s ease infinite; | |
-moz-animation: Instagram 30s ease infinite; | |
-o-animation: Instagram 30s ease infinite; | |
animation: Instagram 30s ease infinite; | |
@-webkit-keyframes Instagram { | |
0%{background-position:0% 50%} |
NewerOlder