This guides does not assume you are using expo. It is not yet perfect, especially the hot reloading part but maybe shadow-cljs could be modified.
- Create the React Native Project
react-native init <NameOfYourProject>
import 'dart:async'; | |
import 'package:flutter/material.dart'; | |
import 'package:bloc/bloc.dart'; | |
import 'package:flutter_bloc/flutter_bloc.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { |
(ns api-server.file-io | |
(:use [clojure.tools.logging :only (info warn error)]) | |
(:import (java.nio.channels CompletionHandler AsynchronousFileChannel) | |
(java.nio ByteBuffer) | |
(java.nio.file.attribute FileAttribute) | |
(java.nio.file StandardOpenOption) | |
(java.util.concurrent Executors)) | |
(:require [clojure.core.async :as async :refer [chan go put! close!]] | |
[clojure.java.io :as io])) |
(ns ussd.fsm-utils | |
(:require | |
[clojure.string :as str] | |
[clojure.edn :as edn] | |
[ussd.sms :as sms])) | |
(defn check-via | |
[via] | |
(let [choices (:choices (edn/read-string (slurp "../../ussd_fsm.edn")))] | |
(if (contains? choices via) |
/* | |
* To change this license header, choose License Headers in Project Properties. | |
* To change this template file, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package areacalculator; | |
import javax.swing.*; | |
/** | |
* |
// We will be doing animation in OpenGL | |
// key concepts are: | |
// 1. the idle function - idle() will post a replaint and this will lead to activation of the display() function | |
// 2. Also we will be doing double buffering like this: glutInitDisplayMode(GLUT_DOUBLE); | |
// In addition we will be introducing other functions such as glPushMatrix, glPopMatrix and glSwapBuffers | |
#include <windows.h> | |
#include <GL/glut.h> | |
#include <GL/gl.h> |
/** GL02Primitive.cpp: Vertex, Primitive and Color* Draw Simple 2D colored Shapes: quad, triangle and polygon.*/ | |
#include <windows.h> // for MS Windows | |
#include <GL/glut.h> // GLUT, include glu.h and gl.h/* Initialize OpenGL Graphics */ | |
void initGL() { | |
glMatrixMode(GL_PROJECTION); | |
glLoadIdentity(); | |
gluOrtho2D(0.0, 1000.0, 0.0, 1000.0); | |
glViewport(0,0,1000,1000); | |
glClearColor(1.0f, 1.0f, 1.0f, 1.0f); // Black and opaque |
/** GL02Primitive.cpp: Vertex, Primitive and Color* Draw Simple 2D colored Shapes: quad, triangle and polygon.*/ | |
#include <windows.h> // for MS Windows | |
#include <GL/glut.h> // GLUT, include glu.h and gl.h/* Initialize OpenGL Graphics */ | |
void initGL() { | |
glMatrixMode(GL_PROJECTION); | |
glLoadIdentity(); | |
gluOrtho2D(0.0, 1000.0, 0.0, 1000.0); | |
glViewport(0,0,1000,1000); | |
glClearColor(1.0f, 1.0f, 1.0f, 1.0f); // Black and opaque | |
} |
/** GL02Primitive.cpp: Vertex, Primitive and Color* Draw Simple 2D colored Shapes: quad, triangle and polygon.*/ | |
#include <windows.h> // for MS Windows | |
#include <GL/glut.h> // GLUT, include glu.h and gl.hvoid | |
initGL() { | |
glMatrixMode(GL_MODELVIEW); //Set Matrices to MODELVIEW to support transformations | |
glLoadIdentity(); | |
gluOrtho2D(0.0, 640.0, 0.0, 480.0); | |
glViewport(0,0,640,480); | |
glClearColor(1.0f, 1.0f, 1.0f, 1.0f); | |
glClear(GL_COLOR_BUFFER_BIT); |