Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Francis Gonzales FraGoTe

🏠
Working from home
View GitHub Profile
View firebird-knex.js
var connect = require('connect');
var serveStatic = require('serve-static');
connect().use(serveStatic(__dirname)).listen(3030);
var knex = require('./lib/index')({
dialect: 'firebird',
connection: {
host : '127.0.0.1',
user : 'SYSDBA',
password : 'masterkey',
View war.cpp
#include <iostream>
#include <string>
#include <sstream>
using namespace std;
int main()
{
srand(time(0));
cout << "Description: This program plays the card game war between a computer and human player." << endl;
View robert.php
<?php
try {
$lisppg = new Stdclass();
$lisppg->cCodCta = '010210000070';
$client = new SoapClient('http://200.60.60.115:8080/wTest/wTest?WSDL', array('trace' => 1));
$liRp = $client->lisppg($lisppg);
// $functions = $client->__getFunctions();
// $types = $client->__getTypes();
View secondHighest.php
function secondHighest($numbers)
{
$higest = -1;
$secondHighest = -1;
foreach ($numbers as $number) {
if ($higest < $number) {
$higest = $number;
}
}
View poo.cpp
class MiClase
{
public:
int miDato;
void hazAlgo(void)
{
miDato = 5;
}
};
View building.cpp
class Building
{
public:
String address;
int floors;
int currentFloor;
void goUpStairs(void)
{
currentFloor += 1;
}
View building.c
struct Building
{
String address;
int floors;
int currentFloor;
}
void goUpStairs(Building *const MyInstance)
{
MyInstance->currentFloor += 1;
View gist:74e7d6042eec1b7545bffeee019e4576
Building CentroCivico;
CentroCivico->goUpStairs();
Building CentroCivico;
goUpStairs(&CentroCivico);
View cpp.cpp
Building.floors = 5;
Building.currentFloor = 3;
View tiempo2.h
// Declaración de la clase Tiempo.
// Las funciones miembro se definen en tiempo2.cpp
// previene la inclusión múltiple del archivo de encabezado
#ifndef TIEMPO2_H
#define TIEMPO2_H
// Definición del tipo de dato abstracto Tiempo
class Tiempo {