- Here are some default vars for the process
ISO_DIR=~/fedora;
ROOTFS_MOUNT_DIR=/mnt/contents
DISTRO_LOCATION=
using System; | |
using UnityEngine; | |
using UnityEngine.Tilemaps; | |
using Random = UnityEngine.Random; | |
public class PlayerAnimator : MonoBehaviour { | |
[SerializeField] private float _minImpactForce = 20; | |
// Anim times can be gathered from the state itself, but | |
// for the simplicity of the video... |
Problem Statement: | |
Use Go to augment the processing power of Python. | |
Solutions: | |
(1) Call GO from Python: | |
This can be done but it is a bit tedious as shown below: |
package main | |
import ( | |
"github.com/qiniu/py" | |
"log" | |
//"path/filepath" | |
"strconv" | |
) | |
func callPythonFunction(file string, function string) (int, string) { |
#!/usr/bin/env python | |
import os | |
import xml.parsers.expat | |
from xml.sax.saxutils import escape | |
from optparse import OptionParser | |
from math import log10 | |
# How much data we process at a time |
Here I have 2 methods for running portainer on windows, a quick, preferred method only requiring a fairly recent version of docker, or a more complicated method to try if that does not work.
This setup will let you run Portainer on windows by using the host.docker.internal endpoint (docker.for.win.localhost
is depricated since docker version 3.2.1, but older versions may use this instead).
Please note:
1.Create desktop config file | |
sudo nano /usr/share/applications/smartsvn.desktop | |
2. Put the text below | |
[Desktop Entry] | |
Name=SmartSVN | |
Name[en]=SmartSVN | |
Name[ru]=SmartSVN |
package main | |
import ( | |
"github.com/qiniu/py" | |
"log" | |
//"path/filepath" | |
"strconv" | |
) | |
func callPythonFunction(file string, function string) (int, string) { |
#!/usr/bin/env bash | |
apt-get -y update | |
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev | |
cd /tmp | |
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p194.tar.gz | |
tar -xvzf ruby-1.9.3-p194.tar.gz | |
cd ruby-1.9.3-p194/ | |
./configure --prefix=/usr/local | |
make | |
make install |
#!/usr/bin/env python | |
import os | |
import xml.parsers.expat | |
from xml.sax.saxutils import escape | |
from optparse import OptionParser | |
from math import log10 | |
# How much data we process at a time |