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
{ | |
".3g2": "video/3gpp2", | |
".3gp": "video/3gpp", | |
".7z": "application/x-7z-compressed", | |
".aac": "audio/aac", | |
".abw": "application/x-abiword", | |
".afm": "application/x-font-type1", | |
".ai": "application/postscript", | |
".aiff": "audio/x-aiff", | |
".arc": "application/x-freearc", |
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
+44 7394 154795 | |
+44 7521 216234 | |
+44 7521 234316 | |
+44 7521 243292 | |
+44 7542 340061 | |
+44 7542 344849 | |
+44 7543 537016 | |
+44 7568 457865 | |
+44 7593 263277 | |
+44 7725 416161 |
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
Country | Alpha-2 code | Alpha-3 code | Numeric code | Latitude (average) | Longitude (average) | |
---|---|---|---|---|---|---|
Afghanistan | AF | AFG | 4 | 33 | 65 | |
Albania | AL | ALB | 8 | 41 | 20 | |
Algeria | DZ | DZA | 12 | 28 | 3 | |
American Samoa | AS | ASM | 16 | -14.3333 | -170 | |
Andorra | AD | AND | 20 | 42.5 | 1.6 | |
Angola | AO | AGO | 24 | -12.5 | 18.5 | |
Anguilla | AI | AIA | 660 | 18.25 | -63.1667 | |
Antarctica | AQ | ATA | 10 | -90 | 0 | |
Antigua and Barbuda | AG | ATG | 28 | 17.05 | -61.8 |
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
# Author: Taiwo Kareem | |
# Attempt to parse dict by using string path | |
def str_data(paths, obj): | |
paths = paths.split(".") | |
for path in paths: | |
if path.isnumeric(): | |
path = int(path) | |
obj = obj[path] |
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
git config --global alias.aa "add --all" | |
git config --global alias.ai "add --interactive" | |
git config --global alias.b "branch --column" | |
git config --global alias.ba "branch -a" | |
git config --global alias.bd '!sh -c "git branch -D $@"' | |
git config --global alias.c "commit" | |
git config --global alias.ca "commit --amend" | |
git config --global alias.cf '!sh -c "git commit --fixup $@"' | |
git config --global alias.cm '!sh -c "git commit -m \"$@\""' | |
git config --global alias.co "checkout" |
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
import os | |
import shutil | |
import ctypes | |
from ctypes import wintypes | |
import sys | |
import ntpath | |
try: | |
import winreg | |
except ImportError: | |
import _winreg as winreg |
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
import inspect | |
import re | |
import importlib | |
def get_module_members(module, package=''): | |
imported = importlib.import_module(module) | |
module = str(module) | |
if package: |
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
############################## | |
# Author: Taiwo Kareem | |
# 09/09/2018 | |
# Script to convert between different audio file formats assuming ffmpeg exe is in Path environment variables | |
######################### | |
# HOW TO USE | |
# Create a new folder with the name of the old extension | |
# Place the new folder on your Desktop | |
# Change this next two lines for your preferred from and to format: |
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
$FONTS = 0x14; | |
$CurrentWorkingDirectory = Get-Location; | |
Write-Output "Getting fonts from path: '$CurrentWorkingDirectory'"; | |
$ObjShell = New-Object -ComObject Shell.Application; | |
$ObjFolder = $ObjShell.Namespace($FONTS); | |
$CopyOptions = 4 + 16; |
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
{ | |
// Place your snippets for xsl here. Each snippet is defined under a snippet name and has a prefix, body and | |
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the | |
// same ids are connected. | |
// Example: | |
"xsl:apply-imports": { | |
"prefix": "xsl:apply-imports", | |
"body": [ | |
"<xsl:apply-imports$1>" |
NewerOlder