Skip to content

Instantly share code, notes, and snippets.

View jeremybarbet's full-sized avatar
🌍

Jérémy Barbet jeremybarbet

🌍
View GitHub Profile

Recommandations pour l'Islande

Alors déjà premier point: c'est très cher l'Islande, prévoir un x2 sur les prix par rapport à la France pour tout ce qui est restaurant, hôtel ou en rapport avec le tourisme

Équipement

  • Indispensable:
    • Veste coupe vent et imperméable (gore-tex)
    • Pantalon imperméable
  • Chaussures de randonnées
@danrigsby
danrigsby / LocalStorage.js
Created November 25, 2015 14:49
React Native Local Storage Wrapper
import React from 'react-native';
var {
AsyncStorage
} = React;
var LocalStorage = {
get: function (key) {
return AsyncStorage.getItem(key).then(function(value) {
return JSON.parse(value);
});
@paulirish
paulirish / what-forces-layout.md
Last active December 15, 2025 09:56
What forces layout/reflow. The comprehensive list.

What forces layout / reflow

All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.

Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.

Element APIs

Getting box metrics
  • elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent
@xinan
xinan / material-theme.itermcolors
Created August 1, 2015 16:18
Material Theme iTerm2 Port
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Blue Component</key>
<real>0.25882352941176467</real>
<key>Green Component</key>
<real>0.21176470588235294</real>
@bodinsamuel
bodinsamuel / gist:10117603
Created April 8, 2014 12:35
JS: Array of Color to Console
// When you have an array of color (in themes or whatever)
// You want to know whatit will display, but it's very boring to copy/paste in a color picker.
var color_array_to_console = function(array) {
console.log(array, 'There is ', array.length, ' colors');
for(var i = 0; i < array.length; i++)
console.log("%c███ " + array[i], "color: " + array[i] + ";");
};
color_array_to_console([
@bomberstudios
bomberstudios / sketch-plugins.md
Last active December 11, 2025 19:43
A list of Sketch plugins hosted at GitHub, in no particular order.
@jbenet
jbenet / simple-git-branching-model.md
Last active December 7, 2025 19:59
a simple git branching model

a simple git branching model (written in 2013)

This is a very simple git workflow. It (and variants) is in use by many people. I settled on it after using it very effectively at Athena. GitHub does something similar; Zach Holman mentioned it in this talk.

Update: Woah, thanks for all the attention. Didn't expect this simple rant to get popular.

@yckart
yckart / jquery.addrule.js
Last active December 29, 2022 12:16
Add css-rules to an existing stylesheet - http://stackoverflow.com/a/16507264/1250044
/*!
* jquery.addrule.js 0.0.2 - https://gist.github.com/yckart/5563717/
* Add css-rules to an existing stylesheet.
*
* @see http://stackoverflow.com/a/16507264/1250044
*
* Copyright (c) 2013 Yannick Albert (http://yckart.com)
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php).
* 2013/11/23
**/
@drublic
drublic / rem-fallback.less
Last active March 28, 2020 23:57
Fallback rem-mixin in Sass and LESS
@main-font-size: 16px;
.x-rem (@property, @value) {
// This is a workaround, inspired by https://github.com/borodean/less-properties
@px-fallback: @value * @main-font-size;
-: ~`(function () { return ';@{property}: @{px-fallback}'; }())`;
-: ~`(function () { return ';@{property}: @{value}rem'; }())`;
}