Find it here: https://github.com/bitemyapp/learnhaskell
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
| { | |
| "$schema": "http://json-schema.org/draft-04/schema#", | |
| "title": "Scriptoria object", | |
| "description": "Meta-data about a publication registered in scriptoria", | |
| "type": "object", | |
| "properties": { | |
| "source": { | |
| "description": "URI of the original repository", | |
| "type": "string" | |
| }, |
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
| { | |
| "$schema": "http://json-schema.org/draft-04/schema#", | |
| "title": "Scriptoria object", | |
| "description": "Meta-data about a publication registered in scriptoria", | |
| "type": "object", | |
| "properties": { | |
| "source": { | |
| "description": "URL of the original repository", | |
| "type": "string" | |
| }, |
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
| open System.Xml.Linq | |
| open FSharp.Data | |
| /// Use F#'s awesome type provider to access arXiv's API. | |
| type StatML = XmlProvider<"http://export.arxiv.org/api/query?search_query=stat.ML&start=0&max_results=1000"> | |
| /// Request Stat.ML articles from 'a' to 'b'. | |
| let APIReq (a: int) (b: int) = | |
| "http://export.arxiv.org/api/query?search_query=stat.ML&start=" + (string a) + "&max_results=" + (string b) |
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
| #! /usr/bin/python2 | |
| import json | |
| from TwitterAPI import TwitterAPI | |
| c_key = '...' | |
| c_sec = '...' | |
| t_key = '...' | |
| t_sec = '...' |
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
| #! /usr/bin/python2 | |
| import json | |
| from TwitterAPI import TwitterAPI | |
| c_key = '...' | |
| c_sec = '...' | |
| t_key = '...' | |
| t_sec = '...' |
Benchmarking seems not to be a main focus of any specific academic field, although the problem has been addressed by many different groups in CS.
Some papers I found interesting:
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
| #include <RcppArmadillo.h> | |
| #include <omp.h> | |
| using namespace Rcpp; | |
| using namespace arma; | |
| // [[Rcpp::depends(RcppArmadillo)]] | |
| // [[Rcpp::plugins(openmp)]] | |
| // [[Rcpp::export]] | |
| void updateImplicitX_p(arma::mat & X, const arma::mat & Y, const arma::mat & P, const arma::mat & C, double lambda, int cores = 1) { |
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
| (ns clj-automated-reasoning.core-match | |
| (:require [clojure.core.match :as cm])) | |
| (defn simplify1 [e] | |
| (cm/match [e] | |
| [(['+ 0 x] :seq)] x | |
| [(['+ x 0] :seq)] x | |
| [(['* x 1] :seq)] x | |
| [(['* 1 x] :seq)] x | |
| [(['* x 0] :seq)] 0 |
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
| # Note – this is not a bash script (some of the steps require reboot) | |
| # I named it .sh just so Github does correct syntax highlighting. | |
| # | |
| # This is also available as an AMI in us-east-1 (virginia): ami-cf5028a5 | |
| # | |
| # The CUDA part is mostly based on this excellent blog post: | |
| # http://tleyden.github.io/blog/2014/10/25/cuda-6-dot-5-on-aws-gpu-instance-running-ubuntu-14-dot-04/ | |
| # Install various packages | |
| sudo apt-get update |