Skip to content

Instantly share code, notes, and snippets.

View aquiladev's full-sized avatar
🛩️
Flying

Sergii Bomko aquiladev

🛩️
Flying
View GitHub Profile
pragma solidity ^0.4.23;
contract CText {
struct TextThatDoesNotWork {
bytes32 text;
uint reads;
address addr;
}
TextThatDoesNotWork[] textArray;
pragma solidity ^0.4.24;
contract Tree {
struct Node {
bytes32 name;
bytes32 parent;
bytes32 data;
bytes32[] nodes;
}
class Program
{
static void Main(string[] args)
{
Socket s = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);
IPAddress broadcast = IPAddress.Parse("192.168.1.102");
byte[] sendbuf = Encoding.ASCII.GetBytes("{11111111111}");
IPEndPoint ep = new IPEndPoint(broadcast, 1700);
configFileProvider([configFile(fileId: '912637a4-2e56-4ee5-8ad9-caf59a3029a9', variable: 'VAR1')]) {
sh '''
value=`cat $VAR1`
value="$value\nBRANCH_NAME=$BRANCH_NAME"
value="$value\nGIT_COMMIT=$GIT_COMMIT"
echo $value | tee ./build/.env
'''
}
# Boxstarter options
$Boxstarter.PackageName = "powershell4"
$Boxstarter.RebootOk=$true # Allow reboots?
$Boxstarter.AutoLogin=$true # Save my password securely and auto-login after a reboot
#Special windowsy stuff. see http://boxstarter.org/WinConfig
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions
Disable-InternetExplorerESC
#install some applications
function sumColoredCells(sumRange) {
var activeRange = SpreadsheetApp.getActiveRange();
var activeSheet = activeRange.getSheet();
var formula = activeRange.getFormula();
var rangeA1Notation = formula.match(/\((.*)\)/).pop();
var range = activeSheet.getRange(rangeA1Notation);
var bg = range.getBackgrounds();
var values = range.getValues();
public class SimpleTransactionSigningInterceptor : RequestInterceptor
{
private readonly AccountSignerTransactionManager _signer;
public SimpleTransactionSigningInterceptor(string privateKey, Web3 web3)
{
_signer = new AccountSignerTransactionManager(web3.Client, privateKey);
}
public override async Task<object> InterceptSendRequestAsync<TResponse>(Func<RpcRequest, string, Task<TResponse>> interceptedSendRequestAsync, RpcRequest request, string route = null)
function query(continuationToken) {
var query = new azure.TableQuery();
tableService.queryEntities(
table,
query,
continuationToken,
function(error, result, response) {
//HERE IS LOGIC
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions -EnableShowFullPathInTitleBar
choco install fiddler4
choco install appfabric.caching
choco install 7zip
choco install skype
choco install notepadplusplus
choco install googlechrome
choco install firefox
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions -EnableShowFullPathInTitleBar
choco install visualstudiocode
choco install linqpad
choco install fiddler4
choco install resharper
choco install appfabric.caching
choco install github
choco install 7zip
choco install skype