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
| 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; |
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
| // 指定のウィンドウサイズに変更 | |
| int width = 480; | |
| int height = 600; | |
| driver.manage().window().setSize(new Dimension(width, height)); | |
| // 最大化 | |
| /* driver.manage().window().maximize(); */ | |
| if (isFirefox) { | |
| FirefoxProfile profile = new FirefoxProfile(); |
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 | |
| # SQL情報 | |
| PREFIX= | |
| USER= | |
| PASSWORD= | |
| SCHEMA= | |
| # 最終保存日 | |
| DATE=`date '+%Y-%m-%d'` |
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
| const http = require('http'); | |
| const hostname = '127.0.0.1'; | |
| const port = 3000; | |
| var server = http.createServer(); | |
| server.on('request', doRequest); | |
| var fs = require('fs'); | |
| function doRequest(req, res) { | |
| var url = req.url; |
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.util.function.Function; | |
| import java.util.stream.Stream; | |
| public class Main { | |
| public static void main(String... args) { | |
| // これまでのJavaのように書くと、こんな感じになります。 | |
| Function<String, Integer> fullFunction = new Function<String, Integer>() { | |
| @Override | |
| public Integer apply(String arg) { | |
| return Integer.parseInt(arg); |
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 javax.net.ssl.HttpsURLConnection; | |
| import java.io.BufferedReader; | |
| import java.io.IOException; | |
| import java.io.InputStreamReader; | |
| import java.io.OutputStreamWriter; | |
| import java.net.HttpURLConnection; | |
| import java.net.URL; | |
| import java.net.URLEncoder; | |
| import java.nio.charset.StandardCharsets; | |
| import java.util.UUID; |
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
| #!/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
| var spreadsheet = SpreadsheetApp.getActiveSpreadsheet(); | |
| function doGet(e) { | |
| if (e.parameter == undefined) { | |
| throw new Error("固定パラメータなし"); | |
| } | |
| // 日付を取得 | |
| var date = e.parameter.date; | |
OlderNewer