View gist:815f7c976683307a02e1
1 2 3
phpbrew install 5.6 +default +bcmath +bz2 +calendar +cli +ctype +dom +fileinfo +filter +json \
+mbregex +mbstring +mhash +pcntl +pcre +pdo +phar +posix +readline +sockets \
+tokenizer +xml +curl +zip +openssl=yes +icu +opcache +fpm +sqlite
View GoogleSpreadSheetInviteToSlack.js
1 2 3 4 5 6 7 8 9 10
/*
The original script: https://github.com/dherbst/slack-invite-script/blob/master/code.js
*/
 
 
/*
Get channels from: curl 'https://golang.slack.com/api/channels.list?token={token}' | json_pp
*/
function getInviteChannels() {
return ['C123123123'];
View SassMeister-input.scss
1 2 3 4 5 6 7 8 9 10
// ----
// Sass (v3.4.13)
// Compass (v1.0.3)
// ----
 
.zoo {color: #ccc; background: #000; width: calc( 100% - 30px); }
.zoo {color: #ccc; background: #000; width: calc( 100% - 30px); }
.zoo {color: #ccc; background: #000; width: calc( 100% - 30px); }
.zoo {color: #ccc; background: #000; width: calc( 100% - 30px); }
.zoo {color: #ccc; background: #000; width: calc( 100% - 30px); }
View phpironman.vim
1 2 3 4 5 6 7 8 9 10
" Vim color file
" Author: Yo-An Lin <yoanlin93@gmail.com>
" Last Change: 2015-2-26
" Version: 1.0
" GUI only
set background=dark
hi clear
if exists("syntax_on")
syntax reset
endif
View token.php
1 2 3 4 5 6 7 8 9 10
<?php
class Token
{
public $type;
public $val;
public function __construct($type, $val) {
$this->type = $type;
$this->val = $val;
View fab.asm
1 2 3 4 5 6 7 8 9
; nasm -f macho64 fab.asm && ld -arch x86_64 -lSystem fab.o -o fab && ./fab
 
global start
 
extern _printf
 
section .text
 
 
View perl5-jit-plan.md

Perl5: method based tracing for JIT (just in time complation)

During the execution:

  • Trace and collect the argument types for the method and the return value type. (some method returns mixed type variable, we should ignore that kind of the method)
  • Add the type signature to the method, each type signature refers to the compiled machine code.
  • Calculate the execution times of a method and see if it exceeds the threshold.

When compiling a method, the compiler:

View gist:7c090cd1f43b55344688
1 2 3 4 5 6 7 8 9 10
php benchmarks/serializer.php
n=30000
Runing json_encode - . 83464.528488116/s
Runing json_decode - . 59165.647102636/s
Runing serialize - . 76887.615465133/s
Runing unserialize - . 63165.897104579/s
Runing yaml_emit - . 26203.323636738/s
 
Rate Mem json_encode serialize unserialize json_decode yaml_emit
json_encode 83.46K/s 0B -- -92% -75% -70% -31%
View xhprof.php
1 2 3 4 5 6 7 8 9 10
<?php
require 'vendor/autoload.php';
use SQLBuilder\RawValue;
use SQLBuilder\ToSqlInterface;
use SQLBuilder\ArgumentArray;
use SQLBuilder\Query\InsertQuery;
use SQLBuilder\Query\SelectQuery;
use SQLBuilder\Query\SelectQueryX;
use SQLBuilder\Driver\MySQLDriver;
View gist:3d2da09057cefde36292
1 2 3 4 5 6 7 8 9 10
09:07 -!- Irssi: Join to #webconf.tw was synced in 133 secs
09:08 < MouseMs> 大家早安
09:08 < locy69> 早安
09:09 < StarNight> 早安!~
09:10 < MouseMs> [SITCON] 答案填寫單將於9:30開放submit答案 PS:同時也會開放第五題唷 今天的題目都比較簡單 歡迎大家挑戰:)
09:13 < bency> 早安
09:13 < BeataLin> 早安!
09:21 < SITCON> 今天也有3題等著大家挑戰唷^^
09:23 < kikiqqp_> 今天R0的有線網路有點怪怪的
09:25 < ChAndrew> Good Morning!!
Something went wrong with that request. Please try again.