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
/Applications/ | |
/Library/ | |
/.Trash/ | |
/.gradle/ | |
/.cache/ | |
/.nodebrew/ | |
/.npm/ | |
/.pyenv/ | |
/go/ |
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
<!DOCTYPE html> | |
<!-- Let's view the HTML source code of this page!! --> | |
<!-- Or save this text as HTML source code :) --> | |
<html> | |
<head> | |
<meta charset="utf-8"/> | |
<title>Quine</title> | |
<link href="https://fonts.googleapis.com/css?family=Source+Code+Pro&display=swap" rel="stylesheet"> | |
</head> | |
<body> |
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
on open location url_scheme | |
(*デリミタで文字列抽出*) | |
set AppleScript's text item delimiters to {"vlc://"} | |
set txt_items to text items of url_scheme | |
set AppleScript's text item delimiters to {""} | |
set scheme_txt to txt_items as Unicode text | |
do shell script ({"/Applications/VLC.app/Contents/MacOS/VLC ", scheme_txt} as string) | |
end open location |
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
set vlcdata=%1 | |
start "" "C:\Program Files\VideoLAN\VLC\vlc.exe" "%vlcdata:~7%" |
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
(() => { | |
const texts = [ | |
"俺の勝ち。", | |
"俺の勝ちだが?", | |
"お前の負け。", | |
"お前の負けだが?", | |
"I win.", | |
"You lose." | |
] |
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
from selenium import webdriver | |
from selenium.webdriver.common.by import By | |
from selenium.webdriver.support.ui import WebDriverWait | |
from selenium.webdriver.support import expected_conditions as EC | |
from selenium.common.exceptions import NoSuchElementException | |
import chromedriver_binary | |
import os | |
import time | |
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 decompose(l, i) { | |
// if (i < l.length) { | |
// var j = l[i] | |
// if (i === j) { | |
// return decompose(l, i + 1) | |
// } else { | |
// [l[i], l[j]] = [l[j], l[i]] | |
// return [[i, j]].concat(decompose(l, i + 1)) | |
// } | |
// } else { |
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 | |
if [ $# -lt 1 ]; then | |
echo 'Usage: $ ./batch.sh input_dir' | |
exit 1 | |
fi | |
find $1 -type f | | |
grep -E "\.m2ts$" | | |
sed 's/\.m2ts$//g' | |
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
var speed=10,e=document.querySelector('#speed>.w1');e.setAttribute('data-value', speed);e.click() |
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
#coding: UTF-8 | |
''' | |
Created on 2014/11/08 | |
@author: shirasu | |
''' | |
import random |
NewerOlder