Skip to content

Instantly share code, notes, and snippets.

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

Alejandro Druetta aledruetta

🏠
Working from home
View GitHub Profile
@feanz
feanz / ValidatorFluent.cs
Created January 23, 2012 12:52
A fluent validation system to do domain model validation
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
using System.Text.RegularExpressions;
using Utilities.Extensions;
using Utilities.Patterns;
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active May 16, 2025 22:55
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@astrojuanlu
astrojuanlu / mathgifs.py
Last active December 29, 2015 12:59
Proof of concept: translations through rotations. Inspired by http://mathgifs.blogspot.com.es/2013/11/translations-through-rotations.html
from __future__ import division
from functools import partial
import numpy as np
from numpy import cos, sin, pi
import matplotlib.pyplot as plt
from matplotlib import animation
from matplotlib import rcParams
@glnds
glnds / less-cheatsheet.md
Last active April 9, 2025 18:45
Less Cheatsheet

Less Cheatsheet

less {filename}

Navigation
SPACE forward one window
b backward one window
d forward half window
@onlurking
onlurking / 2048.py
Last active November 4, 2018 18:57
Python 3 port and PEP8 compliant version of David Sousa's 2048 game, to run install the latest version of pygame with python 3: https://bitbucket.org/pygame/pygame/get/default.zip, original source: https://github.com/davidsousarj/2048py/blob/master/2048py.py
# 2048.py
# Written in python / pygame by DavidSousaRJ - [email protected]
# License: Creative Commons
# Sorry about some comments in portuguese!
import os
import sys
import pygame
from pygame.locals import *
from random import randint