Skip to content

Instantly share code, notes, and snippets.

View openDirectory.cpp
#pragma once
#include <Windows.h>
#include <string>
void openDirectory(std::string path) {
std::string cmd = "explorer " + path;
system(cmd.c_str());
}
View IPlugEffect.cpp
#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;
View index.js
/////////// 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>
View fetcher.js
class Fetcher {
constructor(scenesObj, startScene = 0) {
this.scenes = scenesObj;
this.currentScene = startScene
this.init()
}
init() {
View ModBus>Websocket.cs
using System;
using System.Threading;
using EasyModbus;
using Fleck;
namespace MODBUS
{
class Program
{
public static string port = "";
public static WebSocketServer server;
View Application sound control.cs
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 Mar 6, 2020
Comunication between C# and javaScript in CEF
View CEF_JS_CSHARP.cs
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;
View complete error dump
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',
@MartinBspheroid
MartinBspheroid / errors
Last active Feb 18, 2017
npm i serialport on windows
View errors
PS C:\Dev\_jsPrototypes\serialPort> npm i serialport --save
> serialport@4.0.7 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
View autoreload.pde
import java.io.File;
long lastTime = 0;
File f;
String[] data;
void setup() {
f = new File("e:/test.txt");
}
void draw() {
background(0);