Skip to content

Instantly share code, notes, and snippets.

View moh6mmad's full-sized avatar
🎯
Focusing

Mohammad Hadizadeh moh6mmad

🎯
Focusing
View GitHub Profile
@moh6mmad
moh6mmad / WSL Cannot connect to internet
Created September 7, 2022 05:52
Commands to reset winsock
wsl --shutdown
netsh winsock reset
netsh int ip reset all
netsh winhttp reset proxy
ipconfig /flushdns
@moh6mmad
moh6mmad / index.php
Created April 13, 2022 08:39
Solution to return filenames
<?php
/**
* Solution to return image names
*
* @param string $S
*
* @return string
*/
function solution($S)
{
@moh6mmad
moh6mmad / countries_code.json
Last active January 17, 2020 08:25
List of all countries with their ISO Alpha-2 codes
[
{"name": "Afghanistan", "code": "AF"},
{"name": "Åland Islands", "code": "AX"},
{"name": "Albania", "code": "AL"},
{"name": "Algeria", "code": "DZ"},
{"name": "American Samoa", "code": "AS"},
{"name": "AndorrA", "code": "AD"},
{"name": "Angola", "code": "AO"},
{"name": "Anguilla", "code": "AI"},
{"name": "Antarctica", "code": "AQ"},