Skip to content

Instantly share code, notes, and snippets.

View neo22s's full-sized avatar

Chema neo22s

View GitHub Profile
@neo22s
neo22s / loadingbar.js
Created June 17, 2014 16:07
loading bar.js
//from https://github.com/peachananr/loading-bar
//I have recoded it a bit since uses a loop each, which is not convenient for me at all
$(function(){
$("a.ajax-load").click(function(e){
e.preventDefault();
button = $(this);
//get the link location that was clicked
pageurl = button.attr('href');
//to get the ajax content and display in div with id 'content'
<?php
/*
EmailAddressValidator Class
http://code.google.com/p/php-email-address-validation/
Released under New BSD license
http://www.opensource.org/licenses/bsd-license.php
@neo22s
neo22s / update220.php
Last active August 29, 2015 14:04
update open classifieds to 2.2.0
<?php
/**
* HTML template for the install
*
* @package Install
* @category Helper
* @author Chema <chema@open-classifieds.com>
* @copyright (c) 2009-2014 Open Classifieds Team
* @license GPL v3
*/
@neo22s
neo22s / update16.php
Last active August 29, 2015 14:04
update open eshop to 1.6
<?php
/**
* HTML template for the install
*
* @package Install
* @category Helper
* @author Chema <chema@open-classifieds.com>
* @copyright (c) 2009-2014 Open Classifieds Team
* @license GPL v3
*/
@neo22s
neo22s / install.php
Created August 8, 2014 10:38
install 2.2.0
<?php
/**
* HTML template for the install
*
* @package Install
* @category Helper
* @author Chema <chema@open-classifieds.com>
* @copyright (c) 2009-2014 Open Classifieds Team
* @license GPL v3
*/
@neo22s
neo22s / update221.php
Created September 17, 2014 08:23
Update OC to 2.2.1
<?php
/**
* HTML template for the install
*
* @package Install
* @category Helper
* @author Chema <chema@open-classifieds.com>
* @copyright (c) 2009-2014 Open Classifieds Team
* @license GPL v3
*/
@neo22s
neo22s / update230.php
Last active August 29, 2015 14:11
update 2.3.0
<?php
/**
* HTML template for the install
*
* @package Install
* @category Helper
* @author Chema <chema@open-classifieds.com>
* @copyright (c) 2009-2014 Open Classifieds Team
* @license GPL v3
@neo22s
neo22s / csvarray.php
Last active August 29, 2015 14:16
CSV to Array
/**
* CSV file to array
* @param file $csv
* @param array $expected_header
* @param boolean $convert_object you want it returned as an object?
* @param string $delimiter
* @param string $enclosure
* @return array
*/
public function csv_to_array($csv,$expected_header=NULL,$convert_object = FALSE, $delimiter = "," , $enclosure = '"')
@neo22s
neo22s / update231.php
Created March 30, 2015 08:02
update to 2.3.1 from 2.1.8 for vince
<?php
/**
* HTML template for the install
*
* @package Install
* @category Helper
* @author Chema <chema@open-classifieds.com>
* @copyright (c) 2009-2014 Open Classifieds Team
* @license GPL v3
@neo22s
neo22s / git.sh
Created April 27, 2015 15:14
git tabs for ubuntu
#bin/bash
folders=(folder1 /my/otherfolder/ /var/www/openclassifieds2/)
for i in "${folders[@]}"
do
foo+=(--tab -e "bash -c 'cd "$i";git pull;git status';bash")
done
gnome-terminal "${foo[@]}"