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 Result | |
{ | |
public $value; | |
public $error; | |
private function __construct($value, $error = null) | |
{ | |
$this->value = $value; | |
$this->error = $error; | |
} |
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
{-# LANGUAGE BangPatterns #-} | |
{-# LANGUAGE DeriveGeneric #-} | |
{-# LANGUAGE DeriveAnyClass #-} | |
module Main where | |
import Prelude as P | |
import Criterion.Main | |
import Control.DeepSeq | |
import Data.Monoids |
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 <stdio.h> | |
#include <stdlib.h> | |
#include <time.h> | |
#define N 10000000 | |
typedef struct _Foo { | |
int name, id; | |
} Foo; |
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
package scalajs_java.trees | |
sealed trait Type | |
// Type of statements | |
case object NoType extends Type | |
// Primitive types |
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
/** | |
* Created by moczur on 10/19/15. | |
*/ | |
import akka.event.LoggingReceive | |
import akka.actor._ | |
import scala.concurrent.duration._ | |
import scala.util.Random | |
import language.postfixOps |
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
# Disclaimer: work-in-progress-kind-of-thing, really more of a dockerfile-became-shellscript | |
# Installs emulated arm ghc on amd64 box | |
# It assumes you're running Ubuntu 14.04 (Trusty) | |
# Oh btw -- run with sudo | |
# from Alexey Raga's dockerfile (to stop apt from asking you for a "yes"): | |
export DEBIAN_FRONTEND=noninteractive | |
export OPTS_APT="-y --force-yes --no-install-recommends" | |
apt-get update |
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
# sources.list file for arm cross-development under amd64 | |
#deb [arch=amd64] cdrom:[Ubuntu 14.04.3 LTS _Trusty Tahr_ - Beta amd64 (20150805)]/ trusty main restricted | |
deb [arch=armhf] http://ports.ubuntu.com/ trusty main restricted universe multiverse | |
deb [arch=armhf] http://ports.ubuntu.com/ trusty-security main restricted universe multiverse | |
deb [arch=armhf] http://ports.ubuntu.com/ trusty-updates main restricted universe multiverse | |
deb [arch=armhf] http://ports.ubuntu.com/ trusty-backports main restricted universe multiverse | |
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to | |
# newer versions of the distribution. |
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 NewsReceiver extends _FinancialNewsReceiverDisp { | |
private static final long serialVersionUID = -3538248252658050588L; | |
public static HashMap<CurrencyPair, Float> exchangeRates = new HashMap<>(); | |
public static HashMap<Currency, Float> interestRates = new HashMap<>(); | |
@Override | |
public void interestRate(float rate, Currency curr, Current __current) { | |
interestRates.put(curr, rate); |
NewerOlder