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
$(".search-field input").keyup(function(){ | |
_this = this; | |
// Show or hide items | |
$.each($(".contacts-list ul").find("li"), function() { | |
console.log($(this).text()); | |
if($(this).text().toLowerCase().indexOf($(_this).val().toLowerCase()) == -1) | |
$(this).hide(); | |
else | |
$(this).show(); |
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
$ rails generate refills:list | |
$ rails generate refills:import SNIPPET |
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
defaults write com.apple.finder AppleShowAllFiles YES | |
defaults write com.apple.finder AppleShowAllFiles NO |
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
/** | |
* centering with absolute position | |
*/ | |
div { | |
width: 100px; | |
height: 100px; | |
background-color: red; | |
position: absolute; |
NewerOlder