defaults write com.apple.screencapture location /Users/sparkuser/Pictures/Screenshots
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
const getSelectedOptions = facet => { | |
const options = get( | |
facet, | |
'searchFacetOptionGroupList.searchFacetOptionList' | |
); | |
const isActiveAndSelected = option => | |
option.isActive === 'true' && option.isSelected === 'true'; | |
return filter(options, isActiveAndSelected); | |
}; |
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
// transformStyle :: Object -> Object | |
const transformStyle = facet => { | |
result.facetSelected.style = []; | |
facetOptions.style = facet; | |
facetOptions.style.searchFacetName = 'Category'; | |
facetOptions.style.facetType = 'multi-select'; | |
facetOptions.style.facetLayout = 'list'; |
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
.checkbox { | |
@extend .sds_checkbox-a; | |
&__input { | |
@extend .sds_checkbox-a__input; | |
} | |
&__box { | |
@extend .sds_checkbox-a__box; | |
} |
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 getIndex(i) { | |
return Math.floor(i / 3); | |
} | |
function fillArray(len, item) { | |
return new Array(len).fill(item); | |
} | |
function isValid(totals) { | |
const result = Object.values(totals).every(total => { |
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
git --no-pager log > log.txt |
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
<head> | |
<meta charset="utf-8"> | |
<title>GitHub Pull Requests for Everyone</title> | |
<meta name="description" content="Writing good pull requests makes everyones life easier. Catherine shares how to set up successful code reviews with good pull requests."> | |
<meta property="og:title" content="GitHub Pull Requests for Everyone" /> | |
<meta property="og:description" content="Writing good pull requests makes everyone&apos;s everyone's life easier. Catherine shares how to set up successful code reviews with good pull requests." /> | |
</head> |
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
# | |
# Main prompt | |
# | |
# local host_name="%{$fg[cyan]%}λ" | |
local path_string="%{$fg[white]%}%1~" | |
local prompt_string="λ" | |
# Make prompt_string red if the previous command failed. |
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
const b = Buffer.from('hello, world'); | |
console.log(b); | |
// <Buffer 68 65 6c 6c 6f 2c 20 77 6f 72 6c 64> | |
const s = b.toString('base64'); | |
console.log(s); | |
// aGVsbG8sIHdvcmxk | |
console.log(b.toString()); | |
// hello, world |
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
module.exports = { | |
friendlyName: 'Upload image', | |
description: 'Upload an image to AWS S3.', | |
inputs: { | |
req: { | |
type: 'ref', | |
example: 'req', | |
description: 'request object', |