I hereby claim:
- I am jdiaz5513 on github.
- I am jdiaz5513 (https://keybase.io/jdiaz5513) on keybase.
- I have a public key ASDc_tiOI-PkxN6yA8EOVDwXCxf-W9JYXBfiT020QlAaBQo
To claim this, I am signing this object:
abbr ga "git add" | |
abbr gaa "git add --all" | |
abbr "gbc!" "git for-each-ref --format '%(refname:short) %(upstream:track)' | awk '$2 == \"[gone]\" {print $1}' | xargs -r git branch -D" | |
abbr gbd "git branch -D" | |
abbr gbl "git branch -l" | |
abbr gbm "git branch -m" | |
abbr "gc!" "git commit --amend" | |
abbr gca "git commit --all" | |
abbr "gca!" "git commit --all --amend" | |
abbr gcam "git commit --all -m" |
abbr -a -U -- ga 'git add' | |
abbr -a -U -- gaa 'git add --all' | |
abbr -a -U -- gbd 'git branch -d' | |
abbr -a -U -- gbl 'git branch -l' | |
abbr -a -U -- gbm 'git branch -m' | |
abbr -a -U -- gc 'git commit' | |
abbr -a -U -- gc! 'git commit --amend' | |
abbr -a -U -- gcam 'git commit --all -m' | |
abbr -a -U -- gcan! 'git commit --all --no-edit --amend' | |
abbr -a -U -- gcb 'git checkout -b' |
I hereby claim:
To claim this, I am signing this object:
// Use this helper function in the model's constructor or initialize function to link a state property to | |
// a parent collection, using `linkIdKey` to look up the child state. | |
// Very handy for keeping a sticky reference to a single item in a collection and still maintain | |
// all the goodness of a child state (like change event bubbling). | |
// Derived properties that use the linked state property will work as expected. | |
// | |
// **NOTE:** *DO NOT* use a derived property to accomplish this. While it may seem tempting at first, | |
// ampersand collections do not emit `change` events when the collection itself or any of the | |
// children change (this would be very inefficient). Because of this, the derived property would have | |
// no way to know when to update. This helper fixes that by tracking changes to the collection |
from god import god_module | |
print 'done.' |
#! /usr/bin/env python2 | |
# Requires: PIL, colormath | |
# | |
# Improved algorithm now automatically crops the image and uses much | |
# better color matching | |
from PIL import Image, ImageChops | |
from colormath.color_conversions import convert_color | |
from colormath.color_objects import LabColor | |
from colormath.color_objects import sRGBColor as RGBColor |
# Article for this code: https://medium.com/engineering-workzeit/e21938a2e2ec | |
# | |
# NOTE: mapreduce.operation.ndb is not part of the mapreduce library shipped with App Engine. | |
# See here for an implementation: https://gist.github.com/jdiaz5513/8911930 | |
from google.appengine.ext import ndb | |
class VersionedModel(ndb.Model): | |
new_property = ndb.StringProperty() |
"""NDB-related operations.""" | |
__all__ = ['Put', 'Delete'] | |
from mapreduce.operation import base | |
# pylint: disable=protected-access |
#!/usr/bin/python2 | |
""" | |
This script automates the task of connecting to a running App Engine server, | |
whether it's a local dev_appserver or a live app. | |
If PyQt4 is installed, it will ask for credentials inside a dialog box | |
instead of prompting in the terminal. This is good for shells that do | |
not support getpass (iPython). | |
It will automatically add an import path for a local virtualenv in the app |