Skip to content

Instantly share code, notes, and snippets.

View luisenriquecorona's full-sized avatar
😎
I may be slow to respond.

TextKi JS luisenriquecorona

😎
I may be slow to respond.
View GitHub Profile
@luisenriquecorona
luisenriquecorona / Valor de Mayor.html
Created September 26, 2017 19:28
Formulario mayor de 3 numeros
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="http://cdn.jsdelivr.net/foundation/5.0.2/css/foundation.min.css" />
<script src="http://cdn.jsdelivr.net/foundation/5.0.2/js/modernizr.js"></script>
</head>
@luisenriquecorona
luisenriquecorona / Tabla JavaScript.html
Created October 26, 2017 04:54
Ordenar tabla por columnas
<html>
<head>
<title>Ordenar tabla por columnas</title>
</head>
<BODY style="font-family: Verdana">
<p align="center"><b>Ordenar tabla por columnas</b></center><p>
<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Tom Folkes ([email protected]) -->
<!-- Begin
function dates(datea,dateb){
<html>
<head>
<!--Load the AJAX API-->
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script type="text/javascript">
// Load the Visualization API and the piechart package.
google.load('visualization', '1.0', {'packages':['corechart']});
// Set a callback to run when the Google Visualization API is loaded.
@luisenriquecorona
luisenriquecorona / Post-Caracter
Created April 25, 2018 20:19
Post & Character
<meta content="IE=edge" http-equiv="X-UA-Compatible" />
<meta charset="utf-8" />
<meta content="width=device-width, initial-scale=1.0" name="viewport" />
<link href="http://cdn.jsdelivr.net/foundation/5.0.2/css/foundation.min.css" rel="stylesheet" />
<h3>Post y Caracteres</h3>
<div><label for="textPost">Post:</label> <input id="textPost" type="text" value="Escribe aqui" /><br />
<label for="textCaracter">Caracter</label> <input id="textCaracter" type="text" value="Ingresa Caracteres" /></div>
@luisenriquecorona
luisenriquecorona / Rhino.js
Created April 5, 2019 00:53
Example 12-1. A download manager application with Rhino
/*
* A download manager application with a simple Java GUI
*/
// Import the Swing GUI components and a few other classes
importPackage(javax.swing);
importClass(javax.swing.border.EmptyBorder);
importClass(java.awt.event.ActionListener);
importClass(java.net.URL);
importClass(java.io.FileOutputStream);
importClass(java.lang.Thread);
@luisenriquecorona
luisenriquecorona / Node.js
Created April 7, 2019 19:38
12.2.1 Node Example: HTTP Server
// This is a simple NodeJS HTTP server that can serve files from the current
// directory and also implements two special URLs for testing.
// Connect to the server at http://localhost:8000 or http://127.0.0.1:8000
// First, load the modules we'll be using
var http = require('http'); // HTTP server API
var fs = require('fs'); // For working with local files
var server = new http.Server(); // Create a new HTTP server
server.listen(8000); // Run it on port 8000.
// Node uses the "on()" method to register event handlers.
// When the server gets a new request, run this function to handle it.
@luisenriquecorona
luisenriquecorona / Node Module.js
Created April 7, 2019 21:30
Node Example: HTTP Client Utilities Module
//
// An "httputils" module for Node.
//
// Make an asynchronous HTTP GET request for the specified URL and pass the
// HTTP status, headers and response body to the specified callback function.
// Notice how we export this method through the exports object.
exports.get = function(url, callback) {
// Parse the URL and get the pieces we need from it
url = require('url').parse(url);
var hostname = url.hostname, port = url.port || 80;
<!DOCTYPE html>
<html>
<head>
<style>
/* CSS styles for this page */
.reveal * { display: none; } /* Children of class="reveal" are not shown */
.reveal *.handle { display: block;} /* Except for the class="handle" child */
</style>
<script>
// Don't do anything until the entire document has loaded
@luisenriquecorona
luisenriquecorona / ClockJS.html
Created April 9, 2019 00:34
A simple digital clock javascript
<!DOCTYPE html> <!-- This is an HTML5 file -->
<html> <!-- The root element -->
<head> <!-- Title, scripts & styles go here -->
<title>Digital Clock</title>
<script> // A script of js code
// Define a function to display the current time
function displayTime() {
var elt = document.getElementById("clock"); // Find element with id="clock"
var now = new Date(); // Get current time
elt.innerHTML = now.toLocaleTimeString(); // Make elt display it
@luisenriquecorona
luisenriquecorona / Build.xml
Created April 13, 2019 01:38
Ant File build.xml When you run Ant, it produces a reasonable amount of notification as it goes: $ ant compile Buildfile: build.xml Project base dir set to: /home/ian/javasrc/starting Executing Target: init Executing Target: compile Compiling 19 source files to /home/ian/javasrc/starting/build Performing a Modern Compile Copying 22 support files…
<project name="Java jdk Examples" default="compile" basedir=".">
<!-- Set global properties for this build -->
<property name="src" value="."/>
<property name="build" value="build"/>
<!-- Specify the compiler to use.Using jikes is supported but requires rt.jar in classpath. -->
<property name="build.compiler" value="modern"/>
<target name="init">
<!-- Create the time stamp -->
<tstamp/>
<!-- Create the build directory structure used by compile -->