Skip to content

Instantly share code, notes, and snippets.

@paulkmiller
paulkmiller / ExmFh.markdown
Created August 29, 2014 14:59
A Pen by Paul Miller.
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);
});
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
## 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.
// 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.
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
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
@paulkmiller
paulkmiller / Stripes.svg
Last active August 31, 2020 20:15
Stripes svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.