Skip to content

Instantly share code, notes, and snippets.

View tony-nyagah's full-sized avatar
💭

Antony Nyagah tony-nyagah

💭
View GitHub Profile
@tony-nyagah
tony-nyagah / tmux-cheatsheet.markdown
Created August 15, 2019 12:53 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@tony-nyagah
tony-nyagah / RunAsAdmin.py
Created February 16, 2019 12:56 — forked from Devligue/RunAsAdmin.py
Collection of Python code snippets usefull to deal with admin privilages on Windows
#!python
# coding: utf-8
# by GaryLee
# https://gist.github.com/GaryLee/d1cf2089c3a515691919
import sys
import ctypes
def run_as_admin(argv=None, debug=False):
// Here we define our query as a multi-line string
var query = `
query ($username: String, $type: MediaType) {
MediaListCollection(userName: $username, type: $type) {
lists {
entries {
status
score(format: POINT_10)
progress
progressVolumes
@tony-nyagah
tony-nyagah / index.html
Created March 29, 2018 15:35
Random Quote Generator @freeCodeCamp
<head>
<meta charset="UTF-8">
</head>
<!-- bootstrap styling -->
<div class="container-fluid">
<div class="row text-center">
<h2>Very Simple Random Quote Generator</h2>
</div>
<div class="row text-center">
<div class="col-xs-12 well message">

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.