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
const map = require('lodash').map | |
function GetShortCode (line) { | |
const shortcodeObj = { | |
shortcode: '', | |
content: '', | |
params: {} | |
} | |
// get shortcode from line (gets everything in between the first set of square brackets) |
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
/** | |
* PROBLEM 1: Access posts by WordPress category using the category name | |
* Category names are stored in the `wp_terms` table | |
* | |
* `wp_terms` has many `wp_term_relationships` and has primary key `term_id` | |
* `wp_term_relationships` belongs to `wp_terms` via key `term_taxonomy_id` | |
* | |
* `wp_post` has many `wp_term_relationships` and has primary key `id` | |
* `wp_term_relationships` belongs to `wp_post` via key `object_id` | |
*/ |
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
#!/bin/bash | |
source ~/.virtualenvs/be_accolade/bin/activate | |
cd ~/code/be_accolade | |
osascript -e 'tell application "Terminal" | |
activate | |
tell application "System Events" to keystroke "t" using command down | |
repeat while contents of selected tab of window 1 starts with linefeed | |
delay 0.01 | |
end repeat | |
do script "source ~/scripts/virtual-env-accolade.sh" in window 1 |
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
<html> | |
<head> | |
<title>NVD3 Tooltip Bug</title> | |
<script src="https://rawgit.com/mbostock/d3/master/d3.js"></script> | |
<script src="https://rawgit.com/novus/nvd3/master/build/nv.d3.js"></script> | |
<link rel="stylesheet" href="https://rawgit.com/novus/nvd3/master/build/nv.d3.css"> | |
</head> | |
<body> | |
<div id="stackedchart"> | |
<svg></svg> |