Skip to content

Instantly share code, notes, and snippets.

View haruyama's full-sized avatar
🌴
On vacation

HARUYAMA Seigo haruyama

🌴
On vacation
View GitHub Profile
突然のご連絡失礼いたします。
J-Tech.devの山本 彩と申します。
エンジニアに特化したヘッドハンターでございます。
国内・海外の企業様の採用を支援させて頂いており、今回もマーケットで一番勢いのある優良なクライアント様についてお話させて頂きたく、ご連絡しました。
現在コロナウイルス感染防止の為、全ての面談を電話面談で実施しております。(Skype, Hangout, Zoom 等)
また、ほぼ全ての面接もビデオで実施しております。
diff -ur xnp2-0.86.orig/accessories/lzxpack.c xnp2-0.86/accessories/lzxpack.c
--- xnp2-0.86.orig/accessories/lzxpack.c 2016-03-09 02:25:48.000000000 +0900
+++ xnp2-0.86/accessories/lzxpack.c 2019-08-03 16:01:28.488689336 +0900
@@ -49,8 +49,8 @@
ctrl = ptr;
*ptr++ = 0x00;
}
- back = min(pos, maxhis);
- rem = min(datasize - pos, maxlen);
+ back = mymin(pos, maxhis);

Keybase proof

I hereby claim:

  • I am haruyama on github.
  • I am haruyama (https://keybase.io/haruyama) on keybase.
  • I have a public key ASCXnr5_nc0X8FzUg6aCGzxcVIRGlakk7itj-zYINMAHRAo

To claim this, I am signing this object:

@haruyama
haruyama / godeb_workaround.sh
Last active October 29, 2018 18:01 — forked from mojotx/godeb_workaround.sh
Workaround for godeb issue generating errors, "corrupted filesystem tarfile - corrupted package archive"
#!/bin/bash
#####################################################################
# Work-around for godeb issue
# assumes godeb is available using $GOPATH
# You can specify version on the command line,
# or else it will try and grab the latest
#####################################################################
set -e
From mathcomp
Require Import ssreflect ssrnat.
Section naturalNumber.
Lemma add0nEqn (n : nat) : 0 + n = n.
Proof. by []. Qed.
Lemma addn3Eq2n1 (n : nat) : n + 3 = 2 + n + 1.
Proof.
@haruyama
haruyama / cVim.vim
Last active February 10, 2018 11:54
let blacklists = ["https://mail.google.com/*", "*://mail.google.com/*", "@https://mail.google.com/mail/*", "https://twitter.com/*", "https://www.facebook.com/*", "https://feedly.com/*"]
map 1G scrollToTop
@haruyama
haruyama / gist:7869684
Created December 9, 2013 09:33
file dumper
import ceylon.file { File, Path, parsePath }
import ceylon.io { OpenFile, newOpenFile }
import ceylon.io.charset { utf8, Decoder }
import ceylon.io.buffer { ByteBuffer }
import java.util { ArrayList }
shared void cat(String filename) {
Path path = parsePath(filename);
OpenFile file = newOpenFile(path.resource);
#!/usr/bin/env ruby
# -*- encoding: utf-8 -*-
L2_COEFF = 1
RATE = 10
TAGIDS = Hash.new { |hash, key| hash[key] = hash.size }
TAGIDS['<S>'] = 0
def dot(x, y)
@haruyama
haruyama / create_macaddress2md5_table.rb
Created August 22, 2011 05:53
this creates a table of macaddress, whose prefix(vendor id) is specified, to md5
#!/usr/bin/env ruby
# -*- encoding: utf-8 -*-
require 'digest/md5'
prefix =
begin
ARGV[0].downcase
rescue
'90840d'
end
(define (fringe x)
(define (loop x acc)
(cond ((null? x) acc)
((not (pair? x)) (cons x acc))
(else (loop (car x) (loop (cdr x) acc)))))
(loop x '()))