I hereby claim:
- I am junyi on github.
- I am junyihjy (https://keybase.io/junyihjy) on keybase.
- I have a public key ASCUdC6axNcDEdk6XjjQwu-8Y7XqpoaRYNGdSnsFmS-LqQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| <!-- ## Introduction --> | |
| <!-- This is a sample template for a news article in AMP. It demonstrates the usage of AMP components which works well in news articles. Examples include social sharing, image galleries, personalized content, ads, and more. --> | |
| <!-- --> | |
| <!doctype html> | |
| <html ⚡> | |
| <head> | |
| <meta charset="utf-8"> | |
| <script async src="https://cdn.ampproject.org/v0.js"></script> | |
| <!-- ## Setup --> |
| from Queue import PriorityQueue | |
| from random import shuffle | |
| import math | |
| import curses | |
| import time | |
| class AnalyticBoard(object): | |
| def __init__(self, rows, cols, blocks): | |
| self.rows = rows | |
| self.cols = cols |
| require 'tire' | |
| # Tire.configure { logger STDERR, level: 'debug' } | |
| Tire.index('movie-titles') do | |
| delete | |
| create \ | |
| settings: { | |
| index: { | |
| analysis: { |
| from bitstring import BitArray | |
| # Initial Permutation (IP) | |
| IP = \ | |
| [58,50,42,34,26,18,10,2, | |
| 60,52,44,36,28,20,12,4, | |
| 62,54,46,38,30,22,14,6, | |
| 64,56,48,40,32,24,16,8, | |
| 57,49,41,33,25,17,9,1, | |
| 59,51,43,35,27,19,11,3, |