This file contains 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
from flask import Blueprint | |
web = Blueprint( | |
"web", | |
__name__, | |
url_prefix="/web", | |
template_folder="templates", | |
static_folder="static", | |
) |
This file contains 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 csv | |
unmapped_listings = 0 | |
unmapped_listings_few_matches = 0 | |
with open('lv-listings.csv') as csvfile: | |
data = csv.reader(csvfile, delimiter=',') | |
for row in data: | |
# Listing is missing a direct match loki_product_id. | |
if not row[11]: |
This file contains 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 rospy | |
from mavros_msgs.srv import SetMode | |
from mavros_msgs.srv import CommandBool | |
from mavros_msgs.srv import CommandTOL | |
import time | |
rospy.init_node('mavros_takeoff_python') | |
rate = rospy.Rate(10) |
This file contains 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 | |
# ROS | |
import rospy | |
from mavros_msgs.msg import OverrideRCIn | |
from mavros_msgs.srv import SetMode | |
from mavros_msgs.srv import CommandBool | |
from mavros_msgs.srv import CommandTOL | |
# System |
This file contains 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 | |
# ROS | |
import rospy | |
from mavros_msgs.srv import SetMode | |
from mavros_msgs.srv import CommandBool | |
# System | |
import time |
This file contains 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
# Sellers | |
curl -X POST -s -o /dev/null -w "%{http_code} - POST - %{url_effective}\n" --data "name=Seller X&contact[company_name]=Seller X, Inc&contact[email]=sellerx@gmail.com" dev.volcano.com/api/sellers | |
curl -X GET -s -o /dev/null -w "%{http_code} - GET - %{url_effective}\n" dev.volcano.com/api/sellers/1 | |
curl -X PUT -s -o /dev/null -w "%{http_code} - PUT - %{url_effective}\n" --data "name=Seller XY" dev.volcano.com/api/sellers/1 | |
# Seller Callbacks | |
curl -X GET -s -o /dev/null -w "%{http_code} - GET - %{url_effective}\n" dev.volcano.com/api/sellers/1/callbacks | |
curl -X POST -s -o /dev/null -w "%{http_code} - POST - %{url_effective}\n" --data "event=product.meta.update&url=http://localhost/api/webhook" dev.volcano.com/api/sellers/1/callbacks | |
curl -X GET -s -o /dev/null -w "%{http_code} - GET - %{url_effective}\n" dev.volcano.com/api/sellers/1/callbacks/1 | |
curl -X PUT -s -o /dev/null -w "%{http_code} - PUT - %{url_effective}\n" --data "url=http://loalhost/api/webhook/update" dev.volcano.com/api/sellers/1/callbac |
This file contains 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
<?php | |
/** | |
* Contains methods for interacting with a deck of cards. | |
* | |
* @author Daniel Sposito <daniel.g.sposito@gmail.com> | |
*/ | |
class Deck | |
{ | |
/** |
This file contains 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
<?php | |
/** | |
* Contains methods for interacting with numbers. | |
* | |
* @author Daniel Sposito <daniel.g.sposito@gmail.com> | |
*/ | |
class Number | |
{ | |
/** |