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
# Import fsspec & alluxio fsspec implementationimport fsspec | |
from alluxiofs import AlluxioFileSystem | |
fsspec.register_implementation(“alluxio”, AlluxioFileSystem) | |
# Create Alluxio filesystem with S3 as the underlying storage system | |
alluxio = fsspec.filesystem(“alluxio”, target_protocol=“s3”, etcd_host=args.etcd_host) | |
# Ray reads data from Alluxio using S3 URL | |
ds = ray.data.read_images(“s3://datasets/imagenet-full/train”, filesystem=alluxio) |
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
/* | |
* Copyright (c) 2014, Oracle America, Inc. | |
* All rights reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions are met: | |
* | |
* * Redistributions of source code must retain the above copyright notice, | |
* this list of conditions and the following disclaimer. | |
* |
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
(defun dotspacemacs/user-config () | |
"Configuration function for user code. | |
This function is called at the very end of Spacemacs initialization after | |
layers configuration. | |
This is the place where most of your configurations should be done. Unless it is | |
explicitly specified that a variable should be set before a package is loaded, | |
you should place your code here." | |
(add-hook 'go-mode-hook (lambda() (setq go-tab-width 2))) | |
) |
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
;; -*- mode: emacs-lisp -*- | |
;; This file is loaded by Spacemacs at startup. | |
;; It must be stored in your home directory. | |
(defun dotspacemacs/layers () | |
"Configuration Layers declaration. | |
You should not put any user code in this function besides modifying the variable | |
values." | |
(setq-default | |
;; Base distribution to use. This is a layer contained in the directory |
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 <queue> | |
class Stack { | |
queue<int> _q; | |
public: | |
// Push element x onto stack. | |
void push(int x) { | |
_q.push(x); | |
} |
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 <queue> | |
#include <vector> | |
#include <functional> | |
using namespace std; | |
class MedianFinder { | |
public: | |
priority_queue<int, vector<int>> maxHeap; //store the numbers which are less than the median | |
priority_queue<int, vector<int>, greater<int>> minHeap; // numbers greater than the median |
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
source = require 'vinyl-source-stream' | |
gulp = require 'gulp' | |
gutil = require 'gulp-util' | |
browserify = require 'gulp-browserify' | |
coffee_reactify = require 'coffee-reactify' | |
coffeeify = require 'coffeeify' | |
notify = require 'gulp-notify' | |
rename = require('gulp-rename') | |
nodemon = require("gulp-nodemon") |