Skip to content

Instantly share code, notes, and snippets.

View kimitoboku's full-sized avatar

Kento KAWAKAMi kimitoboku

View GitHub Profile
dig +norec @m.root-servers.net vs2.nstld.com
; <<>> DiG 9.10.2-P1 <<>> +norec @m.root-servers.net vs2.nstld.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 7956
;; flags: qr; QUERY: 1, ANSWER: 0, AUTHORITY: 13, ADDITIONAL: 16
;; OPT PSEUDOSECTION:
> go run main.go www.amazon.co.jp
202.12.27.33=>
jp. -> f.dns.jp.
150.100.6.8=>
amazon.co.jp. -> ns2.p31.dynect.net.
202.12.27.33=>
net. -> f.gtld-servers.net.
192.35.51.30=>
dynect.net. -> ns3.dynamicnetworkservices.net.
202.12.27.33=>
PROMPT="[%{${fg[gray]}%}%~%{${reset_color}%}]
(¥・д・¥) < %(!.#.$)%{${reset_color}%} "
#include<stdio.h>
#include<time.h>
#include<stdlib.h>
#define H 10
#define W 10
void init(int cell[][H+2][W+2]);
@kimitoboku
kimitoboku / gist:7786171
Created December 4, 2013 11:34
駄目な解答
#include<iostream>
using namespace std;
int p[500000];
int m[300];
int max(int a,int b){
return (a < b) ? b : a;
}
cut -d, -f9 SearchResults.csv | sed "s/book/content\/pdf/" | grep http | sed 's/"//g' | awk '{print $0 ".pdf"}' | xargs wget
@kimitoboku
kimitoboku / .spacemacs
Created December 22, 2015 05:21
.spacemacs
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
values."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
""ヒントモード
set hintchars=ifjklasdweuocvbnm
highlight Hint z-index:5000; font-family:monospace; font-size:15px; color:white; background-color:blue; border-color:ButtonShadow; border-width:0px; border-style:solid; padding:0px 1px 0px 1px; position:absolute; text-transform: uppercase;
""jk移動の距離
noremap j 10<C-e>
noremap k 10<C-y>
""C-n C-p移動
noremap <C-n> 5<C-e>
@kimitoboku
kimitoboku / test.rb
Last active December 20, 2015 05:57
require 'open-uri'
require 'pp'
require 'nokogiri'
require 'kconv'
URL = "https://www.ead.tut.ac.jp/board/main.aspx"
doc = Nokogiri::HTML.parse(open(URL).read.toutf8)
lectureCancellation = doc.xpath(%Q[//table[@id="grvCancel"]])
lectureCancellation.text.split(/(\s\s\s+)/).each do |i|
if(i =~ /\(.\)/)then
ackage main
import (
"encoding/json"
"fmt"
"github.com/ChimeraCoder/anaconda"
"io/ioutil"
"net/url"
"os"
"strconv"