- Navigate to a symbol in a file - ⌘O (add ":" to group by type)
- Navigate to a symbol in a project - ⌘T (#)
- Select line - ⌘I
- Zen Mode - ⌘K+Z
- Hide sidebar - ⌘B
- Open markdown preview - ⌘K+V
- Go to source file - ⌘ Click
- Toggle terminal - ⌃`
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
/** | |
* Will check if an iframe is ready for DOM manipulation. Just listening for the | |
* load event will only work if the iframe is not already loaded. If so, it is | |
* necessary to observe the readyState. The issue here is that Chrome initialises | |
* iframes with "about:blank" and sets their readyState to complete. So it is | |
* also necessary to check if it's the readyState of the correct target document. | |
* | |
* Some hints taken and adapted from: | |
* https://stackoverflow.com/questions/17158932/how-to-detect-when-an-iframe-has-already-been-loaded/36155560 | |
* |
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
# On a Mac: /Users/<username>/.oh-my-zsh/custom/themes | |
local ret_status="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ )" | |
local emojis=("👋" "🤡" "🦄" "🤙" "🐼" "😊" "🔥" "⚡" "😎" "🌎") | |
local selectedEmoji=${emojis[$[1+($RANDOM%${#emojis[@]})]]} | |
local today=$(date +%m.%d) | |
# local ipCountry=`curl -s ip-api.com/json | python -c "import sys, json; print json.load(sys.stdin)['country']"` | |
# local country=$emoji_flags[${ipCountry}] | |
# } | |
case $today in | |
"01.01") |
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 util = require('util'); | |
const result = title => err => { | |
if (err instanceof Error) { | |
console.log(`✖ ${title}`); | |
console.error(err.actual || err); | |
} else { | |
console.log(`✔ ${title}`); | |
} | |
}; |
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
import { useState, useEffect } from 'react' | |
// wordList is expected to be an array | |
const TypeText = ({ wordList }) => { | |
const words = wordList | |
const [text, setText] = useState(null) | |
let wordIndex = 0 | |
let typingIndex = 0 | |
let timer |
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 addContext = (report, screenshots, videoUrl) => { | |
const getTests = t => t.tests | |
const getSuites = t => t.suites | |
const addSuiteContext = (suite, previousTitles = []) => { | |
const titles = suite.title ? previousTitles.concat(suite.title) : previousTitles | |
getTests(suite).forEach(test => { | |
test.timedOut = false // for some reason this is dropped | |
const context = [ | |
{ |
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
<?php | |
## Generate a Github user token at https://github.com/settings/tokens | |
$githubToken = 'EnterYourGithubTokenHere'; | |
## Your organization name (from https://github.com/yourOrganizationName) | |
$organization = 'yourOrganizationName'; | |
## Enter the name of the remote file you want to place | |
$remoteFile = "pull_request_template.md"; |
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 is a blocklist to block samsung smart tv's sending meta data at home. | |
# Please help to collect domains! | |
# It could be that the TV does not receive any more updates or other services no longer work. Please report such an incident. | |
abtauthprd.samsungcloudsolution.com | |
acr0.samsungcloudsolution.com | |
ad.samsungadhub.com | |
ads.samsungads.com | |
amauthprd.samsungcloudsolution.com | |
api-hub.samsungyosemite.com |
Using a user style sheet extension, this CSS should give you enough targetting to put the README above the files, putting the important information in the right place.
I use uptight, by the late Chloe Weil, you can use what you want.