This file contains hidden or 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.IO.Compression; | |
| using CommandLine; | |
| namespace Decompression | |
| { | |
| static class Program | |
| { | |
| private static void Main(string[] args) | 
  
    
      This file contains hidden or 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.Compression; | |
| using CommandLine; | |
| namespace Compression | |
| { | |
| static class Program | |
| { | |
| private static void Main(string[] args) | |
| { | 
  
    
      This file contains hidden or 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 cmd | |
| import ( | |
| "encoding/xml" | |
| "fmt" | |
| "io" | |
| ) | |
| // XMLDecoder defines XML decoder that works as SAX parser | |
| type XMLDecoder struct { | 
  
    
      This file contains hidden or 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 now = Instant::now(); | |
| let path = matches.value_of("FILE").unwrap_or(""); | |
| let file = File::open(path).unwrap(); | |
| let file = BufReader::new(file); | |
| let parser = EventReader::new(file); | |
| let mut open = 0; | |
| let mut close = 0; | 
  
    
      This file contains hidden or 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 int[] EdgeLengths(this string text) | |
| { | |
| var result = new int[text.Length]; | |
| for (var i = 0; i < text.Length - 1; i++) | |
| { | |
| var b = result[i]; | |
| while (b > 0 && text[i + 1] != text[b]) | |
| { | |
| b = result[b]; | |
| } | 
  
    
      This file contains hidden or 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
    
  
  
    
  | class Deadlock | |
| { | |
| ~Deadlock() | |
| { | |
| System.Threading.Monitor.Enter(this); | |
| } | |
| static void Main() | |
| { | |
| Deadlock d = new Deadlock(); | |
| System.Threading.Monitor.Enter(d); | 
  
    
      This file contains hidden or 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
    
  
  
    
  | BOOL main_try_compile_as_wildcard(const char* pattern) { | |
| char* drive = (char*)apr_pcalloc(main_pool, sizeof(char) * MAX_PATH); | |
| char* dir = (char*)apr_pcalloc(main_pool, sizeof(char) * MAX_PATH); | |
| char* filename = (char*)apr_pcalloc(main_pool, sizeof(char) * MAX_PATH); | |
| char* ext = (char*)apr_pcalloc(main_pool, sizeof(char) * MAX_PATH); | |
| char* full_dir_path; | |
| char* file_pattern; | |
| apr_status_t status; | |
| apr_dir_t* d = NULL; | |
| apr_finfo_t info = { 0 }; | 
  
    
      This file contains hidden or 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
    
  
  
    
  | static long Ticks(DateTime dt) | |
| { | |
| var year = dt.Year; | |
| var month = dt.Month; | |
| var day = dt.Day; | |
| var hour = dt.Hour; | |
| var min = dt.Minute; | |
| var sec = dt.Second; | |
| var days = 0; | 
  
    
      This file contains hidden or 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
    
  
  
    
  | hc -C "for file f from dir '.' where f.name ~ '^[$]' do find withsubs;" | 
  
    
      This file contains hidden or 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 argparse | |
| import os | |
| import sys | |
| import datetime | |
| def sort_and_write(lines, ix): | |
| lines.sort() | |
| tempFile = "d:\\_tmp_{0}.txt".format(ix) | |
| with open(tempFile, "w") as f: | 
NewerOlder