Author: Tyler Lum
This GitHub Gist outlines the open-source software work that I have done with Open Robotics through the Google Summer of Code program. This includes:
- a high-level description of the work that I have done
Author: Tyler Lum
This GitHub Gist outlines the open-source software work that I have done with Open Robotics through the Google Summer of Code program. This includes:
GHOST local development
For local development of templates for ghost blogs
cd ghost-servernpm install ghost-cli@latest -gThis is about how to split a GitHub pull request, following a real in-the-wild example.
So it happened that I once wanted to fix a bug (#832) on the shelljs repository.
I forked the repository, cloned it and created a new branch called ln-directory-dest. I fixed the bug, created a pull request, and implemented initial review feedback.
At this point, I had added the commits A, B, C, D, E and [F](https://github.com/Loilo/shelljs/commit/946ab48bf5cf9c8aac03407
| import array | |
| import smc.freeimage as fi | |
| from PIL import Image | |
| import numpy as np | |
| import cv2 | |
| def gamma_correction(a, gamma): | |
| return np.power(a, 1/gamma) | |
| def load_hdr(file): |
| # Assumes you have a np.array((height,width,3), dtype=float) as your HDR image | |
| import numpy as np | |
| f = open("xxx.hdr", "wb") | |
| f.write("#?RADIANCE\n# Made with Python & Numpy\nFORMAT=32-bit_rle_rgbe\n\n") | |
| f.write("-Y {0} +X {1}\n".format(image.shape[0], image.shape[1])) | |
| brightest = np.maximum(np.maximum(image[...,0], image[...,1]), image[...,2]) | |
| mantissa = np.zeros_like(brightest) |
| <?php /****************** vi: set fenc=utf-8 ts=4 sw=4 et: ***************** | |
| * | |
| * Copyright : (C) 2011 Nicolas Grekas. All rights reserved. | |
| * Email : [email protected] | |
| * License : http://www.gnu.org/licenses/lgpl.txt GNU/LGPL | |
| * | |
| * This program is free software; you can redistribute it and/or modify | |
| * it under the terms of the GNU Lesser General Public License as | |
| * published by the Free Software Foundation, either version 3 of the | |
| * License, or (at your option) any later version. |