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
| 5 開發者請小心!iOS 7 沒那麼容易搞定 - http://www.inside.com.tw/2013/09/13/developer-wake-up-call a9ac56c1fc004df98322dfb83469b37cfa7d0975 | |
| 4 想提升工作生產力,就別再做這七件事 - http://www.inside.com.tw/2014/05/06/7-things-you-need-to-stop-doing-to-be-more-productive 8bd61a93d4d465326b86d3fbe381ff6292063884 | |
| 4 什麼!BBC 的 Logo 要價超過 5000 萬? - http://www.inside.com.tw/2013/03/25/bbc-logo-cost 3ff0fdde5200544eb657ffa498a8dd4b8474be1f | |
| 3 如何成為一個傑出的開發者 - http://www.inside.com.tw/2014/05/21/how-to-be-a-great-software-developer fe7e06a6ef15b9ba989a1d3fc5491ed8c49bbf1b | |
| 3 軟體人的心路歷程分享 - http://www.inside.com.tw/2012/11/19/software-engineering-experience-sharing f6817914c6e61c417c531ae816ac3410d289f1b8 | |
| 3 小調查:青少年眼中的手機世界 - http://www.inside.com.tw/2013/08/26/mobile-phone-investigation e9184151eea8e53521a4abd6fd2e0b368e4cd658 | |
| 3 工程師提高工作效率的妙招:學畫畫 - http://www.inside.com.tw/2014/02/18/drawing-as-a-programmer c32a65587f364f15978cd020628165f5331a40fe | |
| 3 多人視訊平台 Zoom 推教學平台「愛切磋」,八月底進軍中國 - http://www.inside.com.tw/2015/08/05/zoom-tw-announced-icucmi-platform b2d |
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
| 3169 YC主席:75%的創業團隊走出育成中心之後就忘了本 - http://www.inside.com.tw/2015/08/22/y-combinator 6d42399ec19b33709bd8efe14fb70122e62f5a68 | |
| 596 露天拍賣存在一年以上的資安漏洞,賣家個資全都露! - http://www.inside.com.tw/2015/08/21/ruten-security-issue c66007ebb25093fa3841b45415a7f63aee3d5a7a | |
| 449 Inside 硬塞的網路趨勢觀察 - http://www.inside.com.tw/2015/08/21/how-i-got-62-million-pageviews-and-144920-followers/clickenc=http 38e9949990581eac990e4e94304cab3b27b46f0e | |
| 432 拒絕「夠好」症候群——Google 教會我的 20 件事(上) - http://www.inside.com.tw/2015/08/20/20-things-ive-learned-from-larry-page-a dc28339f985b2a900474545f206cc64783e2f973 | |
| 393 Inside 硬塞的網路趨勢觀察 - http://www.inside.com.tw/2015/08/20/20-things-ive-learned-from-larry-page-b/clickenc=http 5fa448575c5f500e2d0569c56ebad5faf63573ff | |
| 381 Inside 硬塞的網路趨勢觀察 - http://www.inside.com.tw/2015/08/21/taiwan-startup-stadium-relocation/clickenc=http 2bedca036221974f1d109b6e087bd40a121e2b0c | |
| 351 創業者不為外人道的辛酸事 - http://www.inside.com.tw/2015/08/20/entrepreneurs 033fd227a243306dd73a997d2b100d5724e8d052 | |
| 325 老是被網路設定搞瘋?Google 推出「OnHub」路 |
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
| var webpack = require("webpack"); | |
| var path = require('path'); | |
| var ExtractTextPlugin = require('extract-text-webpack-plugin') | |
| module.exports = { | |
| entry: { | |
| app: './app/app.jsx', | |
| }, | |
| output: { |
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
| docs = [ | |
| [0.5, 0.4, 0.1], | |
| [0.8, 0.1, 0.1], | |
| [0.25, 0.25, 0.5] | |
| ] | |
| ratings = [1.0/len(docs),] * len(docs) | |
| def normalize(v): |
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
| queries = SearchInfo.db({name: {'!is': ''}, lda_vector: {isNull: false}}).get() | |
| console.log queries | |
| graph = {nodes: [], links: []} | |
| i = 0 | |
| _.each queries, (query) -> | |
| graph.nodes.push {name: query.name, group: i++, info: query, size: PageInfo.db({query: query.name}).get().length} | |
| dot = (v1, v2) -> | |
| v = _.map _.zip(v1, v2), (xy) -> xy[0] * xy[1] |
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
| class SwoopException(Exception): | |
| def msg(self): | |
| return self.__class__.__name__ | |
| class SwoopSuitesMissingException(SwoopException): | |
| def __init__(self, missing_suites): | |
| self.missing_suites = missing_suites | |
| def msg(self): | |
| return "%s %s:%s" % (super(SwoopSuitesMissingException, self).msg(), "Missing required suites: ", ", ".join(self.missing_suites)) |
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
| import com.aliasi.corpus.Corpus; | |
| import com.aliasi.corpus.ObjectHandler; | |
| import com.aliasi.crf.ChainCrf; | |
| import com.aliasi.crf.ChainCrfFeatureExtractor; | |
| import com.aliasi.io.LogLevel; | |
| import com.aliasi.io.Reporter; | |
| import com.aliasi.io.Reporters; |
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
| import com.aliasi.corpus.Corpus; | |
| import com.aliasi.corpus.ObjectHandler; | |
| import com.aliasi.crf.ChainCrf; | |
| import com.aliasi.crf.ChainCrfFeatureExtractor; | |
| import com.aliasi.io.LogLevel; | |
| import com.aliasi.io.Reporter; | |
| import com.aliasi.io.Reporters; |
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
| class Float | |
| alias_method :orig_to_s, :to_s | |
| def to_s | |
| return round(4).orig_to_s | |
| end | |
| def inspect | |
| return to_s | |
| end | |
| end |
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
| class Matrix | |
| def []=(i, j, x) | |
| @rows[i][j] = x | |
| end | |
| end | |
| module Enumerable | |
| def sum | |
| return self.inject(0){|acc,i|acc +i} | |
| end |