Skip to content

Instantly share code, notes, and snippets.

@tk3
tk3 / main.rb
Created February 5, 2018 13:21
migrate from Jekyll to Hugo
#!/usr/bin/env ruby
require 'fileutils'
require "time"
require "openssl"
if ARGV.length < 2
$stderr.puts "Error"
exit 1
end
@tk3
tk3 / 00_README.md
Last active August 19, 2018 14:58
OCaml

OCaml

環境

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.4 LTS
Release: 16.04
#!/usr/bin/env ruby
require 'fileutils'
require "time"
require "openssl"
if ARGV.length < 2
$stderr.puts "Error"
exit 1
end
https://github.com/JoshClose/CsvHelper/issues/977
https://stackoverflow.com/questions/42133413/csvhelper-set-default-custom-typeconverter
https://teratail.com/questions/97817
@tk3
tk3 / sample.c
Created August 14, 2019 11:07
SQLDataSources sample - unixODBC
#include <stdio.h>
#include <sql.h>
#include <sqlext.h>
int main() {
SQLHENV henv;
SQLRETURN r;
SQLCHAR dsn_name[256];
@tk3
tk3 / 00_README.md
Last active April 2, 2020 15:16
Slick samples
@tk3
tk3 / 00_README.md
Last active April 15, 2020 14:35
ScalaTest sampless
@tk3
tk3 / getting_started.md
Last active May 10, 2020 12:43
Hugo のコンテンツを Github Actions で GitHub Pages にデプロイする

source ブランチには hugo のコンテンツを置き、それらを Github Actions でブログに変換して、生成したものは master ブランチに push する。

@tk3
tk3 / README.md
Last active July 17, 2020 14:47
Quick start tutorial - Terraform
$ terraform init

Initializing the backend...

Initializing provider plugins...
- Checking for available provider plugins...
- Downloading plugin for provider "docker" (terraform-providers/docker) 2.7.1...

The following providers do not have any version constraints in configuration,
@tk3
tk3 / API
Last active September 16, 2020 13:47
API binding to unixODBC
#if ODBCVER >= 0x0000
SQLHENV EnvironmentHandle
SQLAllocConnect()
SQLAllocEnv()
SQLDataSources()
SQLError()
SQLFreeEnv()
SQLTransact()
SQLHDBC ConnectionHandle