This file contains 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
require 'rubygems' | |
require 'mechanize' | |
def comment_douban_topic(url,text) | |
login_url = "http://www.douban.com/login" | |
agent = Mechanize.new | |
# agent.set_proxy("218.201.21.176","80") | |
agent.user_agent_alias = "Googlebot" | |
page = agent.get(login_url) | |
This file contains 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 python | |
#-*- coding:utf-8 -*- | |
## | |
## | |
# Copyright (C) | |
# | |
# This program is free software; you can redistribute it and/or | |
# modify it under the terms of the GNU General Public License | |
# as published by the Free Software Foundation. | |
# 本程序是免费软件,基于GPL许可发布。 |
This file contains 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
敏捷开发/效率 | |
书名 Web 推荐度 | |
<高效程序员的45 个习惯> http://book.douban.com/subject/4164024/ 必读 | |
<卓有成效的程序员> http://book.douban.com/subject/3558788/ | |
<人月神话> http://book.douban.com/subject/3039216/ | |
<Getting Real> http://book.douban.com/subject/3567853/ 只能搞到中文电子版 | |
程序设计 | |
书名 Web 推荐度 | |
<代码大全(第2版)> http://book.douban.com/subject/1477390/ |
This file contains 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
* | |
!.gitignore | |
!alternative.yaml | |
!*.custom.yaml | |
!kaomoji.*.yaml |
This file contains 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
# README: | |
# Copy this file to /usr/lib/systemd/system/ | |
# sudo systemctl daemon-reload | |
# systemctl enable ipython-notebook | |
# systemctl start ipython-notebook | |
# The WorkingDirectory and ipython-dir must exist | |
# If you don't want anything fancy, go to http://127.0.0.1:8888 to see your notebook | |
# wheneber you want it | |
[Unit] |
This file contains 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 <mpi.h> | |
main() { | |
int my_rank, num_proc; | |
int a, b, i; // it depends | |
} |
This file contains 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
tell application "Finder" | |
set thePath to POSIX path of (target of window 1 as alias) | |
set the clipboard to thePath | |
end tell |