Skip to content

Instantly share code, notes, and snippets.

@plus7
plus7 / hoge
Created October 12, 2009 11:47
hogehoge
We couldn’t find that file to show.
ahya@debian:~/work/NPB3.0/NPB3.0-RUB$ which jruby
/usr/local/jruby-1.6.0.RC1/bin/jruby
ahya@debian:~/work/NPB3.0/NPB3.0-RUB$ jruby --version
jruby 1.6.0.RC1 (ruby 1.8.7 patchlevel 330) (2011-01-10 769f847) (OpenJDK Client VM 1.6.0_18) [linux-i386-java]
ahya@debian:~/work/NPB3.0/NPB3.0-RUB$ jruby -d LU.rb -CLASSS -serial
warning: could not compile: LU.rb because of: "Unknown constant tag 111 in class file LU"
java.lang.ClassFormatError: Unknown constant tag 111 in class file LU
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:634)
at org.jruby.util.JRubyClassLoader.defineClass(JRubyClassLoader.java:76)
@plus7
plus7 / f03_1.f90
Created March 1, 2011 06:38
自動変換してるので所々おかしいのはしょうがない
module m_CGBase
implicit none
type :: t_CGBase
character :: CLASS
integer :: na
integer :: nonzer
integer :: niter
double precision :: shift
double precision :: rcond
double precision :: zeta_verify_value
@plus7
plus7 / gist:912206
Created April 10, 2011 10:02
PHPに移植するもっともスマートな方法は…
public double vranlc(double n, double x, double a, double y[],int offset){
long Lx = (long)x;
long La = (long)a;
for(int i=0;i<n;i++){
Lx = (Lx*La) & (i246m1); //long i246m1 = pow(2, 46) - 1
y[offset+i] = (double)(d2m46* Lx); //double d2m46 = pow(0.5, 46)
}
return (double) Lx;
@plus7
plus7 / gist:917046
Created April 13, 2011 06:05
掲示板
メッセージ投げたい場合はここに書くとたまに見るかもしれません
@plus7
plus7 / gist:986287
Created May 23, 2011 05:52
hoge html
<!doctype html>
<html>
<head><title></title></head>
<body>
</body>
</html>
@plus7
plus7 / gist:987245
Created May 23, 2011 18:33
a result of cat /proc/cpuinfo @ csc
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 44
model name : Intel(R) Xeon(R) CPU X5670 @ 2.93GHz
stepping : 2
cpu MHz : 2932.602
cache size : 12288 KB
physical id : 0
siblings : 6
@plus7
plus7 / gist:994570
Created May 27, 2011 03:08
a result of cat /proc/cpuinfo @ csp
processor : 0
cpu : POWER7 (architected), altivec supported
clock : 3550.000000MHz
revision : 2.1 (pvr 003f 0201)
processor : 1
cpu : POWER7 (architected), altivec supported
clock : 3550.000000MHz
revision : 2.1 (pvr 003f 0201)
for(var i=0;i<20;i++){var elem = document.querySelectorAll(".langbtn")[2]; var evt = document.createEvent( "MouseEvents" );evt.initEvent( "mouseup", false, true ); elem.dispatchEvent( evt ); }