Skip to content

Instantly share code, notes, and snippets.

@danielefrisanco
danielefrisanco / webkit-scrollbar.txt
Last active February 7, 2024 08:14
mostrare sempre la scroll bar su android
::-webkit-scrollbar {
-webkit-appareance: none;
}
::-webkit-scrollbar:vertical {
weight: 12px;
}
::-webkit-scrollbar:horizontal {
height: 12px;
}
@danielefrisanco
danielefrisanco / helloworld.html
Created November 19, 2021 13:13
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.17+commit.d19bba13.js&optimize=false&runs=200&gist=
<!-- https://www.youtube.com/watch?v=mXDwD0Qx4II&ab_channel=Shobhit -->
<!<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>deploying message to Polygon</title>
<script src="https://cdn.jsdelivr.net/npm/web3@latest/dist/web3.min.js"></script>
</head>
(* ocaml voronoi.ml *)
#load "graphics.cma";;
open Graphics;;
Random.self_init ();;
Graphics.open_graph " 360x240";;
class point =
object
val mutable x = Random.int 359
val mutable y = Random.int 239
@danielefrisanco
danielefrisanco / proctorexam_api_example1.rb
Last active January 28, 2018 14:32
creates and exam, a document for it, adds a student and sends the emails
require 'net/http/post/multipart'
require 'uri'
require 'cgi'
require 'erb'
require 'net/http'
require 'openssl'
require 'time'
require 'json'
require 'rack/test'
@danielefrisanco
danielefrisanco / create_signature.rb
Last active November 21, 2016 13:17
script to create a signature for identification_request api
#!/usr/bin/env ruby
require 'digest'
require 'cgi'
secret_key = ARGV.pop
fields =%w(api_token callback_url face_url id_url nonce timestamp)
ARGV.map!{|argv| CGI::escape(argv )}
puts Digest::HMAC.hexdigest( fields.zip(ARGV).map!{ |pair| pair.join("=") }.join("?"),