Skip to content

Instantly share code, notes, and snippets.

@kaseopea
kaseopea / es6_templatestrings_raw.js
Last active Nov 9, 2018
ES6 Katas template strings - String.raw
View es6_templatestrings_raw.js
// 4: template strings - String.raw
// To do: make all tests pass, leave the asserts unchanged!
// Follow the hints of the failure messages!
describe('Use the `raw` property of tagged template strings like so `s.raw`', function() {
it('the `raw` property accesses the string as it was entered', function() {
function firstChar(strings) {
return strings.raw;
}
assert.equal(firstChar`\n`, '\\n');
@kaseopea
kaseopea / gist:2af805fca4ced874d4f205d6ed05ea4c
Created Jul 13, 2018
command is a convenient way to modify the most recent commit
View gist:2af805fca4ced874d4f205d6ed05ea4c
git commit --amend -m "New commit message" // change latest commit message
@kaseopea
kaseopea / gist:ea7f28c23d7ce43f4b276add1e66249b
Created Jul 13, 2018
how to delete a git tag locally and remote
View gist:ea7f28c23d7ce43f4b276add1e66249b
# delete local tag '12345'
git tag -d 12345
# delete remote tag '12345' (eg, GitHub version too)
git push origin :refs/tags/12345
# alternative approach
git push --delete origin tagName
git tag -d tagName
View gist:e16f3590f53825bd799ed83eb57b7a8b
Editor | General | Appearance > Show parameter name hints
You can’t perform that action at this time.