Skip to content

Instantly share code, notes, and snippets.

(源: http://gist.github.com/479846)
(譯: translate.google.com)
在這個日子正是10年前,喬恩Orwant咖啡杯扔在牆上在會議中。
維基百科方志公佈的Perl 6正就7月19日十年前...而投擲水杯18日,可以說是火花誕生的Perl 6。
為什麼他扔杯子?"拉里牆上的自己的解釋"
<http://www.spidereyeballs.com/os5/set1/small_os5_r06_9705.html>它包括足夠的細節:
@GarconsdeCrystal
GarconsdeCrystal / colorpicker.click.diff
Created October 23, 2021 14:14 — forked from audreyt/colorpicker.click.diff
Patch to allow ColorPicker work on mobile browsers by handling the "click" event. Repository is here: https://github.com/audreyt/jquery-colorpicker---fixed-for-ie6
diff -dur foo/js/colorpicker.js tmp/js/colorpicker.js
--- foo/js/colorpicker.js 2009-05-23 13:32:36.000000000 +0800
+++ tmp/js/colorpicker.js 2011-04-07 21:05:18.000000000 +0800
@@ -370,6 +370,7 @@
setSelector(col, cal.get(0));
setHue(col, cal.get(0));
setNewColor(col, cal.get(0));
+ cal.data('colorpicker').onChange.apply(cal, [col, HSBToHex(col), HSBToRGB(col)]);
};
return {
@GarconsdeCrystal
GarconsdeCrystal / jedi-daemon
Created October 23, 2021 14:13 — forked from audreyt/jedi-daemon
「狂賀《簡報原力》登上銷售冠軍」活動機器人
#!/usr/bin/env perl
use 5.10.0;
use utf8;
use LWP::Simple;
use Encode 'encode';
use Encode::MIME::Header;
use File::Slurp 'slurp';
use Email::MIME;
use Email::Sender::Simple qw(sendmail);
<mx:Accordion id="Accordion" left="10" top="10" bottom="10" right="10" visible="true">
<mx:Canvas label="Activities" visible="true" id="PersonActivitiesCanvas"
width="100%" height="100%">
<mx:HTML fontSize="12 location="Loading.html" cornerRadius="5" left="0" top="0" bottom="0" right="0"/>
</mx:Canvas>
<mx:Canvas label="Network" width="100%" height="100%" id="PersonNetworkCanvas">
<mx:Panel id="NetworkPanelLeft" width="47%" left="10" top="3" bottom="27" title="Following {PersonWatchlist.length} people" fontSize="15" cornerRadius="10" fontFamily="Arial">
<mx:List dataProvider="{PersonWatchlist}" itemRenderer="Person"></mx:List>
</mx:Panel>
<mx:Panel id="NetworkPanelRight" top="3" right="10" bottom="27" width="47%" cornerRadius="10" title="{PersonWatchers.length} Followers" fontSize="15">
@GarconsdeCrystal
GarconsdeCrystal / allison-osdctw-2012.md
Created October 23, 2021 14:13 — forked from audreyt/allison-osdctw-2012.md
IRC transcript of Allison's OSDC.tw talk

Good collaboration in open source projects

Video recording: https://www.youtube.com/watch?v=E5_tL62mUbc

Over the years, I've started thinking that participating in the open source community is like traveling on a path, toward becoming not only better programmers, but also becoming better people by working together.

You might think of it as a path toward enlightenment, growing ourselves as human beings. So what follows is really my personal philosophy which I'd like to share with you.

The first thing is this: The most important part of every open source project is the people. While code is important, the center is always the people.

開源之道

Original transcript: http://allisonrandal.com/2012/04/15/open-source-enlightenment/

這幾年來,我慢慢覺得,我們參與開源社群,就像是在一條道路上並肩而行:這不僅讓我們成為更好的程式設計者,也讓我們通過與人合作,而成為更好的人。

您可以將它想成一條修行之道,讓身而為人的我們能夠不斷成長。接下來,我想談談我對開源世界的個人觀點,希望能與您分享。

首先,人是一切開源專案的核心。程式碼是很重要,但最核心的永遠是人。

#!/usr/bin/env node
var threadCount = 4;
var threadPool = require('webworker-threads').createPool(threadCount);
threadPool.load('gistfile2.js');
threadPool.all.emit('init');
threadPool.on('message', function threadMessage(data) {
console.log(this.id + ': ' + data);
@GarconsdeCrystal
GarconsdeCrystal / private.ls
Created October 23, 2021 14:12 — forked from audreyt/private.ls
Private instance variable in LiveScript
class Container
->
secret = 3
@dec = ->
return false unless secret > 0
return secret--
x = new Container
console.log x.dec!
console.log x.dec!
/**
* Conway's Game of Life, in LiveScript
* ====================================
*
* Conway's Game of Life is a cellular automaton, published by John H Conway
* in 1970, fulfilling the design principles but greatly simplifying the
* research of von Neumann, into a hypothetical machine that could build
* copies of itself. It is a zero-player game, meaning there is no input, and
* the game will progress on its own with a 'seed', or configuration, to
* begin with.
@GarconsdeCrystal
GarconsdeCrystal / plv8.rb
Created October 23, 2021 14:12 — forked from audreyt/plv8.rb
PLV8 homebrew formula
require 'formula'
class Plv8 < Formula
homepage 'http://code.google.com/p/plv8js/wiki/PLV8'
version '1.4.1'
url 'https://plv8js.googlecode.com/files/plv8-1.4.1.zip'
sha1 'ceb7579b1fae1c1fe795c03a23471fdf9c7c469e'
head 'https://code.google.com/p/plv8js/', :using => :git