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
import 'package:flutter/material.dart'; | |
// https://github.com/malkia/tictactoc | |
// https://malkia.github.io/tictactoe | |
// https://codepen.io/malkia76/pen/YzWojXy | |
void main() { | |
runApp(myApp()); | |
} |
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
dvc | |
oxen | |
xethub | |
dagshub | |
doithub | |
pachyderm | |
...? |
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
net sessions 1>nul 2>nul || ( | |
rem Restart with admin rights the same script | |
PowerShell "Start-Process -FilePath '%0' -Verb RunAs -ArgumentList wait" | |
exit %ERRORLEVEL% | |
) |
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
// compile this to hook.dll | |
// for example, with MSVC: cl.exe /LD /MT /O2 hook.c /Fehook.dll | |
#include <windows.h> | |
// get this from https://github.com/kubo/plthook | |
#include "plthook_win32.c" | |
static plthook_t* hook; |
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
// this code will work only when compiled as 64-bit code, and on Windows 10 | |
// older Windows version might require different structure definitions | |
#define NOMINMAX | |
#define INITGUID | |
#include <windows.h> | |
#include <evntrace.h> | |
#include <evntcons.h> | |
#pragma comment (lib, "shell32.lib") |
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
diff --git a/.bazelrc b/.bazelrc | |
index 637a9a65be..bb77b3fb71 100644 | |
--- a/.bazelrc | |
+++ b/.bazelrc | |
@@ -430,3 +430,5 @@ build:windows --dynamic_mode=off | |
try-import %workspace%/clang.bazelrc | |
try-import %workspace%/user.bazelrc | |
try-import %workspace%/local_tsan.bazelrc | |
+ | |
+try-import %workspace%/../../malkia/top.bazelrc |
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
@echo off | |
set BAZEL_SH=c:\program files\git\usr\bin\bash.exe | |
set PATH=c:\program files\git\usr\bin;c:\program files\git\cmd;d:\sys\bazel;c:\python311;c:\python311\scripts;%PATH% | |
set MSYS2_ARG_CONV_EXCL=* | |
set MSYS2_PATH_TYPE=inherit | |
set TMPDIR=C:/Windows/TEMP | |
set TEMP=C:/Windows/TEMP | |
set TMP=C:/Windows/TEMP | |
bazel --output_base=f:\_eb build -k --enable_runfiles --config=windows -c opt --config=sizeopt --config=msvc-cl envoy | |
bazel --output_base=f:\_eb run --enable_runfiles --config=windows -c opt --config=sizeopt --config=msvc-cl envoy |
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
force_compilation_mode = rule( | |
# implementation = lambda ctx: | |
# DefaultInfo( runfiles = ctx.runfiles( | |
# transitive_files = depset( | |
# transitive = [ depset( transitive = [x[DefaultInfo].files] ) for x in ctx.attr.data ] | |
# ))), | |
implementation = lambda ctx: | |
DefaultInfo( files = depset( | |
transitive = [ depset( transitive = [x[DefaultInfo].files] ) for x in ctx.attr.data ] | |
)), |
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
import ( | |
"list" | |
) | |
build: { | |
proj1: { | |
deps: [ | |
"proj2", | |
] | |
} |
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
// Try on DartPad.dev | |
import 'package:flutter/foundation.dart' | |
show debugDefaultTargetPlatformOverride; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter/widgets.dart'; | |
import 'dart:math'; | |
import 'dart:async'; | |
var random = Random(0); |
NewerOlder