Skip to content

Instantly share code, notes, and snippets.

Avatar

Jerome St-Louis jerstlouis

View GitHub Profile
View makefile-diff.patch
diff --git a/default.cf b/default.cf
index fc8cba400..62ac27520 100644
--- a/default.cf
+++ b/default.cf
@@ -80,13 +80,13 @@ export DYLD_LIBRARY_PATH = $(_CF_DIR)obj/$(HOST_PLATFORM)$(COMPILER_SUFFIX)$(DEB
endif
# HARD CODED PLATFORM-SPECIFIC OPTIONS
-LDFLAGS +=$(if $(LINUX_TARGET), -Wl$(comma)--no-undefined,)
-LDFLAGS +=$(if $(OSX_TARGET), -framework cocoa -framework OpenGL -L/usr/local/opt/openssl/lib,)
View HelloCube.cpp
#define MODULE_NAME "HelloCube"
#include "ecere.hpp"
class HelloCube : public Window
{
public:
Cube cube;
Light light;
Camera camera;
View endian.h.diff
21c21
< return __x<<8 | __x>>8;
---
> return (__x<<8) | (__x>>8);
26c26
< return __x>>24 | __x>>8&0xff00 | __x<<8&0xff0000 | __x<<24;
---
> return (__x>>24) | ((__x>>8)&0xff00) | ((__x<<8)&0xff0000) | (__x<<24);
31c31
< return __bswap32(__x)+0ULL<<32 | __bswap32(__x>>32);
View test.cpp
template<typename TPT> inline CPPClass & ensureTemplatized(CPPClass & _class, const char * name)
{
if(!_class.impl || !_class.impl->templateClass)
{
char type[1024];
strcpy(type, "CPP");
strcat(type, name);
strcat(type, "<");
{
const char * t1 = TypeName<TPT>::get();
View alsoWorking.ec
import "ecere"
class Form1 : Window
{
caption = $"Form1";
background = formColor;
borderStyle = sizable;
hasMaximize = true;
hasMinimize = true;
hasClose = true;
View gist:04397dbf7c8450b34c2d3e440373ab64
import "ecere"
class Form1 : Window
{
caption = $"Form1";
background = formColor;
borderStyle = sizable;
hasMaximize = true;
hasMinimize = true;
hasClose = true;
View CDBGlobalGrid.json
{
"identifier" : "CDBGlobalGrid",
"title" : "CDBGlobalGrid",
"boundingBox" : {
"crs" : "http://www.opengis.net/def/crs/EPSG/0/4326",
"lowerCorner" : [
-90,
-180
],
"upperCorner" : [
View sampleRequest.json
{
"name" : "NewRoute",
"waypoints" : {
"type" : "MultiPoint",
"coordinates" : [
[
-77.0243999441268,
38.8920799777341
],
[
View helloButton.ec
import "ecere"
class Form1 : Window
{
text = "Form1";
background = activeBorder;
borderStyle = sizable;
hasMaximize = true;
hasMinimize = true;
hasClose = true;
View AndroidManifest.xml
<?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" />