Note: Unix-like systems only.
- Export your extensions to a shell file:
code --list-extensions | sed -e 's/^/code --install-extension /' > my_vscode_extensions.sh
Note: Unix-like systems only.
code --list-extensions | sed -e 's/^/code --install-extension /' > my_vscode_extensions.sh
Question Code:FEDEX
Write a Python script which will scrape the FEDEX website to obtain the tracking details of the given shipment tracking details. The output by the script should be in JSON format.
Input: 744668909687
Expected Output:
{ "tracking no": 744668909687,
"ship date": "Wed 19/07/2017",
"status": "delivered",
"scheduled delivery": "Mon 24/07/2017 16:21"
/** | |
* Test function for onEdit. Passes an event object to simulate an edit to | |
* a cell in a spreadsheet. | |
* | |
* Check for updates: http://stackoverflow.com/a/16089067/1677912 | |
* | |
* See https://developers.google.com/apps-script/guides/triggers/events#google_sheets_events | |
* | |
* on Script editor, set to debug THIS function, but create breakpoints | |
* on the onEdit Function |
/** | |
* Retrieves all the rows in the active spreadsheet that contain data and logs the | |
* values for each row. | |
* For more information on using the Spreadsheet API, see | |
* https://developers.google.com/apps-script/service_spreadsheet | |
*/ | |
function readRows() { | |
var sheet = SpreadsheetApp.getActiveSheet(); | |
var rows = sheet.getDataRange(); | |
var numRows = rows.getNumRows(); |
<?php // Namespace DB; | |
use Illuminate\Database\Capsule\Manager as Capsule; | |
class Connection { | |
public function __construct() | |
{ | |
$this->capsule = new Capsule; | |
// Same as database configuration file of Laravel. |
CC = gcc | |
CLIBS = `pkg-config libxml-2.0 --cflags --libs` | |
retrieve_attribute_value: retrieve_attribute_value_example.c | |
$(CC) retrieve_attribute_value_example.c -o retrieve_attribute_value_example.bin $(CLIBS) | |
clean: | |
rm -f *.o *.bin |
{# | |
Source: http://dev.dbl-a.com/symfony-2-0/symfony2-and-twig-pagination/ | |
Updated by: Simon Schick <simonsimcity@gmail.com> | |
Parameters: | |
* currentFilters (array) : associative array that contains the current route-arguments | |
* currentPage (int) : the current page you are in | |
* paginationPath (string) : the route name to use for links | |
* showAlwaysFirstAndLast (bool) : Always show first and last link (just disabled) | |
* lastPage (int) : represents the total number of existing pages |
/* | |
== malihu jquery custom scrollbars plugin == | |
version: 2.3.2 | |
author: malihu (http://manos.malihu.gr) | |
plugin home: http://manos.malihu.gr/jquery-custom-content-scroller |
/* | |
For some reason, the change() event only fires when the input field loses focus. | |
Binding to other options ('change keypress paste focus textInput input') will | |
fire the event several times, which is bad. The below code works even when | |
content is pasted into the text field, and only fires once as expected. | |
*/ | |
$('#search-form .term').bind('input', function(){ | |
console.log('this actually works'); | |
}); |