Skip to content

Instantly share code, notes, and snippets.

View Abdisalan's full-sized avatar
🎧
yo

Abdisalan Mohamud Abdisalan

🎧
yo
View GitHub Profile
@Abdisalan
Abdisalan / calculator.py
Created January 14, 2023 01:04
Primitive language that works as a calculator
"""
input: a variable name and a list of expressions
output: the value of the variable
eg:
T1
T3 = 5
T1 = T2 + T4
T2 = 9
@Abdisalan
Abdisalan / watch.py
Last active November 6, 2020 05:46
Get notified by ABC 2020 Election Results
import time
import os
import requests
from bs4 import BeautifulSoup
def get_results():
print("checking...")
page = requests.get(
"https://abcnews.go.com/Elections/2020-us-presidential-election-results-live-map/")
@Abdisalan
Abdisalan / vscode_settings.json
Created October 1, 2020 02:20
My default vscode settings
{
"workbench.colorTheme": "Gruvbox Material Dark",
"vim.insertModeKeyBindings": [
{
"before": ["j", "k"],
"after": ["<Esc>"]
}
],
"python.showStartPage": false,
"editor.fontSize": 14,
@Abdisalan
Abdisalan / XKCDPost.re
Created November 15, 2019 03:49
Reason React Component Example
type post = {
img: string,
title: string,
alt: string,
};
module Decode = {
let post = post =>
Json.Decode.{
img: field("img", string, post),

Keybase proof

I hereby claim:

  • I am abdisalan on github.
  • I am abdisalan (https://keybase.io/abdisalan) on keybase.
  • I have a public key ASB3kecOQHpOmOwzDSETb8odUOS2vpgxnL6IFkcfXqHjfgo

To claim this, I am signing this object:

@Abdisalan
Abdisalan / .bash_profile
Last active December 1, 2017 20:10 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@Abdisalan
Abdisalan / clean.js
Last active August 29, 2015 14:05
Google Script to Clean Inbox
// Archive older emals
function ArchiveEmailGroup() {
var Size = 100 // Process up to 100 emails at once
var emails = GmailApp.search('label:inbox is:read older_than:14d'); // Archives 2 weeks old emails
for (i = 0; i < emails.length; i+=Size) {
GmailApp.moveThreadsToArchive(emails.slice(i, i+Size));
}
}
//Mark old unread emails as read