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
<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="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
<!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
<?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
--- 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
--- cwd Projects/long-dialog --- | |
:CtrlP | |
:CtrlP site | |
-- when CtrlP is open --- | |
F5 - cache | |
c-f - forward | |
c-b - back | |
c-d - path/file |
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
--- text --- | |
(many of these commands may be combined with ⇧ Shift to select a region of text) | |
Cmd + right, Cmd + left (end and beginning of line) | |
Opt + right, Opt + left (end and beginning of word) | |
Cmd + up, Cmd + down (beginning and end of document) |
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
brew update; # update packages' info | |
brew upgrade; # upgrade outdated packages | |
brew install <some_package>; # install package which you want | |
brew install vim | |
brew install mysql | |
brew doctor | |
brew search vim |
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
--- ls --- | |
ls -dl */ (list only directories) | |
ls -l | grep "^d" | |
--- copy --- | |
rsync options source destination (http://cloudtips.org/rsync.html) | |
rsync -zvr /tmp/helloworld/ /root/message |
OlderNewer