View data.js
export const data = {
people: [
{
id: 1,
name: 'Mark Hamill',
birthday: 'September 25, 1951',
placeOfBirth: 'Oakland, California, USA',
bio: 'Mark Hamill is best known for his portrayal of Luke Skywalker in the original Star Wars trilogy.',
filmography: [1]
},
View dataFormatHelpers.js
// Helper to format format individual Firebase records
export const formatDataObject = (data) => {
const dataObject = Object.getOwnPropertyNames(data).map(index => data[index]);
return dataObject[0];
}
// Helper to format Firebase data into session listview data
export const formatSessionData = (sessions) => {
let dataBlob = {};
let sectionIds = [];
View styles.css
/* Account Login */
/*-----------------------------------------*/
.app-wrapper {
align-items: center;
display: flex;
justify-content: center;
height: 100vh;
}
View App.css
/* To-Do List */
/*-----------------------------------------*/
#root {
display: flex;
justify-content: center;
height: 100vh;
}
.todo-list {
View dploy.yaml
staging:
scheme: sftp
host: PROJECT-NAME.cp.academy.red
port: 22
user: YOUR PROJECT NAME
pass: YOUR SFTP PASSWORD
check: true
include:
"themes/[YOUR-THEME-NAME]/build/**": "themes/[YOUR-THEME-NAME]/build/"
exclude: [ "README.md", ".gitignore", "themes/[YOUR-THEME-NAME]/.eslintrc", "themes/[YOUR-THEME-NAME]/gulpfile.js", "themes/[YOUR-THEME-NAME]/package.json", "themes/[YOUR-THEME-NAME]/js/**", "themes/[YOUR-THEME-NAME]/sass/**" ]
View .gitignore
# COMMUNITY PROJECT GITIGNORE #
# Ignore OS files #
# =============== #
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
View sql.txt
RENAME table `wp_commentmeta` TO `NEWPREFIX_commentmeta`;
RENAME table `wp_comments` TO `NEWPREFIX_comments`;
RENAME table `wp_links` TO `NEWPREFIX_links`;
RENAME table `wp_options` TO `NEWPREFIX_options`;
RENAME table `wp_postmeta` TO `NEWPREFIX_postmeta`;
RENAME table `wp_posts` TO `NEWPREFIX_posts`;
RENAME table `wp_terms` TO `NEWPREFIX_terms`;
RENAME table `wp_termmeta` TO `NEWPREFIX_termmeta`;
RENAME table `wp_term_relationships` TO `NEWPREFIX_term_relationships`;
RENAME table `wp_term_taxonomy` TO `NEWPREFIX_term_taxonomy`;
View .bash_profile
txtcyn=$'\e[0;36m' # Cyan
txtred=$'\e[0;31m' # Red
txtwht=$'\e[0;37m' # White
txtrst=$'\e[0m' # Text Reset
function parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
export PS1="\u@\h \W\[$txtcyn\]\$(parse_git_branch) \[$txtrst\]\$ " # fancify Terminal prompt
View nav.js
/**
* Navbar Locking
*/
$(function () {
var $window = $(window),
$mainNav = $('.main-navigation'), // nav wrapper element
stickyNavTop = $mainNav.offset().top;
View hide-default-posts.php
<?php
/**
* Plugin Name: Hide Default Posts
* Plugin URI: https://gist.github.com/mandiwise/2ea571ae0773b340af5a
* Description: Hide post-related screens in the WP admin area, including Categories and Tags.
* Version: 1.0.0
* Author: Mandi Wise
* Author URI: http://mandiwise.com
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt