Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
// compute probability of landing on tile after certain number of steps of brownian | |
package main | |
import ( | |
"flag" | |
"fmt" | |
"math/big" | |
"math/rand" | |
"os" | |
"time" |
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
<!DOCTYPE html> | |
<html> | |
<head><title>SOUND</title></head> | |
<body> | |
<div>Frequence: <span id="frequency"></span></div> | |
<script type="text/javascript"> | |
var audioCtx = new (window.AudioContext || window.webkitAudioContext)(); | |
var oscillatorNode = audioCtx.createOscillator(); | |
var gainNode = audioCtx.createGain(); |
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
// Can be any backing type, even 'interface{}' if desired. | |
// See stackoverflow.com/q/11403050/3960399 for type conversion instructions. | |
type IntConcurrentQueue interface { | |
// Inserts the int into the queue | |
Enqueue(int) | |
// Will return error if there is nothing in the queue or if Close() was already called | |
DequeueNonBlocking() (int, error) | |
// Will block until there is a value in the queue to return. | |
// Will error if Close() was already called. | |
DequeueBlocking() (int, error) |
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.Threading.Tasks; | |
using WampSharp.V2; | |
using WampSharp.V2.Client; | |
using WampSharp.V2.Core.Contracts; | |
namespace HubUSA.LPR.CameraService | |
{ |
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 DoublyLinkedList<T> : ICloneable, IEnumerable where T : ICloneable | |
{ | |
private class Node<U> | |
{ | |
public U Value; | |
public Node<U> Next; | |
public Node<U> Prev; | |
public Node(U value, Node<U> next, Node<U> prev) | |
{ |
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 DoublyLinkedListNode<T> | |
{ | |
private T element; | |
private DoublyLinkedListNode<T> next; | |
private DoublyLinkedListNode<T> previous; | |
public DoublyLinkedListNode(T element) | |
{ | |
this.element = element; | |
this.next = null; |
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.Threading.Tasks; | |
public class Timebox | |
{ | |
private readonly TimeSpan _ts; | |
public Timebox(TimeSpan ts) | |
{ | |
_ts = ts; |
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.Linq; | |
using Microsoft.CodeAnalysis.CSharp; | |
using Microsoft.CodeAnalysis.CSharp.Syntax; | |
namespace StackOverflow.Roslyn | |
{ | |
public static class TypeSyntaxFactory | |
{ | |
/// <summary> | |
/// Used to generate a type without generic arguments |
NewerOlder