This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct Building | |
{ | |
String address; | |
int floors; | |
int currentFloor; | |
} | |
void goUpStairs(Building *const MyInstance) | |
{ | |
MyInstance->currentFloor += 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Building | |
{ | |
public: | |
String address; | |
int floors; | |
int currentFloor; | |
void goUpStairs(void) | |
{ | |
currentFloor += 1; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MiClase | |
{ | |
public: | |
int miDato; | |
void hazAlgo(void) | |
{ | |
miDato = 5; | |
} | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function secondHighest($numbers) | |
{ | |
$higest = -1; | |
$secondHighest = -1; | |
foreach ($numbers as $number) { | |
if ($higest < $number) { | |
$higest = $number; | |
} | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(DocumentoElectronico) { | |
var _archivos = require('../../classes/Archivos') | |
DocumentoElectronico._obtenerRucColegio = function (cb) | |
{ | |
var knex = DocumentoElectronico.app.getKnex(); | |
return knex.schema.then(function(){ | |
return knex('colegio') | |
.select('RUC'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
web: | |
image: 'redmine:passenger' | |
container_name: 'redmine_web' | |
restart: always | |
ports: | |
- '3000:3000' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |