Skip to content

Instantly share code, notes, and snippets.

/****************
* drones101.js *
****************
*
* Do you remember, my dear Professor, a certain introductory
* computational rationality class you taught long ago? Assignment
* #2, behavior functions of autonomous agents? I remember that one
* fondly - but attack drones are so much easier to reason about
* when they're not staring you in the face, I would imagine!
@choco-bot
choco-bot / 1.RegistrySnapshot.xml
Created May 10, 2024 05:15
stackql v0.5.635 - Passed - Package Tests Results
<?xml version="1.0" encoding="utf-8"?>
<registrySnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<user>S-1-5-21-2287585613-2272471175-573748806-1000</user>
<keys>
<key installerType="Msi" displayName="StackQL" displayVersion="0.5.635">
<RegistryView>Registry64</RegistryView>
<KeyPath>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{1F04DCC1-859F-498F-9442-8DCBB44DBAFA}</KeyPath>
<DefaultValue />
<InstallLocation><![CDATA[]]></InstallLocation>
<UninstallString><![CDATA[MsiExec.exe /X{1F04DCC1-859F-498F-9442-8DCBB44DBAFA}]]></UninstallString>
/************************
* validationEngaged.js *
************************
*
* They're really on to us now! The validateLevel function
* has been activated to enforce constraints on what you can
* do. In this case, you're not allowed to remove any blocks.
*
* They're doing all they can to keep you here. But you
* can still outsmart them.
@echo off
REM パッケージのアップグレードと特定パッケージのインストール・アンインストールを行うバッチファイル
echo Updating the package from the current directory...
pip install -U .
echo Uninstalling vtk...
pip uninstall -y vtk
echo Installing vtk-osmesa from a custom index URL...
@devsecops-learning
devsecops-learning / k8s-master-setup.sh
Last active May 10, 2024 05:14
Script to Setup K8s Master Node
#!/bin/bash
NC='\033[0m'
YELLOW='\033[0;33m'
GREEN='\033[0;32m'
RED='\033[0;31m'
K8S_VERSION="1.29.0"
PACKAGE_VERSION=${K8S_VERSION%.*}
UBUNTU_CODE=$(lsb_release -cs)
@Yuyaito0815
Yuyaito0815 / EnemyDownCommand.java After
Created May 10, 2024 05:13
2024.04.29 (敵を倒すと点数を獲得して合計を加算する)
package plugin.enemydown.command;
import java.util.List;
import java.util.Objects;
import java.util.SplittableRandom;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.World;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
#include <QtWidgets>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <memory>
class shape {
public:
@initcron
initcron / vote-deploy.yaml
Created May 10, 2024 05:11
vote deployment with resources and strategy defined
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
labels:
app: vote
name: vote
annotations:
kubernetes.io/change-cause: "updated image to v2"
spec:
/********************
* theLongWayOut.js *
********************
*
* Well, it looks like they're on to us. The path isn't as
* clear as I thought it'd be. But no matter - four clever
* characters should be enough to erase all their tricks.
*/
function startLevel(map) {
/**********************
* fordingTheRiver.js *
**********************
*
* And there's the river. Fortunately, I was prepared for this.
* See the raft on the other side?
*
* Everything is going according to plan.
*/