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
#!/bin/bash | |
## Install Xcode from AppStore before you execute commands below for macvim | |
## After that, you need to open Xcode and agree the terms and install components | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
# Base | |
brew install homebrew/cask/google-chrome | |
brew install homebrew/cask/google-japanese-ime | |
brew install homebrew/cask/google-drive |
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
(function($) { | |
$(function() { | |
$("#calculate").on("click", execute); | |
function execute() { | |
if (typeof($(this).val() * 1) != "number") { | |
alert("Please input a number."); | |
} else if ($("#friends").val() * 1 < $("#days").val() * 1) { | |
$("#answer").empty().append((0).toFixed(20) + " %"); | |
} else { |