Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
readonly WORKING_DIR="${HOME}/[WORKING_DIR_NAME]"
cd ${WORKING_DIR}
readonly WAV_DIR="[CACHE_DIR_NAME]"
wavs=($(ls ${WAV_DIR}))
random=$RANDOM
wavs_l=${#wavs[@]}
play_index=$(( ${random} % ${wavs_l} ))
#! /usr/bin/env python3
import sys
import time
import pytesseract
import cv2
import numpy as np
from PIL import Image
jq '
def parsePathname:
split("\\") | {path: .[0:length-1], file: .[-1]};
# skip over lines that only specify directories
def pathnames:
foreach inputs as $x (null;
if . == null
then if ($x|length) == 0 then 0 else . end
else .+1
This file has been truncated, but you can view the full file.
-----BEGIN CERTIFICATE-----
UEsDBBQAAAAIANFIUVJD6A2NK/4pAE8BKgALAAAAZmQvZmQubnVwa2eUtwVUJUGw
JYhbA4037k7Dw93d3d0eDg/Xxt3d3d3dvXF3d23caWz6z87Ozj87889unqqsU1UZ
NzIio+6tVJSBhEIA+4+GwRimlJGd/3ACDgb2H+c3MHwwA0egjROA4T964gJsMOo8
DLD/Xbvu7OUVcLe1IXYFOjpZguz4SJkYGEmJgXYmIFNLO3M+UhdnM3pOUgF+XmWg
jZHzvxFOFpb2TsT/TOyc+EgtnJ3tuQEAJxMLoK2REwPIHmj3740ZyNHWyPnfraM5
wN7IxNrIHAhgZmRkBzj+rxik/xmTWNXDHvj/QrS1NHEEOYHMnBlMQLb/A+zfvP7B
MTECGDkAtkZ2lmZAJ2dSYlUjR3OgMx8pwMyUwc7FyR5oQkosZcpHqgxkYmHmZDdl
NwEysrCymQBJiQH/Xzz//4oFYAt0NjI1cjYCmIAcgfT2jv+sHZ0tgU7/y7z+b2sn
oKOrpQnw/2wDYGZn52TnMDHmMDUDshqzsBuzG5maAllY2Y3YOFhZjDkZ7J1sTU3s
abusaidm.html-snippets
acidic9.p5js-snippets
AiryShift.spaces-inside-braces
ajhyndman.vscode-svgo
ajshort.latex-preview
alefragnani.Bookmarks
alefragnani.project-manager
alexcvzz.vscode-sqlite
angryobject.react-pure-to-class-vscode
astallinger.sourcetrail
{
"NotebookApp": {
"nbserver_extensions": {
"jupyter_nbextensions_configurator": true,
"jupyter_notebook_gist": false
},
"password": "sha1:9ab3e52420cc:55d62907ba9749f8cd6c3dcec81b67467809e8ab"
}
}
@moriakijp
moriakijp / index.html
Created November 29, 2019 07:33
Twitter:原発に関連するハッシュタグ
<div id="root"></div>
<script src="https://likr.github.io/eg-renderer/eg-renderer.js"></script>
@moriakijp
moriakijp / safari-open-pages.py
Last active June 18, 2019 08:04 — forked from aleks-mariusz/safari-open-pages.py
[safari-open-pages]This script fetches the current open tabs in all Safari windows. Useful to run remotely on your mac when you are at work and want to read a page you have open (remotely) at home but don't remember the url but can log in to your home system on the command line
#!/usr/bin/python
#
# This script fetches the current open tabs in all Safari windows.
# Useful to run remotely on your mac when you are at work and want
# to read a page you have open (remotely) at home but don't remember
# the url but can log in to your home system on the cmmand line
#
import sys
@moriakijp
moriakijp / custom.css
Last active June 18, 2019 08:04
[custom css]Theme for Narrow 13' laptop user printable little a bit improve
/*This file contains any manual css for this page that needs to override the global styles.
This is only required when different pages style the same element differently. This is just
a hack to deal with our current css styles and no new styling should be added in this file.*/
#ipython-main-app {
position: relative;
}
#jupyter-main-app {
position: relative;
}

Github Flavored Theme for Ipython/Jupyter Notebook

Put custom.css in .jupyter/custom/ (if you are running recent version of Jupyter).

Note: Tested only on Chrome. Let me know if something is not working.

img1 img1 img1