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 / 0_reuse_code.js
Created February 8, 2014 04:09
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console

What

Roll your own iPython Notebook server with Amazon Web Services (EC2) using their Free Tier.

What are we using? What do you need?

  • An active AWS account. First time sign-ups are eligible for the free tier for a year
  • One Micro Tier EC2 Instance
  • With AWS we will use the stock Ubuntu Server AMI and customize it.
  • Anaconda for Python.
  • Coffee/Beer/Time
<!-- 随机名人名言代码开始 -->
<h3 style="margin-top:10px;">
<button id="click-me">Click Me!</button>
<left id="people-quote">
<!-- 可以把这里的 jquery 依赖放在本地 -->
<script src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script type="text/javascript">
var butong_net = new Array(
'物理教授走过校园,遇到数学教授。物理教授在进行一项实验,他总结出一个经验方程,似乎与实验数据吻合,他请数学教授看一看这个方程。<br>一周后他们碰头,数学教授说这个方程不成立。可那时物理教授已经用他的方程预言出进一步的实验结果,而且效果颇佳,所以他请数学教授再审查一下这个方程。 <br> 又是一周过去,他们再次碰头。数学教授告诉物理教授说这个方程的确成立,但仅仅对于正实数的简单情形成立。',
@emptymalei
emptymalei / heatmap_example.py
Created December 10, 2015 05:11 — forked from teechap/heatmap_example.py
How to make a heatmap from data stored in Python lists
'''
Most heatmap tutorials I found online use pyplot.pcolormesh with random sets of
data from Numpy; I just needed to plot x, y, z values stored in lists--without
all the Numpy mumbo jumbo. Here I have code to plot intensity on a 2D array, and
I only use Numpy where I need to (pcolormesh expects Numpy arrays as inputs).
'''
import matplotlib.pyplot as plt
import numpy as np
#here's our data to plot, all normal Python lists
@emptymalei
emptymalei / GAME_MASTER_v0_1.protobuf
Created July 18, 2016 19:56 — forked from anonymous/GAME_MASTER_v0_1.protobuf
Pokemon Go decoded GAME_MASTER protobuf file v0.1
Result: 1
Items {
TemplateId: "BADGE_BATTLE_ATTACK_WON"
Badge {
BadgeType: BADGE_BATTLE_ATTACK_WON
BadgeRanks: 4
Targets: "\nd\350\007"
}
}
Items {
编号 代码 命令分解 命令
//switchtabpos switch tab pos 更改底部功能按钮位置的命令
//multiwebview multi web view 微信多窗口显示命令
//opentrace open trace 打开跟踪
//getfpkey get fp key 得到手机基本信息
//pickpoi pick poi 定位当前位置
//fullexit full exit 完全退出微信
//testwaitsms test wait sms 测试验证手机号码
//sightinfo sight info 打开查看小视频参数
//testsetpageowner test set page owner 检测你是否拥有页面的所有权
@emptymalei
emptymalei / default.custom.yaml
Created July 1, 2017 17:12 — forked from lotem/default.custom.yaml
在Rime輸入方案選單中添加五筆、雙拼、粵拼、注音,保留你需要的
# default.custom.yaml
# save it to:
# ~/.config/ibus/rime (linux)
# ~/Library/Rime (macos)
# %APPDATA%\Rime (windows)
patch:
schema_list:
- schema: luna_pinyin # 朙月拼音
- schema: luna_pinyin_simp # 朙月拼音 简化字模式