Skip to content

Instantly share code, notes, and snippets.

View klawingco's full-sized avatar
🖖
Hey yo! Fellow hooman

KL Lawingco klawingco

🖖
Hey yo! Fellow hooman
View GitHub Profile
@klawingco
klawingco / CustomSendEmail.cs
Created February 17, 2022 02:23
Custom SFE SendEmail Submit Action
using Sitecore.Diagnostics;
using Sitecore.ExperienceForms.Models;
using Sitecore.ExperienceForms.Mvc.Models.SubmitActions;
using Sitecore.ExperienceForms.Mvc.Processing.SubmitActions;
using Sitecore.ExperienceForms.Processing;
using Sitecore.Reflection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Mail;
@klawingco
klawingco / useFacebook.js
Created January 22, 2021 01:51
useFacebook - a hook for Loading FB Login SDK for React
import { useState, useEffect, useCallback } from 'react';
const initializeFb = () =>
// eslint-disable-next-line no-unused-vars
new Promise((resolve, _reject) => {
if (typeof FB !== 'undefined') {
resolve();
} else {
// eslint-disable-next-line func-names
window.fbAsyncInit = function() {
@klawingco
klawingco / SimpleWalletFactory.sol
Created June 25, 2018 04:49
Simple Wallet Contract Created through Factory Contract
pragma solidity ^0.4.23;
contract Wallet{
address public contractFactoryAddress;
address public walletOwnerAddress;
constructor(address _walletOwnerAddress) public{
contractFactoryAddress = msg.sender;
walletOwnerAddress = _walletOwnerAddress;
@klawingco
klawingco / KengCoin.sol
Created April 25, 2018 02:42
A Sample Wallet Contract Using Solidity (Tested in Ropsen Network / Metamask)
pragma solidity ^0.4.0;
contract KengCoins
{
//Address of the Coin Creator
address public ico_owner;
struct WalletHolder
{
bytes16 fname;