Skip to content

Instantly share code, notes, and snippets.

#pragma once
#include <Windows.h>
#include <string>
void openDirectory(std::string path) {
std::string cmd = "explorer " + path;
system(cmd.c_str());
}
#include "IPlugEffect.h"
#include "IPlug_include_in_plug_src.h"
#include "IControls.h"
constexpr auto CN = 30;
struct Cable
{
IVec2 pos1;
IVec2 pos2;
IColor color;
@MartinBspheroid
MartinBspheroid / index.js
Last active October 1, 2020 14:42
Replace
/////////// example
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
class Fetcher {
constructor(scenesObj, startScene = 0) {
this.scenes = scenesObj;
this.currentScene = startScene
this.init()
}
init() {
using System;
using System.Threading;
using EasyModbus;
using Fleck;
namespace MODBUS
{
class Program
{
public static string port = "";
public static WebSocketServer server;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
@MartinBspheroid
MartinBspheroid / CEF_JS_CSHARP.cs
Last active March 6, 2020 15:33
Comunication between C# and javaScript in CEF
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text.RegularExpressions;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
This file has been truncated, but you can view the full file.
2001 silly gunzTarPerm modified mode [ 'node_modules/node-pre-gyp/node_modules/tar/lib/extended-header-writer.js',
2001 silly gunzTarPerm 420,
2001 silly gunzTarPerm 438 ]
2002 silly gunzTarPerm extractEntry node_modules/node-pre-gyp/node_modules/tar/lib/extended-header.js
2003 silly gunzTarPerm modified mode [ 'node_modules/node-pre-gyp/node_modules/tar/lib/extended-header.js',
2003 silly gunzTarPerm 420,
2003 silly gunzTarPerm 438 ]
2004 silly gunzTarPerm extractEntry node_modules/node-pre-gyp/node_modules/tar/lib/extract.js
2005 silly gunzTarPerm modified mode [ 'node_modules/node-pre-gyp/node_modules/tar/lib/extract.js',
2005 silly gunzTarPerm 420,
@MartinBspheroid
MartinBspheroid / errors
Last active February 18, 2017 17:33
npm i serialport on windows
PS C:\Dev\_jsPrototypes\serialPort> npm i serialport --save
> [email protected] install C:\Dev\_jsPrototypes\serialPort\node_modules\serialport
> node-pre-gyp install --fallback-to-build
node-pre-gyp ERR! install error
node-pre-gyp ERR! stack Error: Unsupported target version: 0.18.5
node-pre-gyp ERR! stack at get_runtime_abi (C:\Dev\_jsPrototypes\serialPort\node_modules\serialport\node_modules\nod
e-pre-gyp\lib\util\versioning.js:156:23)
node-pre-gyp ERR! stack at Object.module.exports.evaluate (C:\Dev\_jsPrototypes\serialPort\node_modules\serialport\n
import java.io.File;
long lastTime = 0;
File f;
String[] data;
void setup() {
f = new File("e:/test.txt");
}
void draw() {
background(0);