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
var url = '/api/v1/courses/' + (typeof ENV.COURSE !== 'undefined' ? ENV.COURSE.id : ENV.course.id) + '/users';$.getJSON(url, 'per_page=100&include[]=email', function(d) { console.log(d.map(function(e) { return [ 'name', 'login_id', 'email' ].map(function(f) { return e[f]; }).join('\t'); }).join('\n'));}); |
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
WARNING: boolean? already refers to: #'clojure.core/boolean? in namespace: medley.core, being replaced by: #'medley.core/boolean? | |
clojure.lang.Compiler$CompilerException: Syntax error reading source at (cider/nrepl/middleware/test.clj:103:57). | |
#:clojure.error{:phase :read-source, :line 103, :column 57, :source "cider/nrepl/middleware/test.clj"} | |
at clojure.lang.Compiler.load (Compiler.java:7642) | |
clojure.lang.RT.loadResourceScript (RT.java:381) | |
clojure.lang.RT.loadResourceScript (RT.java:372) | |
clojure.lang.RT.load (RT.java:463) | |
clojure.lang.RT.load (RT.java:428) | |
clojure.core$load$fn__6824.invoke (core.clj:6126) | |
clojure.core$load.invokeStatic (core.clj:6125) |
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 TreeNode(object): | |
def __init__(self, x): | |
self.value = x | |
self.left = None | |
self.right = None | |
class BinaryTree(object): | |
def __init__(self, root): | |
self.root = TreeNode(root) #set the root of the tree |
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 typing import Generic, List, TypeVar | |
T = TypeVar("T") | |
class Stack(Generic[T]): | |
def __init__(self) -> None: | |
self._container: List[T] = [] | |
def push(self, item: T) -> None: |
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
# coding: utf-8 | |
import numpy as np | |
import gym | |
import ppaquette_gym_doom | |
from keras.models import Sequential | |
from keras.layers import Dense, Activation, Flatten | |
from keras.optimizers import Adam | |
from rl.agents.dqn import DQNAgent | |
from rl.policy import BoltzmannQPolicy |
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
# views.py | |
# ======== | |
def add_file(request, project_id): | |
if request.method == 'POST': | |
form = VennCsvForm(request.POST, request.FILES) | |
if form.is_valid(): | |
new_file = VennCsv(file=request.FILES['file']) | |
new_file.user = request.user | |
new_file.project = get_object_or_404(VennProject, pk=project_id) | |
new_file.save() |
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
###### S1400707GEM_1 | |
. | |
├── $RECYCLE.BIN | |
│ └── S-1-5-21-4038060156-87135356-2143169266-1001 | |
│ └── desktop.ini | |
├── Configuration.xml | |
├── Eclipse | |
│ └── workspace | |
│ └── snpAnnotationForBacteria | |
│ ├── SAM18146101_s_1.out-Variants-snpEff-test.txt |
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
library(bnlearn) | |
options(echo=TRUE) | |
args <- commandArgs(trailingOnly = TRUE) | |
print(args) | |
data <- read.table(args[1], sep = ",", header = TRUE) | |
col_names <- names(data) | |
data[, col_names] <- lapply(data[,col_names] , factor) |
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
#!/bin/sh | |
#SBATCH --time=24:00:00 # Run time in hh:mm:ss | |
#SBATCH --mem-per-cpu=16384 # Minimum memory required per CPU (in megabytes) | |
#SBATCH --job-name=bnp-bootstrap | |
#SBATCH --error=/work/otu/hdogan/job.%J.err | |
#SBATCH --output=/work/otu/hdogan/job.%J.out | |
Rscript bootstrap.R data.csv |
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
int main(int argc, char* argv[]) { | |
namespace spd = spdlog; | |
try { | |
//Create console, multithreaded logger | |
auto console = spd::stdout_logger_mt("console"); | |
console->info("Bayesian Network Build"); | |
int k = atoi(argv[2]); |
NewerOlder