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 | |
function docker-list-tags () { | |
if [ $# -ne 1 ]; then | |
echo "Usage: $0 [<NAMESPACE>/]<IMAGE>" 1>&2 | |
echo "" | |
echo "Argument Specifications:" | |
echo ' <NAMESPACE> : Docker Hub namespace or username (default: `library`)' | |
echo ' <IMAGE> : Image name (mandatory)' | |
echo |
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 | |
SCRIPTNAME=$(basename "$0") | |
function realpath () { | |
f=$@; | |
if [ -d "$f" ]; then | |
base=""; | |
dir="$f"; | |
else | |
base="/$(basename "$f")"; |
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 | |
SCRIPTNAME=$(basename "$0") | |
function realpath () { | |
f=$@ | |
if [ -d "$f" ]; then | |
base="" | |
dir="$f" | |
else | |
base="/$(basename "$f")" |
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 | |
SCRIPTNAME=$(basename "$0") | |
function realpath () { | |
f=$@ | |
if [ -d "$f" ]; then | |
base="" | |
dir="$f" | |
else | |
base="/$(basename "$f")" |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 | |
SCRIPTNAME=$(basename "$0") | |
function realpath () { | |
f=$@; | |
if [ -d "$f" ]; then | |
base=""; | |
dir="$f"; | |
else | |
base="/$(basename "$f")"; |
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
import Quartz | |
extension CGImage { | |
class func qrCodeImage(from string: String, scale: CGFloat = 1) -> CGImage? { | |
let stringData = string.data(using: .utf8) | |
let transform = CGAffineTransform(scaleX: scale, y: scale) | |
guard let filter = CIFilter(name: "CIQRCodeGenerator") else { | |
return nil | |
} |
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
%#!uplatex | |
\documentclass[autodetect-engine,dvipdfmx]{jsarticle} | |
\usepackage{mydate} | |
\begin{document} | |
% テスト:n日後の日付を出力する | |
2023年4月1日の247日後は\n日後を出力{2023}{4}{1}{247}です。 | |
% テスト:2つの日付の差を出力する |
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
\NeedsTeXFormat{LaTeX2e} | |
\ProvidesPackage{randomshuffle}[2019/01/18 v0.2] | |
\RequirePackage{keyval} | |
\ifdefined\pdfuniformdeviate | |
\let\randomshuffle@uniformdeviate\pdfuniformdeviate | |
\let\randomshuffle@setrandomseed\pdfsetrandomseed | |
\else\ifdefined\uniformdeviate | |
\let\randomshuffle@uniformdeviate\uniformdeviate | |
\let\randomshuffle@setrandomseed\setrandomseed |
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
#import <Quartz/Quartz.h> | |
#import <Vision/Vision.h> | |
int main(int argc, const char * argv[]) { | |
@autoreleasepool { | |
NSString *target = @"test.pdf"; | |
CGFloat dpi = 200; | |
PDFDocument *doc = [[PDFDocument alloc] initWithURL:[NSURL fileURLWithPath:target]]; | |
NSUInteger pageCount = [doc pageCount]; | |
NewerOlder