Skip to content

Instantly share code, notes, and snippets.

View yoni333's full-sized avatar

yehonatan yehezkel yoni333

  • jerusalem
View GitHub Profile
@yoni333
yoni333 / machine.js
Last active September 11, 2022 19:36
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
npx create-react-app newapp // only first time to install react
create-react-app newapp // newapp is the name of new folder with json-pack
npm i redux --save // --save means to save in json package
npm i react-redux --save
npm i babel-plugin-transform-decorators-legacy --save
npm run eject
search for 'babel-loader' in webpack.congig.dev && webpack.config.prod
add ' plugins:['transform-decorators-legacy'],' insade options
in react we need to export Provider and connect from 'react-redux'
wrap - with Provider the main App component
npx create-react-app newapp // only first time to install react
create-react-app newapp // newapp is the name of new folder with json-pack
npm i redux --save // --save means to save in json package
npm i react-redux --save
npm i babel-plugin-transform-decorators-legacy --save
npm run eject
search for 'babel-loader' in webpack.congig.dev && webpack.config.prod
add ' plugins:['transform-decorators-legacy'],' insade options
in react we need to export Provider and connect from 'react-redux'
wrap - with Provider the main App component
@yoni333
yoni333 / redux-react.txt
Created August 19, 2018 13:43
redux with react installation
npm i create-react-app -g // only once to install this app
//on each project
create-react-app app // redux is invalid name
npm i redux --save
npm i react-redux --save
npm i babel-plugin-transform-decorators-legacy --save
npm run eject
//and then search for 'babel-loader'
//in webpack.config.dev && webpack.config.prod
@yoni333
yoni333 / readme.md
Created March 5, 2018 15:49
facebook api
<title>Document</title>
@yoni333
yoni333 / README.md
Created February 5, 2018 17:15 — forked from joyrexus/README.md
Vanilla JS equivalents of jQuery methods

Sans jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})
@yoni333
yoni333 / README.md
Created February 5, 2018 17:14 — forked from joyrexus/README.md
Vanilla JS equivalents of jQuery methods

Sans jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})
@yoni333
yoni333 / install_LAMP_ubuntu16.txt
Last active April 13, 2020 13:20
install lamp on ubuntu 16
#taked from:
#https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu-16-04
#https://downloads.mariadb.org/mariadb/repositories/#version=10.2&mirror=yamagata-university&distro=Ubuntu&distro_release=xenial--ubuntu_xenial
#https://tecadmin.net/install-php-7-on-ubuntu/
sudo apt-get update
sudo apt-get install -y apache2
#Set Global ServerName to Suppress Syntax Warnings -> sudo nano /etc/apache2/apache2.conf -> add in the end : ServerName server_domain_or_IP
#check it ->
sudo apache2ctl configtest
sudo systemctl restart apache2