Skip to content

Instantly share code, notes, and snippets.

View reverland's full-sized avatar
🌴
get interested in binary analysis

Liu Yuyang reverland

🌴
get interested in binary analysis
View GitHub Profile
@reverland
reverland / test.js
Created April 3, 2023 04:17
test.js
<script>alert(1)</script>
@reverland
reverland / pi.rs
Created February 2, 2019 06:20
get pi with fib
use std::f64;
fn rnd10(f: f64) -> f64 { (f * 1e10).round() / 1e10 }
fn iter_pi(epsilon: f64) -> (i32, f64) {
let mut x = 0.0;
let mut fib = vec![0, 1];
let mut cnt = 0;
loop {
if cnt >= 1 {
let n = fib[2 * cnt - 2] + fib[2 * cnt - 1];
@reverland
reverland / dice.elm
Created September 9, 2016 02:51
build svg with elm
import Html exposing (..)
import Html.App as App
import Html.Events exposing (onClick)
import Svg exposing (circle)
import Svg.Attributes exposing (..)
import Random
-- main
main =
App.program