Skip to content

Instantly share code, notes, and snippets.

@sdustinh
sdustinh / config
Created September 16, 2022 15:33 — forked from pksunkara/config
Sample of git config file (Example .gitconfig) (Place them in $XDG_CONFIG_HOME/git)
[user]
name = Pavan Kumar Sunkara
email = pavan.sss1991@gmail.com
username = pksunkara
[init]
defaultBranch = master
[core]
editor = nvim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
pager = delta
@sdustinh
sdustinh / 20150916155106_create_database.php
Created September 16, 2015 19:46
Bug with cakephp/migrations
<?php
use App\AbstractMigration;
/**
* Creates the products database.
*/
class CreateDatabase extends AbstractMigration
{
/**
* Drops the database.
import math
import Image
import Levenshtein
class BWImageCompare(object):
"""Compares two images (b/w)."""
_pixel = 255