https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
| gRPC Code | HTTP Status Code |
|---|---|
| OK = 0 | 200 OK |
| CANCELLED = 1 | 499 Client Closed Request |
| UNKNOWN = 2 | 500 Internal Server Error |
| INVALID_ARGUMENT = 3 | 400 Bad Request |
https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
| gRPC Code | HTTP Status Code |
|---|---|
| OK = 0 | 200 OK |
| CANCELLED = 1 | 499 Client Closed Request |
| UNKNOWN = 2 | 500 Internal Server Error |
| INVALID_ARGUMENT = 3 | 400 Bad Request |
| # http://www.imagemagick.org/script/command-line-processing.php#geometry | |
| # http://stackoverflow.com/questions/7261855/recommendation-for-compressing-jpg-files-with-imagemagick | |
| # run from raw/ | |
| cd raw/ | |
| for pic in img/covers/*.jpg; | |
| do convert -strip -quality 80% -interlace Plane -gaussian-blur 0.05 -resize "1920>" "$pic" "../$pic"; | |
| done |
| #/bin/bash | |
| #-- Script to automatically convert all git remotes to HTTPS from SSH | |
| # Script will change all the git remotes. | |
| # If you didn't intend to do that, run the other script in this repo. | |
| # Original 1: https://gist.github.com/m14t/3056747 | |
| # Original 2: https://gist.github.com/chuckbjones/9dc6634fe52e56ba45ac | |
| # Thanks to @m14t, @michaelsilver and @chuckbjones. | |
| ssh_to_https(){ | |
| REPO_URL=`git remote -v | grep -m1 "^$1" | sed -Ene's#.*(git@github.com:[^[:space:]]*).*#\1#p'` |
| import requests | |
| import ujson | |
| from pprint import pprint | |
| from random import SystemRandom | |
| from string import digits, ascii_uppercase | |
| from time import sleep | |
| possible_characters = ascii_uppercase + digits | |
| def gp(length=32): |
| Task | Time required | Assigned to | Current Status | Finished |
|---|---|---|---|---|
| Calendar Cache | > 5 hours | - | in progress | - [x] ok? |
| Object Cache | > 5 hours | - | in progress | [x] item1 [ ] item2 |
| Object Cache | > 5 hours | - | in progress |
|
| Object Cache | > 5 hours | - | in progress |
|
As answers to this Stack Overflow question
reveal, using <!--- and ---> or <!-- and --> works (view source by clicking "Raw"):
| class Node: | |
| def __init__(self,val,nxt): | |
| self.val = val | |
| self.nxt = nxt | |
| def prnt(n): | |
| nxt = n.nxt | |
| print n.val | |
| if(nxt is not None): | |
| prnt(nxt) |
| for jpeg in `find . -name "*.JPG"` | |
| do | |
| convert -geometry 28.4090909% $jpeg ${jpeg%.*}.jpg | |
| done |