This file contains 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
let print_sorted = | |
let rec filter acc f = function | |
[] -> [] | |
| e :: l when e = f -> List.rev acc @ l | |
| e :: l -> filter (e :: acc) f l | |
in let rec minimum m = function | |
[] -> m | |
| e :: l -> minimum (min e m) l | |
in let rec p = function | |
[] -> () |
This file contains 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
#include <stdio.h> | |
#include <string.h> | |
void print_float_header() | |
{ | |
printf("%d\n%-10s|%-s|%-8s|%-23s|\n", sizeof(float), "float", "S", "E", "M"); | |
} | |
void print_float(float f) | |
{ | |
char data[sizeof(f)]; |
This file contains 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
(** | |
compiled with | |
ocamlopt ascii.ml -o ascii | |
or | |
ocamlopt.opt.exe ./ascii.ml -o ./ascii.exe | |
*) | |
let () = | |
Printf.printf "oct | dec | hex | char%10soct | dec | hex | char\n" " " |
This file contains 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
open Revery | |
open Revery.UI | |
open Revery.UI.Components | |
type main_view_state = | |
{ | |
input: string; | |
} | |
module MainView = struct |
This file contains 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
// ==UserScript== | |
// @name MiMo Speeder | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description speed-up the MiMo videos | |
// @author You | |
// @match *://*/* | |
// @grant none | |
// ==/UserScript== |
This file contains 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
.class private auto ansi beforefieldinit Program | |
extends [mscorlib]System.Object | |
{ | |
.field public initonly string VarC | |
.field public static literal string VarD = "e" | |
// method line 1 | |
.method public hidebysig specialname rtspecialname | |
instance default void '.ctor' () cil managed | |
{ |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<body> | |
<style> | |
/* CSS */ | |
@import url(https://cdn.jsdelivr.net/gh/tonsky/[email protected]/distr/fira_code.css); | |
div { | |
/* Specify in CSS */ |
This file contains 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
open Revery; | |
open Revery.UI; | |
let () = Random.self_init() | |
module Row = { | |
let component = React.component("Row"); | |
let createElement = (~children, ()) => | |
component(hooks => { |
This file contains 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
// Generated by BUCKLESCRIPT VERSION 5.0.4, PLEASE EDIT WITH CARE | |
'use strict'; | |
var Block = require("./stdlib/block.js"); | |
var Curry = require("./stdlib/curry.js"); | |
var React = require("react"); | |
var ReactDOMRe = require("./stdlib/reactDOMRe.js"); | |
var a = React.createElement("div", undefined, "e"); |
This file contains 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
(executable | |
(name host_web) | |
(libraries opium websocket-lwt-unix.cohttp)) |