Skip to content

Instantly share code, notes, and snippets.

View alecchen's full-sized avatar

Alec Chen alecchen

View GitHub Profile
#---------------------------------------------------------------------------
# Foo
#---------------------------------------------------------------------------
package Foo;
use Moose;
has 'name' => ( is => 'rw', isa => 'Str' );
sub hello {
print "hello\n";

People under time pressure don't work better; they Just work faster.

In order to work faster, they may have to sacrifice the quality of the product and their own job satisfaction.

給卡卡的Windows空間不足建議

先刪掉不需要的檔案

jdiskreport 找出又大又不需要的檔案

看你要刪掉或拷貝到外接硬碟都可以

這裡有這個軟體的使用教學

#!/usr/bin/perl
use Modern::Perl;
use Smart::Comments;
use WWW::Mechanize;
use Mojo::DOM;
use Readonly;
Readonly my $TOUR_URL => 'http://radiohead.com/tourdates/';
Readonly my $GIG_URL => 'http://radiohead.com/tourdates/25-07-12_taipei';
@alecchen
alecchen / doxygen_1.7.6.1_patch.diff
Created December 29, 2011 07:06
a patch for doxygen 1.7.6.1
--- doxygen-1.7.6.1/src/latexgen.cpp 2011-10-14 17:03:56.000000000 +0800
+++ doxygen-1.7.6.1_build/src/latexgen.cpp 2011-12-29 15:00:36.355207000 +0800
@@ -158,7 +158,7 @@
<< "pdf: refman.pdf" << endl << endl;
t << "refman.pdf: clean refman.tex" << endl;
t << "\tpdflatex refman" << endl;
- t << "\t" << mkidx_command << " refman.tex" << endl;
+ t << "\t" << mkidx_command << " refman.idx" << endl;
if (generateBib)
{
<section>
<h1>Recent Tracks</h1>
<script type="text/javascript">
function getRecentLastfmTracks(data) {
var output = "<ul>";
var tracks = data["recenttracks"].track;
for (var i=0, l=tracks.length; i<l; i++) {
var track = tracks[i];
var artist = track["artist"]["#text"];
var track_name = track["name"];
@alecchen
alecchen / git-references.markdown
Created November 9, 2011 06:55
git-references