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
" Delete large binary data blocks | |
g/ \x\{2}\(,\x\{2}\)*\(,\\\)\=/ d | |
" Sort values inside [] sections | |
g/\[*\]\n\p/+1,/^$/-1 sort | |
" Join section [] content together with $ | |
g/\[*\]\n\p/,/^$/-1 s/$\n/ $ / | |
" Delete empty lines | |
%s/^$\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
using System; | |
using System.Threading; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using NUnit.Framework; | |
namespace CustomEvent | |
{ |
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.Linq; | |
using System.IO; | |
namespace QuickSort | |
{ | |
/// <summary> | |
/// Algorithms: Design and Analysis by Tim Roughgarden | |
/// Part 1, Programming Question - 2 | |
/// </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
using System; | |
using System.IO; | |
using System.Linq; | |
namespace NumberOfInversions | |
{ | |
/// <summary> | |
/// Algorithms: Design and Analysis by Tim Roughgarden | |
/// Part 1, Programming Question - 1 | |
/// </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
(def v [0.05 0.4 0.08 0.04 0.1 0.1 0.23]) | |
(declare mm) | |
(defn m [i j] | |
(cond | |
(< i (dec j)) (letfn [(f [r] | |
(+ (reduce + (subvec v i j)) | |
(mm i r) | |
(mm (inc r) j)))] | |
(apply min (map f (range i j)))) |
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 main | |
import ( | |
"fmt" | |
"golang.org/x/net/html" | |
"log" | |
"net/http" | |
"net/url" | |
"os" | |
) |
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 main | |
import ( | |
"bytes" | |
"fmt" | |
) | |
type Node string | |
type Graph struct { |
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; | |
namespace UtcOffsetQuirks | |
{ | |
public class Program | |
{ | |
public static void Main(string[] args) | |
{ | |
// Комментарии ниже - вывод программы, запущенной на | |
// компьютере с русской локалью 22 сентября 2014 года. |
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; | |
using System.Collections.Generic; | |
using System.Collections.Specialized; | |
using System.ComponentModel; | |
using System.Linq; | |
using System.Threading.Tasks; | |
namespace VirtualListLib | |
{ |
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 <condition_variable> | |
#include <future> | |
#include <iostream> | |
#include <mutex> | |
#include <thread> | |
#include <vector> | |
using namespace std; | |
condition_variable CondVar; |
OlderNewer