Skip to content

Instantly share code, notes, and snippets.

💾

Tania Rascia taniarascia

💾
Block or report user

Report or block taniarascia

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@taniarascia
taniarascia / listAllEventListeners.js
Created Oct 23, 2018 — forked from dmnsgn/listAllEventListeners.js
List all event listeners in a document
View listAllEventListeners.js
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];
@taniarascia
taniarascia / php-pdo-mysql-crud.md
Created May 4, 2017 — forked from odan/php-pdo-mysql-crud.md
Basic CRUD operations with PDO and MySQL
View php-pdo-mysql-crud.md

Basic CRUD operations with PDO

CRUD = Create, Read, Update, Delete

Open a database connection

$host = '127.0.0.1';
$dbname = 'test';
$username = 'root';
View functions.php
//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>
View osx_setup.md

Mac OSX Bootstrap

Upgrade to Mavericks

  1. Install Mavericks via the App Store.

Secure The Machine

You can’t perform that action at this time.