Instantly share code, notes, and snippets.

View Solution_48.cpp
#include <vector>
#include <iostream>
#include <cmath>
unsigned long long mulmod(unsigned long long a, unsigned long long b, unsigned long long mdlo) {
a %= mdlo;
b %= mdlo;
if (a <= 0xFFFFFFF && b <= 0xFFFFFFF) {
return (a * b) % mdlo;
}
View keybase.md

Keybase proof

I hereby claim:

  • I am stapiadlt on github.
  • I am stapiadlt (https://keybase.io/stapiadlt) on keybase.
  • I have a public key ASBIwsBsGwajprHITvMh6elBR5_sUsO9PFU2kNfd4zoBKAo

To claim this, I am signing this object:

View FilesSnapshot.xml
<?xml version="1.0" encoding="utf-8"?>
<fileSnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<files>
<file path="C:\ProgramData\chocolatey\lib\imagemagick.tool\ImageMagick-6.9.10-28-portable-Q16-x64.zip.txt" checksum="285795915D2F4C76974415AEFCC034A0" />
<file path="C:\ProgramData\chocolatey\lib\imagemagick.tool\imagemagick.tool.nupkg" checksum="7CBE30830D1B9DA8131E66D1356CD1A6" />
<file path="C:\ProgramData\chocolatey\lib\imagemagick.tool\imagemagick.tool.nuspec" checksum="145F4323F708B9B90A338A3E4C5CBE4D" />
<file path="C:\ProgramData\chocolatey\lib\imagemagick.tool\tools\ChangeLog" checksum="F133D8FDB9EC7EB188C3DE95D622AB46" />
<file path="C:\ProgramData\chocolatey\lib\imagemagick.tool\tools\chocolateyInstall.ps1" checksum="D81C0AC19D1D707706A3FCDA72557DCB" />
<file path="C:\ProgramData\chocolatey\lib\imagemagick.tool\tools\colors.xml" checksum="27D44E4D5E96D3DB5A8CF834B44B69A5" />
<file path="C:\ProgramData\chocolate
View merp.sol
pragma solidity ^0.5.2;
contract StoraTheExplora {
address delegate;
constructor() public {
}
function setBacon(uint a) public {
(bool success, bytes memory data) = delegate.delegatecall(abi.encodePacked(bytes4(keccak256("setBacon(uint256)")), a));
}
View piglatin-challenge.rb
# Pig Latin
# =========
#
# Implement a program that translates from English to Pig Latin.
#
# Pig Latin is a made-up children's language that's intended to be
# confusing. It obeys a few simple rules (below), but when it's spoken
# quickly it's really difficult for non-children (and non-native speakers)
# to understand.
#
View inputs_test.sol
pragma solidity ^0.5.4;
contract AddressSetHaver {
uint[] public testList = [1,2,3,4,5,6];
uint[] public smallList = [5];
function emptySmallList() public {
smallList.length --;
}
View 3box.io Verification
did:muport:Qmam6yqLHyoyV4oRbRXyeqhroEgS3hbn7HeckWKMzG7E3s
View gist:ac744a3e4f508f0105cb90ca5b2f417a
-<enchantment:abyssalcraft:coralium> - Coralium (at level 1, max level 1, treasure: no, enchant id 38)
-<enchantment:abyssalcraft:dread> - Dread (at level 1, max level 1, treasure: no, enchant id 39)
-<enchantment:abyssalcraft:iron_wall> - Iron Wall (at level 1, max level 1, treasure: no, enchant id 41)
-<enchantment:abyssalcraft:light_pierce> - Light Pierce I (at level 1, max level 5, treasure: no, enchant id 40)
-<enchantment:astralsorcery:enchantment.as.nightvision> - Night Vision (at level 1, max level 1, treasure: no, enchant id 42)
-<enchantment:astralsorcery:enchantment.as.smelting> - Scorching Heat (at level 1, max level 1, treasure: no, enchant id 43)
-<enchantment:cofhcore:holding> - Holding I (at level 1, max level 4, treasure: no, enchant id 44)
-<enchantment:cofhcore:insight> - Insight I (at level 1, max level 3, treasure: no, enchant id 45)
-<enchantment:cofhcore:leech> - Leech I (at level 1, max level 4, treasure: no, enchant id 46)
-<enchantment:cofhcore:multishot> - Multishot I (at level 1, m
View xorshiftstar.cs
// Public domain truncating xorshift* PRNG
// No warrant implied; use at your own risk
//
// LICENSE - see end of file for license details. TL;DR public domain
// or MIT if your lawyers don't like public domain
namespace XorShiftStar
{
// Truncating xorshift* 64/32 PRNG
// https://www.jstatsoft.org/v08/i14/paper
View inputs_test.sol
pragma solidity ^0.5.4;
contract AddressSetHaver {
uint[] public testList = [1,2,3,4,5,6];
uint[] public smallList = [5];
function emptySmallList() public {
smallList.length --;
}