Skip to content

Instantly share code, notes, and snippets.

@osamu329
osamu329 / ast.go
Created November 29, 2019 04:50
go/ast Doc の確認
package main
import (
"fmt"
"go/ast"
"go/parser"
"go/token"
)
// Sample.
@osamu329
osamu329 / ABC135-D.cpp
Last active July 28, 2019 17:27
ABC-135
static const uint64_t MOD= 1000000007LL;
// 入力文字列 S の保持用
char s[100005];
// DP 配列 DP[上位桁][mod 13]
uint64_t dp[100005][13];
uint64_t solve() {
scanf("%s", s);
@osamu329
osamu329 / memo.md
Created June 10, 2019 06:44
delve panic
  • cmd/compile/internal/ssa.Block のTypedefTypeインスタンスのTypeフィールドがnil
off tag Type AttrType
0x4ff21 array Typedef 0x4f2db (hit)
0x4f2db typedef StructTypek 0x4f1e2

typeOf(e.Offset=0x4ff21, attr=Type) off=4f2db

@osamu329
osamu329 / json_sample.cs
Created July 28, 2016 18:15
C# Json Deserializer
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Threading.Tasks;
using Newtonsoft.Json;
namespace Config
{