Skip to content

Instantly share code, notes, and snippets.

@MartinBspheroid
MartinBspheroid / ciAngel_Bind_StdVector.h
Created April 8, 2014 09:23
std::vector bindings for AngelScript
/*
std::vector binding library for AngelScript
Copyright (c) 2004 Anthony "JM" Casteel
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any
damages arising from the use of this software.
Permission is granted to anyone to use this software for any
purpose, including commercial applications, and to alter it and
@MartinBspheroid
MartinBspheroid / gist:8902181
Last active November 16, 2022 05:39
openFrameworks hacks (win64)
// TESTED ON nightly-build ver 0.8 (of_v20130813) in Visual Studio 2012 - Win64
// MAKE APP ALWAYS ON TOP
HWND AppWindow = GetActiveWindow();
SetWindowPos(AppWindow, HWND_TOPMOST, NULL, NULL, NULL, NULL, SWP_NOMOVE | SWP_NOSIZE);
// DISABLE FUNCTION DESCRIBED ABOVE
HWND AppWindow = GetActiveWindow();
#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,