Example on how to run locally an AWS Lambda via API Gateway using localstack.
Based on...
| #!/bin/bash | |
| # README You probablyl don't need this script anymore. Please read the comments below to catch up. | |
| ## Description | |
| # Lenovo Carbon X1 Gen 7 - Audio and microphone fix - kernel 5.3+ required. | |
| # The script has only been tested for Arch and OpenSuse, | |
| # Original thread: https://forums.lenovo.com/t5/Ubuntu/Guide-X1-Carbon-7th-Generation-Ubuntu-compatability/td-p/4489823 | |
| # Prereq: Install Linux 5.3 or newer |
| """ | |
| Remove likes (favorite) from your tweets using twitter API | |
| you need to install twitter-client for python to use this code: | |
| pip install python-twitter ( more info https://github.com/bear/python-twitter) | |
| to use this you need to generate authntication tokens for your account | |
| find more info on (https://developer.twitter.com/en/docs/basics/authentication/guides/access-tokens) | |
| """ | |
| import asyncio |
| Dependences: | |
| sudo apt-get update | |
| sudo apt-get install build-essential | |
| apt-get install python-dev | |
| sudo pip install -U setuptools | |
| Steps: | |
| download from https://mrjbq7.github.io/ta-lib/install.html |
Example on how to run locally an AWS Lambda via API Gateway using localstack.
Based on...
| // Package main is a sample macOS-app-bundling program to demonstrate how to | |
| // automate the process described in this tutorial: | |
| // | |
| // https://medium.com/@mattholt/packaging-a-go-application-for-macos-f7084b00f6b5 | |
| // | |
| // Bundling the .app is the first thing it does, and creating the DMG is the | |
| // second. Making the DMG is optional, and is only done if you provide | |
| // the template DMG file, which you have to create beforehand. | |
| // | |
| // Example use: |
| wget https://storage.googleapis.com/golang/go1.10.1.linux-armv6l.tar.gz | |
| sudo tar -C /usr/local -xvf go1.10.1.linux-armv6l.tar.gz | |
| cat >> ~/.bashrc << 'EOF' | |
| export GOPATH=$HOME/go | |
| export PATH=/usr/local/go/bin:$PATH:$GOPATH/bin | |
| EOF | |
| source ~/.bashrc |
| fun <T : Any> Optional<T>.toNullable(): T? { | |
| return if (this.isPresent) { | |
| this.get() | |
| } else { | |
| null | |
| } | |
| } |
Here is an updated list of the colors that are currently implemented with a name.
To using colors on discord.js, this is a typedef Colors, Colors.Aqua to get the Aqua color.
| Name | Int value | Hex Code |
|---|---|---|
Default |
0 | #000000 |
Aqua |
1752220 | #1ABC9C |
DarkAqua |
1146986 | #11806A |
Green |
5763719 | #57F287 |
DarkGreen |
2067276 | #1F8B4C |
| // Implementacion Minima de un Pago usando el SDK para Java de MercadoPago | |
| //import com.mercadopago.MP; | |
| //import org.codehaus.jettison.json.JSONArray; | |
| //import org.codehaus.jettison.json.JSONObject; | |
| MP mp = new MP("ACCESS_TOKEN"); | |
| JSONObject payment = null; | |
| try { |