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
diff --git a/chromium/scripts/build_ffmpeg.py b/chromium/scripts/build_ffmpeg.py | |
index 881494a..b56e435 100755 | |
--- a/chromium/scripts/build_ffmpeg.py | |
+++ b/chromium/scripts/build_ffmpeg.py | |
@@ -552,9 +552,9 @@ def main(argv): | |
# Google Chrome & ChromeOS specific configuration. | |
configure_flags['Chrome'].extend([ | |
- '--enable-decoder=aac,h264,mp3', | |
- '--enable-demuxer=aac,mp3,mov', |
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 main | |
import ( | |
"fmt" | |
"syscall" | |
//~ "time" | |
"unsafe" | |
"golang.org/x/sys/windows" | |
) |
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
var canvas = document.getElementsByTagName('canvas')[0]; | |
var context = canvas.getContext('2d'); | |
var runner = new Runner(); | |
var insight = 280; | |
runner.restart(); | |
var keeper = setInterval(function() { | |
if (!runner || !runner.onKeyDown) { | |
clearInterval(keeper); | |
return; | |
} |
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
#!/usr/bin/env bash | |
read -r -d '' usage << EOM | |
Usage: | |
gh-deploy-clone user/repo [ENVIRONMENT] | |
EOM | |
[ -z "$1" ] && echo && echo "$usage" && echo && exit 1 |
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 serial | |
import re | |
import requests | |
ser = serial.Serial('/dev/ttyUSB0') | |
ser.write('AT+CSCS="UCS2"\n') | |
while 1: | |
read=ser.readline() | |
match=re.match(r'\+CMTI: "ME",(\d+)',read) | |
if(match): | |
ser.write('AT+CMGR=' + match.group(1) + '\n') |
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 cv2 | |
import time | |
CONFIDENCE_THRESHOLD = 0.2 | |
NMS_THRESHOLD = 0.4 | |
COLORS = [(0, 255, 255), (255, 255, 0), (0, 255, 0), (255, 0, 0)] | |
class_names = [] | |
with open("classes.txt", "r") as f: | |
class_names = [cname.strip() for cname in f.readlines()] |