A jQuery form that helps editors and designers at IEEE Spectrum embed images with captions and credits. Bloggers had a hard time remembering the right HTML structure and style classes for figures—now they don't have to.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style> | |
body { | |
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; | |
font-size: 14px; | |
margin: auto; | |
position: relative; | |
width: 940px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<figure class="xlrg FISAchart" id ="FISAchart"> | |
<style> | |
.FISAchart { | |
font-family: "Theinhardt-Regular", "Helvetica Neue", Helvetica, Arial, sans-serif; | |
width: 620px; | |
} | |
.FISAchart h3 { | |
text-align: center; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Before running: | |
# $ gem install twitter | |
# | |
# Register a Twitter application to get auth credentials: | |
# https://dev.twitter.com/apps | |
# | |
# To run: | |
# $ ruby counter.rb upworthy.com 500 | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?1.27.2"></script> | |
<style type="text/css"> | |
path { | |
fill: none; | |
stroke: #000; | |
stroke-width: 7px; |
[ Launch: test ] 8ea45000d4d17c0a0fea by joshuarrrr[ Launch: test ] 4653053 by enjalot[ Launch: test ] 4652017 by enjalot[ Launch: test ] 4582399 by enjalot
This line chart is constructed from a TSV file storing the daily average temperatures of New York, San Francisco and Austin over the last year. The chart employs conventional margins and a number of D3 features:
- d3.tsv - load and parse data
- d3.time.format - parse dates
- d3.time.scale - x-position encoding
- d3.scale.linear - y-position encoding
- d3.scale.category10, a d3.scale.ordinal - color encoding
- d3.extent, d3.min and d3.max - compute domains
- [d3.k
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
'use strict'; | |
angular | |
.module('lightning', []) | |
.controller('MainCtrl', MainCtrl); | |
MainCtrl.$inject=['$http']; | |
function MainCtrl($http) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Wrap a block of text to a given width | |
* via http://bl.ocks.org/mbostock/7555321 | |
*/ | |
var wrapText = function(texts, width, lineHeight) { | |
texts.each(function() { | |
var text = d3.select(this); | |
var words = text.text().split(/\s+/).reverse(); | |
var word = null; |
-
Install Duplicator plugin
-
Build package (optionally filter out large image files)
-
Download archive and installer to an empty directory
-
Create a softlink to the directory ({name}) in the webserver folder
$ sudo ln -s /{name} /var/www/html/{name}
-
Change ownership of the directory to make it writable
OlderNewer