Skip to content

Instantly share code, notes, and snippets.

View yssk22's full-sized avatar

yssk22 yssk22

View GitHub Profile
@yssk22
yssk22 / gist:e2312bcc64a9934fb7a8b7020fa16acd
Created April 17, 2025 17:10
Juice=Juice 2025 春ツアー Tシャツ ドット
<svg width="99" height="132" xmlns="http://www.w3.org/2000/svg">
<defs>
<pattern id="dotColumn" width="9" height="125" patternUnits="userSpaceOnUse">
<g transform="translate(4.5, 4.5)">
<circle cx="0" cy="0" r="1.0" fill="#B19CD9" />
<circle cx="0" cy="8" r="1.4" fill="#B19CD9" />
<circle cx="0" cy="16" r="1.7" fill="#B19CD9" />
<circle cx="0" cy="24" r="2.1" fill="#B19CD9" />
<circle cx="0" cy="32" r="2.4" fill="#B19CD9" />
<circle cx="0" cy="40" r="2.9" fill="#B19CD9" />
@yssk22
yssk22 / HPSortClassicMergeSort.ts
Created November 22, 2024 15:56
ハロプロソートのアルゴリズム比較
import HPSortBase, { HPSortProgress, HPSortResult } from './HPSortBase';
/**
* HPSortMergeClassic is a class to emulate the sorting process in a classic manner (Simple two comparison merge sort)
*/
export default class HPSortClassicMergeSort<T> implements HPSortBase<T> {
private targetSet: T[];
private lstMember: number[][];
private parent: number[];
cc_text_size "0"
cl_deathhints_enabled "1"
cl_fovScale "1.40857"
cl_safearea "0"
closecaption "0"
clubs_showInvites "1"
colorblind_mode "0"
CrossPlay_user_optin "1"
damage_indicator_style_pilot "1"
disable_player_use_prompts "0"

Docker Overview

こんな人に有効

  • Linux 使ってるけど vagrant とか Virtual Box とか時間かかってめんどい
  • VM 作りまくって何が何だかわからなくなった
  • Warden が動かない, Buildpack なにそれおいしいの?
  • Go!

note: Ubuntu 12.04 (linux-image-3.8.0-23-generic) 使ってます。 Kernel 3.5 以前では安定しない模様。

@yssk22
yssk22 / time.Sleep.go
Created May 6, 2013 11:39
うごかないぉ
package main
import (
"log"
"syscall"
"os"
"os/signal"
"time"
)
@yssk22
yssk22 / Golan あれこれ.md
Last active December 17, 2015 00:39
Golang あれこれ

コマンドライン引数

サンプル

  path := flag.String("config", "/etc/pt-client.conf", "path to configuration file")
  flag.Parse()

実行

@yssk22
yssk22 / gist:5128840
Created March 10, 2013 14:47
CloudFoundry JP 温泉ハッカソン #1
@yssk22
yssk22 / vcap_dea.log
Created December 9, 2012 15:47
DEA_NG + Warden Errors
{"timestamp":1355066691.819268,"message":"Moved droplet to /var/opt/vcap/local/dea/droplets/fd0f84f21f1eee3489ccc65325ff1c5a22483e8e/droplet.tgz","log_level":"debug","source":"Dea::Droplet","data":{"droplet_sha1":"fd0f84f21f1eee3489ccc65325ff1c5a22483e8e"},"thread_id":10320740,"fiber_id":22243240,"process_id":6106,"file":"/opt/vcap/vcap_dea/lib/dea/droplet.rb","lineno":66,"method":"block in download"}
{"timestamp":1355066691.8250575,"message":"#<EventMachine::Warden::Client::Connection::CommandResult:0x00000002594f00 @value=#<EventMachine::Warden::Client::Error: command exited with failure>>","log_level":"debug2","source":"Dea::Instance","data":{"instance_id":"425b8135688af0c9926459403ed5306b","instance_index":0,"application_id":"1","application_version":"fd0f84f21f1eee3489ccc65325ff1c5a22483e8e-2","application_name":"wake-me-up"},"thread_id":10320740,"fiber_id":22243240,"process_id":6106,"file":"/opt/vcap/vcap_dea/lib/dea/task.rb","lineno":86,"method":"block (2 levels) in promise_warden_call"}
{"timestamp":1
@yssk22
yssk22 / gist:2717536
Created May 17, 2012 08:58
MLで盛り上がったNATSについて #cfcrjp #6
@yssk22
yssk22 / MLで盛り上がったNATSについて.rst
Created May 17, 2012 08:58
MLで盛り上がったNATSについて #cfcrjp #6