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/env bash | |
| # Go home! | |
| alias home="cd ~" | |
| # Edit custom aliases | |
| alias bashconf="sublime ~/.bash_it/aliases/custom.aliases.bash" | |
| # Edit .bash_profile | |
| alias bashitconf="sublime ~/.bash_profile" |
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
| #################################### | |
| # | |
| # threadpool.py - A utility class to manage a task queue with threads | |
| # Author: Oz Tamir | |
| # | |
| #################################### | |
| import random | |
| import logging | |
| from Queue import Queue |
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
| #include "ObstaclesDetector.h" | |
| using namespace GBCode; | |
| ObstaclesDetector::ObstaclesDetector(double distanceThreshold, double resolution) | |
| { | |
| this->distanceThreshold = distanceThreshold; | |
| this->resolution = resolution; | |
| lidar = new GBLIDAR(); |
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
| #include "GBLIDAR.h" | |
| using namespace GBCode; | |
| GBLIDAR::GBLIDAR(const char * com_path, _u32 com_baudrate) | |
| { | |
| drv = RPlidarDriver::CreateDriver(RPlidarDriver::DRIVER_TYPE_SERIALPORT); | |
| // make connection... | |
| if (IS_FAIL(drv->connect(com_path, com_baudrate))) { |
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
| import struct | |
| FRAME_TYPES = { | |
| 0x0 : 'DATA', | |
| 0x1 : 'HEADERS', | |
| 0x2 : 'PRIORITY', | |
| 0x3 : 'RST_STREAM', | |
| 0x4 : 'SETTINGS', | |
| 0x5 : 'PUSH_PROMISE', | |
| 0x6 : 'PING', |
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
| import random | |
| class Markov(object): | |
| def __init__(self, file): | |
| self.cache = {} | |
| self.file = file | |
| self.words = self.file_to_words() | |
| self.word_size = len(self.words) | |
| self.database() |
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> | |
| <script src="merge_sort.js"></script> | |
| <title>Merge Sort</title> | |
| </head> | |
| <body> | |
| <h1>Merge Sort!</h1> | |
| <span> | |
| Array: <p id="arrayText">[7, 4, 2, 3, 8, 6, 1, 5, -1, 100]</p> |
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/env bash | |
| # Make sure everything is up-to-date | |
| echo "Updating apt" | |
| echo $1 | sudo -S apt-get update | |
| echo $1 | sudo -S apt-get upgrade | |
| # Java SDK installation | |
| echo "Installing Java" | |
| echo $1 | sudo -S apt-get install rsync openjdk-7-jre-headless openjdk-7-jdk |
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
| // linked_string.c | |
| // ------------ | |
| // Simple program that represent strings as a linked list of chars. | |
| // It takes arguments from the command line and print using this method. | |
| // ------------ | |
| // Created by Oz Tamir on 4/9/15. | |
| // ------------ | |
| #include <stdio.h> | |
| #include <stdlib.h> |