Skip to content

Instantly share code, notes, and snippets.

View taniarascia's full-sized avatar
💾

Tania Rascia taniarascia

💾
View GitHub Profile
@taniarascia
taniarascia / osx_setup.md
Created November 2, 2016 18:06 — forked from andrewvaughan/osx_setup.md
Mac OSX Setup

Mac OSX Bootstrap

Upgrade to Mavericks

  1. Install Mavericks via the App Store.

Secure The Machine

//Forged Settings
function forged_settings_add_options(){
add_options_page( 'Forged Settings', 'Forged Settings', 'manage_options', 'forged-settings', 'forged_settings_page');
}
add_action( 'admin_menu', 'forged_settings_add_options');
//Create Forged Settings Submenu
function forged_settings_page(){ ?>
<div class = "wrap">
<h1>Forged Theme Settings</h1>
@taniarascia
taniarascia / php-pdo-mysql-crud.md
Created May 4, 2017 15:40 — forked from odan/php-pdo-mysql-crud.md
Basic CRUD operations with PDO and MySQL

Basic CRUD operations with PDO

CRUD = Create, Read, Update, Delete

Open a database connection

$host = '127.0.0.1';
$dbname = 'test';
$username = 'root';
@taniarascia
taniarascia / listAllEventListeners.js
Created October 23, 2018 20:44 — forked from dmnsgn/listAllEventListeners.js
List all event listeners in a document
const listeners = (function listAllEventListeners() {
let elements = [];
const allElements = document.querySelectorAll('*');
const types = [];
for (let ev in window) {
if (/^on/.test(ev)) types[types.length] = ev;
}
for (let i = 0; i < allElements.length; i++) {
const currentElement = allElements[i];