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 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 | |
}, |
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 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 |
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 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 |
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.
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
""" | |
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: |
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 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=''): |
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.