Skip to content

Instantly share code, notes, and snippets.

View g-pechorin's full-sized avatar
🏠
Working from home

Peter LaValle g-pechorin

🏠
Working from home
View GitHub Profile
@g-pechorin
g-pechorin / al.js
Last active February 22, 2024 18:06
some.js
alert('hello friend 3');
//r v = window.getElementsByTagName('*');//
alert('letse sse');
alert('there are '+len(v))
for (var video of v)
{
alert(video);
}
@g-pechorin
g-pechorin / create.cpp
Last active May 3, 2023 11:08
test of JNI_CreateJavaVM
#include <stdio.h>
#include <stdlib.h>
///
// include JNI and suppress all the warnings it emits
#pragma once
#pragma warning( push )
#pragma warning( suppress : 26451 )
#pragma warning( suppress : 26495 )

two paths for assets; baked and runtime

... actually ... bakes is just runtime ... but ... anyway

flowchart LR
package peterlavalle.pg3
import peterlavalle.{E, *}
/**
*
* @param create some function to open a resource
* @tparam I the full key needed to open a resource (file or socket, parapmeters, etc)
* @tparam V the resource handle and any key or whatever that's needed
*/
@g-pechorin
g-pechorin / blackstone-votann.md
Last active October 4, 2022 17:56
a Votann / Demiurg shipbreaker whose Kin seeks the Explorer's help ...

sections/lines/whatever marked with % are the "uninspired" rules and ^ are the inspired ones

dd12 or dd6 refers to rolling with advantage, which the rules mark as two icons of the die

Brother Saklas

@g-pechorin
g-pechorin / PyBed.scala
Created May 16, 2021 15:12
crude way to embed python in Scala. uses a bunch of implicit classes that should be obvious
package peterlavalle.pybx
import java.io.{File, OutputStream}
import java.util.Random
import peterlavalle._
import scala.sys.process.ProcessLogger
/**
@g-pechorin
g-pechorin / DockerFile
Created April 18, 2021 05:55
one line to create buildbot server
#
# should/will work on amd64 and rpi
#
FROM debian:buster
MAINTAINER Peter LaValle <peter.lavalle@gmail.com>
#
#
&nbsp;
**++ Battalion Detachment 0CP (Orks) [102 PL, 13CP, 1,978pts] ++**
&nbsp;
**+ Configuration +**
&nbsp;
@g-pechorin
g-pechorin / oroyl.vsconfig
Created December 12, 2020 14:46
F#, Unity3D and CMake/C++ configuration
{
"version": "1.0",
"components": [
"Microsoft.VisualStudio.Component.CoreEditor",
"Microsoft.VisualStudio.Workload.CoreEditor",
"Microsoft.VisualStudio.Component.NuGet",
"Microsoft.Net.Component.4.6.1.TargetingPack",
"Microsoft.VisualStudio.Component.Roslyn.Compiler",
"Microsoft.VisualStudio.Component.Roslyn.LanguageServices",
"Microsoft.VisualStudio.Component.FSharp",
package peterlavalle.puregen
object ScriptedGen extends App {
val template: String =
"""
| def scripted[<tags>O](f: (<args> => O)): (<args> => O) = new (<args> => O) {
| @HostAccess.Export
| override def apply(<take>): O = f(<pass>)
| }
|""".stripMargin