This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
INPUT=${1:?} | |
OUTPUT=${2:-${INPUT//.pdf/-crop.pdf}} | |
get_bbox() { | |
gs -sDEVICE=bbox \ | |
-dBATCH -dNOPAUSE \ | |
-c save pop \ | |
-f ${INPUT} 2>&1 \ | |
| grep 'HiResBoundingBox' \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name post new paper to Scrapbox | |
// @description post arXiv.or.js to your Scrapbox.io | |
// @namespace http://xr0038.net | |
// @include https://arxiv.org/abs/* | |
// @run-at document-end | |
// @version 1 | |
// ==/UserScript== | |
(function(Scrapbox){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GIMP Palette | |
Name: Color Universal Design | |
Columns: 1 | |
# | |
255 75 0 J08-50V | |
255 241 0 J27-85V | |
3 175 122 J46-60T | |
0 90 255 J72-40T | |
77 196 255 J69-70P | |
255 128 130 J02-70T |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GIMP Palette | |
Name: JIS Safe Color | |
Columns: 1 | |
# | |
255 75 0 J08-50V | |
246 170 0 K15-65X | |
242 231 0 K27-80V | |
0 176 107 K45-55T | |
25 113 255 K72-45T | |
153 0 153 K89-40T |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass[a4paper]{jsarticle} | |
\usepackage{xspace} | |
\usepackage{etoolbox,etextools} | |
\makeatletter | |
\newcommand*{\MyDefinition}[3]{% | |
\newtoggle{\string#1}% | |
\togglefalse{\string#1}% | |
\DeclareRobustCommand*#1{% | |
\@ifstar{\csname s\string#1\endcsname}{\csname n\string#1\endcsname}}% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
from __future__ import print_function, absolute_import, division | |
from kernel import expand_dims | |
import numpy as np | |
import scipy as sci | |
def GPmodel(x, y, kernel, **options): | |
x,y = expand_dims(x),expand_dims(y) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
#-*- coding: utf-8 -*- | |
from argparse import ArgumentParser as ap | |
from astropy.time import Time | |
from astropy.coordinates import Longitude, Latitude | |
from pprint import pprint | |
from pyquery import PyQuery | |
import astropy.units as u | |
import requests, sys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ffmpeg -r 6 -f image2 -start_number 1000 -i image%4d.jpg \ | |
-vf 'scale=1280:720:force_original_aspect_ratio=decrease,pad=1280:720:160:0' \ | |
-vcodec h264 -pix_fmt yuv420p -r 6 output.avi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
splot Z(x,y) t "Z は座標 (x,y) での z 座標を返す関数" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass[10pt,a4paper,pdftex]{article} | |
\usepackage{idp2018} | |
\title{Template and Instructions for Abstract Submission to IDP 2018} | |
\author{A. B. Author$^1$} | |
\affil{$^1$Affiliation for A. B. Author} | |
\email{author.a.b@example.com} | |
\begin{document} | |
\section{Introduction} |
NewerOlder