Skip to content

Instantly share code, notes, and snippets.

View diorahman's full-sized avatar

Dhi Aurrahman diorahman

  • Cokelatia
  • Bandung
View GitHub Profile
// moment.js language configuration
// language : Bahasa Indonesia (id)
// author : Mohammad Satrio Utomo : https://github.com/tyok
// reference: http://id.wikisource.org/wiki/Pedoman_Umum_Ejaan_Bahasa_Indonesia_yang_Disempurnakan
(function () {
var lang = {
months : "Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),
monthsShort : "Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des".split("_"),
weekdays : "Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),
weekdaysShort : "Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),
$ curl -sSL https://get.rvm.io | bash -s stable
$ rvm install 1.8.7

Kalo udah cari ruby.h-nye ada dimane

$ cd ~/.rvm
$ find . -name "ruby.h"
INCLUDE = -I ./ -I ../cernlib/ -I /home/diorahman/.rvm/rubies/ruby-1.8.7-p374/lib/ruby/1.8/x86_64-linux
@diorahman
diorahman / tarthenxz.sh
Created February 28, 2014 09:52
tar then xz
tar -cf - apendo/ | xz -9 -c - > apendo.tar.xz
https://github.com/mllrsohn/angular-init/blob/master/test/client/karma.config.js
var routes1 = [
{
name : "home",
options : {
url : "/",
template : "Home Test {{ test }}",
controller : "HomeCtrl"
}
},
{

Minuit

  • Replace g77 with gfortran in /home/diorahman/Experiments/misc/pwa/src/ruby-minuit/cernlib/Makefile

  • Replace ugly flag to -fPIC in /home/diorahman/Experiments/misc/pwa/src/ruby-minuit/cernlib

  • Set RUBYINC to ~/.rvm/rubies/ruby-1.8.7-p374/lib/ruby/1.8/x86_64-linux

  • Repace FLLIB to FLIB in /home/diorahman/Experiments/misc/pwa/src/ruby-minuit/src/Makefile

Ruby-PWA

  • Set RUBYINC to ~/.rvm/rubies/ruby-1.8.7-p374/lib/ruby/1.8/x86_64-linux
#
../lib/$(OS_NAME)/%.so: objects/%.o
g++ -shared objects/$*.o -o ../lib/$(OS_NAME)/$*.so -L/home/diorahman/.rvm/rubies/ruby-1.8.7-p374/lib -lruby
@chmod 555 ../lib/$(OS_NAME)/$*.so
#!gnumake
LD = g++
FLAGS = -Wall -fPIC
INCLUDE = -I . -I$(RUBYINC)
#
all: lib_dir ../lib/$(OS_NAME)/cppvector.so ../lib/$(OS_NAME)/dataset.so ../lib/$(OS_NAME)/dcs.so ../lib/$(OS_NAME)/evt.so ../lib/$(OS_NAME)/norm_int.so
#
lib_dir:;
@mkdir -p ../lib/$(OS_NAME)
// -*- C++ -*-
// Author: Mike Williams
//_____________________________________________________________________________
#ifndef _pwa_src_H
#define _pwa_src_H
#include <vector>
#include <complex>
#include "ruby-complex.h"
using namespace std;