Skip to content

Instantly share code, notes, and snippets.

@Jezternz
Jezternz / ReactJsonEditor.js
Created February 3, 2024 04:16
ReactJsonEditor
import React, { useEffect, useMemo, useRef, useState } from "react";
import JSONEditor from "jsoneditor/dist/jsoneditor";
import "jsoneditor/dist/jsoneditor.css";
/* Minimal React Wrapper for 'jsoneditor' (https://www.npmjs.com/package/jsoneditor) */
// Uncontrolled Usage Example:
// return <ReactJsonEditor value={value}/>;
// Controlled Usage Example:
// const [value, setValue] = useState({});
@Jezternz
Jezternz / \Steam\userdata\{steamid}\730\local\cfg\readybots.cfg
Last active May 4, 2019 06:23
\Steam\userdata\{steamid}\730\local\cfg\readybots.cfg - run using "exec readybots.cfg"
sv_cheats 1;
sv_lan 1;
mp_limitteams 0;
mp_autoteambalance 0;
mp_roundtime 60;
mp_freezetime 0;
bot_kick;
bot_difficulty 3;
mp_autokick 0;
mp_warmup_end;
@Jezternz
Jezternz / steamapps\common\Counter-Strike Global Offensive\csgo\botprofile.db
Created March 31, 2019 08:47
New bot profiles, belongs in steamapps\common\Counter-Strike Global Offensive\csgo\botprofile.db
//----------------------------------------------------------------------------
// BotProfile.db
// Author: Michael S. Booth, Turtle Rock Studios (www.turtlerockstudios.com)
//
// This database defines bot "personalities".
// Feel free to edit it and define your own bots.
//
// 2017: NEW BOT EDITS, PROFILES, NAMES, and SKILLS V1.5 BY dDefinder
// New bot names, skill and weapon trees. Aim and movement for bots should now simulate keyboard and mouse and not a controller.
// Playing on normal difficulty will be like playing on a public server with mixed skill levels between normal and expert. More harder bots will join on hard difficultly and only high level bots will be in expert.
(() =>
{
const list = [
{ a: "A", b: "2", c: 2, d: "2019-01-25T23:27:50.859Z", z: false },
{ a: "c", b: "4", c: 4, d: "2019-01-27T23:27:50.859Z", z: true },
{ a: "aa", b: "13", c: 11, d: "2019-01-28T23:27:50.859Z", z: false },
{ a: "aa", b: "11", c: 11, d: "2019-01-29T23:27:50.859Z", z: true },
{ a: "aa", b: "11", c: 11, d: "2019-02-29T23:27:50.859Z", z: false },
{ a: "aa", b: "11", c: 11, d: "2019-01-28T23:27:50.859Z", z: false },
{ a: "aa", b: "12", c: 11, d: "2019-01-28T23:27:50.859Z", z: false },
const csvStringToArray = strData =>
{
const objPattern = new RegExp(("(\\,|\\r?\\n|\\r|^)(?:\"([^\"]*(?:\"\"[^\"]*)*)\"|([^\\,\\r\\n]*))"),"gi");
let arrMatches = null, arrData = [[]];
while (arrMatches = objPattern.exec(strData)){
if (arrMatches[1].length && arrMatches[1] !== ",")arrData.push([]);
arrData[arrData.length - 1].push(arrMatches[2] ?
arrMatches[2].replace(new RegExp( "\"\"", "g" ), "\"") :
arrMatches[3]);
}
const path = require('path');
const webpack = require('webpack');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const CompressionPlugin = require("compression-webpack-plugin");
const productionConfig =
{
devtool: 'source-map',
entry: [
'babel-polyfill',
using GoogleCloudPrintApi;
using GoogleCloudPrintApi.Models;
using Microsoft.Win32;
using Newtonsoft.Json;
using System;
using System.Diagnostics;
using System.IO;
using System.Net.Security;
using System.Net.Sockets;
using System.Text;
06:48:09.579 INFO - Launching a standalone Selenium Server
Setting system property webdriver.ie.driver to IEDriverServer_x64_2.47.0.exe
06:48:09.641 INFO - Java: Oracle Corporation 25.60-b23
06:48:09.641 INFO - OS: Windows 7 6.1 amd64
06:48:09.641 INFO - v2.47.1, with Core v2.47.1. Built from revision 411b314
06:48:09.719 INFO - Driver class not found: com.opera.core.systems.OperaDriver
06:48:09.719 INFO - Driver provider com.opera.core.systems.OperaDriver is not registered
06:48:09.844 INFO - RemoteWebDriver instances should connect to: http://127.0.0.1:4444/wd/hub
06:48:09.844 INFO - Selenium Server is up and running
06:48:10.141 INFO - Executing: [new session: Capabilities [{acceptSslCerts=true, name=Test1, browserName=internet explorer, javascriptEnabled=true, platform=ANY}]])
Starting selenium server... started - PID: 5584
[Test1] Test Suite
==================
Running: Demo test Google
INFO Request: POST /wd/hub/session
- data: {"desiredCapabilities":{"browserName":"internet explorer","javascriptEnabled":true,"acceptSslCerts":true,"platform":"ANY","name":"Test1"}}
- headers: {"Content-Type":"application/json; charset=utf-8","Content-Length":138}
INFO Response 200 POST /wd/hub/session{ state: null,
@Jezternz
Jezternz / selenium-debug.log
Created September 22, 2015 03:35
selenium-debug.log
13:05:06.799 INFO - Launching a standalone Selenium Server
Setting system property webdriver.ie.driver to IEDriverServer_x64_2.47.0.exe
13:05:06.846 INFO - Java: Oracle Corporation 25.60-b23
13:05:06.846 INFO - OS: Windows 7 6.1 amd64
13:05:06.862 INFO - v2.47.1, with Core v2.47.1. Built from revision 411b314
13:05:06.924 INFO - Driver class not found: com.opera.core.systems.OperaDriver
13:05:06.924 INFO - Driver provider com.opera.core.systems.OperaDriver is not registered
13:05:07.049 INFO - RemoteWebDriver instances should connect to: http://127.0.0.1:4444/wd/hub
13:05:07.049 INFO - Selenium Server is up and running
13:05:07.346 INFO - Executing: [new session: Capabilities [{acceptSslCerts=true, name=Test1, browserName=internet explorer, javascriptEnabled=true, platform=ANY}]])