ls /usr/bin/python*
sudo apt-get remove python3.5
sudo apt-get remove --auto-remove python3.5
sudo apt-get purge python3.5
//Starter version of the main app.js file | |
"use strict"; | |
const express = require("express"); | |
const app = express(); | |
const port = process.env.port || 4444; | |
app.get("/", (req, res) => { | |
//handle root | |
}); |
input { | |
jdbc { | |
clean_run => true | |
jdbc_driver_library => "/root/jdbc.jar" | |
jdbc_driver_class => "com.mysql.jdbc.Driver" | |
jdbc_connection_string => "jdbc:mysql://localhost:3306/jobschema" | |
jdbc_user => "root" | |
jdbc_pass => "" | |
schedule => "* * * * *" | |
statement => "select jobid, jobname, executiontime, jobstatus from jobdata where jobid > :sql_last_value" |
/* global require */ | |
const multipart = require('connect-multiparty') | |
const multipartMiddleware = multipart() | |
const path = require('path') | |
const os = require('os') | |
const fs = require('fs') | |
var express = require('express') | |
var app = express() |
<?php | |
/* | |
mPDF: Generate PDF from HTML/CSS (Complete Code) | |
*/ | |
require_once( 'mpdf/mpdf.php'); // Include mdpf | |
$stylesheet = file_get_contents('assets/css/pdf.css'); // Get css content | |
$html = '<div id="pdf-content"> | |
Your PDF Content goes here (Text/HTML) | |
</div>'; |
/** | |
* Remove the directory and its content (all files and subdirectories). | |
* @param string $dir the directory name | |
*/ | |
function rmrf($dir) { | |
foreach (glob($dir) as $file) { | |
if (is_dir($file)) { | |
rmrf("$file/*"); | |
rmdir($file); | |
} else { |
//Simple Application | |
<div id="myReactApp1"></div> | |
<div id="myReactApp2"></div> | |
<div id="myReactApp3"></div> | |
<script type="text/babel"> | |
class Man extends React.Component { | |
render() { | |
return <h1>{"Name: "+this.props.name+", Age: "+this.props.age}</h1> | |
} |