Skip to content

Instantly share code, notes, and snippets.

View rogerfor's full-sized avatar

Roger Olavarrueth rogerfor

View GitHub Profile
@rogerfor
rogerfor / vital.log
Created June 18, 2020 13:40
log vital
[2020-06-18 09:17:57] VERBOSE[26211][C-0000005b] pbx_builtins.c: Goto (sub-check-cos-privacy,s,17)
[2020-06-18 09:17:57] VERBOSE[26211][C-0000005b] pbx.c: Executing [s@sub-check-cos-privacy:17] NoOp("SIP/102-00000050", "The caller CoS and Callee CoS are the same") in new stack
[2020-06-18 09:17:57] VERBOSE[26211][C-0000005b] pbx.c: Executing [s@sub-check-cos-privacy:18] Goto("SIP/102-00000050", "return") in new stack
[2020-06-18 09:17:57] VERBOSE[26211][C-0000005b] pbx_builtins.c: Goto (sub-check-cos-privacy,s,22)
[2020-06-18 09:17:57] VERBOSE[26211][C-0000005b] pbx.c: Executing [s@sub-check-cos-privacy:22] Return("SIP/102-00000050", "") in new stack
[2020-06-18 09:17:57] VERBOSE[26211][C-0000005b] pbx.c: Executing [105@sub-local-dialing:7] Set("SIP/102-00000050", "DIAL_STRING=SIP/105") in new stack
[2020-06-18 09:17:57] VERBOSE[26211][C-0000005b] pbx.c: Executing [105@sub-local-dialing:8] Set("SIP/102-00000050", "DB(77689c7692b352e7/LASTCALLER/105)=102") in new stack
[2020-06-18 09:17:57] VERBOSE[26211][C-00
@rogerfor
rogerfor / horney.py
Created May 29, 2020 05:48
horner.py
# Python program for
# implementation of Horner Method
# for Polynomial Evaluation
# returns value of poly[0]x(n-1)
# + poly[1]x(n-2) + .. + poly[n-1]
def horner(poly, n, x):
# Initialize result
result = poly[0]
<HTML>
<head>
<!-- Importa las librerias de jQuery y las de Highcharts -->
<script type="text/javascript" src="https://code.jquery.com/jquery.js"></script>
<script type="text/javascript" src="http://code.highcharts.com/highcharts.js"></script>
<script type="text/javascript" src="http://code.highcharts.com/modules/exporting.js"></script>
</head>
<HTML>
<head>
<!-- Importa las librerias de jQuery y las de Highcharts -->
<script type="text/javascript" src="https://code.jquery.com/jquery.js"></script>
<script type="text/javascript" src="http://code.highcharts.com/highcharts.js"></script>
<script type="text/javascript" src="http://code.highcharts.com/modules/exporting.js"></script>
<script type="text/javascript">
var chart;
<HTML>
<BODY>
<meta charset="utf-8">
<?php
require_once("RandomClass.php");
//Creamos un objeto de la clase randomTable
$rand = new RandomTable();
//insertamos un valor aleatorio
$rand->insertRandom();
int n, a = 0;
Console.WriteLine("Digite un numero: ");
n = Convert.ToInt16(Console.ReadLine());
for (int i = 1; i < n; i++)
{
if (n % i == 0)
{
a = a + i;
}
@rogerfor
rogerfor / gist:2893512
Created June 8, 2012 04:05
documento te texto
Codigo Producto: 1
Nombre Producto: xmlnator
Codigo Poliza: 123
Numero Poliza: 123456
Vigencia Inicial: 04/06/2012
Vigencia Final: 04/06/2013
Contratante Nombre: Jose Sosa
Contratante Nit: 445697-7
Contratante Dirección: Estanzuela
Dirección de Cobro: colonia banvi
try
{
string linea;
string[] vectorLinea = null;
List<String> Lista= new List<String>();
using (StreamReader sr = new StreamReader("Ruta"))
{
while ((linea = sr.ReadLine()) != null)
{
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
try {
// TODO add your handling code here:
archivo=""; archivo2="";
int tamano = 0;
int i = 0;
String palabra = new String();
String letra = new String();
int det = 0;
String[] detalle = new String[7];
try
{
int counter = 0;
string linea;
using (StreamReader sr = new StreamReader(@"C:\Users\Familia\Desktop\poliza2.txt"))
{
while ((linea = sr.ReadToEnd()) != null)
{