We could potentially use Slate API docs generator for the website. The API site could be hosted on GitHub, allowing the users to update the docs as well – or we could host the docs elsewhere.
Overview of Wordpress database tables:
wp_commentmeta
: contains information about comments posted on the Wordpress site, it has four fields:meta_id
,comment_id
,meta_key
, andmeta_value
. Eachmeta_id
is related to acomment_id
. Example of meta information would be the status of a comment.wp_comments
: it contains comment author name, url, email, comment, etc.wp_links
: used to manage blogrollswp_options
: contains most of Wordpress settings such as site url, admin email, default category, posts per page, etc. This table is also used by numerous plugins to store plugins settings.wp_postmeta
: contains meta information about posts, pages, and custom post types. Examples of meta information would be which template to use to display a page, custom fields, and so on. Some plugins also store plugin data in this table.wp_posts
: contains all posts, pages, revisions, and custom post types.
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
/* Body text */ | |
body { | |
font-family: "Fira Sans", sans-serif; | |
} | |
/* Headings */ | |
h1, | |
h2, |
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>Add description text to newsletter</title> | |
</head> | |
<body> | |
<span style="font-size: 0; line-height: 0; width: 0; height: 0; display: none; overflow: hidden;"> | |
Your description here. | |
</span> | |
</body> | |
</html> |
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
// Fisher-Yater Shuffle | |
function shuffle(array) { | |
var n = array.length, t, i; | |
while (n) { | |
i = Math.random() * n | 0; // 0 <= i < n | |
t = array[--n]; | |
array[n] = array[i]; | |
array[i] = t; | |
} | |
return array; |
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
var luckyDraw = ["Thorin", Fili", Kili", Balin", Dwalin", Oin", Gloin", Dori", Nori", Ori", Bifur", Bofur", Bombur"]; | |
function pickRandomPerson(luckyDraw){ | |
var index = Math.floor(Math.random() * (luckyDraw.length -1)); | |
return luckyDraw[index]; | |
} | |
pickRandomPerson(luckyDraw); |
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
// Basic for loop | |
for(var i = 0; i < 5; i++) { | |
// ... | |
} |
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
defaults write -g NSShowAppCentricOpenPanelInsteadOfUntitledFile -bool false |