Skip to content

Instantly share code, notes, and snippets.

View AndreiD's full-sized avatar
🦄
🐦

Dan Ξ AndreiD

🦄
🐦
  • in front of a screen
View GitHub Profile
@AndreiD
AndreiD / simplegoapp
Created September 30, 2018 09:18
simpleapp
package gotomobile
import "fmt"
func SayHello() {
fmt.Println("Hello!")
}
func SayHelloWithName(name string) {
fmt.Println("Hello! " + name)
@AndreiD
AndreiD / gistx
Created September 30, 2018 09:19
gistx
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.mex.integrationapp"
minSdkVersion 21
targetSdkVersion 28
versionCode 1
versionName "1.0"
@AndreiD
AndreiD / fdsa
Last active September 30, 2018 09:23
dsfa
package com.mex.integrationapp;
import android.os.CountDownTimer;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import com.squareup.okhttp.Call;
import com.squareup.okhttp.Callback;
import com.squareup.okhttp.OkHttpClient;
@AndreiD
AndreiD / error_500_page
Created October 31, 2018 21:12
cool error 500 page
<!DOCTYPE html><html><head><title>IGN Error 500 - Internal Server Problem</title><link href="https://fonts.googleapis.com/css?family=Montserrat:400,700,800" rel="stylesheet"><style type="text/css">.cta,h1{letter-spacing:.5px}#wrapper,p{line-height:1.5em}h2,section.right{hyphens:auto}*{box-sizing:border-box;text-rendering:optimizeLegibility}body{background:#B97E39;grid-template-columns:auto;color:#252627;font-family:Montserrat,sans-serif}#wrapper{display:grid;font-size:16px;grid-template-columns:4fr 6fr;grid-gap:4em;height:100vh;padding:5% 10%}section.left,section.right{padding:4em 2em;align-self:center}section.left{border-right:1px solid rgba(255,255,255,.5);display:grid}.cta{text-align:center;display:inline-grid;align-content:center;align-items:center;padding:1em 3em;font-size:1em;border-radius:2em;margin-top:32px;text-decoration:none;transition:background .25s ease-in;position:relative;text-transform:uppercase;font-weight:700}.anotherquote,.anotherquote:hover{transition:background .25s ease-in-out}.secondar

Keybase proof

I hereby claim:

  • I am andreid on github.
  • I am andyx (https://keybase.io/andyx) on keybase.
  • I have a public key ASB34CD3TkjaUTEiiA9Oz2nuY-wKpo7JZqTW3bF7JZESXgo

To claim this, I am signing this object:

@AndreiD
AndreiD / poascount_ubuntu.sh
Last active November 27, 2018 11:32
poascount blockchain explorer setup ubuntu 16
#!/bin/bash
set -e
# let'em have colors
end="\033[0m"
red="\033[0;31m"
green="\033[0;32m"
echo -e "${green}......................................${end}"
echo -e "${green}........ Script Version 1.0a .........${end}"
@AndreiD
AndreiD / fedora_setup.md
Last active December 27, 2018 08:54
fedora desktop setup

First we setup the repositories so we can install lots of stuff

sudo dnf install fedora-workstation-repositories -y

Install Rpmfusion repo

sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm -y
@AndreiD
AndreiD / erc20_one_file
Last active August 4, 2023 19:37
ERC20 Token One File
// File: @openzeppelin/contracts/GSN/Context.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.5;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
@AndreiD
AndreiD / stablecoin.sol
Created May 22, 2019 11:16
stablecoin usdt
/**
* Source Code first verified at https://etherscan.io on Tuesday, November 28, 2017
(UTC) */
pragma solidity ^0.4.17;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
@AndreiD
AndreiD / easy_crypto_html_form.html
Created July 29, 2019 13:07
easycrypto_html_form.html
<form action="https://api.easycrypto.in/charge_form" method="POST">
<input type="hidden" name="title" value="Nice Watch #1" />
<input type="hidden" name="description" value="a nice looking watch..." />
<input type="hidden" name="metadata" value="optional metadata here" />
<input type="hidden" name="local_price" value="245" />
<input type="hidden" name="local_currency" value="USD" />
<input type="hidden" name="merchant_id" value="YOUR_MERCHANT_ID" />
<input type="hidden" name="redirect_url" value="https://www.your_website.com/sucess_url" />
<input type="submit" name="submit" value="PAY WITH CRYPTO" class="buttonSubmit" />
</form>