Skip to content

Instantly share code, notes, and snippets.

View cosmo0920's full-sized avatar
🏠
Working from home

Hiroshi Hatake cosmo0920

🏠
Working from home
View GitHub Profile
constraints: SHA ==1.6.4.1,
aeson ==0.7.0.4,
ansi-terminal ==0.6.1.1,
ansi-wl-pprint ==0.6.7.1,
array ==0.4.0.1,
asn1-encoding ==0.8.1.3,
asn1-parse ==0.8.1,
asn1-types ==0.2.3,
async ==2.0.1.4,
attoparsec ==0.10.4.0,
diff --git a/gobject-introspection/ext/gobject-introspection/rb-gi-constructor-info.c b/gobject-introspection/ext/gobject-introspection/rb-gi-constructor-info.c
index c2387b0..376fdb7 100644
--- a/gobject-introspection/ext/gobject-introspection/rb-gi-constructor-info.c
+++ b/gobject-introspection/ext/gobject-introspection/rb-gi-constructor-info.c
@@ -94,6 +94,7 @@ rg_invoke(VALUE self, VALUE rb_options)
VALUE receiver;
GIArgument return_value;
GITypeInfo return_value_info;
+ VALUE val, state;
@cosmo0920
cosmo0920 / Makefile
Created August 14, 2014 07:18
portaudio makefile in OSX
#
# PortAudio V19 Makefile.in
#
# Dominic Mazzoni
# Modifications by Mikael Magnusson
# Modifications by Stelios Bounanos
#
top_srcdir = .
srcdir = .
% ./dist/build/example-portaudio/example-portaudio 48000 1024
Initialization: 0
Available APIs:
Opening the default stream: -9985
example-portaudio: user error (Failed.)
./dist/build/example-portaudio/example-portaudio 44100 1024
Initialization: 0
Available APIs:
Opening the default stream: -9985
cd example
cabal sandbox init
cabal install bindings-DSL
cabal sandbox add-source ../
cabal install bindings-portaudio -fCoreAudio
cabal configure
cabal build
# Maintainer: cosmo0920 <[email protected]>
pkgname=libcello
_pkgname=libCello
pkgver=1.1.7
pkgrel=1
pkgdesc="Cello is a GNU99 C library which brings higher level programming to C"
url="http://libcello.org"
#makedepends=('nasm')
arch=('x86_64' 'i686')
@cosmo0920
cosmo0920 / haskell-mode-setting.el
Created July 18, 2014 02:13
haskell-mode-setting.el
;;Haskell-mode
(autoload 'haskell-mode-autoloads "haskell-mode-autoloads" "haskell-mode autoload." t)
(eval-after-load "haskell-mode"
'(progn
(add-hook 'haskell-mode-hook 'haskell-hook)
))
(defun haskell-hook ()
(turn-on-haskell-simple-indent)
(turn-on-haskell-indent)
(turn-on-haskell-indentation)
@cosmo0920
cosmo0920 / gist:9abd5707a72a4d6dd114
Created May 26, 2014 09:58
/etc/lsb-release ansible_lsb.major_release|int
memo: ansible_lsb.major_release|int >= <num>
http://docs.ansible.com/playbooks_conditionals.html
/etc/lsb-release
@cosmo0920
cosmo0920 / daily_build_hoge.sh
Last active August 29, 2015 14:01
Jenkins build script
export TWITTER_USER=piyo
export CABAL_COMMAND="cabal install yesod yesod-bin"
export DATE="`date +\"%Y/%m/%d %H:%M:%S\"`"
echo "=== \"${CABAL_COMMAND}\" scheduled. at ${DATE} ===" | tw --user=${TWITTER_USER} --pipe
# check versions
uname -mprsv
ghc --version
cabal --version
# clean work dir cabal environment
source "https://rubygems.org"
gem "gmp"