git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
/* | |
* Copyright (c) 2010 Tobias Schneider | |
* This script is freely distributable under the terms of the MIT license. | |
*/ | |
(function(){ | |
var UPC_SET = { | |
"3211": '0', | |
"2221": '1', | |
"2122": '2', |
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
license: gpl-3.0 | |
redirect: https://observablehq.com/@d3/selection-join |
import Foundation | |
let config = NSURLSessionConfiguration.defaultSessionConfiguration() | |
let userPasswordString = "[email protected]:password" | |
let userPasswordData = userPasswordString.dataUsingEncoding(NSUTF8StringEncoding) | |
let base64EncodedCredential = userPasswordData!.base64EncodedStringWithOptions(nil) | |
let authString = "Basic \(base64EncodedCredential)" | |
config.HTTPAdditionalHeaders = ["Authorization" : authString] | |
let session = NSURLSession(configuration: config) |
Many users when are given server access, do not have root (or sudo) privileges and can not simply do
sudo apt-get install python-pip
.
Here's an easy way you can install and use pip without root (or sudo) access in a local directory.
Note : This works without easy_install
too.
from __future__ import print_function | |
import requests | |
import json | |
import cv2 | |
addr = 'http://localhost:5000' | |
test_url = addr + '/api/test' | |
# prepare headers for http request | |
content_type = 'image/jpeg' |
describe('App', () => { | |
test('Drag&Drop capability', async () => { | |
await page.waitForSelector('.js-from') | |
await page.evaluate(() => { | |
window.simulateDrag() | |
window.simulateDrop() | |
}) | |
expect(await page.evaluate(el => el.innerText, await page.$('.js-to'))) |
The goal of Node was event driven HTTP servers. | |
5:04 https://youtu.be/M3BM9TB-8yA?t=304 | |
1 Regret: Not sticking with Promises. | |
* I added promises to Node in June 2009 but foolishly removed them in February 2010. | |
* Promises are the necessary abstraction for async/await. | |
* It's possible unified usage of promises in Node would have sped the delivery of the eventual standartization and async/await. | |
* Today Node's many async APIs are aging baldly due to this. | |
6:02 https://youtu.be/M3BM9TB-8yA?t=362 |