This idea came to me when i found out that matplotlib can do animations
In each iteration of loop
<?php | |
class rssObject{ | |
public $link; | |
public $data_array; | |
public $filtered_data = array(); | |
//this function get the data from the link to an "assosiative" array | |
function getRss($link){ | |
$curl = curl_init(); |
const tf = require("@tensorflow/tfjs"); | |
const fs = require('fs'); | |
let dictionary = require('./model/dictionary.json'); | |
//create rough function | |
async function loadModel(){ | |
const model = await tf.loadLayersModel("http://127.0.0.1:8000/model/model.json"); | |
console.log("Model loaded") | |
return model |
from flask import Flask,request,g | |
from settings import dbpassword, dbusername | |
import mysql.connector | |
import json | |
import datetime | |
app = Flask(__name__) | |
import dateparser | |
import re | |
#this file will contain the utilities like texting text parser and date parsers that the scraper needs | |
class utils(object): | |
#define self | |
def __init__(self): | |
pass | |
require('ngraph.tojson') | |
require('fs') | |
import { createGraphFromGeoJson } from './createGraphFromGeoJson'; | |
var graph = createGraphFromGeoJson({"type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[[[[73.5134525,4.0836358],[73.5135492,4.0838596],[73.5130893,4.0842318],[73.5127634,4.0844907],[73.5124225,4.0847396],[73.5122279,4.0848665],[73.5120493,4.0849302],[73.5117368,4.0850733],[73.5115068,4.0850833],[73.5113856,4.0850514],[73.5111576,4.0851611],[73.5109135,4.0852413],[73.5108304,4.0852841],[73.5106775,4.0853243],[73.5105488,4.0853564],[73.5103878,4.0853671],[73.5101813,4.0852948],[73.5100472,4.0851798],[73.5100686,4.0850728],[73.5101652,4.0850433],[73.5103154,4.085046],[73.5104281,4.085046],[73.510538,4.08503],[73.5106559,4.0850015],[73.5107465,4.0846735],[73.510825,4.0845644],[73.5109618,4.0843959],[73.5112059,4.084115],[73.5113132,4.0839438],[73.5115063,4.0837351],[73.5115868,4.0834649],[73.5117665,4.0833284],[73.5118577,4.0831572],[73.5119301,4.0830234],[73.5119462,4.0829217],[73.5119194,4.0 |
function checkIntercept(line,poly){ | |
for (var i = 0; i < poly.length; i++) { | |
c_poly = poly[i] | |
initial_check = turf.booleanCrosses(line,c_poly); | |
if (initial_check == 1){ | |
console.log("crosses") | |
line_array = line.geometry.coordinates | |
//define options for the pointinpolygon , only accepted if inside border |
import 'package:flutter/material.dart'; | |
void main() => runApp(new MyApp()); | |
class MyApp extends StatelessWidget { | |
import 'package:flutter/material.dart'; | |
void main() => runApp(new MyApp()); | |
class MyApp extends StatelessWidget { | |
#generates a random string of length 5 | |
import uuid | |
import socket | |
t = 0 | |
def genHash(): | |
token = str(uuid.uuid4()) | |
hash = (token[:5]) | |
return hash | |
while t == 0: |