Skip to content

Instantly share code, notes, and snippets.

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'));
<style type="text/css">
.win-listview {
margin: 20px;
border: 2px solid gray;
Width: 500px;
}
.standardItem {
width: 150px;
height: 150px;
0x937407acE220a991b31346F52056Bca2AeC22575
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
{-# 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_"
@IgorShadurin
IgorShadurin / osm_tiles_downloader.py
Last active February 18, 2022 15:09 — forked from tonyrewin/osm_tiles_downloader
Small script to download OSM GeoJSON tiles
#!/usr/bin/python
from sys import argv
import os
import math
import urllib
import random
import os.path
import urllib.request
@IgorShadurin
IgorShadurin / Dockerfile
Last active July 5, 2021 17:32
Dockerfile
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
@IgorShadurin
IgorShadurin / Dockerfile-fairdrive
Last active July 10, 2021 19:36
Fairdrive spin up with Fullstack
#FROM node:16-alpine
FROM node:16
#RUN apk update && apk add --no-cache git
WORKDIR /app
COPY package.json ./
RUN yarn
@IgorShadurin
IgorShadurin / Dockerfile-fairdrive
Last active July 15, 2021 11:07
Fast Fairdrive + Fairstack spin up
# 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 . .
version: "3"
services:
bee-1:
image: ethersphere/bee:stable
restart: unless-stopped
environment:
- BEE_API_ADDR
- BEE_BLOCK_TIME