Skip to content

Instantly share code, notes, and snippets.

@Raynos
Raynos / a.md
Created January 23, 2012 19:48
Shim status of ES6

ES6 what can be shimmed and what not.

Currently only lists things that can be shimmed or are experimentally implemented

Note that for any kind of decent ES6 support we need an ES6 transpiler. A few projects are attempting this [Reference SO question][3]

  • [traceur][4]
  • [Caja][5]
  • [ES transpiler][6]
@kevinSuttle
kevinSuttle / meta-tags.md
Last active April 20, 2026 12:05 — forked from lancejpollard/meta-tags.md
List of Usable HTML Meta and Link Tags
@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

@paulmillr
paulmillr / active.md
Last active May 10, 2026 05:24
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
@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.
@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>
@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% --
@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>';
}
@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();
@cheeaun
cheeaun / jscampasia2012.md
Created November 29, 2012 08:19
JSCamp.Asia links & resources