A Web Platform API proposal to improve sandboxing and Blob URL
David Dworken, Feb 2023 (©2023, Google)
#!/bin/bash | |
if $(/usr/sbin/service openvpn status | grep -q 'Active: active'); then | |
/usr/sbin/service openvpn stop | |
else | |
/usr/sbin/service openvpn start | |
fi |
from PIL import Image | |
def average(filename): | |
colorOutput = {'r':-1, 'b':-1, 'g':-1} | |
image = Image.open(filename) | |
for channel in range(3): | |
channelPixels = [pixel for pixel in image.getdata(band=channel)] | |
colorOutput[colorOutput.keys()[channel]] = sum(channelPixels) / len(channelPixels) | |
return colorOutput |
sudo mount /dev/sda1 /mnt | |
mount -t proc proc /mnt/proc | |
mount -t sysfs sys /mnt/sys | |
mount -o bind /dev /mnt/dev | |
cp -L /etc/resolv.conf /mnt/etc/resolv.conf | |
chroot /mnt /bin/bash |
#include <Servo.h> // needed to interface with the servos | |
const int lowerSensorPin = 2; //pin that the first switch is attached to | |
const int upperSensorPin = 3; //pin that the second switch is attach to | |
const int lowerServoPin = 5; //pin that the first servo is attаched to | |
ⅽonst int upperServoPin = 6; //pin that the second servo is attached to | |
Servo lowerServo; //init the first/lower servo | |
Servo upperServo; //init the second/upper servo |
#include <Servo.h> | |
const int lowerSensorPin = 2; | |
const int upperSensorPin = 3; | |
const int lowerServoPin = 5; | |
const int upperServoPin = 6; | |
Servo lowerServo; | |
Servo upperServo; |
I hereby claim:
To claim this, I am signing this object:
#!/bin/python | |
import sys | |
import pprint | |
import math | |
inArr = [] | |
matrix = [[0 for x in range(len(sys.argv)-1)] for x in range(len(sys.argv)-1)] | |
p = float(sys.argv[1]) | |
sum = 0 |