Skip to content

Instantly share code, notes, and snippets.

@Moollihawkja
Moollihawkja / popup.html
Created July 14, 2015 04:54
Creating a pop up in pure javascript
<!DOCTYPE html>
<html>
<head>
<style>
.popup {
position: fixed;
top: 50vh;
left: 50%;
width:400px;
margin-left: -200px;
@Moollihawkja
Moollihawkja / ZipMeToSpark.py
Last active July 13, 2018 23:30
Creating egg files for spark dependencies
import os
import zipfile
EGG_FILE="~/dependencies.egg"
reference_path = "~/crawler_site_packages"
# Template to bootstrap so files to a py file
so_to_py_template = """
def __bootstrap__():
global __bootstrap__, __loader__, __file__