Skip to content

Instantly share code, notes, and snippets.

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!!
anonymous
anonymous / gist:4518185
Created January 12, 2013 14:01
09:03 < MouseMs> 早安 :)
09:08 < BeataLin> 早安
09:10 < carlcarl> 喔喔 看來是這裡@@
09:14 < sss2500> 早安
09:14 < carlcarl> 還想說怎麼無線都連不上XD
09:16 < BeataLin> 不好意思,請問一下附近有投幣面紙嗎
09:17 < carlcarl> 問一下工作人員看看??
09:17 < BeataLin> 謝謝
09:26 < kikiqqp> 座位表座位表(敲碗)
@cheeaun
cheeaun / jscampasia2012.md
Created November 29, 2012 08:19
JSCamp.Asia links & resources
@rafaelrinaldi
rafaelrinaldi / get_fb_likes.php
Created October 23, 2012 17:14
Get Facebook likes count via FQL.
//@see http://halgatewood.com/get-number-of-facebook-likes-for-a-url/
<?php
function get_fb_likes($url)
{
$query = "select total_count,like_count,comment_count,share_count,click_count from link_stat where url='{$url}'";
$call = "https://api.facebook.com/method/fql.query?query=" . rawurlencode($query) . "&format=json";
$ch = curl_init();
@thephpx
thephpx / simple_dom_parser_code
Created August 2, 2012 11:07
sample code for simple dom parser in codeigniter
$this->load->library('simple_html_dom');
$raw = file_get_html('http://faisalbd.com');
foreach($raw->find('a') as $element){
echo $element->href . '<br>';
}
@c9s
c9s / php-5.3.10
Created July 10, 2012 11:47
php filter performance
n=1
Rate Mem filter.intersect filter.foreach foreach array_map.funcname array_map.closure
filter.intersect 17K/s 0B -- -8% -3% -1% -1%
filter.foreach 1K/s 0B 1208% -- -42% -16% -15%
foreach 597/s 0B 2875% 238% -- -39% -37%
array_map.funcname 238/s 1M 7221% 597% 251% -- -93%
array_map.closure 222/s 0B 7716% 638% 268% 106% --
@nseo
nseo / upload2facebook
Created June 11, 2012 14:07
A sample code to upload an image file to facebook using Facebook javascript sdk
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8">
<title>Hello FB</title>
</head>
<body>
<div id="fb-root"></div>
<div id="fb-content"></div>
<div>
@nansenat16
nansenat16 / gist:2723353
Created May 18, 2012 05:30
給工程師 – 生命就該浪費在有意義的事上
Source http://brooky.cc/2012/05/18/給工程師-生命就該浪費在有意義的事上
給工程師 – 生命就該浪費在有意義的事上
Posted on May 18, 2012 by brooky
前幾天看了 Mr. jamie 的文章年輕人,勇敢加入「明日」的台積電吧!, 剛好幾前天朋友也轉寄了一篇Life is too short to write shitty software給我,裡面講到
Life’s too short to be creating shitty software.
@paulmillr
paulmillr / active.md
Last active May 15, 2025 11:20
Most active GitHub users (by contributions). https://paulmillr.com

Most active GitHub users (git.io/top)

The list would not be updated for now. Don't write comments.

The count of contributions (summary of Pull Requests, opened issues and commits) to public repos at GitHub.com from Wed, 21 Sep 2022 till Thu, 21 Sep 2023.

Because of GitHub search limitations, only 1000 first users according to amount of followers are included. If you are not in the list you don't have enough followers. See raw data and source code. Algorithm in pseudocode:

githubUsers
@jonathanmoore
jonathanmoore / gist:2640302
Created May 8, 2012 23:17
Get the share counts from various APIs

Share Counts

I have always struggled with getting all the various share buttons from Facebook, Twitter, Google Plus, Pinterest, etc to align correctly and to not look like a tacky explosion of buttons. Seeing a number of sites rolling their own share buttons with counts, for example The Next Web I decided to look into the various APIs on how to simply return the share count.

If you want to roll up all of these into a single jQuery plugin check out Sharrre

Many of these API calls and methods are undocumented, so anticipate that they will change in the future. Also, if you are planning on rolling these out across a site I would recommend creating a simple endpoint that periodically caches results from all of the APIs so that you are not overloading the services will requests.

Twitter