git clone http://..../foo
cd foo
./foo.sh
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 | |
set -euo pipefail | |
script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
export PYENV_ROOT="${script_dir}/.pyenv" | |
export PATH="${PYENV_ROOT}/bin:${PATH}" | |
if [ -d "${PYENV_ROOT}" ]; then | |
pyenv update | |
else |
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
{ | |
"imports": { | |
"std/": "https://deno.land/std@0.212.0/" | |
} | |
} |
D:\>one.cmd
success
D:\>cmd /c one.cmd
fail
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 NUnit.Framework; | |
public class Hiker | |
{ | |
[TestFixture] | |
public class Tests | |
{ | |
[Test] | |
public void life_the_universe_and_everything() | |
{ |
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
fun main() { | |
val foo = Foo() | |
val aClass = AClass() | |
aClass.OnBaz = foo::Bar | |
aClass.Do() | |
println(aClass.OnBaz == aClass.OnBaz) | |
println(aClass.OnBaz) | |
} |
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
[TestClass] | |
public class Tests | |
{ | |
[TestMethod] | |
public void TestProgram() | |
{ | |
foreach (var main in new[] { | |
DirectCall.Program.Main1, | |
DependencyInjection.Program.Main2, | |
EventBased.Program.Main3, |
Current:
r extract method
R extract method
R!! extract method
R** clean stuff up
B oh no
B!! oh no
B** oh no
F good stuff
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
interface ITaxInfo { | |
async GetTaxInfo(sin: SIN) -> TaxInfo? | |
class Error {} | |
} | |
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
// requires https://www.nuget.org/packages/FluentAssertions/ | |
using FluentAssertions; | |
using FluentAssertions.Primitives; | |
using Microsoft.VisualStudio.TestTools.UnitTesting; | |
[TestClass] | |
public class UnitTest1 | |
{ | |
[TestMethod] | |
public void TestMethod1() |
NewerOlder