Skip to content

Instantly share code, notes, and snippets.

View chairco's full-sized avatar
🏠
Working from home

Jason chairco

🏠
Working from home
View GitHub Profile

Python pyenv and virtualenvwrapper setup

This document will help you set up python for development on MacOS.

Install Pyenv

Pyenv allows you to have several python versions in your machine.

brew update

譯: Recca、黃雅信

CREDIT

GitLab 的六個價值是合作(Collaboration),結果(Results),效率(Efficiency),多元(Diversity),迭代(Iteration)和透明(Transparency)。這六個字拼成 CREDIT 作為我們送給各位的禮物。這些價值觀是相互關聯的,彼此之間互相合作以保護我們公司的文化。下面逐一解釋這些價值觀的操作方式:

合作

即使對目標沒有立即性的幫助,幫助別人應該是首要項目。相同的,你可以依靠別人的協助與意見 - 事實上你也應該要這樣。 每個人,包含不在 gitlab 公司工作的人,都可以對任何專案提意見。對專案負責的人決定專案要怎麼做,但是他應該要認真看待其他人的意見,並解釋為什麼之前有或者沒有這麼做。

@VioletVivirand
VioletVivirand / 2018-10-20-CCU-Pandas-Lecture.md
Last active December 5, 2018 00:57
A README file for the lecture on 2018-10-20

中正大學 Python Pandas 初探課程

各位同學好!

這裏將會放置一些在 2018-10-20 的課程會用到的一些資源跟細節。現在我正在更新了!*・゜゚・*:.。..。.:*・'(*゚▽゚*)'・*:.。. .。.:*・゜゚・* 希望很快地可以讓全部的內容正式跟大家見面。

在上課的過程中,如果有值得一提的參考資料,我也會放在這邊,請大家隨時回來察看。

@chairco
chairco / 2018_PyConTW_Talk.md
Last active May 1, 2019 12:28
Real-time web, Asynchronous I/O and Django channels 介紹,為 PyConTW 2018 演講概略內容。

Real-time web

維基是這樣定義 Real-time web 的:

The real-time web is a set of technologies and practices which enable users to receive information 
as soon as it is published by its authors, rather than requiring that they or their software check 
a source periodically for updates.

大意是指當作者在網頁上更新訊息時,其他使用者不需要做任何裝置上的刷新操作可以立即的在裝置上得到新資訊。

@weihanglo
weihanglo / tokio-internals.md
Last active March 14, 2024 15:48
【譯】Tokio 內部機制:從頭理解 Rust 非同步 I/O 框架

本文譯自 [Tokio internals: Understanding Rust's asynchronous I/O framework from the bottom up][tokio-internals]。
Thanks [David Simmons][david-simmons] for this awesome article!

[Tokio][tokio] 是 Rust 的開發框架,用於開發非同步 I/O 程式(asynchronous I/O,一種事件驅動的作法,可實現比傳統同步 I/O 更好的延伸性、效能與資源利用)。可惜的是,Tokio 過於精密的抽象設計,招致難以學習的惡名。即使我讀完教程後,依然不認為自己充分內化這些抽象層,以便推斷實際發生的事情。

從前的非同步 I/O 相關開發經驗甚至阻礙我學習 Tokio。我習慣使用作業系統提供的 selection 工具(例如 Linux epoll)當作起點,再轉移至 dispatch、state machine 等等。倘若直接從 Tokio 抽象層出發,卻沒有清楚了解 epoll_wait() 在何處及如何發生,我會覺得難以連結每個概念。Tokio 與 future-driven 的方法就好像一個黑盒子。

#!/bin/sh
# Open CV 3.3.1 on Ubuntu 16.04
sudo apt-get -y install libtiff5-dev
sudo apt-get -y install libavcodec-dev libavformat-dev libswscale-dev libdc1394-22-dev
sudo apt-get -y install libxine2-dev libv4l-dev
sudo apt-get -y install libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev
@ronnywang
ronnywang / log.md
Last active October 1, 2017 07:02
關於「著作權法增訂第八十四條之一條文草案」我與洪慈庸委員臉書的訊息

Ronny: 下面留言也有 Yutin 發文給洪慈庸的內容,也希望台灣能有越來越多人能去主動了解與自己切身相關立委提案,若是贊同,可以發文鼓勵立委,若是有疑慮或反對,也可以發文詢問提出問題點

2017/9/30 13:15 Ronny => 洪慈庸委員

洪委員您好,一直都很認同時代力量的理念,但是今天看到 http://lci.ly.gov.tw/LyLCEW/agenda1/02/pdf/09/04/01/LCEWA01_090401_00101.pdf 著作權法增訂第八十四條之 一條文草案 您有參與連署,想確認一下貴黨或是委員對於此案的了解。

我認同保障著作權是現代很重要的價值,但是草案中透過 IP 阻擋境外網站的作法,保護到了著作權,但是傷害到了更大的價值。將整個境外網站阻擋形同言論控制,侵害言論自由和通訊自由,這樣做形同保護了一個權利,但傷害了更多權利。

建議委員可以參考過去幾年美國 SOPA 法案提出時引發的爭論討論過程,會是個拿來思考,這次的著作權法修訂是否是恰當的。

@chairco
chairco / leetcode.md
Last active February 20, 2021 08:34
leecode, 30 分鐘來解題。多多用腦身體好,就從解決 leetcode 問題開始吧!
@kylebgorman
kylebgorman / Simple-linear-models-for-NLP.ipynb
Created July 19, 2017 20:43
Lecture on simple linear models for NLP applications, given to the Portland PUG sometime in late 2014 or early 2015
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mplacona
mplacona / gist:614ffdacc7da223f8a6121cd4b7a2eee
Last active October 27, 2023 08:22 — forked from jimbojsb/gist:1630790
Code highlighting for Keynote presentations

Step 0:

Get Homebrew installed on your mac if you don't already have it

Step 1:

Install highlight. "brew install highlight". (This brings down Lua and Boost as well)

Step 2: