@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) {| import { useState, useEffect } from 'react' | |
| import Web3 from 'web3' | |
| const [account, setAccount] = useState(null) | |
| let [web3, setWeb3] = useState(null) | |
| useEffect(() => { | |
| checkAccount() | |
| }, []) | |
| // invoke to connect to wallet account |
| convert("one hundred five"); // "105" | |
| convert("six hundred and fifty three"); // "653" | |
| convert("zero zero one two three"); // "123" | |
| convert("twelve o three"); // "1203" | |
| convert("thirteen zero nine"); // "1309" | |
| convert("fifteen sixteen"); // "1516" | |
| convert("fourteen ninety two"); // "1492" | |
| convert("nineteen ten"); // "1910" | |
| convert("twelve hundred"); // "1200" | |
| convert("twenty three hundred"); // "2300" |
| wget "https://link.springer.com/content/pdf/10.1007/978-1-4842-4932-1" -O "Programming Persistent Memory.pdf" | |
| wget "https://link.springer.com/content/pdf/10.1007/978-981-15-2429-5" -O "Forensic Genetics in the Governance of Crime.pdf" | |
| wget "https://link.springer.com/content/pdf/10.1007/978-981-13-8437-0" -O "Autistic Community and the Neurodiversity Movement.pdf" | |
| wget "https://link.springer.com/content/pdf/10.1007/978-981-13-8491-2" -O "Updates on Myopia.pdf" | |
| wget "https://link.springer.com/content/pdf/10.1007/978-3-030-41882-3" -O "Audacious Education Purposes.pdf" | |
| wget "https://link.springer.com/content/pdf/10.1007/978-3-030-29509-7" -O "The Future of Software Quality Assurance.pdf" | |
| wget "https://link.springer.com/content/pdf/10.1007/978-981-15-0749-6" -O "Understanding China’s School Leadership.pdf" | |
| wget "https://link.springer.com/content/pdf/10.1007/978-981-15-3053-1" -O "Educational Change Amongst English Language College Teachers in China.pdf" | |
| wget "https://link.springer.com/content/pdf/10.1007/978-3-03 |
| // | |
| // ViewController.swift | |
| // UICTabbar | |
| // | |
| // Created by Coder ACJHP on 2.04.2019. | |
| // Copyright © 2019 Onur Işık. All rights reserved. | |
| // | |
| import UIKit |
| let buffer = getWebSocket() | |
| .bufferTime(1000); | |
| let gate = new BehaviorSubject(true); | |
| let batchSize = 50; | |
| let batchSizeCounter = 0; | |
| let results = gate | |
| .switchMap(enabled => enabled ? buffer : Observable.never()) | |
| .do(buffer => { |
| ##### Windows | |
| # Windows thumbnail cache files | |
| Thumbs.db | |
| Thumbs.db:encryptable | |
| ehthumbs.db | |
| ehthumbs_vista.db | |
| # Dump file | |
| *.stackdump |
| package com.jitosoft.imageloadapp.util; | |
| import android.content.ContentUris; | |
| import android.content.Context; | |
| import android.database.Cursor; | |
| import android.graphics.Bitmap; | |
| import android.net.Uri; | |
| import android.os.Build; | |
| import android.os.Environment; | |
| import android.provider.DocumentsContract; |
@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) {| import android.content.Context; | |
| import android.content.res.TypedArray; | |
| import android.util.AttributeSet; | |
| import android.widget.SeekBar; | |
| public class FloatSeekBar extends SeekBar { | |
| private float max = 1.0f; | |
| private float min = 0.0f; | |
| public FloatSeekBar(Context context, AttributeSet attrs, int defStyle) { |
| # Built application files | |
| /*/build/ | |
| # Crashlytics configuations | |
| com_crashlytics_export_strings.xml | |
| # Local configuration file (sdk path, etc) | |
| local.properties | |
| # Gradle generated files |