Skip to content

Instantly share code, notes, and snippets.

View hyeomans's full-sized avatar
🏠
Working from home

Hector Yeomans hyeomans

🏠
Working from home
View GitHub Profile
Buen día,
De acuerdo con el analítico de partidas presupuestales del segundo trimestre del 2022,
se erogó un total de $64,714,570 en la partida 44101 de la unidad SUBSECRETARÍA DE CONCERTACIÓN del ente obligado.
Con fundamento en el artículo 3 LEY DE TRANSPARENCIA Y ACCESO A LA INFORMACIÓN PÚBLICA DEL ESTADO DE SONORA,
solicito la versión PÚBLICA de las facturas, recibos y/o cualquier otro DOCUMENTO que sustenten
la erogación de recursos públicos para la partida citada.
Entiendáse por DOCUMENTO aquello fundamentado por el Artículo 3 de la LEY DE TRANSPARENCIA Y ACCESO A LA INFORMACIÓN PÚBLICA
package main
import (
"net/http"
"database/sql"
"fmt"
"log"
"os"
)
@hyeomans
hyeomans / Vagrantfile
Created September 15, 2017 06:18
redis vagrant
VAGRANTFILE_API_VERSION = '2'
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = 'bento/ubuntu-16.04'
config.vm.network :private_network, ip: '10.0.15.10'
config.vm.synced_folder 'vagrant/', '/tmp/redis-conf'
config.vm.network :forwarded_port, guest: 6379, host: 6379
config.vm.provider :virtualbox do |vbox|
vbox.customize ['modifyvm', :id, '--memory', 1024]
@hyeomans
hyeomans / graceful.go
Created August 20, 2017 02:30 — forked from peterhellberg/graceful.go
*http.Server in Go 1.8 supports graceful shutdown. This is a small example.
package main
import (
"context"
"log"
"net/http"
"os"
"os/signal"
"time"
)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using System.Web.Http;
namespace StartNewIsDangerous.Controllers
@hyeomans
hyeomans / ReadOnlyPropertyInterface
Created October 5, 2016 19:54
Resharper templates
$TYPE$ $NAME$ { get; }
@hyeomans
hyeomans / gist:f185818e4ccb1dfc0105f5b72505af45
Created September 3, 2016 04:56
Instructions for configuring lostgres for localhost:5433 access on a vagrant ubuntu lucid32 image
# bring up the vagrant box
vagrant up
=> [default] Importing base box 'lucid32'...
# ssh into the vagrant box
vagrant ssh
=> Linux lucid32 2.6.32-38-generic #83-Ubuntu SMP Wed Jan 4 11:13:04 UTC 2012 i686...
# take special note of the ip address of your host machine that ssh reports here
# in my case it is 10.0.2.2, a value that I will use later to allow connections
@hyeomans
hyeomans / windows.h__.js
Created August 26, 2016 03:34
windows.h.js INFINITY
var ffi = require('ffi'),
ref = require('ref'),
Struct = require('ref-struct'),
Library = require('./Library'),
Type = ref.Type,
NULL = ref.NULL,
isNull = ref.isNull;
var groups = ['libs', 'types', 'structs', 'callbacks', 'enums'];
@hyeomans
hyeomans / app.js
Created July 7, 2015 23:35
Using regex to obtain language from url
var express = require('express')
, app = express();
app.get(/\/?(\w{2}-\w{2})?\/details/gi, function(req, res) {
res.send('Hola mundo from:', req.params[0]);
});
var server = app.listen(3000, function () {
var host = server.address().address;
var logs=document.getElementById('logs');
function logIt(msg){
var e=document.createElement('div');
e.innerHTML=msg;
logs.insertBefore(e,logs.firstChild);
}