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
ạảãàáâậầấẩẫăắằặẳẵóòọõỏôộổỗồốơờớợởỡéèẻẹẽêếềệểễúùụủũưựữửừứíìịỉĩýỳỷỵỹđ | |
ẠẢÃÀÁÂẬẦẤẨẪĂẮẰẶẲẴÓÒỌÕỎÔỘỔỖỒỐƠỜỚỢỞỠÉÈẺẸẼÊẾỀỆỂỄÚÙỤỦŨƯỰỮỬỪỨÍÌỊỈĨÝỲỶỴỸĐ |
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
// Flip coin until we get 3 consecutive "Tail" or "Head" | |
#include <iostream> | |
#include <cstdlib> | |
#include <cstdio> | |
#include <unordered_map> | |
using namespace std; | |
enum class coin_state {head, tail}; | |
unordered_map<coin_state, string> coin_state_ref { |
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 you need to retrieve html source of the given url | |
//Get Url Title | |
private string UrlTitle(string url) | |
{ | |
string source = HtmlSrc(url); | |
string title = Regex.Match(source, @"\<title\b[^>]*\>\s*(?<Title>[\s\S]*?)\</title\>", RegexOptions.IgnoreCase).Groups["Title"].Value; | |
return title; | |
} |
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
#include <iostream> | |
#include <algorithm> | |
#include <iomanip> | |
#include "json.hpp" | |
using namespace std; | |
using json = nlohmann::json; | |
struct SV |
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 java.util.ArrayList; | |
import java.util.Collections; | |
/** | |
* Created by Scorta on 09/05/2017. | |
*/ | |
class LevenshteinEditDistance { | |
private enum Operation {COPY, DELETE, INSERT, REPLACE} |
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
public static string GetAllRegexMatchFromText(string regex, string text) | |
{ | |
Regex linkParser = new Regex(regex, RegexOptions.Compiled | RegexOptions.IgnoreCase); | |
string result = string.Empty; | |
foreach (Match m in linkParser.Matches(text)) | |
result += m.ToString() + "|"; | |
result = result.Remove(result.Length - 1, 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
using UnityEngine; | |
using System.Collections; | |
public class CameraController : MonoBehaviour | |
{ | |
public float moveSpeed, zoomSpeed; | |
private Rigidbody rb; | |
void Start () |
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
private void SaveImageClicked(object sender, GestureEventArgs e) | |
{ | |
var webClient = new WebClient(); | |
webClient.OpenReadCompleted += WebClientOpenReadCompleted; | |
webClient.OpenReadAsync(new Uri(IMAGE_URL, UriKind.Absolute)); | |
} | |
void WebClientOpenReadCompleted(object sender, OpenReadCompletedEventArgs e) | |
{ | |
const string tempJpeg = "TempJPEG"; |
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
webBrowser.ScriptErrorsSuppressed = 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
MarketplaceReviewTask marketplaceReviewTask = new MarketplaceReviewTask(); | |
marketplaceReviewTask.Show(); |
NewerOlder