Skip to content

Instantly share code, notes, and snippets.

Avatar

HARUYAMA Seigo haruyama

View GitHub Profile
View j-tech.dev spam
突然のご連絡失礼いたします。
J-Tech.devの山本 彩と申します。
エンジニアに特化したヘッドハンターでございます。
国内・海外の企業様の採用を支援させて頂いており、今回もマーケットで一番勢いのある優良なクライアント様についてお話させて頂きたく、ご連絡しました。
現在コロナウイルス感染防止の為、全ての面談を電話面談で実施しております。(Skype, Hangout, Zoom 等)
また、ほぼ全ての面接もビデオで実施しております。
View gist:b16f5527e628445e32876a4d0ccac418
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);
View keybase.md

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:

View gist:77e09c70e09d960d9c84234d7c7a3d4b
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.
View cVim.vim
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 / godeb_workaround.sh
Last active Oct 29, 2018 — forked from mojotx/godeb_workaround.sh
Workaround for godeb issue generating errors, "corrupted filesystem tarfile - corrupted package archive"
View godeb_workaround.sh
#!/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
@haruyama
haruyama / lychrel.c
Last active Aug 29, 2015
lychrel number
View lychrel.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <gmp.h>
bool check_symmetry(mpz_t i)
{
char* s = mpz_get_str(NULL, 10, i);
size_t len = strlen(s);
View hoge
(unify-match 1 '(? x)
(singleton-stream '()))
(unify-match '(? x) 1
(singleton-stream '()))
(unify-match '(? x) '(? x)
(singleton-stream '()))
;(query-syntax-process '(?x ?x))
View bounded-sleep.go
// +build OMIT
package main
import (
"errors"
"fmt"
"math/rand"
"sort"
@haruyama
haruyama / gist:641aebe049050d01bb0b
Created Jul 21, 2014
unite_lua_filter_head.patch
View gist:641aebe049050d01bb0b
diff --git a/autoload/unite/filters.vim b/autoload/unite/filters.vim
index 0156643..d7af4f5 100644
--- a/autoload/unite/filters.vim
+++ b/autoload/unite/filters.vim
@@ -158,9 +158,9 @@ do
local input = vim.eval('tolower(a:input)')
local candidates = vim.eval('a:candidates')
for i = #candidates-1, 0, -1 do
- local word = string.lower(candidates[i].action__path)
- or string.lower(candidates[i].word)