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
// 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) = |
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
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" |
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 '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(); |
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
#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 }; |
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
#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 }; |
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
#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 }; |
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
#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 }; |
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
int width = 2; | |
int height = 2; | |
int32_t bitmap2x2[4] = { 0xffff0000, 0xff00ff00, 0xff0000ff, 0x00000000 }; | |
int main() | |
{ | |
if (OpenClipboard(NULL)) | |
{ | |
HDC hdc = CreateCompatibleDC(NULL); |
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
#include <QtGui/QGuiApplication> | |
#include <QApplication> | |
#include <QMainWindow> | |
#include <QPainter> | |
#include <QObject> | |
#include <QClipboard> | |
#include <QtGui/QImage> | |
#include <QtGui/QColor> | |
#include <QtCore/QStringList> |
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
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 |
NewerOlder