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<Wire.h> | |
| class GyroSensor{ | |
| private: | |
| // MPU 6050 Register | |
| const int MPU = 0x68; | |
| // Error values for the accelerometer | |
| float AccErrorX, AccErrorY; | |
| // Time variables | |
| float elapsedTime, currentTime, previousTime; |
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
| """ | |
| By: Nalin Angrish | |
| Monte Carlo method of estimating pi. | |
| The theoretical part of this approach can be read from: | |
| https://www.geeksforgeeks.org/estimating-value-pi-using-monte-carlo/ | |
| """ | |
| from numpy.random import uniform |
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
| .ripple { | |
| position: relative; | |
| overflow: hidden; | |
| transform: translate3d(0, 0, 0) | |
| } | |
| .ripple:after { | |
| content: ""; | |
| display: block; | |
| position: absolute; |
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 sitemapgen import Generator # Import the Generator class | |
| generator = Generator(site="http://localhost", output="sitemap.xml", disguise="http://www.example.com") # Create a generator instance where: | |
| # site = The site to generate a sitemap of. (required) | |
| # output = The path of the output file. (required) If the sitemap is not be written to a file, just set it to an empty string. | |
| # disguise = The url to disguise the sitemap for. (optional) | |
| urls = generator.discover() # Discover all URLs possible from the "site" specified during initialization. | |
| # This function returns the URLs discovered but it's return value can also be ignored if the urls don't matter |
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 RemotePyLib import Importer # Import the Importing API | |
| importer = Importer() # Initialize an instance for exporting | |
| importer.execModule('modulename', 'my_key') | |
| # Replace modulename and my_key with their respective values |
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
| name: CI to Docker Hub | |
| on: | |
| push: | |
| branches: [ main ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: |
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
| /* Javadoc style sheet */ | |
| /* | |
| Overall document style | |
| */ | |
| @import url('resources/fonts/dejavu.css'); | |
| body { | |
| background-color: #ffffff; |
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 java.util.Scanner; | |
| // The main class... put it in Employee.java only | |
| public class Employee { | |
| // A non-static variable is used to take a record of an object. | |
| // So, you can create multiple instances of the Employee class | |
| // without interfering with the variables of the other instances. | |
| // A string variable for name. |