Skip to content

Instantly share code, notes, and snippets.

View wildmolasses's full-sized avatar
🎷
sax

Ed Mazurek wildmolasses

🎷
sax
View GitHub Profile
@tynes
tynes / 7702-interop.sol
Created November 17, 2024 15:52
example 7702 smart contract wallet with op stack interop support
// SPDX-License-Identifier: MIT
pragma solidity 0.8.25;
/// @title L2ToL2CrossDomainMessenger
/// @notice Gives replay protection and domain binding to cross chain calls.
interface L2ToL2CrossDomainMessenger {
function crossDomainMessageSender() external view returns (address sender_);
function sendMessage(uint256 _chainid, address _target, bytes memory _data) external;
}
@hex13
hex13 / render-promise-in-react.js
Created November 3, 2016 12:33
how to render promises in React
//License CC0 1.0: https://creativecommons.org/publicdomain/zero/1.0/
class Deferred extends React.Component {
constructor(props) {
super(props);
this.state = {
value: ''
};
}
componentDidMount() {
@soheilhy
soheilhy / nginxproxy.md
Last active April 11, 2025 06:29
How to proxy web apps using nginx?

Virtual Hosts on nginx (CSC309)

When hosting our web applications, we often have one public IP address (i.e., an IP address visible to the outside world) using which we want to host multiple web apps. For example, one may wants to host three different web apps respectively for example1.com, example2.com, and example1.com/images on the same machine using a single IP address.

How can we do that? Well, the good news is Internet browsers