Skip to content

Instantly share code, notes, and snippets.

View agrcrobles's full-sized avatar

Zetta Flow agrcrobles

  • Barcelona
View GitHub Profile
package com.hellohybrid;
/**
* Created by zetta on 2/1/17.
*/
import com.facebook.react.bridge.NativeModule;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.bridge.ReactContext;
import com.facebook.react.bridge.ReactContextBaseJavaModule;
import com.facebook.react.bridge.ReactMethod;
type Size = 1 | 2 | 3;
const GetSize = (): Size => {
const result: number = parseInt(Math.random() * 20);
if (result > 3) {
return 3;
}
return result;
};
import React from "react";
import { withRouter } from "react-router";
class Test extends React.Component {
constructor(props) {
super(props);
this.state = {
};
}
componentWillReceiveProps(nextProps) {
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Echk.Web.Mvc
{
/// <summary>
/// ale's approach
/// </summary>
.service('AdminPlantsDevicesCtrlInit', [
// Dependencias
'$q',
'$route',
'Plant',
'Notify',
function($q, $route, Plant, Notify) {
return {
prepare: function() {
var