Skip to content

Instantly share code, notes, and snippets.

View KatagiriSo's full-sized avatar

KatagiriSo KatagiriSo

View GitHub Profile
@KatagiriSo
KatagiriSo / reg.py
Created October 22, 2020 11:29
正規表現でおきかえ
import re
while True:
inp = str(input("input="))
ans = re.sub("[0-9]","9",inp)
print(ans)
@KatagiriSo
KatagiriSo / filereadAndSearch.py
Created October 6, 2020 07:11
ファイル内を一行づつ検索して表示
import sys
# 該当言語
searchWord = "hoge"
# ファイル読み込み
text = open(sys.argv[1], "r")
# 一行づつ読み出し
for line in text:
@KatagiriSo
KatagiriSo / xcode_shortcut.md
Last active September 10, 2020 07:32
XCodeで使えるショートカット
  • Ctr+Shift+command+F プロジェクト内のシンボル検索
  • Ctr+command+Up or Down ヘッダーと本文の切り替え
@KatagiriSo
KatagiriSo / alert.vue
Last active May 12, 2020 04:38
vue alert component
import { default } from '../views/Home.vue';
<template>
<div v-if="displayRef > 0">
<p class="number-dispaly-old">
title:{{ title }}
</p>
<p class="number-dispaly-old">
desc:{{ desc }}
</p>
<button
import math
import numpy as np
N = 16
gridsize = N*N*N
t = 0
t0 = 0
tf = 10
dt = 0.05
L = 20 # box size
@KatagiriSo
KatagiriSo / chi4_v2.py
Created November 14, 2019 03:26
preheting
from numpy import zeros, linspace, pi, cos,sin, array
import numpy as np
import math
import matplotlib.pyplot as plt
def getCalc(order, w, Phi, phiOrder,phim, T, dt):
print("order="+str(order)+" w="+str(w)+" Phi="+str(Phi))
# omega = 2
# m_phi = 50
// Created by KatagiriSo(Rodhos Soft)
export namespace Tree {
let output = true
let debug = false
interface Identifier {
id: string
}
@KatagiriSo
KatagiriSo / Makefile
Created May 14, 2019 05:33
openssl1.0.2r build make file... incomplete
#!/bin/bash
# Cross-compile environment for Android on ARMv7 and x86
#
# Contents licensed under the terms of the OpenSSL license
# http://www.openssl.org/source/license.html
#
# See http://wiki.openssl.org/index.php/FIPS_Library_and_Android
# and http://wiki.openssl.org/index.php/Android
#####################################################################
#!/bin/bash
export OPENSSL_VER=openssl-1.0.2r
# arch-arm, arch-arm64, arch-mips, arch-mips64, arch-x86, arch-x86_64
# export _ARCH=arch-x86
# export _DO_FOLDER_PROC=0
export _DO_GET_SOURCE_PROC=0
export _DO_BUILD=0
export MY_FRAMEWORKS="/System/Library/Frameworks"
# code is Visual Studio Shell command. You can install this by using command parret in visual studio.
alias MY_BASH="code ~/.bash_profile"
alias MY_RELOAD="source ~/.bash_profile"