This file contains hidden or 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
| # Warning: This config does not include keys that have an unset value | |
| # $all is shorthand for $username$hostname$localip$shlvl$singularity$kubernetes$directory$vcsh$fossil_branch$git_branch$git_commit$git_state$git_metrics$git_status$hg_branch$pijul_channel$docker_context$package$bun$c$cmake$cobol$daml$dart$deno$dotnet$elixir$elm$erlang$fennel$golang$gradle$haskell$haxe$helm$java$julia$kotlin$lua$nim$nodejs$ocaml$opa$perl$php$pulumi$purescript$python$raku$rlang$red$ruby$rust$scala$solidity$swift$terraform$vlang$vagrant$zig$buf$guix_shell$nix_shell$conda$meson$spack$memory_usage$aws$gcloud$openstack$azure$env_var$crystal$custom$sudo$cmd_duration$line_break$jobs$battery$time$status$container$os$shell$character | |
| "$schema" = "https://starship.rs/config-schema.json" | |
| # format = "$all" | |
| format="$username$hostname$localip$shlvl$singularity$kubernetes$directory$vcsh$fossil_branch$git_branch$git_commit$git_state$git_metrics$git_status$hg_branch$pijul_channel$docker_context$package$bun$c$cmake$cobol$daml$dart$deno$dotnet |
This file contains hidden or 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 python3 | |
| import requests | |
| import json | |
| import re | |
| api_key = "YOUR_API_KEY" | |
| def clean_text(text): | |
| text = re.sub(r'{[a-z]+}', '', text) | |
| text = re.sub(r'{/[a-z]+}', '', text) |
This file contains hidden or 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 python3 | |
| import os | |
| from PyDictionary import PyDictionary | |
| from gruut import sentences | |
| dictionary = PyDictionary() | |
| def get_meaning(word): | |
| # check if dict.txt exists | |
| if not os.path.exists('dict.txt'): | |
| open('dict.txt', 'w').close() |
This file contains hidden or 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
| set nocompatible | |
| "" UTF-8 | |
| set encoding=utf-8 | |
| set fileencoding=utf-8 | |
| set fileencodings=utf-8 | |
| "" SYNTAX | |
| syntax enable | |
| filetype indent on |
This file contains hidden or 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/sh | |
| DPTDIR="$HOME/dptrp1" | |
| TARGETDIR="$DPTDIR/M1/Papers" | |
| for i in ~/DocSync/*.pdf; do | |
| if [ -z "`find $DPTDIR -name \"${i##*/}\"`" ]; then | |
| cp -v "$i" $TARGETDIR | |
| fi | |
| done |
This file contains hidden or 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
| SRCDIR = src | |
| OBJDIR = obj | |
| BINDIR = bin | |
| PROGS = test hoge fuga | |
| .PHONY: all clean | |
| all: $(addprefix $(BINDIR)/,$(PROGS)) | |
| $(BINDIR)/test: $(OBJDIR)/test.o | |
| $(BINDIR)/hoge: $(OBJDIR)/hoge.o |
This file contains hidden or 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/sh | |
| for i in .ssh/*; do | |
| echo "=== $i ===" | |
| cat $i | |
| echo | |
| done |
This file contains hidden or 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
| # | |
| # Automatically generated file; DO NOT EDIT. | |
| # Linux/x86 5.3.4 Kernel Configuration | |
| # | |
| # | |
| # Compiler: gcc (GCC) 9.2.0 | |
| # | |
| CONFIG_CC_IS_GCC=y | |
| CONFIG_GCC_VERSION=90200 |
This file contains hidden or 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
| # datasetを読み込む | |
| from keras.datasets import cifar100 | |
| (x_train, y_train), (x_test, y_test) = cifar100.load_data() | |
| # 入力のリサイズ (InceptionV3の仕様のため) | |
| import cv2 | |
| import numpy as np | |
| from keras.utils import np_utils | |
| #image_size = 299 |
This file contains hidden or 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
| use std::convert::From; | |
| use std::cmp::Ordering; | |
| use std::fmt; | |
| use std::rc::Rc; | |
| use Nat::*; | |
| #[derive(Clone, PartialEq)] | |
| enum Nat { | |
| Succ(Rc<Nat>), | |
| Zero, |