sudo apt-get install -y mongodb-org
python3 -m pip install -U pymongo
| " Mac OS X (requires curl) | |
| " ------------------------ | |
| command! -range=% SP <line1>,<line2>w !curl -F 'sprunge=<-' http://sprunge.us | tr -d '\n' | pbcopy | |
| command! -range=% CL <line1>,<line2>w !curl -F 'clbin=<-' https://clbin.com | tr -d '\n' | pbcopy | |
| command! -range=% VP <line1>,<line2>w !curl -F 'text=<-' http://vpaste.net | tr -d '\n' | pbcopy | |
| command! -range=% PB <line1>,<line2>w !curl -F 'c=@-' https://ptpb.pw/?u=1 | tr -d '\n' | pbcopy | |
| command! -range=% IX <line1>,<line2>w !curl -F 'f:1=<-' http://ix.io | tr -d '\n' | pbcopy | |
| command! -range=% EN <line1>,<line2>w !curl -F 'file=@-;' https://envs.sh | tr -d '\n' | pbcopy | |
| command! -range=% XO <line1>,<line2>w !curl -F 'file=@-' https://0x0.st | tr -d '\n' | pbcopy | |
| command! -range=% TB <line1>,<line2>w !nc termbin.com 9999 | tr -d '\n' | pbcopy |
| defmodule Box do | |
| defmacro __using__(_env) do | |
| quote do | |
| import Box | |
| end | |
| end | |
| @doc """ | |
| Define module with struct and typespec, in single line |
Hi, I am a fork from https://gist.github.com/patrickhammond/4ddbe49a67e5eb1b9c03.
A high level overview for what I need to do to get most of an Android environment setup and maintained on OSX higher Catalina and Big Sur with and without Android Studio been installed.
Considering the SDK is installed under /Users/<your_user>/Library/Android/sdk folder which is the Android Studio preferred SDK location, but it works fine under /usr/local/share/android-sdk as well, which is a location pretty much used on CI mostly.
https://github.com/shyiko/jabba instead ?
| # From .NET Core 3.0 you can use the command: `dotnet new gitignore` to generate a customizable .gitignore file | |
| *.swp | |
| *.*~ | |
| project.lock.json | |
| .DS_Store | |
| *.pyc | |
| # Visual Studio Code | |
| .vscode |
Ring handler a function which accepts a request (map) and returns a response (map).
Ring middleware
function (handler, &args -> function(request -> response) because it is a closure handler and &args are in scope within the returned handler function.
a function which accepts a "next handler" (the next handler in the chain) + any extra arguments and returns a handler (function), which will accept a request and return a response.
The PATH is an important concept when working on the command line. It's a list
of directories that tell your operating system where to look for programs, so
that you can just write script instead of /home/me/bin/script or
C:\Users\Me\bin\script. But different operating systems have different ways to
add a new directory to it:
In this article I’ll tell you about my pure functional library for Software Transactional Memory (STM) that I’ve built in C++. I adopted some advanced functional programming concepts that make it composable and convenient to use. Its implementation is rather small and robust, which differentiates the library from competitors. Let’s discuss what STM is and how to use it.
| { | |
| "configurations": [ | |
| { | |
| "environments": [ | |
| { | |
| "MINGW64_ROOT": "C:\\msys64\\mingw64", | |
| "BIN_ROOT": "${env.MINGW64_ROOT}\\bin", | |
| "FLAVOR": "x86_64-w64-mingw32", | |
| "TOOLSET_VERSION": "7.3.0", | |
| "INCLUDE": "${env.MINGW64_ROOT}\\include\\c++\\${env.TOOLSET_VERSION};${env.MINGW64_ROOT}\\include\\c++\\${env.TOOLSET_VERSION}\\tr1;${env.MINGW64_ROOT}\\include\\c++\\${env.TOOLSET_VERSION}\\${env.FLAVOR}", |
| import redis | |
| import cv2 | |
| import numpy as np | |
| import time | |
| import io | |
| from PIL import Image | |
| r = redis.StrictRedis.from_url('redis://:[email protected]:6379/1') | |
| img_path ="image" |