Skip to content

Instantly share code, notes, and snippets.

var margin = {top: 20, right: 0, bottom: 0, left: 0},
width = 960,
height = 500 - margin.top - margin.bottom,
formatNumber = d3.format(",d"),
transitioning;
var x = d3.scale.linear()
.domain([0, width])
@maxbye3
maxbye3 / gist:7642233
Created November 25, 2013 14:43
socialPlugins
http://jsbin.com/YOURID/latest
http://jsbin.com/YOURID/latest
for (var i = 1; i <= 100; i++){
// Stuff you want to happen on each loop goes here
('.facebookPhotos').append(i);
} //for
for (var i = 1; i <= 100; i++){
// Stuff you want to happen on each loop goes here
('.facebookPhotos').append(i);
} //for
for (var i = 1; i <= 100; i++){
// Stuff you want to happen on each loop goes here
('.facebookPhotos').append('<img src="https://graph.facebook.com/100004786450083/picture?type=large">');
} //for
for (var i = 1; i <= 100; i++){
// Stuff you want to happen on each loop goes here
('.facebookPhotos').append('<img src="https://graph.facebook.com/'+i+'/picture?type=large">');
} //for
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
<div id="fb-root"></div>
<script>(function(d, s, id) {
$('.facebookPhotos').append("Hello");
$('.facebookPhotos').append("<img src='https://graph.facebook.com/100004786450083?width=150&height=150' />");