Skip to content

Instantly share code, notes, and snippets.

View pherrymason's full-sized avatar

Raul pherrymason

View GitHub Profile
@pherrymason
pherrymason / phpdoc.php
Created February 6, 2014 12:31
PHP DOC tags
/**
* The short description
*
* As many lines of extendend description as you want {@link element} links to an element
* {@link http://www.example.com Example hyperlink inline link} links to a website
* Below this goes the tags to further describe element you are documenting
*
* @param type $varname description
* @return type description
* @access public or private
@pherrymason
pherrymason / Create sections.html
Created March 7, 2014 09:15
Crear secciones en plantillas de Mailchimp
<!-- // Begin Module: Standard Content \\ -->
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td valign="top">
<div mc:edit="std_content00">
<h2>New Solutions &amp; Updates</h2>
We hope you're having fun in the sun this summer! The Generitech team is excited to announce several powerful new solutions and a few updates to existing products, all available in June! Thanks to our loyal newsletter subscribers for experiencing the difference, month after month.
</div>
</td>
</tr>
@pherrymason
pherrymason / client_secret.json
Created June 17, 2014 17:52
youtube v3 change banner channel example not working
// Place your google client_secret.json file here
@pherrymason
pherrymason / install seo url mod zencart
Last active August 29, 2015 14:03
How to install Simple Seo Url Mod into zencart 1.3.9h
Well I've finally done it - installed the Simple SEO URL module for Zen Cart!
And I thought I'd better document it here before I forget the steps I've done and need to do it again for another cart.
I had avoided doing on previous carts as its a bit fiddly to set up and if you get it wrong it completely breaks your cart (those unhelpful Internal Server Error 500 messages!) But its SO useful for SEO that I thought it worth persevering.
So here goes:
1) Download module from http://wiki.rubikintegration.com/zencart/modules/ssu/installation (or search on ZenCart's Modules page)
NOTE: For PHP4 installs the latest stable release is 2.9 - not 3.x
@pherrymason
pherrymason / sublime-settings-user
Created August 19, 2014 08:35
Sublime Text Packets and Configuration
{
"color_scheme": "Packages/User/Flatland Monokai (SL).tmTheme",
"default_line_ending": "unix",
"detect_indentation": false,
"font_size": 11,
"highlight_line": true,
"show_encoding": true,
"show_line_endings": true,
"ignored_packages":
[
@pherrymason
pherrymason / installation commands
Created August 19, 2014 09:11
installation dev on osx
npm install -g jshint
npm install -g webpack
npm install -g less
npm install -g clean-css
npm install -g grunt-cli
npm install uglify-js -g
# Allow php CLI connect to mysql
# after installing mamp do this
sudo ln -s /Applications/MAMP/tmp/mysql/mysql.sock /tmp/mysql.sock
@pherrymason
pherrymason / readme
Last active August 29, 2015 14:12
Install PhoneGap
Install the following:
npm install -g phonegap
npm install -g cordova
npm install -g plugman
Modify `.zshrc`:
export ANDROID_HOME=~/dev/android/sdk
export PATH="$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools"
@pherrymason
pherrymason / redondear.js
Created July 3, 2013 13:20
Round up number to a given number of decimals.
var num = 192.168;
num = Math.ceil(num * 10) / 10;
console.log(num); // 192.2
@pherrymason
pherrymason / new_gist_file.sh
Created September 30, 2013 09:45
Cómo crear una nueva rama de la nada
git checkout --orphan newbranch
git rm -rf .
<do work>
git add your files
git commit -m 'Initial commit'
@pherrymason
pherrymason / osx_snapshots.md
Created October 22, 2013 07:22
Pantallazo OSX
  • ⌘-Shift-3: Take a screenshot of the screen, and save it as a file on the desktop
  • ⌘-Shift-4, then select an area: Take a screenshot of an area and save it as a file on the desktop
  • ⌘-Shift-4, then space, then click a window: Take a screenshot of a window and save it as a file on the desktop
  • ⌘-Control-Shift-3: Take a screenshot of the screen, and save it to the clipboard
  • ⌘-Control-Shift-4, then select an area: Take a screenshot of an area and save it to the clipboard
  • ⌘-Control-Shift-4, then space, then click a window: Take a screenshot of a window and save it to the clipboard

In Leopard and later, the following keys can be held down while selecting an area (via ⌘-Shift-4 or ⌘-Control-Shift-4):

  • Space, to lock the size of the selected region and instead move it when the mouse moves