Skip to content

Instantly share code, notes, and snippets.

View Liz4v's full-sized avatar

Liz Avila Liz4v

  • an insurance company
  • Toronto, Canada
  • 23:46 (UTC -04:00)
View GitHub Profile
@Liz4v
Liz4v / Internal References Test.rst
Last active August 6, 2016 04:17
Internal References Test

Let's make references to a Title, a normal target, and an inline target.

Title

This paragraph is the normal target.

This paragraph contains an inline target.

@Liz4v
Liz4v / guid22chars.py
Last active March 2, 2016 05:54
Guid/UUID on 22 characters using base57
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# This is free and unencumbered software released into the public domain.
#
# Anyone is free to copy, modify, publish, use, compile, sell, or
# distribute this software, either in source code form or as a compiled
# binary, for any purpose, commercial or non-commercial, and by any
# means.
#
@Liz4v
Liz4v / renmd5.py
Created September 20, 2015 03:49
Make sure files are named after their hashes.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright 2015, Ekevoo.com.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
# compliance with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
@Liz4v
Liz4v / fightluna.py
Last active September 20, 2015 03:52
Beat Luna in “Banned From Equestria Daily” (by pokehidden) on your Mac. :P
#!/usr/bin/python
# -*- coding: utf-8 -*-
from random import random
from sys import argv, exit
from time import sleep
from Quartz.CoreGraphics import CGEventCreateMouseEvent, kCGMouseButtonLeft, CGEventPost, kCGHIDEventTap, kCGEventMouseMoved, kCGEventLeftMouseDown, kCGEventLeftMouseUp, CGEventCreate, CGEventGetLocation
from Quartz import NSResponder
def fight_luna(attack):
try: