Skip to content

Instantly share code, notes, and snippets.

View narita1980's full-sized avatar
🎯
Focusing

narita1980 narita1980

🎯
Focusing
View GitHub Profile
@narita1980
narita1980 / gist:c1323ac3919cfc2193faf21fe9993dfc
Created February 15, 2022 10:30
Mermaid syntax, for example
```mermaid
graph TD;
A-->B;
A-->C;
B-->D;
C-->D;
```
Hello!
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; base-uri 'self'; connect-src 'self'; form-action 'self'; img-src 'self' data:; script-src 'self'; style-src 'unsafe-inline'">
<meta content="origin" name="referrer">
<title>Server Error &middot; GitHub</title>
<style type="text/css" media="screen">
body {
background-color: #f1f1f1;
@narita1980
narita1980 / gist:6df2e035e4c99af60cc299567ce3b663
Last active November 15, 2020 00:47
Zoom集計用のシェル
# Zoomで数字の投票を集計するシェル
# Noをカンマ区切りで記載するとそれぞれの番号がいくつあったのか修正する
# 投票者の名前は投票数1でカウントされるので、本プログラム実行後に手動で削除してください。
$ cat memo.txt
あああああああ
1,2,3
いいいい
2,3,5
いいいい

Dev Challenge EXIA

ハッシュタグ: #DevChallengeEXIA (Twitter)

目的

  • Dev Protocolの利用者拡大
  • OSS開発者を超えたDev Protocolの宣伝
  • 小さな貢献からDevコミュニティーに人々を参加させる
echo "Hello World!"
@narita1980
narita1980 / Main.java
Created January 21, 2019 15:47
提出 #4065410
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
Scanner scanner = new Scanner(System.in);
String input = scanner.nextLine();
if (input.matches("keyence.*")) {System.out.println("YES"); return;}
if (input.matches("keyenc.*e")) {System.out.println("YES"); return;}
if (input.matches("keyen.*ce")) {System.out.println("YES"); return;}
@narita1980
narita1980 / gist:6c1e7f5824b7bb183d43459f76a13c59
Last active May 24, 2018 17:18
路線APIを使った路線の駅名を取得するスクリプト
curl http://www.ekidata.jp/api/l/27001.xml > stations.xml
echo "$1" | nkf -WwMQ | tr = %