Skip to content

Instantly share code, notes, and snippets.

@azappella
azappella / hamburger-icon.css
Last active August 29, 2015 13:57
Mobile Menu Icon
.icon_hamburger {
width: 1.625em;
height: .313em;
background: black;
}
.icon_hamburger:before,
.icon_hamburger:after {
width: 1.625em;
height: .313em;

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
{
"directory": "components"
}
<!doctype html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>Raycaster Demo - PlayfulJS</title>
</head>
<body style='background: #000; margin: 0; padding: 0'>
<canvas id='display' width='1' height='1' style='width: 100%; height: 100%;' />
<script>
@azappella
azappella / get-cookie.js
Created October 3, 2014 11:34
Get Cookie
@azappella
azappella / functions.php
Created April 20, 2015 12:17
Remove wordpress text editor added p tags around img elements
<?php
// Source: https://css-tricks.com/snippets/wordpress/remove-paragraph-tags-from-around-images/
function filter_ptags_on_images($content){
return preg_replace('/<p>\s*(<a .*>)?\s*(<img .* \/>)\s*(<\/a>)?\s*<\/p>/iU', '\1\2\3', $content);
}
add_filter('the_content', 'filter_ptags_on_images');
# SSH Agent Functions
# Mark Embling (http://www.markembling.info/)
#
# How to use:
# - Place this file into %USERPROFILE%\Documents\WindowsPowershell (or location of choice)
# - Import into your profile.ps1:
# e.g. ". (Resolve-Path ~/Documents/WindowsPowershell/ssh-agent-utils.ps1)" [without quotes]
# - Enjoy
#
# Note: ensure you have ssh and ssh-agent available on your path, from Git's Unix tools or Cygwin.
@azappella
azappella / mklink.psm1
Created July 16, 2012 09:38 — forked from jpoehls/mklink.psm1
Native PowerShell wrapper for MKLINK.
@azappella
azappella / waitUntilExists.js
Created September 25, 2012 21:30
waitUntilExists function - checks to see if an element exists on the page
/*
* Wait Until Exists Version v0.2 - http://javascriptisawesome.blogspot.com/
*
*
* TERMS OF USE - Wait Until Exists
*
* Open source under the BSD License.
*
* Copyright © 2011 Ivan Castellanos
* All rights reserved.