Skip to content

Instantly share code, notes, and snippets.

View mabdi's full-sized avatar
😷

Mehrdad Abdi mabdi

😷
  • Universitet Antwerpen
  • Belgium
View GitHub Profile
@mabdi
mabdi / uage.py
Created April 23, 2020 09:57
Python read command-line args
import sys
try:
project = sys.argv[1]
prefix = sys.argv[2]
except IndexError:
raise SystemExit(f"Usage: {sys.argv[0]} <project-name> <packages prefix>")
@mabdi
mabdi / runSmallAmp.py
Created April 22, 2020 13:01
I use this code to run smallamp inside a Ubuntu
import os
import glob
def getTodo():
f = open("todo.txt", "r")
todo = f.readlines()
f.close()
return todo
def checkDone(className):
@mabdi
mabdi / projectDetails.st
Last active April 22, 2020 12:57
Pharo Script: get number of classes, test classes, ...
| search packages classes testPackages tests focousedTests testMethodFocoused stat testrun |
search := 'project' asLowercase.
"replace with loading code"
Metacello new
baseline: '***';
repository: 'github://****';
load.