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
ACT I. | |
SCENE I. An open place. | |
[An open place. Thunder and lightning. Enter three Witches.] | |
FIRST WITCH. | |
When shall we three meet again | |
In thunder, lightning, or in rain? | |
SECOND WITCH. |
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 pw.usn; | |
import java.io.FileInputStream; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.util.HashMap; | |
import java.util.Map; | |
import java.util.Scanner; | |
import java.util.logging.Logger; |
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
open System | |
type Vec = { x: int; y: int } | |
type Tile = { pos: Vec; size: Vec; fill: char } | |
type Grid = { size: Vec; data: char[,] } | |
/// Creates a Vec from x and y | |
let vec x y = | |
{ x = x; y = y } |
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 class Program | |
{ | |
static char[,] GetBoard(Vector boardSize) | |
{ | |
char[,] board = new char[boardSize.X, boardSize.Y]; | |
for (int j = 0; j < boardSize.Y; j++) | |
{ | |
string line = Console.ReadLine(); |
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.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace Challenge196Hard | |
{ | |
class Program | |
{ |
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 class Program | |
{ | |
static string Encrypt(string plain, int railCount) | |
{ | |
string[] rails = new string[railCount]; | |
int i; | |
for (i = 0; i < railCount; i++) | |
{ | |
rails[i] = ""; | |
} |
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 Set<T> : IEquatable<Set<T>>, ICloneable | |
{ | |
private List<T> Members; | |
private bool Not; | |
private Set() | |
{ | |
this.Members = new List<T>(); | |
this.Not = false; | |
} |
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
#!/usr/bin/env ruby | |
def dir(s) | |
s | |
.split('/') | |
.select {|t| !t.empty? } | |
end | |
def resolve(p, l) | |
resolved = [] | |
p.each do |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
#!/bin/bash | |
declare -A SUBS=( | |
['lol']='laugh out loud' \ | |
['dw']='don'\''worry' \ | |
['hf']='have fun' \ | |
['gg']='good game' \ | |
['brb']='be right back' \ | |
['g2g']='got to go' \ | |
['wtf']='what the fuck' \ | |
['wp']='well played' \ |
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
open System | |
type stick = { n: int; x1: float; y1: float; x2: float; y2: float } | |
let stickFromString (s: string) = | |
let parts = s.Split(',', ':') | |
let n, x1, y1, x2, y2 = | |
Int32.Parse parts.[0], | |
Double.Parse parts.[1], | |
Double.Parse parts.[2], |