sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
- Download zsh-autosuggestions by
#dart:core example
How to get a timestamp in Dart.
Main library: dart:core
Main element: DateTime.now
Gist: https://gist.github.com/kasperpeulen/c54b5925019b62843ef9
DartPad: https://dartpad.dartlang.org/c54b5925019b62843ef9
Tags: #datetime #timestamp
#!/bin/bash | |
DIR_PATH=$1 | |
if [ ! -d "$DIR_PATH" ]; then | |
echo "Directory '$DIR_PATH' not exists" | |
exit 1 | |
fi | |
if [ -z "$GIT_COMMIT" ]; then | |
echo "No current commit... fail" |
Instructions are modified from emacs-w64 Wiki page by zklhp. Many thanks for sharing!
Download the latest MSYS2 from this download page.
Install MSYS2 to, for example, C:\msys2
(make sure no space in path to avoid unwanted problems).
Optionally prettify the MSYS2 console mintty
with ~/.minttyrc
to make it more pleasing to eyes. Thanks to this awesome theme!
Sometimes you want to have a subdirectory on the master
branch be the root directory of a repository’s gh-pages
branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master
branch alongside the rest of your code.
For the sake of this example, let’s pretend the subfolder containing your site is named dist
.
Remove the dist
directory from the project’s .gitignore
file (it’s ignored by default by Yeoman).
var myConfObj = { | |
iframeMouseOver : false | |
} | |
window.addEventListener('blur',function(){ | |
if(myConfObj.iframeMouseOver){ | |
console.log('Wow! Iframe Click!'); | |
} | |
}); | |
document.getElementById('YOUR_CONTAINER_ID').addEventListener('mouseover',function(){ |
main() { | |
List<String> list = new List<String>(); | |
list.add('one'); | |
list.add('two'); | |
list.add('twelve'); | |
list.forEach((element) => print(element)); | |
Set<String> set = Set.from(list); | |
set.forEach((element) => print(element)); | |
} |
# First install tmux | |
brew install tmux | |
# For mouse support (for switching panes and windows) | |
# Only needed if you are using Terminal.app (iTerm has mouse support) | |
Install http://www.culater.net/software/SIMBL/SIMBL.php | |
Then install https://bitheap.org/mouseterm/ | |
# More on mouse support http://floriancrouzat.net/2010/07/run-tmux-with-mouse-support-in-mac-os-x-terminal-app/ |