Skip to content

Instantly share code, notes, and snippets.

Shuangnan freelsn

  • The Hong Kong Polytechnic University
View GitHub Profile
View github-markdown.css
@font-face {
font-family: octicons-link;
src: url(data:font/woff;charset=utf-8;base64,d09GRgABAAAAAAZwABAAAAAACFQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEU0lHAAAGaAAAAAgAAAAIAAAAAUdTVUIAAAZcAAAACgAAAAoAAQAAT1MvMgAAAyQAAABJAAAAYFYEU3RjbWFwAAADcAAAAEUAAACAAJThvmN2dCAAAATkAAAABAAAAAQAAAAAZnBnbQAAA7gAAACyAAABCUM+8IhnYXNwAAAGTAAAABAAAAAQABoAI2dseWYAAAFsAAABPAAAAZwcEq9taGVhZAAAAsgAAAA0AAAANgh4a91oaGVhAAADCAAAABoAAAAkCA8DRGhtdHgAAAL8AAAADAAAAAwGAACfbG9jYQAAAsAAAAAIAAAACABiATBtYXhwAAACqAAAABgAAAAgAA8ASm5hbWUAAAToAAABQgAAAlXu73sOcG9zdAAABiwAAAAeAAAAME3QpOBwcmVwAAAEbAAAAHYAAAB/aFGpk3jaTY6xa8JAGMW/O62BDi0tJLYQincXEypYIiGJjSgHniQ6umTsUEyLm5BV6NDBP8Tpts6F0v+k/0an2i+itHDw3v2+9+DBKTzsJNnWJNTgHEy4BgG3EMI9DCEDOGEXzDADU5hBKMIgNPZqoD3SilVaXZCER3/I7AtxEJLtzzuZfI+VVkprxTlXShWKb3TBecG11rwoNlmmn1P2WYcJczl32etSpKnziC7lQyWe1smVPy/Lt7Kc+0vWY/gAgIIEqAN9we0pwKXreiMasxvabDQMM4riO+qxM2ogwDGOZTXxwxDiycQIcoYFBLj5K3EIaSctAq2kTYiw+ymhce7vwM9jSqO8JyVd5RH9gyTt2+J/yUmYlIR0s04n6+7Vm1ozezUeLEaUjhaDSuXHwVRgvLJn1tQ7xiuVv/ocTRF42mNgZGBgYGbwZOBiAAFGJBIMAA
@freelsn
freelsn / report-virtex4
Created May 24, 2018
The reports for Virtex-4 FPGA after executing from HLS to Place & Route.
View report-virtex4
{
'CSV': {
'AREA': '2269',
'state': '12',
'FU': '0',
'REG': '750',
'MUX': '1439',
'DEC': '12',
'pin_pair': '6262',
'net': '1850',
@freelsn
freelsn / report-virtex7
Created May 24, 2018
The reports for Virtex-7 FPGA after executing from HLS to Place & Route.
View report-virtex7
{
'CSV': {
'AREA': '1671',
'state': '11',
'FU': '0',
'REG': '720',
'MUX': '840',
'DEC': '4',
'pin_pair': '6097',
'net': '1791',
@freelsn
freelsn / ports
Last active May 24, 2018
The information of IO ports by CWB.
View ports
{
'io_info': {
'in': {
'indata_a00': {
'Type': 'in',
'BitWidth': '8',
'order': '17'
},
'indata_a01': {
'Type': 'in',
@freelsn
freelsn / Preferences.sublime-settings
Last active May 14, 2018
Sublime Text Version 3.0 Build 3170 Settings
View Preferences.sublime-settings
{
"caret_style": "solid",
"color_scheme": "Monokai.sublime-color-scheme",
"draw_white_space": "all",
"ensure_newline_at_eof_on_save": true,
"file_exclude_patterns":
[
"*.pyc",
"*.pyo",
"*.exe",
View homebred-commands.md
brew install [app_name]
brew search [app_name]
brew outdated
brew upgrade  # update formula
brew upgrade [app_name]
brew update  # update brew and cask
brew cleanup
brew cleanup -n  # check only
brew cleanup [app_name]
@freelsn
freelsn / fancy.bashrc
Last active Feb 17, 2018
Fancy and functional ".bashrc" configuration
View fancy.bashrc
#!/bin/bash
iatest=$(expr index "$-" i)
#######################################################
# SOURCED ALIAS'S AND SCRIPTS
#######################################################
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
@freelsn
freelsn / Preferences.sublime-settings
Created Jan 26, 2018
Sublime Text 3 settings WindowsOS
View Preferences.sublime-settings
{
"font_size": 12,
"rulers": [80],
"tab_size": 4,
"translate_tabs_to_spaces": true,
"trim_automatic_white_space": true,
"word_wrap": true,
"trim_trailing_white_space_on_save": true,
"ensure_newline_at_eof_on_save": true,
"default_line_ending": "unix",
@freelsn
freelsn / darclab.sh
Last active Jan 26, 2018
DARCLAB machines config file
View darclab.sh
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=
@freelsn
freelsn / Makefile
Created Oct 3, 2017
Universal Makefile for C/C++
View Makefile
# - inc/
# - *.h
# - src/
# - *.c
# - *.cpp
# - obj/
# - *.o
# - main
TARGET := main
You can’t perform that action at this time.