This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export CLICOLOR=1 | |
export LSCOLORS=ExFxBxDxCxegedabagacad | |
export PATH=$PATH:/Users/az/Library/Android/sdk/platform-tools/ | |
export PS1="\[\033[36m\]\u\[\033[32m\]\[\033[97m\]@\[\033[32m\]\h:\[\033[93m\]\w\[\033[33m\]\$(parse_git_branch)\[\033[00m\]$ " | |
export NVM_DIR="$HOME/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"parserOptions": { | |
"ecmaVersion": 6, | |
"ecmaFeatures": { | |
"experimentalObjectRestSpread": true | |
} | |
}, | |
"rules": { | |
"no-alert": "off", | |
"no-array-constructor": "off", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package | |
{ | |
import flash.display.Sprite; | |
import flash.display.StageAlign; | |
import flash.display.StageScaleMode; | |
import flash.events.Event; | |
import flash.events.MouseEvent; | |
import flash.display.MovieClip; | |
public class pathfinding extends Sprite | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package | |
{ | |
public class Astar | |
{ | |
private var _abierto:Array; | |
private var _cerrado:Array; | |
private var _cuadricula:Cuadricula; | |
private var _nodoFinal:Nodo; | |
private var _nodoInicial:Nodo; | |
private var _ruta:Array; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once('conexion.php'); // Definicion de bases de datos y demas boberias | |
$nombre = substr($_POST['nombre'], 0, 49); //Truncar la cadena de texto a los primeros 50 caracteres. | |
$nombre - filter_var($nombre, FILTER_SANITIZE_SPECIAL_CHARS); // Codificar caracteres HTML. | |
$telefono = string_replace(array('+','-','.'), $_POST['telefono']);// Eliminamos caracteres especiales del telefono | |
$telefono = filter_var($telefono, FILTER_SANITIZE_NUMBER_INT); // Nos aseguramos que solamente queden numeros en la cadena de texto | |
$telefono = substr($telefono, -10); // Seleccionamos los ultimos 10 caracteres del numero, ignorando el codigo del pais. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
nombre, | |
telefono | |
FROM | |
Contactos C | |
WHERE | |
C.telefono LIKE "%868%"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
nombre, | |
telefono | |
FORM | |
Contactos C | |
WHERE | |
C.telefono LIKE "868%"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form id="formulario-inepto" action="procesar.php" method="POST"> | |
Nombre: <input type="text" name="nombre" placeholder="Escribe tu Nombre"/> | |
Telefono: <input type="tel" name="telefono" placeholder="(555)-555-5555" /> | |
<button value="Enviar Formulario"></button> | |
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// crea conexion local | |
var receive_lc:LocalConnection = new LocalConnection(); | |
// permite comunicacion entre SWFs entre diferentes dominios | |
receive_lc.allowDomain("*"); | |
// Espera por conexiones entrantes. | |
// Este comando tiene que ejecutarse ANTES de que el otro SWF envie información. | |
receive_lc.connect("_connection1"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
NewerOlder