Skip to content

Instantly share code, notes, and snippets.

View catdance124's full-sized avatar
🚪
Knock, and it will be opened to you.

kinosi catdance124

🚪
Knock, and it will be opened to you.
View GitHub Profile
@catdance124
catdance124 / _LINE_API.gs
Created June 11, 2023 02:52
au PAY カード利用金額の管理
const LINE_ACCESS_TOKEN = PropertiesService.getScriptProperties().getProperty('LINE_ACCESS_TOKEN');
const LINE_GROUP_ID = PropertiesService.getScriptProperties().getProperty('LINE_GROUP_ID');
function postMessage(message){
const options = {
'method' : 'post',
'headers': {
"Content-Type": "application/json",
'Authorization': 'Bearer ' + LINE_ACCESS_TOKEN
},
@catdance124
catdance124 / main.gs
Last active September 12, 2021 09:57
[GAS] 楽天銀行利用メールから履歴を抽出 -> スプレッドシートに記録
var BUDGET = PropertiesService.getScriptProperties().getProperty("BUDGET");
var DEFAULT_PAYDAY = PropertiesService.getScriptProperties().getProperty("DEFAULT_PAYDAY");
var LINE_NOTIFY = false;
function set_sheet(name){
// ref: https://qiita.com/crawd4274/items/13120429cb3328e8ace2
//同じ名前のシートがなければ作成
var sheet = SpreadsheetApp.getActive().getSheetByName(name)
if(sheet)
return sheet
@catdance124
catdance124 / STConvLSTM2DCell.py
Last active October 5, 2020 01:13
keras custom convLSTM - Zhang, Haokui, et al. "Exploiting temporal consistency for real-time video depth estimation." Proceedings of the IEEE International Conference on Computer Vision. 2019.
from tensorflow.python.keras import activations
from tensorflow.python.keras import backend as K
from tensorflow.python.keras import constraints
from tensorflow.python.keras import initializers
from tensorflow.python.keras import regularizers
from tensorflow.python.keras.engine.base_layer import Layer
from tensorflow.python.keras.layers.recurrent import DropoutRNNCellMixin
from tensorflow.python.keras.utils import conv_utils
from tensorflow.python.ops import array_ops
from tensorflow.keras.layers import BatchNormalization, Conv2D
@catdance124
catdance124 / sobel_keras.ipynb
Last active August 30, 2020 04:55
Detect each frame edge of the video with keras.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@catdance124
catdance124 / conference_papers_list.ipynb
Last active June 16, 2020 09:41
conference_papers_list.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@catdance124
catdance124 / twi_vid_dl.py
Last active April 1, 2024 20:57
Script to download all videos of a Twitter user.
"""
Script to download all videos of a Twitter user.
Requirements:
- Twitter API key
- tweepy: https://github.com/tweepy/tweepy
> pip install tweepy
- youtube-dl: https://github.com/ytdl-org/youtube-dl/
> pip install youtube-dl
Usage:
@catdance124
catdance124 / plot_history.py
Last active October 19, 2020 04:57
keras_plot_history_callback
import matplotlib
matplotlib.use('Agg')
from matplotlib import pyplot as plt
from matplotlib import ticker as ticker
import numpy as np
import csv
from keras.callbacks import Callback
class PlotHistory(Callback):
def __init__(self, save_interval=1, dir_name='./', csv_output=False, title=''):
@catdance124
catdance124 / caffe2keras_vgg16.ipynb
Created July 30, 2019 08:43
MMdnn/caffe->keras
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.