Skip to content

Instantly share code, notes, and snippets.

@tk3
tk3 / init.lua
Created January 21, 2024 13:14
~/.config/nvim/init.lua
local options = {
fileencoding = "utf-8",
backup = false,
swapfile = false,
number = true,
signcolumn = "yes",
mouse = "a",
mousemoveevent = true,
clipboard = "unnamedplus",
wrap = true,
@tk3
tk3 / README.md
Created January 28, 2022 00:26
LibGDX links
// ==UserScript==
// @name Download Backlog Kanban
// @namespace http://tampermonkey.net/
// @version 0.1
// @description You can save the state of the issue displayed in Backlog Kanban. The method is download and copy to clipboard.
// @author tk3
// @match https://*.backlog.jp/board/*
// @match https://*.backlog.com/board/*
// @grant GM_setClipboard
// ==/UserScript==
import com.badlogic.gdx.backends.lwjgl.{LwjglApplication, LwjglApplicationConfiguration}
object DesktopLauncher extends App {
val config = new LwjglApplicationConfiguration
new LwjglApplication(new MyGdxGame, config)
}
@tk3
tk3 / hello.fs
Created January 16, 2021 11:18
Lesson 01 Hello SDL
open FSharp.SDL2
open System
open System.Runtime.InteropServices
[<EntryPoint>]
let main argv =
if SDL.Init(SDL.INIT_VIDEO) < 0 then
printfn"SDL could not initialize! SDL_Error: %s\n" (SDL.GetError())
Environment.Exit 1
@tk3
tk3 / game.fs
Created January 12, 2021 14:03
SDL2 / F#
open MySDL2
[<EntryPoint>]
let main argv =
let SDL_INIT_VIDEO = 0x00000020u
let _ = Api.SDL_Init(SDL_INIT_VIDEO)
let SDL_WINDOWPOS_CENTERED_MASK = 0x2FFF0000
let SDL_WINDOWPOS_CENTERED_DISPLAY x = SDL_WINDOWPOS_CENTERED_MASK ||| x
let SDL_WINDOWPOS_CENTERED = SDL_WINDOWPOS_CENTERED_DISPLAY 0
@tk3
tk3 / README.md
Last active November 8, 2020 11:57
create a console application project

npx script sample

@tk3
tk3 / README.md
Last active October 31, 2020 11:18
npx script from gist

npx script sample

@tk3
tk3 / c_magagine.md
Last active October 19, 2020 13:15
C MAGAZINE バックナンバー一覧

参考リンク: C MAGAZINE バックナンバー一覧 (本来のサイトはなくなってしまっているためアーカイブページ)

  • 2006年
    • 2006年4月号
      • 特集 OS・アプリケーションのしくみと開発の流れ
      • 特集 無料でそろえる開発環境
      • 特集 Symbian OSの世界
      • 特別記事 EZ-USBによる「USB温度計」「USB湿度計」の制作
      • 特別記事 チャレンジ!W-ZERO3プログラミング
  • 特別記事 Windowsにおけるリバースエンジニアリング技術を使う
@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