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 CodeMirror from 'codemirror' | |
CodeMirror.defineMode('law', () => { | |
return { | |
token: (stream, state) => { | |
const inBrackets = stream.match(/(.*?)/) | |
if (inBrackets) { | |
return 'keyword' | |
} | |
stream.next() |
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 remove_search_marker() { | |
var remove_layer_name = 'geocoder-layer'; | |
var layers_to_remove = []; | |
map.getLayers().forEach(function(layer) { | |
var layer_name = layer.getProperties().name; | |
if (layer_name && layer_name.match(remove_layer_name)) { | |
layers_to_remove.push(layer); | |
} | |
}); |
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
let | |
filePath = "?????.geojson", | |
source = Json.Document(File.Contents(filePath)), | |
converted2Table = Record.ToTable(source), | |
features = converted2Table{5}[Value], | |
fearure2table = Table.FromList( | |
features, Splitter.SplitByNothing(), null, null, ExtraValues.Error | |
), | |
expandedColumn1 = Table.ExpandRecordColumn( | |
fearure2table, "Column1", { |
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
[param] | |
east = "137.500,20.455,153.987,45.558" | |
center = "129.587,20.455,137.945,37.910" | |
west = "122.933,20.455,129.815,34.780" | |
[osm] | |
api = "https://www.openstreetmap.org/history/feed" | |
[rgeocode] | |
api = 'http://www.finds.jp/ws/rgeocode.php' |
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
javascript:(function(){if(location.hostname==='www.openstreetmap.org'&&location.pathname.slice(1,10)==='changeset'){window.open('https://osmlab.github.io/changeset-map/#'+location.pathname.slice(location.pathname.lastIndexOf('/')+1));void(0)}else{window.alert('It is not OSM changeset URL')}})(); |
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
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Document</title> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.39.0/codemirror.css"> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.39.0/codemirror.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.39.0/mode/markdown/markdown.min.js"></script> |
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
if [ "$color_prompt" = yes ]; then | |
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[00;36m\]\w\[\033[00m\]\$ ' | |
else |
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
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>TimeTable</title> | |
<link rel="stylesheet" href="tablestyle.css"> | |
</head> | |
<body> |
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
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<!-- | |
Vue.js 入門: http://www.tohoho-web.com/ex/vuejs.html | |
--> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Vue Test</title> |
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
#!/bin/bash | |
docker images | grep latest | awk '{print $1}' | xargs -IXX docker pull XX | |
dangling=`docker images -f dangling=true -q | wc -l` | |
if [ $dangling != '0' ] | |
then | |
docker images -f dangling=true -q | xargs docker rmi | |
fi |