Skip to content

Instantly share code, notes, and snippets.

println!("{}", path);
let store = Store::default();
let module = Module::from_file(&store, &path).expect("Failed to load module");
let mut wasi_env = WasiState::new("Gut")
.finalize()
.expect("Failed to create wasi env");
let import_object = wasi_env
Workaround for appc cloud commands with (npm not found. Please install npm and try again) error:
1. Ensure that the folder containing npm is in NODE_PATH environment variable, e.g. NODE_PATH=/usr/lib/node_modules (I believe you can get this path by using 'npm root -g')
Alternative fix (without modifying environment variables)
1. navigate to the install directory of the current version of appc-cli. (Example for appc-cli@6.2.2 ~/.appcelerator/install/6.2.2/package/)
2. 'npm install global-npm'
3. navigate to acs node_module directory (node_modules/acs/lib/util.js) look for the function called "getNpm" and replace the line:
@jareddlc
jareddlc / rename.py
Created October 18, 2016 23:20
Batch rename
import os
import re
from Tkinter import *
from tkFileDialog import *
from tkMessageBox import *
# Tkingter root widget
root = Tk()
# App title
root.title("List Batch Rename")
/** TurquoiseBicuspid.c
* @file
*
* This file has been automatically generated by the WICED Smart Designer.
* Device configuration and functions required for the BLE device.
*
*/
#include "bleprofile.h"
#include "bleapp.h"