This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script>alert(1)</script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |