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
import java.util.Objects; | |
/** | |
* This class represents a pair of values. | |
*/ | |
public class Pair<T1, T2> { | |
public final T1 first; | |
public final T2 second; |
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
( | |
s.meter; | |
s.freqscope; | |
s.plotTree; | |
) | |
( | |
var g0 = Group.new(s); // g0 = main synth group | |
var g1 = Group.after(g0); // g1 = effect group |
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
package com.amazonaws.ec2.tagging.util; | |
import java.util.AbstractMap; | |
import java.util.Collection; | |
import java.util.HashSet; | |
import java.util.Set; | |
import java.util.stream.Collectors; | |
public class SingleValueMap<K, V> extends AbstractMap<K, V> { |
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
public class Startup | |
{ | |
// This method is required by Katana: | |
public void Configuration(IAppBuilder app) | |
{ | |
var webApiConfiguration = ConfigureWebApi(); | |
// Use the extension method provided by the WebApi.Owin library: | |
app.UseWebApi(webApiConfiguration); | |
} |
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; | |
namespace CachingFunction | |
{ | |
public class CachingFunction<T1, TResult> | |
{ | |
private readonly Func<T1, TResult> _func; | |
private T1 _cachedParam; | |
private TResult _cachedResult; |