-
Project 1
- Folder 1
- Class1 cs
- Class2 cs
- Class3 cs
- Folder 1
-
Project 1 Tests
- Folder 1
-
Class1_Test.cs
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
if Rails.env.development? | |
Rails.application.assets.logger = Logger.new('/dev/null') | |
Rails::Rack::Logger.class_eval do | |
def call_with_quiet_assets(env) | |
previous_level = Rails.logger.level | |
Rails.logger.level = Logger::ERROR if env['PATH_INFO'] =~ %r{^/assets/} | |
call_without_quiet_assets(env) | |
ensure | |
Rails.logger.level = previous_level | |
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
interface Socket { | |
void send(String string); | |
void close(); | |
} | |
class ClientHandler { | |
private Socket socket; | |
public ClientHandler( Socket socket ){ |
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
# DEPENDENCY INJECTION | |
class A | |
def initialize(helper) | |
end | |
def doSomething | |
helper.someFunction | |
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
Warning: "config" scripts exist outside your system or Homebrew directories. | |
`./configure` scripts often look for *-config scripts to determine if | |
software packages are installed, and what additional flags to use when | |
compiling and linking. | |
Having additional scripts in your path can confuse software installed via | |
Homebrew if the config script overrides a system or Homebrew provided | |
script of the same name. We found the following "config" scripts: | |
/Users/dariusz/.rvm/bin/erb-ree-1.8.7-2011.12@ops-config |
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
class Game | |
def initialize( printer, logicMachine ) | |
end | |
def go | |
while logicMachine.continue? | |
printer.puts( "We are still playing the game." ) |
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
%p= @hey |
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
class SomeClass{ | |
private int reason; | |
public bool Go(){ | |
int value = SomeBigCalculation(); | |
if( value > 5 ){ | |
this.reason = "Too Big"; | |
return true; |
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
class SomeClass{ | |
private BigHorrificMonsterClass myBaby = new BigHorrificMonsterClass(); | |
public int DoSomething( int value ){ | |
int cradled = myBaby.cradle( value ); | |
return value + cradled; | |
} | |
} |
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
class SomeClass{ | |
private int someValue; | |
public SomeClass( int someValue ){ | |
this.someValue = someValue; | |
} | |
public int SomeFunction(){ | |
return someValue + GlobalReference.someFunction(); | |
} |
NewerOlder