Skip to content

Instantly share code, notes, and snippets.

View sonsongithub's full-sized avatar

Yuichi Yoshida sonsongithub

View GitHub Profile
@sonsongithub
sonsongithub / ndppd.initscript
Created March 24, 2020 01:33
ndppd run script for EdgeMax
#!/bin/sh
# kFreeBSD do not accept scripts as interpreters, using #!/bin/sh and sourcing.
if [ true != "$INIT_D_SCRIPT_SOURCED" ] ; then
set "$0" "$@"; INIT_D_SCRIPT_SOURCED=true . /lib/init/init-d-script
fi
### BEGIN INIT INFO
# Provides: ndppd
# Required-Start: $remote_fs $syslog $network
# Required-Stop: $remote_fs $syslog $network
@sonsongithub
sonsongithub / c_cpp_properties.json
Created February 25, 2020 09:46
c_cpp_properties.json for Visual studio code for llvm development.
{
"configurations": [
{
"name": "Mac",
"includePath": [
"${workspaceFolder}/**",
"/usr/local/opt/llvm/include/"
],
"defines": [],
"macFrameworkPath": [
@sonsongithub
sonsongithub / launch.json
Created February 25, 2020 09:45
launch.json for Visual studio code for llvm development.
{
"version": "0.2.0",
"configurations": [
{
"name": "clang++ build and debug active file",
"type": "lldb",
"request": "launch",
"program": "${fileDirname}/${fileBasenameNoExtension}",
"args": [],
"cwd": "${fileDirname}",
@sonsongithub
sonsongithub / tasks.json
Created February 25, 2020 09:42
tasks.json for Visual studio code for llvm development.
{
"tasks": [
{
"type": "shell",
"label": "clang++ build active file",
"command": "/usr/bin/clang++",
"args": [
"-g",
"-O0",
"${fileDirname}/${fileBasename}",
@sonsongithub
sonsongithub / convert_mac_pdf.sh
Created December 17, 2019 05:45
Fix problems of fonts in PDF made by macOS.
#!/bin/bash
#
# https://qiita.com/yasulab/items/49511c27179be454d568
#
if [ $# -ne 1 ]; then
echo "Usage: $0 <path to pdf file>" 1>&2
exit 1
fi
@sonsongithub
sonsongithub / memo.md
Last active November 11, 2019 13:09
開発合宿のメモ

開発合宿のメモ

Pachyderm

見てる限り,pipelineを使うことがメインで設計されているっぽい. gitっぽく使うというより,jsonでpipelineを設定して,それをpachydermでバッチ実行するとかを想定されているようだ. Kubernetesを使って,クラウド上とかで実装することが 想定されており,pipeline処理もバックグラウンド実行とか,atomicで実行されるように設計されている.

@sonsongithub
sonsongithub / job.md
Last active September 24, 2019 02:23

株式会社デンソーアイティーラボラトリ 人事・採用担当の募集要項

  1. 雇用目的
    1. ブランディング活動
    2. 採用活動
  2. 職務内容
    1. ホームページの補強,運用定期更新
    2. 社内アウトプットのまとめ
    3. ブログを書かせる,代筆してまとめるなど(出張報告や発表スライドのまとめなど)
  3. 論文,報道発表,イベントなどの発信,SNSでの発信等
  1. 雇用目的
    1. ブランディング活動
    2. 採用活動
  2. 職務内容 1. ホームページの補強,運用定期更新 2. 社内アウトプットのまとめ 3. ブログを書かせる,代筆してまとめるなど(出張報告や発表スライドのまとめなど) 4. 論文,報道発表,イベントなどの発信,SNSでの発信等 5. 社内のグループ会社向けのイベント管理
  3. 採用活動
import Cocoa
import Foundation
//var buffer: UnsafeMutablePointer<unichar> = UnsafeMutablePointer<unichar>.allocate(capacity: 3)
//
//Array.with)
var buffer = [unichar](repeating: 0, count: 3)
#include <vector>
#include <iostream>
#include <unordered_map>
#define _DEBUG
// Input: 3
// Output:
// [