Skip to content

Instantly share code, notes, and snippets.

View igrep's full-sized avatar
:shipit:
Writing in Haskell, TypeScript, or Power Automate

YAMAMOTO Yuji igrep

:shipit:
Writing in Haskell, TypeScript, or Power Automate
View GitHub Profile
@azu
azu / async-await-observable.md
Last active November 13, 2015 09:57
async/await、Rx、observableのECMAScript近況
module Main where
true :: a -> b -> a
true x _ = x
false :: a -> b -> b
false _ x = x
iF :: (a -> a -> a) -> a -> a -> a
iF b x y = b x y
@tokiwoousaka
tokiwoousaka / gist:69165be983834d427416
Last active August 29, 2015 14:19
THのlocation関数テスト
{-# LANGUAGE TemplateHaskell#-}
module Main where
import Language.Haskell.TH
$( do
location >>= runIO . (\loc -> do
putStrLn $ loc_filename loc -- THの書かれたファイル名
putStrLn $ loc_package loc -- パッケージ名
putStrLn $ loc_module loc -- モジュール名
print $ loc_start loc -- ソースコード上のマクロの開始位置(行, 列)
@joker1007
joker1007 / calculator.rb
Created January 17, 2015 06:25
神奈川Ruby会議01
require 'bundler/setup'
require 'tapp'
class Operator
def initialize(left, right)
@left = left
@right = right
end
end
@kaosf
kaosf / 2014-precure-advent-calendar-23.md
Last active August 29, 2015 14:12
はじけるCommonの香り!キュアClojure!

プリキュア Advent Calendar 2014 - Adventar の 23 日目の記事です.

Clocure

Clojure + Precureという意味で命名された,PycureおよびRubicureリスペクトです.

つまり世界初のLispによるプリキュア実装です.更にJVMのためのプリキュア実装でもあります.

ソースコードは kaosf/clocure にあります.ここから Clojars (Clojureのライブラリ登録サービス) へのリンクなども確認出来ます.

@tmm1
tmm1 / sample.gif
Last active December 11, 2020 07:40
View Profiler
sample.gif
@magthe
magthe / msys2.reg
Created September 11, 2014 06:56
MSYS2 "Open Here" registry settings
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\open_msys2]
@="Open MSYS2 here"
[HKEY_CLASSES_ROOT\Directory\Background\shell\open_msys2\command]
@="c:\\msys64\\usr\\bin\\mintty.exe /bin/sh -lc 'cd \"$(cygpath \"%V\")\"; exec bash'"
[HKEY_CLASSES_ROOT\Folder\shell\open_msys2]
@="Open MSYS2 here"
@exoego
exoego / 転職先に訊きたいチェックリスト.md
Last active April 16, 2023 03:57
転職活動してて訊きたいことのメモ

制度

  • 有休…
  • 病休…
  • 育休…
  • 年収(月給、賞与など)…
  • 残業代…
  • 早朝/深夜手当…
  • 休出手当…
  • 住宅補助…
@tokiwoousaka
tokiwoousaka / Main.hs
Last active May 16, 2023 15:26
関数型LT大会発表資料
module Main where
import Game.NovelMonad
import Game.NovelMonad.SimpleInterpreter
import Story
main :: IO ()
main = simpleInterpret defaultConfig novelMain
novelMain :: Novel ()
novelMain = do
@drinkcat
drinkcat / PKGBUILD
Last active December 23, 2015 14:19
ruby-rmagick new PKGBUILD. Patch from https://github.com/bricef/rmagick/commit/689271fbb439dbf735f120811ac3b2dc79ba95a2 It seems to work for simple cases (at least we can compile and use rmagick), no idea how badly HDR images handling is broken.
# Contributor: Alexsandr Pavlov <kidoz at mail dot ru>
pkgname=ruby-rmagick
_gemname=${pkgname#ruby-}
pkgver=2.13.2
pkgrel=2
pkgdesc="Interface between the Ruby programming language and the ImageMagick"
arch=('i686' 'x86_64')
url="http://rmagick.rubyforge.org"
license=(MIT)
depends=('ruby' 'imagemagick' 'rubygems')