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
<?php | |
echo json_encode("Göktürk-X-șpțâăîșțâ", JSON_UNESCAPED_UNICODE); |
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
using System; | |
using System.Xml; | |
using System.Xml.Linq; | |
namespace ConsoleApp22 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |
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
// ConsoleApplication22.cpp : This file contains the 'main' function. Program execution begins and ends there. | |
// | |
#include "pch.h" | |
#include <iostream> | |
struct Stack | |
{ |
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 lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Title</title> | |
</head> | |
<body> | |
<script> | |
let clicks = 0; | |
const url = `fetch.php`; |
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
Methode 1 | |
<p:dataTable var="entry" value="#{hashMap.entrySet().toArray()}"> | |
<p:column headerText="key"> | |
<h:outputText value="${entry.key}" /> | |
</p:column> | |
<p:column headerText="value id"> | |
<h:outputText value="${entry.value.id}" /> | |
</p:column> | |
</p:dataTable> |
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
let story = "really very basically bla bla ba afara este frig. Ana are mere. Javascript drives me very mad. But basically it is used everywhere. Very Ana Ana Ana really"; | |
let overUsedWords = ["really", "very", "basically", "Ana"]; | |
let storyWords = story.split(" "); | |
let freq = {} | |
for (storyWord of storyWords) | |
{ | |
for(overUsedWord of overUsedWords) | |
{ |
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
using System; | |
using System.Collections.Generic; | |
namespace ConsoleApp28 | |
{ | |
public class Intrebare | |
{ | |
public string intrebare; | |
public List<string> raspunsuri = new List<string>(); | |
} |
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
fail: Microsoft.EntityFrameworkCore.Database.Command[20102] | |
Failed executing DbCommand (1ms) [Parameters=[], CommandType='Text', CommandTimeout='30'] | |
CREATE TABLE [Categories] ( | |
[Id] int NOT NULL IDENTITY, | |
[UserCodeAdd] nvarchar(20) NOT NULL, | |
[UserCodeLastChange] nvarchar(20) NULL, | |
[AddedDate] datetime2 NOT NULL DEFAULT (CURRENT_TIMESTAMP), | |
[LastChangeDate] datetime2 NULL, | |
[ParentId] int NULL, | |
[Code] nvarchar(50) NOT NULL, |
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
<html> | |
<label>Introduceti dimesiunea laturii patratului </label><input type ="text" id="laturaPatrat"/><br/> | |
<button type="button" onclick="calculeazaArie()">Calculeaza arie</button> | |
<p id="rezultat"></p> | |
<script> | |
function calculeazaArie() { | |
let dimensiune = document.getElementById("laturaPatrat").value //citim ceea ce am introdus in text box |
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
char[] chars = { 'w', 'o', 'r', 'd' }; | |
sbyte[] bytes = { 0x41, 0x42, 0x43, 0x44, 0x45, 0x00 }; | |
// Create a string from a character array. | |
string string1 = new string(chars); | |
Console.WriteLine(string1); | |
// Create a string that consists of a character repeated 20 times. | |
string string2 = new string('c', 20); | |
Console.WriteLine(string2); |