Skip to content

Instantly share code, notes, and snippets.

🙃
creating....

Jairo Alonso Fernández jairoFernandez

🙃
creating....
Block or report user

Report or block jairoFernandez

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View assistance_instaler.sh
#!/usr/bin/env bash
echo "Assistance of installations for devs"
PS3='Please enter your choice: '
options=("Option 1" "Option 2" "Option 3" "Quit")
select opt in "${options[@]}"
do
case $opt in
"Option 1")
echo "you chose choice 1"
View example.rb
require 'rdl'
extend RDL::Annotate
x = [1,2,3,6]
class Maybe
attr_accessor :data
end
class Just < Maybe
View REINCIAR_EXPLORADOR.bat
@ECHO OFF
@ECHO.
echo ===============================================
echo SINCOSOFT
echo ============ Reiniciado explorador ============
@ECHO.
taskkill.exe /F /IM explorer.exe
@ECHO.
CALL :ReiniciarExplorador && (
@jairoFernandez
jairoFernandez / TodoApp-Redux.js
Created Aug 4, 2018
Implementación de un TodoApp con redux, sin reactjs
View TodoApp-Redux.js
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Todo app</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/redux/4.0.0/redux.min.js"></script>
</head>
@jairoFernandez
jairoFernandez / Redux-fundamentals.html
Created Aug 4, 2018
Implementación básica de redux, sin react
View Redux-fundamentals.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/redux/4.0.0/redux.min.js"></script>
</head>
<body>
@jairoFernandez
jairoFernandez / Reactjs-getstarted.html
Last active Aug 4, 2018
Get started with reactjs without node
View Reactjs-getstarted.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<script crossorigin src="https://unpkg.com/react@16/umd/react.development.js"></script>
<script crossorigin src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script>
View console.js
(function () {
if (!console) {
console = {};
}
var old = console.log;
var logger = document.getElementById('log');
console.log = function (message) {
if (typeof message == 'object') {
logger.innerHTML += (JSON && JSON.stringify ? JSON.stringify(message) : String(message)) + '<br />';
} else {
View timer.js
console.time('someFunction');
someFunction(); // run whatever needs to be timed in between the statements
console.timeEnd('someFunction');
@jairoFernandez
jairoFernandez / RestaurarDBSqlServer.sql
Created Apr 20, 2018
Restaura y crea un backup de una base de datos
View RestaurarDBSqlServer.sql
Backup Database ADMINFACELE TO DISK='C:\PRUEBAS\test.bak'
RESTORE DATABASE TDR
FROM DISK='C:\PRUEBAS\test.bak'
GO
@jairoFernandez
jairoFernandez / obtain-ssh-win.sh
Last active May 31, 2018
Obtener la llave ssh en windows!!!
View obtain-ssh-win.sh
ssh-keygen -C "frank@fabrikam.com"
type %userprofile%\.ssh\id_rsa.pub # En cmd.exe
You can’t perform that action at this time.