Skip to content

Instantly share code, notes, and snippets.

View mabuelhagag's full-sized avatar

Mohamad A. mabuelhagag

View GitHub Profile
@mabuelhagag
mabuelhagag / Basic API call (TypeScript).EXCEL.yaml
Created April 29, 2022 17:58
Performs a basic Excel API call using TypeScript.
name: Basic API call (TypeScript)
description: Performs a basic Excel API call using TypeScript.
host: EXCEL
api_set: {}
script:
content: |
$("#run").click(() => tryCatch(run));
async function run() {
await Excel.run(async (context) => {
@mabuelhagag
mabuelhagag / gist:4ddcf42ecb773660360a3ada0837d8db
Created October 1, 2019 18:15 — forked from jeromedalbert/gist:7476f445b7538b488c6ec34b5c4f3da4
Installing the Docker Toolbox on OS X with brew
brew cask install docker-toolbox
docker-machine create --driver virtualbox default
docker-machine ls
eval $(docker-machine env default)
Put the exports in this eval in your .zshrc or .bashrc if you use bash
@mabuelhagag
mabuelhagag / pong
Created August 10, 2014 07:38
Simple Pong Game
#!/usr/bin/env python
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the