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
[Unit] | |
Description=devmon Service | |
[Service] | |
Type=simple | |
User=www-data | |
# Set DISPLAY for popup dialogs | |
Environment=DISPLAY=:0 | |
EnvironmentFile=/etc/conf.d/devmon | |
ExecStart=/usr/bin/devmon --exec-on-device /dev/sdb1 "/etc/nginx/usb_sharing mount 1 %d" --exec-on-remove "/etc/nginx/usb_sharing unmount 1 %d" --exec-on-device /dev/sdc1 "/etc/nginx/usb_sharing mount 2 %d" --exec-on-remove "/etc/nginx/usb_sharing unmount 2 %d" |
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
""" | |
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy) | |
BSD License | |
""" | |
import numpy as np | |
# data I/O | |
data = open('input.txt', 'r').read() # should be simple plain text file | |
chars = list(set(data)) | |
data_size, vocab_size = len(data), len(chars) |
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
if (moment().quarter() == 4) { | |
var current_fiscal_year_start = moment().month('October').startOf('month'); | |
var current_fiscal_year_end = moment().add('year', 1).month('September').endOf('month'); | |
var last_fiscal_year_start = moment().subtract('year', 1).month('October').startOf('month'); | |
var last_fiscal_year_end = moment().month('September').endOf('month'); | |
} else { | |
var current_fiscal_year_start = moment().subtract('year', 1).month('October').startOf('month'); | |
var current_fiscal_year_end = moment().month('September').endOf('month'); | |
var last_fiscal_year_start = moment().subtract('year', 2).month('October').startOf('month'); | |
var last_fiscal_year_end = moment().subtract('year', 1).month('September').endOf('month'); |
NewerOlder