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
#[path="models/mutation_assessor.rs"] | |
pub mod mutation_assessor; | |
use reqwest; | |
use reqwest::header::USER_AGENT; | |
use std::fs::File; | |
use std::io::{self, BufRead}; | |
use std::path::Path; | |
extern crate csv; | |
use std::error::Error; | |
use csv::Writer; |
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
#[path="models/financevietstock.rs"] | |
pub mod financevietstock; | |
use reqwest::header::CONTENT_LENGTH; | |
use reqwest::header::CONTENT_TYPE; | |
use reqwest::header::USER_AGENT; | |
use std::collections::HashMap; | |
use crate::financevietstock::FinanceResponse; | |
use std::time::Duration; | |
use async_std::task; |
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
user testing; | |
worker_processes 1; | |
error_log /var/log/nginx/error.log warn; | |
pid /var/run/nginx.pid; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
include /etc/nginx/mime.types; |
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 json | |
import requests | |
class BodyArticle(object): | |
def __init__(self, title, content, tags, published=False, series=None): | |
self.title = title | |
self.published = published | |
self.body_markdown = content |
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 seaborn as sns | |
import matplotlib.pyplot as plt | |
import pandas as pd | |
Year = [2012, 2014, 2016, 2020, 2021, 2022, 2018] | |
Profit = [80, 75.8, 74, 65, 99.5, 19, 33.6] | |
data_plot = pd.DataFrame({"Year": Year, "Profit": Profit}) |
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
version: '3.6' | |
services: | |
docker: | |
image: docker:dind | |
privileged: yes | |
networks: | |
- bagdb | |
volumes: | |
- bags:/bags:ro | |
- scripts:/scripts |
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
package main | |
import ( | |
"encoding/csv" | |
"io/ioutil" | |
"log" | |
"net/http" | |
"os" | |
"strconv" | |
"strings" |
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
package main | |
import ( | |
"bufio" | |
"bytes" | |
"fmt" | |
"io/ioutil" | |
"log" | |
"net/http" | |
"os" |
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
package main | |
import ( | |
"fmt" | |
"generate-queries/utils" | |
"github.com/mxschmitt/golang-combinations" | |
) | |
func main() { |
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
class CreateUser(graphene.Mutation): | |
class Arguments: | |
username = graphene.String(required=True) | |
password = graphene.String(required=True) | |
fullname = graphene.String() | |
ok = graphene.Boolean() | |
user = graphene.Field(lambda: UserInfoSchema) | |
@staticmethod |