Skip to content

Instantly share code, notes, and snippets.

View juanmaguitar's full-sized avatar

JuanMa juanmaguitar

View GitHub Profile
@juanmaguitar
juanmaguitar / debug-hooks.php
Created March 22, 2016 16:40
debug hooks wordpress
<?php
/* From => http://www.rarst.net/wordpress/debug-wordpress-hooks/ */
function dump_hook( $tag, $hook ) {
ksort($hook);
echo "<pre>>>>>>\t$tag<br>";
foreach( $hook as $priority => $functions ) {

English (programming) symbol names

  • [] brackets
  • () parentheses, round brackets
  • {} curly braces
  • <> chevrons, angle brackets
  • ; semi-colon
  • : colon
  • . period, dot
  • , comma
@juanmaguitar
juanmaguitar / frontend-bookmarks.md
Created March 7, 2016 09:01
frontend bookmarks
@juanmaguitar
juanmaguitar / inheritance.js
Created February 10, 2016 20:11
javascript-examples
var Person = function(x){
if(x){this.fullName = x};
};
Person.prototype.whatIsMyFullName = function() {
return this.fullName;
}
var cody = new Person('cody lindley');
var lisa = new Person('lisa lindley');
console.log(cody.whatIsMyFullName(), lisa.whatIsMyFullName());
# @gf3’s Sexy Bash Prompt, inspired by “Extravagant Zsh Prompt”
# Shamelessly copied from https://github.com/gf3/dotfiles
if [[ $COLORTERM = gnome-* && $TERM = xterm ]] && infocmp gnome-256color >/dev/null 2>&1; then
export TERM=gnome-256color
elif infocmp xterm-256color >/dev/null 2>&1; then
export TERM=xterm-256color
fi
if tput setaf 1 &> /dev/null; then
@juanmaguitar
juanmaguitar / 0_reuse_code.js
Last active September 12, 2016 11:04
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@juanmaguitar
juanmaguitar / NotesCodeInstituteDemo.md
Last active January 8, 2016 06:45
Notes CodeInstitute Demo

Introduction to angular.js

Clear ideas about ANGULAR

  • structural framework (made by Google)
  • extend HTML syntax (template language)
  • implementation of MVC design pattern (MVVM)
  • allow us to separate out components (pieces) of an app -> controllers, services, directives, constants, filters, templates
  • framework (angular) handles the initialization and interaction of these pieces
  • Modules
@juanmaguitar
juanmaguitar / SassMeister-input-HTML.html
Last active August 29, 2015 14:15
Generated by SassMeister.com.
<button class="in_progress">get videos</button >
@juanmaguitar
juanmaguitar / TinyCore_QuickStartGuide.md
Last active December 15, 2015 08:39
TinyCore - Quick Start Guide

TinyCore.js

Version 0.4.1

Overview

A tiny modular architecture framework in JavaScript.

Inspiration : "Scalable JavaScript Application Architecture", by Nicholas C. Zakas.

data:text/html, <style type="text/css">#e{position:absolute;top:0;right:0;bottom:0;left:0;}</style><div id="e"></div><script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("e");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/javascript");</script>