Skip to content

Instantly share code, notes, and snippets.

@jjhoncv
jjhoncv / gist:8547491
Last active January 4, 2016 01:19
git basics

clonar repo

git clone https://github.com/jjhoncv/test.git

Explorer de Linux Crunchbang

thunar ./
@jjhoncv
jjhoncv / SimpleModulo.js
Last active January 4, 2016 03:19 — forked from erikfloresq/modulo.js
Creación de módulos de una forma sencilla
var new_module = function(){
// Variables settings
var st = {
container : '.example',
list : '.list',
years : 0,
numbers : []
},
dom = {},
/**
* Descripcion del Modulo
* @submodule nombre-del-modulo
* @main empresas
* @author Jan Sanchez
*/
yOSON.AppCore.addModule('nombre-del-modulo', function(Sb) {
var afterCatchDom, catchDom, changeFile, clearFields, collection, defaults, dom, st, submitFiles, suscribeEvents;
st = {};
dom = {};
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<canvas id="canvas" width="100" height="100"></canvas>
</body>
/* Some HTML5 Tags
*/
aside, footer, header, nav, section {
display: block;
}
/* Examples
*/
/* Some HTML5 Tags
*/
aside, footer, header, nav, section {
display: block;
}
/* Examples
*/
<?php
define('OFFSET', 268435456);
define('RADIUS', 85445659.4471); /* $offset / pi() */
function lonToX($lon) {
return round(OFFSET + RADIUS * $lon * pi() / 180);
}
function latToY($lat) {

Comprimir archivos incluyendo sus rutas de acceso

Compress

tar -zcvf nombreDelArchivo.tar.gz public/js/modules/all.js frontend/js/application/yoson.js

UnCompress

MySQL lower case table names sensitive in linux

Type in your terminal

sudo vim /etc/mysql/my.cnf

Edit the file adding the entry lower_case_table_names=1 just under the group definition: [mysqld]

MySQL lower case table names sensitive in linux

Type in your terminal

sudo vim /etc/mysql/my.cnf

Edit the file adding the entry lower_case_table_names=1 just under the group definition: [mysqld]