Skip to content

Instantly share code, notes, and snippets.

View jeantil's full-sized avatar
✔️

Jean Helou jeantil

✔️
View GitHub Profile
@jeantil
jeantil / .Xdefault
Created August 13, 2010 16:52
cygwin config on windows with rxvt native
! rxvt-cygwin-native .Xdefault with sane colors
#ifdef COLOR
*customization: -color
#endif
! GVim colors, etc
!! GTK versions of gvim will not use all these.
Vim*useSchemes: all
Vim*sgiMode: true
<script>
var _gaq = [['_setAccount', 'UA-17995021-1'], ['_trackPageview']];
(function(d, t) {
var g = d.createElement(t),
s = d.getElementsByTagName(t)[0];
g.async = true;
g.src = '//www.google-analytics.com/ga.js';
s.parentNode.insertBefore(g, s);
})(document, 'script');
</script>
--- a/Makefile.in 2010-07-11 06:15:13.000000000 +0000
+++ b/Makefile.in 2010-09-13 21:59:12.444896676 +0000
@@ -158,7 +158,6 @@
$(LIBRUBY_SO):
@-$(PRE_LIBRUBY_UPDATE)
$(LDSHARED) $(DLDFLAGS) $(OBJS) $(DLDOBJS) $(SOLIBS) $(OUTFLAG)$@
- -$(OBJCOPY) -w -L '@EXPORT_PREFIX@Init_*' -L '@EXPORT_PREFIX@*_threadptr_*' $@
@-$(MINIRUBY) -e 'ARGV.each{|link| File.delete link if File.exist? link; \
File.symlink "$(LIBRUBY_SO)", link}' \
$(LIBRUBY_ALIASES) || true
use("ispec")
;
; [0,0] => 0 bon bien place, 0 bon mal place
; [1,0] => 1 bon bien place, 0 bon mal place
; [1,1] => 1 bon bien place, 1 bon mal place
;
describe("evalm",
it("should return 0,0 when no pegs are good",
class EventsController < ApplicationController
rescue_from(ActionController::RoutingError) {redirect_to '/'}
def index
render :layout=>"layouts/home"
end
def show
if params[:name]
@event=Event.where(:name=>params[:name]).first
@event||=Event.create(:name=>params[:name])
end
class EventsController < ApplicationController
rescue_from(ActionController::RoutingError) {redirect_to '/'}
def index
render :layout=>"layouts/home"
end
def show
if params[:name]
@event=Event.where(:name=>params[:name]).first
@event||=Event.create(:name=>params[:name])
end
package dojo.kata;
public class RLE {
public static String encode(String chaine) {
if (chaine == null || chaine.isEmpty())
return "";
if(chaine.length()==1)return encodeUnit(chaine);
/**
*
*/
package fr.softeam.movie.enums;
/**
* @author Olivier
*
*/
public enum Movie {
/**
*
*/
/**
* @author jerome
*
*/
public class RareOrder {
package dojo.kata;
import java.util.ArrayList;
public class Puissance4 {
int lastColPlayed = 0;
ArrayList<Integer> columns = new ArrayList<Integer>(5);