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
public function getViewHelperConfig() | |
{ | |
return array( | |
'invokables' => array( | |
'flashMessenger' => 'TulaBase\View\Helper\FlashMessenger', | |
'custom' => 'TulaInventory\Form\Element\CustomElement', | |
), | |
'factories' => array( | |
'absoluteUrl' => function ($sm) { | |
return new \TulaBase\View\Helper\AbsoluteUrl($sm->getServiceLocator()->get('Request')); |
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
<style type="text/css"> | |
.win-listview { | |
margin: 20px; | |
border: 2px solid gray; | |
Width: 500px; | |
} | |
.standardItem { | |
width: 150px; | |
height: 150px; |
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
0x937407acE220a991b31346F52056Bca2AeC22575 |
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 wvs = 10 ** 8; | |
describe('Spin wheel test suite', async function () { | |
this.timeout(100000); | |
before(async function () { | |
await setupAccounts( | |
{ | |
player1: 2 * wvs, | |
wallet: 1 * wvs |
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
{-# STDLIB_VERSION 3 #-} | |
{-# CONTENT_TYPE DAPP #-} | |
{-# SCRIPT_TYPE ACCOUNT #-} | |
let ServerPublicKey = base58'kYxoGdY4mv5zMYWYJTq3Pp3uLDuLphTYfT8epjYEJvy' | |
let ServerAddress = addressFromStringValue("3MuJmCSEUgBNy1R2gesk59xDbWcuTKwwixW") | |
let RouletteSections = 21 | |
let DataGameNumberKey = "APP_GAME_ID" | |
let DataUserGameKey = "USER_GAME_ID_" |
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
#!/usr/bin/python | |
from sys import argv | |
import os | |
import math | |
import urllib | |
import random | |
import os.path | |
import urllib.request |
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
FROM golang:1.16 AS build | |
WORKDIR /usr/fairos | |
# enable modules caching in separate layer | |
COPY go.mod go.sum /usr/fairos/ | |
RUN go mod download | |
COPY . /usr/fairos/ | |
RUN make binary | |
FROM debian:10.9-slim |
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
#FROM node:16-alpine | |
FROM node:16 | |
#RUN apk update && apk add --no-cache git | |
WORKDIR /app | |
COPY package.json ./ | |
RUN yarn |
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
# before running this Dockerfile, please run 'yarn' && 'yarn build' | |
# because build process for 3 platforms is too long and too frquently broken by network issues | |
FROM node:16 as builder | |
WORKDIR /app | |
COPY build ./ | |
COPY . . |
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" | |
services: | |
bee-1: | |
image: ethersphere/bee:stable | |
restart: unless-stopped | |
environment: | |
- BEE_API_ADDR | |
- BEE_BLOCK_TIME |