text:
# Azure SQL
[![Changelog](https://img.shields.io/badge/changelog-release-green.svg)](CHANGELOG.md) [![Notice](https://img.shields.io/badge/notice-copyright-yellow.svg)](NOTICE) [![Apache V2 License](https://img.shields.io/badge/license-Apache%20V2-orange.svg)](LICENSE) [![TF Registry](https://img.shields.io/badge/terraform-registry-blue.svg)](https://registry.terraform.io/modules/claranet/db-sql/azurerm/)

This Terraform module creates an [Azure SQL Server](https://docs.microsoft.com/en-us/azure/sql-database/sql-database-servers)
and associated databases in an optional [SQL Elastic Pool](https://docs.microsoft.com/en-us/azure/sql-database/sql-database-elastic-pool)
with [DTU purchasing model](https://docs.microsoft.com/en-us/azure/sql-database/sql-database-service-tiers-dtu) or [vCore purchasing model](https://docs.microsoft.com/en-us/azure/azure-sql/database/resource-limits-vcore-elastic-pools)
only along with [Firewall rules](https://docs.microsoft.com/en-us/azure/sql-database/sql-database-firewall-configure)
and [Diagnostic settings](https://docs.microsoft.com/en-us/azure/sql-database/sql-database-metrics-diag-logging)
enabled.

## Global versioning rule for Claranet Azure modules

| Module version | Terraform version | AzureRM version |
| -------------- | ----------------- | --------------- |
| >= 7.x.x       | 1.3.x             | >= 3.0          |
| >= 6.x.x       | 1.x               | >= 3.0          |
| >= 5.x.x       | 0.15.x            | >= 2.0          |
| >= 4.x.x       | 0.13.x / 0.14.x   | >= 2.0          |
| >= 3.x.x       | 0.12.x            | >= 2.0          |
| >= 2.x.x       | 0.12.x            | < 2.0           |
| <  2.x.x       | 0.11.x            | < 2.0           |

## Contributing

If you want to contribute to this repository, feel free to use our [pre-commit](https://pre-commit.com/) git hook configuration
which will help you automatically update and format some files for you by enforcing our Terraform code module best-practices.

More details are available in the [CONTRIBUTING.md](./CONTRIBUTING.md#pull-request-process) file.

## Usage

This module is optimized to work with the [Claranet terraform-wrapper](https://github.com/claranet/terraform-wrapper) tool
which set some terraform variables in the environment needed by this module.
More details about variables set by the `terraform-wrapper` available in the [documentation](https://github.com/claranet/terraform-wrapper#environment).

```hcl
module "azure_region" {
  source  = "claranet/regions/azurerm"
  version = "x.x.x"

  azure_region = var.azure_region
}

module "rg" {
  source  = "claranet/rg/azurerm"
  version = "x.x.x"

  location    = module.azure_region.location
  client_name = var.client_name
  environment = var.environment
  stack       = var.stack
}

module "logs" {
  source  = "claranet/run/azurerm//modules/logs"
  version = "x.x.x"

  client_name         = var.client_name
  environment         = var.environment
  stack               = var.stack
  location            = module.azure_region.location
  location_short      = module.azure_region.location_short
  resource_group_name = module.rg.resource_group_name
}

resource "random_password" "admin_password" {
  special          = true
  override_special = "#$%&-_+{}<>:"
  upper            = true
  lower            = true
  number           = true
  length           = 32
}

# Elastic Pool
module "sql_elastic" {
  source  = "claranet/db-sql/azurerm"
  version = "x.x.x"

  client_name         = var.client_name
  environment         = var.environment
  location            = module.azure_region.location
  location_short      = module.azure_region.location_short
  stack               = var.stack
  resource_group_name = module.rg.resource_group_name

  administrator_login    = "adminsqltest"
  administrator_password = random_password.admin_password.result
  create_databases_users = true

  elastic_pool_enabled  = true
  elastic_pool_max_size = "50"
  elastic_pool_sku = {
    tier     = "GeneralPurpose"
    capacity = 2
  }

  logs_destinations_ids = [
    module.logs.log_analytics_workspace_id,
    module.logs.logs_storage_account_id,
  ]

  databases = [
    {
      name        = "db1"
      max_size_gb = 50
    },
    {
      name        = "db2"
      max_size_gb = 180
    }
  ]

  custom_users = [
    {
      database = "db1"
      name     = "db1_custom1"
      roles    = ["db_accessadmin", "db_securityadmin"]
    },
    {
      database = "db1"
      name     = "db1_custom2"
      roles    = ["db_accessadmin", "db_securityadmin"]
    },
    {
      database = "db2"
      name     = "db2_custom1"
      roles    = []
    },
    {
      database = "db2"
      name     = "db2_custom2"
      roles    = ["db_accessadmin", "db_securityadmin"]
    }
  ]
}

# Single Database

module "sql_single" {
  source  = "claranet/db-sql/azurerm"
  version = "x.x.x"

  client_name         = var.client_name
  environment         = var.environment
  location            = module.azure_region.location
  location_short      = module.azure_region.location_short
  stack               = var.stack
  resource_group_name = module.rg.resource_group_name

  administrator_login    = "adminsqltest"
  administrator_password = random_password.admin_password.result
  create_databases_users = true

  elastic_pool_enabled = false

  logs_destinations_ids = [
    module.logs.log_analytics_workspace_id,
    module.logs.logs_storage_account_id,
  ]

  databases = [
    {
      name        = "db1"
      max_size_gb = 50
    },
    {
      name        = "db2"
      max_size_gb = 180
    }
  ]

  custom_users = [
    {
      database = "db1"
      name     = "db1_custom1"
      roles    = ["db_accessadmin", "db_securityadmin"]
    },
    {
      database = "db1"
      name     = "db1_custom2"
      roles    = ["db_accessadmin", "db_securityadmin"]
    },
    {
      database = "db2"
      name     = "db2_custom1"
      roles    = []
    },
    {
      database = "db2"
      name     = "db2_custom2"
      roles    = ["db_accessadmin", "db_securityadmin"]
    }
  ]
}
```

## Providers

| Name | Version |
|------|---------|
| azurecaf | ~> 1.2, >= 1.2.22 |
| azurerm | ~> 3.39 |

## Modules

| Name | Source | Version |
|------|--------|---------|
| custom\_users | ./modules/databases_users | n/a |
| databases\_users | ./modules/databases_users | n/a |
| elastic\_pool\_db\_logging | claranet/diagnostic-settings/azurerm | ~> 6.4.1 |
| pool\_logging | claranet/diagnostic-settings/azurerm | ~> 6.4.1 |
| single\_db\_logging | claranet/diagnostic-settings/azurerm | ~> 6.4.1 |

## Resources

| Name | Type |
|------|------|
| [azurerm_mssql_database.elastic_pool_database](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/mssql_database) | resource |
| [azurerm_mssql_database.single_database](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/mssql_database) | resource |
| [azurerm_mssql_database_extended_auditing_policy.elastic_pool_db](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/mssql_database_extended_auditing_policy) | resource |
| [azurerm_mssql_database_extended_auditing_policy.single_db](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/mssql_database_extended_auditing_policy) | resource |
| [azurerm_mssql_elasticpool.elastic_pool](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/mssql_elasticpool) | resource |
| [azurerm_mssql_firewall_rule.firewall_rule](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/mssql_firewall_rule) | resource |
| [azurerm_mssql_server.sql](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/mssql_server) | resource |
| [azurerm_mssql_server_extended_auditing_policy.sql_server](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/mssql_server_extended_auditing_policy) | resource |
| [azurerm_mssql_server_security_alert_policy.sql_server](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/mssql_server_security_alert_policy) | resource |
| [azurerm_mssql_server_vulnerability_assessment.sql_server](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/mssql_server_vulnerability_assessment) | resource |
| [azurerm_sql_virtual_network_rule.vnet_rule](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/sql_virtual_network_rule) | resource |
| [azurecaf_name.sql](https://registry.terraform.io/providers/aztfmod/azurecaf/latest/docs/data-sources/name) | data source |
| [azurecaf_name.sql_dbs](https://registry.terraform.io/providers/aztfmod/azurecaf/latest/docs/data-sources/name) | data source |
| [azurecaf_name.sql_pool](https://registry.terraform.io/providers/aztfmod/azurecaf/latest/docs/data-sources/name) | data source |

## Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| administrator\_login | Administrator login for SQL Server | `string` | n/a | yes |
| administrator\_password | Administrator password for SQL Server | `string` | n/a | yes |
| alerting\_email\_addresses | List of email addresses to send reports for threat detection and vulnerability assesment | `list(string)` | `[]` | no |
| allowed\_cidr\_list | Allowed IP addresses to access the server in CIDR format. Default to all Azure services | `list(string)` |
[
  "<IP_ADDRESS>/32"
]
 | no |
| allowed\_subnets\_ids | List of Subnet ID to allow to connect to the SQL Instance | `list(string)` | `[]` | no |
| azuread\_administrator | Azure AD Administrator configuration block of this SQL Server. |
object({
    login_username              = optional(string)
    object_id                   = optional(string)
    tenant_id                   = optional(string)
    azuread_authentication_only = optional(bool)
  })
 | `null` | no |
| backup\_retention | Definition of long term backup retention for all the databases in this SQL Server. |
object({
    weekly_retention  = optional(number)
    monthly_retention = optional(number)
    yearly_retention  = optional(number)
    week_of_year      = optional(number)
  })
 | `{}` | no |
| client\_name | Client name/account used in naming | `string` | n/a | yes |
| connection\_policy | The connection policy the server will use. Possible values are `Default`, `Proxy`, and `Redirect` | `string` | `"Default"` | no |
| create\_databases\_users | True to create a user named <db>\_user on each database with generated password and role db\_owner. | `bool` | `true` | no |
| custom\_diagnostic\_settings\_name | Custom name of the diagnostics settings, name will be 'default' if not set. | `string` | `"default"` | no |
| custom\_users | List of objects for custom users creation.
    Password are generated.
    These users are created within the "custom\_users" submodule. |
list(object({
    name     = string
    database = string
    roles    = optional(list(string))
  }))
 | `[]` | no |
| databases | List of the databases configurations for this server. |
list(object({
    name                        = string
    license_type                = optional(string)
    max_size_gb                 = number
    create_mode                 = optional(string)
    min_capacity                = optional(number)
    auto_pause_delay_in_minutes = optional(number)
    read_scale                  = optional(string)
    read_replica_count          = optional(number)
    creation_source_database_id = optional(string)
    restore_point_in_time       = optional(string)
    recover_database_id         = optional(string)
    restore_dropped_database_id = optional(string)
    storage_account_type        = optional(string, "Geo")
    database_extra_tags         = optional(map(string), {})
  }))
 | `[]` | no |
| databases\_collation | SQL Collation for the databases | `string` | `"SQL_Latin1_General_CP1_CI_AS"` | no |
| databases\_extended\_auditing\_enabled | True to enable extended auditing for SQL databases | `bool` | `false` | no |
| databases\_extended\_auditing\_retention\_days | Databases extended auditing logs retention | `number` | `30` | no |
| databases\_zone\_redundant | True to have databases zone redundant, which means the replicas of the databases will be spread across multiple availability zones. This property is only settable for `Premium` and `Business Critical` databases. | `bool` | `null` | no |
| default\_tags\_enabled | Option to enable or disable default tags | `bool` | `true` | no |
| elastic\_pool\_custom\_name | Name of the SQL Elastic Pool, generated if not set. | `string` | `""` | no |
| elastic\_pool\_databases\_max\_capacity | The maximum capacity (DTU or vCore) any one database can consume in the Elastic Pool. Default to the max Elastic Pool capacity. | `number` | `null` | no |
| elastic\_pool\_databases\_min\_capacity | The minimum capacity (DTU or vCore) all databases are guaranteed in the Elastic Pool. Defaults to 0. | `number` | `0` | no |
| elastic\_pool\_enabled | True to deploy the databases in an ElasticPool, single databases are deployed otherwise. | `bool` | `false` | no |
| elastic\_pool\_extra\_tags | Extra tags to add on ElasticPool | `map(string)` | `{}` | no |
| elastic\_pool\_license\_type | Specifies the license type applied to this database. Possible values are `LicenseIncluded` and `BasePrice` | `string` | `null` | no |
| elastic\_pool\_max\_size | Maximum size of the Elastic Pool in gigabytes | `string` | `null` | no |
| elastic\_pool\_sku | SKU for the Elastic Pool with tier and eDTUs capacity. Premium tier with zone redundancy is mandatory for high availability.
    Possible values for tier are `GeneralPurpose`, `BusinessCritical` for vCore models and `Basic`, `Standard`, or `Premium` for DTU based models.
    See https://docs.microsoft.com/en-us/azure/sql-database/sql-database-dtu-resource-limits-elastic-pools" |
object({
    tier     = string,
    capacity = number,
  })
 | `null` | no |
| elastic\_pool\_zone\_redundant | True to have the Elastic Pool zone redundant, SKU tier must be Premium to use it. This is mandatory for high availability. | `bool` | `false` | no |
| environment | Project environment | `string` | n/a | yes |
| extra\_tags | Extra tags to add | `map(string)` | `{}` | no |
| location | Azure location for SQL Server. | `string` | n/a | yes |
| location\_short | Short string for Azure location. | `string` | n/a | yes |
| logs\_categories | Log categories to send to destinations. | `list(string)` | `null` | no |
| logs\_destinations\_ids | List of destination resources IDs for logs diagnostic destination.
Can be `Storage Account`, `Log Analytics Workspace` and `Event Hub`. No more than one of each can be set.
If you want to specify an Azure EventHub to send logs and metrics to, you need to provide a formated string with both the EventHub Namespace authorization send ID and the EventHub name (name of the queue to use in the Namespace) separated by the `|` character. | `list(string)` | n/a | yes |
| logs\_metrics\_categories | Metrics categories to send to destinations. | `list(string)` | `null` | no |
| logs\_retention\_days | Number of days to keep logs on storage account. | `number` | `30` | no |
| name\_prefix | Optional prefix for the generated name | `string` | `""` | no |
| name\_suffix | Optional suffix for the generated name | `string` | `""` | no |
| outbound\_network\_restriction\_enabled | Whether outbound network traffic is restricted for this server | `bool` | `false` | no |
| point\_in\_time\_restore\_retention\_days | Point In Time Restore configuration. Value has to be between `7` and `35` | `number` | `7` | no |
| public\_network\_access\_enabled | True to allow public network access for this server | `bool` | `false` | no |
| resource\_group\_name | Resource group name | `string` | n/a | yes |
| security\_storage\_account\_access\_key | Storage Account access key used to store security logs and reports | `string` | `null` | no |
| security\_storage\_account\_blob\_endpoint | Storage Account blob endpoint used to store security logs and reports | `string` | `null` | no |
| security\_storage\_account\_container\_name | Storage Account container name where to store SQL Server vulneralibility assessment | `string` | `null` | no |
| server\_custom\_name | Name of the SQL Server, generated if not set. | `string` | `""` | no |
| server\_extra\_tags | Extra tags to add on SQL Server or ElasticPool | `map(string)` | `{}` | no |
| server\_version | Version of the SQL Server. Valid values are: 2.0 (for v11 server) and 12.0 (for v12 server). See https://www.terraform.io/docs/providers/azurerm/r/sql_server.html#version | `string` | `"12.0"` | no |
| single\_databases\_sku\_name | Specifies the name of the SKU used by the database. For example, `GP_S_Gen5_2`, `HS_Gen4_1`, `BC_Gen5_2`. Use only if `elastic_pool_enabled` variable is set to `false`. More documentation [here](https://docs.microsoft.com/en-us/azure/azure-sql/database/service-tiers-general-purpose-business-critical) | `string` | `"GP_Gen5_2"` | no |
| sql\_server\_extended\_auditing\_enabled | True to enable extended auditing for SQL Server | `bool` | `false` | no |
| sql\_server\_extended\_auditing\_retention\_days | Server extended auditing logs retention | `number` | `30` | no |
| sql\_server\_security\_alerting\_enabled | True to enable security alerting for this SQL Server | `bool` | `false` | no |
| sql\_server\_vulnerability\_assessment\_enabled | True to enable vulnerability assessment for this SQL Server | `bool` | `false` | no |
| stack | Project stack name | `string` | n/a | yes |
| threat\_detection\_policy\_disabled\_alerts | Specifies a list of alerts which should be disabled. Possible values include `Access_Anomaly`, `Sql_Injection` and `Sql_Injection_Vulnerability` | `list(string)` | `[]` | no |
| threat\_detection\_policy\_enabled | True to enable thread detection policy on the databases | `bool` | `false` | no |
| threat\_detection\_policy\_retention\_days | Specifies the number of days to keep in the Threat Detection audit logs | `number` | `7` | no |
| tls\_minimum\_version | The TLS minimum version for all SQL Database associated with the server. Valid values are: `1.0`, `1.1` and `1.2`. | `string` | `"1.2"` | no |
| use\_caf\_naming | Use the Azure CAF naming provider to generate default resource name. `server_custom_name` and `elastic_pool_custom_name` override this if set. Legacy default name is used if this is set to `false`. | `bool` | `true` | no |
| use\_caf\_naming\_for\_databases | Use the Azure CAF naming provider to generate databases names. | `bool` | `false` | no |

## Outputs

| Name | Description |
|------|-------------|
| custom\_databases\_users | Map of the custom SQL Databases users |
| custom\_databases\_users\_roles | Map of the custom SQL Databases users roles |
| default\_administrator\_databases\_connection\_strings | Map of the SQL Databases with administrator credentials connection strings |
| default\_databases\_users | Map of the SQL Databases dedicated users |
| identity | Identity block with principal ID and tenant ID used for this SQL Server |
| security\_alert\_policy\_id | ID of the MS SQL Server Security Alert Policy |
| sql\_administrator\_login | SQL Administrator login |
| sql\_administrator\_password | SQL Administrator password |
| sql\_databases | SQL Databases |
| sql\_databases\_id | Map of the SQL Databases IDs |
| sql\_elastic\_pool | SQL Elastic Pool |
| sql\_elastic\_pool\_id | ID of the SQL Elastic Pool |
| sql\_server | SQL Server |
| terraform\_module | Information about this Terraform module |
| vulnerability\_assessment\_id | ID of the MS SQL Server Vulnerability Assessment |

## Related documentation

Microsoft Azure root documentation: [docs.microsoft.com/en-us/azure/sql-database/](https://docs.microsoft.com/en-us/azure/sql-database/)

repository: claranet/terraform-azurerm-db-sql

gha_language: HCL

repo_name: claranet/terraform-azurerm-db-sql


text:
---
title: "MSU PhD Roles and Policy Manual"
author: "authored by the Industrial and Organizational Program faculty"
date: "2021-02-02T21:21:22Z"
tags: [Psychology]
link: "https://bookdown.org/kulasj/phdmanual/"
length_weight: "5.4%"
cover: "https://bookdown.org/kulasj/phdmanual/manual.png"
pinned: false
---

This is the policy manual for the Montclair State University PhD program in Industrial and Organizational Psychology. The output format for this manual is bookdown::gitbook. [...] This is the policy manual for the Montclair State University PhD program in Industrial and Organizational Psychology, last updated ...

license: MIT

branch_name: refs/heads/main

extension: md

gha_language: R

gha_license_id: MIT

license_type: permissive


text:
# Arduino-SmartAlarm
A school project which is an alarm controllable via an LCD/Bluetooth

## Material used
- Arduino Uno R3
- A buzzer
- ME Bluetooth Module (any bluetooth module should work though)
- DS3231 RTC
- LCD Keypad Shield VMA203

## Software used
- [RTC library by Makuna](https://github.com/Makuna/Rtc)

## Files
- [License](https://github.com/Arc13/Arduino-SmartAlarm/blob/master/LICENSE)
- Professionnal™ schematic Soon™
- Bluetooth communication syntax Soon™ too

repository: Kuruyia/Arduino-SmartAlarm

branch_name: refs/heads/master

repo_name: Kuruyia/Arduino-SmartAlarm


text:
# MongoDB for Kelda

This repository implements a MongoDB specification for Kelda.js.  See
[Kelda](http://kelda.io) for more information.

```javascript
var Mongo = require("github.com/kelda/mongo");

var deployment = createDeployment({});
(new Mongo(3)).deploy(deployment);
```

repository: luise/mongo

repo_name: luise/mongo


text:
# Modulo

Arithmetic modulo operator, returns the remainder from dividing two numbers.

## Number modulo - int
If the lhs and rhs are ints then the expression will be calculated with ints.

Given a sample.yml file of:
```yaml
a: 13
b: 2
```
then
```bash
yq '.a = .a % .b' sample.yml
```
will output
```yaml
a: 1
b: 2
```

## Number modulo - float
If the lhs or rhs are floats then the expression will be calculated with floats.

Given a sample.yml file of:
```yaml
a: 12
b: 2.5
```
then
```bash
yq '.a = .a % .b' sample.yml
```
will output
```yaml
a: !!float 2
b: 2.5
```

## Number modulo - int by zero
If the lhs is an int and rhs is a 0 the result is an error.

Given a sample.yml file of:
```yaml
a: 1
b: 0
```
then
```bash
yq '.a = .a % .b' sample.yml
```
will output
```bash
Error: cannot modulo by 0
```

## Number modulo - float by zero
If the lhs is a float and rhs is a 0 the result is NaN.

Given a sample.yml file of:
```yaml
a: 1.1
b: 0
```
then
```bash
yq '.a = .a % .b' sample.yml
```
will output
```yaml
a: !!float NaN
b: 0
```

repository: mikefarah/yq

gha_language: Go

repo_name: mikefarah/yq


text:
# chill-typora-theme
dark, laid back custom theme for typora.io

---

## Screenshot

![screenshot](screenshot.png)

---
## How to Install

1. Open Typora
1. Navigate to Typora > Preferences
1. When the dialog appears, click on 'Open Theme Folder' and copy/take note of the path.
1. Open Terminal and `cd` to the path we found in the last step. For example, for user `Bob` on `macOS`:
   ```bash
   cd '/Users/Bob/Library/Application Support/abnerworks.Typora/themes/'
   ```
1. Clone this repo and place it directly within the `/themes` directory:
    ```bash
    git clone https://github.com/outputs-io/chill-typora-theme.git .
    ```
1. Reload Typora
1. Navigate to Typora > Preferences
1. Change theme to 'Chill'

---

### Author
Made with ♥ by [@droxey](https://github.com/droxey)

repository: droxey/chill-typora-theme

repo_name: droxey/chill-typora-theme


text:
+++
categories = ["Swift"]
comments = false
date = "2016-05-27T19:34:45-08:00"
draft = false
showpagemeta = true
showcomments = true
tags = ["swift","function"]
title = "Static vs Class vs Global Functions in Swift"
description = "A short description on Static vs Class vs Global Functions in Swift"
+++

Almost every projects contains Utility Functions. With the introduction of Swift, there are multiple ways to write such functions.
Static Functions
Static functions are invoked by the class itself, not by an instance. This makes it simple to invoke utility functions without having to manage an object to do that work for you.
```swift
class AppUtils {
    static func appUtility() {
    }
}
```
We can access static function as `AppUtils.appUtility()`
Static functions can not be overridden.
Class Functions
Class functions (not instance methods) are also static functions but they are dynamically dispatched and can be overridden by subclasses unlike static functions.
```swift
class AppUtils{
    class func appUtility(){
        println("In AppUtils")
    }
}
class AppOtherUtils: AppUtils{
    override class func appUtility(){
        println("In AppOtherUtils")
    }
}
```
We can access them similar to static functions as `AppUtils.appUtility()` and `AppOtherUtils.appUtility()`.
static is same as class final.
Global Functions
But then you can also just do a stand alone function in Swift which is not within a class and access it anywhere in the project. The global functions can be kept in a separate file that we can import into any project as per requirement.
```swift
func appUtility() {
}
```
We can just access them as `appUtility()` anywhere in the project. If you have method with same name as of global function, then access global function with `MyAppName.appUtility()`.

In case of static functions, if we access one of the static member, entire class gets loaded in memory. But in case of global function, only that particular function will be loaded in memory.
So, which one is better to use?

It is largly subjective why we pick one over another. Some prefer static method approach as a form of namespacing. For example, using the static method approach also allows us to have a method `ClassA.appUtility()` and a method named `ClassB.appUtility()`, which is useful while developing a library or framework.

Global functions are more modular and factor out single tasks for a single function - a good global utility function that does exactly one thing and does it perfectly can also sometimes be abstracted or made generic and used in other context as well.
We can just create a AppUtility.swift file and put all the utility functions in it. Later this file can be used across multiple projects.


text:
# What's Mario Party Overlay?
Mario Party Overlay is a highly customizable and easy to use 'Bonus Star' tracker for the Mario Party series, supporting every game in it. It also includes a greenscreen so it can be used in a livestream!

**[Website](https://blueyoshi9000.github.io/MarioPartyOverlay/)**

# How to use?
Click on the numbers to increase the counters, by holding Ctrl you can decrease them instead. The amount can be changed at the top (1, 5 or 10).
It's possible to switch between 1 and 5 by holding Shift, if one of the two is selected.
To give/take the coin-star you just click on the character.

The "Generate & Copy" button outputs all stats as text and copies it.
The Save/Reload buttons well... save and reload! It saves all stats and reloads them. If activated in the settings, they will be saved in your browser too and automatically loaded the next time you open the site.

Note: All settings are applied immediately, the save button will only save it permanently as otherwise they get reset when you refresh the site.

# Credits
Created by [blueYOSHI9000](https://www.twitter.com/blueyoshi9000)
Default icons created by [blueYOSHI9000](https://www.twitter.com/blueyoshi9000) using official artwork and insprired by [Mario Party Legacy](https://mariopartylegacy.com/)
Mario Kart 8 Deluxe icons ripped by [Random Talking Bush](https://twitter.com/RandomTBush) and edited by [RicoDexter](https://twitter.com/Der_RicoDexter) & [blueYOSHI9000](https://www.twitter.com/blueyoshi9000)
Super Mario Party character icons ripped by [xX-CamTro-Xx](https://www.spriters-resource.com/submitter/xX-CamTro-Xx/)
Mario Party 9 character icons ripped by [larsenv](https://www.spriters-resource.com/submitter/larsenv/)
Mario Party DS icons ripped by [FieryExplosion](https://www.spriters-resource.com/submitter/FieryExplosion/) & [Anonymous](https://www.spriters-resource.com/submitter/Anonymous/) & [Arend](https://www.mariowiki.com/User:Arend)

[Font](https://www.freepremiumfonts.com/free-font/new-super-mario-font-mario-party-9.aspx)
[Interact.js](http://interactjs.io/) (enables drag 'n' drop)


text:
CTF-Backend

Backend Repository for IIITV-CTF

# For Contributers
Please give a read to this Wiki

# Setup📝

## Requirements☕

Nodejs v14+

NPM v6+

Git

## Installation💻
Firstly, clone the repository from github by running the following command:

```sh
git clone https://github.com/iiitv/CTF-Backend.git
```

Enter the working directory by running the following command:
```sh
cd CTF-Backend
```

Install the required dependencies by running the following command:
```sh
npm install
```

## Configuration⚙

Create a file named ``.env`` in the config folder of the root directory. This file will store the environment variables. Do not commit this file or remove it from gitignore when pushing to github.

### Environment Variables

| Variable | Description |
| :------: | :----------: |
| ``PORT`` | Port number to run the server on |
| ``DATABASE_URL`` | Connection string of the database |

## Running the Server⚡

Run the following command to start the server:
```sh
npm start
```

repository: NicolasBiondini/CTF-Backend

repo_name: NicolasBiondini/CTF-Backend


text:
# Magic Square console game
This is a console version of a simple fill in the missing number magic square game. Created by Cole Schwarz

## Build instructions
clone into desired folder
build with cargo build

## Run instructions
cargo run

## Testing
a series of tests exists for the library crate square that can be run via cargo test

## Expectations

My initial plan for this project was to impliment the magic square game using the GKT-Rust gui bindings.
After struggling with the GTK bindings dependancies and documentation my efforts seems to be leading in
the wrong direction. I then reverted to making a simple command line game with a menu loop to save the gui
idea for another time. I would have liked to make the gui work but and intend to continue to work on that
portion of the project in a future date. Instead I focused on the square crate and the ability to produce several
variations of magic squares.

Two seperate algorithms for both 5x5 and the 7x7 squares were used. The "hard" difficulty
is a randomized version of the magic square based on the start location of the seeding of the square values. The "ez"
version used a fix starting location. I was also able to randomize the "missing" portion of the square for the
game to make sure that each generated game is slightly different even on the "ez" mode.

I am satisfied with the square lib crate and the functionaliy of it but as far as the console app it leaves much
to be desired and future itterations will correct formatting issues and do better checks for invalid input.


text:
### kill_go_app.sh

~~~~
ps -ef | grep 'go' | grep -v grep | awk '{print $2}' | xargs -r kill -9
~~~~

### build and restart go app

~~~~
clear
cd /home/ubuntu/go/src/github.com/path_to_your_application/
if git pull
then
  echo "pulled successfully"
  go get ./...
  go build -o appname
  sudo service supervisor restart
  echo "Supervisor Restarted"
else
  echo "Attention! Pull failed. Check your stuff!"
fi
~~~~

repository: AndreiD/HyperledgerFabricBootstrap

repo_name: AndreiD/HyperledgerFabricBootstrap


text:
## Blocks for python
Originally published: 2011-10-24 22:26:06
Last updated: 2011-10-24 22:26:07
Author: yoav glazner

A simple **block** function that lets one send multi line blocks of code to a function
it doesn't really act like a *normal* def/lambda but offers cool style

gha_language: Python


text:
# 05_Connecting
The fourth project will focus on connecting to the Internet using the [built-in Wifi module](https://github.com/tessel/t1-docs/blob/master/wifi.md#connect-tessel-to-wifi).

Before we use the Wifi module, set up a local `creds` module with your Wifi network credentials.

## Instructions
Going through the creds workflow once more. There are more efficient ways to manage your secrets, but this is an effective and relatively easy solution for local development with the Tessel & public source code management like Github.

- Add `**/creds` to your .gitignore
- With `04_Connecting` as your current working directory:
```
mkdir creds
cd creds
touch index.js
```
Paste the below script into `index.js` and enter values
```node
// Creds.js
// Enter values for your network
var network = '#####'
var netpass = '#####'
var sec = 'wpa2' // other options are 'wep', 'wpa', or 'unsecured'

var creds = {};

var wifiSettings = { ssid: network,
                     password: netpass,
                     security: sec,
                     timeout: 30
                   };

creds.wifiConfig = wifiSettings;

module.exports = creds;
```

### Usage
Example usage of `creds` modules

```node
var wifi = require('wifi-cc3000')
var creds = require("./creds") // reference to local module

// provide `wifiConfig` object to `wifi` hardware module
wifi.connect(creds.wifiConfig)
```

See the sketches in this folder for real use cases.

## Wifi Connection issues
Below are Tessel's troubleshooting instructions. For further debugging, see Tessel V1 [Wifi documentation](https://github.com/tessel/t1-docs/blob/master/wifi.md#connecting-to-wifi-from-js).

Check to see if Tessel is connected to wifi using Tessel CLI, `tessel wifi -l`.
If there is no IP address, the Tessel is not connected to Wifi.
Try power cycling your Tessel and then run the tessel wifi connection command again.
- Remove saved wifi profiles => `tessel stop; tessel wifi -d`
- Move closer to the router.
- Reset the router.
- Make sure the router has b/g mode enabled and isn't using channels 12, 13, or 14.

### Dependencies
- [delay-ms](https://github.com/thelostspore/delay-ms)
- [q](https://github.com/kriskowal/q)

repository: myconode/tessel-sketches

repo_name: myconode/tessel-sketches


text:
## 2020 02 18
### CS 326 @ UNR

Bindings can be
  - static binding: bindings made before runtime (early binding)
    - Main advantages of static binding. Efficiency → because only once
  - dynamic binding: bindings made at runtime (late binding)
    - Flexibility → based on input

#### Alocation:
object lifetime and binding lifetime (maybe be distinct)

Key events:
- creation of objects
  - allocation
- creation of bindings
  - declaration
- reference to a name
  - using a name in an expr. `ex. f(x);`
- temporary deactivation/reactivation of bindings
  - entering/leaving a local scope, for global vars hidden by local ones with the same name
> ex. local var inside a func

- destruction of Bindings
  - happens upon leaving a local scope `local vars`, end of program `global vars`
- destruction of objects
  - deallocation

```C
int x;        // destruction of binding: end of program run
void f()      // alocation of void f() and float x;
{
  float x;
}
```
Lifetime
>time between creation and destruction

- objects and bindings have distinct lifetimes
  - if an object outlives its only binding
      - (garbage, memory leak)

```c
p = new int;
p = null;
```

- If a binding outlives its object:
  - (dangling [pointer|refrence])

```c
p = new int;
r = p;
delete r;
int x = *p;   // <-- CRASH
```

#### Storage Management- Allocation

- Allocation
  - free block is available to use, is used
- Deallocation
  - block is put back, no longer used

Storage allocation mechanisms:
- static
  - lasts lifetime of the program
  - given an address before execution begins
    - retains address throughout execution
    - (ex. global variables, program code, explicit constants)
  -
### dynamic
- stack alloc
  - objects are allocated on a stack
    - bindings are made when entering a local scope
    - ex: entering method/function
  - local vars, return val, return address, funct args
### heap
- explicit alloc
  - `new int`, malloc,...
  - on a heap
  - principle concerns: speed, space
    - space issues

    ![fig 3](figures/200218-fig3.jpeg)

      - internal fragmentation
      - external fragmentation
        - locations of explicit heaps, how contigious you are.
        - solved by defragmentation
          - RISKS of defragmentation
            - update all pointers in blocks and pointing to blocks
        >jump down to see implementation

- implicit alloc
  - alloc is transparent for the programmer
  -
```scheme
; implicit creation of list datatype (of pairs/pairs)
(define L '(1 2 3))
```
See example:
![fig 1](figures/200218-fig1.jpeg)

#### fortran 77
- static alloc for items inside a subroutine
  ![fig 2]()
- Advantages:
  - avoids runtime stack manipulation
  - history-sensitive local variables
    - retain values between calls to the same function

- Disadvantages:
  - waste of (static) space
    - all local items for all functions stay allocated at all times
  - prohibits recursion
    - since you can not copy the args
    - can not have  A → A or A → B → A
![fig 2](figures/200218-fig2.jpeg)

Maintenance of the stack:
- calling sequence
  - code executed by the caller immediately before and after the call
- subroutine prologue and epilogue
  - code executed by the callee at its beginning and its end

For simple stuff, use a macro to avoid a stack manipulation.
```c
#define max(x, y) x > y ? x:y // faster

int max(int x, int y)         // slower
{
  return x > y ? x:y;
}
```

NOTE: Go back up the dynamic heap above! ^^^

### Dynamic heap alloc implementation
#### Maintain a single linked list of free blocks

Approaches:
- first fit:
  - selects the first block large enough to satisfy the request
  - tends to produce internal fragmentation
- best fit
  - selects smallest bock that is large enough to fit request
  - tends to take longer
- funky fit
  - separate lists of blocks of diff sizes


text:
# API
## API Overview
### Volley
In order to make network requests to our weather data provider [metaweather.com](https://www.
metaweather.com), our app is utilizing the [Volley HTTP Library](https://developer.android.com/training/volley). At a high-level, Volley is used by creating a `RequestQueue` and passing it `Request` objects.

### Setup
Volley is added to the `build.gradle` file, and is automatically added to the project at the next *Gradle Sync*.
```groovy
dependencies {
    implementation 'com.android.volley:volley:1.2.1'
}
```

### Components
There are 2 components involved in making an API call to fetch data from [metaweather.com](https://www.metaweather.com).

1. The `WeatherDataService` class
This class holds multiple different API calls, each for returning a different piece of information, and is used as a layer of abstraction to simplify the process of making a network request.
2. The `RequestQueue` / `Singleton`
We have created a `RequestQueue` class following the [Singleton Design Pattern](https://developer.android.com/training/volley/requestqueue#java). This class is responsible for creating a `RequestQueue`, and ensuring that no more than one is ever created. This is important to ensure multiple `RequestQueue`'s are NOT created, and all requests are channeled through the one `RequestQueue`.

### Usage
First, a `WeatherDataService` object is created to manage the API calls.
```java
WeatherDataService weatherDataService;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_apiactivity);

        weatherDataService = new WeatherDataService(APIactivity.this);
    }
```
When an API call needs to be made, it is done via the `WeatherDataService` methods:
```java
weatherDataService.getCityForecastByName("Brisbane", new WeatherDataService.ForecastByNameCallback() {
    @Override
    public void onError(String errorMessage) {
        // code to execute if the request fails
    }

    @Override
    public void onResponse(List<WeatherReportModel> weatherReportModels) {
        // code to execute if the request receives a response
        // weatherReportModels = a list of WeatherReportModels
    }
});
```
In this case, the code is trying to get the weather forecast for Brisbane. First, the `getCityForecastByName` method is called, and the city name of `"Brisbane"` is passed as the first parameter. The second parameter that is passed in is a callback method that's been defined inside `WeaterDataService`. Creating a new `WeatherDataService.ForecastByNameCallback()` will auto-complete the `@Override` methods, where we just need to define what happens in the event of a response, or an error. By creating this layer of abstraction, it keeps our codebase clean and simple to understand when making API calls. All methods inside `WeatherDataService` have an accompanying callback method/response listener.


text:
# Phaser 3 Webpack Project Template

A Phaser 3 Project Template with ES6 Classes

### Requirements

We need [Node.js](https://nodejs.org) to install and run scripts.

## Install and run

Run next commands in your terminal:

| Command       | Description           |
| ------------- | --------------------- |
| `npm install` | Install dependencies  |
| `npm start`   | Launch webpack.dev.js |

=======

repository: dils-group-project/IsaacGame

gha_language: JavaScript

repo_name: dils-group-project/IsaacGame


text:
# Emoji Unicode Regular Expression

Scrapes all emojis from [Emojipedia](https://emojipedia.org/), then creates a regular expression which contains all of the emojis unicodes, in the shortest way possible.

### IMPORTANT:

The format function is currently built to return a Golang regular expression, due to personal uses. Will add Javascript functionality soon, as well as other languages if needed.

repository: washedszn/emoji-unicode-regex

repo_name: washedszn/emoji-unicode-regex


text:
ASP.NET Core WebGrid replacement
=================

This package trying to be in-place replacement for the WebGrid usage.
But I don't yet manage to make this happens 100%.

Changes which should be done
Add following lines in the `_ViewImports.cshtml`

    @using AndreyKurdiumov.AspNetCore.Helpers
    @inject Microsoft.AspNetCore.Http.IHttpContextAccessor HttpContextAccessor

Where WebGrid constructed should be add contructor parameter HttpContextAccessor

     var grid = new WebGrid(HttpContextAccessor, source: this.Model.Tables,
                 defaultSort: "TableName",
                 rowsPerPage: 30);

gha_language: C#


text:
# MockjsWebpackPlugin
[中文readme](./readme-zh.md)

> Quickly build mock service for your project as a webpack plugin based on [mockjs](https://github.com/nuysoft/Mock)

# What is the problem this plugin solved

Through the way of webpack plugin, we can quickly build a mock service of project for parallel development in front-end and back-end separation mode.

# Start up

## Install

```
npm install --save-dev webpack mockjs-webpack-plugin
```

## Config

Add a `mock data storage folder` in your project.
```
.
├── app         //project folder
    ├── dist
    ├── config
    ├── src
    ├── mock    //mock data folder
    ⎪   ├── data.js
    ⎪   ├── data.json
        ...
```

config proxy and mock-webpck-plugin in `webpack.config.js`

```javascript
// import plugin
const MockjsWebpackPlugin = require("mockjs-webpack-plugin");

module.exports = {
  entry: "./index.js",
  output: {
    path: path.resolve(__dirname, "dist"),
    filename: "my-first-webpack.bundle.js"
  },
  // config plugin
  plugins: [
    new MockjsWebpackPlugin({
      // mock data folder path
      path: path.join(__dirname, "./mock"),
      // mock server port, avoid collision with application port
      port: 3000
    })
  ],
  // config proxy
  devServer: {
    // application port
    port: 5001,
    proxy: {
      // mock server url
      "/": "http://localhost:3000/"
    }
  }
};
```

if you want to set a special url for mock service, you can use webpack proxy like this:
```javascript
...
module.exports = {
  ...
  // config proxy
  devServer: {
    // application port
    port: 5001,
    proxy: {
      '/api': {
        target: 'http://localhost:3000/',
        pathRewrite: {
          // set url rewrite, for example,
          // http://localhost:5001/api/getData -> http://localhost:3000/getData
          '^/api': ''
        }
      }
    }
  }
};
```

_When you add a mock data file, do not need to modify the webpack config file but **restart the application**_

# OPTIONS

```javascript
new MockjsWebpackPlugin(options);
```

* options.path mock data folder path
* options.port the port of the mock server, default 3000

# Mock Data

`Mock Data` here is not a real JSON file, and more like a JS file.
When we just want to return data without any processing, a json mock file will be proper. So you want to use the following format.

```js
/**
 * Json data file
 *
 * @url /json/data
 *
 * Here you can write a detailed description
 * of the parameters of the information.
 *
 * Parameter description and other instructions.
 * uid: user ID
 * name: username
 * email: the email
 * etc.
 */
{
  "code": 0,
  "result|5": [
    {
      "uid|+1": 1,
      "name": "@name",
      "email": "@email"
    }
  ]
}
```

You can read the file content like this

- title： `Json data file`
- url： `/json/data`
- Description：
```
Here you can write a detailed description
of the parameters of the information.

Parameter description and other instructions.
 uid: user ID
 name: username
 email: the email
etc.
```
- data content： the rest part

Then you can access the <http://[localhost]:[3000]/json/data> through the browser.

In addition, we can use the JS file directly, which is very useful when we need to check the input parameters.

``` js
/**
 * JS data file
 *
 * @url /js/js-data-file
 *
 * Export data by using the JS file directly.
 */

module.exports = {
    "code": function () { // simulation error code, 1/10 probability of error code 1.
        return Math.random() < 0.1 ? 1 : 0;
    },
    "list|5-10": [
        {"title": "@title", "link": "@url"}
    ]
};
```

Or export `function`.

``` js
/**
 * JS function file
 *
 * @url /js/js-func-file/user?uid=233
 *
 * GET: Request method and parameter
 *   uid This is the requested userID
 *
 * Here you can write a detailed description
 * of the parameters of the information.
 */
module.exports = function(req) {
  var uid = req.query.uid;

  if (!uid) {
    return {
      code: -1,
      msg: "no uid"
    };
  }

  return {
    code: 0,
    data: {
      uid: +uid,
      name: "@name",
      "age|20-30": 1,
      email: "@email",
      date: "@date"
    }
  };
};
```

_All above data comes from `mockjs` syntax，you can read docs and samples from website of mockjs to get more_

mock data desciption comes from [52cik/express-mockjs](https://github.com/52cik/express-mockjs)

## Mock JSON
* [Mock.js 0.1 doc](https://github.com/nuysoft/Mock/wiki)
* [Mock samples](http://mockjs-lite.js.org/docs/examples.html)

#ChangeLog
version 3.0.0 -- 2019.04.07
1. nothing updated! Just use `npm version <update_type>` and then i find my package.json has been updated to 3.0.0
version 2.0.0 -- 2019.04.06
1. support hot reload mock files changes, like add new file or update content.

# Support
This repo is coming from [MarxJiao/mock-webpack-plugin](.https://github.com/MarxJiao/mock-webpack-plugin) and [52cik/express-mockjs](https://github.com/52cik/express-mockjs).

Thanks this two author, [Marx(MarxJiao)](https://github.com/MarxJiao) and [楼教主(52cik)](https://github.com/52cik)


text:
# iDEC
This is the code for iDEC with both in-memory and external memory implementation.

Please go to **in-memory/EXPERIMENTS** and **external-memory/EXPERIMENTS** folders for demo experiments.

# Dependencies
Please install **HighFive** (https://github.com/BlueBrain/HighFive) before running the code.

# Reference
1. Gong, Long, et al. "iDEC: indexable distance estimating codes for approximate nearest neighbor search": https://dl.acm.org/doi/pdf/10.14778/3397230.3397243


text:
[![](https://jitpack.io/v/Ramachandrajoshi/SpriteSheetRunner.svg)](https://jitpack.io/#Ramachandrajoshi/SpriteSheetRunner) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)

**SpriteSheetRunner**

Create 2d FPS animations using Sprite Sheets.

you can run the sprite sheet FPS animation by adding in xml layout file

**Install:**
Add it in your root build.gradle at the end of repositories

     allprojects {
          repositories {
             ...
             maven { url 'https://jitpack.io' }
          }
       }

Add the dependency  in app level build.gradle

     dependencies {
               ...
               implementation 'com.github.Ramachandrajoshi:SpriteSheetRunner:1.0.1'
       }

Usage:

       <com.codyzen.spriterunner.SpriteView
           android:layout_width="match_parent"
           android:layout_height="match_parent"
           app:columns="8"
           app:fps="8"
           app:rows="1"
           app:lastFrame="6"
           app:src="@drawable/capguy" />

API's available:

app:src ----  sprite sheet in image format

app:columns ----  number of columns in sheet (default 4)

app:rows  -----  number of rows in sheet (default 4)

app:fps  ----- max frame to loop through (default rows * columns)

app:lastFrame  ----- max frame to loop through (default fps)

app:isFixedRow  ----- render only one fixed row or not (default false)

app:renderRow  ----- which row to render. works only if isFixedrow is set true

app:autoPlay  ----- auto play or not. (default true) you can start or stop in class side as well

callback:

stateChangeListener: StateChangeListener  ----- for update start and stop callbacks. all methods or optional. implement which one you want

**demo**

![Output sample](https://github.com/Ramachandrajoshi/SpriteSheetRunner/raw/master/demo/demo.gif)

repository: tulaune/SpriteSheetRunner

repo_name: tulaune/SpriteSheetRunner


text:
## Asset Server (Skyfarer)

**If you are just hacking on the web portion of the app, you can
skip this section.**

Skyfarer can serve decrypted images on the fly from the
package cache using hwdecrypt and the asset database. To prevent unnecessary
resource usage, requests need to be accompanied by a valid HMAC.

### Setting Up the Cache

*Note: this section assumes you have a working astool setup.*

Follow the steps in ["Bootstrapping from zero"](https://howler.kirara.ca/services/astool#bootstrapping-from-zero)
to set up the cache. You can update the cache by running the `sync-cache` and `sync-cache-full`
commands from the utils image -- or manually with package_list_tool.

### Proxying the Asset Server

You should put a caching proxy in front of skyfarer for production deployments.
Below is the nginx config I use, you will need to adapt it for your server.

```
server {
    include conf.d/listen443.in;
    server_name tirofinale.kirara.ca;

    # CloudFlare generic config
    include conf.d/cfssl.in;
    include conf.d/cloudflare.in;

    root /dev/null;

    location / {
        proxy_cache_key "$scheme$proxy_host$uri";
        proxy_cache generic_zone;
        proxy_cache_valid 30d;
        proxy_cache_use_stale error timeout invalid_header updating;
        proxy_cache_background_update on;
        add_header X-Skyfarer-Cache $upstream_cache_status;

        proxy_set_header "X-Real-IP" $remote_addr;
        proxy_set_header "X-Scheme" $scheme;
        proxy_pass http://<IP_ADDRESS>:33002;
    }
}
```

repository: summertriangle-dev/arposandra

gha_license_id: NOASSERTION

repo_name: summertriangle-dev/arposandra


text:
## Test environments

* local OS X install, R 3.3.2
* ubuntu 12.04 (on travis-ci), R 3.3.2
* win-builder (devel and release)

## R CMD check results

0 errors | 0 warnings | 1 note

License components with restrictions and base license permitting such:
  MIT + file LICENSE
File 'LICENSE':
  YEAR: 2017
  COPYRIGHT HOLDER: Scott Chamberlain

## Reverse dependencies

* I have run R CMD check on the 7 downstream dependencies.
  (Summary at <https://github.com/ropensci/rgbif/blob/master/revdep/README.md>).
  No problems were found. All maintainers were notified of the release.

--------

This version fixes some bugs, updates scheme for GBIF API to https
from http, and some minor improvements.

Thanks!
Scott Chamberlain

repository: MirzaCengic/rgbif

repo_name: MirzaCengic/rgbif


text:
#[Elementary-UI](http://www.elementary-ui.com/)
[![npm package](https://)](https://)
[![Build Status](https://)](https://)
[![Gitter](https://)](https://)

[![PeerDependencies](https://)](https://)
[![Dependencies](https://)](https://)
[![DevDependencies](https://)](https://)

Elementary-UI is a set of [React](http://facebook.github.io/react/) hight performance and fully customizable React
Components that implement
[Google's Material Design](https://www.google.com/design/spec/material-design/introduction.html)
specification by default.

Check out our [documentation site](http://www.elementary-ui.com/) for live examples.
It's still a work in progress, but hopefully you can see where we're headed.

**Recently Updated?** Please read the [changelog](https://), this README and the documentation before posting an issue.

## Prerequisites

We recommend that you get to know [React](http://facebook.github.io/react/)
before diving into elementary-ui. Elementary-UI is a set of React components,
so understanding how React fits into web development is important.

(If you're not familiar with Node, or with the concept of Single Page Applications (SPAs),
head over to the [documentation website](http://)
for a quick introduction before you read on.)

## Installation

Elementary-UI is available as an [npm package](https://).

**Stable channel**
```sh
npm install elementary-ui
```

Our next version (`0.1.0`) is coming soon!

**Pre-release channel **
```sh
npm install elementary-ui@next
```

### React-Tap-Event-Plugin

Some components use
[react-tap-event-plugin](https://github.com/zilverline/react-tap-event-plugin) to
listen for touch events because onClick is not fast enough
_This dependency is temporary and will eventually go away._ Until then,
be sure to inject this plugin at the start of your app.

```js
import injectTapEventPlugin from 'react-tap-event-plugin';

// Needed for onTouchTap
// http://stackoverflow.com/a/34015469/988941
injectTapEventPlugin();
```

### Roboto Font

Elementary-UI was designed with the [Roboto](http://www.google.com/fonts/specimen/Roboto)
font in mind. So be sure to include it in your project. Here are
[some instructions](http://www.google.com/fonts#UsePlace:use/Collection:Roboto:400,300,500)
on how to do so.

## Usage

Elementary-UI components are easy to use.

Here is a quick example to get you started:

**./App.js**
```jsx
import React from 'react';
import ReactDOM from 'react-dom';
import MyAwesomeReactComponent from './MyAwesomeReactComponent';

const App = () => (
  <MyAwesomeReactComponent />
);

ReactDOM.render(
  <App />,
  document.getElementById('app')
);
```

**./MyAwesomeReactComponent.js**
```jsx
import React from 'react';
import RaisedButton from 'elementary-ui/RaisedButton';

const MyAwesomeReactComponent = () => (
  <RaisedButton label="Default" />
);

export default MyAwesomeReactComponent;
```

Please refer to each component's documentation page to see how they should be imported.

## Customization

We have implemented a default theme to render all Elementary-UI components.
Styling components to your liking is simple and hassle-free. This can be
achieved in the following two ways:

* [Use a custom theme to style components](http://)
* [Override individual component styles via the `style` prop](http://)
* [Override individual component classes via the `className` prop](http://)

## Examples

There are 2 projects that you can look at to get started. They can be found in the
[examples folder](https://).
These projects are basic examples that show how to consume elementary-ui components
in your own project. Projects use [webpack](http://webpack.github.io/) for module bundling and building.

The source code for this documentation site is also included in the repository.
This is a slightly more complex project that also uses webpack, and contains
examples of every elementary-ui component. Check out the
[docs folder](https://)
for build instructions.

## Roadmap

The future plans and high priority features and enhancements can be found
in the [ROADMAP.md](https://) file.

## Contribute

[Elementary-UI](http://) came about from our love of
[React](http://facebook.github.io/react/) and
[Google's Material Design](https://www.google.com/design/spec/material-design/introduction.html).
We'd greatly appreciate any [contribution](https://)
you make. :)

## License
This project is licensed under the terms of the
[MIT license](https://)


text:
This is the F# compiler, core library and core tools (open source edition). It uses the Apache 2.0 license.

The `master` branch is for the latest version of F# (currently F# 3.0).

To bootstrap the compiler, binaries built from an earlier version of this project are used.

## Requirements

Requires mono 2.9 or higher.  Prefer Mono 3.0.

On OSX, requires automake 2.69. To install from [homebrew](http://mxcl.github.com/homebrew):
```
brew install automake
```

## Building

### On Linux and other Unix systems:
The usual:
```
./autogen.sh
make
sudo make install
```

### On MacOS (OSX)

Use a prefix to your version of Mono:
```
./autogen.sh --prefix=/Library/Frameworks/Mono.framework/Versions/Current/
make
sudo make install
```

### On Windows, using msbuild (e.g.. if .NET is installed)
```
cd src
msbuild fsharp-proto-build.proj
msbuild fsharp-library-build.proj
msbuild fsharp-compiler-build.proj
```
You can also build the FSharp.Core for .NET 2.0, Mono 2.1 and Silverlight 5.0 profiles:
```
msbuild fsharp-library-build.proj /p:TargetFramework=net20
msbuild fsharp-library-build.proj /p:TargetFramework=mono21
msbuild fsharp-library-build.proj /p:TargetFramework=sl5
```

You can also build the FSharp.Core and FSharp.Compiler.Silverlight.dll for Silverlight 5.0:
```
msbuild fsharp-library-build.proj /p:TargetFramework=sl5-compiler
msbuild fsharp-compiler-build.proj /p:TargetFramework=sl5-compiler
```
And for Release versions of the same:
```
msbuild fsharp-library-build.proj /p:Configuration=Release
msbuild fsharp-compiler-build.proj /p:Configuration=Release
msbuild fsharp-library-build.proj /p:TargetFramework=net20 /p:Configuration=Release
msbuild fsharp-library-build.proj /p:TargetFramework=mono21 /p:Configuration=Release
msbuild fsharp-library-build.proj /p:TargetFramework=sl5  /p:Configuration=Release
msbuild fsharp-library-build.proj /p:TargetFramework=sl5-compiler  /p:Configuration=Release
msbuild fsharp-compiler-build.proj /p:TargetFramework=sl5-compiler  /p:Configuration=Release
```
### On Windows, using xbuild (e.g. if no .NET is installed and only Mono 3.0 is installed):

```
cd src
xbuild fsharp-proto-build.proj
xbuild fsharp-library-build.proj
xbuild fsharp-compiler-build.proj
```

Building using xbuild does not yet lay down a Mono-ready distribution (see src/fsharp/targets.make), so should only
be used for private development rather than preparing distributions.

## Strong Names

The FSharp.Core.dll produced is only delay-signed (Mono does not require strong names).
If a strong-name signed FSharp.Core.dll is needed then use the one in
```
   lib\bootstrap\signed\3.0\v4.0\FSharp.Core.dll
```

## What you get

Once built the main compiler binaries go in
    lib/release/4.0

There are versions of FSharp.Core for .NET 2.0 and MonoAndroid (Mono profile 2.1) in
     lib/release/2.0
     lib/release/2.1

On 'make install' the binaries etc. go in the prefix, e.g.

   /Library/Frameworks/Mono.framework/Versions/Current/lib/mono/2.0/FSharp.Core.dll
   /Library/Frameworks/Mono.framework/Versions/Current/lib/mono/2.1/FSharp.Core.dll
   /Library/Frameworks/Mono.framework/Versions/Current/lib/mono/4.0/fsc.exe
   /Library/Frameworks/Mono.framework/Versions/Current/lib/mono/4.0/FSharp.Compiler.dll
   ...
   /Library/Frameworks/Mono.framework/Versions/Current/lib/mono/4.5/fsc.exe
   /Library/Frameworks/Mono.framework/Versions/Current/lib/mono/4.5/FSharp.Compiler.dll
   ...
   /Library/Frameworks/Mono.framework/Versions/Current/lib/mono/gac/.../FSharp.Compiler.dll
   /Library/Frameworks/Mono.framework/Versions/Current/lib/mono/gac/.../FSharp.Compiler.dll
   ...

plus some files for xbuild support

    /Library/Frameworks/Mono.framework/Versions/Current/lib/mono/Microsoft\ F#/v4.0/*
    /Library/Frameworks/Mono.framework/Versions/Current/lib/mono/Microsoft\ SDKs/F#/3.0/Framework/*

(these names are the canonical names for Microsoft.FSharp.Targets used by project files coming from Visual Studio)

plus scripts

   /usr/bin/fsharpc   (F# compiler)
   /usr/bin/fsharpi   (F# Interactive)

## Development notes

###Continuous Integration Build

We have a CI build set up with the JetBrains/Teamcity server as part of the F# community projects there:

http://teamcity.codebetter.com/project.html?projectId=project61&tab=projectOverview

@forki controls access. Right now this builds both a Mono 'make' install  and a Windows 'cd src; msbuild fsharp-build.proj' build.  No binaries are saved from  the build, it is just for sanity checking.

###Editing the Compiler with Visual Studio or MonoDevelop

Open `all-vs2012.sln`, and edit in modes Debug or Release. The compiler takes a good while to compile and that
can be a bit invasive to the work flow, so it's normally better to do the actual compilation from
the command line, see above.

The F# support in MonoDevelop uses an in-process background compiler. On the Mac this causes pausing garbage
collections to kick in which makes editing the compiler in MonoDevelop awkward.

### Building F# Core Unit Tests for .NET 4.x (optional)

This uses the proto compiler to build the unit tests that check some parts of `FSharp.Core.dll` and `FSharp.Compiler.dll`. There is also another set of tests under `tests\fsharp`.

```
msbuild fsharp-library-unittests-build.proj /p:TargetFramework=net40
```

*Note: You must have NUnit installed to build the unit tests.*

### Validation and Use

Here are some simple tests to validate what you have built by checking `fsi.exe` (F# Interactive) starts up:

```
lib\debug\4.0\fsi.exe
1 + 1;;
\#q;;
lib\debug\4.0\fsi.exe /help
lib\debug\4.0\fsc.exe /help
echo printfn "hello world" > hello.fs
lib\debug\4.0\fsc.exe hello.fs
hello.exe
```

### Running Compiler tests (on Windows)

There are language tests under `tests\fsharp\core`. The test apparatus is primitive and unfortunately uses batch files. You can run these on Windows using:

```
cd ..\tests\fsharp\core
..\..\build-and-run-all-installed-ilx-configs.bat results.log
```

The results file will contain one entry for each test directory, plus any reported errors.

```
tests\fsharp\core
tests\fsharp\core\queriesCustomQueryOps
tests\fsharp\core\queriesLeafExpressionConvert
tests\fsharp\core\queriesNullableOperators
tests\fsharp\core\queriesOverIEnumerable
...
```

Some tests for LINQ queries require SQL Server be installed. A failing test will look like this:

```
ERRORLEVEL=1: in tests\fsharp\core\csfromfs\build.bat
```

You can then go to the relevant directory and run `build.bat` and `run.bat`.

## History

F# compiler sources dropped by Microsoft are available from [fsharppowerpack.codeplex.com](http://fsharppowerpack.codeplex.com).

Uses bootstrapping libraries, tools and F# compiler. The `lib/bootstrap/X.0` directories contain mono-built libraries, compiler and tools that can be used to bootstrap a build. You can also supply your own via the `--with-bootstrap` option.

repository: fahadsuhaib/fsharp

repo_name: fahadsuhaib/fsharp


text:
# README Generator
  ![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)
  ## Description
  Want a quick way to create a README.md file with having to use Markdown? The README Generator prompts for user input over the command line, generating a README.md file based on the input. The file is written to the 'dist' folder.

  ## Table of Contents
  * [Installation](#installation)
  * [Usage](#usage)
  * [License](#license)
  * [Contributing](#contributing)
  * [Tests](#tests)
  * [GitHub](#github)
  * [Credits](#credits)

  ## Installation
  This application requires Node.js and two npm packages - File System(fs) and Inquirer.
  [FS](https://nodejs.dev/learn/the-nodejs-fs-module)
  [Inquirer](https://www.npmjs.com/package/inquirer#installation)

  ## Usage
  Answer all questions to generate a README.md file.
  ![Screenshot of Application](screenshot.png)

  ## License

  This project is uses  the [MIT](https://opensource.org/licenses/MIT) license.

  ## Contributing
  This is an open source project that follows the Contributor Covenant.
  [![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg)](code_of_conduct.md)

  ## Tests
  Sample answers were using until a README.md file was successfully generated. The file can be modified if the input was not desired.

  [Screencastify Link](https://watch.screencastify.com/v/KjIjtHAJbzrFs045JFxG)

  ## Questions
  Reach out via email or GitHub.
<EMAIL_ADDRESS>
  [cassie-s](https://github.com/cassie-s/)

repository: cassie-s/readme-generator

repo_name: cassie-s/readme-generator


text:
This cop checks for unnecessary leading blank lines at the beginning
of a file.

### Example:

    # bad
    # (start of file)

    class Foo
    end

    # bad
    # (start of file)

    # a comment

    # good
    # (start of file)
    class Foo
    end

    # good
    # (start of file)
    # a comment

repository: filipesperandio/codeclimate-standard

repo_name: filipesperandio/codeclimate-standard


text:
Instructions
For this assignment, you will submit a single C++ compilable file containing a program written in C++.

Background
Ok, so Moe liked the work that you did for him and now wants you to code another project.    (You can see it in his face.)  So Moe wants a computer stationed at the door of his bar so that patrons entering will run the "Greeter Program".  It will ask questions of each potential patron, and then either welcome them in or tell them to leave.

Specifications
Your program will behave as follows:
    * First prompt/read in a name (first only is fine).
    * The patron (always referred hereafter by name) is then asked if he/she/it is a "teetotaler"1 and promptly thrown out if the answer is yes.
    * If not, they are asked their age and asked to leave if they are not 21 or older.
    * Then they are asked if they intend to drink beer, soda, or hard liquor.
        * The affirmative on soda will get them a ticket out the door with a "we don't soyrv you sissies in dis place!" response.
        * Beer and hard-stuff drinkers are welcomed, but questioned how much money they have on them.

With this info, Moe (your program, actually) will tell them how many beers (for beer drinkers) or how many drinks (for hard-stuff drinkers) they can buy with that amount of money. The program will then inquire as to how many drinks they intend to buy. If the answer is less than the maximum number of drinks they can buy with their money, they will promptly be thrown in the gutter ("come back when you want to spend all your money!"). Otherwise, your program will tell them to "come right in, step up to the bar!" If the patron has not enough money to buy even one drink, throw them out with a "get outta here, ya bum!".  For any cases above where I haven't specified what is said to the customer, you make up something appropriate.  If the patron is "Barney", just respond with, "C'mon in Barney".

This will end the interaction with a given potential patron. Your program should then prompt for another patron by saying something like, "Anybody else there??". An affirmative answer will have the user go through the entire "interview" again, and end the program otherwise. At any time in the interview a potential patron is "asked to leave", this prompt for another patron is invoked.

At Moe's:

* beers are $2.00 ea.
* hard liquor drinks are all $4.25 ea.

Remember: When writing your code, be sure to:

* Use meaningful variable names.
* Use proper spacing for indentations.
* Use constant variable declarations where appropriate.
* Include the comment block at the head of your file.
* Comment code that needs it.
* Be literate in your welcoming/signing-off messages and prompts and output.

Note: You are expected to check the inputs from the user for range acceptance. What that means is that whenever appropriate, a input value should be checked for validity. For example, if the user inputs -8 or 213 for their age, then they are to be re-prompted. So what are acceptable ranges? You decide this....and make it a good decision! To do this range checking and the required re-prompting for new patrons, you will need to use loops.  We may not have covered loops by the time this assignment is posted, but we will very soon.  You can still get started on the coding for this program.

Also, since you will be displaying dollar amounts, it's bad form to have $3.50 come out as $3.5. So, put the following code at the top of your main after declarations and it will force exactly two decimal places to be shown always.

             cout.setf(ios::fixed);
             cout.setf(ios::showpoint);
             cout.precision(2);

We'll explain where this code comes from later in the semester.

Optional
You can optionally display how much "change" patrons (who drink) leave the bar with. For example, suppose a patron comes in with $4.60 and drinks beers. He/She/It would have two beers with $0.60 left over. You would report this 60 cents.

Submitting
When you submit:
* enter the bar not as a teetotaler, but a legal beer drinker with $21.45 in your pocket. Report you intend to drink 10 beers.
* next patron is to be a teetotaler.
* next patron is to be a legal soda drinker.
* no more patrons

url: https://raw.githubusercontent.com/pabhd3/Missouri-S-T-Classes/445735b03fd3cc08733753e684db28217f247977/Cs 0053 Intro to Programming C++/Assignment 03/README.md


text:
---
tags: weekly, rustc
---

# T-compiler Meeting Agenda 2021-06-03

[Tracking Issue](https://github.com/rust-lang/rust/issues/54818)

## Announcements

- Friday **June, 4th 2021 at 10:00 ET / 14:00 UTC** is planning meeting. Get your proposals in at [proposal site](https://github.com/rust-lang/compiler-team/issues/new?assignees=&labels=meeting-proposal&template=meeting-proposal.md&title=%28My+meeting+proposal%29)

## MCPs/FCPs

- New MCPs (take a look, see if you like them!)
  - No new proposals this time.
- Old MCPs (not seconded, take a look)
  -  "Add different entry points for x.py" [compiler-team#396](https://github.com/rust-lang/compiler-team/issues/396)
  -  "rustdoc is using rustc_ast_pretty, would it be possible to make it somewhat "stable"?" [compiler-team#403](https://github.com/rust-lang/compiler-team/issues/403)
  -  "LLVM plugin support in Rust" [compiler-team#419](https://github.com/rust-lang/compiler-team/issues/419)
  -  "Promote `aarch64-apple-ios-sim` to Tier 2" [compiler-team#428](https://github.com/rust-lang/compiler-team/issues/428)
  -  "Write text output files to stdout if options like `-o -` or `--emit asm=-` are provided" [compiler-team#431](https://github.com/rust-lang/compiler-team/issues/431)
- Pending FCP requests (check your boxes!)
  - No pending FCP requests this time.
- Things in FCP (make sure you're good with it)
  - No FCP requests this time.
- Accepted MCPs
  -  "Make `TypeFolder::fold_*` return `Result`" [compiler-team#432](https://github.com/rust-lang/compiler-team/issues/432)
  -  "Introduce ty::WhereClause to align chalk and rustc dyn representation" [compiler-team#433](https://github.com/rust-lang/compiler-team/issues/433)
  -  "Force warnings on lints " [compiler-team#434](https://github.com/rust-lang/compiler-team/issues/434)
- Finalized FCPs (disposition merge)
  -  "Tracking issue for WebAssembly SIMD support" [rust#74372](https://github.com/rust-lang/rust/issues/74372)
  -  "Tracking Issue for VecDeque binary search functions" [rust#78021](https://github.com/rust-lang/rust/issues/78021)
  -  "Use try_reserve in Vec's io::Write" [rust#84612](https://github.com/rust-lang/rust/pull/84612)
  -  "Show test type during prints" [rust#84863](https://github.com/rust-lang/rust/pull/84863)
  -  "rustc: Allow safe #[target_feature] on wasm" [rust#84988](https://github.com/rust-lang/rust/pull/84988)

### WG checkins

@*WG-async-foundations* @**nikomatsakis**  @**tmandry**
> * Currently iterating on the async vision doc.
> * Completed the brainstorming period.
> * Working on a "harmonized shiny future".
> * Little coding at present that @nikomatsakis is aware of, anyhow.

@*WG-traits* by @**nikomatsakis**  @**Jack Huey**
> * Stabilized member constraints (https://github.com/rust-lang/rust/pull/84701).
> * Working towards stabilized named impl Trait and generic associated types.
> * Jack Huey has a PR that is aiming to normalize under binders (https://github.com/rust-lang/rust/pull/85499), which is pretty exciting.
> * Still making small steps towards chalk-ty library, such as synchronizing rustc and chalk's folder traits.

## Backport nominations

[T-compiler stable](https://github.com/rust-lang/rust/issues?q=is%3Aall+label%3Abeta-nominated+-label%3Abeta-accepted+label%3AT-compiler) / [T-compiler beta](https://github.com/rust-lang/rust/issues?q=is%3Aall+label%3Astable-nominated+-label%3Astable-accepted+label%3AT-compiler)
- :beta: "Reachable statics have reachable initializers" [rust#84549](https://github.com/rust-lang/rust/pull/84549)
  - opened by `@tmiasko`
  - reviewed by @**varkor**
  - patch is already merged, fixes [#84455](https://github.com/rust-lang/rust/issues/84455) a P-medium()
- :beta: "Build crtbegin.o/crtend.o from source code" [rust#85395](https://github.com/rust-lang/rust/pull/85395)
  - opened by @**12101111**
  - fixes [#85310](https://github.com/rust-lang/rust/issues/85310), [#47551](https://github.com/rust-lang/rust/issues/47551), [#84033](https://github.com/rust-lang/rust/issues/84033)
  - already merged, reviewed by @**Vadim Petrochenkov**
- :stable: "Build crtbegin.o/crtend.o from source code" [rust#85395](https://github.com/rust-lang/rust/pull/85395)
  - (see beta nomination)
  - possibly a dot release? (see [comment](https://github.com/rust-lang/rust/pull/85395#issuecomment-850870521))
  - or revert [#82534](https://github.com/rust-lang/rust/pull/82534)

[T-libs-impl stable](https://github.com/rust-lang/rust/issues?q=is%3Aall+label%3Abeta-nominated+-label%3Abeta-accepted+label%3AT-libs-impl) / [T-libs-impl beta](https://github.com/rust-lang/rust/issues?q=is%3Aall+label%3Astable-nominated+-label%3Astable-accepted+label%3AT-libs-impl)
- No backport nominations for `T-libs-impl` this time.

[T-rustdoc stable](https://github.com/rust-lang/rust/issues?q=is%3Aall+label%3Abeta-nominated+-label%3Abeta-accepted+label%3AT-rustdoc) / [T-rustdoc beta](https://github.com/rust-lang/rust/issues?q=is%3Aall+label%3Astable-nominated+-label%3Astable-accepted+label%3AT-rustdoc)
- No backport nominations for `T-rustdoc` this time.

:back: / :shrug: / :hand:

## PRs S-waiting-on-team

[T-compiler](https://github.com/rust-lang/rust/pulls?utf8=%E2%9C%93&q=is%3Aopen+label%3AS-waiting-on-team+label%3AT-compiler)
- No PRs waiting on `T-compiler` this time.

[T-libs-impl](https://github.com/rust-lang/rust/pulls?utf8=%E2%9C%93&q=is%3Aopen+label%3AS-waiting-on-team+label%3AT-libs-impl)
- No PRs waiting on `T-libs-impl` this time.

## Issues of Note

### Short Summary

- [5 T-compiler P-critical issues](https://github.com/rust-lang/rust/issues?q=is%3Aopen+label%3AT-compiler+label%3AP-critical)
  - [3 of those are unassigned](https://github.com/rust-lang/rust/issues?q=is%3Aopen+label%3AT-compiler+label%3AP-critical+no%3Aassignee)
- [76 T-compiler P-high issues](https://github.com/rust-lang/rust/issues?q=is%3Aopen+label%3AT-compiler+label%3AP-high)
  - [49 of those are unassigned](https://github.com/rust-lang/rust/issues?q=is%3Aopen+label%3AT-compiler+label%3AP-high+no%3Aassignee)
- [6 P-critical, 0 P-high, 2 P-medium, 0 P-low regression-from-stable-to-beta](https://github.com/rust-lang/rust/labels/regression-from-stable-to-beta)
- [1 P-critical, 2 P-high, 1 P-medium, 0 P-low regression-from-stable-to-nightly](https://github.com/rust-lang/rust/labels/regression-from-stable-to-nightly)
- [3 P-critical, 46 P-high, 86 P-medium, 11 P-low regression-from-stable-to-stable](https://github.com/rust-lang/rust/labels/regression-from-stable-to-stable)

### P-critical

[T-compiler](https://github.com/rust-lang/rust/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3AP-critical+label%3AT-compiler)
- "ICE when reifying function pointers to copy / copy_nonoverlapping using an if" [rust#84297](https://github.com/rust-lang/rust/issues/84297)
  - issue of interest for T-lang?
- "Unstable fingerprints - what to do on beta (and stable)" [rust#84970](https://github.com/rust-lang/rust/issues/84970)
  - issue is being followed
- "Miscompilation on ARM-M with nightly-2021-04-23" [rust#85351](https://github.com/rust-lang/rust/issues/85351)
  - issue reported and fixed on LLVM end [D103167](https://reviews.llvm.org/D103167)
  - issue unassigned, does it need an owner?
- "iter::Fuse is unsound with how specialization currently behaves around HRTB fn pointers" [rust#85863](https://github.com/rust-lang/rust/issues/85863)
  - opened by @**Frank Steffahn**
  - reporter suggests possible fixes, on Zulip [some more thoughts](https://rust-lang.zulipchat.com/#narrow/stream/227806-t-compiler.2Fwg-prioritization/topic/Issues.20.2385863.20and.20.2385873)
  - is this issue of interest for T-lang? Also for T-libs?
- "TrustedRandomAccess optimization for Zip containing vec::IntoIter is unsound with how specialization currently behaves around HRTB fn pointers" [rust#85873](https://github.com/rust-lang/rust/issues/85873)
  - opened by @**Frank Steffahn**, related to issue [#85863](https://github.com/rust-lang/rust/issues/85863)
  - issue unassigned
  - is this issue of interest for T-lang? Also for T-libs?

[T-libs-impl](https://github.com/rust-lang/rust/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3AP-critical+label%3AT-libs-impl)
- "iter::Fuse is unsound with how specialization currently behaves around HRTB fn pointers" [rust#85863](https://github.com/rust-lang/rust/issues/85863)
  - (see above) issue of interest also for T-libs-impl?
- "TrustedRandomAccess optimization for Zip containing vec::IntoIter is unsound with how specialization currently behaves around HRTB fn pointers" [rust#85873](https://github.com/rust-lang/rust/issues/85873)
  - (see above) issue of interest also for T-libs-impl?

[T-rustdoc](https://github.com/rust-lang/rust/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3AP-critical+label%3AT-rustdoc)
- No `P-critical` issues for `T-rustdoc` this time.

### P-high regressions

[P-high beta regressions](https://github.com/rust-lang/rust/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3Aregression-from-stable-to-beta+label%3AP-high)
- No `P-high` beta regressions this time.

[Unassigned P-high nightly regressions](https://github.com/rust-lang/rust/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3Aregression-from-stable-to-nightly+label%3AP-high+no%3Aassignee)
- No unassigned `P-high` nightly regressions this time.

## Performance logs

> [triage logs for 2021-06](https://github.com/rust-lang/rustc-perf/blob/master/triage/2021-06-01.md)

# 2021-06-01 Triage Log

Busy week, with several reverted PRs due to performance regressions, but overall a positive week.

Triage done by **@simulacrum**.

3 Regressions, 3 Improvements, 5 Mixed

#### Regressions

Merge CrateDisambiguator into StableCrateId [#85804](https://github.com/rust-lang/rust/issues/85804)
- Moderate regression in [instruction counts](https://perf.rust-lang.org/compare.html?start=2023cc3aa1ea98530f3124ed07713e6f95fd26ab&end=59579907ab52ad2369735622185a26f158bf0f0f&stat=instructions:u) (up to 1.6% on `full` builds of `html5ever-opt`)
- Seems to differ from the benchmark on PR, but held up over the rest of the
  week on the graph. Suggested a revert on PR.

#### Improvements

- Don't hash `thir_body` [#85729](https://github.com/rust-lang/rust/issues/85729)
- Optimize proc macro bridge [#85390](https://github.com/rust-lang/rust/issues/85390)

#### Mixed

Add `TrustedRandomAccess` specialization for `Vec::extend()` [#83770](https://github.com/rust-lang/rust/issues/83770)
- Moderate regression in [instruction counts](https://perf.rust-lang.org/compare.html?start=9a700d2947f2d7f97a2c0dfca3117a8dcc255bdd&end=9111b8ae9793f18179a1336417618fc07a9cac85&stat=instructions:u) (up to 2.1% on `incr-patched: b9b3e592dd cherry picked` builds of `style-servo-debug`)
- Moderate improvement in [instruction counts](https://perf.rust-lang.org/compare.html?start=9a700d2947f2d7f97a2c0dfca3117a8dcc255bdd&end=9111b8ae9793f18179a1336417618fc07a9cac85&stat=instructions:u) (up to -1.6% on `incr-patched: println` builds of `cargo-debug`)
- Reverted in the next result, seems to surprisingly in practice not be an improvement on
  some of our larger benchmarks.

Revert "Auto merge of #83770 - the8472:tra-extend, r=Mark-Simulacrum" [#85754](https://github.com/rust-lang/rust/issues/85754)
- Moderate improvement in [instruction counts](https://perf.rust-lang.org/compare.html?start=9a72afa7dd5689da1844695086d1f89130956a88&end=bff138dbd95cec763f4def6b91bb465a26aaad9f&stat=instructions:u) (up to -2.1% on `incr-patched: b9b3e592dd cherry picked` builds of `style-servo-debug`)
- Moderate regression in [instruction counts](https://perf.rust-lang.org/compare.html?start=9a72afa7dd5689da1844695086d1f89130956a88&end=bff138dbd95cec763f4def6b91bb465a26aaad9f&stat=instructions:u) (up to 1.5% on `incr-patched: println` builds of `cargo-debug`)

Simplification of query forcing [#85319](https://github.com/rust-lang/rust/issues/85319)
- Moderate improvement in [instruction counts](https://perf.rust-lang.org/compare.html?start=d93b6a4598946a6a97e8f1b073b1cfc08d332a86&end=f60a67025607e74fbee31c2007f8791c2f352b6a&stat=instructions:u) (up to -3.2% on `full` builds of `unused-warnings-check`)
- Moderate regression in [instruction counts](https://perf.rust-lang.org/compare.html?start=d93b6a4598946a6a97e8f1b073b1cfc08d332a86&end=f60a67025607e74fbee31c2007f8791c2f352b6a&stat=instructions:u) (up to 1.4% on `incr-unchanged` builds of `stm32f4-check`)
- Regressions seem to be limited to unused-warnings incremental.

Reduce the amount of untracked state in TyCtxt [#85153](https://github.com/rust-lang/rust/issues/85153)
- Very large regression in [instruction counts](https://perf.rust-lang.org/compare.html?start=d2091147b16a1e3e1f9a73b6ee29fbe941c8abce&end=41278062c8399ac02ed281e8b1648b99a36942e6&stat=instructions:u) (up to 1038.2% on `incr-unchanged` builds of `regex-opt`)
- Moderate improvement in [instruction counts](https://perf.rust-lang.org/compare.html?start=d2091147b16a1e3e1f9a73b6ee29fbe941c8abce&end=41278062c8399ac02ed281e8b1648b99a36942e6&stat=instructions:u) (up to -1.3% on `full` builds of `cranelift-codegen-check`)
- This was a pretty big regression, and wasn't detected on the PR run,
  presumably due to work since the merge.

Revert "Reduce the amount of untracked state in TyCtxt" [#85884](https://github.com/rust-lang/rust/issues/85884)
- Very large improvement in [instruction counts](https://perf.rust-lang.org/compare.html?start=80af6b091f6a4855be71bba1cd0c1ee9fd2a57a8&end=1160cf864f2a0014e3442367e1b96496bfbeadf4&stat=instructions:u) (up to -91.2% on `incr-unchanged` builds of `regex-opt`)
- Moderate regression in [instruction counts](https://perf.rust-lang.org/compare.html?start=80af6b091f6a4855be71bba1cd0c1ee9fd2a57a8&end=1160cf864f2a0014e3442367e1b96496bfbeadf4&stat=instructions:u) (up to 1.4% on `full` builds of `cranelift-codegen-check`)

#### Nags requiring follow up

* Expecting to revert [#85804](https://github.com/rust-lang/rust/pull/85804)

## Nominated Issues

[T-compiler](https://github.com/rust-lang/rust/issues?q=is%3Aopen+label%3AI-nominated+label%3AT-compiler)
- Regression: undefined symbol __atomic_load_4 on risvc32imac-unknown-none-elf [#85736](https://github.com/rust-lang/rust/issues/85736)
  - opened by github user `@xobs`
  - regression on nightly-2021-03-18, affects target `riscv32imac-unknown-none`
  - (spurious?) calls are generated to non-existing symbol `__atomic_load_4`
  - workaround is to use target `riscv32i-unknown-none-elf`
  - we have a [repro](https://github.com/rust-lang/rust/issues/85736#issuecomment-849881145)
  - who can own this?

[T-libs-impl](https://github.com/rust-lang/rust/issues?q=is%3Aopen+label%3AI-nominated+label%3AT-libs-impl)
- No nominated issues for `T-libs-impl` this time.

[RFC](https://github.com/rust-lang/rfcs/issues?q=is%3Aopen+label%3AI-nominated+label%3AT-compiler)
- No nominated RFCs for `T-compiler` this time.

repository: rust-lang/compiler-team

path: /content/minutes/triage-meeting/T-compiler Meeting Agenda 2021-06-03.md

filename: T-compiler Meeting Agenda 2021-06-03.md

gha_language: HTML

repo_name: rust-lang/compiler-team


text:
Slate
========

Slate is a cool tool for documenting an API.  For specific info on slate checkout the [original repo](https://github.com/tripit/slate)

To look at this repo’s docs on github [click here](https://github.com/scalus/slate/blob/master/source/index.md)

repository: scalus/slate

repo_name: scalus/slate


text:
# Simple CRUD with Golang + MySQL

A simple CRUD created using Golang and MySQL

## Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

### Prerequisites

What things you need to install the software and how to install them

```
Give examples
```

### Installing

A step by step series of examples that tell you how to get a development env running

Say what the step will be

```
Give the example
```

And repeat

```
until finished
```

End with an example of getting some data out of the system or using it for a little demo

## Running the tests

Explain how to run the automated tests for this system

### Break down into end to end tests

Explain what these tests test and why

```
Give an example
```

### And coding style tests

Explain what these tests test and why

```
Give an example
```

## Deployment

Add additional notes about how to deploy this on a live system

## Built With

* [Golang](https://golang.org/) - The language
* [](#) - The framework
* [go get](#) - The package manager
* [?](#) - The lint for standards and best prectices
* [](#) - The test framework
* [](#) - The coverage framework
* [SQL](#) - The relational database (MySQL|MariaDB|PostgreSQL|MSSQL|Oracle)
* [](#) - The NoSQL database (MongoDB|RethinkDB|Cassandra|Couchbase|Firebase|DynamoDB)
* [](#) - The caching (Mencached|Redis)
* [RESTFul]() - The RESTFul
* [](#) - The auth (OAuth|Basic Authentication|Token Authenticataion|JWT|OpenID)
* [](#) - The message broker (RabbitMQ|Kafka)
* [](#) - Search engine (ElasticSearch|Solr|Sphinx)
* [](#) - The web server (Apache|Nginx|Tomcat|Caddy|MS IIS)
* [](#) - The web socket
* [](#) - The GraphQL
* [](#) - The container (Docker|rkt|LXC)
* [](#) - The configuration management (Ansible|Salt|Chef|Puppet)
* [](#) - The container orchestration (Kubernetes|Docker Swarm|Mesos|Nomad)
* [](#) - The infrastructure provisioning (Terraform|Cloud Formation)
* [](#) - The CI/CD tool (Jenkins|Travis CI|TeamCity|Drone|Circle CI)
* [](#) - The infrastructure monitoring (Nagios|Icinga|Datadog|Zabbix|Monit)
* [](#) - The application monitoring (AppDinamics|New Relic)
* [](#) - The HTTP request logger middleware [loggly|bunyan|morgan|winston(Node.js)]
* [](#) - The logger tool [loggly|bunyan|morgan|winston(Node.js)]
* [](#) - The log management (ELK Stack|Graylog|Splung|Papertrail)
* [](#) - The cloud provider (AWS|Goodle Cloud|Azue|Digital Ocean|Heroku)

## Contributing

Please read [CONTRIBUTING.md](https://gist.github.com/PurpleBooth/b24679402957c63ec426) for details on our code of conduct, and the process for submitting pull requests to us.

## Versioning

We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/your/project/tags).

## Authors

* **Fabrício Silva** - *Initial work* - [fabriciofmsilva](https://github.com/fabriciofmsilva)

See also the list of [contributors](https://github.com/your/project/contributors) who participated in this project.

## License

This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details

## Acknowledgments

* Hat tip to anyone whose code was used
* Inspiration
* etc

repository: fabriciofmsilva/go-simple-crud

repo_name: fabriciofmsilva/go-simple-crud


text:
`#react.js` `#master-in-software-engineering`

[![All Contributors](https://img.shields.io/badge/all_contributors-1-orange.svg?style=flat-square)](#contributors-)

# Assembler School: React Shopping Cart Components

In this project you will learn how to create a React.js and how to apply all the
important concepts.

## Getting Started

These instructions will get you a copy of the project up and running on your
local machine for development and testing purposes.

See deployment for notes on how to deploy the project on a live system.

### The repository

First, you will need to `clone` or `fork` the repository into your Github
account:

```
$ git clone https://github.com/assembler-school/react-shopping-cart-components.git
```

## Contents and Branches Naming Strategy

The repository is made up of several branches that include the contents of each
section.

The branches follow a naming strategy like the following:

- `main`: includes the main contents and the instructions
- `assembler-solution`: includes the solution

### Fetching All the Branches

In order to fetch all the remote branches in the repository, you can use the
following command:

```sh
$ git fetch --all
```

### List Both Remote Tracking Branches and Local Branches

```sh
$ git branch --all
```

Then, you can create a local branch based on a remote branch with the following
command:

```sh
$ git checkout -b <new_branch_name> <remote_branch_name>
```

### Installing

First, you will need to install the dependencies with: `npm install`.

Run the following command in your terminal after cloning the main repo:

```sh
$ npm install
```

### Running the Tests

The tests that validate your solution can be executed by runing the following
command:

```
$ npm run test
```

### Git `precommit` and `prepush` Hooks

In the `assembler-solution` branch you can see an implementation of these tools
if you'd like to use them.

## Deployment

In this pill we won't deploy the app.

## Technologies used

- `React.js`
- `@testing-library/react`
- `eslint`
- `prettier`
- `lint-staged`
- `husky`

## Project requirements

This is an overview of the main requirements of this project.

- You must follow all the instructions of the project step-by-step
- You should always try to solve them by yourself before asking for help
- You should always help your team members and fellow students of the master so
  that you can all learn together and become better software developers and team
  members
- You must finish all the steps that are marked as `Required`
- You must use semantic HTML5 elements for all the markup of the application
- Once you are done, you can move on to the optional ones that are marked as
  `Extra 💯`

### 1. Main component

#### File

```sh
/src/components/Main
```

In this step you will need to finish the code with the following requirements:

1. return a `<main>` html5 element that renders the `{children}` prop it
   receives
2. receive all the other `...props` and forward them to the `<main>` element
3. export the component from an `index.js` file. you should export the default
   component if is the only one

#### Test suite name

The following test suite validates that everything is correct: `<Main />`.

### 2. Button component

#### File

```sh
/src/components/Button
```

In this step you will need to finish the code with the following requirements:

1. return a `<button>` html5 element instead of the `div`
2. include all the previous props that the `div` element had
3. receive a `disabled` prop that has a default value of `false` that is
   assigned to the `<button>` element
4. receive all the other `...props` and forward them to the `<button>` element

#### Test suite name

The following test suite validates that everything is correct: `<Button />`.

### 3. App component

#### File

```sh
/src/App.js
```

In this step you will need to finish the code with the following requirements:

1. render the `<Home />` component from the `pages` folder

#### Test suite name

This step doesn't have any tests.

### 4. Home component

#### File

```sh
/src/pages/Home
```

In this step you will need to finish the code with the following requirements:

1.  uncomment all the code
2.  render the `<ProductsListing />` component and pass the following props:
    1. `products={...}`
    2. `handleDownVote={...}`
    3. `handleUpVote={...}`
    4. `handleSetFavorite={...}`
    5. `handleAddToCart={...}`

#### Test suite name

The following test suite validates that everything is correct: `<Home />`.

### 5. ItemCard component

#### File

```sh
/src/components/ItemCard
```

In this step you will need to finish the code with the following requirements:

1. uncomment all the code
2. destructure the following props in the component:
   1. `id`
   2. `img`
   3. `title`
   4. `shortDescription`
   5. `isFavorite`
   6. `upVotes`
   7. `downVotes`
   8. `handleDownVote`
   9. `handleUpVote`
   10. `handleSetFavorite`
   11. `handleAddToCart`
3. add the styles in the `ItemCard.scss` file so that it matches visually the
   screenshot bellow
4. render the `img` prop inside an `img` element
5. render the `FavoriteIconButton` component and pass it the following props:
   1. `handleSetFavorite={onSetFavorite}`
   2. `isFavorite=...`
6. render the `title` prop inside an `h2` element
7. render the `shortDescription` prop inside a `p` element
8. render a `IconButton` component and pass in the following props:
   1. `aria-label="up vote product"`
   2. `handleClick={onUpVote}`
   3. children: `<ThumbDown />` component
   4. bellow it a `p` element with the `textContent` of the
      `downVotes.currentValue` prop
9. render a `IconButton` component and pass in the following props:
   1. `aria-label="down vote product"`
   2. `handleClick={onDownVote}`
   3. children: `<ThumbUp />` component
   4. bellow it a `p` element with the `textContent` of the
      `upVotes.currentValue` prop
10. A `<Button>` component that has the following prop:
    1. `onClick={onAddToCart}`
    2. and a text of `Add to cart`
11. default export the component in the `index.js` file

#### ItemCard Screenshot

#### Test suite name

The following test suite validates that everything is correct: `<ItemCard />`.

### 6. ProductsListing component

#### File

```sh
/src/components/ProductsListing
```

In this step you will need to finish the code with the following requirements:

1. uncomment all the code
2. destructure the following props in the component:
   1. `products`
   2. `handleDownVote`
   3. `handleUpVote`
   4. `handleSetFavorite`
   5. `handleAddToCart`
   6. `...props`
3. render the `ItemCard` component using `[].map()` and pass in the following
   props:
   1. `key={product.id}`
   2. `id={product.id}`
   3. `img={product.img}`
   4. `title={product.title}`
   5. `shortDescription={product.shortDescription}`
   6. `upVotes={product.votes.upVotes}`
   7. `handleUpVote={handleUpVote}`
   8. `downVotes={product.votes.downVotes}`
   9. `handleDownVote={handleDownVote}`
   10. `isFavorite={product.isFavorite}`
   11. `handleSetFavorite={handleSetFavorite}`
   12. `handleAddToCart={handleAddToCart}`
4. default export the component in the `index.js` file

#### Test suite name

The following test suite validates that everything is correct:
`<ProductsListing />`.

## Project delivery

To deliver this project you must follow the steps indicated in the document:

- [Submitting a solution](https://www.notion.so/Submitting-a-solution-524dab1a71dd4b96903f26385e24cdb6)

## Resources

- [react-testing-library](https://testing-library.com/docs/react-testing-library/intro/)
- [reactjs.org](https://reactjs.org/)

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file
for details

## Contributors ✨

Thanks goes to these wonderful people
([emoji key](https://allcontributors.org/docs/en/emoji-key)):

Dani Lucaci
💻 📖 💡 🔧

This project follows the
[all-contributors](https://github.com/all-contributors/all-contributors)
specification. Contributions of any kind welcome!

## Repository

All the process is included in this repository: [Workflow repository](https://github.com/AranBeitia/react-Shopping-components)


text:
# Achlya racemosa Hildebr., 1867 SPECIES

#### Status
ACCEPTED

#### According to
The Catalogue of Life, 3rd January 2011

#### Published in
Pringsheims Jahrb. f. Wissenschaftl. Botanik 6: 61 (1867)

#### Original name
Achlya racemosa Hildebr., 1867

### Remarks
null

repository: mdoering/backbone

repo_name: mdoering/backbone


text:
# Blog Module for Nails

![license](https://img.shields.io/badge/license-MIT-green.svg)
[![tests](https://github.com/nails/module-blog/actions/workflows/build_and_test.yml/badge.svg )](https://github.com/nails/module-blog/action

This is the blog module for nails, it brings blogging capability to the app.

repository: nails/module-blog

branch_name: refs/heads/develop

gha_language: PHP

repo_name: nails/module-blog


text:
# Logstasher

Logstasher provides logstash-friendly logging interface for Go.
It wraps any writer and writes logstash events to it.

This is how output lines look like:

```json
{"@timestamp":"2015-03-22T13:34:43.973174775Z","@version":1,"message":"hello","shards":[1,2,3],"tags":["wow","such"]}
```

## Usage

```go
f := map[string]interface{}{
    "app":    "myapp",
    "things": []string{"something", "another"},
}

w := logstasher.NewWriter(os.Stdout, f)

log.SetFlags(0)
log.SetOutput(w)

log.Println("hey, logstash!")
```

## CLI

Logstasher provides command `logstasher` that can be used in unix pipes.
It reads lines from stdin, turns them into json events and writes to stdout:

```
λ echo reporting from $(hostname -s) | logstasher -fields '{"app":"myapp","pi":3.14}'
{"@timestamp":"2015-03-22T13:33:42.344282854Z","@version":1,"app":"myapp","message":"reporting from hyperion","pi":3.14}
```

You can also pass `-out` option with filename to write and `logstasher` would
happily write to that file, detecting log rotation and removal.

## Docker image

You can use minimal (8mb) docker image `bobrik/logstasher` to run logstasher:

```
# docker run --rm -it bobrik/logstasher -fields '{"from":"docker"}'
hey
{"@timestamp":"2015-03-23T15:48:02.543517666Z","@version":1,"from":"docker","message":"hey"}
```

or to install `logstasher` binary to your host:

```
# docker run --rm -v /usr/bin:/target bobrik/logstasher
installing logstaher in /target
# which logstasher
/usr/bin/logstasher
```

## License

MIT

repository: bobrik/logstasher

repo_name: bobrik/logstasher