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 * as ts from "typescript"; | |
const code: string = ` | |
const solve = (heights: number[]): number => { | |
let max = 0; | |
for (let x1 = 0; x1 < heights.length; x1++) { | |
for (let x2 = 0; x2 < heights.length; x2++) { | |
const h = Math.min(heights[x1], heights[x2]); | |
const w = Math.abs(x2 - x1); | |
max = Math.max(max, h * w); |
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
// 宛名印刷&住所録 テスト用データ | |
/* | |
1000001 ◯◯県◯◯市◯◯◯◯◯,1丁目2−3 ◯山 ◯太郎 様,◯子 様 2000001 ◯◯県◯◯市◯◯ 1丁目2−3,◯◯アパート◯◯◯号室 ◯村 ◯郎 | |
1000002 ◯◯◯県◯◯◯市◯◯◯,2丁目3−4 ◯木 ◯男 様 2000001 ◯◯県◯◯市◯◯ 1丁目2−3,◯◯アパート◯◯◯号室 ◯村 ◯郎 | |
1000003 ◯◯県◯◯◯郡◯◯◯◯,3丁目4−5 ◯村 ◯一 様,◯◯美 様 2000001 ◯◯県◯◯市◯◯ 1丁目2−3,◯◯アパート◯◯◯号室 ◯村 ◯郎 | |
*/ | |
// はがきのシートの設定 | |
function setHagakiSheet(){ | |
var margin_left = 1; // 左側の余白 |
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
package center | |
import ( | |
"fmt" | |
"net/http" | |
"github.com/tamx/golang-digest" | |
"google.golang.org/appengine" | |
"google.golang.org/appengine/log" | |
) |
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
package main | |
import ( | |
"net" | |
) | |
func main() { | |
/* | |
tam@wheezy-go:~$ nslookup thinpc-chrome | |
Server: 192.168.7.1 |