Skip to content

Instantly share code, notes, and snippets.

View hhsm95's full-sized avatar

Hugo Sandoval hhsm95

View GitHub Profile
@agnoster
agnoster / README.md
Last active July 13, 2024 19:26
My ZSH Theme

agnoster.zsh-theme

A ZSH theme optimized for people who use:

  • Solarized
  • Git
  • Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)

For Mac users, I highly recommend iTerm 2 + Solarized Dark

@drmalex07
drmalex07 / helloworld-win32-service.py
Created April 12, 2014 20:08
An example Windows service implemented with pywin32 wrappers. #python #windows-service #pywin32
import win32serviceutil
import win32service
import win32event
import servicemanager
import socket
import time
import logging
logging.basicConfig(
filename = 'c:\\Temp\\hello-service.log',
@gorangajic
gorangajic / es6-spread-immutable-cheatsheet.md
Last active April 11, 2024 08:32
es6 spread immutable cheatsheet

update object

var state = {
    id: 1,
    points: 100,
    name: "Goran"
};

var newState = {
@andrewmilson
andrewmilson / file-upload-multipart.go
Last active June 29, 2024 14:07
Golang multipart/form-data File Upload
package main
import (
"net/http"
"os"
"bytes"
"path"
"path/filepath"
"mime/multipart"
"io"
@geog4046instructor
geog4046instructor / leaflet-jquery-geojson-layer-control.js
Last active July 9, 2024 09:11
Leaflet - Control to show/hide a GeoJSON layer that has been added with AJAX through jQuery
/*
* This example shows how to add a layer list to a map where users can check and uncheck boxes to show and hide layers.
* The code below is combined with the code to add geojson to a map, since those two things are often used together.
* The code consists of five main parts:
* 1. Create the basemap(s) and layer(s)
* 2. Get geojson data and run a function to add it to a layer from step 1
* 3. Create the function that will be run in step 2
* 4. Create the list of layers that will appear in the control component
* 5. Create the control component
*/
{
"env": {
"browser": true,
"es6": true,
"node": true
},
"extends": ["airbnb"],
"globals": {
"document": false,
"escape": false,
# Node template
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Runtime data
@gamorales
gamorales / ci.yml
Last active January 1, 2022 04:05
Continous Integration github actions
name: Continous Integration
on:
pull_request:
branches:
- development
jobs:
build: