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
//first, let's instantiate the Configuration manager class | |
Configuration configuration = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None); | |
if (ConfigurationManager.AppSettings.Count == 0) | |
{ | |
configuration.AppSettings.Settings.Add("ffmpegPath", ""); | |
configuration.Save(ConfigurationSaveMode.Full); | |
ConfigurationManager.RefreshSection("appSettings"); |
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
var ions = from friend in FriendsList | |
where friend.FirstName == "insereaza numele persoanei" || friend.FirstName == "insereaza numele persoanei" || | |
friend.FirstName == "insereaza numele persoanei" || friend.FirstName == "insereaza numele persoanei" || friend.FirstName == "Ionel" | |
select friend; | |
foreach(var f in friend) | |
{ | |
System.Console.WriteLine("La multi ani celor care isi sarbatoresc onomastica ! :D "); | |
} | |
Console.ReadLine |
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"> | |
<title>PackPub free ebook notifier</title> | |
</head> | |
<body> | |
<?php | |
require('simple_html_dom.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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace ConsoleApplication11 | |
{ | |
//https://practice.geeksforgeeks.org/problems/run-length-encoding/1#ExpectOP |
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 | |
/** | |
* Created by PhpStorm. | |
* User: cosmi | |
* Date: 09-Apr-18 | |
* Time: 7:57 AM | |
*/ | |
function CheckIfIsNumber($number = 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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using RestSharp; | |
namespace ConsoleApp9 | |
{ | |
class Program |
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 | |
$anafEndpoint = "https://webservicesp.anaf.ro/PlatitorTvaRest/api/v3/ws/tva"; | |
$data = '[{"cui":"", "data":"2018-04-16"}]'; | |
$curl_option = [ | |
CURLOPT_URL => $anafEndpoint, | |
CURLOPT_POST => TRUE, | |
CURLOPT_POSTFIELDS => $data, | |
CURLOPT_HTTPHEADER => array('Content-Type: application/json'), |
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 | |
class Log { | |
public static function debug($str) { | |
print "DEBUG: " . $str . "\n"; | |
} | |
public static function info($str) { | |
print "INFO: " . $str . "\n"; | |
} | |
} |
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 | |
function ReadCsv($file) | |
{ | |
$handle = fopen($file, "r"); | |
while(!feof($handle)) | |
{ | |
yield fgetcsv($handle); | |
} | |
fclose($handle); |
OlderNewer