// See article How to setup VIZ blockchain public node // https://control.viz.world/media/@lex/apinode/
server {
server_name node.viz.cx;
# uncomment when node under maintenance
# location / { proxy_pass http://api.viz.world/; }
import FormData from "form-data"; | |
import fs from "node:fs"; | |
import axios from "axios"; | |
export async function generate( | |
originalImagePath: string, | |
resultImageName: string, | |
prompt: string, | |
negativePrompt: string, | |
strength: number, |
/** | |
* Question Link: https://leetcode.com/problems/integer-to-roman/ | |
*/ | |
class Solution { | |
enum Roman: Int, CaseIterable { | |
case I = 1 | |
case IV = 4 | |
case V = 5 | |
case IX = 9 | |
case X = 10 |
public class App { | |
public static void main(String[] args) { | |
for (int i = 0; i <= 999999; i++) { | |
if (isLuckyTicket(i)) { | |
System.out.println(i); | |
} | |
} | |
} | |
private static boolean isLuckyTicket(int ticketNumbers) { |
// (c) 2020 Vladimir Babin | |
// This code is licensed under MIT license. | |
func randomEmoji() string { | |
rand.Seed(time.Now().UnixNano()) | |
// http://apps.timwhitlock.info/emoji/tables/unicode | |
emoji := [][]int{ | |
// Emoticons icons | |
{128513, 128591}, | |
// Transport and map symbols | |
{128640, 128704}, |
exports.handler = async function (event) { | |
return new Promise(function (resolve, reject) { | |
let viz = require("viz-js-lib"); | |
viz.config.set("websocket", "https://node.viz.cx/"); | |
viz.api.getAccounts(["bts.quotes.bank.viz.plus"], function (err, result) { | |
if (err) { | |
reject(Error(err)); | |
} | |
let blockNum = result[0]["custom_sequence_block_num"]; | |
viz.api.getBlock(blockNum, function (err, res) { |
// See article How to setup VIZ blockchain public node // https://control.viz.world/media/@lex/apinode/
server {
server_name node.viz.cx;
# uncomment when node under maintenance
# location / { proxy_pass http://api.viz.world/; }
import Foundation | |
// What if we wait lowercased key, but suddenly has come uppercased? JSONDecoder().keyDecodingStrategy! | |
let json = """ | |
{"NAME": "Vova"} | |
""" | |
struct Model: Decodable { | |
let name: String |
Title: ПО СЦЕНАРИЮ | |
Authors: Михаил Морозов, Лев Калимуллин, Константин Тупицын, Владимир Бабин | |
Draft date: 04/12/2019 | |
Contact: [email protected] | |
.ИНТ. ОФИС. ЗАЛ С ТЕХНИКОЙ – НОЧЬ | |
ЭКРАН НОУТБУКА включается. Название фильма. Печатается сценарий. |
func declOfNum(number int, titles []string) string { | |
cases := []int{2, 0, 1, 1, 1, 2} | |
var currentCase int | |
if number % 100 > 4 && number % 100 < 20 { | |
currentCase = 2 | |
} else if number % 10 < 5 { | |
currentCase = cases[number%10] | |
} else { | |
currentCase = cases[5] | |
} |
<SearchkitAutosuggest | |
placeholder=" " | |
highlightFirst={true} | |
autofocus={true} | |
queryHandler={ | |
new QueryAccessor("q", { | |
queryFields: ["full_address"], | |
queryOptions: {} | |
}) | |
} |