Skip to content

Instantly share code, notes, and snippets.

🗾
in Japan

Naba Naba0123

🗾
in Japan
Block or report user

Report or block Naba0123

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Naba0123
Naba0123 / hatena-noindex.js
Last active Jun 8, 2019
noindex hatena blog
View hatena-noindex.js
<script type="text/javascript">
window.addEventListener('DOMContentLoaded', function() {
<!-- NOINDEX -->
if (document.getElementsByTagName("body")[0].classList.contains("category-noindex")){
console.log('add noindex'); // noindex が追加されているかの確認用。不要なら消してください。
var head = document.getElementsByTagName("head")[0];
var meta = document.createElement("meta");
meta.setAttribute("name","robots");
meta.setAttribute("content","noindex");
head.appendChild(meta);
@Naba0123
Naba0123 / system-cpu-log
Created Feb 5, 2018
1日のCPU平均使用率をツイートする
View system-cpu-log
#!/bin/bash
mpstat 1 1 | sed -n '4,4p' | awk '{ print $13 }' >> ~/ruby/cpu-log
View mission4_2.java
import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws Exception {
// 入力
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String rs = "";
rs = br.readLine();
View mission3.java
import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws Exception {
// 入力
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String rs = "";
rs = br.readLine();
View mission2.java
import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String line = "";
String rs = "";
while ((rs = br.readLine()) != null) {
line += rs + "\n";
View mission1.java
import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String line = br.readLine();
int i = -1;
String out = "";
while (i++ < line.length() - 1) {
View tsubame.php
<?php
// 緑川つばめ
$input = trim(fgets(STDIN));
$result = $input;
$result += floor($input / 10);
$result += $input % 10;
View rio.php
<?php
// 六村リオ
# コーヒーを$amount味見をする
function drinkCoffee($amount)
{
global $water;
global $coffee;
// 味見をする量の方が多い場合は量は0となる
View kirishima.php
<?php
# 霧島京子
// 配列数は要らない
fgets(STDIN);
// 盤面
$cells = explode(' ', trim(fgets(STDIN)));
$goal = count($cells) - 1;
$comeflag = array_fill(0, count($cells), false);
You can’t perform that action at this time.