Skip to content

Instantly share code, notes, and snippets.

View Gateswong's full-sized avatar

Gates_ice Gateswong

View GitHub Profile
@marshluca
marshluca / douban_comment.rb
Created February 16, 2011 07:35
豆瓣自动顶贴
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)
@wusuopu
wusuopu / 115.py
Created May 15, 2012 03:13
a script auto to login 115
#!/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许可发布。
@shijinkui
shijinkui / gist:3149909
Created July 20, 2012 09:42
推荐阅读
敏捷开发/效率
书名 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/
@zolunx10
zolunx10 / .gitignore
Last active December 24, 2023 15:14
Rime用颜文字(及符号)字典. 个人都绑定到v键开头了, 请下载kaomoji*并酌情修改字典文件.dict.yaml; 另如果要在当前输入法中直接嵌入, 请参考luna_pinyin_simp.custom.yaml前半段修改您的输入法设置.
*
!.gitignore
!alternative.yaml
!*.custom.yaml
!kaomoji.*.yaml
@amitsaha
amitsaha / ipython-notebook.service
Last active December 23, 2015 15:59
Run IPython notebook under systemd
# 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]
#include <mpi.h>
main() {
int my_rank, num_proc;
int a, b, i; // it depends
}
@lsfalimis
lsfalimis / ywdFinder.scpt
Created July 16, 2014 17:16
copy Finder current path
tell application "Finder"
set thePath to POSIX path of (target of window 1 as alias)
set the clipboard to thePath
end tell