This file contains hidden or 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
var popup = new mapboxgl.Popup() | |
.setLngLat(coordinates) | |
.setHTML(`<div> | |
<h1>This is a popup with incorrect open event!</h1> | |
</div>`) | |
.addTo(map); | |
popup.on('open', function() { | |
//this open event will not fire correctly for the first time | |
}) |
This file contains hidden or 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
new mapboxgl.Popup() | |
.setLngLat(coordinates) | |
.setHTML(`<div> | |
<h1>This is a popup with correct open event!</h1> | |
</div>`) | |
.on('open', function() { | |
//this open event will fire correctly | |
}) | |
.on('close',function(){ | |
//close event |
This file contains hidden or 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
int height(Node *node) { | |
if (node == NULL) { | |
return 0; | |
} | |
else { | |
int lheight = height(node->left); | |
int rheight = height(node->right); | |
if (lheight > rheight) { | |
return (lheight + 1); |
This file contains hidden or 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
#!/usr/bin/env python3 | |
import numpy | |
import os | |
import re | |
import sys | |
import tqdm | |
import urllib.request | |
from bs4 import BeautifulSoup | |
from colorama import Fore, Back |
This file contains hidden or 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
def get_categories(home_url): | |
categories = [] | |
link = 'https://www.hepsiburada.com/laptop-notebook-dizustu-bilgisayarlar-c-98' | |
categories.append(link) | |
return categories |
This file contains hidden or 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
model = Sequential() | |
model.add( | |
LSTM(10, | |
activation='relu', | |
input_shape=(look_back,1)) | |
) | |
model.add(Dense(1)) | |
model.compile(optimizer='adam', loss='mse', metrics=['accuracy']) |
This file contains hidden or 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
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |
NewerOlder