Skip to content

Instantly share code, notes, and snippets.

@ruiqiliu
ruiqiliu / 勇气与真意——关于围棋的八卦
Created December 11, 2014 02:44
一篇关于围棋和吴清源的牛文
戚小存 2012-06-06 14:27:31
(谈不上非常原创,算是八卦的长总结吧。借鉴天涯贴《新布局史话——棋盘上属于天才的时代》、吴清源自传、桥本宇太郎自传、田壮壮电影《吴清源》的相关访谈、各位棋手的相关访谈以及川端康成的一些围棋相关作品。)
玩掉欧冠的晚上,我看完球开始看吴清源的自传《中的精神》。
他的文笔很平,情感也很收敛。但是我向来不喜欢男人在码字上面玩太多花,码字也就跟下棋一样,你执着于某些精彩的段子,就无法搞出大格局。
看他讲六合之棋,讲什么是中,什么是最善一手。触动极大,突然对整个围棋史好奇起来。
我爹一直是个非常不入流的围棋爱好者,生平最好的战绩是街道围棋比赛季军,参赛人数为:五人。
据我看,他棋品也一般,下棋的时候咋咋呼呼高声喧哗跟菜市场一样,更别说经常拿这个作为躲避洗碗的借口。
“别慌,等我打完谱。”
@ertseyhan
ertseyhan / remount.sh
Created February 2, 2016 20:51
Temporarily increase size of tmp folder on Arch linux
#!/bin/bash
sudo mount -o remount,size=10G,noatime /tmp
echo "Done. Please use 'df -h' to make sure folder size is increased."
# HG changeset patch
# User Dmitry Volyntsev <xeioex@nginx.com>
# Date 1714094993 25200
# Thu Apr 25 18:29:53 2024 -0700
# Node ID 99b1ca45f022879a13f18273ff108b145af4a87d
# Parent 83dc664adf0f6f101030fa50937c04d924b91103
Fetch: fixed request Host header when port is non standard.
This fixes #707 issue on Github.
@justiceamoh
justiceamoh / colormaps.py
Created October 16, 2015 07:13
New Python Colormaps Including MATLAB Parula
# New matplotlib colormaps by Nathaniel J. Smith, Stefan van der Walt,
# and (in the case of viridis) Eric Firing.
#
# This file and the colormaps in it are released under the CC0 license /
# public domain dedication. We would appreciate credit if you use or
# redistribute these colormaps, but do not impose any legal restrictions.
#
# To the extent possible under law, the persons who associated CC0 with
# mpl-colormaps have waived all copyright and related or neighboring rights
# to mpl-colormaps.
@capJavert
capJavert / rpg.owl
Last active April 26, 2024 02:23
Simple Dungeon & Dragons ontology
<?xml version="1.0"?>
<rdf:RDF xmlns="http://www.semanticweb.org/javert/ontologies/2017/10/dungeons-and-dragons#"
xml:base="http://www.semanticweb.org/javert/ontologies/2017/10/dungeons-and-dragons"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:owl="http://www.w3.org/2002/07/owl#"
xmlns:xml="http://www.w3.org/XML/1998/namespace"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#">
<owl:Ontology rdf:about="http://www.semanticweb.org/javert/ontologies/2017/10/dungeons-and-dragons"/>
@ryanorsinger
ryanorsinger / installing_anaconda_on_mac.md
Last active April 26, 2024 02:22
Installing Homebrew and Anaconda

Installing Homebrew and Anaconda on a Mac

Install Homebrew

Run the following command on your terminal to install Homebrew. Homebrew is a package manager for Macs and is used to install useful development tools and software.

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Install Anaconda through Homebrew

  1. Run brew install --cask anaconda to install Anaconda
import Foundation
extension UIDevice {
/**
Try to get the username from the device name using common knows
default device names format.
- copyright: Owen Godfrey on [StackOverflow](http://stackoverflow.com/questions/8261961/better-way-to-get-the-users-name-from-device)
- remark: Original regexpr improved to support custom name with model included eg. `<username>'s iPhone 6S`
@GhibliField
GhibliField / 计算机类学术论文 28个常见出版社一般写法.md
Last active April 26, 2024 02:19
计算机类学术论文 28个常见出版社一般写法(参考文献用)
序号 出版社一般写法 出版地 备注
1 AAAI Menlo Park, CA Association for the Advancement of Artificial Intelligence
2 Academic 同Elsevier Academic Press is part of Elsevier
3 Academy Press New York/ London/ Paris/ San Diedo,CA/ San Francisco,CA/ Sao Paulo/ Sydney/ Tokyo/Toronto AP,Academy Press
4 ACL Stroudsburg,PA Association for Computational Linguistics
5 ACM New York, NY ACM Press,Association for Computing and Machinery
6 AP Professional Boston,MA/ San Diedo,CA/New York/ London/ Sydney/ Tokyo/ Toronto  
7 Chapman & Hall London/ Glasgow/ Weinheim/ New York/ Madras CH
@A1vinSmith
A1vinSmith / Privilege Escalation.md
Last active April 26, 2024 02:16
Privilege Escalation: Systemctl (Misconfigured Permissions — sudo/SUID)
function getPageTotal(offset = 0) {
req = new XMLHttpRequest();
req.open(
'GET',
`https://shopee.vn/api/v4/order/get_all_order_and_checkout_list?limit=20&offset=${offset}`,
false
);
req.send();
a = JSON.parse(req.responseText);
if (a.data.next_offset === -1) return 0;