Skip to content

Instantly share code, notes, and snippets.

// Adapted from https://github.com/Oletus/float16-simulator.js
open System
open System.Numerics
let rec firstset (bits: uint) =
let value = if (bits &&& uint 0x80000000 <> uint 0) then 31 else firstset((bits <<< 1) ||| uint 1) - 1
1 <<< 8
let decomposeNumber (number: float) =
open System
open System.Collections.Generic
open System.IO
open SixLabors.ImageSharp
open SixLabors.ImageSharp.PixelFormats
let mapTut1 = @"C:\Users\codec\Desktop\Stealth_Combat_Tools-master\data\uncompressed\app\maps\tut1"
let originalDataFile = @"C:\Users\codec\Desktop\Stealth_Combat_Tools-master\scripts\data\SCom.idp"
let tut1Map = @"C:\Users\codec\Desktop\Stealth_Combat_Tools-master\scripts\data\tut1"
let outputFile = @"C:\Users\codec\Desktop\Stealth_Combat_Tools-master\Stealth Combat\SCom.idp"
@codec-abc
codec-abc / flutter_speedometer.dart
Created March 15, 2021 11:13
Flutter speedometer
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
import 'dart:developer' as developer;
import 'dart:math' as math;
import 'package:vector_math/vector_math.dart' as vmath;
import 'package:flutter/foundation.dart' show kIsWeb;
class SpeedoMeter extends CustomPainter {
SpeedoMeter();
#include <iostream>
#include <fstream>
#include <windows.h>
#include <string>
#include <iomanip>
#include <sstream>
int width = 2;
int height = 2;
int32_t bitmap2x2[4] = { 0xffff0000, 0xff00ff00, 0xff0000ff, 0x00000000 };
#include <iostream>
#include <fstream>
#include <windows.h>
#include <string>
#include <iomanip>
#include <sstream>
int width = 2;
int height = 2;
int32_t bitmap2x2[4] = { 0xffff0000, 0xff00ff00, 0xff0000ff, 0x00000000 };
#include <iostream>
#include <fstream>
#include <windows.h>
#include <string>
#include <iomanip>
#include <sstream>
int width = 2;
int height = 2;
int32_t bitmap2x2[4] = { 0xffff0000, 0xff00ff00, 0xff0000ff, 0x00000000 };
#include <iostream>
#include <fstream>
#include <windows.h>
#include <string>
#include <iomanip>
#include <sstream>
int width = 2;
int height = 2;
int32_t bitmap2x2[4] = { 0xffff0000, 0xff00ff00, 0xff0000ff, 0x00000000 };
int width = 2;
int height = 2;
int32_t bitmap2x2[4] = { 0xffff0000, 0xff00ff00, 0xff0000ff, 0x00000000 };
int main()
{
if (OpenClipboard(NULL))
{
HDC hdc = CreateCompatibleDC(NULL);
#include <QtGui/QGuiApplication>
#include <QApplication>
#include <QMainWindow>
#include <QPainter>
#include <QObject>
#include <QClipboard>
#include <QtGui/QImage>
#include <QtGui/QColor>
#include <QtCore/QStringList>
cargo build
Blocking waiting for file lock on build directory
Compiling test-mingw v0.1.0 (Q:\dev2\rust-kas-mingw\KAS-sample)
warning: unused import: `serde_json::Error`
--> src\vslam_algo.rs:6:5
|
6 | use serde_json::Error;
| ^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default