background preloader

Programming

Facebook Twitter

ConfirmDialog command. Show frames Go to: Synopsis. Return value. Flags. Python examples. Synopsis confirmDialog([backgroundColor=[float, float, float]], [button=string], [cancelButton=string], [defaultButton=string], [dismissString=string], [message=string], [messageAlign=string], [parent=string], [title=string]) Note: Strings representing object names and arguments must be separated by commas.

ConfirmDialog is undoable, NOT queryable, and NOT editable. The confirmDialog command creates a modal dialog with a message to the user and a variable number of buttons to dismiss the dialog. The default behaviour when no arguments are specified is to create an empty single button dialog. Return value Flags backgroundColor, button, cancelButton, defaultButton, dismissString, message, messageAlign, parent, title Python examples.

Greencodds Tenth Rule Of Programming. A Vector Type for C# Download source - 10.8 KB Introduction For years I have seen people struggle with vector mathematics. This guide should walk you through the creation of a reusable Vector3 type and the mathematics behind it all. The post-fixed 3 simply refers to the vector being in 3-dimensions (x,y,z). The code is not designed to be fast or efficient but is to be as simple and understandable as possible. To this end, and as a personal preference, the Vector3 type is packed with relevent functionality and multiple interfaces to methods (e.g. static and non-static variants of methods). I have used the Cartesian coordinate system in three-dimensions (i.e. three perpendicular axis of x, y and z) and Euclidian geometry.

You may have guessed that computers are quite slow with this type of math. Unless stated otherwise I assume that the vector is positional, originating at point (0,0,0). Please note that this guide is extremely verbose and may seem patronising to experienced C# programmers. A quick glossary: Developing with C# on OSX and Mono. Functional Reactive Programming. Functional Reactive Programming (FRP) integrates time flow and compositional events into functional programming. This provides an elegant way to express computation in domains such as interactive animations, robotics, computer vision, user interfaces, and simulation. 1 Introduction The original formulation of Functional Reactive Programming can be found in the ICFP 97 paper Functional Reactive Animation by Conal Elliott and Paul Hudak. 1.1 Behaviors Traditionally a widget-based user interface is created by a series of imperative actions.

First an action is invoked to create an edit widget, then additional actions can be invoked to read its current content, set it to a specific value or to assign an event callback for when the content changes. This is tedious and error-prone. A better way to represent an edit widget's content is a time-varying value, called a behavior. MyEditWidget :: Behavior Text liftA2 (<>) myEdit1 myEdit2 1.2 Events To do 2 Libraries 3 Publications and talks 4 Blog posts. Cinder | The library for professional-quality creative coding in C++ OpenFrameworks. Polycode.

Codify – iPad. Gui Toolkits - Mono. Picking the Right Toolkit One of the hardest and most important decision to make when starting a new desktop application is which GUI "toolkit" to choose. The toolkit is the set of API's that produce the graphical user interface your users will interact with.

There are a number of factors to consider when choosing the toolkit. Different toolkits support different platforms (Linux, Windows, OSX) and have different features such as accessibility, layout engines, and looks. The two main toolkits offered by Mono are GTK# and Winforms, however there are several other toolkits offered by the community which may suit your needs. Both GTK# and Winforms, while being cross-platform, have clear roots in their original platforms. Gtk# Homepage: GtkSharp GTK# is a .NET binding for the Gtk+ toolkit. In general, GTK# applications are written using MonoDevelop, which provides a visual designer for creating GTK# GUIs. Platforms: Unix, Windows, OSX Pros: Cons: Gtk+ apps run like foreign applications on MacOS X.

WebGL Water. Loading... Made by Evan Wallace This demo requires a decent graphics card and up-to-date drivers. If you can't run the demo, you can still see it on YouTube. Interactions: Draw on the water to make ripples Drag the background to rotate the camera Press SPACEBAR to pause and unpause Drag the sphere to move it around Press the L key to set the light direction Press the G key to toggle gravity Features: Raytraced reflections and refractions Analytic ambient occlusion Heightfield water simulation * Soft shadows Caustics (see this for details) ** * requires the OES_texture_float extension** requires the OES_standard_derivatives extension Tile texture from zooboing on Flickr.

Monad (functional programming) Formally, a monad consists of a type constructor M and two operations, bind and return (where return is often also called unit). The operations must fulfill several properties to allow the correct composition of monadic functions (i.e. functions that use values from the monad as their arguments or return value). The return operation takes a value from a plain type and puts it into a monadic container using the constructor, creating a monadic value. The bind operation performs the reverse process, extracting the original value from the container and passing it to the associated next function in the pipeline, possibly with additional checks and transformations. Because a monad can insert additional operations around a program's domain logic, monads can be considered a sort of aspect-oriented programming.[7] The domain logic can be defined by the application programmer in the pipeline, while required aside bookkeeping operations can be handled by a pre-defined monad built in advance.

OpenCL. CSharpPlugin. Xcode Plugin and supporting files for Mono C# integration This page is no longer maintained. Please use the latest version at Susan Mackay Abstract This document describes the installation, use and some of the background details of an Xcode plugin that allows the use of the Mono C# development environment. If you just want to get the code installed and running, then please start at the “Installation” section. If you want to understand how this plugin came about and how it operates (also why it has some of the ways of doing things and limitations that it has) then please read the introductory sections. Quick Start If you just want to get started, then follow these instructions. View the source code from Get the source code from Compile code in XCode. Preface Damien’s approach ‘appealed’ more to me. Cocoa. Quartz Composer.

OSX

Unsorted. DataViz. Ruby. Python. Haskel.