- Download this application skeleton.
- Convert the app to use AJAX.
- Add any files you changed to your gist and submit your code.
Challengue solution repo : https://github.com/fabianuribe/lucky_ajax.git
require 'nokogiri' | |
doc = Nokogiri::HTML(File.open('post.html')) | |
def extract_usernames(doc) | |
doc.search('.comhead > a:first-child').map do |element| | |
p element.inner_text | |
end |
Challengue solution repo : https://github.com/fabianuribe/lucky_ajax.git
/** | |
* linked-list.js | |
* A module that implements a Doubly Linked List data Structure | |
* @module LinkedList | |
*/ | |
module.exports = LinkedList; | |
/** | |
* Represents a Linked List Node. | |
* @param {Object} data |
/** | |
* heap.js | |
* A module that implements a Doubly Linked List data Structure | |
* @module LinkedList | |
*/ | |
module.exports = Heap; | |
var TYPE_MIN = 'min'; | |
var TYPE_MAX = 'max'; | |
/** |
execute pathogen#infect() | |
" don't bother with vi compatibility | |
set nocompatible | |
" enable syntax highlighting | |
syntax enable | |
" configure Vundle | |
filetype on " without this vim emits a zero exit status, later, because of :ft off | |
filetype off |
MIT License | |
Copyright (c) Meta Platforms, Inc. and affiliates. | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
const fetchHeaders = { | |
accept: "*/*", | |
"accept-language": "en-US,en;q=0.9", | |
authorization: | |
"Bearer AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA", // This will expire, you can get a new one by inspecting the network requests on twitter.com | |
"cache-control": "no-cache", | |
pragma: "no-cache", | |
"sec-ch-ua": | |
'"Google Chrome";v="107", "Chromium";v="107", "Not=A?Brand";v="24"', | |
"sec-ch-ua-mobile": "?0", |