Skip to content

Instantly share code, notes, and snippets.

View christiandeange's full-sized avatar
🇨🇦

Christian De Angelis christiandeange

🇨🇦
View GitHub Profile

Keybase proof

I hereby claim:

  • I am christiandeange on github.
  • I am 123 (https://keybase.io/123) on keybase.
  • I have a public key ASAMrUyb51U1hwhLJK90iaQ74o0zk85TJDQ_t7uC91EAAQo

To claim this, I am signing this object:

@christiandeange
christiandeange / fix_sources.py
Last active June 21, 2018 21:25
Fix source roots for kotlin modules after running `buck project`
#!/usr/bin/env python
#
# Script to fix module roots that are incorrectly labelled as source roots by
# `buck project`. It iterates over each .iml file in the project and modifies
# source folder entries to ensure that the module root itself is not
# registered as a source root. There are several issues this script resolves:
# - Module root is marked as source root
# - `src/test` is marked as test source root (instead of `src/test/java`)
# - Folders holding protobuf definitions are marked as excluded
#
@christiandeange
christiandeange / fullwidth.py
Last active December 3, 2016 02:02
Full-width character converter for OS X
#!/usr/bin/env python
import subprocess
import sys
DIFF = 0xFF01 - 0x0021
def transform(c):
i = ord(c)
if i >= 0x21 and i <= 0xFE:
return unichr(DIFF + i)