This file contains hidden or 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
// Requirements: | |
// There are two types of pages on my project and they can only bee seen if the user is logged in. | |
// Some pages requires the user to have site.docs permissions and the other require the user to | |
// have site.staff permissions in order to see the pages. | |
// I expect the same behavior on my menu and I would like the menu items (links to the pages) | |
// to be visible only if the user has the proper permissions. | |
// The following code is showing all menu links to the users with side.docs permissions. |
This file contains hidden or 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
# update your local master branch | |
git checkout master | |
git pull --rebase | |
# never do any work on master branch | |
# create & switch to new branch instead | |
git checkout -b my_branch | |
# rebase 'my_branch' onto master | |
git checkout my_branch |
This file contains hidden or 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
http://localhost/apiservices/v1/launch/onboard?p=2W35N0x3mQq3NCLCx4ccMe6fCyRI2t36wmaa7BN9lrx4zOpR7adeKvj53N1MOopE |
This file contains hidden or 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
#!/bin/bash | |
##################################################### | |
# Name: Bash CheatSheet for Mac OSX | |
# | |
# A little overlook of the Bash basics | |
# | |
# Usage: | |
# | |
# Author: J. Le Coupanec | |
# Date: 2014/11/04 |
This file contains hidden or 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
#PS1="$(tput setaf 166)\t - $(tput setaf 166)\u$(tput setaf 228)@\h $(tput setaf 71)\W -> $(tput sgr0)"; | |
orange=$(tput setaf 166); | |
yellow=$(tput setaf 228); | |
green=$(tput setaf 71); | |
white=$(tput setaf 15); | |
bold=$(tput bold); | |
reset=$(tput sgr0); | |
COLOR_RED="\033[0;31m" | |
COLOR_YELLOW="\033[0;33m" |
This file contains hidden or 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
export PATH=/usr/local/bin:$PATH | |
if [ -f ~/.bashrc ]; then | |
source ~/.bashrc | |
fi |
This file contains hidden or 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
http://10.34.68.180/apiservices/v1/launch/clientportal?p=V1icfOdRwNnoXHgxzji0%2FfMe92xzEsPuSUJKZYJMp%2BKA5qtcl7mj%2B8lOCEhbTMoA |
This file contains hidden or 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
{"chart":{"type":"spline","events":{},"marginRight":80},"yAxis":{"gridLineWidth":1,"labels":{"format":"{value}","align":"left"},"startOnTick":false,"showLastLabel":true,"showFirstLabel":true,"endOnTick":false,"maxPadding":0.2},"xAxis":{"labels":{"y":20,"style":{"color":"black"}},"tickLength":0,"events":{}},"legend":{"enabled":false},"navigator":{"enabled":true,"margin":5,"maskFill":"rgba(92, 191, 145, 0.23)","series":{},"xAxis":{"labels":{"style":{"color":"black"}}}},"tooltip":{"shared":true,"useHTML":true,"valueSuffix":"","shape":"callout","crosshairs":false},"scrollbar":{"enabled":true,"trackBackgroundColor":"rgb(238, 238, 238)"},"rangeSelector":{"enabled":false,"allButtonsEnabled":true,"buttonTheme":{"fill":"none","stroke":"none","r":2,"style":{"color":"black","fontWeight":"normal","fontSize":"1.1rem"},"states":{"hover":{"fill":"grey","style":{"color":"white"}},"select":{"fill":"black","style":{"color":"white"}}}},"inputBoxBorderColor":"white","inputBoxWidth":80,"inputBoxHeight":18,"inputPosition":{"x":0}, |
This file contains hidden or 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
{"chart":{"type":"spline","events":{},"marginRight":80},"yAxis":{"gridLineWidth":1,"labels":{"format":"{value}","align":"left"},"startOnTick":false,"showLastLabel":true,"showFirstLabel":true,"endOnTick":false,"maxPadding":0.2},"xAxis":{"labels":{"y":20,"style":{"color":"black"}},"tickLength":0,"events":{}},"legend":{"enabled":false},"navigator":{"enabled":true,"margin":5,"maskFill":"rgba(92, 191, 145, 0.23)","series":{},"xAxis":{"labels":{"style":{"color":"black"}}}},"tooltip":{"shared":true,"useHTML":true,"valueSuffix":"","shape":"callout","crosshairs":false},"scrollbar":{"enabled":true,"trackBackgroundColor":"rgb(238, 238, 238)"},"rangeSelector":{"enabled":false,"allButtonsEnabled":true,"buttonTheme":{"fill":"none","stroke":"none","r":2,"style":{"color":"black","fontWeight":"normal","fontSize":"1.1rem"},"states":{"hover":{"fill":"grey","style":{"color":"white"}},"select":{"fill":"black","style":{"color":"white"}}}},"inputBoxBorderColor":"white","inputBoxWidth":80,"inputBoxHeight":18,"inputPosition":{"x":0}, |
This file contains hidden or 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
Sample of hightlight poping up actions | |
https://medium.com/react-tutorials/react-backbone-router-c00be0cf1592#.yqslhyz76 |