git clone --depth=1 https://github.com/RadeonOpenCompute/rocm-cmake.git && \
mkdir 'rocm-cmake/build' && pushd "$_" && \
cmake -DCMAKE_INSTALL_PREFIX='/opt/rocm' .. && \
cmake --build . && \
sudo cmake --install . && \
popd
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
@Injectable() | |
class JWTInterceptor implements HttpInterceptor { | |
constructor(private router: Router) {} | |
intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> { | |
return next.handle(req).map((event: HttpEvent<any>) => { | |
if (event instanceof HttpResponse) { | |
// do stuff with response if you want |
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
#!/usr/bin/env python | |
from sys import argv, exit | |
if __name__ == '__main__': | |
if len(argv) < 2: | |
print "USAGE: {0} MODULE [SYMBOL]".format(argv[0]) | |
print "Open help() for given module, or given symbol from module" | |
exit(1) |