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
rm -rf ~/.atom | |
rm -rf /usr/local/bin/atom | |
rm -rf /usr/local/bin/apm | |
rm -rf /Applications/Atom.app | |
rm -rf ~/Library/Preferences/com.github.atom.plist | |
rm -rf ~/"Library/Application Support/com.github.atom.ShipIt" | |
rm -rf ~/"Library/Application Support/Atom" | |
rm -rf ~/"Library/Saved Application State/com.github.atom.savedState" | |
rm -rf ~/Library/Caches/com.github.atom | |
rm -rf ~/Library/Caches/com.github.atom.Shipit |
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
<script id="some-template" type="text/x-handlebars-template"> | |
<input value="{{name}}"> | |
</script> | |
<script> | |
// Inside view | |
const Hello = Backbone.View.extend({ | |
el: '#hello-container', | |
template: Handlebars.compile($('#input-template').html()), |
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
--- moving around --- | |
h j k l | |
2h 3j 4k 5l | |
0 ^ $ | |
w b e, W B E | |
fx Fx | |
tx Tx | |
G 3G |
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 if (isset($_POST['checkbox1'])) : ?> | |
<p style="color: #ffa500">Checked!</p> | |
<?php endif; ?> | |
<form action="demo.php" method="post"> | |
<input type="checkbox" id="checkbox1" name="checkbox1" <?php if (isset($_POST['checkbox1'])) : ?> checked<?php endif; ?>> | |
<label for="checkbox1" >Check Me! I'm medium.</label> | |
<br><br> | |
<input type="submit"> | |
</form> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>alt-checkbox demo</title> | |
<!-- Include jQuery library to the head section --> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script> | |
<!-- @import the desired icon font in the alt-checkbox-icon-font.css and | |
include this css file in the head section, Font Awesome is used by default --> |
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
<input type="checkbox" id="checkbox3"> | |
<label for="checkbox3">Check Me! I'm big.</label> | |
<script> | |
jQuery("#checkbox3").altCheckbox({ | |
iconClass: "fontawesome-remove", | |
sizeClass: "big" | |
}); | |
</script> |
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
<input type="checkbox" id="checkbox2"> | |
<label for="checkbox2">Check Me! I'm medium.</label> | |
<script> | |
jQuery("#checkbox2").altCheckbox({ | |
// Some options can be placed here. | |
// Don't pass any options to use defaults. | |
}); | |
</script> |
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
<input type="checkbox" id="checkbox1"> | |
<label for="checkbox1">Check Me! I'm small.</label> | |
<script> | |
jQuery("#checkbox1").altCheckbox({ | |
outlineUnchecked: false, | |
sizeClass: "small" | |
}); | |
</script> |
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
sudo launchctl load -w /System/Library/LaunchDaemons/org.apache.httpd.plist | |
(the -w makes it permanent, i.e. it'll be reloaded when you reboot) | |
(How do you turn this off once it's started this way?) | |
sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist | |
--- home, end, page up, page down --- | |
Fn + left | |
Fn + right |
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
--- basic moves --- | |
ctrl+b (move back one character) | |
ctrl+f (move forward one character) | |
ctrl+d (delete current character) | |
backspace/mac delele (delete previous character) | |
ctrl+- (undo) | |
--- moving faster --- |
NewerOlder