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 deepEqual from "fast-deep-equal"; | |
| import type { ReactNode } from "react"; | |
| import { Form, type FormProps, type FormRenderProps } from "react-final-form"; | |
| import type { z } from "zod"; | |
| export type ZodFormProps< | |
| Schema extends z.ZodObject<any, any, any>, | |
| FormValues = z.TypeOf<Schema>, | |
| InitialFormValues = Partial<FormValues> | |
| > = FormProps<FormValues, InitialFormValues> & { |
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
| // trova l'indice del numero maggiore | |
| int findMaxIndex(int l2[3]) { | |
| int max = 0; | |
| for (int i = 1; i < 3; i++) { | |
| if (l2[max] < l2[i]) { | |
| max = i | |
| } | |
| } | |
| return max; | |
| } |
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 * as Iota from '@iota/core'; | |
| import * as Converter from '@iota/converter'; | |
| const iota = Iota.composeAPI({ | |
| provider: 'https://nodes.devnet.iota.org:443', | |
| }); | |
| const address = 'PGHIZZIPRUAZKWANHUPHXTBVLDCPXHFNVAUOCZUYMWHRCPQQFMAKZZYHLJKILCBJDERFOGMZJFNKELCNC'; | |
| const seed = 'PUEOTSEITFEVEWCWBTSIZM9NKRGJEIMXTULBACGFRQK9IMGICLBKW9TTEVSDQMGWKBXPVCBMMCXWMNPDX'; |
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 xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office"> | |
| <head> | |
| </head> | |
| <body> | |
| </body> | |
| </html> |
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
| from flask import Flask, request, session, redirect | |
| from flask_restplus import Api, Resource, fields | |
| from google.appengine.ext import ndb | |
| from .models import QuestionModel | |
| import re | |
| import google.oauth2.credentials | |
| import google_auth_oauthlib.flow |
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> | |
| <meta charset="utf-8" /> | |
| <script type="text/javascript" src="http://static.robotwebtools.org/EventEmitter2/current/eventemitter2.min.js"></script> | |
| <script type="text/javascript" src="http://static.robotwebtools.org/roslibjs/current/roslib.min.js"></script> | |
| <script type="text/javascript" type="text/javascript"> | |
| var ros = new ROSLIB.Ros({ |
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
| /* | |
| * rosserial PubSub Example | |
| * Prints "hello world!" and toggles led | |
| */ | |
| #include <ros.h> | |
| #include <std_msgs/Int16.h> | |
| #include <std_msgs/Float64.h> | |
| #define BRAKEVCC 0 |
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
| echo "#!/bin/bash" > /opt/hbrain/hbrain-ci/ext/supervisors/ros_serial_init.sh | |
| echo "source /opt/hbrain/hbrain-ci/ext/ros.bash" >> /opt/hbrain/hbrain-ci/ext/supervisors/ros_serial_init.sh | |
| echo "rosrun rosserial_python serial_node.py _port:=/dev/ttyACM0" >> /opt/hbrain/hbrain-ci/ext/supervisors/ros_serial_init.sh |
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 | |
| # license removed for brevity | |
| import rospy | |
| from dotbot_msgs.msg import Led, Input #led | |
| class Node(): | |
| def __init__(self): | |
| self.led_pub = rospy.Publisher('led', Led, queue_size=10) | |
| sub = rospy.Subscriber("input", Input, self.bottone_premuto) |
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 | |
| # license removed for brevity | |
| import rospy | |
| from dotbot_msgs.msg import Led #led | |
| def talker(): | |
| pub = rospy.Publisher('led', Led, queue_size=10) | |
| rospy.init_node('blinker_node') | |
| rate = rospy.Rate(20) |
NewerOlder