Skip to content

Instantly share code, notes, and snippets.

@JoeThunyathep
JoeThunyathep / index.html
Created May 1, 2024 23:10
3D Web Application - CesiumJS
<html lang="en">
<head>
<meta charset="utf-8">
<script src="https://cesium.com/downloads/cesiumjs/releases/1.94/Build/Cesium/Cesium.js"></script>
<link href="https://cesium.com/downloads/cesiumjs/releases/1.94/Build/Cesium/Widgets/widgets.css" rel="stylesheet">
<script src="https://3dps.gis.lrg.tum.de/viewerCesiumNavigationMixin.min.js"> </script>
<style>
body {
margin: 0;
<!DOCTYPE html>
<html lang="en">
<head>
<title>Cesium 3D Tileset Example</title>
<script src="https://cesium.com/downloads/cesiumjs/releases/1.103/Build/Cesium/Cesium.js"></script>
<link rel="stylesheet" href="https://cesium.com/downloads/cesiumjs/releases/1.103/Build/Cesium/Widgets/widgets.css">
<style>
#cesiumContainer {
width: 100%;
height: 100%;
<input type="file" id="fs" multiple> <br>
<small id="target"></small>
<input type="file" id="fs" multiple>
var JSObfuscator = require('javascript-obfuscator');
var script_string = `
var a = 1
var b = 2
function plus(a,b) {
return a+b;
}
console.log(plus(a,b))
`
// Obfuscated Script
var _0x5c8d7d=_0x4174;(function(_0x11377e,_0x2dd3ec){var _0x59375d=_0x4174,_0x55254b=_0x11377e();while(!![]){try{var _0x2c463f=parseInt(_0x59375d(0x15e))/0x1+-parseInt(_0x59375d(0x15d))/0x2+-parseInt(_0x59375d(0x15c))/0x3*(-parseInt(_0x59375d(0x168))/0x4)+-parseInt(_0x59375d(0x165))/0x5*(parseInt(_0x59375d(0x162))/0x6)+-parseInt(_0x59375d(0x166))/0x7*(-parseInt(_0x59375d(0x167))/0x8)+-parseInt(_0x59375d(0x163))/0x9*(-parseInt(_0x59375d(0x161))/0xa)+parseInt(_0x59375d(0x164))/0xb*(-parseInt(_0x59375d(0x160))/0xc);if(_0x2c463f===_0x2dd3ec)break;else _0x55254b['push'](_0x55254b['shift']());}catch(_0x904551){_0x55254b['push'](_0x55254b['shift']());}}}(_0x5dc1,0x8c597));var a=0x1,b=0x2;function _0x4174(_0xe31d3c,_0x5e5a8b){var _0x5dc1a8=_0x5dc1();return _0x4174=function(_0x4174a4,_0x851483){_0x4174a4=_0x4174a4-0x15c;var _0x4ec8ef=_0x5dc1a8[_0x4174a4];return _0x4ec8ef;},_0x4174(_0xe31d3c,_0x5e5a8b);}function plus(_0x166587,_0x32cf6c){return _0x166587+_0x32cf6c;}function _0x5dc1(){var _0xad8c19=['4kHLobh','953268mCn
var a = 1
var b = 2
function plus(a,b) {
return a+b;
}
console.log(plus(a,b))
import pandas as pd
import matplotlib.pyplot as plt
from sqlalchemy import create_engine
# Connect to database
engine = create_engine(f"postgresql+psycopg2://{user}:{pasw}@{host}:{port}/{db}") # Edit/Add user,pasw,host,port,db here!
# Read data from database
table_name = "stuttgart_ap_time"
table_df = pd.read_sql_table(table_name,con=engine,parse_dates=True)
table_df = table_df.set_index("timestamp")
# Plot
# Import Module
import pandas as pd
from sqlalchemy import create_engine
# Get data using Pandas
df = pd.read_html('https://www.stuttgart-airport.com/security-wait-times/')
# Some minor data cleaning
df = df[0]
df['Wait times'] = df['Wait times'].str.replace(r'\D', '')
df['Wait times'] = pd.to_numeric(df['Wait times'], errors='coerce').astype('float')
# Load modules
import requests,datetime
from bs4 import BeautifulSoup
# Load Data
url = "https://www.stuttgart-airport.com/security-wait-times/"
req = requests.get(url)
# Parse HTML and search for Class/ID/Xpath...
bsObj = BeautifulSoup(req.text, "html.parser")