2014年8月16日 星期六

github 上熱門的專案統計

GitHub 上的熱門專案

滿有趣的 ,看來是用討論的熱度來作統計。有時間的話,一定要好好的看一看啊…

perl 竟然幾乎全滅的了…冏rz

看來 javascript / css 真.的.是.很.紅.啊…

如何寫一個模組,並上傳到 cpan


  1. 模組的基本結構和要求
  2. 怎么样写一个模块上传到 CPAN


寫得太好了…

補充幾點:


  1. 模組架構可以用 Module::Starter 來建立,或是使用經典的 Module::Starter::PBP ,可參考 使用 Module::Starter 建立模組框架
  2. 上傳可以用 CPAN::Uploader
  3. 寫模組的風格可以參考 PBP (Perl Best Practices)

一些跟 web integration 有關的 perl 資源


1. 相當於瀏覽器中的 javascirpt console 、開發人員工具的模組。搭配 one-liner 的絕配:

网页分析处理的极品模块Web::Scraper

2. 相當於離線瀏覽/砍站軟體(如 teleport pro, httrack )的 perl 實現方式。

Mojo 版本的 Perl 爬虫

Perl 整站采集有什么好方案

多线程的 Perl 爬虫

其中還提到重覆文字偵測的 bloom 演算法,的確是滿酷的

2014年8月15日 星期五

具有版本控制功能的網頁空間 GitHub Pages

說明 https://help.github.com/articles/what-are-github-pages

手動建立方式 https://help.github.com/articles/creating-project-pages-manually

簡易建立方式 https://dl.dropboxusercontent.com/u/3813488/train/gitapp.pdf

API介面 https://developer.github.com/v3/repos/pages/

以javascript所撰寫的語音辨識程式庫


  1. annyang 有些demo可以馬上試試 ;可處理中文; https://github.com/TalAter/annyang
  2. Pocketsphinx.js 有些demo可以馬上試試 ;;可處理中文;https://github.com/syl22-00/pocketsphinx.js
其它注意事項:
20180708更新:目前 firefox 瀏覽器上已內建


git client的javascript implementation及其在協作平台的潛在應用

目前找到兩個

  1. github.js :它顯然是把在本機上執行的 git client 使用javascript 改寫,並且依賴於 node.js
  2. js-git :它不依賴於本機的檔案系統,因此也就有機會在網頁上單獨執行(git-browser),不需要依賴 node.js
git 本身其實可以用來當作資料/檔案系統存放的工具, js-git 就是把一個 repo 給 clone 下來,放在記憶體中進行處理,有更動時再 push 回去。以此概念該作者寫了 tedit ,方便在平板上進行文件編輯。

git 本身就是一個多人協作的版本控制系統,反過來說,協作的特性某些程度上需要的就是 git 的功能,如 clone , commit , branching , reconcile , push 等等。

以下摘錄作者的說明:


Feature Goals

I don't intent to make a 100% clone of all the features of the official git program. That would be insane and require a lot more money than I'm asking for. My main goal is to enable the 90% case of interesting stuff:

  • Clone remote repositories to local storage over http, git, or ssh.
  • Make and commit local changes offline.
  • Manage tags and branches offline.
  • Push changes back up to remote repositories.
  • Serve git repositories over http, git, or ssh.
  • Be very modular so bits can be used by any software that needs them.

Potential Products

Some example products that would be enabled by this are:

  • ChromeOS IDE for developing on Chromebooks.
  • Node.JS blog engine with git as the database.
  • Custom Git hosting using custom storage back-ends.
  • GIT CLI for restricted environments.
  • Standalone GIT GUI desktop app.
  • Git based deployment tools.
  • JavaScript package management for server and client.
  • Whatever else you come up with.

網頁上的簡報--html5的應用

reveal.js

html5slides

deck.js

impress.js

CSSS

其中近來大家推崇的是 impress.js 。如果能寫個程式自動把大部頭的書/論文轉成簡報,應該可以方便很多人吧…