This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.getcapacitor.plugin; | |
import android.Manifest; | |
import android.content.pm.PackageManager; | |
import android.location.Location; | |
import android.os.Looper; | |
import com.getcapacitor.JSObject; | |
import com.getcapacitor.NativePlugin; | |
import com.getcapacitor.Plugin; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
NUMBER=1000 | |
list="" | |
while read -r line; | |
do | |
name=$(echo $line | awk '{print $1;}') | |
if [ "$name" != "NAME" ]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Download and unarchive openvswitch: | |
wget http://openvswitch.org/releases/openvswitch-2.5.0.tar.gz | |
tar -xvzf openvswitch-2.5.0.tar.gz | |
cd openvswitch-2.5.0 | |
### Install all dependencies: | |
sudo apt-get install python-simplejson python-qt4 libssl-dev python-twisted-conch automake autoconf gcc uml-utilities libtool build-essential pkg-config | |
### Build openvswitch: | |
./configure |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import tensorflow as tf | |
x = tf.placeholder("float", [None, 2], name="X") | |
y = tf.placeholder("float", [None, 1], name="Y") | |
w = tf.Variable(tf.random_normal([2, 1], stddev=0.01), tf.float32) | |
b = tf.Variable(tf.random_normal([1])) | |
linear_model = tf.matmul(x, w) + b |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
X_and = np.array([[0,0], [0,1], [1,0], [1,1]]) | |
Y_and = np.array([ [0], [0], [0], [1]]) | |
X_or = np.array([[0, 0], [0,1], [1,0], [1,1]]) | |
Y_or = np.array([ [0], [1], [1], [1]]) | |
X_nor = np.array([[0,0], [0,1], [1,0], [1,1]]) | |
Y_nor = np.array([ [1], [0], [0], [0]]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import io | |
import socket | |
import struct | |
import time | |
import picamera | |
import argparse | |
import logging | |
######################################################################################################################## | |
logging.basicConfig(level=logging.INFO, datefmt='%m/%d/%Y %I:%M:%S %p', format='%(asctime)s - %(name)s - %(message)s') |