- Better link between Invision and Github
- Click on translations to see their definition
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
.scaffold_last_fetch_date | |
.scaffold_last_project_path |
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 __git_is_repository() { | |
git -C "$1" rev-parse --is-inside-work-tree &> /dev/null | |
} | |
function __git_get_remote_url() { | |
local remote_name remote_url repository_path | |
remote_name=$([ -n "$1" ] && echo "$1" || echo origin) | |
repository_path="$2" | |
if [ -n "$repository_path" ]; then | |
remote_url="$(git -C "$repository_path" config --get remote."${remote_name}".url)" |
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
autoload bashcompinit | |
bashcompinit | |
function __find_closest_npm_package { | |
if [ -f 'package.json' ]; then | |
echo 'package.json' | |
return | |
fi | |
current_relative_path='' | |
while [ ! -f "package.json" ]; do |
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
autoload bashcompinit | |
bashcompinit | |
$REPOSITORIES_DIRECTORY='~/repos' | |
function re() { | |
[ -z "$1" ] && echo "$REPOSITORIES_DIRECTORY" || echo "$REPOSITORIES_DIRECTORY/$1" | |
} | |
function r() { |
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
class Search extends React.Component { | |
render() { | |
return <input onChange={this.handleChange} />; | |
} | |
handleChange({target: {value}}) { | |
this.doSearch(value); | |
} | |
@memoize |
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
class Search extends React.Component { | |
render() { | |
return <input onChange={this.handleChange} />; | |
} | |
handleChange({target: {value}}) { | |
this.doSearch(value); | |
} | |
@debounce(200) |
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 bind(classContex) { | |
return method.bind(classContex); | |
} |
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 debounce(method, timing) { | |
let canExecute = true; | |
return (...args) => { | |
if (!canExecute) { | |
return; | |
} | |
method(...args); | |
canExecute = false; | |
setTimeout(() => { | |
canExecute = true; |
NewerOlder