This file contains hidden or 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
from time import sleep | |
import multiprocessing | |
import numpy as np | |
createWTRC = True | |
online = True | |
flipImg = True # feito em cpu | |
options = { | |
#"frame_size_reduction": 25, | |
} |
This file contains hidden or 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 required libraries | |
import uvicorn | |
from vidgear.gears.asyncio import WebGear_RTC | |
# import necessary libs | |
import uvicorn, asyncio, cv2 | |
from av import VideoFrame | |
from aiortc import VideoStreamTrack | |
from vidgear.gears.asyncio import WebGear_RTC | |
from vidgear.gears.asyncio.helper import reducer |
This file contains hidden or 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 required libraries | |
import uvicorn | |
from vidgear.gears.asyncio import WebGear_RTC | |
# import necessary libs | |
import uvicorn, asyncio, cv2 | |
from av import VideoFrame | |
from aiortc import VideoStreamTrack | |
from vidgear.gears.asyncio import WebGear_RTC | |
from vidgear.gears.asyncio.helper import reducer |
This file contains hidden or 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
license: gpl-3.0 | |
height: 500 | |
border: no |
This file contains hidden or 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
--- test32.asm 2019-03-22 21:28:05.000000000 -0300 | |
+++ test64.asm 2019-03-22 21:28:28.000000000 -0300 | |
@@ -11,11 +11,10 @@ | |
movq %rsp, %rbp | |
.cfi_def_cfa_register %rbp | |
movq %rdi, -8(%rbp) | |
- movl %esi, -12(%rbp) | |
- movq -8(%rbp), %rdi | |
- movl -12(%rbp), %esi | |
- movl %esi, %eax |
Click and drag to move states around.
So, what happens when you use the Delaunay triangulation to compute links between the centroids of Brazilian States? And then you simulate the whole thing as a force-directed graph? This, it turns out! Built with D3. Originally from (https://bl.ocks.org/mbostock/1073373).
This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Barabási-Albert Model Simulation</title> | |
<link rel="stylesheet" type="text/css" href="style.css"> | |
<!-- <script src="https://d3js.org/d3.v4.min.js"></script> --> | |
<script src="https://d3js.org/d3.v4.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore-min.js"></script> | |
<link href="https://fonts.googleapis.com/css?family=Arimo" rel="stylesheet"> |
Click to add nodes! Nodes near the cursor will be linked to the new node. Clicking an existing node will remove it.
This is an extension of this example, adding the capability of removing nodes by clicking them. This means that dragging is no longer supported.
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<meta charset="utf-8"> | |
<style> | |
body { | |
padding:0px; | |
padding-top:2px; | |
} | |
</style> |
NewerOlder