Skip to content

Instantly share code, notes, and snippets.

View Generickle's full-sized avatar

Erick Dávila Generickle

View GitHub Profile
@Generickle
Generickle / MonacoEditor.html
Created March 27, 2019 17:06
Configuraciones de Monaco Editor
<div class="eArriba25 eAbajo200 col-md-12">
<form method="post">
<div class="text-center alto30">
<button class="btn btn-primary " formaction="/editor">Compilar</button>
<button class="btn btn-primary text-light" formaction="/editor">Debuguear</button>
<button class="btn btn-primary text-light" formaction="/editor">Continuar</button>
<button class="btn btn-primary text-light" formaction="/editor">Siguiente</button>
<button class="btn btn-primary text-light" formaction="/editor">Saltar</button>
<button class="btn btn-primary text-light" formaction="/editor">Automatico</button>
<button class="btn btn-primary text-light" formaction="/editor">Exportar</button>
@Generickle
Generickle / AnalizadorLexico.flex
Created February 6, 2019 17:22
Tutorial Flex y Cup
/*-----------------------PAQUETE-----------------------*/
package olc2.np.lenguaje1.parser;
/*--------------------IMPORTACIONES--------------------*/
import java_cup.runtime.Symbol;
import olc2.np.lenguaje1.convenciones.ManejadorDeErrores;
/*-----------------------INICIO------------------------*/
%%
@Generickle
Generickle / [OLC2]P2-Evaluacion11.c3d
Created January 5, 2019 05:16
Falta arreglar la potencia y la impresión.
P = 0;
H = 0;
S = 0;
void principal(){
t1 = P + 2;
t2 = 12 ^ 2;
t3 = 43 + t2;
if(t3 >= 3) goto L1;
goto L2;
@Generickle
Generickle / ArbolDeDirectorios.vb
Created December 21, 2018 20:42
Explorador de Archivo usando TreeView
'Evento generado por un botón en la interfaz que actualiza el arbol
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
ListarDirectorios(treeView, "C:\Users\Erick Dávila\Documents\USAC\FISQL-OLC2-DIC-2018\OLC2-P1-Servidor-de-Base-de-Datos\OLC2-P1-Servidor-de-Base-de-Datos\bin\Debug\DBMS")
End Sub
'Evento que abre el archivo al darle doble click en una nueva pestaña
Private Sub treeView_DoubleClick(sender As Object, e As EventArgs) Handles treeView.DoubleClick
Try
OpenFileDesdeArbol()
Catch ex As Exception
private DataTable ProductoCartesiano(NodoTabla tabla1, NodoTabla tabla2)
{
DataTable resultado = new DataTable(tabla1.TableName + "-" + tabla2.TableName);
int i = 0;
foreach (DataColumn campo in tabla1.Columns)
{
resultado.Columns.Add(tabla1.TableName+"."+tabla1.Columns[i].ColumnName);
i++;
}
i = 0;