Skip to content

Instantly share code, notes, and snippets.

View inodev's full-sized avatar

Inoue Shinya inodev

View GitHub Profile
@inodev
inodev / campaignDate.js
Last active March 26, 2024 08:47
侍エンジニア塾LP 2018-10-12-22_09_48(JSはminifyから展開済) 取得元: https://www.sejuku.net/other_lp/g/
function today() {
var b = new Date();
var d = b.getFullYear();
var e = b.getMonth() + 1;
var c = b.getDay();
var a = b.getDate();
return d + "/" + e + "/" + a
}
function addDate(h, f, i) {
var g = new Date(h);
@inodev
inodev / sch.sh
Last active October 19, 2017 12:57
findで拡張子を指定してgrepするコマンド
#!/bin/sh
DEFAULT_FILES="html erb slim haml css scss sass js coffee rb rake yml"
usage_msg() {
echo "usage: `basename $0` grep_text [find_files]"
echo "(example) `basename $0` current_user erb slim"
}
### error check & init
case $# in
#encoding: utf-8
#
# Copyright (c) 2016 chainer_nlp_man
#
# This software is released under the MIT License.
# http://opensource.org/licenses/mit-license.php
#
import numpy as np # NumPyをnpという名前で使用
import chainer # Chainerを使用
from chainer import cuda, Function, gradient_check, Variable, optimizers, serializers, utils # 名前の省略
#encoding: utf-8
#
# Copyright (c) 2016 chainer_nlp_man
#
# This software is released under the MIT License.
# http://opensource.org/licenses/mit-license.php
#
import numpy as np # NumPyをnpという名前で使用
import chainer # Chainerを使用
from chainer import cuda, Function, gradient_check, Variable, optimizers, serializers, utils # 名前の省略