Skip to content

Instantly share code, notes, and snippets.

@ekevoo
ekevoo / Internal References Test.rst
Last active Aug 6, 2016
Internal References Test
View Internal References Test.rst

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.

@ekevoo
ekevoo / guid22chars.py
Last active Mar 2, 2016
Guid/UUID on 22 characters using base57
View guid22chars.py
#!/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.
#
@ekevoo
ekevoo / renmd5.py
Created Sep 20, 2015
Make sure files are named after their hashes.
View renmd5.py
#!/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
#
@ekevoo
ekevoo / fightluna.py
Last active Sep 20, 2015
Beat Luna in “Banned From Equestria Daily” (by pokehidden) on your Mac. :P
View fightluna.py
#!/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: