This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type CountryCode = keyof typeof Countries; | |
const countries: Country[] = (Object.keys(Countries) as Array<CountryCode>).map( | |
(c) => { | |
const country = Countries[c]; | |
return { | |
code: c, | |
name: country.name, | |
nativeName: country.native, | |
flag: country.emojiU, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# make sure chromaprint source is in $PWD/chromaprint | |
# after run use $PWD/chromaprint/libchromaprint.min.js | |
# does not use --bind and set NO_DYNAMIC_EXECUTION to generate code | |
# that don't use eval | |
CC = emcc | |
CXX = em++ | |
CFLAGS = -O2 -DUSE_KISSFFT=1 -Isrc -Ivendor/kissfft | |
CXXFLAGS = -O2 -std=c++11 -DUSE_KISSFFT=1 -Isrc -Ivendor/kissfft |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package rodgarcialima.task; | |
public class AsyncTaskActivity { | |
private void download() { | |
new Task1<Integer, List<Product>>( | |
top -> { // receive 10 here | |
Response<List<Product>> response = apiService.getProducts(top).execute(); | |
if (response.isSuccessful()) { | |
return response.body(); | |
} |