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 pandas as pd | |
| import os | |
| import matplotlib.pyplot as plt | |
| from datetime import datetime, date | |
| from os.path import join | |
| from os import listdir | |
| def createdf() -> pd.DataFrame: | |
| firstdf = None | |
| for f in listdir("./data"): |
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
| const BEARER_TOKEN = `` | |
| const PROJECT_ID = 288; | |
| const getData = async (api) => { | |
| return new Promise((resolve, reject) => { | |
| const headers = new Headers(); | |
| headers.append("Authorization", `Bearer ${BEARER_TOKEN}`); | |
| const requestOptions = { | |
| method: "GET", |
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 pytest | |
| import json | |
| from fastapi.testclient import TestClient | |
| import sys | |
| from app import app | |
| import time |
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
| const { User, sequelize } = require('../models') | |
| async function usersHandler(event, context) { | |
| const { routeKey } = event | |
| const userId = event?.pathParameters?.id | |
| switch (routeKey) { | |
| case 'GET /api/users': | |
| return { | |
| statusCode: 200, |
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
| const { mailGenerator } = require('./mail'); | |
| const hubspot = require('./hubspot'); | |
| const dateFormat = require('dateformat') | |
| const DATE_FORMAT = "mmmm d, yyyy, h:MM TT" | |
| const mailchimp = require('./mailchimp'); | |
| require("dotenv").config() | |
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 requests | |
| from bs4 import BeautifulSoup | |
| from urllib.parse import urlparse | |
| from urllib.parse import urljoin | |
| # | |
| # Add a found URL to the list of links | |
| # | |
| def add_url(url, href): | |
| #url_parsed = urlparse(href) |
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
| <?php | |
| class wget{ | |
| static function fetch($url){ | |
| return system('wget -r ' . $url, $retval); | |
| } | |
| } |
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.net.*; | |
| import java.io.*; | |
| import java.util.Date; | |
| import java.util.regex.*; | |
| import java.util.*; | |
| import java.sql.*; | |
| import java.util.Date; |
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
| <?php | |
| >----include("../server/bootstrap.php"); | |
| >----define("OAUTH" , ""); | |
| >----define("SPIDER_LAST_UPDATE" , "20110905"); | |
| >----$options = array('http'=>array( | |
| >---->----'method'=>"GET",· |
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
| <?php | |
| include ("html-to-markdown-2.1.1/HTML_To_Markdown.php"); | |
| @include_once ("/opt/omegaup/frontend/server/bootstrap.php"); | |
| $omegaup = $conn; | |
| include_once ("teddy.php"); | |
| $teddy = $db; |
NewerOlder