Skip to content

Instantly share code, notes, and snippets.

View Jorger's full-sized avatar
🏠
Working from home

Jorge Rubiano Jorger

🏠
Working from home
View GitHub Profile
@Jorger
Jorger / theBrickWebBase.js
Last active September 3, 2015 19:56
Script Base, juegos The Brick Web
var FPS = movement.BASE - movement.BASE * ((dataLCD.SPEED - 1) * movement.PERCENTAGE) / 100;
input.ENTER.press = function(event)
{
//Tiempo en que se considerará que el botón está sostenido...
//0 no tendrá está propiedad...
this.timePress = 0.5;
};
input.LEFT.press = function(event)
{
@Jorger
Jorger / index.html
Created July 26, 2013 13:58
A CodePen by Jorger.
<div id = 'circulo'>
<b>Botón</b>
</div>
@Jorger
Jorger / index.html
Created July 26, 2013 13:30
A CodePen by Jorger.
<div class = 'box' id = 'box_1'>
<b>Bloque JH 1</b>
</div>
<div class = 'box' id = 'box_2'>
<b>Bloque JH 2</b>
</div>
<div class = 'box' id = 'box_3'>
<b>Bloque JH 3</b>
</div>
@Jorger
Jorger / index.html
Created July 26, 2013 13:58
A CodePen by Jorger.
<div id = 'circulo'>
<b>Botón</b>
</div>
@Jorger
Jorger / index.html
Created July 26, 2013 14:23
A CodePen by Jorger.
<div id = 'circulo'>
<b>Botón</b>
</div>
var a = [1,2,3,4,5];
var expresion = true;
var resultado = expresion ? (function()
{
var valores = [];
for(var i = 0; i < a.length; i++)
{
valores.push(a[i]);
}
return valores;
let conectaDB = (query, callback) =>
{
//Realiza la operación de conexión a una base de datos por ejemplo...
callback(false, data);
};
//Invocar la función....
conectaDB(query, (err, data) =>
{
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
@Jorger
Jorger / sw.js
Created September 8, 2017 20:10
Ejemplo serviceworker
const PRECACHE = 'trivia-precache-v12';
const RUNTIME = 'runtime';
const PRECACHE_URLS = [
'/',
'/game/img/loader4.gif',
'/game/css/all.css',
'/game/js/build.min.js',
'/game/sound/sounds.mp3',
];