text:
## Heads Up!
This is not an official Craft repo. Head over to https://github.com/craftcms/craft if you want to install Craft from its official repository. This repo is fixed to a version and for testing purposes.

## About Craft CMS

Craft is a flexible and scalable CMS for creating bespoke digital experiences on the web and beyond.

It features:

- An intuitive Control Panel for administration tasks and content creation.
- A clean-slate approach to content modeling and [front-end development](https://docs.craftcms.com/v3/dev/).
- A built-in Plugin Store with hundreds of free and commercial [plugins](https://plugins.craftcms.com/).
- A robust framework for [module and plugin development](https://docs.craftcms.com/v3/extend/).

Learn more about it at [craftcms.com](https://craftcms.com).

## Tech Specs

Craft is written in PHP (7+), and built on the [Yii 2 framework](https://www.yiiframework.com/). It can connect to MySQL (5.5+) and PostgreSQL (9.5+) for content storage.

## Installation

See the following documentation pages for help installing Craft 3:

- [Server Requirements](https://docs.craftcms.com/v3/requirements.html)
- [Installation Instructions](https://docs.craftcms.com/v3/installation.html)
- [Upgrading from Craft 2](https://docs.craftcms.com/v3/upgrade.html)

## Resources

#### Official Resources
- [Documentation](https://docs.craftcms.com/v3/) – Everything from usage instructions to plugin guides.
- [Class Reference](https://docs.craftcms.com/api/v3/) – Full API and class reference for plugin and module developers.
- [Demo site](https://demo.craftcms.com/) – Quickly launch a personalized demo of a Craft site.
- [Craft Slack](https://craftcms.com/community#slack) – Join one of the most friendly and helpful Slack groups around.
- [Craft Commerce](https://craftcommerce.com/) – First-party e-commerce platform for Craft.

#### Community Resources
- [CraftQuest](https://craftquest.io/) – Unlimited access to Craft training (and more) from Mijingo.
- [Envato Tuts+](https://webdesign.tutsplus.com/categories/craft-cms/courses) – Video courses.
- [nystudio107 Blog](https://nystudio107.com/blog) – Articles about Craft and modern web development.
- [Craft Link List](http://craftlinklist.com/) – Bimonthly newsletter about the Craft ecosystem.
- [Craft CMS Stack Exchange](http://craftcms.stackexchange.com/) – Community-run Q&A for Craft developers.

repository: cantastemel/craft

gha_language: PHP

repo_name: cantastemel/craft


text:
A Simple AngularJs application to check Climate of your local area.
This application will request browser to obtain user's locale via HTML5 Geolocation.
Also feather fcc api is used to get the location temperature - https://fcc-weather-api.glitch.me/

The web application can be accessed at - https://nitsbat.github.io/LocalWeatherApp/

## ** Note **

The fcc api is slow and is get using http request.
So to get the accurate result just refresh the browser 2-3 times.

license: MIT

repository: nitsbat/LocalWeatherApp

branch_name: refs/heads/master

extension: md

gha_language: JavaScript

gha_license_id: MIT

license_type: permissive

repo_name: nitsbat/LocalWeatherApp


text:
[![Build Status](https://travis-ci.com/mkoprek/ansible-role-composer.svg?branch=main)](https://travis-ci.com/mkoprek/ansible-role-composer)
[![Ansible Galaxy](http://img.shields.io/badge/ansible--galaxy-composer-blue.svg?style=flat)](https://galaxy.ansible.com/mkoprek/composer)

Composer Ansible Role
=========
Role for install composer package manager

Requirements
------------
This role requires Ansible 2.4 or higher and tested platforms:
* ubuntu:focal
* ubuntu:bionic
* debian:buster
* debian:stretch

- `php` - MUST be installed for run composer. You can use `mkoprek.phpfpm` role for install it.

Role Variables
--------------
All defaults variables are available in defaults/main.yml:

```yaml
composer_installer_url: https://getcomposer.org/installer
composer_installed_sha_url: https://composer.github.io/installer.sig
```
Standard urls for download composer-installer.php and it signature

```yaml
composer_version: ''
composer_latest_major_version: --2

```
If `composer_version` is set composer-install will try to install specific version.
If you want to stick with composer 1.* you need to set `composer_latest_major_version` to `--1`

```yaml
composer_install_path: /usr/local/bin/
composer_install_name: composer
```
Path where composer will be installed and with what name

```yaml
composer_home_path: ~/.composer
composer_user: root
composer_group: root
```
Path where composer will store data and install global packages
If you need install composer as different user you can also change it here

```yaml
composer_github_oauth: ''
```
If you need to avoid GitHub limits you need to specify here GitHub OAuth

```yaml
composer_global_packages: []
composer_home_path_add_to_path: false
```
If you need to install any of packages globally you can add it here as a list
Also if you need have access for those packages you can switch `composer_home_path_add_to_path` to true

Requirements
------------
Role requires installed `git` and it will be installed during play.

Example Playbook
----------------
Example usage when you need to install composer in specific 1.10.20 version:

    - hosts: servers
      roles:
         - role: username.rolename
           vars:
             composer_version: 1.10.20

License
-------
MIT

Author Information
------------------
Role created by Maciej Koprek (mkoprek) 2021

repository: mkoprek/ansible-role-composer

branch_name: refs/heads/main

gha_language: HTML

repo_name: mkoprek/ansible-role-composer


text:
# Generator for Kubernetes resources using Kustomize and Skaffold

This generator creates the resources to deploy a Spring Boot application and a MySQL Database.

You will need to install the following command line tools

* [kubectl](https://kubernetes.io/docs/tasks/tools/install-kubectl/)
* [kustomize](https://kubernetes-sigs.github.io/kustomize/installation/)
* [skaffold](https://skaffold.dev/docs/install/)

## Generator Commands

The Tanzu Starter Service can run these generator commands on the server when creating a new project.  Alternatively, you can run the generator command using the Tanzu Starter Service CLI named `tss`.

**TODO: LINK TO DOWNLOAD CLIENT**

`k8s new` creates

* A `skaffold.yaml` file in the root directory
* A kustomize directory structure with an overlay named `local`.  The kustomize file is located in `kubernetes/overlays/local/kustomization.yaml`
* Adds the [Jib Maven Plugin](https://github.com/GoogleContainerTools/jib/tree/master/jib-maven-plugin) to the Maven `pom.xml` under the profile `local`
* Adds an Spring Actuator dependency to the Maven `pom.xml` if it is not already present

`k8s update` creates
* A kustomize directory structure with an overlay named `local-services` for MySql if the project has a dependency on the `mysql-connector-java` library.

## Running the application and services

Once the generator commands have be executed you can run the application and services.

To run the application's dependent services, execute the command

* `skaffold run -p local-services`

To run the application, execute the command

* `skaffold run -p local`

If running on `minikube` you can retrieve the route for the application using `minikube service list`.  As you make changes to the application, execute the `skaffold run -p local` command to rebuild the container and update the application running in the Kubernetes cluster.

To delete the application's dependent services, execute the command

* `skaffold delete -p local-services`

To delete the application, execute the command

* `skaffold delete -p local`


text:
# Napalm Aruba

[![CircleCI](https://circleci.com/gh/digineo/napalm-digineo-procurve.svg?style=svg)](https://circleci.com/gh/digineo/napalm-digineo-procurve)

Napalm driver for aruba procurve switches. Written to be used in combination with netbox.

## Tested devices

| Switch Model Name               	| Tested Firmware Version 	|
|---------------------------------	|-------------------------	|
| **Aruba 2530 8G PoE+-Switch**     | YA.16.05.0008             |

## Motivation and Acknowledgement

There are already [a few](https://github.com/mwallraf/napalm-hp-procurve/) [python packages](https://github.com/ixs/napalm-procurve) that try to provide support for the procurve switches series to [napalm](https://napalm-automation.net/).  These packages come in different levels of quality and supported features though.

The main motivation point for this package is to write a napalm driver for procurve switches that also work well together with [netbox](https://github.com/digitalocean/netbox).  Thus the goal of this package is to provide all functionality of a napalm driver that is used by netbox.

## Is it any good?

[Yes.](https://news.ycombinator.com/item?id=3067434)

repository: digineo/napalm-digineo-procurve

gha_language: Python

repo_name: digineo/napalm-digineo-procurve


text:
# CHANGELOG

## 1.3.0 - 2019-02-10

* Empty provider output is now excluded
  (https://github.com/awslabs/git-secrets/issues/34)
* Spaces are now supported in git exec path, making more Windows
  paths execute properly.
* Patterns with newlines and carriage returns are now loaded properly.
* Patterns that contain only "\n" are now ignored.
* Various Bash 4 fixes (https://github.com/awslabs/git-secrets/issues/66).
* Make IAM key scanning much more targeted.

## 1.2.1 - 2016-06-27

* Fixed an issue where secret provider commands were causing "command not
  found" errors due to a previously set IFS variable.
  https://github.com/awslabs/git-secrets/pull/30

## 1.2.0 - 2016-05-23

* Fixed an issue where spaces files with spaces in their names were not being
  properly scanned in the pre-commit hook.
* Now ignoring empty lines and comments (e.g., `#`) in the .gitallowed file.
* Fixed an issue where numbers were being compared to strings causing failures
  on some platforms.

## 1.1.0 - 2016-04-06

* Bug fix: the pre-commit hook previously only scanned the working directory
  rather than staged files. This release updates the pre-commit hook to instead
  scan staged files so that git-secrets will detect violations if the working
  directory drifts from the staging directory.
* Added the `--scan-history` subcommand so that you can scan your entire
  git history for violations.
* Added the ability to filter false positives by using a .gitallowed file.
* Added support for `--cached`, `--no-index`, and `--untracked` to the `--scan`
  subcommand.

## 1.0.1 - 2016-01-11

* Now works correctly with filenames in a repository that contain spaces when
  executing `git secrets --scan` with no provided filename (via `git grep`).
* Now works with git repositories with hundreds of thousands of files when
  using `git secrets --scan` with no provided filename (via `git grep`).

## 1.0.0 - 2015-12-10

* Initial release of ``git-secrets``.

repository: deshpandetanmay/git-secrets

repo_name: deshpandetanmay/git-secrets


text:
# Readme - Terrific Micro Twig

This extension ...

brings the Twig Templating Engine into Terrific Micro

## Table of contents

* [Installation](#installation)
* [Usage](#usage)
* [Configuration](#configuration)
* [Additional add-ons](#additional-add-ons)
* [Contributing](#contributing)
* [Credits & License](#credits)

## Installation

You need:

* [Terrific Micro](http://namics.github.io/terrific-micro/) v1.0.0 or newer
* The files in your project extensions folder ;-)

        cd project/extensions
        git clone https://github.com/namics/terrific-micro-twig.git
        rm -rf terrific-micro-twig/.git

## Usage

Include the twig main file into your project (file: `project/index.project.php`)

    require_once(__DIR__ . '/extensions/terrific-micro-twig/twig.inc.php');

## Configuration

There's nothing to configure. Terrific Micro will now throw your templates into the Twig rendering engine.
Any Twig errors will be reported on the view.

But maybe you want to configure Terrific Micro to handle view files with the file extension `twig`.
Do this in `config.json`:

    "micro" -> "view_file_extension" : "twig"

## Additional add-ons

You can add custom functions, filters etc. by defining the following function:

    $twigAdditionalFunctions = function($twig) {
        // do your stuff with the Twig environment
    };

You can add additional include paths by setting the following array:

    $twigAdditionalPaths = array('path/to/custom/includes');

Define these lines BEFORE the require_once call.

## Contributing

* For Bugs & Features please use [github](https://github.com/namics/terrific-micro-twig/issues)
* Feel free to fork and send PRs. That's the best way to discuss your ideas.

## Credits

* The Twig Integration was created by [Christian Stuff](https://github.com/Regaddi)
* [Twig Template Engine 1.16.0](http://twig.sensiolabs.org/)

## License

Released under the [MIT license](LICENSE)

repository: merkle-open/terrific-micro-twig

repo_name: merkle-open/terrific-micro-twig


text:
# Gravatar
[![Latest Stable Version](https://poser.pugx.org/lrobert/gravatar/v/stable.svg)](https://packagist.org/packages/lrobert/gravatar) [![Total Downloads](https://poser.pugx.org/lrobert/gravatar/downloads.svg)](https://packagist.org/packages/lrobert/gravatar) [![Latest Unstable Version](https://poser.pugx.org/lrobert/gravatar/v/unstable.svg)](https://packagist.org/packages/lrobert/gravatar) [![License](https://poser.pugx.org/lrobert/gravatar/license.svg)](https://packagist.org/packages/lrobert/gravatar)

A library to make working with Gravatar in PHP easy.

## Requirements

lrobert\Gravatar requires the following:

- PHP 5.3+

## Installation
It is recommended that you install the lrobert\Gravatar library [through composer](http://getcomposer.org/). To do so, add
 the following lines to your ``composer.json``.

```json
{
    "require": {
        "lrobert/Gravatar": "dev-master"
    }
}
```

## Usages

The following is a basic example of the lrobert\Gravatar library.

```php
<?php

require_once('vendor/autoload.php');

$gravatar = new \lrobert\Gravatar\Gravatar();

?>

<img src="<?=<EMAIL_ADDRESS>?>" alt="Example Avatar">

```

## Contributing

We welcome everyone to contribute to lrobert\Gravatar. Below are some of the things that you can do to contribute:

- Read [our contributing guide](https://github.com/lrobert/Gravatar/blob/master/CONTRIBUTING.md)
- [Fork us](https://github.com/lrobert/Gravatar/fork) and [request a pull](https://github.com/lrobert/Gravatar/pulls) to the [develop](https://github.com/lrobert/Gravatar/tree/develop) branch
- Submit [bug reports or feature requests](https://github.com/lrobert/Gravatar/issues) on GitHub

repository: Voziv/Gravatar

repo_name: Voziv/Gravatar


text:
Published: 2021-12-09
Title: Time to (actually) learn some game design
Lead: It seems that I'm missing some critical skills
Author: Bartosz
Tags:
  - Game Dev
  - Unnamed Tycoon
---

I've finally realized that I need to go back to basics and learn some proper game design skills. Better late than never, right?

### What happened to the tycoon?

So last time I wrote about getting ready to create a tycoon game. I've started working on a prototype but then, somehow, I got lost. I thought that maybe I'm not that interested in tycoons - I've played a few of them again to look at some mechanics and got bored pretty quickly. So I've decided to abandon that project and start a new one - a simple browser-based RPG. I like RPGs so I thought that might be a good fit.

### What happened to the RPG?

Once I'd thought about creating an RPG, I've started coding happily. I've drawn inspiration from games like A Dark Room, Candy Box and Megami Quest 1 & 2. I wanted it to be somewhat similar to Megami Quest (no actual fights, just progress) but with more depth and an actual story. I got to a point where I have some basic story going and things to do but moving around just felt meh. So I've added a battle system and spent time on coding the mechanics and battle UI. It was still meh. So I've started writing a proper story and spent a lot of time on coding story script parsers and creating dialogues etc. It was still meh. So I've... you can see where this is going.

### Looking back...

I've stopped working on the game and realized it's time to do some thinking (finally!). I've looked back at my history as a game maker and realized that I have been repeating the same pattern over and over again: a loose idea -> code code code -> the game is meh -> abandon. I've never really sat down to flesh out the idea, to properly design the game! Even the few projects I've managed to finish were done like that and thus not that fun. Hundreds, maybe even thousands of hours of coding with no clear direction and thought. I've even read a few books on the subject and somehow didn't pick up that I need to design the game first. It's kind of amazing.

### What's next?

It's time to learn some actual game design. I've dug up my books and ordered a few more. I'm going to do exercises like a proper student (I've always omitted them...). And I'm going to design games, long before I start coding them!

Wish me luck!

[You can checkout out the RPG prototype here](/rpg/)


text:
# Twitch Pre-Stream Checklist

## T-60 minutes
**Notify the world!**

* Check connections and batteries of devices (both, my keyboard and mouse batteries were empty the other day)
* Tell the family that it’s “DO NOT DISTURB” time.
* Update title/group/category on Twitch dashboard
* Post to social media - Tell people you will be streaming in an hour

## T-30 minutes
**Hardware**

* Setup Lights
* Setup Greenscreen
* Webcams and mics plugged in
* Plug in any other hardware (For example, I use a capture card to capture my iPad for drawing)
* Shut down non-essential apps
  * Email
  * Teams
  * OneDrive or other synching software (anything that sucks bandwidth)
  * Documents / Other non-stream stuff
* Start up apps you'll be using
  * Stream Deck
  * Peach
    * Desktop 1 - Browser / misc
    * Desktop 2 - Visual Studio, Emulators/Simulators
  * Snaz (or equivelent countdown app)
  * Open Broadcast Software (OBS)
  * VNC - I use this to share my mac
  * Browser
  * Skype (if a multiperson stream)
  * Any other software that is specific to the stream topic

**Protect your privacy**
* Switch to a "safe" profile in browser(s)
* Make sure significant others know you can't be interrupted
* Silence your phone
* Turn notifications off on your machine

**Get Your Resources Ready**
* Open up stream notes if you have some
* Open any browser pages you need
* Layout your resources where you want them across monitors and desktops

**Check your streaming environment**
* OBS
  * Make sure you have the right profile and Scene collection loaded
  * Check you have the right streamkey in OBS Settings
  * Check Chromakeys are working
  * Check your scenes are working
* Sound
  * Are you playing music in the background during your stream? Prepare it
  * Audio levels of mic and/or other sources
* BOTS
  * If using a bot, make sure it's connected to your chat
* StreamDeck
  * Make sure you have the right profiles loaded
  * Check your buttons are working

**Test**
* Do a test record locally, playback and listen. Audio OK? Video OK?

**Ensure your comfort**
* Toilet?
* Glass of water (or a beer)
* Stretch it out

## Go Live Time!

* Hit that Stream Button! - (and maybe the record local as well)
* Consider posting a welcome message (to get the chat flowing)
* Relax, have fun! ;-)

# Twitch Closing Out Checklist
* Thank everyone for watching
* Tell when I'm next online - remind to follow / subscribe
* Host or raid someone from LiveCoders, or nice tip from @Bun, try a music channel, Bob Ross or Cosmos

# Twitch Post-Stream Checklist
* Reflect on what went well, what sucked and see if any actions can be drawn.

repository: kphillpotts/TwitchStream

repo_name: kphillpotts/TwitchStream


text:
---
title: "C++ Tips of the Week"
layout: tips
sidenav: side-nav-tips.html
type: markdown
---

Background: About five years ago, within Google we started publishing a series
of C++ tips, about once a week, that became known as the "C++ Tips of the Week"
(TotW). They became wildly successful, and we are still publishing them to
this day (indicating that a language as rich as C++ will not deplete us of
topics anytime soon).

Not only do we discuss the finer points of the language, but in true "tip"
fashion, offer our advice or design preferences. The collective set of C++
TotW has become a canon within Google itself, cited thousands of times per
week in code reviews and internal mailing list discussions. Often they are
cited by number, and some have become known simply as "totw/110" or "totw/77".

We've decided to expose most of these tips to the Abseil development community,
and the C++ community at large. Over the coming months, we'll be posting new
tips as we review and refine them for publication. Not all the entries we've
written are relevant to the outside world; some were
specific to our internal tools and abstractions, and some have become obsolete
as the language has changed. But we'll publish what we can and what we find
valuable (and write new tips!) on this page as they become available.

Note: we will be keeping the original numbering scheme on these tips, and
original publication date, so that the 12K or so people that have some exposure
to the original numbering don't have to learn new citations. As a result, some
tips may appear missing and/or  out of order to a casual reader. But rest
assured, we're giving you the good stuff.

Some tips may include historical information that, though accurate, may reflect
philosophy and/or usage at the time the tip was originally written. In most
cases, we have updated that information to reflect current practices, and note
exceptions that are historical, where applicable.

**Because these tips are being published out of original order, we've listed them
below in the order of re-publication.**

  {% assign sorted_posts = site.posts | sort: 'date' | reverse %}
  {% assign datelist = '' %}
  {% assign new = true %}

  {% for post in sorted_posts %}
    {% if post.url contains "/tips/" %}
      {% assign cur_date = post.date | date_to_string %}
      {% unless datelist contains cur_date %}

{{post.date | date: '%B %d, %Y' }}

        {% assign datelist = datelist | append: cur_date %}
      {% endunless %}

        {{ post.title }}

    {% endif %}
  {% endfor %}


text:
---
layout: page
title: Tensors
---

<script type="text/javascript" async
  src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-MML-AM_CHTML">
</script>

텐서와 벡터에 대한 아주 좋은 설명을 아래 YouTube동영상에서 찾을 수 있다.

[![IMAGE ALT TEXT HERE](http://img.youtube.com/vi/f5liqUk0ZTw/0.jpg)](http://www.youtube.com/watch?v=f5liqUk0ZTw)

텐서의 정의를 가장 잘 표현한 문구이다:
Tensors transform like tensors.

아래 기존의 references axes 를 새로운 axes로 변환시키는 변환 매트릭스 (transformation matrix)
를 사용하여 벡터 a, second rank tensor $${\bf \sigma}$$ 그리고 4th rank tensor $$\mathbb{M}$$을 변환하는 법칙이 나와 있다.

$$
a^\prime_i = R_{ij} a_j \\
\sigma^\prime_{ij} = R_{ik} \sigma_{kl} R_{jl} \\
\mathbb{M}^\prime_{ijkl} = R_{im} R_{jn} \mathbb{M}_{mnop} R_{ko} R_{lp}
$$

** [Einstein convention](https://en.wikipedia.org/wiki/Einstein_notation) was used for the summation ([아인슈타인 컨벤션](https://ko.wikipedia.org/wiki/아인슈타인_표기법)이 사용되어있다.)

Below fortran code is an example where the coordinate transformation
is applied to a velocity vector ($$[30, 0, 0]$$) by rotating the old coordinate axes
by an angle about the 3rd basis axis in the right-handed manner.

In short, it does

$$
v^\prime_i = \sum_j^3 R_{ij}v_j
$$

More explicitly it does **three** separate summation operations:

$$
v^\prime_1 = \sum_j^3 R_{1j}v_j\\
v^\prime_2 = \sum_j^3 R_{2j}v_j\\
v^\prime_3 = \sum_j^3 R_{3j}v_j\\
$$

Find the code below:

```fortran
	implicit none

	dimension r(3,3), velocity_old(3), stress(3,3), velocity_new(3)
	real*8 r, velocity_old, stress, th, velocity_new
	integer i,j,k

	!! the transformation matrix:
	write(*,*)'Type: Rotation angle [in degree]:'
	read(*,*) th
	th = th* 3.141592 / 180. !! convert the degree to radian

	r(:,:)=0.
	r(1,1)=cos(th)
	r(1,2)=sin(th)
	r(2,1)=-sin(th)
	r(2,2)=cos(th)
	r(3,3)=1.

	!! velocity
	velocity_old(1)=30.
	velocity_old(2)=0.
	velocity_old(3)=0.

	!! let's transform the velocity v`_i = r_ij v_j
	do i=1,3
		velocity_new(i)=0.
	do j=1,3
		velocity_new(i)=velocity_new(i)+r(i,j)*velocity_old(j)
	enddo
	enddo

	!! print out the new velocity
	write(*,*) 'old velocity'
	write(*,'(3f5.1)') (velocity_old(i),i=1,3)
	write(*,*) 'new velocity'
	write(*,'(3f5.1)') (velocity_new(i),i=1,3)

	end program
```

In order to use the code, copy and paste the above to a file (say, **transform.f**)
and compile it using [gfortran](https://gcc.gnu.org/fortran/) as in below

```bash
$ gfortran transform.f -o transform
```

You will find an executable file named **transform** appeared in that same folder.
Execute the program using
```bash
$ ./transform
```
And, type the rotation angle you want to examine.

For 2nd rank tensor transformation, you can use below lines:
```fortran
do i=1,3
do j=1,3
	s_new(i,j)=0.
do k=1,3
do l=1,3
	s_new(i,j)=s_new(i,j) + r(i,k)*s_old(k,l)*r(j,l)
enddo
enddo
enddo
enddo
```

-----------------------------

Similarly, a Python script is as below does the same.

You will need NumPy package installed in your system to run the below correctly.
```python
import numpy as np
velocity_old=np.zeros(3)
velocity_new=np.zeros(3)
r=np.zeros((3,3))
velocity_old[0]=30.

th=raw_input('Type angle [in degree]: ')
th=np.pi*float(th)/180.

r[0,0]=np.cos(th)
r[0,1]=np.sin(th)
r[1,0]=-np.sin(th)
r[1,1]=np.cos(th)
r[2,2]=1.

## Apply v`_i = r_ij v_j
for i in xrange(3):
	for j in xrange(3):
		velocity_new[i]=velocity_new[i]+ \
	r[i,j]*velocity_old[j]

print 'old velocity'
print velocity_old
print 'new velocity'
print velocity_new
```

Copy and paste the above to a file (say **transform.py**).
You can run the above such as
```bash
$ python transform.py
```

Excercise 1:
Modified the above code to transform a stress tensor to a new coordinate axes.

Excercise 2:
Create a transformation matrix using three [Euler angles]({% link euler.md%}) and repeat the above task.

Use below subroutine (downloaded from the [website](http://rollett.org/anthony/) of prof. Anthony Rollett@CMU) to obtain the transformation matrix as a function of the three Euler angles
$$\phi_1, \Phi, \phi_2$$.

```fortran
c     This subroutine has been downloaded from the link below:
c     http://pajarito.materials.cmu.edu/rollett/texture_subroutines/euler.f
c
c  -------------------
c
	  subroutine euler(a,iopt,nomen,d1,d2,d3,ior,kerr)
	  implicit none
c                          Last revision 20nov90 UFK
c                          Revision by YJ for his lectures at CWNU
c      common a(3,3),grvol(1152),epsga(5),ist1,ist2,sqr3,sqrh,ident(3,3)
c  SPECIAL VERSION WITHOUT COMMON BLOCK
	  integer iopt,ior,kerr,kor
	  real*8 dps,rad
	  real*8 a(3,3),d1,d2,d3,th,sth,cth,sph,cph,sps,cps,ps,ph,dth,dph,dps
	  character nomen
	  save kor
	  rad=57.29578
c
c *** this subroutine calculates the euler angles associated with the
c     transformation matrix a(i,j) if iopt=1 and viceversa if iopt=2
c ***  Note that a is sample (rows) in terms of crystal (columns);
c      -- opposite of standard g (e.g.Bunge) - this is Canova s
c ***  Note that in this version, the Euler angles are defined symmetrically:
c      so that interchanging phi and psi means transposing a.
c      ("Kocks" nomen: defined going from +X to +Y in both COD and SOD)
c ***  However, other angle conventions are translated, according to
c  nomen="K" - Kocks (as internally) -- also sometimes "N"...
c        "R" - Roe          (Psi=psi, Phi=180-phi)
c        "B" - Bunge        (phi1=90+psi, Phi=Theta, phi2=90-phi)
c        any other - Canova (Theta first, phiC=90+phi, omega=90-psi)
c ***   Note: only in symm. notation does a point with all Euler angles
c             between 0 and 90 deg appear in the +x,+y quadrant!
c       If you want to see an individual point in this quadrant and are:
c       using Roe,    the third angle must be between 90 and 180;
c             Bunge,      first                                 ;
c             Canova,     second                                .
c ***  Input and output Euler angles d1,d2,d3 in degrees
c
	  goto(5,20),iopt
	5 if(abs(a(3,3)) .ge. 0.999) goto 10
	  th=acos(a(3,3))
	  sth=sin(th)
	  ps=atan2(a(2,3)/sth,a(1,3)/sth)
	  ph=atan2(a(3,2)/sth,a(3,1)/sth)
ccccc   if it bombs out here, both a-components in one arg. are zero
c       (this should not be possible, but has happened, probably fixed)
	  go to 15
c
   10 ps=0.5*atan2(a(1,2),-a(1,1))
	  ph=-ps
c       The above still have the problem that they give too many
c       equivalents of the same grain in DIOROUT and density file. Therefore:
	  if(kerr.eq.1.and.kor.ne.ior) then
	  print*,'NOTE: grain',ior,' has Theta < 1 deg.: sometimes problems'
		print*
		kor=ior
	  endif
c
   15 dth=th*rad
	  dph=ph*rad
	  dps=ps*rad
	  d1=dps
	  d2=dth
	  if(nomen.eq.'K'.or.nomen.eq.'N') then
		d3=dph
	  elseif(nomen.eq.'R') then
		d3=180.-dph
	  elseif(nomen.eq.'B') then
		d1=dps+90.
		d3=90.-dph
	  else
		d1=dth
		d2=dph+90.
		d3=90.-dps
	  endif
	  if(d1.ge.360.) d1=d1-360.
	  if(d3.ge.360.) d3=d3-360.
	  if(d1.lt.0.) d1=d1+360.
	  if(d3.lt.0.) d3=d3+360.
	  return
c  *************************************
   20 dth=d2
	  dps=d1
	  if(nomen.eq.'K') then
		dph=d3
	  elseif(nomen.eq.'R') then
		dph=180.-d3
	  elseif(nomen.eq.'B') then
		dps=d1-90.
		dph=90.-d3
	  else
		dth=d1
		dph=d2-90.
		dps=90.-d3
	  endif
	  ph=dph/rad
	  th=dth/rad
	  ps=dps/rad
	  sph=sin(ph)
	  cph=cos(ph)
	  sth=sin(th)
	  cth=cos(th)
	  sps=sin(ps)
	  cps=cos(ps)
	  a(1,1)=-sps*sph-cph*cps*cth
	  a(2,1)=cps*sph-cph*sps*cth
	  a(3,1)=cph*sth
	  a(1,2)=sps*cph-sph*cps*cth
	  a(2,2)=-cph*cps-sph*sps*cth
	  a(3,2)=sth*sph
	  a(1,3)=sth*cps
	  a(2,3)=sps*sth
	  a(3,3)=cth
	  return
	  end
c
c  &&&&&&&&&&&&&&
c
```


text:
---
title: NServiceBus 32-bit (x86) Host Process
summary: If 32-bit code must be invoked and loaded, use NServiceBus.Host32.exe
component: Host
redirects:
 - nservicebus/nservicebus-32-bit-x86-host-process
reviewed: 2022-01-26
---

NServiceBus is an "Any CPU" framework. It doesn't have 32-bit or 64-bit specific code. This enables transitioning between 32- and 64-bit operating systems. Unfortunately, not all assemblies can be compiled using the default Any CPU architecture. In many, this is related to legacy systems that have 32-bit specific code for platform interoperability with native C libraries, etc.

With the default NServiceBus.Host, the application always loads in 64-bit (x64) mode if running on a 64-bit OS, or in 32-bit (x86) mode for a 32-bit OS. Again, this is typically not a problem.

If assemblies or other libraries containing 32-bit code must be invoked and loaded into a 64-bit process a `BadImageFormatException` will be thrown.

There are two specific versions of the NServiceBus Host: the default *Any CPU* version and `NServiceBus.Host32.exe`targeting 32-bit.

The second one allows users running a 64-bit OS to run a 32-bit NServiceBus host process, allowing execution of 32-bit binaries/code without resorting to workarounds such as `corflags.exe` to patch an assembly, which instruct the .NET Framework to run in 32-bit mode.

Links to the NuGet packages:

 * [NServiceBus.Host (32-bit and 64-bit)](https://www.nuget.org/packages/NServiceBus.Host)
 * [NServiceBus.Host32 (32-bit only)](https://www.nuget.org/packages/NServiceBus.Host32)

gha_language: C#

gha_license_id: NOASSERTION


text:
{% filter markdown %}
Configura tu cuenta de correo en Mail (Mac Mail)
=============

Esta guía te mostrará instrucciones paso a paso para configurar tu cuenta de correo en Mail en MacOS

* Add a New Account
* Incoming Mail Server Settings
* Outgoing Mail Server Settings
* Complete Set Up on Yosemite OS

Add a New Account
-----------------
![alt text](/static/doc/gmaildroid-es-ES-1.png **Logo Title Text 1**)

* Choose Preferences, from the Mail menu.
* The Mail Menu
* Select Preferences.
* Click on the Accounts tab.
* On the Accounts window, click the + (plus) sign.
* Create a new Account

***

Account Settings
-----------------

* Choose Add Other Mail Account
* Account types in Mac Mail
* Enter your Full Name, or as you would like it to appear on your sent email.
* New Account Creation Window
* Enter your Email Address: **{{email}}**.
* Enter your email account's Password.
* Click the Continue button.
* A message should appear saying **Account must be manually configured**. Click Next.

***

Incoming Mail Server Settings
-----------------------------

When entering the information for your Incoming Mail Server you will need to decide if you would like to use POP3 or IMAP. POP3 will download and remove all of the emails from our server, whereas IMAP will synchronize the emails between your email client(s) and our server. IMAP is recommended if you will be using this email account with multiple devices since they will all synchronize.
Mail - Account Type

* Choose your account type. You may select either POP or IMAP.

* Click here for an explanation on the differences between POP3 and IMAP
* Please enter **{{imap.host}}** as the Incoming mail server.
* Enter  **{{email}}** as the User Name.
* Enter the Password of your email account.
* Click Next.

***

Incoming Mail Server Info
-------------------------

* For Path Prefix, please enter INBOX.
* If you are using IMAP, make sure you are using either port 143 with no SSL -OR- port 993 with SSL.
* Authentication should be set to Password.

***

SSL Certificate Warning
-----------------------

If you choose to use SSL, you may receive a message warning you that the certificate is not trusted. If you receive this message, follow these steps:

* Click Show Certificate.
* The show image button.
* Check the box to always trust the certificate.
* The always trust option.
* Click Connect.

***

Outgoing Mail Server Settings
-----------------------------

Outgoing Mail Server Window
Replace example.com with your own domain name.

* The Outgoing Mail Server is the same as your incoming mail server. Again, this will be something like mail.example.com
* Enter your full email address as the User Name.

* Note: Outgoing username and password could say **optional** in the field. Please be sure to add your username and password to it.
* Enter the Password of your email account.
* You may receive a message saying Additional account information required.
* For the port number, you can use port 26 with no SSL or port 465 with SSL.
* Make sure the Authentication is set to Password.
* Click the Create button.

***

Complete Set Up on Yosemite OS
------------------------------

If you are running Yosemite you may want to change two options to make sure that your account settings don't change. These steps only apply to apple computers running Yosemite.

* Choose Preferences, from the Mail menu.
* The Mail Menu
* Select Preferences.
* Click on the Accounts tab.
* Click on Advanced.
* Uncheck the option labeled **Automatically detect and maintain settings**.
* Advanced settings screen in mac mail.
* Now Click on Account Information
* Under Outgoing Mail Server(SMTP) select the **Edit SMTP Server List** option.
* Click Advanced.
* Uncheck the option labeled **Automatically detect and maintain settings**.
* Advanced outgoing settings screen in mac mail.
* Click OK
{% endfilter %}

repository: EstudioNexos/flautodiscover

repo_name: EstudioNexos/flautodiscover


text:
---
name: conclusion
title: Prof g
internal: true
type: custom-blog
---

## Conclusion

I started the sprint wanting to learn about brand strategy. Right away, **I came to realize that the community around the course would be just as important to the experience as the curriculum.** At this point it's been a week since we started the sprint. So many interesting discussions have sparked on the Slack workplace that it's hard to keep up. But knowing that there's such a positive energy from the start, makes me want to go even further.

**This year has been challenging for everyone, no doubt about it. But what I've learned from this analysis, makes me very hopeful for the future.**

I'm **excited** to be part of this **great** community of **creative** people, I want to learn more and I'd **love** to **help** as much as possible. I'll be talking to you after lunch 😉

repository: aaspinwall/devPortfolio

repo_name: aaspinwall/devPortfolio


text:
# ChatterCom

A social broadcasting platform.

## Getting Started

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

### Installing

To install all the dependancies, execute the following command:
```
npm install
```

Also, you need an instance of MongoDB running locally on port 27017.

To start the primary daemon process for MongoDB, execute the following commands:
```
export PATH=`<mongodb-install-directory>`/bin:$PATH
// skip sudo if read-write access control is unrestricted for chatter-com
sudo mongod
```

Open another terminal if you want to start the mongo shell and execute the command:
```
mongo chatter-com
```

To start the application only if you installed the dependancies and successfully connected to the DB, execute the command:

```
npm run both
```

## Built With

* [React](http://facebook.github.io/react/) - User interface building library
* [Express](https://expressjs.com/) - Node.js web application framework
* [MongoDB](https://mongodb.com/) - Document-oriented database program

### UI Inspiration

The user interface of the application is derived based on the following mockups:

![Chatter-Com Mockups](https://raw.githubusercontent.com/callmeaatrey/cleopatra/master/server/static/img/mockups/mockup_compilation.png)

## Authors

* **Shikher Aatrey (itsaatrey@gmail.com)**

## Contact

* Feel free to reach me if you have trouble with the application on my email.

repository: callmeaatrey/cleopatra

repo_name: callmeaatrey/cleopatra


text:
---
title: RadGlyph
page_title: RadGlyph
description: This article describes the RadGlyph FrameworkElement which enables seemless visualization of font glyphs.
slug: common-styling-appearance-radglyph
tags: radglyphs, telerikwebui, fonts, foregrounds, text, frameworkelement, design, time
published: True
position: 0
---

# RadGlyph

With the **R1 2018** release, the Telerik UI for {{ site.framework_name }} suite provides the **RadGlyph** which is a **FrameworkElement** that enables seamless visualization of font glyphs.

## Benefits

Apart from the **shorter load time** compared to the ordinary glyphs, the RadGlyph provides out-of-the-box **design-time support**. In addition, it respects the **FlowDirection** property in the same manner as a standard **Path** element, for example. Last but not least, it **inherits the Foreground** property from its parent element if it is not set explicitly.

## Usage

The RadGlyph can be used both standalone and as a markup extension. **Examples 1 and 2** demonstrate both approaches, respectively.

#### __[XAML] Example 1: Define a RadGlyph in XAML__

{{region xaml-common-styling-appearance-radglyph-1}}
	<Label x:Name="label">
		<telerik:RadGlyph Glyph="" Foreground="Black" FontSize="100" />
	</Label>
{{endregion}}

#### __[C#] Example 1: Define a RadGlyph in code-behind__

{{region cs-common-styling-appearance-radglyph-1}}
	var glyph = new RadGlyph() { Glyph = "\uE91E", Foreground = Brushes.Black, FontSize = 100 };
	this.label.Content = glyph;
{{endregion}}

#### __[XAML] Example 2: Use the RadGlyph markup extension__

{{region xaml-common-styling-appearance-radglyph-2}}
	<Image Source="{telerik:RadGlyph Glyph={StaticResource GlyphCs}, Foreground=Black}" />
{{endregion}}

#### Figure 1: The result from examples 1 and 2

![The C# RadGlyph](images/radglyph-1.png)

> In order to use the glyph references (such as **GlyphCs** in **Example 2**) as static resources in a project, you need to include the **Telerik.Windows.Controls.dll** and merge the **FontResources.xaml** dictionary in the application resources as demonstrated in **Example 3**. A list of the available glyphs and their resource keys can be found in the [Glyphs Reference Sheet]({%slug common-styling-appearance-glyphs-reference-sheet%}) article.

#### __[XAML] Example 3: Adding the FontResources.xaml dictionary__
{{region xaml-common-styling-appearance-radglyph-3}}
	<ResourceDictionary Source="/Telerik.Windows.Controls;component/Themes/FontResources.xaml"/>
{{endregion}}

## Properties

The RadGlyph class exposes the following properties:

* **Glyph**: The actual text to be displayed. It is of type **String**.

* **Foreground**: The foreground of the element which would color the rendered glyph. It is of type **Brush**.

* **Background**: The background of the element. It is of type **Brush**.

* **Font**: The name of the font to be used. It is of type **String** and corresponds to one of the [registered fonts](#register-fonts).

* **FontSize**: The font size of the element. It is of type **Double**.

The RadGlyphExtension on the other hand provides this set of properties:

* **Glyph**: The actual text to be displayed. It is of type **Object**.
* **Foreground**: The foreground of the element which would color the rendered glyph. It is of type **Brush**.
* **Font**: The name of the font to be used. It is of type **String** and corresponds to one of the [registered fonts](#register-fonts).
* **Size**: The font size of the element. It is of type **Double**.
* **Type**: Explicitly sets type of the exported glyph. It is of type **GlyphExportType** which is an enumeration with the values **None** (default), **Image** (which returns an **ImageSource**) and **Path** (which returns a **Geometry**).

The **RadGlyphExtension** cannot be set inline to the **Value** property of a Style **Setter** element. Instead, it should be set through the **Setter.Value** XAML tag.

#### **[XAML] Example 4: Set Setter.Value XAML tag**

{{region xaml-common-styling-appearance-radglyph-4}}
	<Style TargetType="telerik:RadButton">
    	<Setter Property="Content">
        	<Setter.Value>
            	<telerik:RadGlyph Glyph="{StaticResource GlyphCs}"/>
        	</Setter.Value>
    	</Setter>
	</Style>
{{endregion}}

## Fonts

The default font family used by the glyphs is the **TelerikWebUI**. A list of the available glyphs can be found in the [Glyphs Reference Sheet]({%slug common-styling-appearance-glyphs-reference-sheet%}) article.

Another font that comes out of the box **since the R2 2022 release** is the **TelerikFluentIcons** which contains a similar set of icons as the **TelerikWebUI** but with different visual appearance.

**Example 5** demonstrates the difference in appearance between the two fonts.

#### **[XAML] Example 5: Calendar glyph in TelerikFluentIcons and TelerikWebUI fonts respectively**

{{region xaml-common-styling-appearance-radglyph-5}}
    <StackPanel Orientation="Horizontal">
        <Label>
            <telerik:RadGlyph Font="TelerikFluentIcons" Glyph="" Foreground="Black" FontSize="40"/>
        </Label>
        <Label>
            <telerik:RadGlyph Glyph="" Foreground="Black" FontSize="40"/>
        </Label>
    </StackPanel>
{{endregion}}

#### Figure 2: The calendar icon in the TelerikFluentIcons and TelerikWebUI fonts respectively

![The calendar icon in the TelerikFluentIcons and TelerikWebUI fonts respectively](images/radglyph-5.png)

## Register Fonts

If you wish to use a custom font in your project, you first have to register it by calling the static **RadGlyph.RegisterFont** method. It has the following 4 overloads:

* **RegisterFont(string fontName)**
* **RegisterFont(FontFamily fontFamily)**
* **RegisterFont(FontFamily fontFamily, string fontName)**
* **RegisterFont(Uri fontUri, string fontName)**

**Example 3** shows how to register the **Webdings** typeface, which is included in all versions of Microsoft Windows **since Windows 98**.

#### __[C#] Example 6: Register the Webdings typeface__

{{region cs-common-styling-appearance-radglyph-6}}
	static MainWindow()
	{
		RadGlyph.RegisterFont("Webdings");
	}
{{endregion}}

Please note that the RegisterFont overload which only accepts a string will only work if the font is **installed** on the client's machine. Otherwise you need to also pass the **FontFamily** as demonstrated in Example 5.

#### __[C#] Example 7: Register the Webdings typeface__

{{region cs-common-styling-appearance-radglyph-7}}
	static MainWindow()
	{
		var font = new FontFamily(new Uri("pack://application:,,,/"), "./Fonts/#Webdings");
		RadGlyph.RegisterFont(font, "Webdings");
	}
{{endregion}}

You can then use the glyphs as follows:

#### __[XAML] Example 8: Use the Webdings glyphs__

{{region xaml-common-styling-appearance-radglyph-8}}
	<Path Data="{telerik:RadGlyph Font=Webdings, Glyph=ü}" Fill="{telerik:Office2016Resource ResourceKey=IconBrush}" Width="50" Height="50" Stretch="Uniform" />
{{endregion}}

#### Figure 3: The resulting Webdings glyph

![Webdings Globe Glyph](images/radglyph-2.png)

## Use Glyphs as Geometry

#### __[XAML] Example 9: Set a RadPathButton's PathGeometry in XAML__

{{region xaml-common-styling-appearance-radglyph-9}}
	<telerik:RadPathButton Width="50" Height="50" PathGeometry="{telerik:RadGlyph Glyph={StaticResource GlyphButton}}" />
{{endregion}}

#### Figure 4: The RadPathButton in normal and hovered states in the Office2016 theme

![RadPathButton in normal and hovered states](images/radglyph-3.png)

The same result can be achieved in code behind as demonstrated in **Example 6**. Note that it uses the static **RadGlyph.GetGeometry** method which takes two parameters - a glyph string and a font family.

#### __[C#] Example 10: Set a RadPathButton's PathGeometry in code-behind__

{{region cs-common-styling-appearance-radglyph-10}}
	private RadPathButton CreateButton()
	{
		var button = new RadPathButton();
		button.Width = 50;
		button.Height = 50;
		button.PathGeometry = RadGlyph.GetGeometry(this.GetGlyph(""), "TelerikWebUI");
		return button;
	}

	private string GetGlyph(string hexCode)
	{
		string glyphInt = hexCode.Substring(3, 4);
		var character = (char) int.Parse(glyphInt, NumberStyles.HexNumber);
		return character.ToString();
	}
{{endregion}}

> Please note that in this scenario we use the custom **GetGlyph** method to transform the 8-character code to a **single character**. This is required as otherwise all 8 characters will be displayed as-is.

## Use Glyphs as ImageSource

#### __[XAML] Example 11: Provide ImageSource for RadTreeView items__

{{region xaml-common-styling-appearance-radglyph-11}}
	<telerik:RadTreeView>
		<telerik:RadTreeViewItem Header="Desktop"
										DefaultImageSrc="{telerik:RadGlyph Type=Image, Glyph={StaticResource GlyphToggleFullScreenMode}}" />
		<telerik:RadTreeViewItem Header="Downloads"
										DefaultImageSrc="{telerik:RadGlyph Type=Image, Glyph={StaticResource GlyphDownload}}" />
		<telerik:RadTreeViewItem Header="Documents"
										IsExpanded="True"
										DefaultImageSrc="{telerik:RadGlyph Type=Image, Glyph={StaticResource GlyphFolder}}"
										ExpandedImageSrc="{telerik:RadGlyph Type=Image, Glyph={StaticResource GlyphFolderOpen}}">
			<telerik:RadTreeViewItem Header="File.pdf"
											DefaultImageSrc="{telerik:RadGlyph Type=Image, Glyph={StaticResource GlyphPdf}}"/>
			<telerik:RadTreeViewItem Header="Sheet.xlsx"
											DefaultImageSrc="{telerik:RadGlyph Type=Image, Glyph={StaticResource GlyphExcel}}"/>
		</telerik:RadTreeViewItem>
	</telerik:RadTreeView>
{{endregion}}

#### Figure 5: The resulting RadTreeView in the Office2016 theme

![RadTreeView with glyphs as item icons](images/radglyph-4.png)

## See Also

* [Setting a Theme (Using  Implicit Styles)]({%slug styling-apperance-implicit-styles-overview%})
* [Glyphs Reference Sheet]({%slug common-styling-appearance-glyphs-reference-sheet%})

repository: telerik/xaml-docs

repo_name: telerik/xaml-docs


text:
# New-AsBuiltReport Changelog

## [Unreleased]
### Changed
- Add "-Raw" paramter to get-content when importing report JSON data to fix a known issue

## 0.3.0

### What's New

- This minor version contains a complete refactor of the project so that it is now an official PowerShell module.

- We will now aim to host this module on PSGallery in the near future to allow for easier installation and usage.

## 0.2.0
### What's New
- New As-Built JSON configuration structure
  - new `AsBuiltConfigPath` parameter
  - allows unique configuration files to be created and saved
  - if `AsBuiltConfigPath` parameter is not specified, user is prompted for As Built report configuration information
  - `New-AsBuiltConfig.ps1` & `Config.json` files are no longer required

## All Releases
### Known Issues
- Table Of Contents (TOC) may be missing in Word formatted report

    When opening the DOC report, MS Word prompts the following

    `"This document contains fields that may refer to other files. Do you want to update the fields in this document?"`

    `Yes / No`

    Clicking `No` will prevent the TOC fields being updated and leaving the TOC empty.

    Always reply `Yes` to this message when prompted by MS Word.

- In HTML documents, word-wrap of table cell contents is not working, causing the following issues;
  - Cell contents may overflow table columns
  - Tables may overflow page margin
  - [PScribo Issue #83](https://github.com/iainbrighton/PScribo/issues/83)

- In Word documents, some tables are not sized proportionately. To prevent cell overflow issues in HTML documents, most tables are auto-sized, this causes some tables to be out of proportion.

    - [PScribo Issue #83](https://github.com/iainbrighton/PScribo/issues/83)

repository: tpcarman/As-Built-Report

branch_name: refs/heads/dev

gha_language: PowerShell

repo_name: tpcarman/As-Built-Report


text:
# Beacon

The Beacon method group contains methods for interacting with the random beacon (DRAND).

* [beaconGetEntry](beacon.md#beacongetentry)

## beaconGetEntry

```ts
beaconGetEntry (chainEpoch: number): Promise<BeaconEntry>
```

Returns the beacon entry for the given filecoin epoch. If
the entry has not yet been produced, the call will block until the entry
becomes available

**Parameters:**

* `chainEpoch`: number

**Returns:**

Promise<BeaconEntry>

Source: [index.d.ts, line 156, character 16](https://github.com/filecoin-shipyard/js-lotus-client-rpc/blob/master/index.d.ts#L156)

repository: filecoin-shipyard/js-lotus-client

repo_name: filecoin-shipyard/js-lotus-client


text:
The tutorial below is based on [*"Get started with Razor Pages in ASP.NET Core"*](https://docs.microsoft.com/en-us/aspnet/core/tutorials/razor-pages/razor-pages-start) from docs.microsoft.com.

### Prerequisites
*  [Visual Studio 2019](https://visualstudio.microsoft.com/downloads/?wt.mc_id=adw-brand&gclid=Cj0KCQjwqYfWBRDPARIsABjQRYwLe3b9dJMixA98s8nS8QfuNBKGsiRVRXzB93fe4E27LGK5KLrGcnYaAgdREALw_wcB)
* In the Visual Studio Installer, install the following workloads:
    * ASP.NET and web development
    * .NET Core cross-platform development
* Tutorial 1- [Create a Razor Page application](../1-Create%20a%20Razor%20Page/Create-a-Razorpage-VS.md)

## Add a data model
In this section, we are adding classes to manage movies in a database.

* In Solution Explorer, right-click the RazorPagesMovie project > Add > New Folder. Name the folder Models.
* Right click the Models folder. Select Add > Class. Name the class `Movie`.

#### Add the code below to Movie.cs

```csharp
using System;

namespace RazorPagesMovie.Models
{
    public class Movie
    {
        public int ID { get; set; }
        public string Title { get; set; }
        public DateTime ReleaseDate { get; set; }
        public string Genre { get; set; }
        public decimal Price { get; set; }
    }
}

```

## Scaffold a Context class

* In Solution Explorer, right click on the Pages folder > Add > New Folder.
* Name the folder Movies
* In Solution Explorer, right click on the Pages/Movies folder > Add > New Scaffolded Item.

![](images/add_scaffold_VS.png)

* In the Add Scaffold dialog, select Razor Pages using Entity Framework (CRUD) > Add.

![](images/scaffold_dialog_VS.png)

### In the Add Razor Pages using Entity Framework (CRUD) dialog:

![](images/add_razor_VS.png)

* In the Model class drop down, select Movie (RazorPagesMovie.Models).
* In the Data context class row, select the + (plus) sign and set the name as RazorPagesMovie.Models.MovieContext.
* In the Data context class drop down, select RazorPagesMovie.Models.MovieContext.
* Select Add.

The generated code from the scaffold process creates the following files:

* Pages/Movies/
    * Create
    * Delete
    * Details
    * Edit
    * Index
* Data/MovieContext.cs: Class that includes a `DbSet` property for the entity set. An entity set typically corresponds to a database table, and entity corresponds to a row in the table.

The scaffold process also modifies existing files:

* Startup.cs: Created a DB context and registered it with the dependency injection container
* appsettings.json: The connection string used to connect to a local database is added.

#### Perform initial migration

* From the Tools menu, select NuGet Package Manager > Package Manager Console.

![](images/pmc_VS.png)

* In the Package Manager Console enter the following commands:

```
Add-Migration Initial
Update-Database
```

#### Test your app
* Press F5 to run the app
* Append /movies to the URL in the browser: http://localhost:port/movies

![](images/moviespage.PNG)

* Create a new entry with the Create link

![](images/createnew.PNG)

* It works!

![](images/newentry.PNG)

* Test the Edit, Details and Delete links

If you get a SQL exception, verify you have run migrations and updated the database.

**Extra light read 7 minutes**: If you want to read more on pages we just created [click here for more information](https://docs.microsoft.com/en-us/aspnet/core/tutorials/razor-pages/page).

**NEXT TUTORIAL** - [Modifying generated pages](../3-Update%20Pages/update-VS.md)

path: /Tutorial/2-Add a model/Addamodel-VS.md


text:
# Day 220 \[Medium\]

This problem was asked by Square.

You are asked to play the following game. You and an opponent take turns choosing either the first or last coin from the row, removing it from the row, and receiving the value of the coin.

Write a program that returns the maximum amount of money you can win with certainty, if you move first, assuming your opponent plays optimally.

Link: [Testing code](../../../../test/kotlin/dcp/day220)

repository: sraaphorst/daily-coding-problem

repo_name: sraaphorst/daily-coding-problem


text:
![Repository Banner](header_image.png)

#### Please read [`contributing guidelines`](./contributing.md) before submitting new resources.

## Table of Contents

- [Ruby on Rails Commands](#ror-commands)
- [Ruby on Rails Development gems](#ruby-on-rails-gems)
- [Colors](#colors)
- [Icons](#icons)

## Ruby on Rails Commands

> Websites that offer free fonts as well as font based tools

| CMD                            | Description                                                       |
| ---------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------- |
| ```rails new myapp --database=postgresql```                                                                | rails db as postgress                                             |
| ```rails new myapp -d ```mysql                                                                             | rails db as mysql                                                 |
| ```rails new myapp -T```                                                                                | skip test framework                                               |
| ```rails new sti --no-test-framework```                                                                    | skip test framework                                               |
| ```rails new myapp --skip_webpack_install```                                                               | wob application without webpack installation                      |
| ```rails new my_api --api```                                                                               | Rails application that will be an API server first and foremost,n |
| ```rails server -b <IP_ADDRESS> ```                                                                             | it will bind to all IP addresses on your machine (LAN access)     |
| ```rails s -e production```                                                                                | Rails app in Production mode                                      |
| ```rails c```                                                                                | Rails console mode                                                |
| ```DISABLE_DATABASE_ENVIRONMENT_CHECK=1 RAILS_ENV=production rails c ```                                   | Rails console mode in production                                  |
| ```rails db:create ```                                                                                | create database                                                   |
| ```rails db:drop ```                                                                                | delete database                                                   |
| ```rails db:setup ```                                                                                | this will run scheema then seed                                   |
| ```rails db:migrate ```                                                                                | this will run migrations generate scheema                         |
| ```rails db:rollback STEP=1    ```                                                                         | rollback last migration                                           |
| ```rake db:migrate:down VERSION=20100905201547  ```                                                        | rollback specific migration                                       |
| ```rails g scaffold Post name:string title:string content:text ```                                         | Creating a Resource using scaffold                                |
| ```rails g model sale/order   ```                                                                          | Creating modulizhe model                                          |
| ```rails g controller users index show delete  ```                                                         | Creating a controller with index show show function               |
| ```rails g model YourModel --migration=false   ```                                                         | Creating model without migration                                  |
| ```rails g model Admin --parent=User   ```                                                                 | Creating subclasses                                               |

    ↥ Back To Top

## Ruby on Rails Development gems

> Ruby on Rails usefull gem in development.

| gem                            | Description           |
| ---------------------------------------------------------------------------------------------------- | --------------------- |
| [gem 'bullet' ](https://github.com/flyerhzm/bullet/)                                                 | To identify N+1 query |
| [gem 'rack-cors'](https://github.com/cyu/rack-cors/)                                                 |                       |
| [gem 'rack-attack' ](https://github.com/kickstarter/rack-attack/blob/6-stable/README.md/)            |                       |
| [gem 'brakeman' ](https://github.com/presidentbeef/brakeman/)                                        |                       |
| [gem 'reek' ](https://github.com/troessner/reek/)
|
| [gem 'better_errors' ](https://github.com/BetterErrors/better_errors/)                               | discription           |
|
[ gem 'rubocop-rails' ](https://github.com/rubocop-hq/rubocop-rail) | discriptionsss |
| [ gem 'factory_bot_rails' ](https://github.com/thoughtbot/factory_bot_rails/) | discription|
| [ gem 'strong_migrations' ](https://uidesigndaily.com/) |   |
| [gem 'exception_notification'](hhttps://github.com/smartinez87/exception_notification/) |   |
| [gem 'slack-notifier'](https://github.com/stevenosloan/slack-notifier/) |   |
| [gem 'rubycritic'](https://github.com/whitesmith/rubycritic/) | provide a quality report of your Ruby code. |

    ↥ Back To Top


text:
# Super cheat sheet

- [awk](#awk)
- [find](#find)
- [grep](#grep)
- [json](#json)
- [OSX terminal](#osx-terminal)
- [ssh](#ssh)
- [svn](#svn)
	- [GUI diff (Tested on OSX)](#gui-diff-tested-on-osx)
- [tr](#tr)
- [wget](#wget)
- [xmllint](#xmllint)
- [zip](#zip)

## awk

Print file till a regex ("`Full`") is matched.

	BEGIN    { should_stop=0;              }
	         { if (should_stop==0) 	print; }
	/Full/   { should_stop=1;              }

## find

	find . -type d -depth 1		# Direct subirectories of .
	find -name ".classpath"		# Files and dirs whose name is EXACTLY ".classpath"

## grep

	grep -v "pixel" filename		# InVerse grep (lines w/o "pixel")
	grep -i "pixel" filename		# Case-Insensitive grep ("Pixel" also matched)

## json

	# Pretty-print (Credit: http://stackoverflow.com/questions/352098/how-to-pretty-print-json-from-the-command-line)
	echo '{"foo": "lorem", "bar": "ipsum"}' | python -mjson.tool

## OSX terminal

	sips -Z 640 *.jpg	# Resize *.jpg 640 pixels, IN PLACE - CREATE A COPY FIRST. http://goo.gl/luWx4

## ssh

	ssh -q -o BatchMode=yes -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no   # Batch mode, insecure

## svn

	svn log -l 10			# Last 10 log entries

### GUI diff (Tested on OSX)

Put the following code ([credit](http://dtobi.wordpress.com/2010/05/27/use-filemerge-with-svn-diff/)) in a shell file:

	#!/bin/bash

	DIFF="$(which opendiff)"
	$DIFF $6 $7

Name it `svndiff`, and put it anywhere in the path. The following command should open a GUI diff for svn:

    svn diff --diff-cmd svndiff

## tr
	printf "a\nb\nc\n" | tr "\n" " "        # Convert newlines to spaces
	printf "a       b     c" | tr -s " "    # Squeeze spaces (multiple spaces -> one space)

## wget

	# Download entire site recursively. Don't forget to reconfigure "--domains" with your site. Credit: Linux Journal, http://www.linuxjournal.com/content/downloading-entire-web-site-wget
	wget --recursive --no-clobber --page-requisites --html-extension --convert-links --domains ruby.learncodethehardway.org --no-parent http://ruby.learncodethehardway.org/book

## xmllint

	# Format XML
	xmllint --format filename

## zip

	zip file.zip file			# Compress
	unzip file.zip				# Decompress


text:
# Data In, Data Out: I/O

So what is a program? It's something like this:

![program diagram](../../assets/a-program.svg)

The basic job of a computer program is to process data. Even the most beautiful
and interactive programs are just processing data behind the scenes. One of the
biggest tricks to programming is figuring out how to _model_ your problem using
data so computer can help you solve the problem.

The programs you'll be studying in this module are focused on processing _text
data_ ("strings" in JavaScript). This is a good place to start because you are
already used to reading and working with text so it shouldn't be too hard to
understand what's happening inside the computer:

1. The user inputs some text data into a pop-up.
2. The program processes the data. (_tracing_!)
3. Some new data is displayed to the user in a pop-up.

Later on you'll learn how to make better user interfaces than just a pop-up, but
the main idea will remain the same: The user interface is just a human-friendly
way for the user to interact with your program, the actual program is running
behind the scenes processing their data and producing new data.

---

## JavaScript Strings

What is data? In the simplest sense, data is just information. This information
can be represented or stored in many different ways. JavaScript has several data
types, the one that matters most for now are _strings_. Strings are how
JavaScript stores and manipulates text:

```js
'use strict';

// strings are any text wrapped in quotation marks

console.log('this is a string');

// you can check type of some data using `typeof`
//  you'll learn a lot more about this later
//  for now just know that it's possible
console.log(typeof 'hello'); // "string"
console.log(typeof 5); // "number"
console.log(typeof '5'); // "string

// you can find the length of a string with `.length`
console.log('abc'.length); // 3
console.log('ab'.length); // 2
console.log('a'.length); // 1
console.log(''.length); // 0

// string concatenation:
//  you can combine two strings using concatenation
console.log('a' + 'b' + 'c'); // 'abc'
```

You don't need to understand very much about JavaScript types for now, just that
the programs in this folder are all processing _text data_ represented in
JavaScript by _strings_.

---

## Programs to Study

A very important skill to learn as a programmer is not being afraid of code you
don't understand. There is always _something_ you can understand and there is
always a way to understand the rest. You aren't expected understand all the
syntax in this folder just yet.

Instead focus on what you _can_ understand about each program at a higher level,
like in the diagram at the top of this README. For all of these examples and
exercises try running the program many times inputting different data and seeing
what comes out.

Practice explaining what is happening in each program using these terms:

- **Program Behavior**: You can answer these questions just by comparing inputs
  and outputs! You don't need to read a single line of code:
  - What does the program do?
  - What happens to the user data, how is it transformed or processed in the
    program?
- **Data In**: What data does the program expect? Try to say this in a normal
  human sentence.
- **Data Out**: What data does the program expect? Try to say this in a normal
  human sentence.
- **Test Cases**: Specific examples of data that goes in and the data that comes
  out.

In the `/examples` folder you will find a few programs with a comment describing
the **behavior**, **data in** and **data out**. Your challenge in `/exericses`
is to fill in the same information for new programs.

Be _very careful_ about your formatting! Study the example comments closely and
do your best to format yours _exactly_ the same:

```js
'use strict';

/* Program Title

  Description of program's behavior.

  Data In:
    Describe the data that goes in.

  Data Out:
    Describe the data that comes out.

  Test Cases:
    'an example input' -> 'the matching output'
    'another input' -> 'the other output'
    ...

*/

// ... the rest of the code
```

repository: bermarte/welcome-to-js

repo_name: bermarte/welcome-to-js


text:
The `del` transform allows to delete values in an object-formatted datapoint.

```json
[
  {},
  {"foo": "baz"},
  {"a": 1,"b":2,"foo":7}
]
```
With the above data, and the transform `del("foo")`, we get:

```json
[
  {},
  {},
  {"a": 1,"b":2}
]
```

Remember that PipeScript has native support for json-like data. You can directly set objects with transforms like the following:
```json
{"foo": "bar", "a": $("a")}
```


text:
# dial-discovery-ios

[![CI Status](http://img.shields.io/travis/bbc/dial-discovery-ios.svg?style=flat)](https://travis-ci.org/bbc/dial-discovery-ios)
[![Version](https://img.shields.io/cocoapods/v/dial-discovery-ios.svg?style=flat)](http://cocoapods.org/pods/dial-discovery-ios)
[![License](https://img.shields.io/cocoapods/l/dial-discovery-ios.svg?style=flat)](http://cocoapods.org/pods/dial-discovery-ios)
[![Platform](https://img.shields.io/cocoapods/p/dial-discovery-ios.svg?style=flat)](http://cocoapods.org/pods/dial-discovery-ios)

This framework provides APIs for service discovery via SSDP and device discovery via DIAL. An example app shows how this pod can be used
to discover HbbTV terminals.

## Example

To run the example project, clone the repo, and run `pod install` from the Example directory first.

## Requirements

## Installation

dial-discovery-ios is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:

```ruby
pod "dial-discovery-ios"
```

[](---START EXCLUDE FROM DOC BUILD---)
## Read the documentation
The docs for this framework can be read [here](http://bbc.github.io/dial-discovery-ios/latest).
[](---END EXCLUDE FROM DOC BUILD---)

## Author

Rajiv Ramdhany, rajiv.ramdhany 'at' bbc.co.uk

## License

dial-discovery-ios is developed by BBC R&D and distributed under Licensed under the Apache License, [Version 2.0](http://www.apache.org/licenses/LICENSE-2.0).

© Copyright 2016 BBC R&D. All Rights Reserved.
=======

repository: postak/dial-discovery-ios

repo_name: postak/dial-discovery-ios


text:
# JS Rendering Engine
WebGL based JavaScript rendering engine.
Written in TypeScript.
Node, Express server used to serve shaders and objects.
Engine use-case: src/javascripts/glApplication.ts

## Demo
Controls:
QWEASD To rotate the camera.
Arrow Keys To move character.
Currently, hosted at https://opengl.vjalicin.com

## Compatibility

All modern browsers.
Devices that support OpenGL ES 3.0

gha_language: TypeScript


text:
# NJF: Not a Json File
This is a project I wanted to make, and so I did.
### What is NJF?
It´s simple. A NJF file is made of 3 things: Objects, Flags, and Bodies. The file itself is just a big Body.
An Object is a thing with a name, which can also have any number of Flags and one Body. Here is an example:
```
"Object Name" flag1 flag2 512 {
	"An Object inside a Body!" -100
	"\"Another\" Object" {
		"Don't read:" Never gonna give you up :)
	}
}
```
As you can see, flags can also be a number!
### Can I use NJF in a project?
Please, no...
This was not made to be taken seriously.
### What are those files in this repo?
It´s a single header library made in C for this project. I wrote it (at least I tried) to be simple, so feel free to change anything you want.
To use it, you just need to define `NJF_IMPLEMENTATION` before including `njf.h` in **a single translation unit**.
You can see some (or just one) examples in the `examples/` folder.

license: Unlicense

repository: oluigipo/njf

repo_name: oluigipo/njf


text:
This example demonstrates how webpack tracks the using of ES6 imports and exports. Only used exports are emitted to the resulting bundle. The minimizing step then removes the declarations because they are unused.

Excluding unused exports from bundles is known as "[tree-shaking](http://www.2ality.com/2015/12/webpack-tree-shaking.html)".

In this example, only `add` and `multiply` in `./math.js` are used by the app. `list` is unused and is not included in the minimized bundle (Look for `Array.from` in the minimized bundle).

In addition to that, `library.js` simulates an entry point to a big library. `library.js` re-exports multiple identifiers from submodules. Often big parts of that is unused, like `abc.js`. Note how the usage information flows from `example.js` through `library.js` into `abc.js` and all declarations in `abc.js` are not included in the minimized bundle (Look for `console.log("a")` in the minimized bundle).

# example.js

``` javascript
{{example.js}}
```

# math.js

``` javascript
{{math.js}}
```

# library.js

``` javascript
{{library.js}}
```

# dist/output.js

``` javascript
{{dist/output.js}}
```

# dist/output.js

``` javascript
{{production:dist/output.js}}
```

# Info

## Unoptimized

```
{{stdout}}
```

## Production mode

```
{{production:stdout}}
```


text:
# ChillHub

Welcome to the ChillHub getting started page.

### Non Developers ###
If you just purchased a ChillHub and are interested in getting it on your network and using any accessories you purchased then see [Connecting Your ChillHub](https://firstbuild.com/mylescaley/chillhub/discussion/topic/getting-started-non-developer/4663/).
### Developers ###
If you are ready to dive in and start creating new accessories click on the [Green Bean Connect Kit](https://firstbuild.com/mylescaley/green-bean-connect-kit). Contributions are highly encouraged.

repository: disegnovitruviano/ChillHub

repo_name: disegnovitruviano/ChillHub


text:
# Notes

## Tech Stack

* ReactJS (created with create-react-app)
    * also using: custom-react-scripts (needs `.env` file)
* Semantic UI - React Bindings
* react-router v4
* redux
    * redux-actions
    * redux-thunk
* validate.js
* yarn

## Setup

** run from `TC3.Web` directory

* `yarn` - to install dependencies
* `yarn start` - start development server

## Authentication

Currently just a fake that returns a fake user.

## Structure

* features - feature folders...
* layout (could be in features...)
* store - state management, api, etc...

## Adding a route

* Create component
* Add Route, (reference `MainLayout` component)
    * This may include adding a single route component
      or a Routes component if there will be multiple (see users)

## Adding a redux features

* create "reducer" - include
    * actions ("intents to mutate state")
    * reducer (handle actions and mutate state)
    * selectors (used for mapping normalized state into components)
* what does "thunkCreator" do?
  * a promise can exist in 3 states: pending, resolved, rejected
  * thunkCreator takes away some of the boilerplate from making the 3 states
  * based around these concepts
    * redux-actions
    * redux-thunk

some reference:
  * http://stackoverflow.com/questions/35411423/how-to-dispatch-a-redux-action-with-a-timeout/35415559#35415559
  * https://github.com/markerikson/redux-ecosystem-links

## Styling

* over-ride semantic styles in root `index.scss`
  or in feature specific `scss` files
* try to keep common variables/mixins in `variables.scss`


text:
---
title : "tobyyyccc:toby - Government always claims that the youth broke the laws and advocated violence. The truth is the police arrested the people in no reason and brutalised the people. Source: #HongKongPoliceBurtality #HongKongNeedsHelp #StandWithHongKong "
title2 : "toby - Government always claims that the youth broke the laws and advocated violence. The truth is the police arrested the people in no reason and brutalised the people. Source: #HongKongPoliceBurtality #HongKongNeedsHelp #StandWithHongKong "
info2 : "Government always claims that the youth broke the laws and advocated violence. The truth is the police arrested the people in no reason and brutalised the people. Source: https://t.co/U8L8oAYmn5 #HongKongPoliceBurtality #HongKongNeedsHelp #StandWithHongKong https://t.co/6ZLc0y0yOF "
date:        2020-05-27T21:06:15-07:00
author:
 - twitter_tobyyyccc
tags:
 - twitter
 - tobyyyccc
 - twitter_tobyyyccc
 - 2020_05
 - 2020_0527
 - 2020_0527_21
categories:
 - 2020_0527
#icon:        "fas fa-lock-open"
#resImgTeaser: teaserpics/wikipedia.org/emacs-jokes.png
---

{{< mydiv text="tobyyyccc:Government always claims that the youth broke the laws and advocated violence. The truth is the police arrested the people in no reason and brutalised the people. Source: https://t.co/U8L8oAYmn5 #HongKongPoliceBurtality #HongKongNeedsHelp #StandWithHongKong https://t.co/6ZLc0y0yOF "
>}}

{{< my2mp4withjpgdownload mp4="20200527_1265644643602980864.mp4"
>}}

{{< my2jpgexist "xx1.jpg" >}}

{{< my2jpgexist "xx2.jpg" >}}

{{< my2jpgexist "xx3.jpg" >}}

{{< mydiv text="tobyyyccc:toby - Government always claims that the youth broke the laws and advocated violence. The truth is the police arrested the people in no reason and brutalised the people.


text:
---
title: "Istio Service Mesh Workshop"
chapter: true
weight: 1
---
# Istio Service Mesh Workshop

Welcome to the Istio Service Mesh Workshop!

A labs driven workshop to explore service mesh technology and patterns using [Istio](https://istio.io) open source project.

![Istio logo](/images/istio-whitelogo-bluebackground.png?width=10pc)

gha_language: CSS