Skip to content

Instantly share code, notes, and snippets.

View atomic's full-sized avatar
💎
🙌

atomic atomic

💎
🙌
  • Santa Clara
  • 18:31 (UTC -12:00)
View GitHub Profile
#!/usr/bin/env python3
"""
Example script demonstrating correct usage of CuOptServiceWebHostedClient
with NVIDIA's hosted cuOpt API.
This script shows how to:
1. Create a web-hosted client with the correct endpoint
2. Use the client to make requests to NVIDIA's cuOpt API
3. Handle authentication and response processing
@atomic
atomic / setup.sh
Created September 21, 2017 19:15
Cloudlanes setup script
#! /bin/sh
if [ "$(id -u)" != "0" ]; then
echo "This script must be run as root" 1>&2
exit 1
fi
yum install wget lvm2
wget https://www.dropbox.com/s/8he6bv00tlencmd/sysprep_cl1500.tar.gz
wget https://www.dropbox.com/s/8ccc9xwa2u21q81/cl1500.tar
@atomic
atomic / The Technical Interview Cheat Sheet.md
Created March 20, 2017 20:38 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
/usr/lib/jvm/java-8-oracle/bin/java -Didea.launcher.port=7533 -Didea.launcher.bin.path=/opt/android-studio/bin -Dfile.encoding=UTF-8 -classpath /usr/lib/jvm/java-8-oracle/jre/lib/charsets.jar:/usr/lib/jvm/java-8-oracle/jre/lib/deploy.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/cldrdata.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/dnsns.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/jfxrt.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/localedata.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/nashorn.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/sunec.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/sunjce_provider.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/sunpkcs11.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/zipfs.jar:/usr/lib/jvm/java-8-oracle/jre/lib/javaws.jar:/usr/lib/jvm/java-8-oracle/jre/lib/jce.jar:/usr/lib/jvm/java-8-oracle/jre/lib/jfr.jar:/usr/lib/jvm/java-8-oracle/jre/lib/jsse.jar:/usr/lib/jvm/java-8-oracle/jre/lib/management-agent.jar:/usr/lib/jvm/java-8-oracle/jre/lib/plugin.jar:/usr/lib/jvm/java-8-oracle/jre/lib/resource
@atomic
atomic / gist:f4f06503567c8cdcaca9
Last active August 29, 2015 14:15
cVim for Google Chrome vim emulator
" File: gistfile1.vim
" Author: Tony Lim
" Description: Config files for cvim
" Last Modified: February 08, 2015
" Settings
"
set typelinkhints
set smoothscroll
let barposition = "bottom"
@atomic
atomic / gist:cc4fa0e484d74eb028d7
Created January 19, 2015 01:49
Vim regex syntax test
function! InjectCommentHL()
syn region longcomment start=/\/\*/ end=/\*\// keepend
syn match itemcomment /@\<\w+\>/ contained containedin=longcomment
hi Special ctermfg=177 guifg=#d787ff
hi Debug ctermfg=202 guifg=#FF322F
hi link itemcomment Debug
hi link longcomment Special
endfunction
@atomic
atomic / .gitignore
Last active August 29, 2015 14:07
CPP Practice Files
# Qt-es
#decided to include Qt
#*.pro
*.h.autosave
*.cpp.autosave
*.pro.user
*.pro.user.*
moc_*.cpp
qrc_*.cpp
@atomic
atomic / 0_reuse_code.js
Last active August 29, 2015 14:07
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console