This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright 1999-2012 Gentoo Foundation | |
# Distributed under the terms of the GNU General Public License v2 | |
# $Header: $ | |
EAPI=4 | |
# ebuild generated by hackport 0.2.18.9999 | |
CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite" | |
inherit haskell-cabal |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Control.Parallel.OpenCL | |
import Distribution.System (buildOS, OS(..)) | |
-- clDeviceCheck | |
clDeviceCheck :: IO () | |
clDeviceCheck = do | |
platforms <- clGetPlatformIDs | |
clDevices platforms | |
clDevices platforms = do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifdef cl_khr_fp64 | |
#pragma OPENCL EXTENSION cl_khr_fp64 : enable | |
typedef double tfloat; | |
#elif defined(cl_amd_fp64) | |
#pragma OPENCL EXTENSION cl_amd_fp64 : enable | |
typedef double tfloat; | |
#else | |
typedef float tfloat; | |
#endif | |
__kernel void arrayft_1d(__global const tfloat in[], __global tfloat out[]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifdef cl_khr_fp64 | |
#pragma OPENCL EXTENSION cl_khr_fp64 : enable | |
typedef double tfloat; | |
#elif defined(cl_amd_fp64) | |
#pragma OPENCL EXTENSION cl_amd_fp64 : enable | |
typedef double tfloat; | |
#else | |
typedef float tfloat; | |
#endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/media/Data/mikutter/core/mui/cairo_timeline.rb:48:in `initialize': wrong number of arguments (0 for 1) (ArgumentError) | |
from /media/Data/mikutter/core/mui/gtk_timeline_utils.rb:30:in `new' | |
from /media/Data/mikutter/core/mui/gtk_timeline_utils.rb:30:in `new' | |
from /media/Data/mikutter/plugin/call_api_fav.rb:25:in `block in <top (required)>' | |
from /media/Data/mikutter/plugin/call_api_fav.rb:21:in `initialize' | |
from /media/Data/mikutter/plugin/call_api_fav.rb:21:in `new' | |
from /media/Data/mikutter/plugin/call_api_fav.rb:21:in `<top (required)>' | |
from /opt/miku/rb193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require' | |
from /opt/miku/rb193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require' | |
from /media/Data/mikutter/core/plugin.rb:409:in `load_file' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- profile.rb.orig 2012-09-17 17:40:23.000000000 +0900 | |
+++ profile.rb 2012-09-18 10:22:02.560279855 +0900 | |
@@ -20,7 +20,7 @@ | |
on_show_profile do |service, user| | |
container = profile_head(user) | |
- i_profile = tab nil, "#{user[:name]} のプロフィール}" do | |
+ i_profile = tab nil, "#{user[:name]} のプロフィール" do | |
set_icon user[:profile_image_url] | |
set_deletable true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- core/plugin/command/conditions.rb 2012-09-21 00:37:56.497075247 +0900 | |
+++ core/plugin/command/conditions.rb.edited 2012-09-21 00:38:14.050407983 +0900 | |
@@ -71,6 +71,11 @@ | |
# TL上のテキストが一文字でも選択されている | |
TimelineTextSelected = Condition.new{ |opt| opt.widget.selected_text(opt.messages.first) } | |
+ #TL上のメッセージがシステムメッセージではない | |
+ NotSystem = Condition.new{ |opt| | |
+ not opt.messages.empty? { |m| | |
+ not m.messages.system? } } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <opencv/cv.h> | |
#include <opencv/highgui.h> | |
using namespace cv; | |
int main(int argc, char** argv) | |
{ | |
const char *imagename = argc > 1 ? argv[1] : "../image/hoge.png"; | |
Mat src_img = imread(imagename); | |
if(!src_img.data) | |
return -1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Emacsを半透明・透明にする | |
(global-set-key "\C-xa" | |
(lambda () (interactive) | |
(set-frame-parameter nil 'alpha 80))) | |
(global-set-key "\C-ca" | |
(lambda () (interactive) | |
(set-frame-parameter nil 'alpha 100))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- nested_quote.rb.orig 2012-10-02 00:24:24.000000000 +0900 | |
+++ nested_quote.rb 2012-10-02 06:51:49.000000000 +0900 | |
@@ -179,6 +179,13 @@ | |
Plugin.create :nested_quote do | |
command(:copy_tweet_url, | |
name: 'ツイートのURLをコピー', | |
+ show_face: Proc.new{ |m| | |
+ whotwi = m.messages.first.message.idname | |
+ if m.messages.first.message.to_s.length > 20 then | |
+ show_message = m.messages.first.message.to_s[0, 20] + "..." |