Skip to content

Instantly share code, notes, and snippets.

View SamuelMarks's full-sized avatar
:octocat:
C > Rust > Go > TypeScript > C++

Samuel Marks SamuelMarks

:octocat:
C > Rust > Go > TypeScript > C++
View GitHub Profile
@SamuelMarks
SamuelMarks / rocm.md
Last active July 24, 2023 03:38 — forked from rigtorp/rocm.md
How to build rocm 3.6.x beta from source

Install rocm-cmake

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
@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
@SamuelMarks
SamuelMarks / pyman
Last active January 2, 2016 04:09 — forked from ekimekim/pyman
#!/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)