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
#include <Keyboard.h> | |
#include <EEPROM.h> | |
#include <Encoder.h> | |
int CENTER = 0; | |
int UP = 1; | |
int DOWN = 2; | |
int LEFT = 3; | |
int RIGHT = 4; |
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 typing import Dict, Text, Any, List, Union, Optional | |
from rasa_sdk import Tracker | |
from rasa_sdk.executor import CollectingDispatcher | |
from rasa_sdk.forms import FormAction | |
class BudgetForm(FormAction): | |
def name(self) -> Text: |
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 requests | |
import re | |
url = "http://www.zsxsoft.com/php-useragent/test-my-useragent.php" | |
response = requests.get(url) | |
content = response.text | |
print re.search('UserAgent: .*', content).group() |
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
/* | |
LUFA Library | |
Copyright (C) Dean Camera, 2012. | |
dean [at] fourwalledcubicle [dot] com | |
www.lufa-lib.org | |
*/ | |
/* | |
Copyright 2012 Dean Camera (dean [at] fourwalledcubicle [dot] com) |
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
// Handy functions for Lego Mindstorms, written in NXC. | |
// See the end of this file for a sample program that uses these functions. | |
// Author: James McGill, 2011 | |
// | |
// To compile: | |
// /nbc test.nxc -O=test.rxe -v=127 | |
// | |
// To download to the Lego brick: | |
// /nxtcom -U test.rxe |
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
#include <Box2D/Box2D.h> | |
#include <SFML/Audio.hpp> | |
#include <SFML/Graphics.hpp> | |
#include <stdio.h> | |
#include <cstring> | |
#include "DebugDraw.h" | |
#define kBodies 5 | |
b2Body* CreateBody(b2World& world, int32 index) { |