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
To remove a program in the i3 dmenu just pipe the result from dmenu_path in the /usr/bin/dmenu_run | |
dmenu_path | awk '!/zsh/' | ....... | |
would remove zsh. |
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
componentWillReceiveProps(nextProps) { | |
if (nextProps.lastRequestedUserLocationAt > this.props.lastRequestedUserLocationAt) { | |
this.centerMapToUser(nextProps.currentLocation); | |
} | |
if (nextProps.lastUpdated > this.props.lastUpdated) { | |
const markers = this.createMarkersForLocations(nextProps); | |
if (markers && Object.keys(markers)) { | |
const clusters = {}; |
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
// this guards against console usage in production builds since | |
// babel transform of remove console won't work with react-native preset | |
if (!__DEV__) { | |
['assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error', 'exception', | |
'group', 'groupCollapsed', 'groupEnd', 'info', 'log', 'profile', 'profileEnd', | |
'table', 'time', 'timeEnd', 'timeStamp', 'trace', 'warn'].forEach( | |
(methodName) => { | |
console[methodName] = () => { /* noop */ }; | |
}); | |
} |
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
(function() { | |
var p; | |
// https://developers.google.com/doubleclick-gpt/reference | |
var noopfn = function() {; | |
}.bind(); | |
var noopthisfn = function() { | |
return this; | |
}; | |
var noopnullfn = function() { | |
return null; |
OlderNewer