----- Tech -----
拡張現実【かくちょうげんじつ】 augmented reality, AR
投資家【とうしか】 investor
静的【せいてき】 static
| # Sample Nginx config with sane caching settings for modern web development | |
| # | |
| # Motivation: | |
| # Modern web development often happens with developer tools open, e. g. the Chrome Dev Tools. | |
| # These tools automatically deactivate all sorts of caching for you, so you always have a fresh | |
| # and juicy version of your assets available. | |
| # At some point, however, you want to show your work to testers, your boss or your client. | |
| # After you implemented and deployed their feedback, they reload the testing page – and report | |
| # the exact same issues as before! What happened? Of course, they did not have developer tools | |
| # open, and of course, they did not empty their caches before navigating to your site. |
| def delete_first(self): | |
| deleted = self.head | |
| if self.head: | |
| self.head = self.head.next | |
| deleted.next = None | |
| return deleted |
----- Tech -----
拡張現実【かくちょうげんじつ】 augmented reality, AR
投資家【とうしか】 investor
静的【せいてき】 static
| # 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 |
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.
| 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 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.
| #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 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