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
#!/usr/bin/env ruby | |
# usage in the real life: | |
# when you want to compare changes between your development version and a production version : | |
# webdiff http://sharypic.com http://sharypic-dev.com:3000 | |
# | |
# into the wild: | |
# create a 'test suite' of your full website :-) [i'll parse my sitemap.xml] | |
require 'fileutils' |
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
myFunc = (param1, params2) -> console.log 'okok'; return; | |
//when it will be "compiled", i will look like as : | |
myFunc = function() { console.log('okok'); |
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
myapp.mymodule = do -> | |
privateStuff = myPrivateVarOrMethod | |
publicReturnedObject = | |
publicProperty: undefined, | |
publicMethod: -> | |
console.log 'do something' |
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
from mongo console : | |
# a few usefull command on mongo cli | |
show dbs | |
use sharypic_development | |
# adding sparse index | |
db.users.dropIndex("invite_code_1") | |
db.users.ensureIndex({invide_code: 1}, {sparse: true, unique: true}) | |
# rename a datbase |
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
# coffee bootstrap | |
# http://arcturo.com/library/coffeescript/05_applications.html | |
# installing node : http://shapeshed.com/journal/setting-up-nodejs-and-npm-on-mac-osx/ | |
brew install node | |
curl http://npmjs.org/install.sh | sh | |
npm install -g spine.app | |
npm install stitch | |
npm install request | |
npm install less |
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
# find a keychain | |
!security 2>&1 >/dev/null find-generic-password -gs \"GitHub\" | ruby -e 'print $1 if STDIN.gets =~ /^password: \\\"(.*)\\\"$/' |
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
# set dir which store Bundles : http://manual.macromates.com/en/bundles | |
mkdir -p /Library/Application\ Support/TextMate/Bundles | |
cd /Library/Application\ Support/TextMate/Bundles | |
# get some bundles for rails | |
svn co "http://svn.textmate.org/trunk/Bundles/Ruby Haml.tmbundle" | |
svn co "http://macromates.com/svn/Bundles/trunk/Review/Bundles/Ruby Sass.tmbundle" | |
git clone git://github.com/kuroir/SCSS.tmbundle.git "SCSS.tmbundle" | |
# open your rails project, menu => Bundles => Bundle Editors => Reload Bundles |
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
# mac version... | |
brew install wine | |
# download an ISO of xp : http://www.microsoft.com/downloads/en/details.aspx?FamilyId=21EABB90-958F-4B64-B5F1-73D0A413C8EF&displaylang=en | |
wine XPSP3_IE.exe # wine will ask an output folder for a .vhd file | |
# download a VM img converter : http://www.kju-app.org/ | |
# convert the img | |
/Applications/Q.app/Contents/MacOS/qemu-img convert -O vmdk -f vpc ./IE8Compat.vhd ./xp_sp3_ie_tester.vmdk |
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
- # dont think to much :-) keep it simple and embrace jQuery UI component lib | |
%li | |
%ul#c_evt_popin | |
%li.author= "event creator: #{@event.owner.email}" | |
%li.created_at= "created on: #{@event.created_at}" | |
%li.nbpict= "event photos: " | |
%li.nbpict= "event date: " | |
%li.nbpict= "contributors: #{@event.sources.size}" | |
-content_for :additional_bottom_js do |
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
<!-- css .nested1 .nested2 => la div nested2 --> | |
<div class"nested1"> | |
<div class="nested2"> | |
</div> | |
</div> | |
<!-- css .chained1.chained2 => la div qui possede les deux classes => je sais pas si IE tolererait --> | |
<div class"chained1 chained2"> | |
<div> |