Skip to content

Instantly share code, notes, and snippets.

View gHashTag's full-sized avatar
🦄
dao999nft

Vasilev Dmitrii gHashTag

🦄
dao999nft
View GitHub Profile
yarn dev
yarn run v1.22.19
warning package.json: No license field
$ nodemon index.js --ext js
[nodemon] 3.0.1
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): *.*
[nodemon] watching extensions: js
[nodemon] starting `node index.js`
@gHashTag
gHashTag / contracts...LeelaGame.sol
Created July 21, 2023 07:25
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.18+commit.87f61d96.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract LeelaGame {
uint8 constant MAX_ROLL = 6;
mapping(address => uint8[]) public playerRolls;
event DiceRolled(address indexed roller, uint8 rolled);
[
{
"id": 0,
"name": "Stargate",
"year": "1994",
"image": "https://github.com/react-native-village/react-native-init/raw/master/stargate/images/Stargate.jpg",
"info": "Stargate is a 1994 science fiction adventure film released through Metro-Goldwyn-Mayer (MGM) and Carolco Pictures. Written by Dean Devlin and Roland Emmerich, the film is the first release in the Stargate franchise. Directed by Emmerich, the film stars Kurt Russell, James Spader, Jaye Davidson, Alexis Cruz, Mili Avital, and Viveca Lindfors. The plot centers on the premise of a 'Stargate', an ancient ring-shaped device that creates a wormhole enabling travel to a similar device elsewhere in the universe. The film's central plot explores the theory of extraterrestrial beings having an influence upon human civilization."
},
{
"id": 1,

Амбассадоры

Амбассадор (бренд-амбассадор, посол марки) в маркетинге — это посол бренда, посланник, ведущий официальный представитель интересов бренда среди целевой аудитории.

Амбассадор – известный, популярный и авторитетный, среди целевой группы, человек.

Задачей амбассадора является представление интересов и защита интересов представляемого им бренда среди членов группы, к которой принадлежит амбассадор, популяризация имени бренда, его идеи.

Амбассадор, в отношении марки, имеет ряд прав и обязанностей, оговоренных контрактом. Так основным правом амбассадора является право выступать от имени бренда и пользоваться привилегиями оговоренными контрактом. Среди основных обязанностей: участие в программах продвижения, публичная деятельность в интересах бренда, то или иное участие в многочисленных эвент-мероприятиях, организуемых от имени бренда.

Тридевятое царство DAO

Манифест - DAO - Russia 3.0

«На море на океане есть остров, на том острове дуб стоит, под дубом сундук зарыт, в сундуке — заяц, в зайце — утка, в утке — яйцо, в яйце — игла, — смерть Кощея»

Кощей

Игла Кощея тайна и чем больше тайн в царствах наших государствах, тем больше проблем у народа нашего.

Что такое свобода?

Вопросы JavaScript


Что такое примитивные типы данных в JavaScript?

  • Это данные, которые не являются объектом и не имеют методов
  • Примитивные: string, number, boolean, null, undefined, bigint, symbol
  • Остальные типы: object, function

Что нового привнес в JS стандарт ES6 или ECMAScript2015?


  • Стрелочные функции
  • Классы
import { StyleProp, ViewStyle, TextStyle } from 'react-native'
type sizeType = 'xLarge' | 'large' | 'medium' | 'small'
interface AvatarT {
loading: boolean
avatar: string
onPress?: () => void
size?: sizeType
viewStyle?: StyleProp<ViewStyle>
[
{
"id": 0,
"title": "Mantra Radio",
"url": "http://s6.radioheart.ru:8012/live",
"illustration": "https://github.com/dharmarooms/dharmarooms.github.io/blob/master/data/radioData/Mantra%20Radio.png?raw=true"
},
{
"id": 1,
"title": "Chroma Radio Spa",
type Job
@model
@auth(
rules: [
{allow: owner, ownerField: "owner", operations: [create, update, delete]},
])
{
id: ID!
position: String!
rate: String!
@gHashTag
gHashTag / FakeArray.js
Created May 14, 2020 16:18
Fake Array
import faker from 'faker'
import moment from 'moment'
const { image, name, date, lorem, random } = faker // eslint-disable-line
const createUser = () => {
return {
id: random.uuid(),
title: lorem.words(),
time: moment(date.past()).format('DD-MM-YYYY'),