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
function getNum(input) { | |
let conditions = [{num: 3, word: 'Fizz'}, {num: 5, word: 'Buzz'}] | |
return conditions.map(({num, word}) => { | |
return input % num === 0 ? word : '#' | |
}).join('').replace(/#+/, input).replace(/(\d+)?([A-z]+)(\d+)?/g, '$2') | |
} |
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
{ status: { code: 10000, description: 'Ok' }, | |
outputs: | |
[ { id: 'f715fc278bbc4ac3b3eb83c3487c93d3', | |
status: { code: 10000, description: 'Ok' }, | |
created_at: '2017-12-02T23:38:51.586298315Z', | |
model: | |
{ id: 'aaa03c23b3724a16a56b629203edc62c', | |
name: 'general-v1.3', | |
created_at: '2016-03-09T17:11:39.608845Z', | |
app_id: 'main', |
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
{ | |
"data": [ | |
{ | |
"id": "tbN0X", | |
"title": "No Sheet ", | |
"description": null, | |
"datetime": 1512239410, | |
"cover": "nqe9A8k", | |
"cover_width": 1078, | |
"cover_height": 2340, |
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
CC=g++ | |
CFLAGS=-c -g -Wall --std=c++11 | |
LDFLAGS=-g | |
# All of the source files to compile | |
SOURCES=pa05.cpp BigInteger.cpp | |
DEPENDENCIES=BigInteger.h MyList.h MyList.hpp | |
OBJECTS=$(SOURCES:.cpp=.o) | |
# Output binary | |
EXECUTABLE=pa05 |
OlderNewer