This gist shows you how to easily create a cassandra image with initial keyspace and values populated.
It is very generic: the entrypoint.sh
is able to execute any cql file located in /docker-entrypoint-initdb.d/
,
a bit like what you do to initialize a MySQL container.
You can add any *.sh
or *.cql
scripts inside /docker-entrypoint-initdb.d
, but note that:
*.sh
files will be executed BEFORE launching cassandra
#python3 | |
# It's simpler version of the example posted at: | |
# https://www.geeksforgeeks.org/union-find/ | |
class Graph: | |
edges = set() | |
def add_edge(self, src, dst): | |
'''Each edge has 2 vertices: source and destination.''' |
This guide shows how to setup an Android VM in order to intercept all HTTPS requests. This was originally intended to reverse PlayServices but should work with any app that does not use certificate pinning (i.e. every app that relies on the system certificate authorities).
Inspired by this guide how to install Android x86 in VirtualBox, this guide how to install a system certificate on Android and this guide how to use mitmproxy with VirtualBox.
from queue import PriorityQueue # essentially a binary heap | |
def dijkstra(G, start, goal): | |
""" Uniform-cost search / dijkstra """ | |
visited = set() | |
cost = {start: 0} | |
parent = {start: None} | |
todo = PriorityQueue() | |
todo.put((0, start)) |
This is not an exhaustive list of all interfaces in Go's standard library.
I only list those I think are important.
Interfaces defined in frequently used packages (like io
, fmt
) are included.
Interfaces that have significant importance are also included.
All of the following information is based on go version go1.8.3 darwin/amd64
.
# coding: utf-8 | |
# --- | |
# | |
# _You are currently looking at **version 1.5** of this notebook. To download notebooks and datafiles, as well as get help on Jupyter notebooks in the Coursera platform, visit the [Jupyter Notebook FAQ](https://www.coursera.org/learn/python-data-analysis/resources/0dhYG) course resource._ | |
# | |
# --- | |
# # Assignment 3 - More Pandas |
----- Tech -----
拡張現実【かくちょうげんじつ】 augmented reality, AR
投資家【とうしか】 investor
静的【せいてき】 static
def delete_first(self): | |
deleted = self.head | |
if self.head: | |
self.head = self.head.next | |
deleted.next = None | |
return deleted |