add the following to build.sbt
TaskKey[String]("cp") <<= (externalDependencyClasspath in Runtime) map (_.files.absString)run show cp in sbt
| $pdf_previewer = "open -a Skim" |
| import com.sun.net.httpserver._ | |
| import java.net._ | |
| val server = HttpServer.create(new InetSocketAddress(8000), 0) | |
| server.createContext("/", new HttpHandler { | |
| def handle(exchange: HttpExchange) { | |
| exchange.sendResponseHeaders(200, 0) | |
| exchange.getResponseBody.write("hello".getBytes) | |
| exchange.getResponseBody.close() |
add the following to build.sbt
TaskKey[String]("cp") <<= (externalDependencyClasspath in Runtime) map (_.files.absString)run show cp in sbt
jdb: https://docs.oracle.com/javase/8/docs/technotes/tools/unix/jdb.html
javap: https://docs.oracle.com/javase/8/docs/technotes/tools/unix/javap.html
# compile
scalac -g:vars [source]
# run and it should ouput a port
env JAVA_OPTS="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n" scala [class]| // add libReact.a | |
| // import | |
| #import "RCTAsyncLocalStorage.h" | |
| // code | |
| RCTAsyncLocalStorage *asyncLocalStorage = [[RCTAsyncLocalStorage alloc] init]; | |
| dispatch_async([asyncLocalStorage methodQueue], ^{ | |
| [asyncLocalStorage multiGetKeys:@[@"widget_city"] callback:^(NSArray *response){ |
| #include <stdio.h> | |
| int main() { | |
| printf("%s\n", (char[]) {0b01101001, 0b00100000, 0b01101100, 0b01101111, 0b01110110, 0b01100101, 0b00100000, 0b01111001, 0b01101111, 0b01110101, '\0'}); | |
| } |
| cmake_minimum_required(VERSION 2.8.3) | |
| project(a2) | |
| ## Compile as C++11, supported in ROS Kinetic and newer | |
| add_compile_options(-std=c++11) | |
| ## Find catkin macros and libraries | |
| ## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz) | |
| ## is used, also find other catkin packages | |
| find_package(catkin REQUIRED COMPONENTS |