Inspired by https://github.com/altercation/solarized/ Before applying the theme enable high contrast mode.
This file contains hidden or 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
| cd $HOME | |
| wget -q -c -nc https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip | |
| unzip -qq -n ngrok-stable-linux-amd64.zip && rm ngrok-stable-linux-amd64.zip | |
| apt-add-repository ppa:fish-shell/release-3 -y > /dev/null | |
| apt-get update | |
| apt-get install -qq -o=Dpkg::Use-Pty=0 openssh-server pwgen | |
| echo root:pass | chpasswd | |
| mkdir -p /var/run/sshd | |
| echo "PermitRootLogin yes" >> /etc/ssh/sshd_config | |
| echo "PasswordAuthentication yes" >> /etc/ssh/sshd_config |
This file contains hidden or 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
| import pyrealsense2 as rs | |
| import numpy as np | |
| import cv2 | |
| from openpose import pyopenpose as op | |
| import matplotlib.pyplot as plt | |
| from mpl_toolkits.mplot3d import Axes3D | |
| # Configure depth and color streams | |
| pipeline = rs.pipeline() | |
| config = rs.config() |
This file contains hidden or 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
| let searchengine google = "https://www.google.com/search?glp=1&hl=EN&tci=g:2840&uule=w+CAIQICINVW5pdGVkIFN0YXRlcw&q=" | |
| let mapleader = "," | |
| map <Leader>r reloadTabUncached | |
| " Displays your public IP address in the status bar | |
| map ci :call getIP<CR> | |
| let blacklists = ["*youtube.com*"] | |
| map ,d scrollFullPageDown | |
| map ,u scrollFullPageUp | |
| let hintcharacters = "fjghtyeirucmdkbnxloewsapqz" | |
| set noautofocus |
This file contains hidden or 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
| import urllib.request | |
| import shutil | |
| ... | |
| # Download the file from `url` and save it locally under `file_name`: | |
| with urllib.request.urlopen(url) as response, open(file_name, 'wb') as out_file: |
This file contains hidden or 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
| from __future__ import print_function | |
| import httplib2 | |
| import os | |
| from oauth2client.file import Storage | |
| from apiclient import discovery | |
| from oauth2client import client | |
| from oauth2client import tools |
This file contains hidden or 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
| import numpy as np | |
| import cv2 as cv | |
| from matplotlib import pyplot as plt | |
| import sys | |
| np.set_printoptions(threshold=sys.maxsize) | |
| ig1 = cv.imread('i2.jpg', 0) | |
| ic1 = cv.imread('i2.jpg', 1) | |
| ig2 = cv.imread('i1.png', 0) | |
| ic2 = cv.imread('i1.png', 1) |
This file contains hidden or 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
| import os | |
| import string | |
| import math | |
| #import nltk | |
| lis = [] | |
| i = 0 | |
| ind = {} | |
| def binary_search(array, target): |
This file contains hidden or 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
| switch (d.get_type()) { | |
| case DirectoryIterator::DIRECTORY: { | |
| const char * pt = strrchr(d.leafname(), '.'); | |
| if (pt) | |
| if (binary_search(dasfile.begin(), dasfile.end(), pt)) { | |
| index_file(file, url, d, mime_map); | |
| break; | |
| } | |
| size_t new_limit = depth_limit; |