This is inspired by A half-hour to learn Rust and Zig in 30 minutes.
Your first Go program as a classical "Hello World" is pretty simple:
First we create a workspace for our project:
This is inspired by A half-hour to learn Rust and Zig in 30 minutes.
Your first Go program as a classical "Hello World" is pretty simple:
First we create a workspace for our project:
from readypipe import requests, starting_task, subtask, schedule, save, schedule_many, open_browser | |
from json import loads | |
from lxml import etree | |
import datetime | |
from pandas import read_csv | |
from requests.exceptions import ConnectTimeout | |
SEARCH_URL = 'https://www.fandango.com/%s_movietimes?mode=general&q=%s' | |
JSON_ENDPOINT = 'https://www.fandango.com/napi/theaterswithshowtimes?zipCode=%s&city=&state=&date=%s&page=1&favTheaterOnly=false&limit=10&isdesktop=true' |
# assuming Model is your model and options is a json/jsonb column. | |
# This uses the Postgres json append || operator. | |
# And wraps the option inside an array. | |
# producing [{},{}] multiple hashes inside a top level json array. | |
# It is very important that the hash is [{}] NOT {} as not having the array on the | |
# outside will cause the hash to replace the contents instead of appending to them. | |
new_option = [{ | |
name: option_name, |
FROM elixir:1.4.5 as asset-builder-mix-getter | |
ENV HOME=/opt/app | |
RUN mix do local.hex --force, local.rebar --force | |
# Cache elixir deps | |
COPY config/ $HOME/config/ | |
COPY mix.exs mix.lock $HOME/ | |
COPY apps/myproject_web/mix.exs $HOME/apps/myproject_web/ | |
COPY apps/myproject_web/config/ $HOME/apps/myproject_web/config/ |
# MYAPP/.deliver/config | |
APP="<APP NAME>" | |
MAIN_HOST="<BUILD & PRODUCTION HOST>" | |
MAIN_USER="<MAIN USER FOR BUILD AND DEPLOY>" | |
BUILD_HOST="${MAIN_HOST}" | |
BUILD_USER="${MAIN_USER}" | |
BUILD_AT="/tmp/edeliver/${APP}/builds" |
These methods in this gist worked for me on my U.S.-based keyboard layouts. I am unsure about other layouts. If you have problems, revert your changes; delete the registry key you created (and reboot).
Update: you should probably scroll down to approach 4 where I suggest using Microsoft PowerToys Keyboard Manager.
Navigate to and create a new binary value in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout
named Scancode Map
.
Set the environment variables
Install nano(or not if you intend to use vi)
yum install -y nano
Open ~/.profile
with nano ~/.profile
and add the following:
#!/bin/sh | |
# gource | |
# https://gource.io/ | |
# flutter | |
# https://github.com/flutter | |
# 1. clone or git pull all repos |
If you want a run-down of the 1.3 changes and the design decisions behidn those changes, check out the LonestarElixir Phoenix 1.3 keynote: https://www.youtube.com/watch?v=tMO28ar0lW8
To use the new phx.new
project generator, you can install the archive with the following command:
$ mix archive.install https://github.com/phoenixframework/archives/raw/master/phx_new.ez
Phoenix v1.3.0 is a backwards compatible release with v1.2.x. To upgrade your existing 1.2.x project, simply bump your phoenix dependency in mix.exs
: