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
if [ -z $1 ] | |
then | |
echo 'What is your name?' | |
read name | |
output=$name | |
else | |
output=$1 | |
fi | |
cowsay $output | lolcat |
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
atom.commands.dispatch(atom.views.getView(atom.workspace), 'voicecode:connect') | |
# enables "shift-space" to move through closing matched brackets | |
SymbolRegex = /\s*[(){}<>[\]/'"]/ | |
atom.commands.add 'atom-text-editor', 'custom:jump-over-symbol': (event) -> | |
editor = atom.workspace.getActiveTextEditor() | |
cursorMoved = false | |
for cursor in editor.getCursors() | |
range = cursor.getCurrentWordBufferRange(wordRegex: SymbolRegex) | |
unless range.isEmpty() |
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
'atom-text-editor': | |
'cmd-c': 'editor:copy-selection' | |
'atom-text-editor:not([mini])': | |
'shift-space': 'custom:jump-over-symbol' | |
# emmet and language-babel package setting | |
'atom-text-editor[data-grammar~="jsx"]:not([mini])': | |
'tab': 'emmet:expand-abbreviation-with-tab' | |
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
// 50% success rate for each task | |
function unstableTask() { | |
return new Promise((resolve, reject) => { | |
setTimeout(() => { | |
if (Math.random() < 0.5) { | |
resolve('task succeeded!'); | |
} else { | |
reject('task 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
// change the color of the file line numbers | |
atom-text-editor.editor .line-number { | |
color: rgb(50, 255, 50); | |
} | |
// lighten up the color of the selected file | |
.list-group .selected::before, | |
.list-tree .selected::before { | |
background-color: #555; |
NewerOlder