Skip to content

Instantly share code, notes, and snippets.

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

Ernest Obot legaciespanda

🏠
Working from home
View GitHub Profile
@Chmarusso
Chmarusso / PaymentSplitter.sol
Created June 19, 2022 12:43
This smart contract will automatically divide the payment amount and push it to specified recipients.
pragma solidity ^0.8.15;
// SPDX-License-Identifier: MIT
contract PaymentSplitter {
address payable [] public recipients;
event TransferReceived(address _from, uint _amount);
constructor(address payable [] memory _addrs) {
for(uint i=0; i<_addrs.length; i++){
recipients.push(_addrs[i]);
@nektro
nektro / onion-address-gen.go
Last active July 5, 2024 18:32
Golang Vanity v3 Onion Address Generator
package main
import (
"crypto"
"crypto/ed25519"
"encoding/base32"
"encoding/base64"
"encoding/hex"
"flag"
"fmt"
@myuen-tw
myuen-tw / ccard.js
Created November 26, 2019 22:48
Validate Credit Card with skimmer attached
// Credit Card Validation Javascript
// copyright 12th May 2003, by Stephen Chapman, Felgall Pty Ltd
// You have permission to copy and use this javascript provided that
// the content of the script is not changed in any way.
function validateCreditCard(s) {
// remove non-numerics
var v = "0123456789";
var w = "";
@scriptex
scriptex / firebase.js
Last active February 1, 2021 13:36
Expo and Firebase integration in React Native
/**
* External dependencies
*/
import { auth } from 'react-native-twitter';
import * as firebase from 'firebase';
import Expo, { AuthSession } from 'expo';
/**
* Internal dependencies
*/