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
| # -*- coding: utf-8 -*- | |
| import json | |
| class ModelFactory(object): | |
| """Parse a JSONSchema and generate a class from it.""" | |
| TYPES = { | |
| 'string': str, |
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
| #include <stdio.h> | |
| #include <stdlib.h> | |
| int main (int argc, char **argv) | |
| { | |
| printf ("char: %lu\n", sizeof (char)); | |
| printf ("short: %lu\n", sizeof (short)); | |
| printf ("int: %lu\n", sizeof (int)); | |
| printf ("long: %lu\n", sizeof (long)); | |
| printf ("long long: %lu\n\n", sizeof (long long)); |
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
| [HttpInput] | |
| url = "127.0.0.1:9000" | |
| interval = 1 | |
| [JsonDecoder] | |
| encoding_name = "JSON" | |
| [DashboardOutput] | |
| address = "127.0.0.1:9001" |
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
| # -*- coding: utf-8 -*- | |
| from setuptools import setup, find_packages | |
| import sys | |
| import os | |
| NAME = '<package name>' | |
| KEYWORDS = '<keyword 1> <keyword 2>' | |
| DESC = '<package description>' |
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
| {match,[ | |
| {variable_name,"Mega"}, | |
| {assign_operator,"="}, | |
| {identifier,"graph"}, | |
| {left_parenthesis,"("}, | |
| {identifier,"id"}, | |
| {assign_operator,"="}, | |
| {left_bracket,"["}, | |
| {variable_name,"Help"}, | |
| {list_separator,","}, |
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
| baseURL = "https://example.com" | |
| languageCode = "en-us" | |
| title = "Example of Standard Web Component" |
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
| --- | |
| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| name: my-elixir-app | |
| namespace: default | |
| labels: | |
| app.kubernetes.io/name: my-elixir-app | |
| app.kubernetes.io/instance: myapp-cluster | |
| spec: |
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
| --- | |
| apiVersion: v1 | |
| kind: Service | |
| metadata: | |
| name: my-elixir-app-svc-headless | |
| namespace: default | |
| labels: | |
| app.kubernetes.io/name: my-elixir-app | |
| app.kubernetes.io/instance: myapp-svc-headless | |
| spec: |
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
| defmodule MyApp.MixProject do | |
| use Mix.Project | |
| def project do | |
| [ | |
| app: :my_app, | |
| version: "0.1.0", | |
| elixir: "~> 1.12", | |
| start_permanent: Mix.env() == :prod, | |
| deps: deps() |
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 Config | |
| config :datapio_cluster, | |
| service_name: [env: "MYAPP_SERVICE_NAME", default: nil], | |
| app_name: [env: "MYAPP_APP_NAME", default: "my_app"], | |
| cache_tables: [ | |
| some_set: [:id, :attr1, :attr2], | |
| some_other_set: [:id, :attr] | |
| ] |
OlderNewer