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 sys | |
import time | |
import socket | |
import json | |
import threading | |
# https://stackoverflow.com/questions/21017698/converting-int-to-bytes-in-python-3 | |
def int_to_bytes(x): | |
return x.to_bytes((x.bit_length() + 7) // 8, 'big') |
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
using System; | |
using EPiServer; | |
using EPiServer.Core; | |
namespace Example.Models.ViewModels | |
{ | |
public class BlockViewModel<TBlock> : IBlockViewModel<TBlock> where TBlock : BlockData | |
{ | |
public TBlock CurrentBlock { get; private set; } |
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
using System.Web.Mvc; | |
using Example.Models.ViewModels; | |
using EPiServer; | |
using EPiServer.Core; | |
using EPiServer.Framework.DataAnnotations; | |
using EPiServer.Web.Mvc; | |
namespace Example.Controllers.Pages | |
{ |