@kangax created a new interesting quiz, this time devoted to ES6 (aka ES2015). I found this quiz very interesting and quite hard (made myself 3 mistakes on first pass).
Here we go with the explanations:
(function(x, f = () => x) {
@kangax created a new interesting quiz, this time devoted to ES6 (aka ES2015). I found this quiz very interesting and quite hard (made myself 3 mistakes on first pass).
Here we go with the explanations:
(function(x, f = () => x) {
Effective September 2021, Dropbox will be deprecating long-lived access tokens.
This GIST generally describes how to authenticate requests to Dropbox API v2, for anyone working on a server-side PHP Dropbox implementation.
It's important to understand three types of codes you'll encounter:
For faster connection speed and more flexibility.
/Applications/Xcode.app/Contents/MacOS/Xcode
alert(1); |
describe("sum", function() { | |
it("функция", function() { | |
assert.isOk(typeof sum === "function"); | |
}); | |
it("по-умолчанию инициализируется нулем", function() { | |
assert.isOk(+sum() === 0); | |
}); | |
it("инициализируется числом", function() { | |
assert.isOk(+sum(5) === 5); | |
}); |
BEGIN TRANSACTION; | |
CREATE TABLE IF NOT EXISTS "posts_tags" ( | |
"post_id" INTEGER, | |
"tag_id" INTEGER, | |
FOREIGN KEY("post_id") REFERENCES "posts"("id"), | |
FOREIGN KEY("tag_id") REFERENCES "tags"("id") | |
); | |
CREATE TABLE IF NOT EXISTS "posts" ( | |
"id" INTEGER NOT NULL, | |
"title" VARCHAR(100), |
/** | |
* It takes commit message and append a branch name below | |
*/ | |
const fs = require('fs'); | |
const childProcess = require('child_process'); | |
const commitMessageFile = process.argv[2]; | |
/** |
describe("EventRecommender", () => { | |
const EventRecommender = require('../app/EventRecommender'); | |
let er; | |
beforeEach(() => { | |
er = new EventRecommender(); | |
}); | |
describe("addEvent", () => { | |
it("adds a new Event to the system", () => { |