Skip to content

Instantly share code, notes, and snippets.

View ramidem's full-sized avatar
:octocat:
Training to be a ninja

Med Aduh ramidem

:octocat:
Training to be a ninja
View GitHub Profile
@ramidem
ramidem / ap-cargo-tracker.py
Last active March 22, 2023 01:52
A script that periodically fetches the delivery status of an AP Cargo package using its airwaybill number and displays it as a notification (MacOS ONLY).
#!/usr/bin/env python3
"""
AP Cargo Tracker
A script that periodically fetches the delivery status of an AP Cargo package using its airwaybill number and displays it as a notification (MacOS ONLY).
Make the file executable
chmod +x ap_cargo.py
@ramidem
ramidem / coc-settings.json
Last active October 14, 2020 07:02
coc-settings.json
{
"coc.preferences.formatOnSaveFiletypes": [
"css",
"html",
"json",
"python",
"graphql",
"markdown",
"javascript",
"typescript",
@ramidem
ramidem / vscode-settings.json
Last active March 23, 2020 09:41
VS Code Settings JSON file
{
"workbench.sideBar.location": "right",
"workbench.startupEditor": "newUntitledFile",
"workbench.colorTheme": "Atom One Dark",
"editor.fontFamily": "'Fira Code', monospace",
"editor.fontWeight": "600",
"editor.fontLigatures": true,
"editor.minimap.enabled": false,
"[python]": {
"editor.rulers": [
@ramidem
ramidem / wsl2-profiles.json
Last active November 16, 2020 06:37
WSL 2 Profiles JSON file
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{07b52e3e-de2c-5db4-bd2d-ba144ed6c273}",
"copyOnSelect": false,
"copyFormatting": false,
"showTabsInTitlebar": false,
"alwaysShowTabs": false,
"largePasteWarning": false,
"profiles": {
@ramidem
ramidem / supermeatboy.zsh-theme
Last active March 26, 2020 11:58
A farting Dinosaur.
# SuperMeatBoy
#
# @author Med Aduh <twitter.com/ramidem>
local ret_status="%(?:🦖💨 :🦖💩 )"
PROMPT='${ret_status}%{$fg_bold[green]%}%p %{$fg_bold[blue]%}%c $(git_prompt_info)% %{$reset_color%}'
ZSH_THEME_GIT_PROMPT_CLEAN=") %{$fg_bold[green]%}✔ "
ZSH_THEME_GIT_PROMPT_DIRTY=") %{$fg_bold[yellow]%}✗ "
@ramidem
ramidem / VS Code User Settings
Last active January 31, 2019 16:31
My VS Code user settings in JSON
{
"workbench.sideBar.location": "left",
"workbench.startupEditor": "newUntitledFile",
"workbench.colorTheme": "Dracula Soft",
"editor.fontFamily": "'Fira Code', 'monospace', monospace, 'Droid Sans Fallback'",
"editor.fontSize": 12,
"editor.fontLigatures": true,
"editor.lineNumbers": "relative",
"editor.minimap.enabled": false,
"[python]": {
@ramidem
ramidem / containFloat.css
Created March 29, 2017 14:56
Containing Floats
.group:before,
.group:after {
content: "";
display: table;
}
.group:after {
clear: both;
}
.group {
clear: both;
@ramidem
ramidem / Looping a triangle
Created February 18, 2017 15:19
My solution for the Eloquent JavaScript's Chapter 02 exercises.
// Looping a Triangle
let count = 1;
let hash = "#";
while (count <= 7) {
document.write(hash + "<br>");
count += 1;
hash += "#";
}
@ramidem
ramidem / Atom Theme
Created February 16, 2017 09:16
I love looking at @wesbos' Theme for sublime text. So, I made my own.
// This theme is based on https://medium.com/@docodemore/an-alternative-to-operator-mono-font-6e5d040e1c7e#.nk01drf9k
// I am using Cobalt2 for the Syntax Theme and One Dark for the UI Theme.
atom-text-editor {
font-family: 'Fira Code';
font-style: normal;
text-rendering: optimizeLegibility;
}
atom-text-editor::shadow {
@ramidem
ramidem / base.html
Created February 12, 2017 03:15
HTML boilerplate
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Base</title>
<link rel="Shortcut Icon" href="/favicon.ico" type="image/x-icon" />
<meta name="author" content="Med Aduh" />
<meta name="description" content="Learning to Write, Code and Design.">
<meta http-equiv="pragma" content="no-cache" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">