Skip to content

Instantly share code, notes, and snippets.

View dalesupa22's full-sized avatar

Danny Suárez dalesupa22

View GitHub Profile
@dalesupa22
dalesupa22 / ballot.sol
Created September 29, 2018 19:27
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.4.25+commit.59dbf8f1.js&optimize=false&gist=
pragma solidity ^0.4.0;
contract Ballot {
struct Voter {
uint weight;
bool voted;
uint8 vote;
address delegate;
}
struct Proposal {
@dalesupa22
dalesupa22 / ballot.sol
Created September 29, 2018 19:26
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.4.25+commit.59dbf8f1.js&optimize=false&gist=
pragma solidity ^0.4.0;
contract Ballot {
struct Voter {
uint weight;
bool voted;
uint8 vote;
address delegate;
}
struct Proposal {
@dalesupa22
dalesupa22 / gist:2b5f67afd7a8b3a39714
Created June 9, 2015 14:14
How to edit the default maxPostSize of embedded Tomcat in SpringBoot
@Bean
EmbeddedServletContainerCustomizer containerCustomizer(
) throws Exception {
return (ConfigurableEmbeddedServletContainer container) -> {
if (container instanceof TomcatEmbeddedServletContainerFactory) {
TomcatEmbeddedServletContainerFactory tomcat = (TomcatEmbeddedServletContainerFactory) container;