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
// SPDX-License-Identifier: MIT | |
// USE AT OWN RISK, MADE FOR HACKATHON BY BEGINNER!!!! | |
pragma solidity ^0.8.0; | |
contract LocationBasedWildfirePredictionMarket { | |
uint256 public marketCounter; | |
struct Market { | |
uint256 id; |
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
// SPDX-License-Identifier: MIT | |
// USE AT OWN RISK, MADE FOR HACKATHON BY BEGINNER!!!! | |
pragma solidity ^0.8.0; | |
contract DisasterPropertyInsurance { | |
enum Tier { Bronze, Silver, Gold } | |
uint256 public constant POLICY_DURATION = 2 minutes; | |
uint256 public constant WAITING_PERIOD = 5 seconds; | |
uint256 public constant PREMIUM_INTERVAL = 30 seconds; |
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
/** | |
* Configuration object for API settings. | |
* Contains key constants used throughout the extraction process. | |
*/ | |
const API_CONFIG = { | |
key: "...", // Your Firecrawl API key | |
baseUrl: 'https://api.firecrawl.dev/v1', // Base URL for Firecrawl API endpoints | |
timeout: 30, // Timeout for HTTP requests in seconds | |
maxAttempts: 10, // Maximum number of attempts to poll for job completion | |
initialDelay: 1000 // Initial delay (in ms) before polling for job status |
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
name: Automated PR Review | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
permissions: | |
contents: read | |
pull-requests: read | |
issues: read |
This file has been truncated, but you can view the full file.
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
! | |
" | |
# | |
$ | |
% | |
& | |
' | |
( | |
) | |
* |
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 SimpleITK as sitk | |
import numpy as np | |
import csv | |
import os | |
from PIL import Image | |
import matplotlib.pyplot as plt | |
def load_itk_image(filename): | |
itkimage = sitk.ReadImage(filename) | |
numpyImage = sitk.GetArrayFromImage(itkimage) |