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'); |
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
[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
echo "Hotfix shutdown_php.c and reboot_php.c files" | |
sed -i.bak 's/usr\/bin/sbin/' ~/smile-pi/setup_files/reboot_php.c | |
sed -i.bak 's/usr\/bin/sbin/' ~/smile-pi/setup_files/shutdown_php.c | |
cd /tmp | |
\cp ~/smile-pi/setup_files/shutdown_php.c /tmp/shutdown_php.c | |
\cp ~/smile-pi/setup_files/reboot_php.c /tmp/reboot_php.c | |
gcc -o shutdown_php shutdown_php.c |
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
<gpx xmlns="http://www.topografix.com/GPX/1/1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wptx1="http://www.garmin.com/xmlschemas/WaypointExtension/v1" xmlns:gpxtrx="http://www.garmin.com/xmlschemas/GpxExtensions/v3" xmlns:gpxtpx="http://www.garmin.com/xmlschemas/TrackPointExtension/v1" xmlns:gpxx="http://www.garmin.com/xmlschemas/GpxExtensions/v3" xmlns:trp="http://www.garmin.com/xmlschemas/TripExtensions/v1" xmlns:adv="http://www.garmin.com/xmlschemas/AdventuresExtensions/v1" xmlns:prs="http://www.garmin.com/xmlschemas/PressureExtension/v1" creator="" version="1.1" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd http://www.garmin.com/xmlschemas/WaypointExtension/v1 http://www8.garmin.com/xmlschemas/WaypointExtensionv1.xsd http://www.garmin.com/xmlschemas/TrackPointExtension/v1 http://www.garmin.com/xmlschemas/TrackPointExtensionv1.xsd http://www.garmin.com/xmlschemas/GpxExtensions/v3 http://www8.garmin.com/xmlschemas/GpxExtensionsv3.xsd http:/ |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<gpx version="1.1" creator="studio-kura GPX Binder" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.topografix.com/GPX/1/1" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd"> | |
<trk> | |
<name><![CDATA[2018-08-02 19:50:19]]></name> | |
<trkseg> | |
<trkpt lat="32.8110736236" lon="-117.1390758734"> | |
<ele>130</ele> | |
<time>2018-08-03T02:50:20.000Z</time> | |
</trkpt> | |
<trkpt lat="32.8110736236" lon="-117.1390758734"> |
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
<div id="main" role="main"> | |
<div class="container"> | |
<div class="row"> | |
<div class="span12" id="top-div"> <!--! added "top-div" id to help with ajax --> | |
<%= render 'layouts/messages' %> | |
<%= yield %> | |
</div> | |
</div> | |
<footer> | |
</footer> |
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
.browserContainer > findbar { | |
-moz-box-ordinal-group: 0; | |
position: fixed !important; | |
right: 1em; | |
border: 1px solid threedshadow !important; | |
border-radius: 0 0 3px 3px; | |
padding-left: 10px; | |
/* Hide the "border" at the top by removing the box-shadow and background-image */ | |
border-top: none !important; |
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
ruby '2.7.1' | |
gem 'rails', github: 'rails/rails' | |
gem 'tzinfo-data', '>= 1.2016.7' # Don't rely on OSX/Linux timezone data | |
# Action Text | |
gem 'actiontext', github: 'basecamp/actiontext', ref: 'okra' | |
gem 'okra', github: 'basecamp/okra' | |
# Drivers |
OlderNewer