Skip to content

Instantly share code, notes, and snippets.


Adan Alvarado aalvarado

Block or report user

Report or block aalvarado

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
aalvarado /
Created Feb 23, 2019
Naive circular queue in Rust
use std::fmt;
struct CircularQueue<T> {
max: usize,
list: Vec<T>,
impl <T> CircularQueue<T> where T: std::string::ToString {
pub fn new(max: usize) -> CircularQueue<T> {
View .ctags
View esc-caps-toggle.json
"title": "Escape enhancements",
"rules": [
"description": "Escape toggles capslock if enabled",
"manipulators": [
"type": "basic",
"from": {
"key_code": "escape",
struct Person;
impl Person {
fn hello(&self) -> &'static str {
return "hello";
fn main() {
println!("Hello, world!");
let p = Person;
aalvarado /
Created Sep 29, 2015 — forked from jirutka/
Some convenient scripts to manage ownerships and privileges in PostgreSQL.
# The MIT License
# Copyright 2014 Jakub Jirutka <>.
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
View vim_script
# executes command by reading current buffer
exe "%!" join(getbufline(1,"$"),"$")
aalvarado / fizzbuzz.rb
Created Jun 1, 2015
FizzBuzz Ruby without any integer modulus or division
View fizzbuzz.rb
limit = 100
fizz = ['']*2 << 'fizz'
buzz = ['']*4 << 'buzz'
(1..limit){ |n| puts n.join(' ') }
View presentation
* Acerca de Git
- ¿Por que es necesario?
- Otras opciones en control de versiones
- Distribuidos y centralizados
* Recursos
- Pro Git book.
- StackOverflow
- Internet
aalvarado / gist:df2c783f76938cba8408
Created Apr 3, 2015
Pensamientos acerca de la violencia
View gist:df2c783f76938cba8408
Ser inclusivo y tolerante hacia todos los gustos es un buen camino para extender tu circulo de empatia mas alla de familiares y amigos.
Al hacer esto, hay resultados que benefician a la mayoria de forma mas igualitaria. Hay sumas positivas en el cooperacio
You can’t perform that action at this time.