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
FROM nvidia/cuda:10.1-devel-ubuntu18.04 | |
RUN echo "Setting Environment..." | |
ENV NVIDIA_VISIBLE_DEVICES all | |
ENV NVIDIA_DRIVER_CAPABILITIES all | |
ARG USER | |
RUN echo "Updating Package Index and Upgrading..." |
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
# This file has been auto-generated by i3-config-wizard(1). | |
# It will not be overwritten, so edit it as you like. | |
# | |
# Should you change your keyboard layout some time, delete | |
# this file and re-run i3-config-wizard(1). | |
# | |
# i3 config file (v4) | |
# | |
# Please see https://i3wm.org/docs/userguide.html for a complete reference! |
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
!------------------------------------------------------------------------------- | |
! Xft settings | |
!------------------------------------------------------------------------------- | |
Xft.dpi: 96 | |
Xft.antialias: false | |
Xft.rgba: rgb | |
Xft.hinting: true | |
Xft.hintstyle: hintslight |
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
#include <iostream> | |
#include <vector> | |
using namespace std; | |
template<typename T, size_t N> | |
class MemoryPool{ | |
struct node{ | |
node* next; | |
}; |
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
#include <iostream> | |
using namespace std; | |
namespace search { | |
namespace algorithms { | |
long boyer_moore(std::string const &text, std::string const &pattern) { | |
auto m = pattern.size(); | |
auto n = text.size(); |
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
internal class ScopedAquiredWriteLock : IDisposable | |
{ | |
internal ScopedAquiredWriteLock(ReaderWriterLockSlim locker) | |
{ | |
this.locker = locker; | |
this.locker.EnterWriteLock(); | |
} | |
public void Dispose() |
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 State<TS,TR> | |
{ | |
public State(Func<TS, Tuple<TS, TR>> f){ | |
Run = f; | |
} | |
public State<TS,TN> Map<TN>(Func<TR,TN> f){ | |
return new State<TS,TN>( x => { | |
var t = Run(x); | |
return Tuple.Create(t.Item1, f(t.Item2)); |
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; | |
using Akka; | |
using Akka.Actor; | |
namespace AkkaRemoting | |
{ | |
public class RequestMessage | |
{ |
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
akka { | |
log-config-on-start = off | |
stdout-loglevel = INFO | |
loglevel = ERROR | |
actor { | |
provider = "Akka.Remote.RemoteActorRefProvider, Akka.Remote" | |
debug { | |
receive = on | |
autoreceive = on | |
lifecycle = on |
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 Akka.Actor; | |
using Akka; | |
using Akka.Remote; | |
using Akka.Routing; | |
using System.Linq; | |
using System.Collections.Generic; | |
using System.Threading; | |
using System.Threading.Tasks; |
NewerOlder