Say you have some object:
var data = [
{
type:"Person",
name: "Suzanne",
pets:[| name: VbaJsBridge | |
| description: '' | |
| author: sancarn | |
| host: EXCEL | |
| api_set: {} | |
| script: | |
| content: |- | |
| //Initialise VbaJsBridge | |
| VbaJsBridge_Initiate(); | |
| var Timer: Number = 1000; |
| Public HeaderColor as Long | |
| Private OptionsSheet as Worksheet | |
| Private DataSheet as Worksheet | |
| Private Sub Worksheet_Change(ByVal Target As Range) | |
| Me.HeaderColor = RGB(217, 217, 217) | |
| set OptionsSheet = sheets("Options") | |
| set DataSheet = ActiveWorksheet | |
| if target.address = "$B$1" then |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <script src="/libraries/jQuery.js"></script> | |
| <script src="/libraries/Ace/build/ace.js"></script> | |
| <script src="console.js"></script> | |
| <link rel="stylesheet" href="console.css" type="text/css" /> | |
| <style> | |
| html, body{ |
| =begin | |
| Piles are a great way of updating all values of a set at once, instead of mapping arrays constantly. | |
| E.G. | |
| Example CSV: | |
| a,b,c | |
| 1,2,3 | |
| 4,5,6 | |
| Then: | |
| csv=CSV.new(text, {:headers=>true}) |
| # InfoWorks ICM - How to customise your toolbars | |
| # InfoWorks ICM - How to customise your toolbars programatically | |
| By now you should know that if I'm talking about it, it'd be because I've found a way to autoamte it! |
Source: https://syon.github.io/wiki/Win32API/
Pre ruby 2.0:
require 'dl/import'
module User32
extend DL::Importer
dlload 'user32'