Skip to content

Instantly share code, notes, and snippets.

View emptymalei's full-sized avatar
📡
sending EM waves to Mars

LM emptymalei

📡
sending EM waves to Mars
View GitHub Profile
@emptymalei
emptymalei / mars-landing-sites.geojson
Created November 24, 2018 10:14
Mars Exploration Landing Sites
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@emptymalei
emptymalei / space-exploration-events.csv
Created November 18, 2018 10:13
Space Exploration Events
We can make this file beautiful and searchable if this error is corrected: It looks like row 9 should actually have 4 columns, instead of 2. in line 8.
Date,Event leading to space exploration,Country,Researcher(s)
1610,"First telescopic observation of the night sky: discovery of Jupiter's moons, lunar craters and the phases of Venus.",Republic of Venice,Galileo Galilei
1687,Publication of the Philosophiæ Naturalis Principia Mathematica,England,Sir Isaac Newton
1813,First exposition of the rocket equation based on Newton's third law of motion: Treatise on the Motion of Rockets,UK,William Moore
1840,First clear telescopic photograph of another world: the Moon.,United States,John William Draper
1865,From the Earth to the Moon published.,France,Jules Verne
1898,The War of the Worlds published. This inspired Robert Goddard to investigate rocketry.,UK,H. G. Wells
1903,"Inspired by the writings of Jules Verne, first serious work published that showed physical space exploration was theoretically possible: Исследование мировых пространств реактивными приборами (The Exploration of Cosmic Space by Means of Reaction Devices)",Russia,Konstantin Tsiolkovsky
1914,Goddard f
@emptymalei
emptymalei / Space Launches by Year.csv
Last active November 18, 2018 12:24
Space Launches by Year
launch year failure partial failure success planned
1957 1 1 1 0
1958 20 2 6 0
1959 11 2 10 0
1960 19 0 19 0
1961 20 2 28 0
1962 15 1 65 0
1963 17 3 50 0
1964 15 3 82 0
1965 15 1 108 0
@emptymalei
emptymalei / hist_cum_twin_grid.py
Created November 7, 2018 15:06 — forked from messefor/hist_cum_twin_grid.py
Example to show how to plot histogram with accumulate ratio. Plot multiple histograms using seaborn.FacetGrid().
"""Example to show how to plot histogram with accumulate ratio.
Plot multiple histogram using seaborn.FacetGrid()
"""
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
% matplotlib inline
@emptymalei
emptymalei / pypi-release-checklist.md
Created October 11, 2018 07:17 — forked from audreyfeldroy/pypi-release-checklist.md
My PyPI Release Checklist
  • Update HISTORY.rst
  • Commit the changes:
git add HISTORY.rst
git commit -m "Changelog for upcoming release 0.1.1."
  • Update version number (can also be minor or major)
bumpversion patch
### Keybase proof
I hereby claim:
* I am emptymalei on github.
* I am emptymalei (https://keybase.io/emptymalei) on keybase.
* I have a public key ASCGsW13t46xsAZlkeMvKi45Og-YVo-FcTM9keWnQQLmPAo
To claim this, I am signing this object:
{"_id":"lagou-shenzhen-datascientist","startUrl":["https://www.lagou.com/jobs/list_%E6%95%B0%E6%8D%AE%E7%A7%91%E5%AD%A6%E5%AE%B6?px=default&city=%E6%B7%B1%E5%9C%B3#filterBox"],"selectors":[{"id":"card","type":"SelectorElement","selector":"li.con_list_item","parentSelectors":["_root"],"multiple":true,"delay":""},{"id":"position","type":"SelectorText","selector":"h3","parentSelectors":["card"],"multiple":false,"regex":"","delay":0},{"id":"location","type":"SelectorText","selector":"span.add em","parentSelectors":["card"],"multiple":false,"regex":"","delay":0},{"id":"company","type":"SelectorText","selector":"div.company_name a","parentSelectors":["card"],"multiple":false,"regex":"","delay":0},{"id":"salary","type":"SelectorText","selector":"span.money","parentSelectors":["card"],"multiple":false,"regex":"","delay":0},{"id":"companystat","type":"SelectorText","selector":"div.industry","parentSelectors":["card"],"multiple":false,"regex":"","delay":0},{"id":"requirement","type":"SelectorText","selector":"div.p_bot
@emptymalei
emptymalei / sql-mongo_comparison.md
Created March 13, 2018 02:00 — forked from aponxi/sql-mongo_comparison.md
MongoDb Cheat Sheets

SQL to MongoDB Mapping Chart

SQL to MongoDB Mapping Chart

In addition to the charts that follow, you might want to consider the Frequently Asked Questions section for a selection of common questions about MongoDB.

Executables

The following table presents the MySQL/Oracle executables and the corresponding MongoDB executables.

@emptymalei
emptymalei / index.html
Created February 24, 2018 23:45
nodejs + mongodb: fight the promise
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>BiliSpider</title>
<link rel="stylesheet" href="assets/css/bulma.css">
<link rel="stylesheet" href="assets/css/style.css">
</head>
@emptymalei
emptymalei / Python3 Code
Last active January 20, 2018 03:25
Infinite Queen Problem
import numpy as np
import matplotlib.pyplot as plt
from matplotlib import rcParams
rcParams['figure.figsize'] = 10, 10
dim=100;
coor_list = [[0,0]]