Skip to content

Instantly share code, notes, and snippets.

View jerstlouis's full-sized avatar

Jerome St-Louis jerstlouis

View GitHub Profile
{
"identifier" : "CDBGlobalGrid",
"title" : "CDBGlobalGrid",
"boundingBox" : {
"crs" : "http://www.opengis.net/def/crs/EPSG/0/4326",
"lowerCorner" : [
-90,
-180
],
"upperCorner" : [
{
"name" : "NewRoute",
"waypoints" : {
"type" : "MultiPoint",
"coordinates" : [
[
-77.0243999441268,
38.8920799777341
],
[
import "ecere"
class Form1 : Window
{
text = "Form1";
background = activeBorder;
borderStyle = sizable;
hasMaximize = true;
hasMinimize = true;
hasClose = true;
<?xml version="1.0" encoding="utf-8"?>
<!-- BEGIN_INCLUDE(manifest) -->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.ecere.hello"
android:versionCode="1"
android:versionName="1.0">
<!-- This is the platform API where NativeActivity was introduced. -->
<uses-sdk android:minSdkVersion="9" />
<uses-permission android:name="android.permission.INTERNET" />
# -*- coding: utf-8 -*-
"""2.sample.py pyecere sample"""
from pyecere import *
# driver = "OpenGL"
app = GuiApplication(appGlobals=globals())
printLn("Testing Variadic Functions!\n", 1, " + ", 2, " = ", 1+2)
printLn("Pi = ", 3.141592653589)
a = Array("<int>")
a.add(3)
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from pyecere import *
class CubeApp(GuiApplication):
def __init__(self, appGlobals):
GuiApplication.__init__(self, appGlobals = appGlobals)
self.driver = "OpenGL"
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from pyecere import *
class CubeApp(GuiApplication):
def __init__(self, appGlobals):
GuiApplication.__init__(self, appGlobals = appGlobals)
self.driver = "OpenGL"
/****************************************************************************
A Virtual Reality sample using OpenVR, the Ecere SDK and the eC language
- adapted from OpenVR samples/hellovr_opengl_main.cpp
(Copyright Valve Corporation)
****************************************************************************/
import "ecere"
#define bool VRbool
#include <openvr_capi.h>
#undef bool
package com.ecere.hello;
public class hello extends android.app.NativeActivity
{
static
{
System.loadLibrary("ecere");
System.loadLibrary("hello");
}
}
import "ecere"
class HelloForm : Window
{
caption = $"Hello Form";
background = formColor;
borderStyle = sizable;
hasMaximize = true;
hasMinimize = true;
hasClose = true;