Skip to content

Instantly share code, notes, and snippets.

View eugenekgn's full-sized avatar

Eugene Kagan eugenekgn

  • Westbury, New York
View GitHub Profile
@eugenekgn
eugenekgn / machine.js
Last active December 25, 2019 17:54
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@eugenekgn
eugenekgn / google-map-field
Created November 13, 2017 19:41
google-map-field
import React from 'react'
import PropTypes from 'prop-types'
import { withScriptjs, withGoogleMap, GoogleMap, Marker } from 'react-google-maps'
import Field from 'redux-form/es/Field'
const _Maps = ( withScriptjs(withGoogleMap((props) =>
<GoogleMap
defaultZoom={ 8 }
defaultCenter={ { lat: -34.397, lng: 150.644 } }
loadingElement={ <div style={ { height: `100%` } }/> }
(function () {
var dateTimeController = function ($scope, $rootScope) {
$scope.vm = {
message: "Bootstrap DateTimePicker Directive",
dateTime: {}
};
$scope.$watch('change', function(){
console.log($scope.vm.dateTime);
});