Follow these steps to install graphite on OS X Lion.
- Python 2.7
- Brew
- Git
。◕‿◕。 | |
ヽ(゜∇゜)ノ | |
(ノಠ益ಠ)ノ彡┻━┻ | |
(づ。◕‿‿◕。)づ | |
(´・ω・`) | |
٩(͡๏̯͡๏)۶ | |
(▮◡▮)❤ | |
(⊛ี௮⊛ี) | |
(☺♭☺) | |
⋙(≗ิ⊽≗ิ)⋘ |
This is a hack of this awesome theme by agnoster.
The same instructions apply:
// assumes variable data, which is a homogenous collection of objects | |
// get keys | |
var keys = _.keys(data[0]); | |
// convert to csv string | |
var csv = keys.join(","); | |
_(data).each(function(row) { | |
csv += "\n"; | |
csv += _(keys).map(function(k) { |
package main | |
import ( | |
"flag" | |
"fmt" | |
"log" | |
"net/http" | |
"os" | |
) |
# | |
# A CORS (Cross-Origin Resouce Sharing) config for nginx | |
# | |
# == Purpose | |
# | |
# This nginx configuration enables CORS requests in the following way: | |
# - enables CORS just for origins on a whitelist specified by a regular expression | |
# - CORS preflight request (OPTIONS) are responded immediately | |
# - Access-Control-Allow-Credentials=true for GET and POST requests | |
# - Access-Control-Max-Age=20days, to minimize repetitive OPTIONS requests |
var app = angular.module('converter', []); | |
app.directive('converter', function(converters) { | |
return { | |
require: 'ngModel', | |
link: function(scope, element, attr, ngModel) { | |
var converter = converters[attr.converter]; | |
ngModel.$formatters.unshift(converter.formatter); | |
ngModel.$parsers.push(converter.parser); | |
}, |
#!/usr/bin/env bash | |
# Disable the sound effects on boot | |
sudo nvram SystemAudioVolume=" " | |
# Disable transparency in the menu bar and elsewhere on Yosemite | |
defaults write com.apple.universalaccess reduceTransparency -bool true | |
# Menu bar: hide the Time Machine, Volume, and User icons | |
for domain in ~/Library/Preferences/ByHost/com.apple.systemuiserver.*; do | |
defaults write "${domain}" dontAutoLoad -array \ | |
"/System/Library/CoreServices/Menu Extras/TimeMachine.menu" \ | |
"/System/Library/CoreServices/Menu Extras/Volume.menu" \ |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Line Chart</title> | |
<link type="text/css" rel="stylesheet" href="line.css"/> | |
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js"></script> | |
</head> | |
<body> | |
<script type="text/javascript" src="line.js"></script> | |
</body> |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<title>Normal Plot</title> | |
<meta name="description" content=""> | |
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script> | |
<style type="text/css"> |