Skip to content

Instantly share code, notes, and snippets.

@bo858585
bo858585 / gist:b33af90c3c84255c62a2
Last active August 29, 2015 14:17
How to work with non-local branches for the warranty of the commit atomicity (possible strategy/man):
# Create branch from master/development/another working branch
git checkout -b branch_name
# Write code
# Add code to commit
# (Use a/u (add/update) options of the interactive command for adding new files/updating existing files)
git add -i
# Create commit
git commit
@bo858585
bo858585 / img.py
Last active December 16, 2015 04:29 — forked from isagalaev/img.py
#!/usr/bin/env python
# coding: utf-8
import os
import random
import glob
from PIL import Image
import numpy
import math
@bo858585
bo858585 / img.py
Created January 20, 2013 15:10 — forked from bobuk/img.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Video of this screencast: https://vimeo.com/57296525
#
#
from __future__ import print_function, division, absolute_import
from PIL import Image as pImage
import numpy
@bo858585
bo858585 / img.py
Last active December 11, 2015 09:19 — forked from isagalaev/img.py
#!/usr/bin/env python
# coding: utf-8
import os
import random
import glob
from PIL import Image
import numpy
import math