Skip to content

Instantly share code, notes, and snippets.

@tamx
tamx / eval.ts
Created March 6, 2024 23:19
Alpha Judge0 sample.
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);
@tamx
tamx / gas_ss_atena.js
Last active January 2, 2020 16:42 — forked from githubmorley/gas_ss_atena.js
Googleスプレッドシート_宛名印刷
// 宛名印刷&住所録 テスト用データ
/*
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; // 左側の余白
package center
import (
"fmt"
"net/http"
"github.com/tamx/golang-digest"
"google.golang.org/appengine"
"google.golang.org/appengine/log"
)
package main
import (
"net"
)
func main() {
/*
tam@wheezy-go:~$ nslookup thinpc-chrome
Server: 192.168.7.1