This file contains 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
hello world |
This file contains 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
(defn trace-mat | |
[A] | |
(->> A | |
(cl/map-indexed (fn [i j e] (if (== i j ) e 0))) | |
(map #(apply + %)) | |
(apply +))) | |
This file contains 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 <stdio.h> | |
/*get factorial of n*/ | |
double fact(int n); | |
/* invoke seq to get e */ | |
double gete(int n); | |
int | |
main(int argc, char *argv[]) |
This file contains 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
URxvt.font: xft:monaco:size=11 | |
URxvt.depth: 32 | |
URxvt.background: rgba:1111/1111/1111/dddd | |
URxvt.foreground: Green | |
URxvt.scrollstyle: plain | |
URxvt.perl-ext-common: default,matcher | |
URxvt.url-launcher: /usr/bin/google-chrome | |
URxvt.matcher.button: 1 | |
URxvt.colorUL: #4682B4 | |
URxvt.borderless: 1 |
This file contains 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
sieve([]) -> []; | |
sieve([H|T]) -> | |
[H | sieve(lists:filter(fun(Y) -> (Y rem H) =/= 0 end), T)]. |
This file contains 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
def is_admin? | |
unless User.find_by_id(session[:user_id]) and User.find_by_id(session[:user_id]).privileged ==true | |
redirect_to(:controller => "cities", :action => "index") | |
end | |
end |
This file contains 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<stdio.h> | |
#include<string.h> | |
#define MAX 128 | |
typedef struct Funcinfo Funcinfo; | |
struct Funcinfo { | |
char *funcname; /* name of the function */ | |
char *funcargs[10]; /* arguments of the function */ | |
char *funcvalue; /* value of the function */ |
This file contains 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
ruby-1.8.7-p334: | |
system: | |
uname: "Linux myhost 2.6.37-ARCH #1 SMP PREEMPT Fri Mar 25 14:35:13 UTC 2011 i686 Genuine Intel(R) CPU T2300 @ 1.66GHz GenuineIntel GNU/Linux" | |
bash: "/bin/bash => GNU bash, version 4.2.8(2)-release (i686-pc-linux-gnu)" | |
zsh: " => not installed" | |
rvm: | |
version: "rvm 1.5.2 by Wayne E. Seguin (wayneeseguin@gmail.com) [http://rvm.beginrescueend.com/]" |
This file contains 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
[visof@myhost ~]$ rvm info | |
/home/visof/.rvm/rubies/ruby-1.9.2-p180/bin/gem:4: warning: Insecure world writable dir /usr/local/plan9/bin in PATH, mode 040777 | |
ruby-1.8.7-p334: | |
system: | |
uname: "Linux myhost 2.6.37-ARCH #1 SMP PREEMPT Fri Mar 25 14:35:13 UTC 2011 i686 Genuine Intel(R) CPU T2300 @ 1.66GHz GenuineIntel GNU/Linux" | |
bash: "/bin/bash => GNU bash, version 4.2.8(2)-release (i686-pc-linux-gnu)" | |
zsh: " => not installed" |
This file contains 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
Successfully installed rails-3.0.5 | |
1 gem installed | |
Installing ri documentation for rails-3.0.5... | |
Installing RDoc documentation for rails-3.0.5... | |
[visof@myhost ~]$ rails -v | |
bash: /usr/bin/rails: /usr/bin/ruby: bad interpreter: No such file or directory | |
[visof@myhost ~]$ rails | |
bash: /usr/bin/rails: /usr/bin/ruby: bad interpreter: No such file or directory |