Skip to content

Instantly share code, notes, and snippets.

View ZoeyR's full-sized avatar

Zoey Riordan ZoeyR

  • Göteborg, Sweden
View GitHub Profile
'use strict';
import * as pty from "node-pty";
import * as rpc from "vscode-jsonrpc";
const is32ProcessOn64Windows = process.env.hasOwnProperty('PROCESSOR_ARCHITEW6432');
const powerShellPath = `${process.env.windir}\\${is32ProcessOn64Windows ? 'Sysnative' : 'System32'}\\WindowsPowerShell\\v1.0\\powershell.exe`;
const cmdPath = `${process.env.windir}\\${is32ProcessOn64Windows ? 'Sysnative' : 'System32'}\\cmd.exe`;
const bashPath = `${process.env.windir}\\${is32ProcessOn64Windows ? 'Sysnative' : 'System32'}\\bash.exe`;
@ZoeyR
ZoeyR / hresults.json
Created January 12, 2019 00:21
Windows error/status codes and descriptions
[
{
"code": "0x00030200",
"name": "STG_S_CONVERTED",
"desc": "The underlying file was converted to compound file format."
},
{
"code": "0x00030201",
"name": "STG_S_BLOCK",
"desc": "The storage operation should block until more data is available."
@ZoeyR
ZoeyR / lib.rs
Created December 5, 2017 07:41
Allocation Error
use std::mem;
#[no_mangle]
pub extern "C" fn alloc(size: usize) -> *mut u8 {
let mut buf = Vec::with_capacity(size);
let ptr = buf.as_mut_ptr();
mem::forget(buf); // This is JS' responsibility now
return ptr as *mut u8;
}
.terminal .xterm-color-0 {
color: #000000;
}
.terminal .xterm-bg-color-0 {
background-color: #000000;
}
.terminal .xterm-color-1 {
color: #cd3131;