Skip to content

Instantly share code, notes, and snippets.

View amirhabibzadeh's full-sized avatar
🏠
Working from home

Amir Habibzadeh amirhabibzadeh

🏠
Working from home
View GitHub Profile
@amirhabibzadeh
amirhabibzadeh / StakeManager.sol
Created March 21, 2021 12:20
StakeManager Flatten version by truffle-flattener
// File: @openzeppelin/contracts/math/SafeMath.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
@amirhabibzadeh
amirhabibzadeh / evand-webhook-php-client-example.php
Created June 17, 2017 09:17
Evand webhook php client example
<?php
/*
* After every ticket purchased, Attendee data will send with POST request to added url in evand panel.
* Add your settings in evand->event panel->webhook section
*/
$attendee = $_POST['data']; //attendee data
$ticket = $attendee['ticket']['data']; //ticket that attendee buyed
$questions = $ticket['questions']['data']; //questions of ticket
$order = $attendee['order']['data']; //order for this attendee