Skip to content

Instantly share code, notes, and snippets.

open System.Text
open System.Text.RegularExpressions
let p = new System.Diagnostics.Process()
p.StartInfo.FileName <- "xinput"
p.StartInfo.Arguments <- ("list")
p.StartInfo.RedirectStandardOutput <- true
p.StartInfo.UseShellExecute <- false
p.Start()
#version 450
layout(location = 0) in vec3 a_Pos;
layout(location = 1) in vec4 a_Color;
layout(location = 0) out vec4 f_Color;
layout(set=0, binding=0) uniform Uniforms {
mat4x4 u_view_proj;
vec2 offset;
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
#include <QtGui/QGuiApplication>
#include <QApplication>
#include <QMainWindow>
#include <QPainter>
#include <QObject>
#include <QClipboard>
#include <QtGui/QImage>
#include <QtGui/QColor>
#include <QtCore/QStringList>
int width = 2;
int height = 2;
int32_t bitmap2x2[4] = { 0xffff0000, 0xff00ff00, 0xff0000ff, 0x00000000 };
int main()
{
if (OpenClipboard(NULL))
{
HDC hdc = CreateCompatibleDC(NULL);
#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 };
@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();