Skip to content

Instantly share code, notes, and snippets.

View JackieXu's full-sized avatar

Jackie Xu JackieXu

View GitHub Profile
@JackieXu
JackieXu / Scamp.sol
Last active May 12, 2021 10:11
Get ready for Scamp the Tramp
// SPDX-License-Identifier: Unlicensed
pragma solidity ^0.8.4;
import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import { ERC20 } from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import { SafeERC20 } from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
contract Scamp is ERC20 {
using SafeERC20 for IERC20;
from math import sqrt
def _confidence(ups, downs):
n = ups + downs
if n == 0:
return 0
z = 1.281551565545
p = float(ups) / n
@JackieXu
JackieXu / dabblet.css
Last active February 1, 2016 12:58
Untitled
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
@JackieXu
JackieXu / dabblet.css
Created November 12, 2015 15:28
Untitled
label {
display: block;
}
@JackieXu
JackieXu / dabblet.css
Last active August 29, 2015 14:25
GenX Landing Page
/**
* GenX Landing Page
*/
@import url(http://fonts.googleapis.com/css?family=Raleway);
html {
margin: 0;
padding: 0;
}
@JackieXu
JackieXu / dabblet.css
Last active August 29, 2015 14:20
Design test
/**
* Design test
*/
/** tags **/
body {
margin: 0;
}
/** classes **/
@JackieXu
JackieXu / cooking_the_books.in
Created January 12, 2015 08:42
FBHC Qualification Round Test Data
20
344115361
155530534
0
749039533
621007349
67954827
10
999999999
476018690
@JackieXu
JackieXu / dabblet.css
Created December 13, 2013 13:35
Untitled
table {
background-color: gold;
}
thead {
background-color: crimson;
}
tbody {
background-color: brown;
}
th {
@JackieXu
JackieXu / dabblet.css
Created December 2, 2013 16:36
Example Block for "From Plebein Web User to Noble Web Artisan"
/**
* Example Block for "From Plebein Web User to Noble Web Artisan"
*/
.example-block {
border: 3px solid gold;
border-radius: 5px;
box-shadow: 0 0 15px maroon;
padding: 15px;
position: relative;
width: 500px;
@JackieXu
JackieXu / dabblet.css
Created December 2, 2013 16:33
Example Block for "From Plebein Web User to Noble Web Artisan"
/**
* Example Block for "From Plebein Web User to Noble Web Artisan"
*/
.code-block {
}