Skip to content

Instantly share code, notes, and snippets.

View andresfelipemendez's full-sized avatar

Andrés Felipe Méndez andresfelipemendez

View GitHub Profile

Core Coding Standard

Coding practices are a source of a lot of arguments among programmers. Coding standards, to some degree, help us to put certain questions to bed and resolve stylistic debates. No coding standard makes everyone happy. (And even their existence is sure to make some unhappy.) What follows are the standards we put together on the Core team, which have become the general coding standard for all programming teams on new code development. We’ve tried to balance the need for creating a common, recognizable and readable code base with not unduly burdening the programmer with minor code formatting concerns.

Table Of Contents

@satrex
satrex / SketchUpDialog.rb
Created December 24, 2012 01:18
Sample code for Trimble SketchUp web dialog component. Clicking button, javascript popup message appears. Clicking link, ruby popup message appears.
require 'Sketchup'
def show_dialog
dlg = UI::WebDialog.new("DialogTest", false,
"DialogTest", 200, 150, 150, 150, true);
html = <<-HTML
<form>
<input id="start2" onClick="window.alert('alert from javascript');" type="button" size="100" value="input">
</br>
<a href="skp:ruby_messagebox@from link">link</a>