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
use std::collections::{HashMap,VecDeque}; | |
impl Solution { | |
pub fn roman_to_int(s: String) -> i32 { | |
let mut map: HashMap<&str, i32> = HashMap::new(); | |
map.insert("I",1); | |
map.insert("IV",4); | |
map.insert("V",5); | |
map.insert("IX",9); |
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
const { writeFileSync } = require('fs'); | |
let mb = 300 * 1000 * 1000; | |
let buffer = Buffer.alloc(mb); | |
const header = "Header1,Header2,Header3\n"; | |
const row = "Data1A,Data2A,Data3A\n"; |
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
const YAML = require('yamljs'); | |
const { writeFileSync, readFileSync } = require('fs'); | |
let yamlString = readFileSync('./public.yaml').toString(); | |
// parse YAML string | |
nativeObject = YAML.parse(yamlString); | |
const json = JSON.stringify(nativeObject, null, 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
const YAML = require('yamljs'); | |
const { writeFileSync, readFileSync } = require('fs'); | |
let yamlString = readFileSync('./public.yaml').toString(); | |
// parse YAML string | |
nativeObject = YAML.parse(yamlString); | |
const json = JSON.stringify(nativeObject, null, 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
api-partner.spotify.com | |
api.spotify.com | |
cast.scdn.co | |
api-tv.spotify.com | |
apresolve.spotify.com | |
audio-fa.scdn.co | |
cast.scdn.co | |
gew-dealer.spotify.com | |
gew-dealer-ssl.spotify.com | |
labs.spotify.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
import torch | |
import io | |
import flask | |
from torch import autocast | |
from diffusers import StableDiffusionPipeline, StableDiffusionImg2ImgPipeline | |
from flask import Flask, request | |
import numpy as np | |
import PIL |
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
ads.samsungads.com | |
cdn.ss.anno.channel4.com | |
cdn.http.anno.channel4.com | |
toots-a.akamaihd.net | |
s.youtube.com | |
wzrkt.com | |
zee.cws.conviva.com | |
suggestqueries.google.com | |
heads-ak-spotify-com.akamaized.net | |
heads-akp.spotify.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
# Automatically generated on 2022-10-18 UTC from https://codemagic.io/app/634b9fd922ff8dc8a5ba7c19/settings | |
# Note that this configuration is not an exact match to UI settings. Review and adjust as necessary. | |
workflows: | |
default-workflow: | |
name: Default Workflow | |
max_build_duration: 120 | |
environment: | |
groups: | |
- Github |
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
# create function to get the public ip address | |
add_client () { | |
rm -rf $1 | |
mkdir $1 | |
cd $1 | |
wg genkey | tee clientprv | wg pubkey > clientpub |
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
mkdir ~/.config/nvim | |
sudo apt-get update && sudo apt-get upgrade | |
curl https://sh.rustup.rs -sSf | sh -s -- -y | |
source "$HOME/.cargo/env" | |
sudo apt-get install neovim build-essential libtree-sitter-dev pkg-config libssl-dev libxcb-composite0-dev libx11-dev |