Skip to content

Instantly share code, notes, and snippets.

View ernestohs's full-sized avatar
🐙
coding in progress

/dev/10x ernestohs

🐙
coding in progress
View GitHub Profile
public int AddTwoIfNumberIsTwo(int number) {
if (number == 2)
{
number += 2;
}
return number;
}
@ernestohs
ernestohs / main.c
Created December 2, 2024 16:56
Ultimate Tic-Tac-Toe Bundle
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <termios.h>
#include <unistd.h>
#define BOARD_SIZE 3
#define EMPTY ' '
#define PLAYER_X 'X'
#define PLAYER_O 'O'
@ernestohs
ernestohs / new-computer-setup.ps1
Created June 30, 2022 03:27
For boxstarter.org to be consumed
##########################################################################
# Disable UAC (temporarily)
##########################################################################
Disable-UAC
##########################################################################
# Windows settings
##########################################################################
@ernestohs
ernestohs / sheep.mapreduce.js
Created September 11, 2018 01:53
Counting sheep
function(keys, sheeps, rereduce) {
return sum(sheeps);
}
@ernestohs
ernestohs / books.md
Last active June 24, 2018 01:59
Books to read to my son
  • Readed

    The Wonderful Wizard of Oz

    by Lyman Frank Baum

    photo

  • Readed

    The last unicorn

    by Peter S. Beagle

@ernestohs
ernestohs / computer-specs.md
Last active June 4, 2018 18:18
My Computer Specs

Computer Specs

Component Model Specs Notes
RAM Memory DDR4-SDRAM 32 GB 4 x 8 GB / 2 x16 GB
Processor Intel Core i7 3.70 GHz 12M Cache, up to 4.70 GHz
Memory Speed 2133.00
Hard Drive 1000 GB HDD
Graphics CP Geforce GTX
@ernestohs
ernestohs / Lista.md
Last active January 31, 2022 03:20
👪 Cosas que quiero hacer con mi hijo
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
.mylivechat_inline {
resize: none;
font-size: 13px;
swagger: '2.0'
info:
title: Eldo SMPP API
description: Send SMS messages via SMPP using queue(s)
version: "1.0.0"
# the domain of the service
# host: api.uber.com
# array of all schemes that your API supports
# schemes:
# - http