Mix.install([
{:bumblebee, github: "elixir-nx/bumblebee", ref: "23de64b1b88ed3aad266025c207f255312b80ba6"},
{:nx, github: "elixir-nx/nx", sparse: "nx", override: true},
{:exla, github: "elixir-nx/nx", sparse: "exla", override: true},
{:axon, "~> 0.5.1"},
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# CLI | |
sudo apt update -y | |
sudo apt install -y \ | |
git curl docker.io \ | |
build-essential pkg-config autoconf bison rustc cargo clang \ | |
libssl-dev libreadline-dev zlib1g-dev libyaml-dev libreadline-dev libncurses5-dev libffi-dev libgdbm-dev libjemalloc2 \ | |
libvips imagemagick libmagickwand-dev \ | |
redis-tools sqlite3 libsqlite3-0 libmysqlclient-dev \ | |
rbenv apache2-utils |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"id": 1, | |
"title": "ACTIVATE YOU BRD online", | |
"content": "Download the app on your phone and register online." | |
}, | |
{ | |
"id": 2, | |
"title": "INSTANT PAYMENTS AS FAST AS YOU", | |
"content": "Day or night, any transfer reaches an account instantly, between participating banks in the interbank payment system. Main benefits: you can transfer amounts smaller than 50,000 Lei the payment will be processed in maximum 20 seconds no differential commission you benefit from the service as an individual" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def extract(changeset) do | |
file_name = changeset.data.name | |
data = File.read!("#{@data_folder}/pages/#{file_name}") | |
case String.split(data, ~r/\n-{3,}\n/, parts: 2) do | |
[""] -> | |
%{frontmatter: nil, content: nil} | |
[frontmatter, content] -> | |
%{ | |
frontmatter: parse_yaml(frontmatter), | |
content: content |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# A Swagger 2.0 (a.k.a. OpenAPI) definition of the Engine API. | |
# | |
# This is used for generating API documentation and the types used by the | |
# client/server. See api/README.md for more information. | |
# | |
# Some style notes: | |
# - This file is used by ReDoc, which allows GitHub Flavored Markdown in | |
# descriptions. | |
# - There is no maximum line length, for ease of editing and pretty diffs. | |
# - operationIds are in the format "NounVerb", with a singular noun. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Afrikaans | af | |
---|---|---|
Albanian | sq | |
Arabic (Algeria) | ar-dz | |
Arabic (Bahrain) | ar-bh | |
Arabic (Egypt) | ar-eg | |
Arabic (Iraq) | ar-iq | |
Arabic (Jordan) | ar-jo | |
Arabic (Kuwait) | ar-kw | |
Arabic (Lebanon) | ar-lb | |
Arabic (Libya) | ar-ly |
Generally, you will add a git remote for your Heroku app during the Heroku app creation process, i.e. heroku create
. However, if you are working on an existing app and want to add git remotes to enable manual deploys, the following commands may be useful.
Note that on Heroku, you must always use master
as the destination branch on the remote. If you want to deploy a different branch, you can use the syntax local_branch:destination_branch
seen below (in this example, we push the local staging
branch to the master
branch on heroku.
$ git remote add staging https://git.heroku.com/staging-app.git
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { cond, always, T, whereEq } from "ramda"; | |
export const getProductPrice = cond([ | |
[ | |
whereEq({ | |
type: "product1", | |
currency: "czk", | |
}), | |
({ price }) => `${price} Kc`, | |
], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const persooMachine = Machine({ | |
id: "persoo", | |
initial: "initialize", | |
states: { | |
initialize: { | |
type: "parallel", | |
states: { | |
waitForPersooJS: { | |
initial: "fetching", | |
states: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function convertToNumber(value) { | |
const asNumber = parseFloat(value); | |
return Number.isNaN(asNumber) ? 0 : asNumber; | |
} | |
function getNodeZIndex(node) { | |
const computedIndex = convertToNumber(window.getComputedStyle(node).zIndex); | |
const styleIndex = convertToNumber(node.style.zIndex); | |
if (computedIndex > styleIndex) { |
NewerOlder