This file contains hidden or 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
" 基本キーマッピング | |
nnoremap <Space>r <C-r> " redo | |
inoremap <Space>p <C-p> " 補完 | |
nnoremap <F9> :%s/\s\+$//ge<CR> " 行末スペース削除 | |
" ウィンドウ移動(複数エディタ分割時) | |
nnoremap <C-h> <C-w>h | |
nnoremap <C-j> <C-w>j | |
nnoremap <C-k> <C-w>k | |
nnoremap <C-l> <C-w>l |
This file contains hidden or 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
<?php | |
$year = "2024"; | |
$country_code = 'japanese'; | |
$api_key = 'your API KEY'; | |
$holidays_url = sprintf( | |
'https://www.googleapis.com/calendar/v3/calendars/%s/events?'. | |
'key=%s&timeMin=%s&timeMax=%s&orderBy=startTime&singleEvents=true', | |
'ja.' . $country_code . '.official%23holiday@group.v.calendar.google.com', |
This file contains hidden or 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
image: uber/android-build-environment:latest | |
pipelines: | |
branches: | |
master: | |
- step: | |
script: | |
- mkdir -p "$ANDROID_HOME/licenses" | |
- echo -e "\nd56f5187479451eabf01fb78af6dfcb131a6481e" >> "$ANDROID_HOME/licenses/android-sdk-license" | |
- echo -e "\n84831b9409646a918e30573bab4c9c91346d8abd" >> "$ANDROID_HOME/licenses/android-sdk-preview-license" |
This file contains hidden or 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
image: uber/android-build-environment:latest | |
pipelines: | |
branches: | |
master: | |
- step: | |
script: | |
- mkdir -p "$ANDROID_HOME/licenses" | |
- echo -e "\n8933bad161af4178b1185d1a37fbf41ea5269c55" >> "$ANDROID_HOME/licenses/android-sdk-license" | |
- echo -e "d56f5187479451eabf01fb78af6dfcb131a6481e" >> "$ANDROID_HOME/licenses/android-sdk-license" |
This file contains hidden or 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
var spreadsheet = SpreadsheetApp.getActiveSpreadsheet(); | |
function doGet(e) { | |
if (e.parameter == undefined) { | |
throw new Error("固定パラメータなし"); | |
} | |
// 日付を取得 | |
var date = e.parameter.date; | |
This file contains hidden or 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 io.ktor.application.* | |
import io.ktor.auth.* | |
import io.ktor.http.* | |
import io.ktor.response.* | |
import io.ktor.routing.* | |
import io.ktor.server.engine.* | |
import io.ktor.server.netty.* | |
@Suppress("unused") | |
fun Application.module() { |
This file contains hidden or 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
var userName = '' | |
var gmailUserName = '' | |
var gmailAddress = '' | |
function reply() { | |
var sheet = SpreadsheetApp.getActiveSheet() | |
var active = sheet.getActiveCell() | |
if (sheet.getName() != 'contact') { | |
return | |
} |
This file contains hidden or 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 | |
IFS=$'\n' | |
for line in `/usr/bin/openssl x509 -noout -dates -in target.pem` | |
do | |
CHECK=`echo $line | cut -d '=' -f 2` | |
done | |
END_DATE=`date -d $CHECK +%s` |
This file contains hidden or 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
<?php | |
$data = array('data' => array( | |
'memberships' => array(array('project' => $_POST['project'], 'section' => $_POST['section'])), | |
'name' => $_POST['word'], | |
'workspace' => $_POST['workspace'], | |
'notes' => $_POST['note'] | |
)); | |
$header = array( | |
'Content-Type: application/json', |
This file contains hidden or 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 java.io.BufferedReader; | |
import java.io.DataOutputStream; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.io.UnsupportedEncodingException; | |
import java.net.HttpURLConnection; | |
import java.net.ProtocolException; | |
import java.net.URL; | |
import java.nio.charset.StandardCharsets; | |
import java.util.Calendar; |
NewerOlder