Skip to content

Instantly share code, notes, and snippets.

<script type="text/javascript">
var _cio = _cio || [];
(function() {
var a,b,c;a=function(f){return function(){_cio.push([f].
concat(Array.prototype.slice.call(arguments,0)))}};b=["identify",
"track"];for(c=0;c<b.length;c++){_cio[b[c]]=a(b[c])};
var t = document.createElement('script'),
s = document.getElementsByTagName('script')[0];
t.async = true;
#container .wufoo .info h2 { font-weight: bold }
SELECT
 `test`
FROM
  `test`;

Jme fais un makefile pour start mon environment de travail car j'en ai marre de taper 200 commandes.

yen a une qui lance le moteur de recherche

sunspot: stop_sunspot
	cd /web/platform && bundle exec rake sunspot:solr:start RAILS_ENV=development
stop_sunspot:
	cd /web/platform && bundle exec rake sunspot:solr:stop RAILS_ENV=development
@midu
midu / Makefile
Created May 25, 2012 18:27
cpost command
SHELL := /bin/zsh
PLATFORM_PATH := /web/platform
SOLR_PID_PATH := /web/platform/solr/pids/development/sunspot-solr-development.pid
HOME_URL := http://home.dev
all: nginx mysql redis sunspot memcached unicorn
open $(HOME_URL)
stop: stop_nginx stop_mysql stop_redis stop_sunspot stop_memcached stop_unicorn
# are your team members constantly messing up your rspec config?
# deleting the .rspec files, changing the format?
# .zshrc
export SPEC_OPTS='--color --drb --format progress'
#my-module-in-a-page {
.some-generic-class-name {
text-decoration: underline overline blink !important;
}
/* ... */
}
@midu
midu / gist:3453908
Created August 24, 2012 18:21
be careful when you define classes in modules!
class A
def a
"a from A"
end
end
module B; end
class B::A
def a
# extracted from http://www.html5rocks.com/en/tutorials/file/dndfiles/
handleFileSelect = (event) ->
files = event.target.files
for file in files
continue if !file.type.match('image.*')
reader = new FileReader
reader.onload = displayImage
/*
json2.js
2012-10-08
Public Domain.
NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
See http://www.JSON.org/js.html