Skip to content

Instantly share code, notes, and snippets.

View KMR-zoar's full-sized avatar

Zoar KMR-zoar

  • Kawagoe, Japan
View GitHub Profile
@KMR-zoar
KMR-zoar / index.html
Last active March 13, 2018 02:16
Mokuroku-Vector test
<!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>地理院タイル目録タイル</title>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css"/>
<script src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script>
<link rel="stylesheet" href="style.css" />
@KMR-zoar
KMR-zoar / boundary.geojson
Last active March 1, 2018 02:58
d3.js v4 + render polygon + render point + voronoi
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
require 'net/http'
require 'uri'
require 'json'
text = "Hello Slack!"
data = { "text" => text }
webhook_uri = "%Slack WebHooks URI%"
parsed_uri = URI.parse(webhook_uri)
res = Net::HTTP.post_form(
function Push-Notification () {
$webhookuri = ""
$username = ""
$datetime = Get-Date -Format "yyyy/MM/dd-HH:mm:ss"
$text = @{ text = "$username $env:USERDOMAIN has task completed. $datetime"; link_names= 1}
$payload = ConvertTo-Json -InputObject $text
Invoke-RestMethod -Uri $webhookuri -Method Post -Body $payload > $null
}
$filename = $ARGS
$elements = @("id", "lat", "lon", "created_at", "closed_at")
if ((Test-Path $filename) -eq $false)
{
Write-Host "File is not exist or access denied."
exit
}
Write-Output ("{")
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Add-Type -AssemblyName System.Windows.Forms
Start-Sleep -s 3
#2バイト文字もOKっぽい
[System.Windows.Forms.SendKeys]::SendWait("あか")
$include=[System.Windows.Forms.SendKeys]
$include::SendWait("OK")
--- bme280_sample.py 2016-07-12 13:28:25.468817326 +0900
+++ bme280.py 2016-07-12 13:44:07.662705914 +0900
@@ -1,3 +1,4 @@
+#!/usr/bin/env python
#coding: utf-8
import smbus
@@ -20,7 +21,7 @@
def get_calib_param():
#!/bin/sh
### BEGIN INIT INFO
# Provides: vpnup
# Required-Start: $all
# Required-Stop: $network $local_fs $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: SoftEther VPN Client
# chkconfig: 2345 99 1
# description: SoftEther VPN Client