Skip to content

Instantly share code, notes, and snippets.

🙋‍♂
Have a nice day!

Dixing (Dex) Xu dexhunter

Block or report user

Report or block dexhunter

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@dexhunter
dexhunter / gist-reveal.it-slides.html
Created Nov 12, 2018 — forked from ryanj/gist-reveal.it-slides.html
Gist-powered Revealjs slideshow presentations http://gist-reveal.it
View gist-reveal.it-slides.html
<section data-background-transition='zoom' data-transition='concave' data-background='http://ryanjarvinen.com/presentations/shared/img/broadcast_reveal_dark.png' data-state='blackout'>
<h2>Gist-Powered</h2>
<h1>Reveal.js</h1>
<h2>Slideshow Presentations</h2>
<br/>
<h1 class='fragment grow'><a style='color:deepskyblue;' href='http://gist-reveal.it'>gist-reveal.it</a></h1>
</section>
<section data-background-transition='zoom' data-transition='linear' id='try-it'>
<h2>Try it out!</h2>
<p>Create your own deck by forking a copy of <a href='https://gist.github.com/ryanj/af84d40e58c5c2a908dd'>this github gist</a>: <br /><a href='https://gist.github.com/ryanj/af84d40e58c5c2a908dd'>https://gist.github.com/ryanj/af84d40e58c5c2a908dd</a></p>
@dexhunter
dexhunter / sdk-py-tutorial.md
Last active Sep 4, 2018
fabric python sdk tutorial
View sdk-py-tutorial.md

Tutorial of using Fabric SDK

Notice: The tutorial is still in-progress, feel free to ask question in the rktchat channel. Code can be found at e2e_test.py.

Pre-requisites

Install Fabric SDK

@dexhunter
dexhunter / introrx.md
Created Jun 17, 2018 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
View introrx.md
@dexhunter
dexhunter / git_revert.md
Created Mar 16, 2018 — forked from todgru/git_revert.md
how to use git revert --strategy resolve
View git_revert.md

Oh yes, this is nice:

git revert --strategy resolve <sha-ish>

Given a git log of A--B--C--D--E you can remove commit C using:

git revert --strategy resolve <sha-of-C> 

Which will produce:

@dexhunter
dexhunter / px-rem-cheat-sheet.css
Created Feb 15, 2018 — forked from glueckpress/px-rem-cheat-sheet.css
Cheat sheet for rem-calculations based upon 14px and 16px.
View px-rem-cheat-sheet.css
/*! = $rembase: 14px
--------------------------------------------------------------
* hmtl { font-size: 87.5%; }
* body { font-size: 14px; font-size: 1rem; line-height: 1; }
* 4px 0.28571429rem
* 8px 0.571428571rem
* 12px 0.857142857rem
* 13px 0.928571429rem
* 14px 1rem
* 16px 1.142857143rem
@dexhunter
dexhunter / optimal_strategy.py
Created Jan 30, 2018 — forked from lukovkin/optimal_strategy.py
Compute optimal trading strategy for the algorithm described in http://arxiv.org/abs/1508.00317
View optimal_strategy.py
import numpy as np
import pandas as pd
def compute_market_prices(prices):
"""Compute market prices according to the trading competition recipe.
Parameters
----------
prices : DataFrame
@dexhunter
dexhunter / breachcompilation.txt
Created Dec 31, 2017 — forked from scottlinux/breachcompilation.txt
1.4 billion password breach compilation wordlist
View breachcompilation.txt
wordlist created from original 41G stash via:
grep -rohP '(?<=:).*$' | uniq > breachcompilation.txt
Then, compressed with:
7z a breachcompilation.txt.7z breachcompilation.txt
Size:
@dexhunter
dexhunter / Top 50 Universities List.md
Created Dec 23, 2017 — forked from Tims101/Top 50 Universities List.md
Top 50 Computer Science Universities
View Top 50 Universities List.md

Universities

Massachusetts Institute of Technology (MIT)

###phd###

  • MIT Graduate Admissions link
  • PhD Program - MIT Sloan School of Management link
  • MIT - Massachusetts Institute of Technology link
  • to view contact information for all departments. - MIT link
View anaconda2.sh
# Go to home directory
cd ~
# You can change what anaconda version you want at
# https://repo.continuum.io/archive/
wget https://repo.continuum.io/archive/Anaconda2-4.2.0-Linux-x86_64.sh
bash Anaconda2-4.2.0-Linux-x86_64.sh -b -p ~/anaconda
rm Anaconda2-4.2.0-Linux-x86_64.sh
echo 'export PATH="~/anaconda/bin:$PATH"' >> ~/.bashrc
View keybase.md

Keybase proof

I hereby claim:

  • I am dexhunter on github.
  • I am dexhunter (https://keybase.io/dexhunter) on keybase.
  • I have a public key ASDjzcircrZv0Rtj5radv_7G2OI5x0fupSQ47uYjxp4yswo

To claim this, I am signing this object:

You can’t perform that action at this time.