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
function getCookie(key) { | |
var cookies = document.cookie.split(';'); | |
for (var _i = 0, cookies_1 = cookies; _i < cookies_1.length; _i++) { | |
var cookie = cookies_1[_i]; | |
// console.log(`cookie ${cookie}`); | |
var cookiesArray = cookie.split('='); | |
if (cookiesArray[0].trim() == key.trim()) { | |
// console.log(`cookiesArray ${cookiesArray}`); | |
let value = cookiesArray[1]; // (key[0],value[1]) |
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
export PYTHONPATH=/usr/bin/python3 | |
export TERM=xterm | |
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin | |
export PWD=/root | |
export TZ=Asia/Tokyo | |
export SHLVL=1 | |
export HOME=/root | |
export DEBCONF_NOWARNINGS=yes | |
export LESSOPEN=| | |
export LESSCLOSE=/usr/bin/lesspipe |
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
<Manual_insert>: | |
name: "manual" | |
BoxLayout: | |
TextInput: | |
id: name | |
Label: | |
text: root.text | |
Button: | |
text: "Update" | |
on_release: |
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 cv2 | |
import numpy as np | |
from PIL import Image | |
def nparray_to_rgb(nparry:np.array): | |
return (int(nparry[0]),int(bg_color[1]),int(bg_color[2])) | |
def find_edge(img_path:str): | |
img = cv2.imread(img_path,0) | |
blur = cv2.blur(img,(5,5)) |
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
<nav aria-label="Page navigation example"> | |
<ul class="pagination justify-content-center pagination-lg g-mt-28 g-mb-28"> | |
<!-- 前へ の部分 --> | |
{% if page_obj.has_previous %} | |
<li class="page-item"> | |
<a class="page-link" href="?page={{ page_obj.previous_page_number }}"> | |
<span aria-hidden="true">«</span> | |
</a> | |
</li> |
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 numpy as np | |
import json | |
import flask | |
class MyEncoder(json.JSONEncoder): | |
def default(self, obj): | |
if isinstance(obj, np.integer): | |
return int(obj) | |
elif isinstance(obj, np.floating): | |
return float(obj) | |
elif isinstance(obj, np.ndarray): |
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 | |
import org.openqa.selenium.JavascriptExecutor; | |
import org.openqa.selenium.WebDriver; | |
import org.openqa.selenium.WebElement; | |
/** | |
* @param xpath | |
* Please select text box element | |
* @param text |
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 | |
wget -O - https://gist.githubusercontent.com/wdullaer/f1af16bd7e970389bad3/raw/install.sh | bash or | |
open https://gist.github.com/Brainiarc7/a8ab5f89494d053003454efc3be2d2ef |
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
package regex.com; | |
import static org.junit.jupiter.api.Assertions.assertEquals; | |
import org.junit.jupiter.api.Test; | |
public class RegexTest{ | |
public static void main(String[] args) { | |
RegexTest.test_all(); | |
} |