Skip to content

Instantly share code, notes, and snippets.

View sixertoy's full-sized avatar
🏠
Working as #digital #nomad

Matthieu sixertoy

🏠
Working as #digital #nomad
  • Available for React Jobs
  • Montpellier - France
View GitHub Profile
@sixertoy
sixertoy / add_git_submodule.md
Last active October 19, 2019 12:58 — forked from myusuf3/delete_git_submodule.md
GIT SubModules
  • git submodule add git@github.com:user/sub_module_name.git [sub_module_name]
@sixertoy
sixertoy / README.md
Created April 23, 2019 11:29 — forked from lopspower/README.md
Hexadecimal color code for transparency

Hexadecimal color code for transparency

Twitter

How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

All hex value from 100% to 0% alpha:

@sixertoy
sixertoy / xcode-build-bump.sh
Created August 30, 2017 04:26 — forked from sekati/xcode-build-bump.sh
Xcode Auto-increment Build & Version Numbers
# xcode-build-bump.sh
# @desc Auto-increment the build number every time the project is run.
# @usage
# 1. Select: your Target in Xcode
# 2. Select: Build Phases Tab
# 3. Select: Add Build Phase -> Add Run Script
# 4. Paste code below in to new "Run Script" section
# 5. Drag the "Run Script" below "Link Binaries With Libraries"
# 6. Insure that your starting build number is set to a whole integer and not a float (e.g. 1, not 1.0)
/* ===========================================================
* bootstrap-tooltip.js v2.2.2
* http://twitter.github.com/bootstrap/javascript.html#tooltips
* Inspired by the original jQuery.tipsy by Jason Frame
* ===========================================================
* Copyright 2012 Twitter, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at

Better local require() paths for Node.js

Problem

When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like:

var Article = require('../../../models/article');

Those suck for maintenance and they're ugly.

Possible solutions