Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
import eu.mihosoft.vrl.v3d.Cube as Cube | |
#print dyio | |
csg = Cube(20).toCSG() | |
print "Result = ",csg |
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
import javafx.scene.layout.StackPane; | |
import javafx.scene.web.WebView; | |
/** | |
* A syntax highlighting code editor for JavaFX created by wrapping a | |
* CodeMirror code editor in a WebView. | |
* | |
* See http://codemirror.net for more information on using the codemirror editor. | |
*/ | |
public class CodeEditor extends StackPane { |
import javafx.application.Application; | |
import javafx.application.Platform; | |
import javafx.beans.value.ChangeListener; | |
import javafx.beans.value.ObservableValue; | |
import javafx.event.ActionEvent; | |
import javafx.event.EventHandler; | |
import javafx.geometry.Bounds; | |
import javafx.geometry.Pos; | |
import javafx.scene.Node; | |
import javafx.scene.Scene; |
// | |
// aGameCenter_Codea.h | |
// | |
// Created by Juan Belón on 28/05/12 | |
// Games -> http://www.xixgames.com | |
// LGPL - @juaxix - Codea connection! | |
// | |
#import <Foundation/Foundation.h> | |
#import <GameKit/GameKit.h> |
import javafx.application.Application; | |
import javafx.beans.value.*; | |
import javafx.concurrent.Worker; | |
import javafx.event.*; | |
import javafx.scene.*; | |
import javafx.scene.control.*; | |
import javafx.scene.effect.BoxBlur; | |
import javafx.scene.input.MouseEvent; | |
import javafx.scene.layout.*; | |
import javafx.scene.paint.Color; |
// | |
// aGameCenter_Codea.h | |
// | |
// Created by Juan Belón on 28/05/12 | |
// Games -> http://www.xixgames.com | |
// LGPL - @juaxix - Codea connection! | |
// | |
#import <Foundation/Foundation.h> | |
#import <GameKit/GameKit.h> |
-- Lua 5.1+ base64 v3.0 (c) 2009 by Alex Kloss <alexthkloss@web.de> | |
-- licensed under the terms of the LGPL2 | |
-- character table string | |
local b='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/' | |
-- encoding | |
function enc(data) | |
return ((data:gsub('.', function(x) | |
local r,b='',x:byte() |
package org.dejay.prism.opengl; | |
import com.sun.glass.ui.Screen; | |
import com.sun.javafx.geom.Rectangle; | |
import com.sun.javafx.geom.transform.BaseTransform; | |
import com.sun.javafx.logging.PlatformLogger; | |
import com.sun.prism.CompositeMode; | |
import com.sun.prism.RenderTarget; | |
import com.sun.prism.Texture; | |
import com.sun.prism.camera.PrismCameraImpl; |
//viewDidload | |
if ([self respondsToSelector:@selector(setNeedsStatusBarAppearanceUpdate)]) { | |
// iOS 7 | |
[self prefersStatusBarHidden]; | |
[self performSelector:@selector(setNeedsStatusBarAppearanceUpdate)]; | |
} else { | |
// iOS 6 | |
[[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:UIStatusBarAnimationSlide]; | |
} |