This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Your goal is to create an HTML5 website that is pixel-accurate as the screenshot @Space-Jam.png . You can use the image files in the `img` folder. To achieve pixel-level reproduction, first write auxiliary programs to measure the pixel locations of the objects on this page. Then use your measurements to create the page. Consider using feature detection/matching with per-object (x, y) offsets and a global scale factor shared by all objects as the free parameters. Consider using RANSAC for robust estimation. After obtaining an initial estimation, crop the image of each object and use local sparse optical flow for refinement. Use JPG format for visual inspection of intermediate results. Your webpage should be able to scale with the window size. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| import bs4 | |
| import argparse | |
| import re | |
| import os | |
| class VcxprojModifier: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| # $File: cart.py | |
| # $Date: Sun Aug 28 23:00:26 2016 +0800 | |
| # $Author: jiakai <[email protected]> | |
| import gym | |
| import numpy as np | |
| import operator |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| auto second_f(auto a, auto b) { | |
| return b; | |
| } | |
| int main() { | |
| auto second_l = [](auto a, auto b) {return b;}; | |
| std::cout << second_f(0u, -1) << std::endl; | |
| std::cout << second_l(0u, -1) << std::endl; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash -e | |
| # $File: setup-ipv6.sh | |
| # $Date: Fri Mar 07 13:00:05 2014 +0800 | |
| # $Author: jiakai <[email protected]> | |
| PREFIX='2402:f000:1:1501:200:5efe' | |
| ADDR_LOCAL=$(ip r g 8.8.8.8 | grep src | awk '{print $7}') | |
| ADDR_OUT=$(curl ifconfig.me) | |
| ADDR_REMOTE='166.111.21.1' |