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
# Welcome to Sonic Pi v3.1 | |
live_loop :sonic do | |
sample :bd_haus, rate: 1 | |
sleep 0.5 | |
end | |
live_loop :ambi do | |
sample :ambi_choir, rate: 0.3 | |
sleep 1 |
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 request = require('request'); | |
const headers = { | |
'Content-Type': 'application/json', | |
} | |
const url = "https://swapi.dev/api/people/1/"; | |
const wrong_url = "https://localhost:8000"; | |
console.log("Starting HTTP GET Request..."); |
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 main_function() { | |
console.log("Starting program ..."); | |
const vietnam_calendar_id = "ja.vietnamese#holiday@group.v.calendar.google.com"; | |
const indian_calendar_id = "ja.indian#holiday@group.v.calendar.google.com"; | |
// Check Vietnam Holidays | |
get_holidays(vietnam_calendar_id, "ベトナム"); | |
// Check Indian Holidays | |
get_holidays(indian_calendar_id, "インド"); | |
} |
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 | |
echo '>>>>>>> Starting Docker installation.' | |
echo '-----------------------------------------------------------------' | |
echo '' | |
echo '>>> Erase old packages and install dependencies' | |
yum -y remove docker docker-common docker-selinux docker-engine | |
yum -y install yum-utils device-mapper-persistent-data lvm2 | |
echo '-----------------------------------------------------------------' |
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 | |
echo ">>> Runs on the host: $(hostnamectl |grep hostname)" | |
echo '' | |
echo '------------------------------------------' | |
echo '>>> Install base packages' | |
yum -y install wget vim emacs net-tools | |
echo '' | |
echo '>>> Checking path of installed packages' | |
echo " wget: $(which wget)" |
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 | |
## Before you run the script: | |
## - Make sure the backup directories would have already created | |
## - Change variables below for your environments | |
## examples: | |
## BKDIR=/var/backup/gitlab.bk | |
## DEFDIR=/var/opt/gitlab/backups | |
BKDIR=PATH_TO_DIR_BACKUP_SAVED | |
DEFDIR=PATH_TO_TARGET_DIR_TO_BACKUP |
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 selenium import webdriver | |
from selenium.webdriver.support.ui import WebDriverWait | |
from selenium.webdriver.support import expected_conditions as ec | |
from selenium.webdriver.common.by import By | |
import os | |
import sys | |
import time | |
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 json | |
import os | |
import sys | |
# TODO: Should be replaced with stdlib | |
import requests | |
gh_username = 'hwakabh' | |
gh_reponame = 'waseda-mochida' |