Skip to content

Instantly share code, notes, and snippets.

View joshuarrrr's full-sized avatar

Josh Romero joshuarrrr

View GitHub Profile
@joshuarrrr
joshuarrrr / index.html
Last active August 29, 2015 14:00
Global Semiconductor Billings (3 Months Moving Averages)
<!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;
@joshuarrrr
joshuarrrr / index.html
Last active August 29, 2015 14:01
Tracking FISA requests and National Security Letters
<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;
@joshuarrrr
joshuarrrr / README.md
Last active August 29, 2015 14:01
Figure Generator

HTML5 Figure Elements

Simple form for creating and previewing captions, credits and images

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.

@joshuarrrr
joshuarrrr / counter.rb
Last active August 29, 2015 14:14 — forked from luigi/counter.rb
#
# 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
#
@joshuarrrr
joshuarrrr / index.html
Last active August 29, 2015 14:20 — forked from mbostock/.block
<!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;
@joshuarrrr
joshuarrrr / _.md
Last active August 29, 2015 14:22
test
(function() {
'use strict';
angular
.module('lightning', [])
.controller('MainCtrl', MainCtrl);
MainCtrl.$inject=['$http'];
function MainCtrl($http) {
@joshuarrrr
joshuarrrr / gist:8d1be97a16cbb2e865b3b0a0d70ac55a
Created April 4, 2016 17:16 — forked from alykat/gist:5fabb42475a6111ccc38591bac09550a
D3: Wrap label text and make SVG taller
/*
* 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;
@joshuarrrr
joshuarrrr / instructions.md
Last active February 6, 2017 21:16
Clone a local version of a Wordpress site
  1. Install Duplicator plugin

  2. Build package (optionally filter out large image files)

  3. Download archive and installer to an empty directory

  4. Create a softlink to the directory ({name}) in the webserver folder

    $ sudo ln -s /{name} /var/www/html/{name}
    
  5. Change ownership of the directory to make it writable