First open a powershell terminal install the scoop package manager:
iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
| import React, { Component } from "react"; | |
| import Button from "./Button"; | |
| import Message from "./Message"; | |
| import { getMessage } from "./utils"; | |
| export default class Chat extends Component { | |
| state = { | |
| isStreaming: this.props.isStreaming, | |
| messages: [getMessage()] | |
| }; |
| <section data-background-transition='zoom' data-transition='concave' data-background='http://ryanjarvinen.com/presentations/shared/img/broadcast_reveal_dark.png' data-state='blackout'> | |
| <h2>Gist-Powered</h2> | |
| <h1>Reveal.js</h1> | |
| <h2>Slideshow Presentations</h2> | |
| <br/> | |
| <h1 class='fragment grow'><a style='color:deepskyblue;' href='http://gist-reveal.it'>gist-reveal.it</a></h1> | |
| </section> | |
| <section data-background-transition='zoom' data-transition='linear' id='try-it'> | |
| <h2>Try it out!</h2> | |
| <p>Create your own deck by forking a copy of <a href='https://gist.github.com/ryanj/af84d40e58c5c2a908dd'>this github gist</a>: <br /><a href='https://gist.github.com/ryanj/af84d40e58c5c2a908dd'>https://gist.github.com/ryanj/af84d40e58c5c2a908dd</a></p> |
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <groupId>com.github.alexvictoor</groupId> | |
| <artifactId>custom-conf</artifactId> | |
| <version>1.0-SNAPSHOT</version> | |
| <packaging>jar</packaging> | |
| <name>custom-conf</name> |
| package java8.concurrent; | |
| import java.math.BigInteger; | |
| import java.util.Map; | |
| import java.util.concurrent.CompletableFuture; | |
| import java.util.concurrent.CompletionStage; | |
| import java.util.concurrent.Executor; | |
| import java.util.function.Function; | |
| /** |
| /******************************************************************************* | |
| * Copyright (c) 2013,2014 Rüdiger Herrmann, Sebastian Millies | |
| * All rights reserved. This program and the accompanying materials | |
| * are made available under the terms of the Eclipse Public License v1.0 | |
| * which accompanies this distribution, and is available at | |
| * http://www.eclipse.org/legal/epl-v10.html | |
| * | |
| * Contributors: | |
| * Rüdiger Herrmann - initial API and implementation | |
| * Sebastian Millies - increase type safety & simplify reflection by using enums |
| /******************************************************************************* | |
| * Copyright (c) 2013 Rüdiger Herrmann | |
| * All rights reserved. This program and the accompanying materials | |
| * are made available under the terms of the Eclipse Public License v1.0 | |
| * which accompanies this distribution, and is available at | |
| * http://www.eclipse.org/legal/epl-v10.html | |
| * | |
| * Contributors: | |
| * Rüdiger Herrmann - initial API and implementation | |
| ******************************************************************************/ |
| private BigInteger f(int n, Map<Integer, BigInteger> cache) { | |
| BigInteger result = cache.putIfAbsent(n, RESERVED); | |
| if (result == null) { | |
| int half = (n + 1) / 2; | |
| CompletableFuture<BigInteger> completableFuture = new CompletableFuture<>(); | |
| CompletableFuture<BigInteger> futureResult = CompletableFuture.supplyAsync(() -> f(half - 1, cache)); | |
| futureResult.thenAcceptBothAsync(CompletableFuture.supplyAsync( |
First open a powershell terminal install the scoop package manager:
iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
| { | |
| "version": "15.6.2", | |
| "url": "https://aka.ms/vs/15/release/vs_community.exe", | |
| "homepage": "https://www.visualstudio.com/", | |
| "checkver": { | |
| "url": "https://docs.microsoft.com/en-us/visualstudio/releasenotes/vs2017-relnotes", | |
| "re": "Visual Studio 2017 version (\\d+\\.\\d+\\.\\d+)" | |
| }, | |
| "autoupdate": { | |
| "url": "https://aka.ms/vs/15/release/vs_community.exe" |
| package ...; | |
| import java.util.HashMap; | |
| import java.util.Map; | |
| import java.util.concurrent.ExecutorService; | |
| import java.util.concurrent.Executors; | |
| import java.util.concurrent.Semaphore; | |
| import java.util.concurrent.TimeUnit; | |
| import net.sf.ehcache.CacheException; |