Skip to content

Instantly share code, notes, and snippets.

View hiroqn's full-sized avatar
💭
recently interested in 🐫

hiroqn hiroqn

💭
recently interested in 🐫
View GitHub Profile
@hiroqn
hiroqn / dir.c
Last active August 13, 2022 05:04
dir.c
//#include <ctype.h>
//#include <locale.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
//#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
import { Either, left, right } from 'fp-ts/lib/Either';
import * as free from 'fp-ts/lib/Free';
import { identity } from 'fp-ts/lib/function';
import { IO } from 'fp-ts/lib/IO';
import { Task } from 'fp-ts/lib/Task';
import { fromIO, taskEither, TaskEither } from 'fp-ts/lib/TaskEither';
import * as fs from 'fs';
declare module 'fp-ts/lib/HKT' {
interface URI2HKT<A> {

Keybase proof

I hereby claim:

  • I am hiroqn on github.
  • I am hiroqn (https://keybase.io/hiroqn) on keybase.
  • I have a public key whose fingerprint is C3BF 7281 D87D 8708 4E33 2DDC 4F22 B8FA 3412 D901

To claim this, I am signing this object:

@hiroqn
hiroqn / prepare-commit-msg
Created September 30, 2016 03:27
angulat style prepare-commit-msg + emoji
#!/bin/sh
format=$(cat << EOS
Merge pray
feat rocket
fix wrench
chore tea
refactor zap
docs memo
style dress
@hiroqn
hiroqn / Dockerfile
Created May 14, 2016 05:43
bucklescript dockerfile
FROM alpine:latest
MAINTAINER hiroqn
ENV npm_package_name bs-platform
RUN apk upgrade --update \
&& apk add --virtual build-dependencies build-base perl git make gcc \
&& git clone https://github.com/bloomberg/bucklescript.git --recursive \
&& cd ./bucklescript/ocaml/ \
module.exports = (robot) ->
prevMessage = {}
robot.hear /(.*)/, (msg) ->
room = msg.message.room
prev = prevMessage[room]
prevMessage[room] = msg.match[1]
if msg.match[1] is 'まだ'
return msg.send 'ここにない'
if prev is 'まだ' and msg.match[1] is '出会い'
msg.send ':recruit:'
# Description:
# You are tikuwa
#
# Commands:
# hubot tkw <query> - Returns a image
{exec} = require 'child_process'
module.exports = (robot) ->
var THT = 200000,
exp_value = 12,
Hash5 = [],
Hash2 = [];
function getNumOfFactor5(num) {
var count = 0,
fact = 5;
if (Hash5[num]) {
return Hash5[num];