Skip to content

Instantly share code, notes, and snippets.

View arky's full-sized avatar

Arky arky

View GitHub Profile
@arky
arky / app.py
Last active February 19, 2024 14:59
# 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
#!/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
@arky
arky / gist:ace36ceac31f89e01ceb8cb8b5eabeeb
Created May 26, 2022 15:20
React Number input with support for abbreviations k, m and b
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
@arky
arky / Myanmar-Pcode-Search.ipynb
Last active March 24, 2021 19:22
Pcodes-test
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
@arky
arky / map.geojson
Last active March 22, 2020 08:39
Coordinates2GeoJson-Test
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@arky
arky / gist:6659651
Created September 22, 2013 12:56
Daily Words Google Apps Script Google Apps Script to parse and display wordsmith.org A Word A Day RSS Feed http://playingwithsid.blogspot.com/2013/09/google-apps-script-for-google-sites.html
//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();
@arky
arky / gist:6659489
Last active December 23, 2015 15:59
Google Apps Script to parse and display wordcentral.com's Daily Buzzword RSS feed. http://playingwithsid.blogspot.com/2013/09/google-apps-script-for-google-sites.html
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();