Skip to content

Instantly share code, notes, and snippets.

View manifoldhiker's full-sized avatar

manifoldhiker manifoldhiker

  • 18:58 (UTC -12:00)
View GitHub Profile
private void loadDictionary()
{
try
{
dictionary = new Dictionary<string, List<string>>(); // **field to hold your data. Could be List<> or somethin
using (StreamReader sr = new StreamReader("E:\\Programming\\answer_database.txt")) // **Opening file, create reader
{
//**in my dictionary words were separated by "\"
string[] arr = sr.ReadLine().Split('\\'); // **read first line
public class Message
{
public string Target { get; set; }
public string Text { get; set; }
public string Date { get; set; }
public string Out { get; set; }
public Message() { }
class Group
{
#region Private Fields
private Student[] _array { get; set; }
private int _last = -1;
private int _size = 2;
SegmentTree _av_mark_t;
#endregion
<?php
class Product{
public $name ;
public $price ;
public $allowedAge ;
public function __construct($name, $price, $allowedAge)
{
$this->name = $name;
$this->price = $price;
<html>
<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
<script src="https://code.highcharts.com/stock/highstock.js"></script>
<script src="https://code.highcharts.com/stock/modules/exporting.js"></script>
<div id="container" style="height: 400px; min-width: 310px"></div>
<script>
<!doctype HTML>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="mitutee">
<title>mitutee - About me</title>
<link rel="icon" href="https://avatars2.githubusercontent.com/u/22048793?s=460&v=4">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,300italic,700,700italic">
// Learn more about F# at http://fsharp.org
open System
type DialogGraph = Node list
and Node = { id:string; content:string; responseMatchers:ResponseMatcher list }
and ResponseMatcher = ExactMatch of ExactMatch | FallToNode of FallToNode
and ExactMatch = {option:string; nodeId:string}
and FallToNode = {nodeId:string}
module Elmish.SimpleInput
open System
(**
Minimal application showing how to use Elmish
You can find more info about Emish architecture and samples at https://elmish.github.io/
*)
open Fable.Core.JsInterop
open Fable.Helpers.React
PS D:\src\modeldb-client\verta\tests> pytest
================================================= test session starts =================================================
platform win32 -- Python 3.7.1, pytest-5.0.1, py-1.8.0, pluggy-0.12.0
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('D:\\src\\modeldb-client\\verta\\tests\\.hypothesis\\examples')
rootdir: D:\src\modeldb-client\verta
plugins: hypothesis-4.31.1
collected 86 items
test_artifacts.py ....FF....... [ 15%]
test_backend.py F [ 16%]
%%cu
#include <stdio.h>
#include <iostream>
#include <time.h>
using namespace std;
#define N 1024
inline cudaError_t checkCudaErr(cudaError_t err, const char* msg) {