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 "float-equal.hpp" | |
| #include <iostream> | |
| #include <math.h> | |
| using namespace std; | |
| int main(int argc, char const *argv[]) | |
| { | |
| bool ret; | |
| float a = 0.01; |
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
| /** | |
| * This is an example input a double number array from commandline | |
| * input: [ d1 d2 d3 ] | |
| * ouput: d1 d2 d3 | |
| */ | |
| #include <iostream> | |
| #include <string> | |
| #include <sstream> | |
| using namespace std; |
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 python3 | |
| import matplotlib.pyplot as plt | |
| import numpy as np | |
| from sympy import init_session | |
| init_session() | |
| %matplotlib tk |
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
| # -*- coding: utf-8 -*- | |
| """ | |
| Created on Sat May 3 10:21:21 2014 | |
| @author: umb | |
| """ | |
| import numpy as np | |
| class GMM: |
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/sh | |
| # | |
| # a simple way to parse shell script arguments | |
| # | |
| # please edit and use to your hearts content | |
| # | |
| ENVIRONMENT="dev" |
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 | |
| # | |
| # Example of how to parse short/long options with 'getopt' | |
| # | |
| # getopt recognize the params and put unrecognize params after '--', so '--' is a very important flag for latter work. | |
| # -o for options like: -v -h -n -s | |
| # --long for options like: --verbose --dry-run --help --stack-szie | |
| # and which options followed by a ':' will have format like -s 3, --stack-size 4 or -s=3 --stack-size=4 | |
| # -n: name of the shell script |
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/python3 | |
| # | |
| # usage: python3 docker_descendants.py <image_id> ... | |
| import sys | |
| from subprocess import check_output | |
| def main(images): | |
| image_ids = set(images) |
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 python3 | |
| #coding:utf-8 | |
| # forked from http://www.cnblogs.com/babycool/p/4734819.html | |
| ''' | |
| Python QRCode generator | |
| - transform the input string to general QRCode image | |
| - generate QRCode image with logo image |
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 python | |
| import roslib | |
| roslib.load_manifest("sensor_msgs") | |
| roslib.load_manifest("message_filters") | |
| roslib.load_manifest("rxtools") | |
| import rospy | |
| import rxtools | |
| import rxtools.rosplot | |
| import sys |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.