Skip to content

Instantly share code, notes, and snippets.

View bbrochier's full-sized avatar
:octocat:
Happy coder !

Benniboom bbrochier

:octocat:
Happy coder !
View GitHub Profile
@bbrochier
bbrochier / arrows.css
Last active January 22, 2016 10:54
CSS Arrows
.arrow-bottom {
border: solid transparent;
border-width: 10px 5px 0 5px;
border-top-color: blue;
}
.arrow-top {
border: solid transparent;
border-width: 0 5px 10px 5px;
border-bottom-color: red;
@bbrochier
bbrochier / selectOptionData.html
Created September 28, 2015 13:51
Select option with data
<select class="js-select">
<option value="" data-link="http://www.waitbutwhy.com">Go to WBW</option>
<option value="" data-link="http://www.ted.com">Go to TED</option>
<option value="1">option 1</option>
</select>
/* ==========================================================================
COOKIES BANNER
========================================================================== */
var cookiesStatus = localStorage.getItem('cookiesStatus');
if (cookiesStatus === null) {
$('.cookiesBanner').slideUp();
}
$('.cookiesBanner').on('click', '.btnClose', function() {
$('.cookiesBanner').slideDown();
localStorage.setItem('cookiesStatus', 'ok');
/* ==========================================================================
CHEFS
========================================================================== */
//GET NB ITEMS
function getItemPerLine() {
var iViewportWidth = $(document).width();
var iNbItems = 5;
if (iViewportWidth < 1240) {
iNbItems = 4;
@bbrochier
bbrochier / isotope.js
Created August 28, 2015 08:35
Isotope settings
if ($('.social-wall-container').length) {
$('.social-wall-container').isotope({
stamp: '.itemStamp',
layoutMode: 'packery',
packery: {
columnWidth: '.grid-sizer'
},
itemSelector: '.itemWall',
percentPosition: true
});
@bbrochier
bbrochier / tabs.html
Last active August 31, 2016 10:25
Tab
<div class="row row-table">
<div class="col-1-4 active" data-tab-target="tabMer">
<h3 class="tabTitle">La mer <em>et le surf</em></h3>
</div>
<div class="col-1-4" data-tab-target="tabCampagne">
<h3 class="tabTitle">La campagne</h3>
</div>
<div class="col-1-4" data-tab-target="tabVille">
<h3 class="tabTitle">La ville</h3>
</div>
@bbrochier
bbrochier / flex.md
Last active December 2, 2016 13:49
Flex
@bbrochier
bbrochier / meanjs.md
Last active October 14, 2017 12:13
MEAN.js Commands
@bbrochier
bbrochier / MongoDB.md
Last active August 29, 2015 14:21
MongoDB notes

#MongoDB

MongoLab import/export

Export from local

  1. stop mongod
  2. mkdir backup folder
  3. cd backup folder
  4. Run mongodump --dbpath /Users/benoitbrochier/Sites/collective/data