I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * @brief Mapping functions from Eigen data types to OpenCV | |
| * @author Eugene Khvedchenya <[email protected]> | |
| * @details This header file contains code snippet for easy mapping Eigen types to OpenCV and back with minimal overhead. | |
| * @more computer-vision.talks.com/articles/mapping-eigen-to-opencv/ | |
| * Features: | |
| * - Mapping plain data types with no overhead (read/write access) | |
| * - Mapping expressions via evaluation (read only acess) | |
| * | |
| * Known issues: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <toolSet name="Code Checking"> | |
| <tool name="Flake8" showInMainMenu="true" showInEditor="true" showInProject="true" showInSearchPopup="true" disabled="false" useConsole="true" showConsoleOnStdOut="false" showConsoleOnStdErr="false" synchronizeAfterRun="true"> | |
| <exec> | |
| <option name="COMMAND" value="/usr/local/bin/flake8" /> | |
| <option name="PARAMETERS" value="--max-complexity 10 $FilePath$" /> | |
| <option name="WORKING_DIRECTORY" value="$ProjectFileDir$" /> | |
| </exec> | |
| <filter> | |
| <option name="NAME" value="Filter 1" /> | |
| <option name="DESCRIPTION" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # | |
| # git-is-ancestor, by Simon Whitaker | |
| # | |
| # Suggested usage | |
| # | |
| # Store this file somewhere, make it executable, then alias | |
| # it to git is-ancestor by putting this in your $HOME/.gitconfig: | |
| # | |
| # [alias] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!doctype html> | |
| <html> | |
| <head> | |
| <style> | |
| @-webkit-keyframes relocate { | |
| 0% { top:16px; } | |
| 50% { top: 64px; } | |
| 100% { top: 16px; } | |
| } | |
| video{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/php | |
| <?php | |
| $url = $_ENV['BUILD_URL']; | |
| $res= json_decode(file_get_contents($url . 'api/json')); | |
| $silent = false; | |
| $message = ''; | |
| $action = 'reject'; // default no | |
| switch ($res->result) { | |
| case 'SUCCESS': | |
| $message = 'Build ok!'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * A simple libpng example program | |
| * http://zarb.org/~gc/html/libpng.html | |
| * | |
| * Modified by Yoshimasa Niwa to make it much simpler | |
| * and support all defined color_type. | |
| * | |
| * To build, use the next instruction on OS X. | |
| * $ brew install libpng | |
| * $ clang -lz -lpng16 libpng_test.c |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000