A Pen by Paul Miller on CodePen.
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
var scrollLoad = true; | |
$(window).scroll(function () { | |
if (scrollLoad && $(window).scrollTop() >= $(document).height() - $(window).height() - 300) { | |
scrollLoad = false; | |
//Add something at the end of the page | |
alert("triggered"); | |
$.get('/honorees/json_test.php', function(data) { | |
console.log(data); | |
}); |
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
file_path = ARGV[0] || "test.txt" | |
file = File.open(file_path, "r") | |
line_count = File.foreach(file_path).inject(0) {|c, line| c+1} | |
words_count = [] | |
lines = File.readlines(ARGV[0] || "test.txt") | |
text = lines.join |
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
## First ugly iteration | |
file_path = ARGV[0] || "test.txt" | |
file = File.open(file_path, "r") | |
line_count = File.foreach(file_path).inject(0) {|c, line| c+1} | |
words_count = [] | |
lines = File.readlines(ARGV[0] || "test.txt") | |
text = lines.join |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
// TODO: Holy fuck so many selectors, send help and towels | |
$(document).on('click', '.listings li .info', function(e) { | |
$listings = $('.listings'); | |
$listingsCard = $('.listings li.top'); | |
$table = $('table'); | |
$footer = $('footer'); | |
// condition ? value-if-true : value-if-fale | |
// if ($('.viewport .listings').has('.listings-full')) { keep '.expanded' from being removed } else { keep keeping '.expanded' from being removed } |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
0 0 Fallout4.esm | |
1 1 DLCRobot.esm | |
2 2 DLCworkshop01.esm | |
3 3 DLCCoast.esm | |
4 4 DLCworkshop02.esm | |
5 5 DLCworkshop03.esm | |
6 6 DLCNukaWorld.esm | |
7 7 Unofficial Fallout 4 Patch.esp | |
8 8 ArmorKeywords.esm | |
9 9 TrueStormsFO4.esm |
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
0 0 Fallout4.esm | |
1 1 DLCRobot.esm | |
2 2 DLCworkshop01.esm | |
3 3 DLCCoast.esm | |
4 4 DLCworkshop02.esm | |
5 5 DLCworkshop03.esm | |
6 6 DLCNukaWorld.esm | |
7 7 Unofficial Fallout 4 Patch.esp | |
8 8 ArmorKeywords.esm | |
9 9 TrueStormsFO4.esm |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
OlderNewer