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
Running certain Java applications on GNU/Linux can be unreliable. Java applications often use their own mechanisms for GUI and font rendering, which might not work well under the GNU/Linux operating system. | |
On Ubuntu 20.04 LTS, I found that the behavior of most Java applications can be controlled by supplying predefined variables to the Java runtime in `/etc/profile.d/jre.sh`. | |
``` bash | |
# /etc/profile.d/jre.sh | |
export JDK_JAVA_OPTIONS='-Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel -Dswing.crossplatformlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel' | |
export JDK_JAVA_OPTIONS='-Djdk.gtk.version={2,2.2,3}' | |
export _JAVA_OPTIONS='-Dsun.java2d.opengl=true' |
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
# example and data from: | |
# https://ipyleaflet.readthedocs.io/en/latest/layers/geo_json.html | |
# https://ipyleaflet.readthedocs.io/en/latest/layers/marker.html | |
import json | |
import pathlib | |
import random | |
from shiny import reactive | |
from shiny.express import ui, render, input | |
from shinywidgets import render_widget |
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
#!/usr/bin/env python | |
# coding: utf-8 | |
# Example python code to extract Named-entity recognition (NER) | |
# from a PDF document. | |
# | |
# The script uses spacy and spacypdfreader | |
# Install a pip packages require for | |
#import sys |
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 React from 'react'; | |
import CurrencyInput from 'react-currency-input-field'; | |
import { FormFieldWrapper } from '@plone/volto/components'; | |
const CurrencyWidget = (props) => { | |
const { id, value, isDisabled, onClick, onChange, maximum, minimum } = props; | |
return ( | |
<FormFieldWrapper {...props}> | |
<CurrencyInput |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
ISO3166-2 | Province | Date | Incidents | |
---|---|---|---|---|
VN-89 | An Giang | 2020/01/22 | 0 | |
VN-43 | Ba Ria - Vung Tau | 2020/01/22 | 3 | |
VN-54 | Bac Giang | 2020/01/22 | 0 | |
VN-53 | Bac Kan | 2020/01/22 | 0 | |
VN-55 | Bac Lieu | 2020/01/22 | 0 | |
VN-56 | Bac Ninh | 2020/01/22 | 3 | |
VN-50 | Ben Tre | 2020/01/22 | 0 | |
VN-31 | Binh Dinh | 2020/01/22 | 0 | |
VN-57 | Binh Duong | 2020/01/22 | 3 |
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
ID Tên Mục đích Chức năng Vị trí Quy mô (người) Sự tham gia Tỉnh Link tham khảo | |
1 Khu nhà ở sinh viên Pháp Vân - Tứ Hiệp Trưng dụng cách ly tập trung Khu nhà ở sinh viên "Khu nhà ở sinh viên Pháp Vân - Tứ Hiệp (quận Hoàng Mai, Hà Nội)" 4000 "Quân đội, Công an, Bảo vệ tổ dân phố, Dân quân tự vệ" Hà Nội https://vnreview.vn/tin-tuc-xa-hoi-so/-/view_content/content/3097388/ha-noi-co-bao-nhieu-khu-cach-ly-tap-trung-phong-chong-dich-covid-19 | |
2 Cao đẳng nghề Công nghệ cao Hà Nội Trưng dụng cách ly tập trung Ký túc xá sinh viên "Cao đẳng nghề công nghệ cao Hà Nội phường Tây Mỗ, quận Nam Từ Liêm. Thành phố Hà Nội" 800 "Quân đội, Công an, Bảo vệ tổ dân phố, Dân quân tự vệ" Hà Nội https://vnreview.vn/tin-tuc-xa-hoi-so/-/view_content/content/3097388/ha-noi-co-bao-nhieu-khu-cach-ly-tap-trung-phong-chong-dich-covid-19 | |
3 Khu nhà ở sinh viên Mỹ Đình 2 Trưng dụng cách ly tập trung Khu nhà ở sinh viên "Khu nhà ở sinh viên tại phường Mỹ Đình II, quận Nam Từ Liêm (Hà N |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
//Parses Wordsmith XML Feed | |
function doGet(){ | |
// Fetch XML | |
var response = UrlFetchApp.fetch("http://wordsmith.org/awad/rss1.xml").getContentText(); | |
// Parse XML | |
var parsedResponse = Xml.parse(response, false); | |
var word = parsedResponse.getElement().getElement('channel').getElement('item').getElement('title').getText(); |
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
function doGet() { | |
// Fetch XML | |
var response = UrlFetchApp.fetch("http://wordcentral.com/buzzword/rss.xml").getContentText(); | |
// Parse XML | |
var parsedResponse = Xml.parse(response, false); | |
var word = parsedResponse.getElement().getElement('channel').getElement('item').getElement('title').getText(); | |
var desc = parsedResponse.getElement().getElement('channel').getElement('item').getElement('description').getText(); | |