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
Console.WriteLine("Hello, World"); |
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.Generic; | |
using System.Linq; | |
namespace Program | |
{ | |
internal class RangeFinder | |
{ | |
public static IEnumerable<T> Create<T>(IEnumerable<int> items, Func<int, int, T> rangeCreator) | |
{ |
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.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace ConsoleApplication1 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) |
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
#!/bin/sh | |
tmux -S /tmp/pair has-session -t workenv | |
if [[ $? == 1 ]] ; then | |
pushd /Volumes/Analog/super-banner | |
tmux -S /tmp/pair new-session -d -s workenv -n Vim | |
tmux -S /tmp/pair new-window -t workenv -n Super-Banner | |
cd /Volumes/Analog/cookbooks | |
tmux -S /tmp/pair new-window -t workenv -n Cookbooks | |
tmux -S /tmp/pair select-window -t workenv:Vim |
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
require 'minitest/spec' | |
require 'minitest/autorun' | |
class Credentials < Struct.new(:login, :password) ; end | |
class EnvironmentCredentials < Credentials | |
def initialize() | |
super(ENV['USER'], ENV['PASSWORD']) | |
end | |
end |
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
# Install Ruby | |
if [ "`ruby --version | cut -d' ' -f2`" != "1.9.3p429" ] ; then | |
yum -y install kernel-devel gcc gcc-c++ automake autoconf make dmidecode zlib zlib-devel readline readline-devel openssl openssl-devel patch libtool libyaml-devel libffi-devel libxml2-devel libxslt-devel | |
mkdir -p /tmp/ruby | |
cd /tmp/ruby | |
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p429.tar.gz -q | |
tar xvf ruby-1.9.3*.tar.gz | |
cd ruby-1.9.3* | |
export LANG="en_US.UTF-8" | |
export LC_ALL="en_US.UTF-8" |
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
#!/usr/bin/env ruby | |
require 'socket' | |
test_file = ARGV[0] | |
socket = UNIXSocket.new('testing.sock') | |
socket.write(test_file) | |
socket.close_write |
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
module Logic | |
class Authentication | |
def initialize session_hash, model = ::Authentication | |
@session = session_hash | |
@model = model | |
end | |
def signed_in? | |
!user.nil? | |
end |
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.Generic; | |
using System.IO; | |
namespace fixkeypath | |
{ | |
class TextReadLineIterator : IDisposable, IEnumerable<string> | |
{ | |
public TextReadLineIterator(TextReader InputFile) | |
{ |
OlderNewer