Instantly share code, notes, and snippets.

View spacemacs.el
;; -*- 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
View ロジスティクス写像.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View logitics.py
import matplotlib.pyplot as plt
dt = 0.01
x = 4
r = 2
k = 2
def dx(t,x):
return r*x*(1-x/k)
View nstld.com.txt
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:
View amazon.txt
> 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=>
View gist:8386554
PROMPT="[%{${fg[gray]}%}%~%{${reset_color}%}]
(¥・д・¥) < %(!.#.$)%{${reset_color}%} "
View lifegame.c
#include<stdio.h>
#include<time.h>
#include<stdlib.h>
#define H 10
#define W 10
void init(int cell[][H+2][W+2]);
View gist:7786171
#include<iostream>
using namespace std;
int p[500000];
int m[300];
int max(int a,int b){
return (a < b) ? b : a;
}
View 何かのダウンロード
cut -d, -f9 SearchResults.csv | sed "s/book/content\/pdf/" | grep http | sed 's/"//g' | awk '{print $0 ".pdf"}' | xargs wget
View .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