Skip to content

Instantly share code, notes, and snippets.

View jiglesiasabio's full-sized avatar
🕶️
Testing the testing lib

Javier Iglesia Sabio jiglesiasabio

🕶️
Testing the testing lib
View GitHub Profile
@jiglesiasabio
jiglesiasabio / select-country-codes
Created December 1, 2011 18:12
Select options for all countries HTML·FORM
ISO 3166-1 3 Letter Code & Common Name
Some codes are repeated but that's not my fault <codes come from: http://www.andrewpatton.com/countrylist.html>
You may be also interested in looking at: http://unstats.un.org/unsd/methods/m49/m49alpha.htm
<option value="AFG"> Afghanistan </option>
<option value="ALB"> Albania </option>
<option value="DZA"> Algeria </option>
@jiglesiasabio
jiglesiasabio / select-lang-codes
Created December 1, 2011 18:36
Select options for all languages HTML·FORM
http://www.loc.gov/standards/iso639-2/ISO-639-2_utf-8.txt
ISO-639-2 Standard three letter codes for langs
<option value="aar"> Afar </option>
<option value="abk"> Abkhazian </option>
<option value="ace"> Achinese </option>
<option value="ach"> Acoli </option>
<option value="ada"> Adangme </option>
<option value="ady"> Adyghe Adygei </option>
@jiglesiasabio
jiglesiasabio / index.html
Created April 15, 2013 04:29
HTML minimal page, with b/w style and google webfonts
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<title>TITLE</title>
<link href='http://fonts.googleapis.com/css?family=Dancing+Script' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Autour+One' rel='stylesheet' type='text/css'>
<style type="text/css">
body {
@jiglesiasabio
jiglesiasabio / index.html
Created April 15, 2013 04:31
Minimal HTML5 file
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>title</title>
<!--<link rel="stylesheet" href="style.css">-->
<!--<script src="script.js"></script>-->
</head>
<body>
<!-- page content -->
@jiglesiasabio
jiglesiasabio / gist:5867236
Created June 26, 2013 13:09
Minimal HTML5 file with CDN jQuery
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<title>TITLE</title>
<link href='http://fonts.googleapis.com/css?family=Dancing+Script' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Autour+One' rel='stylesheet' type='text/css'>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
<script src="./game.js"></script>
@jiglesiasabio
jiglesiasabio / jQuery cheat
Last active December 19, 2015 01:18
jQuery cheatSheet
$( document ).ready(function() {
console.log( "ready!" );
});
@jiglesiasabio
jiglesiasabio / Symfony2_commands.md
Last active December 20, 2015 02:29
Symfony2 terminal cheat sheet work in process!

Symfony2 terminal cheatSheet

##Symfony

Create bundle

php app/console generate:bundle

List all routes

php app/console router:debug

@jiglesiasabio
jiglesiasabio / SwissKnife.md
Last active December 28, 2015 23:19
General SwissKnife - some handy snippets
cd ~
sudo apt-get update
sudo apt-get install openjdk-7-jre-headless -y
### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch and replace wget link below
# NEW WAY / EASY WAY
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.9.deb
sudo dpkg -i elasticsearch-0.90.9.deb
@jiglesiasabio
jiglesiasabio / php_uppercase_example
Last active August 29, 2015 13:57
PHP Uppercasing
cadena => áéíóú ñ aeiou qwerty
strtoupper => áéíóú ñ AEIOU QWERTY
mb_convert_case => ÁÉÍÓÚ Ñ AEIOU QWERTY