I hereby claim:
- I am vojd on github.
- I am vojd (https://keybase.io/vojd) on keybase.
- I have a public key whose fingerprint is D196 72AC 9A55 4A10 4E93 2D8F 439C 3226 1D02 4B5B
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| (function(){ | |
| 'use strict'; | |
| describe('Auth services test', function(){ | |
| var AuthInterceptor, AuthService, $httpProvider, $q, $window, $location; | |
| var $httpBackend; | |
| beforeEach( function () { | |
| /** |
| #!/bin/bash | |
| if [[ $# -eq 0 ]] ; then | |
| echo 'Please give your project a name' | |
| exit 0 | |
| fi | |
| echo "Creating new clojure-project with libgdx" | |
| git clone [email protected]:vojd/libgdx-skeleton-clj.git | |
| cd libgdx-skeleton-clj |
| # -*- coding: utf-8 -*- | |
| from django.contrib.auth.decorators import login_required | |
| from django.utils.cache import patch_response_headers | |
| from django.utils.decorators import method_decorator | |
| from django.views.decorators.cache import cache_page, never_cache | |
| from django.views.decorators.csrf import csrf_exempt | |
| class NeverCacheMixin(object): | |
| @method_decorator(never_cache) |
| # -*- coding: utf-8 -*- | |
| from django.contrib.auth.decorators import login_required | |
| from django.utils.cache import patch_response_headers | |
| from django.utils.decorators import method_decorator | |
| from django.views.decorators.cache import cache_page, never_cache | |
| from django.views.decorators.csrf import csrf_exempt | |
| class NeverCacheMixin(object): | |
| @method_decorator(never_cache) |
| from PIL import Image | |
| def rotate_image(image): | |
| """ | |
| Rotates an image based on EXIF information. Used to mitigate non-rotated landscape photos taken from iPhone. | |
| :Args ``image`` Image, opened using PIL: | |
| """ | |
| ANGLES = { | |
| 6: -90, |
hdiutil convert -format UDRW -o linuxmint-14.1-mate-dvd-64bit.img linuxmint-14.1-mate-dvd-64bit.iso
mv linuxmint-14.1-mate-dvd-64bit.img.dmg linuxmint-14.1-mate-dvd-64bit.img
diskutil list
| config defaultToCurrentScreen true | |
| config nudgePercentOf screenSize | |
| config resizePercentOf screenSize | |
| # Resize Bindings | |
| bind right:cmd;alt resize +10% +0 | |
| bind left:cmd:alt resize -10% +0 | |
| bind up:cmd;alt resize +0 -10% | |
| bind down:cmd;alt resize +0 +10% | |
| bind right:ctrl;cmd;alt resize -10% +0 bottom-right |
| objects = [ | |
| [{'price' : 100}], | |
| [{'price' : 200}], | |
| [{'price' : 300}] | |
| ] | |
| the_sum = 0 | |
| for o in objects: | |
| for i in o: | |
| the_sum += i['price'] |
| # Autocompletion without case sensitivity | |
| # --------------------------------------- | |
| set completion-ignore-case on | |
| # Word jumping | |
| # ------------ | |
| # CTRL left/right arrow | |
| "\e[1;5D": backward-word | |
| "\e[1;5C": forward-word |