I hereby claim:
- I am tanayv on github.
- I am tanayv (https://keybase.io/tanayv) on keybase.
- I have a public key whose fingerprint is 58A2 C7AE A23B A770 4DD8 D464 15D7 95CC 8D69 B17E
To claim this, I am signing this object:
/* Given a pattern and a string input - find if the string follows the same pattern and return 0 or 1. Examples: 1) Pattern : "abba", input: "redblueredblue" should return 1. 2) Pattern: "aaaa", input: "asdasdasdasd" should return 1. 3) Pattern: "aabb", input: "xyzabcxzyabc" should return 0. */ | |
const isMatch = (pat, str) => { | |
if (pat.length === 0 || str.len === 0) return false; | |
for (let i = 0; i <= str.length; i++) { |
I hereby claim:
To claim this, I am signing this object:
from flask import Flask | |
import tensorflow as tf | |
import numpy as np | |
import os | |
import time | |
import datetime | |
import data_helpers | |
from text_cnn import TextCNN | |
from tensorflow.contrib import learn |
const translateSongLyrics = (songLines, callback) => { | |
let config = { | |
headers: { | |
'Content-Type': 'application/x-www-form-urlencoded' | |
} | |
}; | |
let endpoint = "https://translate.yandex.net/api/v1.5/tr.json/translate?key=" + yandexApiKey; | |
songLines.forEach((line) => { |
/* How I would do it in Angular (For example in x.component.html) */ | |
<div class="nav"> | |
<div class="option" *ngClass={'selected': 'activeView == 0'} (click)="setView(0)">Playback</div> | |
<div class="option" *ngClass={'selected': 'activeView == 1'} (click)="setView(1)">Lyrics</div> | |
<div class="option" *ngClass={'selected': 'activeView == 2'} (click)="setView(2)">Translation</div> | |
</div> | |
/* How I did it in react */ | |
class Nav extends Component { |