Skip to content

Instantly share code, notes, and snippets.

View cpl's full-sized avatar
📐
We meet upon the level; We part upon the square;

Αlexandru-Paul  Copil cpl

📐
We meet upon the level; We part upon the square;
View GitHub Profile
@cpl
cpl / include.sh
Created October 7, 2018 17:51
shell functions
sizeof() {echo "int main() { printf(\"%d\", sizeof($1)); }" | gcc -xc -w - && ./a.out}
@cpl
cpl / ad.py
Last active March 3, 2018 16:19
ad [beta]
#!/usr/bin/python
"""Create UNIX environment alias shortcuts."""
import sys
import os
from aluminium.utils import Paths
from aluminium.utils import initialize_config
STORE_FILE = os.path.join(Paths.CONFIG_DIR.value, 'ad', 'ads')
@cpl
cpl / genesis_public_key
Created February 8, 2018 12:55
genesis_public_key
049dd3545be65523308a4f49b2992047c9028be92cb46e3ccf46b552bd44af811464f600aaa3aa39ff06d9c4415b4db6203cf2af6df3e6f59386a18767fba420fc
@cpl
cpl / README.md
Created September 11, 2017 04:54
A script that uninstalls any Python package given by `pip freeze` (or any other list)

How to use

  1. Download the pip_uninstall_all.py file
  2. Run pip freeze | python pip_uninstall_all.py

You can also use a text files with the packages you wish to uninstall and provide em using stdin

Keybase proof

I hereby claim:

  • I am cpl on github.
  • I am cpl_li (https://keybase.io/cpl_li) on keybase.
  • I have a public key ASC4TOCVpZRU6tjIbFqo0JCWu6E_2K58Wzx8sqgfBHRAzAo

To claim this, I am signing this object:

@cpl
cpl / LICENSE
Last active August 27, 2019 14:06
A Script for compiling ```.java``` files in the COMP16121 Course for UoM Students.
MIT License
Copyright (c) 2016 Alexandru-Paul Copil (thee-engineer)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions: