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
// ==UserScript== | |
// @name Better Douban | |
// @author jnozsc | |
// @namespace http://www.douban.com/people/1563045/ | |
// @description I need a better douban | |
// @include http://www.douban.com/* | |
// @match http://www.douban.com/* | |
// @include http://book.douban.com/* | |
// @match http://book.douban.com/* | |
// @include http://music.douban.com/* |
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
# encoding: utf-8 | |
# description: This program can fix Octopress issue #1088 | |
# In fact, it is not a bug in Octopress. | |
# It is introducted by 3rd party migration tool. | |
# However, I have forgotten which tool causes this issue. | |
# So I write this program to help others who meet the same issue | |
# usage: in your Terminal.app, type the following line: | |
# ruby issue_1088_fix.rb [/your/octopress/path/] | |
# e.g: ruby issue_1088_fix.rb ~/octopress/source/_posts/ |
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
# encoding: UTF-8 | |
require 'csv' | |
source_file = "program.csv" | |
result_file = "result.csv" | |
CSV.open(result_file,"ab") do |csv| | |
csv<<['DBN', | |
'PROGRAM', |
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
// Just before switching jobs: | |
// Add one of these. | |
// Preferably into the same commit where you do a large merge. | |
// | |
// This started as a tweet with a joke of "C++ pro-tip: #define private public", | |
// and then it quickly escalated into more and more evil suggestions. | |
// I've tried to capture interesting suggestions here. | |
// | |
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_, | |
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant, |
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/python | |
# -*- coding: utf-8 -*- | |
import argparse | |
from random import shuffle | |
GUEST_NAME = [ | |
u'阿仁', | |
u'sk', | |
u'lulu', |
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
# -*- coding: utf-8 -*- | |
import argparse | |
def hanoi(number): | |
def hanoi_recursion(to_move=[], start=1, intermediate=2, end=3): | |
if len(to_move) <= 0: | |
return | |
elif len(to_move) == 1: | |
print(u'把 %d 号盘子从第 %d 个塔移动到第 %d 个塔' % (to_move[0], start, end)) |
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/local/bin/python | |
# -*- coding: utf-8 -*- | |
import random | |
candidate = [ | |
'默认鸡排', | |
'柠檬鸡串', | |
'奥尔良烤', | |
'土耳其烤', |
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
Homebrew build logs for python on macOS 10.14 | |
Build date: 2018-06-18 13:00:56 |
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
#!/bin/bash | |
echo "\n\n--- Killing Stupid Adobe Auto Load Crap ---\n\n" | |
launchctl unload -w /Library/LaunchAgents/com.adobe.AdobeCreativeCloud.plist | |
launchctl unload -w /Library/LaunchAgents/com.adobe.AAM.Updater-1.0.plist | |
echo "\n\n--- Done! ---\n\n" |
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
Homebrew build logs for luajit on macOS 10.15.3 | |
Build date: 2020-03-07 10:05:40 |