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
import wikipedia | |
import pandas as pd | |
import string | |
page = wikipedia.page("List of chemists") | |
scientists_dict = {"scientist": [], "summary": [], "birth_year": []} | |
for p in page.links[:2]: | |
scientist = wikipedia.page(p) | |
scientists_dict["scientist"].append(p) | |
summary = scientist.summary |
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
spring.datasource.url=jdbc:postgresql://localhost:5432/webapp | |
spring.datasource.driverClassName=org.postgresql.Driver | |
spring.datasource.username=${SPRING_DB_USER} | |
spring.datasource.password=${SPRING_DB_PASS} | |
spring.jpa.database-platform=org.hibernate.dialect.PostgreSQLDialect | |
spring.jpa.hibernate.ddl-auto=create | |
spring.sql.init.mode=always | |
spring.jpa.defer-datasource-initialization=true |
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 kg.edu.alatoo.demo.controller; | |
import kg.edu.alatoo.demo.model.Student; | |
import kg.edu.alatoo.demo.repository.StudentRepository; | |
import org.springframework.web.bind.annotation.*; | |
import java.util.List; | |
import java.util.Optional; | |
@RestController |
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 com.example.demo.controller; | |
import com.example.demo.repo.StudentRepository; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.stereotype.Controller; | |
import org.springframework.ui.Model; | |
import org.springframework.web.bind.annotation.GetMapping; | |
@Controller | |
public class MainController { |
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
import os | |
import wave | |
from vosk import Model, KaldiRecognizer | |
import json | |
import librosa | |
import soundfile as sf | |
def get_text_from_voice(filename): | |
if not os.path.exists("model"): |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>JavaScripts Arrays Example</title> | |
<link rel="stylesheet" href="css/style.css"> | |
<script src="js/main.js" defer></script> | |
</head> | |
<body onload="getData()"> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
<script type="text/javascript" defer> | |
function loadData() { | |
fetch('https://dog.ceo/api/breeds/image/random') | |
.then((response) => response.json()) | |
.then((data) => { |
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
//------------------------------------------------------------------------------ | |
// Draw robot | |
// dan@marginallycelver.com 2012 feb 11 | |
//------------------------------------------------------------------------------ | |
// Copyright at end of file. Please see | |
// http://www.github.com/MarginallyClever/Makelangelo for more information. | |
#define FORWARD 1 | |
#define BACKWARD -1 |
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
const app = new PIXI.Application({ | |
width: window.innerWidth, | |
height: window.innerHeight, | |
backgroundColor: 0xffffff, | |
resolution: window.devicePixelRatio || 1, | |
}); | |
document.body.appendChild(app.view); | |
const w = window.innerWidth; | |
const h = window.innerHeight; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>API Example</title> | |
<script type="text/javascript"> | |
function get_dog() { | |
var xhttp = new XMLHttpRequest(); | |
xhttp.onreadystatechange = function() { | |
console.log(this.status); | |
if (this.readyState == 4 && this.status == 200) { |
NewerOlder