Instantly share code, notes, and snippets.

View cni_basic.json
{
"cniVersion": <CNI version spec>,
"name": <Network name>
"type": <Plugin name, matches the name of the executable>
"args": <Extra args>
"ipMasq": <Whether to SNAT the traffic origniating from the container>
"ipam": {
"type": <IPAM Plugin name, matches the name of the executable>
"subnet": <Ip addr range to allocate the IPs from>
"routes": {
View NavmeshMovement.cs
/*
This code works well for an ostensibly-static world in Unity, to avoid doing raycasts or anything similar.
Might need some adjustment to the specifics of how it currently works in Unity or your scene
(and this was written without proper checking, but it's informed pseudocode)
*/
Vector3[] current_move_path = null;
int current_move_path_index = 0;
...
View stuff.md

Stuff and things

head of mtcars

head(mtcars)
View stuff.md

Stuff and things

head of mtcars

head(mtcars)
View download_files.py
import urllib.request
opener = urllib.request.build_opener()
opener.addheaders = [('User-agent', 'Mozilla/5.0')]
urllib.request.install_opener(opener)
urllib.request.urlretrieve("type URL here", "path/file_name")
View gist:340377d2668af209a782604aaa2ae16c
import React from "react";
import "bootstrap/dist/css/bootstrap.min.css";
import "./index.css";
const card = props => {
let posts = props.posts;
let limitPerPage = props.limit;
if (posts == null || posts == undefined || posts.length == 0) {
debugger
return <div />;
View shap_vis.html
# SHAP Value visualization for team A
shap.initjs()
shap.force_plot(explainer.expected_value[1], shap_values_A[1], data_for_prediction_A)
# SHAP Value visualization for team B
shap.force_plot(explainer.expected_value[1], shap_values_B[1], data_for_prediction_B)
View cmdline.txt
Usage: [OPTIONS]
Options:
-h,--help Print this help message and exit
--headless Do not initialize graphics subsystem
--nolimit Disable frame limiter
--flushgpu Enable GPU flushing
--gl2 Force use of OpenGL2
--landscape Force landscape orientation
View projects.md

Professional Works

* MedicFibers - http://www.medicfibers.com
* BrownBag - 
* V. Haridas - 
* S.k. Mishra - 
* INFORIA-2k18

API Projects

* Piczy 
View output_log.txt
Log uploaded on Saturday, September 22, 2018, 7:46:39 AM
Loaded mods:
Core: (no assemblies)
HugsLib[5.0.2]: 0Harmony(1.1.0.0), HugsLib(1.0.0.0)
Psychology: $HugsLibChecker(0.5.0.0), Psychology(18.9.12.0)
More Trait Slots - B19: 0Harmony(1.2.0.1), More Trait Slots(1.0.6832.25626)
CIWS_Core [B19]: CIWSMedicinal(0.15.0.1)
CIWS_Animal [B19]: (no assemblies)
CIWS_Plant [B19]: (no assemblies)
CIWS_Weapon [B19]: (no assemblies)