Skip to content

Instantly share code, notes, and snippets.

@mfyance
mfyance / estilos.css
Created August 3, 2017 15:56
Detectando cantidad de hijos
li {
float: left;
}
/* one item */
li:first-child:nth-last-child(1) {
width: 100%;
}
/* two items */
@mfyance
mfyance / git.html
Last active September 8, 2017 01:47
Git / LINUX Tutorial
============ GIT ============
git config credential.helper cache ::: Guardar accesos Git
git config --global -l ::: Ver los datos de configuracion
git config --global user.name "Moises Yance"
git config --global user.email "francisco10myq@gmail.com"
git rm -r --cached . :::: Deja de ver el git archivos que ya han sido comiteados antes
mfyance/miproyecto > git init :::: Inicializo la configuración del git
git:development > git add [archivo1] :::: Seguir el archivo1, para despues poder comitearlos.
git:development > git add . :::: Seguir todo los archivos, para despues comitearlos.
git:development > git add -u . :::: Seguir todo los archivos,omitiendo los archivos borrados.
@mfyance
mfyance / index.js
Created February 17, 2016 01:53
Ubigeo Peru
yOSON.AppCore.addModule("ubigeo_peru", function(Sb) {
var events, suscribeEvents, afterCathDom, beforeCathDom, catchDom, dom, initialize, st, ws, fn;
dom = {};
ws = {
ubigeoPeru : PNSU.servicesPath + "ubigeo_peru",
paises : PNSU.servicesPath + "paises"
};
st = {
paisNacimiento : "select[name='pPaisNacimiento']",
regNacimiento : "select[name='pRegNacimiento']",
@mfyance
mfyance / normalize
Created February 4, 2016 17:31
Bash Css
/*
* Normalize & Reset & Helpers
* @author mfyance
*/
* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
@mfyance
mfyance / appinclouds.md
Last active September 14, 2015 16:31
INCLOUD - PORTAL

INCLOUD - FRONTEND

El desarrollo frontend, se ha llevado bajo el flujo de trabajo Flux 1.0. Para mayor detalle, entrar al github de frontendlabs

Pasos de configuración e instalación

Instalación de herramientas

  1. Instalar Sublime
latinApp.controller("mostrarTareasReportadas", ['$scope', '$http','$timeout',function($scope, $http,$timeout) {
$scope.this_true = true
$scope.this_false = false
new_url = yOSON.baseHost +'json/listar_tareas_reportadas.json'
type = 'GET'
if(yOSON.produccion === 'true'){
type = 'POST'
new_url = yOSON.baseHost +'json/listar_tareas_reportadas.json'
}
@mfyance
mfyance / gist:07a70247ecb65db1a589
Created June 18, 2015 14:56
Ajax - Call Javascript - Coffee
fn =
servicioHorarioLaboral : (servicio) ->
ajax = $.ajax
type: 'GET'
contentType: 'application/json; charset=utf-8'
dataType: 'json'
url: st.url.horarios
data: {}
timeout: 30000
beforeSend: (xhr) ->
@mfyance
mfyance / bashero.txt
Last active August 29, 2015 14:21
Bash Aliases - Bashero en Linux
* Crear un bashero : touch ~/bash_aliases
* Editar bashero creado: gedit ~/bash_aliases
* En el archivo creado, se debe agregar los alias que voy a utilizar. (Ejm. https://gist.github.com/mfyance/a0e31393442c88267306)
* Editar: gedit ~/.bashrc
* Agregar:
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
* Resetear lo editado: source ~/.bashrc
* Hacer la prueba
@mfyance
mfyance / .bash_aliases.txt
Last active August 29, 2015 14:21
Alias para bachero - Linux
#!/bin/bash
# ~/.bash_aliases
#
#aliases for git
alias gam='echo " > git commit -am" && git commit -am '
alias grm='git rm'
alias gmv='git mv'
@mfyance
mfyance / modal.html
Created September 28, 2012 20:44 — forked from makeusabrew/modal.html
Twitter Bootstrap - basic dialog box invocation via JavaScript (2)
<!-- set up the modal to start hidden and fade in and out -->
<div id="myModal" class="modal hide fade">
<!-- dialog contents -->
<div class="modal-body">Hello world!</div>
<!-- dialog buttons -->
<div class="modal-footer"><a href="#" class="btn primary">OK</a></div>
</div>