Skip to content

Instantly share code, notes, and snippets.

View princefr's full-sized avatar
😀
good

Princefr princefr

😀
good
  • Swootte
  • Paris - France
View GitHub Profile
{
"RootNamespace": "",
"Packages": [
"Fuse",
"FuseJS",
"Fuse.Camera",
"Fuse.PushNotifications",
"Fuse.CameraRoll",
"Fuse.ImageTools",
"Fuse.Launcher",
using Uno;
using Uno.Collections;
using Fuse.Platform;
using Fuse;
using Fuse.Scripting;
using Uno.UX;
using Uno.Compiler.ExportTargetInterop;
<App>
<JavaScript>
var Observable = require("FuseJS/Observable");
var someLabel = "creddiiiiiit carrd";
var someValue = "vallluuuue";
var formettedInput = Observable("");
formettedInput.onValueChanged(module, function(x) {
var formatted = cc_format(x)
package com.fuse.genius;
import android.app.Activity;
import android.app.ProgressDialog;
import android.content.Intent;
import android.hardware.Camera;
import android.os.AsyncTask;
import android.os.Bundle;
using Uno;
using Uno.UX;
using Uno.Collections;
using Uno.Compiler.ExportTargetInterop;
using Fuse;
using Fuse.Triggers;
using Fuse.Controls;
using Fuse.Controls.Native;
using Fuse.Controls.Native.iOS;
using Uno.Threading;
using Uno;
using Uno.UX;
using Uno.Collections;
using Uno.Compiler.ExportTargetInterop;
using Fuse;
using Fuse.Triggers;
using Fuse.Controls;
using Fuse.Controls.Native;
using Fuse.Controls.Native.Android;
using Uno.Threading;
<App>
<JavaScript>
var Observable = require("FuseJS/Observable")
var picture = Observable()
picture.onValueChanged(module, function(x){
console.log(JSON.stringify(x))
<App>
<JavaScript>
var Observable = require("FuseJS/Observable")
function ItemForm(name, note, image, comment, askedOnSite, discountLabel){
var self = this;
this.name = name;
this.note = note;
namespace Native.iOS
{
using Uno;
using Uno.UX;
using Uno.Compiler.ExportTargetInterop;
using Fuse.Controls.Native.iOS;
[Require("Source.Include", "UIKit/UIKit.h")]
if __name__ == '__main__':
load_model()
# Adding some arg to a parser so its easy to manage
parser = argparse.ArgumentParser()
parser.add_argument('-src', '--source', dest='video_source', type=int, default=0, help='Device index of the camera.')
parser.add_argument('-wd', '--width', dest='width', type=int, default=320, help='Width of the frames in the video stream.')
parser.add_argument('-ht', '--height', dest='height', type=int, default=360, help='Height of the frames in the video stream.')
args = parser.parse_args()