Skip to content

Instantly share code, notes, and snippets.

View arnaldog's full-sized avatar

Arnaldo Ignacio Gaspar Véjar arnaldog

  • UTFSM, IKOM, MULTICAJA, INGENNIA, MAPCITY, MODYO
  • Santiago -- Valparaíso, Chile.
View GitHub Profile
@arnaldog
arnaldog / main.c
Created June 11, 2022 03:02
programa nachin
#include <stdio.h>
#include <stdlib.h>
float porcentaje_covid(float casos_positivos, float casos_totales) {
return casos_positivos * 100 / casos_totales;
}
int menor_comparacion(float temperatura, float menor_temperatura) {
if (temperatura <= menor_temperatura) {
return 2;
@arnaldog
arnaldog / Gustavo.kt
Created August 14, 2020 14:03
gustavo
class Gustavo {
fun isPerales() : Boolean {
return true
}
}
{
id: 4,
name: "Entre pascua y año nuevo con tolerancia"
type: "or" // compuesta
childs: [
{
id: 1,
name: "Tolerancia antes de navidad"
fromDate: "navidad"
timeUnit: -1 dias
@arnaldog
arnaldog / gist:658c5b48e309c1e1ed9e34bf1e7fc3c3
Created August 13, 2020 21:59
modelo tentativo de vigencias
{
id: 4,
name: "Entre pascua y año nuevo con tolerancia"
type: "or" // compuesta
childs: [
{
id: 1,
name: "Tolerancia antes de navidad"
fromDate: "navidad"
timeUnit: -1 dias
@arnaldog
arnaldog / cargaplata.js
Created April 25, 2018 21:23
carga plata en bancoestado
function cargarPlata() {
$div = $('#saldoContablebl');
saldo = parseInt($div.html().replace('.', ''))
step = 1;
setInterval(function(){
@arnaldog
arnaldog / gist:f9368bcfa3a1b149db1a2b1b9dea0c44
Created September 15, 2016 14:26
Paya Generator 3000 Node JS
var express = require('express');
var app = express();
one = [ "La cueca pá los chilenos",
"Si no le gustan las cuecas",
"Hoy es 18 de Septiembre",
"Yo también voy a la ramá",
"Tu creis que no se ná",
"Yo las bailo donde sea",
"No bailo tanto pero tengo otra gracia",
@arnaldog
arnaldog / gist:54bcea4078e76d407c70
Created December 22, 2015 18:14
To Flaite Method
class String
def to_flaite
self.split('').map { |s| (rand(10) %3 == 0) ? s.upcase : s }.join
end
end
"Que pasa compare como estamos".to_flaite
=> "QuE PASa compARe CoMo EStAmOs"
syntax on
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'
@arnaldog
arnaldog / .vimrc
Last active August 29, 2015 14:20
syntax on
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'
@arnaldog
arnaldog / quiero_almorzar
Created December 12, 2014 15:55
a que hora llega el almuerzo?
include <stdio.h>
int main() {
char c;
printf("\n¿Luchus, a que hora llega el almuerzo?\n");
while ((c = getchar()) != EOF) {
if ( c == '\n' ) {
printf("¿Luchus, A que hora llega el almuerzo?\n");
}