Skip to content

Instantly share code, notes, and snippets.

Paul Miller paulkmiller

Block or report user

Report or block paulkmiller

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Fallout 4 Load Order
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
View Load Order
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
View walk.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View SELECTOR SOUP FOR YOU
// 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 }
View layoutDemo.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View wat
## 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
View Iterations
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
View Scroll in DIV Detection
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);
});
You can’t perform that action at this time.