Skip to content

Instantly share code, notes, and snippets.

View noodles-v6's full-sized avatar

noodles noodles-v6

View GitHub Profile

今天是 22 岁的最后一天。几个月前,我从沃顿商学院毕业,用文凭上“最高荣誉毕业”的标签安抚了已经年过半百的老妈,然后转头辞去了毕业后的第一份工作,跟一家很受尊敬的公司、还有 150 万的年薪道了别,回到了上海,加入了“刚毕业就失业”俱乐部,开始了一天三顿盒饭的新生活,中间许多精彩剧情暂时略过。  我肯定不是第一个做过这样事的人,也肯定不会是最后一个。所以在说自己的一些有趣故事前,我想借用大家(包括 30 岁甚至 40 岁以上的朋友)的一点时间和一点平和的心态,和大家分享过去一年以来一直没说的一些话。所以前两部说的是对于一些一直困扰着我们的关键词的理解和体会。他们是:欲望、外界、标签、天才、时间、经历、人生目标、后悔、和现实。

  这可能会是一篇科普文,也可能会是一篇长篇小说,但我不想这篇文章变成一篇励志文,大家都审美疲劳了。所以我想忽略阳春白雪,尽管信息量很大,但是至少说一些实实在在的经验和故事,说一些效果立竿见影的观点,再说说活捉林志玲什么的,总之让大家多看一点就多获得一点实际的价值。

第一部:那些最容易被理解错误的事

关于欲望

@noodles-v6
noodles-v6 / gist:8909420
Created February 10, 2014 02:35
喜欢你-Beyond(歌词的粤语拼音)
sei yu dai fong sa tou fong fen dei gai dou
细 雨 带 风 湿 透 黄 昏 的 街 道
mu hei yu sui suang an mou gu dei yang mang
抹 去 雨 水 双 眼 无 故 地 仰 望
mang hang gu dan dei mai deng
望 向 孤 单 的 晚 灯
si na sang gan dei gei yi
是 那 伤 感 的 记 忆
zai ci fan hei sen lei mou sou dei si ni
再 次 泛 起 心 里 无 数 的 思 念
@noodles-v6
noodles-v6 / 1
Created September 28, 2012 16:08
Perl中文匹配
!/usr/bin/perl
use strict;
use warnings;
use utf8;
use open ":encoding(utf8)",":std";
open my $infh, "<:encoding(utf8)", "zh.dat" or die $!;
while (<$infh>) {
@noodles-v6
noodles-v6 / JdbcType.java
Created April 12, 2016 07:37
Mybatis.JdbcType
/**
* Copyright 2009-2015 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
#!/usr/bin/env perl
use 5.010;
use open qw(:locale);
use strict;
use utf8;
use warnings qw(all);
use Mojo::UserAgent;
# FIFO queue
@noodles-v6
noodles-v6 / top.sh
Created August 18, 2013 12:48 — forked from sdslnmd/top.sh
#!/bin/bash
redEcho()
{
echo -e "\033[1;31m$@\033[0m"
}
pid=`pgrep java`
uuid=`date +%s`_${RANDOM}_$$
jstackFile=/tmp/${uuid}_${pid}
sudo -u tomcat jstack ${pid} > ${jstackFile}
//This sample is how to use websocket of Tomcat.
package wsapp;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.CharBuffer;
import java.util.ArrayList;
import org.apache.catalina.websocket.MessageInbound;
import org.apache.catalina.websocket.StreamInbound;
import org.apache.catalina.websocket.WebSocketServlet;
#!/usr/bin/env perl
use 5.010;
use open qw(:locale);
use strict;
use utf8;
use warnings qw(all);
use Mojo::UserAgent;
# FIFO queue
cd /usr/local
mkdir redis-latest-install
cd redis-latest-install
curl http://redis.googlecode.com/files/redis-2.6.13.tar.gz | tar xz --strip-components=1
#In order to install Redis binaries into /usr/local/bin just use:
#
# % make install
#
#You can use "make PREFIX=/some/other/directory install" if you wish to use a
#echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
#. ~/.bashrc
#mkdir ~/local
#mkdir ~/node-latest-install
#cd ~/node-latest-install
#curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
#./configure --prefix=~/local
#make install # ok, fine, this step probably takes more than 30 seconds...
#curl https://npmjs.org/install.sh | sh