Skip to content

Instantly share code, notes, and snippets.

View ataki's full-sized avatar
👨‍💻

Jim Zheng ataki

👨‍💻
View GitHub Profile
@trayvox
trayvox / LShit.sol
Last active July 21, 2022 19:49
Example "exploit" showing how the Layer Zero multisig can rug StarGate by itself
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.10;
import {ERC20, SafeTransferLib} from "solmate/utils/SafeTransferLib.sol";
import {DSTestPlus} from "solmate/test/utils/DSTestPlus.sol";
struct Packet {
uint16 srcChainId;
uint16 dstChainId;
@danopia
danopia / Dockerfile
Last active May 2, 2024 18:30
ERCOT Frozen Grid 2021 - Metrics Reporters
FROM hayd/alpine-deno:1.10.1
WORKDIR /src/app
ADD deps.ts ./
RUN ["deno", "cache", "deps.ts"]
ADD *.ts ./
RUN ["deno", "cache", "mod.ts"]
ENTRYPOINT ["deno", "run", "--unstable", "--allow-net", "--allow-hrtime", "--allow-env", "--cached-only", "--no-check", "mod.ts"]
@guilhermeaiolfi
guilhermeaiolfi / UI.ListView.js
Created January 17, 2012 14:59
ListView widget for ember.js
var get = Ember.get, set = Ember.set;
UI = {};
UI.ListView = Em.CollectionView.extend({
tagName: "ul",
viewName: 'ListViewContainer',
classNames: ["ember-listview"],
attributeBindings: ['tabindex', 'unselectable'],
unselectable: 'on',
tabindex: 0,
mode: 'single',