- 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
Challengue solution repo : https://github.com/fabianuribe/lucky_ajax.git
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 |
/** | |
* 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 |
# Flatten an Array Recursively | |
# Imagine we have an array that potentially contains other arrays, e.g., | |
# ["bananas", [1,2,3], ["apple", "cheese", [100, 20]], [true], [4.0, 7, 32]] | |
# Write a recursive method flatten that takes as its input an array and returns a fully flattened array. | |
# | |
# For example, using the above array flatten should work thus: | |
# array = ["bananas", [1,2,3], ["apple", "cheese", [100, 20]], [true], [4.0, 7, 32]] |
/** | |
* 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'; | |
/** |
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", |