text:
# DataHop Device-to-Device Wifi-Direct connectivity

This library implements a Device-to-Device (D2D) connectivity solution for Android devices used by the DataHop Network platform.
[DataHop](https://datahop.network) is a new platform aimed at exploring the potential of a user-operated, smartphone-centric content distribution model for user applications in contrast with the traditional client-server model, that is used by the majority of mobile data transfers today.
In particular, we propose that some nodes, either fetching the content via Internet from the content provider (e.g., BBC, CNN), or via sharing user-generated content, could directly update and share content with other nodes in the vicinity in a D2D manner without requiring Internet connectivity. We leverage on sophisticated information-aware and application-centric connectivity techniques to distribute content between mobile devices in densely-populated urban environments or rural areas where Internet connectivity is poor.

### Information-Centric and Application-Aware Connectivity

WiFi Direct provides all the features required to provide smart connectivity between users and transfer content without infrastructure participation.
However current Android WiFi Direct Android implementation still has one drawback: it requires user participation to accept every connection.
In order to require any user participation allowing DataHop to run in the background, seamlessly to users, this library uses a hybrid mode according to which source devices create a WiFi Direct network using the previously described WiFi
Direct Autonomous Mode and destination devices connect to it as a normal WiFi connection (legacy connection).

This library implements the native library for Android of the WiFi Direct specification to exchange application content updates.
This library is compatible with Go and the IPFS-lite library created in [https://github.com/datahop/ipfs-lite](https://github.com/datahop/ipfs-lite).

## Objectives

* [x] User devices must automatically connect between them without requiring user participation when required (e.g. when discovered content of interest in other devices nearby).
* [x] Connections must be secure, encrypted and allow only traffic coming from the specified app.
* [x] Connectivity should be transparent (and run as a background process) to the user and work when the device is in standby mode.
* [x] Connectivity must take into account power consumption and must implement mechanisms to avoid battery depletion.

# Installation

The library can be built manually using the following command:

```
$ ./gradlew wifidirect:assembleRelease
```

and copy the generated .aar library into the `app/libs` folder of your app.

Note: It requires [Datahop Ipfs-lite](https://github.com/datahop/ipfs-lite]) aar in the libs folder to compile.

To add the library in your Android project first add the libs folder in your repositories list of the project `build.gradle` file,

```
allprojects {
    repositories {
    ....
      flatDir {
          dirs 'libs'
      }
    }
}
```

and then add the library as a depencency of your project in the app `build.gradle` file.

```
dependencies {
    ....
    implementation(name: 'wifidirect-release', ext: 'aar')

}
```
The library can be also automatically imported via gradle: TBC

# Usage

The library is basically implementing two functionalities, the `WifiDirectHotspot` that will create the Wifi-Direct group and will accept incoming connections from other users, and the `WifiLink`, that will connect to other users that previously created a Wifi-Direct group. The two can be created and used following the next instructions:

* From Android:

```
  //Both instances must be created
  WifiDirectHotSpot hotspot = WifiDirectHotSpot.getInstance(getApplicationContext());
  WifiLink connection = WifiLink.getInstance(getApplicationContext());

  //A notifier should be passed into the instance. These notifiers can be implemented in Go and must implement WifiConnection and WifiHotspot interfaces defined in github.com/datahop/mobile
  hotspot.setNotifier(hsnotifier);
  connection.setNotifier(cnnotifier);

```

`WifiDirectHotspot` and `WifiDirectHotspot` can be direclty handled from Go passing it to the Go app like the following

```
Datahop.init(getApplicationContext().getCacheDir() + "/" + root, this, bleDiscoveryDriver, bleAdvertisingDriver, (WifiHotspot)hotspot,(WifiConnection)connection);
```

* From Go:

Start and stop hotspot

```
hop.hotspot.Start()
hop.hotspot.Stop()

```

Wifi link connect and disconnect

```
hop.wifiCon.Connect(network,pass,address)
hop.wifiCon.Disconnect()
```

# Docs

[Code documentation](https://datahop.github.io/p2p-connection-wifidirect)

# Demo  application

[https://github.com/datahop/datahop-android-demo](https://github.com/datahop/datahop-android-demo)

# How to make contributions
Please read and follow the steps in [CONTRIBUTING.md](/CONTRIBUTING.md)

# License

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

# Acknowledgment

This software is part of the NGI Pointer project "Incentivised Content Dissemination at the Network Edge" that has received funding from the European Union’s Horizon 2020 research and innovation programme under grant agreement No 871528


text:
---
title: 2. Create a NuGet Package for the Plugin
---

To create a distributable NuGet package for a plugin:
1. Download and install [NuGet](https://dist.nuget.org/index.html), e.g., to *c:\NuGet*.
2. Create a blank NuGet specification file (e.g., *myplugin.nuspec*) and place it to the plugin's project folder.
3. Edit the *.nuspec* file:

    ```xml
    <?xml version="1.0" encoding="utf-8"?>
    <package>

        <metadata>
            <id>MyCompany.MyPlugin</id>
            <version>0.0.1</version>
            <authors>Me</authors>
            <owners>Me</owners>
            <requireLicenseAcceptance>false</requireLicenseAcceptance>
            <description>My first ReSharper plugin</description>

            <dependencies>
                <dependency id="Wave" version="[8.0]" />
            </dependencies>

        </metadata>

        <files>
            <file src="bin\Debug\MyPlugin.dll" target="dotFiles\" />
            <file src="bin\Debug\MyPlugin.pdb" target="dotFiles\" />
        </files>

    </package>
    ```
    What's important here:
    * The `id` parameter in metadata MUST consist of two parts (company and a plugin name) separated by `.` (dot): `MyCompany.MyPlugin` in our example.
    * `<dependency id="Wave" version="[8.0]" />` specifies the version of ReSharper your plugin targets. Thus, Wave 8.0 stands for ReSharper 2017.1, Wave 9.0 for ReSharper 2017.2, and so on. Note that we put the strict limitation on the required ReSharper version (by using the square brackets in `[8.0]`) – ReSharper SDK is not backward compatible!
4. Build the NuGet package by running:

    ```text
    nuget pack myplugin.nuspec
    ```
Once you have the package file, you can [set up the environment](/HowTo/Start/SetUpEnvironment.md).

repository: ForNeVeR/resharper-devguide

branch_name: refs/heads/master

extension: md

license_type: permissive

repo_name: ForNeVeR/resharper-devguide


text:
---
layout: post
title: Week 3
description: "Trying to stay sane."
tags: [post]
image:
  background: triangular.png
---

So this will basically be week 3 of the advised shelter in place and week 2 of the
actual shelter in place ordinace.

We've slowly put a gym together. I bought a bike and have gone for a few rides.
Thats definitely all helped but its not the same. I miss OrangeTheory. I miss
my pole classes. I miss my soccer team.

The weather has sucked. IT HAILED TODAY. HAIL. How am I supposed to
walk or bike outside to retain what's left of my sanity if its HAILING?

I really really wish we were getting into summer already so we could have some
more consistent sun. Any time there is sun EVERYONE goes out which is totally
understandable even though we arent supposed to.. I do and I definitely don't
judge anyone that does. I do my best to keep my distance from people when I
go out, but not everyone does.

I had a trip planned to go to London at the end of April.. I am guessing
that will need to get cancelled.

I wanted to buy a pole for more indoor things to do but they are out of
stock on one of the pieces I need  :'(

Thankfully I do have two flexibility classes a week.. and our little gym in
the garage.. and the bike. I know thats more than a lot of people have
and I am thankful.

Still very scared though.

Things I have baked to help abate the general anxiety:

- Lemon & Raspberry Bundt with a Raspberry Glaze (vegan)
- Chai Scones with a Cinnamon Glaze (vegan)
- Oatmeal Chocolate Chip Cookies
- Crumpets (accidentally vegan)
- Sourdough Bread Loaf (thanks for the starter Rosie!)

...if the weather doesn't get better soon I am going to get so fat.

Things on my list to bake:

- Brittany Butter Cake
- Cupcakes of some sort or another
- Lemon Blueberry Cake
- Crackers
- English Muffins
- Chocolate Souffle
- Apple Crisp
- Triple Berry Pie

We'll see what tomorrow brings.

-Kendall

P.S. Bought a microwave a few days ago and the parts for the old one
still, very surprisingly, have not shown up. We can now reheat things
without pots now though so thats nice. I AM SO THANKFUL TO NOT
HAVE TO ENDLESSLY WASH THE SAME TWO POTS OVER AND
OVER AGAIN.

Background images from Subtle Patterns (Subtle Patterns) / CC BY-SA 3.0

license: MIT

gha_language: JavaScript

gha_license_id: MIT


text:
---
layout: post
title:  "Augmented Reality, Virtual Reality"
color:  blue
width:   3
height:  1
date:   2015-12-06 11:31:49 +0200
categories: podcast
---

<iframe width="100%" height="166" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/236351434&color=ff5500&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false"></iframe>

Yasser goes to Redmond to visit Microsoft and gets a surprise demo of the new Hololens.
- [A channel9 video, a tour in Microsoft museum](https://channel9.msdn.com/Shows/Defrag-Tools/Defrag-Tools-145-Living-Computer-Museum)
- [Video about Microsoft and Apple staff in NY](https://www.youtube.com/watch?v=TMATD2qk564)
- [Glen Keane - Disney artist using Oculus Rift](https://www.youtube.com/watch?v=GSbkn6mCfXE)
- [Hololens and Volvo](https://www.youtube.com/watch?v=DilzwF90vec)
- [Unity 3D](http://unity3d.com/)
- [Entex Adventure Vision (1982)](https://en.wikipedia.org/wiki/Entex_Adventure_Vision)
- [Nintendo Virtual Boy (1995)](https://en.wikipedia.org/wiki/Virtual_Boy)
- [Black Mirror](https://en.wikipedia.org/wiki/Black_Mirror_%28TV_series%29)

- [Ask Mohamed any question](https://ask.fm/bashmohandes/)
- Amr's blog post: [How to Ask a Question](http://amreldib.com/blog/HowToAskAQuestion)
- [Hitchhiker's guide answer of life is 42](https://en.wikipedia.org/wiki/42_%28number%29#Hitchhiker.27s_Guide_to_the_Galaxy)

repository: AmrEldib/askdeveloper-site

branch_name: refs/heads/gh-pages

extension: markdown

gha_language: CSS

repo_name: AmrEldib/askdeveloper-site


text:
# Notify landing
Site made from Notify home page.

## New version
https://github.com/DariuszBaczyk/notify-landing-v2

## Life demo
http://dariuszbaczyk.pl/portfolio/notify-lp/

## Get ready
1. Clone repository
2. Type in terminal:
```
npm intall
```
3. Compile:
```
gulp build
```
4. Run index.html from dist folder

## Used libraries
1. https://kenwheeler.github.io/slick/
2. https://code.jquery.com/

repository: DariuszBaczyk/notify-landing

repo_name: DariuszBaczyk/notify-landing


text:
# employee-directory-react
This app utilizes react to create a dynamic front-end. It uses Axios NPM to read from a database of employees and creates a table showing the employees' image, name, phone, email, and date of birth. The user can then sort the table by these properties or search for a specific employee by any parameters. Since this app is made with react, the table will dynamically change with the user's search input.

## Built With
- React.js
- Bootstrap
- Axios NPM

## Screenshots
![employee-directory-react](screenshot-hw14.png)

## Live Link
https://dylanbest15.github.io/employee-directory-react/

## License
Copyright ©2020 Dylan Best

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

 IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

## Authors
- **Dylan Best** - [dylanbest15](https://github.com/dylanbest15)

branch_name: refs/heads/main


text:
# Power Diagnostics
Experiments in .NET Core diagnostics using:
- [ClrMD](https://github.com/microsoft/clrmd)
- [DiagnosticClient](https://github.com/dotnet/diagnostics/tree/master/src/Microsoft.Diagnostics.NETCore.Client)
- [Trace Event library](https://github.com/microsoft/perfview/blob/master/documentation/TraceEvent/TraceEventLibrary.md)

The StressTestWebApp is the only project using .NET 5.
There is no particular reason other than the Http Client is easier to use.
You can change the framework to .NET Core 3 and change the code so that it uses application/json as Content-Type.

These projects assume running on Windows 10 + x64 CPU. The code can easily be migrated to support the other platforms and architectures.

Projects:
- ClrDiagnostics is a library using the libraries cited above
- CustomEventSource is a library defining a custom Trace Event / Counter
- DiagnosticWPF is a simple WPF application running some queries over dumps or running processes
- StressTestWebApp is the client app concurently calling the TestWebApp application
- TestConsole is just a way to run some code for testing
- TestWebApp is an ASP.NET Core application exposing a Razor page and an API controller where 'bad things' happen

repository: osmanatam/PowerDiagnostics

repo_name: osmanatam/PowerDiagnostics


text:
# Not-Yet-Awesome Scala

A curated list of Scala code and resources that do **NOT** exist yet, but would be beneficial to the Scala community.

The purpose of this list is twofold:

* Enumerate **specific use cases and their problems domains** that do not yet have a robust ecosystem in Scala.
    * The definition of "specific" and "robust" for this list is yet to be determined!
* Encourage the Scala community to approach gaps in the Scala ecosystem by providing this list as a point of collaboration!

You can jump right into editing this file [here](https://github.com/awesome-scala/awesome-scala/edit/master/README.md). See the [contributing guide](CONTRIBUTING.md) for information on what you can do to help or if you have questions about this list!

# Table of contents

:(

license: Unlicense

gha_license_id: Unlicense


text:
[![Build Status](https://travis-ci.org/anandthakker/html-outline.svg?branch=master)](https://travis-ci.org/anandthakker/html-outline)

html-outline
============

streaming transform html to a plaintext DOM outline.

## Usage

```javascript
var outline = require('html-outline');

var strm = outline({indent: '..'});
strm.pipe(process.stdout);

strm.write('<html><body><div><p><img></p><p></p><ul><li></li></ul></div></body></html>')
```

Outputs:
```
html
..body
....div
......p
........img
......p
......ul
........li
```

## Options

Options, with their defaults:
```javascript
{
  indent: '  ',
  minDepth: 0,
  maxDepth: undefined,
  selector: '*',
  attributes: false,
  classNames: false
}
```

- `indent` is a stringish; repeated `depth` times and prepended to each element name.
- `minDepth` and `maxDepth` refer do depth in the DOM tree, with the first
  element considered depth 0.  Indentation repsects `minDepth`.
- `selector` is a css selector (or array of them) supported by [cssauron][1], and
  can be used to filter the outline. Any elements matching the provided
  selector(s) and all of their children (up to `maxDepth`) will be included.
  (So, e.g., `{minDepth: 2}` and `{selector: 'div'}` would do the same thing in
  the example above.)
- `attributes` flag determines whether or not to print attributes after the
  element name (e.g., `img[class="bray" src="img/donkey.jpg"]`)
- `classNames` flag determines whether or not to print class names, e.g.,
  `div.container`.

Note: these are all also available as command line options: `--classNames=true`,etc.

# Thanks
- [substack/node-trumpet][2]

[1]: https://github.com/chrisdickinson/cssauron
[2]: https://github.com/substack/node-trumpet


text:
# strongman
a node module for composing [elasticsearch](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl.html) queries, inspired by [bodybuilder.js](https://github.com/danpaz/bodybuilder)

*note: this is still a work in progress and is not suitable for use in production*

## Installing
```shell
$ npm install --save strongman
```

## Getting Started
```javascript
import { expect } from 'chai'
import { bool, term, exists } from 'strongman'

const query = bool().filter(
  term('published', true),
  bool().should(
    term('whitelist', 'foo'),
    bool().must(
      exists('blacklist')
    ).mustNot(
      term('blacklist', 'foo')
    )
  ).minimumShouldMatch(1)
)

expect(query.get()).to.deep.equal({
  bool: {
    filter: [{
      term: {
        published: true
      }
    }, {
      bool: {
        should: [{
          term: {
            whitelist: 'foo'
          }
        }, {
          bool: {
            must: {
              exists: {
                field: 'blacklist'
              }
            },
            must_not: {
              term: {
                blacklist: 'foo'
              }
            }
          }
        }],
        minimum_should_match: 1
      }
    }]
  }
})
```

## Queries
*coming soon**

## Testing
```shell
$ npm test
```

## Contributing
1. [Fork it](https://github.com/cludden/strongman/fork)
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

## License
Copyright (c) 2017 Chris Ludden.
Licensed under the [MIT license](LICENSE.md).

repository: cludden/strongman

repo_name: cludden/strongman


text:
---
{title: swplot.findobj, link: swplot.findobj, summary: finds object data on swplot
    figure, keywords: sample, sidebar: sw_sidebar, permalink: swplot_findobj, folder: swplot,
  mathjax: true}

---

### Syntax

`sObj = swplot.findobj(Name,Value)`

`sObj = swplot.findobj(hFigure,Name,Value)`

### Description

`sObj = swplot.findobj(Name,Value)` finds graphical objects on the active
swplot figure hFigure which have the given property name-value pairs. The
possible property names are:
* `handle`    Handle of the graphical object.
* `objID`     Unique number of the object (increasing integer numbers).
* `name`      Name of the object, identifies groups, such as `'atom'` for
              all atoms.
* `label`     Label of the objects, can identify types of atoms, etc.
              it will accept sub strings, e.g. `'Cr'` parameter would
              match both `'Cr1 Cr3+'` and `'Cr2 Cr3+'` labels.

`sObj = swplot.findobj(hFigure,Name,Value)` search for objects on the
swplot figure identified by the `hFigure` handle.

### Output Arguments

`sObj`
: Struct that contains all the data of the found objects.

### See Also

[swplot.delete](swplot_delete)

{% include links.html %}

gha_language: HTML


text:
Please see the [Contributing to Karma] guide for information on contributing to this project.

[Contributing to Karma]: https://github.com/karma-runner/karma/blob/master/CONTRIBUTING.md

# Pull Requests

Before filing a PR, ensure that:

* [ ] Tests pass.
* [ ] Linting passes.
* [ ] Commit linting passes.

See more details in each subsection below.

## Testing

To run unit tests execute:

```bash
npm run unit-test
```

To run integration tests execute:

```bash
npm run integration-test
```

Tip: you can run both unit and integration tests in a single step via: `npm test`.

  To verify that your commits are syntactically correct, execute:

```bash
npm run commitlint -- \
  --verbose \
  --from `git merge-base origin/master HEAD`
```

[Angular's Commit Message Format]: https://github.com/angular/angular/blob/master/CONTRIBUTING.md#commit

repository: karma-runner/karma-chrome-launcher

repo_name: karma-runner/karma-chrome-launcher


text:
# Response Time Middleware for PHP

This middleware adds a Response Time header

## Usage

Just add the middleware as one of the first in your application.

For example:
```php
$app->pipe(new \LosMiddleware\ResponseTime\ResponseTime($options);
```

And the middleware will add a header
```
X-Request-Time: 49,96ms
```

The options are:
* header_name: Header name. Default: X-Response-Time

### Zend Expressive

If you are using [expressive-skeleton](https://github.com/zendframework/zend-expressive-skeleton),
you can copy `config/los-response-time.global.php.dist` to
`config/autoload/los-response-time.global.php` and modify configuration as your needs.

repository: Lansoweb/response-time

gha_language: PHP

repo_name: Lansoweb/response-time


text:
---
layout: post
title: Reproducible Presentations with Slidify and RStudio
author: Jeff Hollister
---

The goals for this post are to introduce the concept of using R Markdown to create reproducible presentations (aka, how to ditch Powerpoint).  I am going to show two different ways to do this one with an R package `slidify` and another with R Presentations in R Studio.  As we go through this, you should hopefully see a lot of overlap in what you have already seen with writing blog posts.  In other words, the tools are the same, just some different processing steps to get the final output.

During today's class we will cover the basics of styling, and some basic workflows for creating presentations.  If there is time, I will give a presentation, created with `slidify`, on blogging and social media for scientists just so you can see one of these in action.

# Few things to think about

As the standard for presentations for so long has been .ppt(x), using a different format requires a bit of a shift in thinking.  Some things to keep in mind:

1. Output format is html5
2. Simply display using a browser
3. Printing and pdf creation possible: Some options better than others

# Styling

Styling tends to be one of the biggest sources of dithering when it comes to creating presentations (for associated developer term see [yak shaving](http://en.wiktionary.org/wiki/yak_shaving)) .  Reproducible presentations are no different.  Only difference is you do need to know some CSS in order to customize presentations yourself.

We are not going to spend too much time on this, but if you want to see some of what is required to make changes you can (warning: shameless self-promotion ahead) read through [a blog post of mine](http://landeco2point0.wordpress.com/2013/11/07/r-studio-and-presentations-and-git-oh-my/) that includes some of this.

Also, you can look at some [custom CSS ](https://github.com/jhollist/epablogpresent/blob/gh-pages/assets/css/jwhSlidifyStyle.css) I spent way too much time modifying for some recent presentations.

# Slidify

The first method for creating presentations we will talk about is `slidify`, created by [Ramnath Vaidyanathan](https://github.com/ramnathv) who has also created some other great packages including `rCharts` and `rMaps`.  Getting a presentation up and running is quite simple.  The following code should be sufficient:

```r
# Install and load necessary packages
install.packages("devtools")
library(devtools)
install_github("slidify", "ramnathv")
install_github("slidifyLibraries", "ramnathv")
library(slidify)

# Creates the skeleton for the present
author("scicomp")
```

With this done, you can now fire up your editor of choice (we will just do this directly in RStudio) and edit `index.Rmd'

When you have your .Rmd edited to your satisfaction run the following code:

```r
slidify("index.Rmd")
```

This will create the `index.html` and that file can now be viewed in any browser (err, if that means Chrome, Firefox, or Safari).

For an live presentation, we can check out a presentation I recently gave on [Blogging, Social Media, and Science](http://jwhollister.com/epablogpresent) and for under the hood we can [look at the repo](https://github.com/jhollist/epablogpresent).

# R Presentation Workflow

Using slidify is great and does not require RStudio, but it does require a bit more work.  The next two presentation workflows are from RStudio directly and, if you don't want to edit are very easy.

## R Presentation

This first workflow is part of the stable distribution of RStudio, so you should all have it available.

1. Go to File: New File: R Presentation
2. Edit
3. In Preview Pane: More: Save as Web Page

Let's look at an example of [a customized version](http://jwhollister.com/urimesm) of this as well as the [repo for it](https://github.com/jhollist/urimesm).

## Rmd as Presentation - Preview Version of Rstudio (Version 0.98.745)

This workflow is (as of 4/7/14) only available via the [preview version](http://www.rstudio.com/ide/download/preview).

To start this do the following:

1.
2. Select Presentation, select an output format and click OK.
3. Edit
4. Knit HTML (or PDF if Beamer)


text:
Retrieves and downloads files.

## Dependencies
This playbook uses the following sub-playbooks, integrations, and scripts.

### Sub-playbooks
* GenericPolling

### Integrations
* Traps

### Scripts
This playbook does not use any scripts.

### Commands
* traps-endpoint-files-retrieve
* traps-endpoint-files-retrieve-result

## Playbook Inputs
---

| **Name** | **Description** |  **Required** |
| --- | --- | --- |
| endpoint_id | The ID of the endpoint. | Required |
| file_name | The name of the file to retrieve (including path). | Required |
| event_id | The ID of the Event. | Required |

## Playbook Outputs
---
There are no outputs for this playbook.

## Playbook Image
---
![Traps_Retrieve_And_Download_FIles](https://raw.githubusercontent.com/demisto/content/1bdd5229392bd86f0cc58265a24df23ee3f7e662/docs/images/playbooks/Traps_Retrieve_And_Download_FIles.png)

repository: demisto/content

gha_language: Python

repo_name: demisto/content


text:
## Challenge #01 - August, 2021
- In this month, we are following [Kaggle's 30 day of Machine Learning ](https://www.kaggle.com/thirty-days-of-ml)

Assignments:
1. [Get started](https://www.kaggle.com/alexisbcook/getting-started-with-kaggle) with Kaggle (Day 1)
3. Join the [30 Days of ML](https://discord.com/invite/f8g8bDq8Vv) Discord Community and introduce yourself in the #introductions channel (Day 1)
4. Complete the [Python](https://www.kaggle.com/learn/python) course (Days 2 to 7)
5. Complete the [Intro to Machnie Learning](https://www.kaggle.com/learn/intro-to-machine-learning) course (Days 8 to 11)
6. Complete the [Intermediate Machine Learning](https://www.kaggle.com/learn/intermediate-machine-learning) course (Days 12 to 14)
7. Join the competition (Days 15 to 30)


text:
# Welcome to Niflheim!

Niflheim is a challenging, hardcore, modded server that -requires- users to install the Niflheim modpack.

## Joining the Dusk Discord Server
New players who are not already part of the Dusk Discord server should join the server and use the Valheim channel to discuss, and the Niflheim voice channel.  The Server-Info channel will have up-to-date information. [Join here](https://discord.gg/dFbnbaFhRA)

We hang out in the Valheim channel and there are three voice channels, Niflheim, Adventuring, and Homesteading.

## Rules
- Niflheim players are expected to have joined the Dusk Discord Server and agree to obey all rules of the Dusk Discord server while playing in Niflheim as well.  These rules can be found [here](https://discord.com/channels/683821803252219974/683825744249749523/771419546505969667)

## About Hardcore Vikings

Niflheim is a harsh and unforgiving world, and Odin cannot abide failures.  A viking's death will result in all items currently carried to be removed from the world, and all skill progress lost!  The character will once again be spawned at the World Spawn.  You've been warned.

Discord user Fracticality has created the hardcore mod that enables this feature, if you like it, thank him.  If you have feedback, please let him know.

## Launching Niflheim

Download the latest version of the launcher from [here](https://niflheim.blob.core.windows.net/installer/NiflheimLauncher.zip)

After the download completes, go to your "Downloads" folder and extract the Launcher.Zip
Once extracted, open the extracted folder and run NiflheimLauncher.exe
> Note: We currently don't have a codesigning certificate, so Microsoft SmartScreen wants to protect you from untrusted code.  As wonderful as this feature is, it WILL want to warn you about the NiflheimInstaller.  Simply click the "Run anyways" button.

![Alt-Text](docs/images/SmartScreen.png)

- The installer should be able to quickly locate your valheim install.
- Verify that your Steam copy of Valheim exists at the path listed in the Launcher.
- Select a -different- path for your new Niflheim modpack install.
- If the Installer feels that everything looks good, it will change the multi-function button to say "Install"
- Clicking install will begin the install process.  Depending on the speed of your network and your disk, this may take several minutes.
- Once the installation completes, the multi-function button will change to say "Launch"
- Clicking Launch will start Niflheim.
- Once in the game, click the [DUSK] Niflheim-1.2 quick connect button, create a new character for Niflheim, and press start.
- For future sessions, you should start the game through the launcher.  The launcher will check for updates to Niflheim automatically.

# Niflheim 1.2 Gameplay Quick Guide
Below are some things you really should know before jumping into Valheim.  We've taken a lot of time to build upon the great work of this community to create a bespoke experience designed to challenge, and reward our players with new ways to play. Not everything that has changes will be listed here, but these are the important highlights.

## **Adventuring**
### **Hardcore Vikings**
  - The core feature of Niflheim!
    - Characters who die in Niflheim are sent back to the world spawn, not their beds.
    - All items carried are lost upon death, no tombstone is created.
    - All skills are reset to 0.
    - **You have been warned!**

### **Reworked Armor Sets**
  - Armor has been reworked to offer bonuses to suit different styles of play.
  - Each piece of armor (Helmet/Chest/Legs) offers a unique bonus effect that scales with the materials it has been reinforced by.
  - Having a full set of 3 pieces of the same type will grant an additional set bonus that completes the playstyle of that class of armor.
    - Set bonuses are displayed at the bottom of armors.
    - Different armor pieces that can count towards the set bonus are listed in grey.
    - Equipped items contributing towards the set bonus will be displayed in white.
  - Armor is designed to be able to scale all the way until the end of the game.
    - Armor can be "Uptiered" at a crafting table.
      - Uptiering requires the 'next' new material type first (Leather can be reinforced with bronze.)
      - Uptiering resets any upgrades (stars) added to the old piece of armor.
      - Uptiering improves armor, the piece bonus, and the set bonus.
      - An item must go through each tier of upgrade in sequence (Leather must be reinforced with bronze before it can be reinforced with Iron.)
  - Capes each provide a unique bonus and can be mixed and matched to suit your preferences without regard to the rest of your armor.
  - There might be some surprises...

### **Enchanted Items**
  - Magic Items and effect have been added to the game and can be found throught the world and crafted.
  - Magic Items come in 4 levels of rarity based upon their power.  Magic, Rare, Epic, and Legendary.
  - Magic components can be used to enchant items.
    - Enchanting requires you to discover and create an enchanter crafting augment for the Forge.
      - A forge augmented by an enchanter can sacrifice various items for enchanting materials.
      - Lower quality enchanting materials can be combined into higher quality ones.
      - Certain trophies will yield materials only obtainable by sacrificing them.

### **World Levels and Difficulty Scaling**
 - Monster difficulty now scales up to 5 star levels by default, but higher star levels are possible.
 - The difficulty of a region is based on a combination of the world level and the local sector level.
   - Difficulty is primarily determined by World Level.
     - World Level scales from 0 at the spawn point, to 5 for the outer reaches of the map.
     - World Level zones are indicated on the map as dashed circles with the level transition indicated at the bottom part of the circle.
       - These level indicators can be seen even without having revealed the area.
       - The circles are only displayed when they are revealed.
     - The Further from spawn you go once crossing a line the more difficult monsters will become.
   - Difficulty is locally influenced by the sector level.
     - The sector level is displayed at the bottom of the minimap and always starts at 0 within a given area.
     - As more monsters in a sector are killed, the sector can "level up" and start producing harder monsters.
     - Sectors can go up to level 3.
 - The rewards for higher level monsters and at higher world levels are are greater.

### **Creature Variety**
 - Enhancements
   - Some creatures in the world can spawn with special enhancements changing their behaviors or abilities.
   - These enhancements are indicated in their name panel, and by the coloration of their star level.
 - Infusions
   - Some creatures are infused with elemental wrath.
   - These infusions are indicated in their name panel, and can be spotted at a distance by a malicious haze around the creature.
   - Infused creatures bring elemental wrath to their attacks, and may have other surprises waiting for you.
   - While they offer a fair challenge, they should be considered a serious threat.

### **Upgraded Merchant**
 - The Merchant has been modified to be of more use and making gathering coins worthwhile.
   - A much wider selection of wares are available at the Merchant now.
   - The Merchent will also purchase many items from players.
   - The Merchant now supports a gambling system to allow players to gamble for enchanted items.
   - The Merchant also has a rotating stock of discounted items on occasion.
   - The Merchant now offers small quests to players in the form of Treasure Maps and Bounties for Tokens that can be used to ensure better results from gambling.
      - Treasure Maps Give Forest Tokens and obviously the treasure itself.
      - The Merchant will sell the Andvaranaut ring which is required to discover the Treasure Chests for these quests.
      - Bounties will reward Iron and Gold tokens.

### **New Skill - Cartography**
  - Cartography increases players map discovery range. Making exploring a bit easier.
  - Uncovering new parts of the map will raise your cartography skill.
  - At level 100 you will be able to reveal the map twice as far away from you.

### **Shared Maps**
  - Exploring the world is now a team effort shared by everyone.
  - Players discoveries and map markers are now shared between players.

## **Homesteading Changes**

### **Better Wards**
 - Players with permissions to wards can toggle wards on and off now without being the owner of the ward.
 - Active Wards will slowly auto-repair structures in their area.
 - Active Wards are indestructable by other players.
 - Portals contained within the area of an Active Ward will are now indestructable by other players

### **Speed Boosts**
  - Creating roads now benefit your characters movement speed.
  - Using Pathen with a hoe can create crude roads to boost speed.
  - Stone walkways will give a player the highest buff.

### **Auto Smelting**
  - Furnaces and smelters will now automatically consume available resources.
    - Ores/Coal Deposited in chests will deposit at a steady 1 piece per tick.
    - Ores/Coal Dropped on Ground within 1m are instant deposit in mass groups.

### **Auto Fueling**
  - Kilns, Torches, Campfires, Bonfires, & Hearths will now automatically consume available resources.
    - Fuel source items (wood/resin/etc.) within 3m in chests will be consumed.
    - Fuel source items tossed within 1m will be consumed.

### **Cultivating, Farming, and Gathering**
  - Cultivator now has a graph alignment system for perfect spaced plants with no guess work
  - Holding Shift will enable 5x5 mass planting (25 plants at once)
    - Mass planting still requires the correct amount of stamina/seeds and will show red icons for objects that won't be placed.
  - Gathering has also been streamlined
    - Holding Shift while activating gather will pick all similiar objects within 5m of your character.  This includes crops as well as things like stone, flint, mushrooms, berries, and sticks.
  - A much wider variety of items can be planted now.

### **New building pieces**
  - The hammer tool has a number of new building, misc, furniture, and crafting pieces for you to discover and build.

## **User Interface Changes**

### **Quick Connect**
 - A Niflheim Quick Connect Box has been added to the main screen of Valheim.
 - You can click this button before or after character selection/creating to start the process of joining the Niflheim Server.

### **Skip options**
 - During character creation on the right hand side you are giving the options to skip.
   - Intro ( The valkyrie flying you in )
   - Tutorials ( Hugin telling you about discoveries and guiding you through the world. ) - This is suggested as it is reset upon death.

repository: Vandradrous/Valheim-Dusk-Niflheim

repo_name: Vandradrous/Valheim-Dusk-Niflheim


text:
---
title: kubes new resource
reference: true
---

## Usage

    kubes new resource

## Description

Generates Kubes Kubernetes resource definition.

## Examples

    $ kubes new resource ingress
          create  .kubes/resources/web/ingress.yaml
    $ kubes new resource service_account
          create  .kubes/resources/shared/service_account.yaml
    $

## Supported Resources

Here's a list of some of the supported resources.

    backend_config
    config_map
    daemon_set
    deployment
    ingress
    job
    managed_certificate
    namespace
    network_policy
    pod
    role_binding
    role
    secret
    service_account
    service

Refer to the source code to all the resources that the generator supports:
https://github.com/boltops-tools/kubes/blob/master/lib/templates/new/resource/yaml

## Options

```
a, [--app=APP]    # App name
                  # Default: demo
y, [--force]      # Bypass overwrite are you sure prompt for existing files
r, [--role=ROLE]  # Role. IE: web, clock, worker, migrate, etc. Defaults to convention: web or shared when not set
t, [--type=TYPE]  # Type: dsl or yaml
                  # Default: yaml
```

repository: edwinitdekker/kubes

repo_name: edwinitdekker/kubes


text:
#### Introduction

Avg.80 mins per day is allocated for this personal project.

----------------
###### Previous:

>Until Commits on Jul 13, 2019, cb68b60

This script will read off from .txt file which contains macro actions. But currently only supports image-search based macros, no 'wait' or 'keypress' kinda things yet. Will eventually be implemented when I'm out of army. Got motif from android app 'Frep' by strai.

[Example Usage](https://youtu.be/_ichOg5tf8Y)

-----------------
###### New:

>After Commits on Feb 21, 2020, 5bdc73d

Completely rewriting with GUI, OOP.

Now has separated Macro Editor & Player window. Many functions are not implemented yet.
But basic functions works without significant issue. (Variables, Loops don't work yet)

**Current State:** (v0.0.3)
![Imgur](https://imgur.com/JSpTtFS.jpg)
[Demo video - v0.0.3](https://youtu.be/X6gr9fZ5Vk8)

###### Features (Will format this later):

Support on-Success / on-Fail conditional macro sequencing.
With this, one can easily make IF-like branching sequence or infinite loop too.
This is demonstrated in demo video above.

FYI, uses json serialization to save & load macro sequence, too.

Still working on other macro components.

repository: jupiterbjy/python-macro-practice

repo_name: jupiterbjy/python-macro-practice


text:
# AwsIoTThingPoliceEmergency

```text
aws-q2-2023/Resource/IoT/AwsIoTThingPoliceEmergency
```

```text
include('aws-q2-2023/Resource/IoT/AwsIoTThingPoliceEmergency')
```

| Illustration | AwsIoTThingPoliceEmergency | AwsIoTThingPoliceEmergencyCard | AwsIoTThingPoliceEmergencyGroup |
| :---: | :---: | :---: | :---: |
| ![illustration for Illustration](../../../aws-q2-2023/Resource/IoT/AwsIoTThingPoliceEmergency.png) | ![illustration for AwsIoTThingPoliceEmergency](../../../aws-q2-2023/Resource/IoT/AwsIoTThingPoliceEmergency.Local.png) | ![illustration for AwsIoTThingPoliceEmergencyCard](../../../aws-q2-2023/Resource/IoT/AwsIoTThingPoliceEmergencyCard.Local.png) | ![illustration for AwsIoTThingPoliceEmergencyGroup](../../../aws-q2-2023/Resource/IoT/AwsIoTThingPoliceEmergencyGroup.Local.png) |

## Sprites
The item provides the following sriptes:

- `<$AwsIoTThingPoliceEmergencyXs>`
- `<$AwsIoTThingPoliceEmergencySm>`
- `<$AwsIoTThingPoliceEmergencyMd>`
- `<$AwsIoTThingPoliceEmergencyLg>`

## AwsIoTThingPoliceEmergency

### Load remotely
```plantuml
@startuml
' configures the library
!global $LIB_BASE_LOCATION="https://raw.githubusercontent.com/tmorin/plantuml-libs/master/distribution"

' loads the library's bootstrap
!include $LIB_BASE_LOCATION/bootstrap.puml

' loads the package bootstrap
include('aws-q2-2023/bootstrap')

' loads the Item which embeds the element AwsIoTThingPoliceEmergency
include('aws-q2-2023/Resource/IoT/AwsIoTThingPoliceEmergency')

' renders the element
AwsIoTThingPoliceEmergency('AwsIoTThingPoliceEmergency', 'Aws Io T Thing Police Emergency', 'an optional tech label', 'an optional description')
@enduml
```

### Load locally
```plantuml
@startuml
' configures the library
!global $INCLUSION_MODE="local"
!global $LIB_BASE_LOCATION="../../.."

' loads the library's bootstrap
!include $LIB_BASE_LOCATION/bootstrap.puml

' loads the package bootstrap
include('aws-q2-2023/bootstrap')

' loads the Item which embeds the element AwsIoTThingPoliceEmergency
include('aws-q2-2023/Resource/IoT/AwsIoTThingPoliceEmergency')

' renders the element
AwsIoTThingPoliceEmergency('AwsIoTThingPoliceEmergency', 'Aws Io T Thing Police Emergency', 'an optional tech label', 'an optional description')
@enduml
```

## AwsIoTThingPoliceEmergencyCard

### Load remotely
```plantuml
@startuml
' configures the library
!global $LIB_BASE_LOCATION="https://raw.githubusercontent.com/tmorin/plantuml-libs/master/distribution"

' loads the library's bootstrap
!include $LIB_BASE_LOCATION/bootstrap.puml

' loads the package bootstrap
include('aws-q2-2023/bootstrap')

' loads the Item which embeds the element AwsIoTThingPoliceEmergencyCard
include('aws-q2-2023/Resource/IoT/AwsIoTThingPoliceEmergency')

' renders the element
AwsIoTThingPoliceEmergencyCard('AwsIoTThingPoliceEmergencyCard', 'Aws Io T Thing Police Emergency Card', 'an optional description')
@enduml
```

### Load locally
```plantuml
@startuml
' configures the library
!global $INCLUSION_MODE="local"
!global $LIB_BASE_LOCATION="../../.."

' loads the library's bootstrap
!include $LIB_BASE_LOCATION/bootstrap.puml

' loads the package bootstrap
include('aws-q2-2023/bootstrap')

' loads the Item which embeds the element AwsIoTThingPoliceEmergencyCard
include('aws-q2-2023/Resource/IoT/AwsIoTThingPoliceEmergency')

' renders the element
AwsIoTThingPoliceEmergencyCard('AwsIoTThingPoliceEmergencyCard', 'Aws Io T Thing Police Emergency Card', 'an optional description')
@enduml
```

## AwsIoTThingPoliceEmergencyGroup

### Load remotely
```plantuml
@startuml
' configures the library
!global $LIB_BASE_LOCATION="https://raw.githubusercontent.com/tmorin/plantuml-libs/master/distribution"

' loads the library's bootstrap
!include $LIB_BASE_LOCATION/bootstrap.puml

' loads the package bootstrap
include('aws-q2-2023/bootstrap')

' loads the Item which embeds the element AwsIoTThingPoliceEmergencyGroup
include('aws-q2-2023/Resource/IoT/AwsIoTThingPoliceEmergency')

' renders the element
AwsIoTThingPoliceEmergencyGroup('AwsIoTThingPoliceEmergencyGroup', 'Aws Io T Thing Police Emergency Group', 'an optional tech label') {
    note as note
        the content of the group
    end note
}
@enduml
```

### Load locally
```plantuml
@startuml
' configures the library
!global $INCLUSION_MODE="local"
!global $LIB_BASE_LOCATION="../../.."

' loads the library's bootstrap
!include $LIB_BASE_LOCATION/bootstrap.puml

' loads the package bootstrap
include('aws-q2-2023/bootstrap')

' loads the Item which embeds the element AwsIoTThingPoliceEmergencyGroup
include('aws-q2-2023/Resource/IoT/AwsIoTThingPoliceEmergency')

' renders the element
AwsIoTThingPoliceEmergencyGroup('AwsIoTThingPoliceEmergencyGroup', 'Aws Io T Thing Police Emergency Group', 'an optional tech label') {
    note as note
        the content of the group
    end note
}
@enduml
```

repository: tmorin/plantuml-libs

gha_language: TypeScript

repo_name: tmorin/plantuml-libs


text:
---
metaTitle: "CSS - Getting started with CSS"
description: "External Stylesheet, Internal Styles, CSS @import rule (one of CSS at-rule), Inline Styles, Changing CSS with JavaScript, Styling Lists with CSS"
---

# Getting started with CSS

## External Stylesheet

An external CSS stylesheet can be applied to any number of HTML documents by placing a `<link>` element in each HTML document.

The attribute `rel` of the `<link>` tag has to be set to `"stylesheet"`, and the `href` attribute to the relative or absolute path to the stylesheet. While using relative URL paths is generally considered good practice, absolute paths can be used, too. In HTML5 the `type` attribute [can be omitted](https://html.spec.whatwg.org/multipage/semantics.html#the-link-element).

It is recommended that the `<link>` tag be placed in the HTML file's `<head>` tag so that the styles are loaded before the elements they style. Otherwise, [users will see a flash of unstyled content](http://stackoverflow.com/a/1642259/2397327).

### Example

**hello-world.html**

```html
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8" />
        <link rel="stylesheet" type="text/css" href="style.css">
    </head>
    <body>
        <h1>Hello world!</h1>
        <p>I ♥ CSS</p>
    </body>
</html>

```

**style.css**

```css
h1 {
    color: green;
    text-decoration: underline;
}
p {
    font-size: 25px;
    font-family: 'Trebuchet MS', sans-serif;
}

```

Make sure you include the correct path to your CSS file in the href. If the CSS file is in the same folder as your HTML file then no path is required (like the example above) but if it's saved in a folder, then specify it like this `href="foldername/style.css"`.

```html
<link rel="stylesheet" type="text/css" href="foldername/style.css">

```

External stylesheets are considered the best way to handle your CSS. There's a very simple reason for this: when you're managing a site of, say, 100 pages, all controlled by a single stylesheet, and you want to change your link colors from blue to green, it's a lot easier to make the change in your CSS file and let the changes "cascade" throughout all 100 pages than it is to go into 100 separate pages and make the same change 100 times. Again, if you want to completely change the look of your website, you only need to update this one file.

You can load as many CSS files in your HTML page as needed.

```html
<link rel="stylesheet" type="text/css" href="main.css">
<link rel="stylesheet" type="text/css" href="override.css">

```

CSS rules are applied with some basic rules, and order does matter. For example, if you have a main.css file with some code in it:

```css
p.green { color: #00FF00; }

```

All your paragraphs with the 'green' class will be written in light green, but you can override this with another .css file just by including it **after** main.css. You can have override.css with the following code follow main.css, for example:

```css
p.green { color: #006600; }

```

Now all your paragraphs with the 'green' class will be written in darker green rather than light green.

Other principles apply, such as the '!important' rule, specificity, and inheritance.

When someone first visits your website, their browser downloads the HTML of the current page plus the linked CSS file. Then when they navigate to another page, their browser only needs to download the HTML of that page; the CSS file is cached, so it does not need to be downloaded again. Since browsers cache the external stylesheet, your pages load faster.

## Internal Styles

CSS enclosed in `<style></style>` tags within an HTML document functions like an external stylesheet, except that it lives in the HTML document it styles instead of in a separate file, and therefore can only be applied to the document in which it lives. Note that this element **must** be inside the `<head>` element for HTML validation (though it will work in all current browsers if placed in `body`).

```html
<head>
    <style>
        h1 {
            color: green;
            text-decoration: underline;
        }
        p {
            font-size: 25px;
            font-family: 'Trebuchet MS', sans-serif;
        }
    </style>
</head>
<body>
    <h1>Hello world!</h1>
    <p>I ♥ CSS</p>
</body>

```

## CSS @import rule (one of CSS at-rule)

The @import CSS at-rule is used to import style rules from other style sheets. These rules must precede all other types of rules, except @charset rules; as it is not a nested statement, @import cannot be used inside conditional group at-rules.
[`@import`](https://developer.mozilla.org/en/docs/Web/CSS/@import).

### **How to use @import**

You can use @import rule in following ways:

**A. With internal style tag**

```html
  <style>
    @import url('/css/styles.css');
   </style>

```

**B. With external stylesheet**

The following line imports a CSS file named `additional-styles.css` in the root directory into the CSS file in which it appears:

```css
@import '/additional-styles.css';

```

Importing external CSS is also possible. A common use case are font files.

```css
@import 'https://fonts.googleapis.com/css?family=Lato';

```

An optional second argument to `@import` rule is a list of media queries:

```css
@import '/print-styles.css' print;
@import url('landscape.css') screen and (orientation:landscape);

```

## Inline Styles

Use inline styles to apply styling to a specific element. Note that this is ****not**** optimal. Placing style rules in a `<style>` tag or external CSS file is encouraged in order to maintain a distinction between content and presentation.

Inline styles override any CSS in a `<style>` tag or external style sheet. While this can be useful in some circumstances, this fact more often than not reduces a project's maintainability.

The styles in the following example apply directly to the elements to which they are attached.

```html
<h1 style="color: green; text-decoration: underline;">Hello world!</h1>
<p style="font-size: 25px; font-family: 'Trebuchet MS';">I ♥ CSS</p>

```

Inline styles are generally the safest way to ensure rendering compatibility across various email clients, programs and devices, but can be time-consuming to write and a bit challenging to manage.

## Changing CSS with JavaScript

### Pure JavaScript

It's possible to add, remove or change CSS property values with JavaScript through an element's `style` property.

```js
var el = document.getElementById("element");
el.style.opacity = 0.5;
el.style.fontFamily = 'sans-serif';

```

Note that style properties are named in lower camel case style. In the example you see that the css property `font-family` becomes `fontFamily` in javascript.

As an alternative to working directly on elements, you can create a `<style>` or `<link>` element in JavaScript and append it to the `<body>` or `<head>` of the HTML document.

### jQuery

Modifying CSS properties with jQuery is even simpler.

```js
$('#element').css('margin', '5px');

```

If you need to change more than one style rule:

```js
$('#element').css({
    margin: "5px",
    padding: "10px",
    color: "black"
});

```

jQuery includes two ways to change css rules that have hyphens in them (i.e. `font-size`). You can put them in quotes or camel-case the style rule name.

```js
$('.example-class').css({
    "background-color": "blue",
    fontSize: "10px"
});

```

### See also

- [JavaScript documentation – Reading and Changing CSS Style](https://stackoverflow.com/documentation/javascript/503/document-object-model-dom/6065/reading-and-changing-css-style).
- [jQuery documentation – CSS Manipulation](https://stackoverflow.com/documentation/jquery/2732/css-manipulation#t=201607260315419023535)

## Styling Lists with CSS

There are three different properties for styling list-items: `list-style-type`, `list-style-image`, and `list-style-position`, which should be declared in that order. The default values are disc, outside, and none, respectively. Each property can be declared separately, or using the `list-style` shorthand property.

**`list-style-type`** defines the shape or type of bullet point used for each list-item.

Some of the acceptable values for `list-style-type`:

- disc
- circle
- square
- decimal
- lower-roman
- upper-roman
- none

(For an exhaustive list, see the [W3C specification wiki](https://www.w3.org/wiki/CSS/Properties/list-style-type))

To use square bullet points for each list-item, for example, you would use the following property-value pair:

```css
li {
    list-style-type: square;
}

```

The **`list-style-image`** property determines whether the list-item icon is set with an image, and accepts a value of `none` or a URL that points to an image.

```css
li {
    list-style-image: url(images/bullet.png);
}

```

The **`list-style-position`** property defines where to position the list-item marker, and it accepts one of two values: "inside" or "outside".

```css
li {
  list-style-position: inside;
}

```

#### Remarks

Styles can be authored in several ways, allowing for varying degrees of reuse and scope when they are specified in a source HTML document. **External** stylesheets can be reused across HTML documents. **Embedded** stylesheets apply to the entire document in which they are specified. **Inline** styles apply only to the individual HTML element on which they are specified.

repository: haifenghuang/generate

repo_name: haifenghuang/generate


text:
# Wave-U-Net
Implementation of the [Wave-U-Net](https://arxiv.org/abs/1806.03185) for audio source separation.

For the (improved) Pytorch version, click [here](https://github.com/f90/Wave-U-Net-Pytorch).

For a third-party implementation in Tensorflow 2/Keras (not by me), click [here](https://github.com/satvik-venkatesh/Wave-U-net-TF2).

## Listening examples

Listen to vocal separation results [here](https://sisec18.unmix.app/#/unmix/Side%20Effects%20Project%20-%20Sing%20With%20Me/STL1) and to multi-instrument separation results [here](https://sisec18.unmix.app/#/unmix/Side%20Effects%20Project%20-%20Sing%20With%20Me/STL2)

## What is the Wave-U-Net?
The Wave-U-Net is a convolutional neural network applicable to audio source separation tasks, which works directly on the raw audio waveform, presented in [this paper](https://arxiv.org/abs/1806.03185).

The Wave-U-Net is an adaptation of the U-Net architecture to the one-dimensional time domain to perform end-to-end audio source separation. Through a series of downsampling and upsampling blocks, which involve 1D convolutions combined with a down-/upsampling process, features are computed on multiple scales/levels of abstraction and time resolution, and combined to make a prediction.

See the diagram below for a summary of the network architecture.

### Participation in the SiSec separation competition

The Wave-U-Net also participated in the [SiSec separation campaign](https://sisec.inria.fr/) as submissions [STL1](https://github.com/sigsep/sigsep-mus-2018/blob/master/submissions/STL1/description.md) and [STL2](https://github.com/sigsep/sigsep-mus-2018/blob/master/submissions/STL2/description.md) and achieved a good performance, especially considering the limited dataset we used compared to many other submissions despite having a more data-hungry end-to-end approach (we have to learn the frequency decomposition front-end from data as well).

# Installation

## Requirements

GPU strongly recommended to avoid very long training times.

The project is based on Python 3.6.8 and requires [libsndfile](http://mega-nerd.com/libsndfile/) and CUDA 9 to be installed.

Then, the following Python packages need to be installed:

```
numpy==1.15.4
sacred==0.7.3
tensorflow-gpu==1.8.0
librosa==0.6.2
soundfile==0.10.2
lxml==4.2.1
musdb==0.2.3
museval==0.2.0
google==2.0.1
protobuf==3.4.0
```

Alternatively to ``tensorflow-gpu`` the CPU version of TF, ``tensorflow`` can be used, if there is no GPU available.
All the above packages are also saved in the file ``requirements.txt`` located in this repository, so you can clone the repository and then execute the following in the downloaded repository's path to install all the required packages at once:

``pip install -r requirements.txt``

To recreate the figures from the paper, use functions in ``Plot.py``. The ``matplotlib<3.0`` package needs to be installed as well in that case.

### Download datasets

To directly use the pre-trained models we provide for download to separate your own songs, now skip directly to the [last section](#test), since the datasets are not needed in that case.

To reproduce the experiments in the paper (train all the models), you need to download the datasets below. You can of course use your own datasets for training, but for this you would need to modify the code manually, which will not be discussed here.

#### MUSDB18

Download the [full MUSDB18 dataset](https://sigsep.github.io/datasets/musdb.html) and extract it into a folder of your choice. It should have two subfolders: "test" and "train" as well as a README.md file.

#### CCMixter (only required for vocal separation experiments)

If you want to replicate the vocal separation experiments and not only the multi-instrument experiments, you also need to download the CCMixter vocal separation database from https://members.loria.fr/ALiutkus/kam/. Extract this dataset into a folder of your choice. Its main folder should contain one subfolder for each song.

### Set-up filepaths

Now you need to set up the correct file paths for the datasets and the location where source estimates should be saved.

Open the ``Config.py`` file, and set the ``musdb_path`` entry of the ``model_config`` dictionary to the location of the main folder of the MUSDB18 dataset.
Also set the ``estimates_path`` entry of the same ``model_config`` dictionary to the path pointing to an empty folder where you want the final source estimates of the model to be saved into.

If you use CCMixter, open the ``CCMixter.xml`` in the main repository folder, and replace the given file path tagged as ``databaseFolderPath`` with your path to the main folder of CCMixter.

## Training the models / model overview

Since the paper investigates many model variants of the Wave-U-Net and also trains the [U-Net proposed for vocal separation](https://ismir2017.smcnus.org/wp-content/uploads/2017/10/171_Paper.pdf), which achieved state-of-the-art performance, as a comparison, we give a list of model variants to train and the command needed to start training them:

| Model name (from paper) | Description                                             | Separate vocals or multi-instrument? | Command for training                          |
|-------------------------|---------------------------------------------------------|--------------------------------------|-----------------------------------------------|
| M1                      | Baseline Wave-U-Net model                               | Vocals                               | ``python Training.py``                            |
| M2                      | M1 + difference output layer                            | Vocals                               | ``python Training.py with cfg.baseline_diff``         |
| M3                      | M2 + proper input context                               | Vocals                               | ``python Training.py with cfg.baseline_context``      |
| M4                      | BEST-PERFORMING: M3 + Stereo I/O                        | Vocals                               | ``python Training.py with cfg.baseline_stereo``       |
| M5                      | M4 + Learned upsampling layer                           | Vocals                               | ``python Training.py with cfg.full``                  |
| M6                      | M4 applied to multi-instrument sep.                     | Multi-instrument                     | ``python Training.py with cfg.full_multi_instrument`` |
| M7                      | Wave-U-Net model to compare with SotA models U7,U7a     | Vocals                               | ``python Training.py with cfg.baseline_comparison``   |
| U7                      | U-Net replication from prior work, audio-based MSE loss | Vocals                               | ``python Training.py with cfg.unet_spectrogram``      |
| U7a                     | Like U7, but with L1 magnitude loss                     | Vocals                               | ``python Training.py with cfg.unet_spectrogram_l1``   |

**NEW:**

We also include the following models not part of the paper (also with pre-trained weights for download!):

| Model name (not in paper)| Description                                             | Separate vocals or multi-instrument? | Command for training                          |
|-------------------------|---------------------------------------------------------|--------------------------------------|-----------------------------------------------|
| M5-HighSR               | M5 with 44.1 KHz sampling rate                | Vocals                               | ``python Training.py with cfg.full_44KHz``   |

M5-HighSR is our best vocal separator, reaching a median (mean) vocal/acc SDR of 4.95 (1.01) and 11.16 (12.87), respectively.

#  Test trained models on songs!

We provide a pretrained versions of models M4, M6 and M5-HighSR so you can separate any of your songs right away.

## Downloading our pretrained models

Download our pretrained models [here](https://www.dropbox.com/s/oq0woy3cmf5s8y7/models.zip?dl=1).
Unzip the archive into the ``checkpoints`` subfolder in this repository, so that you have one subfolder for each model (e.g. ``REPO/checkpoints/baseline_stereo``)

## Run pretrained models

For a quick demo on an example song with our pre-trained best vocal separation model (M5-HighSR), one can simply execute

`` python Predict.py with cfg.full_44KHz ``

to separate the song "Mallory" included in this repository's ``audio_examples`` subfolder into vocals and accompaniment. The output will be saved next to the input file.

To apply our pretrained model to any of your own songs, simply point to its audio file path using the ``input_path`` parameter:

`` python Predict.py with cfg.full_44KHz input_path="/mnt/medien/Daniel/Music/Dark Passion Play/Nightwish - Bye Bye Beautiful.mp3"``

If you want to save the predictions to a custom folder instead of where the input song is, just add the ``output_path`` parameter:

`` python Predict.py with cfg.full_44KHz input_path="/mnt/medien/Daniel/Music/Dark Passion Play/Nightwish - Bye Bye Beautiful.mp3" output_path="/home/daniel" ``

If you want to use other pre-trained models we provide (such as our multi-instrument separator) or your own ones, point to the location of the Tensorflow checkpoint file using the ``model_path`` parameter, making sure that the model configuration (here: ``full_multi_instrument``) matches with the model saved in the checkpoint. As an example for our pre-packaged multi-instrument model:

`` python Predict.py with cfg.full_multi_instrument model_path="checkpoints/full_multi_instrument/full_multi_instrument-134067" input_path="/mnt/medien/Daniel/Music/Dark Passion Play/Nightwish - Bye Bye Beautiful.mp3" output_path="/home/daniel" ``

# Known issues / Troubleshooting

MacOS: If matplotlib gives errors upon being imported, see [this issue](https://github.com/f90/Wave-U-Net/issues/15) and [that issue](https://github.com/f90/Wave-U-Net/issues/8) for solutions.

During the preparation of the MUSDB dataset, conversion to WAV can sometimes halt because of an ffmpeg process freezing that is used within the musdb python package to identify the datasets mp4 audio streams. This seems to be an error occurring upon the subprocess.Popen() used deep within the stempeg library. Due to its random nature, it is not currently known how to fix this. I suggest regenerating the dataset again if this error occurs.


text:
# [34. Find First and Last Position of Element in Sorted Array](https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/)

**Level**: `Medium`.

**Topic**: `Array`, `Binary Search`.

Given an array of integers nums sorted in ascending order, find the starting and ending position of a given `target` value.

If `target` is not found in the array, return `[-1, -1]`.

You must write an algorithm with `O(log n)` runtime complexity.

**Example 1:**

```
Input: nums = [5,7,7,8,8,10], target = 8
Output: [3,4]
```

**Example 2:**

```
Input: nums = [5,7,7,8,8,10], target = 6
Output: [-1,-1]
```

**Example 3:**

```
Input: nums = [], target = 0
Output: [-1,-1]
```

**Constraints:**

-   0 <= nums.length <= 105
-    -109 <= nums[i] <= 109
-   nums is a non-decreasing array.
-   -109 <= target <= 109

url: https://raw.githubusercontent.com/Apekshamarutip1/Leetcode-Solutions/527357297b8c6f8f0220f406e33dfec8ba5c0ea4/Arrays/34. Find First and Last Position of Element in Sorted Array/README.md


text:
# RedisBigNum
A simple Redis module for setting and incrementing big numbers. Native Redis `INCRBY` and `HINCRBY` commands are limited to signed 64-bit integers.

# Usage

## Loading the module
Load the module through redis either through:

`redis-server --loadmodule /path/to/bignumber.so`

or inside redis.conf `loadmodule /path/to/bignumber.so`

or at runtime `MODULE LOAD /path/to/bignumber.so`

## Using the module
```$ redis-cli
<IP_ADDRESS>:6379> BIGNUM someKey SET 1
OK
<IP_ADDRESS>:6379> BIGNUM someKey INCRBY<PHONE_NUMBER>0000000000000000000000000000000000000000
OK
<IP_ADDRESS>:6379> GET someKey
"10000000000000000000000000000000000000000000000001"
<IP_ADDRESS>:6379> BIGNUM someKey INCRBY -10000000000000000000000000000000000000000000000000
OK
<IP_ADDRESS>:6379> GET someKey
"1"
<IP_ADDRESS>:6379> BIGNUM someKey INCRBY -1
OK
<IP_ADDRESS>:6379> GET someKey
"0"
```

#### Note, this module only works on whole numbers. Decimals are not supported.

# Building

RedisBigNum only requires one external dependency, `libgmp`.

On Mac: `brew install gmp`

On Debian Linux: `sudo apt-get install libgmp3-dev`

Then simply run: `$ make`

This will output `bignumber.so` which can then be loaded into redis.

repository: MatthewDarnell/RedisBigNum

repo_name: MatthewDarnell/RedisBigNum


text:
# Learn PostgreSQL

**Build and manage high-performance database solutions using PostgreSQL 12 and 13**

## What is this book about?
PostgreSQL is one of the fastest-growing open source object-relational database management systems (DBMS) in the world. As well as being easy to use, it’s scalable and highly efficient. In this book, you’ll explore PostgreSQL 12 and 13 and learn how to build database solutions using it. Complete with hands-on tutorials, this guide will teach you how to achieve the right database design required for a reliable environment.

This book covers the following exciting features:
* Understand how users and connections are managed by running a PostgreSQL instance
* Interact with transaction boundaries using server-side programming
* Identify bottlenecks to maintain your database efficiently
* Create and manage extensions to add new functionalities to your cluster
* Choose the best index type for each situation

If you feel this book is for you, get your [copy](https://www.amazon.com/dp/183898528X) today!

## Errata

It is regarding To get the most out of this book section.

**Page 5**

It is: All the SQL examples can be run using the psql program or using the GUI tool pdAdmin.

Should be: All the SQL examples can be run using the psql program or using the GUI tool pgAdmin.

## Book Outline

This Postgres book is for anyone interested in learning about the PostgreSQL database from scratch. Anyone looking to build robust data warehousing applications and scale the database for high-availability and performance using the latest features of PostgreSQL will also find this book useful. Although prior knowledge of PostgreSQL is not required, familiarity with databases is expected.

The book is divided into five main parts. The following is a list of the book chapters.

### Part 1

1) Introduction to PostgreSQL
2) Getting to know your cluster
3) Managing Users and Connections

### Part 2

4) Basic Statements
5) Advanced Statements
6) Window Functions
7) Server Side Programming
8) Triggers and Rules
9) Partitioning

### Part 3

10)	Users, Roles and Database Security
11)	Transactions, MVCC, WALs and Checkpoints
12)	Extending the database: the Extension ecosystem
13)	Indexes and Performance Optimization
14)	Logging and Auditing
15)	Backup and Restore
16)	Configuration and Monitoring

### Part 4

17) Physical Replication
18) Logical Replication

### Part 5

19) Usefult tools and useful extensions
20) Towards PostgreSQL 13

## Chapters Content

Every chapter will have the following main structure:
- a *What you will learn* bullet list that summarize what the reader will learn thru the chapter;
- a *What you need to know* bullet list that reminds the user basic knowledge **required** to fully understand the contents of the chapter;
- an *Abstract* that introduces the chapter content at glance;
- a *Conclusions* section that provides a summary of the chapter and focus on the main concepts;
- a *References* section with links to documentation, articles and external resources.

## Content of this repository

This repository contains ongoing stuff related to the book, including code examples.

### Naming conventions used in this repository

Every chapter has its own folder named after the chapter number, for instance `Chapter01` for the very first chapter.

In order to ease the execution of the code examples by readers, every chapter will have a set of source scripts that the reader can immediatly load into her database.

Every file is named after the its type, for example `.sql` for an SQL script or a collection of SQL statements.

### Pictures

Any picture will be named with the pattern `Chapter<CC>_picture<PP>.<type>` where:
- `CC` is the chapter number;
- `PP` is the picture number as listed within the chapter;
- `type` is a suffix related to the picture file type (e.g., `png` for a Portable Network Graphic image).

*Images could appear differently from the printed book due to graphical needs*.

### Command prompts

In the book code listings and examples, the command prompts are one of the two that follows:
- a `$` stands for an Unix shell prompt (like Bourne, Bash, Zsh);
- a `forumdb=>` stands for the `psql(1)` command prompt when an active connection to the database is opened.

As an example, the following is a command issued on the operating system:

```shell
$ sudo service postgresql restart
```

while the following is a query issued within an active database connection:

```sql
forumdb=> SELECT CURRENT_TIMESTAMP;
```

### Administrative/Superusers command prompts

Whenere there is the need to execute a command or a statement with administrative privileges, the command prompt will reflect it using a `#` sign as the end part of the command prompt. For example, the following is an SQL statement issued as PostgreSQL administrator:

```sql
forumdb=# SELECT pg_terminate_backend( 987 );
```

ùPlease note the presence of the `#` in the `forumdb=#` prompt, as opposed to the `>` sign in the normal user `forumdb=>` prompt.

In the case a command on the operating system must be run with superuser (`root`) privileges, the command will be run via `sudo(1)`, as in:

```sql
$ sudo initdb -D /postgres/12
```

and therefore in this case the command prompt will not change, rather the presence of the `sudo(1)` command indicates `root` privileges are required.

## Creating the example database

The book is built over an example database that implements an *online forum* storage. In order to be able to execute any example of any chapter, the reader has to initialize the forum database.

The scripts in the folder `setup`, executed in lexicographically order, implement the example database and setup the environment so that other examples can be run against the database.

### Software and Hardware List

| Chapter  | Software required                   | OS required                        |
| -------- | ------------------------------------| -----------------------------------|
| 1        | PostgreSQL 12 - 13                  | Linux OS / FreeBSD |

[We also provide a PDF file](https://static.packt-cdn.com/downloads/9781838985288_ColorImages.pdf)
that has color images of the screenshots/diagrams used in this book.

### Related products
- Mastering PostgreSQL 12 [[Packt]](https://www.packtpub.com/product/mastering-postgresql-12-third-edition/9781838988821) [[Amazon]](https://www.amazon.com/dp/1838988823)
- PostgreSQL 12 High Availability Cookbook - Third Edition [[Packt]](https://www.packtpub.com/product/postgresql-12-high-availability-cookbook-third-edition/9781838984854) [[Amazon]](https://www.amazon.com/dp/1838984852)
- PostgreSQL 11 Server Side Programming - Quick Start Guide [[Packt]](https://www.packtpub.com/product/postgresql-11-server-side-programming-quick-start-guide/9781789342222) [[Amazon]](https://www.amazon.com/PostgreSQL-Server-Programming-Quick-Start-ebook/dp/B07L1MP1F8/ref=sr_1_1?crid=2I7PGMZDCI9O0&dchild=1&keywords=postgresql+11+server+side+programming+quick+start+guide&qid=1605375687&sprefix=postgresql+11+server+%2Caps%2C278&sr=8-1)

## Get to Know the Authors
**Luca Ferrari**
has been passionate about computer science since the Commodore 64 era, and today holds a master's degree (with honors) and a Ph.D. from the University of Modena and Reggio Emilia. He has written several research papers, technical articles, and book chapters. In 2011, he was named an Adjunct Professor by Nipissing University. An avid Unix user, he is a strong advocate of open source, and in his free time, he collaborates with a few projects. He met PostgreSQL back in release 7.3; he was a founder and former president of the Italian PostgreSQL Community (ITPUG). He also talks regularly at technical conferences and events and delivers professional training.

**Enrico Pirozzi**
has been passionate about computer science since he was a 13-year-old, his first computer was a Commodore 64, and today he holds a master's degree from the University of Bologna. He has participated as a speaker at national and international conferences on PostgreSQL. He met PostgreSQL back in release 7.2, he was a co-founder of the first PostgreSQL Italian mailing list and the first Italian PostgreSQL website, and he talks regularly at technical conferences and events and delivers professional training. Right now, he is employed as a PostgreSQL database administrator at Nexteam (Zucchetti Group S.p.a.).

### Suggestions and Feedback
[Click here](https://docs.google.com/forms/d/e/1FAIpQLSdy7dATC6QmEL81FIUuymZ0Wy9vH1jHkvpY57OiMeKGqib_Ow/viewform) if you have any feedback or suggestions.

#### Errata
* Page 82 (Dropping databases, first paragraph): **to drop a table** _should be_ **to drop a database**
* Page 122 (Using FULL OUTER JOIN, point 2): **`j_tags_posts`** _should be_ **`j_posts_tags`**
* Page 152 (`LAST_VALUE` Window Function): the query `select category, row_number() over w, title, last_value(title) over w
from posts WINDOW w as (partition by category order by category) order by category;` should be *`select category, row_number () over w, title, last_value (title) over w from posts WINDOW w as (partition by category order by title) order by category;`*. For more information about this error, see the [issue #6](https://github.com/PacktPublishing/Learn-PostgreSQL/issues/6)
* Page 581 (Section 5, heading): **The PostegreSQL System** _should be_ **The PostgreSQL System**

##### About GNU Debian and Ubuntu Repositories

The installation examples in the chapter 1, with particular regard to the section *Installing PostgreSQL 12 on GNU/Linux Debian, Ubuntu and derivatives* refers to the adoption of PostgreSQL Global Development Groupd (*PGDG*) repositories, as specified at the first step in the example.

Since PostgreSQL 10, both the GNU Debian and Ubuntu operating system families have renamed the *PostgreSQL Contrib* module removing the version number suffix, therefore the right package to install is `postgresql-contrib` instead of the one presented in the installation instruction in the above chapter, wrongly named `postgresql-contrib-12`.

The package `postgresql-contrib-12` is a virtual package that refers to `postgresql-12`, threfore to the whole server and not to the contrib module.


text:
# Leaflet Maps with CSV

## Demo
- Leaflet Map https://jackdougherty.github.io/leaflet-maps-with-google-sheets-csv/index.html

- CSV tables exported from https://docs.google.com/spreadsheets/d/17GX03WgYuKhWRNkVr-7x4DDhqh9smYEPU_2IfZFkszY/edit#gid=0

See original version with details at https://jackdougherty.github.io/leaflet-maps-with-google-sheets/


text:
Version 1.4.2-dev
-----------------

Nothing yet.

Version 1.4.1 (2015-09-19)
--------------------------

### Fixed

* Fixed issue with too many newlines being stripped at the end of heredoc/nowdoc strings in some
  cases. (#227)

Version 1.4.0 (2015-07-14)
--------------------------

### Added

* Added interface `PhpParser\Node\FunctionLike`, which is implemented by `Stmt\ClassMethod`,
  `Stmt\Function_` and `Expr\Closure` nodes. This interface provides getters for their common
  subnodes.
* Added `Node\Stmt\ClassLike::getMethod()` to look up a specific method on a class/interface/trait.

### Fixed

* Fixed `isPublic()` return value for implicitly public properties and methods that define and
  additional modifier like `static` or `abstract`.
* Properties are now accepted by the trait builder.
* Fixed `__HALT_COMPILER_OFFSET__` support on HHVM.

Version 1.3.0 (2015-05-02)
--------------------------

### Added

* Errors can now store the attributes of the node/token where the error occurred. Previously only the start line was
  stored.
* If file positions are enabled in the lexer, errors can now provide column information if it is available. See
  [documentation](https://github.com/nikic/PHP-Parser/blob/master/doc/component/Error.markdown#column-information).
* The parser now provides an experimental error recovery mode, which can be enabled by disabling the `throwOnError`
  parser option. In this mode the parser will try to construct a partial AST even if the code is not valid PHP. See
  [documentation](https://github.com/nikic/PHP-Parser/blob/master/doc/component/Error.markdown#error-recovery).
* Added support for PHP 7 `yield from` expression. It is represented by `Expr\YieldFrom`.
* Added support for PHP 7 anonymous classes. These are represented by ordinary `Stmt\Class_` nodes with the name set to
  `null`. Furthermore this implies that `Expr\New_` can now contain a `Stmt\Class_` in its `class` subnode.

### Fixed

* Fixed registration of PHP 7 aliases, for the case where the old name was used before the new name.
* Fixed handling of precedence when pretty-printing `print` expressions.
* Floating point numbers are now pretty-printed with a higher precision.
* Checks for special class names like `self` are now case-insensitive.

Version 1.2.2 (2015-04-03)
--------------------------

* The `NameResolver` now resolves parameter type hints when entering the function/method/closure node. As such other
  visitors running after it will be able to make use of the resolved names at that point already.
* The autoloader no longer sets the `unserialize_callback_func` ini option on registration - this is not necessary and
  may cause issues when running PhpUnit tests with process isolation.

Version 1.2.1 (2015-03-24)
--------------------------

* Fixed registration of the aliases introduced in 1.2.0. Previously the old class names could not be used in
  `instanceof` checks under some circumstances.

Version 1.2.0 (2015-03-22)
--------------------------

### Changed

* To ensure compatibility with PHP 7, the following node classes have been renamed:

        OLD                             => NEW
        PhpParser\Node\Expr\Cast\Bool   => PhpParser\Node\Expr\Cast\Bool_
        PhpParser\Node\Expr\Cast\Int    => PhpParser\Node\Expr\Cast\Int_
        PhpParser\Node\Expr\Cast\Object => PhpParser\Node\Expr\Cast\Object_
        PhpParser\Node\Expr\Cast\String => PhpParser\Node\Expr\Cast\String_
        PhpParser\Node\Scalar\String    => PhpParser\Node\Scalar\String_

  **The previous class names are still supported as aliases.** However it is strongly encouraged to use the new names
  in order to make your code compatible with PHP 7.

* Subnodes are now stored using real properties instead of an array. This improves performance and memory usage of the
  initial parse and subsequent node tree operations. The `NodeAbstract` class still supports the old way of specifying
  subnodes, however this is *deprecated*. In any case properties that are assigned to a node after creation will no
  longer be considered as subnodes.

* Methods and property declarations will no longer set the `Stmt\Class_::MODIFIER_PUBLIC` flag if no visibility is
  explicitly given. However the `isPublic()` method will continue to return true. This allows you to distinguish whether
  a method/property is explicitly or implicitly public and control the pretty printer output more precisely.

* The `Stmt\Class_`, `Stmt\Interface_` and `Stmt\Trait_` nodes now inherit from `Stmt\ClassLike`, which provides a
  `getMethods()` method. Previously this method was only available on `Stmt\Class_`.

* Support including the `bootstrap.php` file multiple times.

* Make documentation and tests part of the release tarball again.

* Improve support for HHVM and PHP 7.

### Added

* Added support for PHP 7 return type declarations. This adds an additional `returnType` subnode to `Stmt\Function_`,
  `Stmt\ClassMethod` and `Expr\Closure`.

* Added support for the PHP 7 null coalesce operator `??`. The operator is represented by `Expr\BinaryOp\Coalesce`.

* Added support for the PHP 7 spaceship operator `<=>`. The operator is represented by `Expr\BinaryOp\Spaceship`.

* Added use builder.

* Added global namespace support to the namespace builder.

* Added a constructor flag to `NodeTraverser`, which disables cloning of nodes.

Version 1.1.0 (2015-01-18)
--------------------------

* Methods that do not specify an explicit visibility (e.g. `function method()`) will now have the `MODIFIER_PUBLIC`
  flag set. This also means that their `isPublic()` method will return true.

* Declaring a property as abstract or final is now an error.

* The `Lexer` and `Lexer\Emulative` classes now accept an `$options` array in their constructors. Currently only the
  `usedAttributes` option is supported, which determines which attributes will be added to AST nodes. In particular
  it is now possible to add information on the token and file positions corresponding to a node. For more details see
  the [Lexer component](https://github.com/nikic/PHP-Parser/blob/master/doc/component/Lexer.markdown) documentation.

* Node visitors can now return `NodeTraverser::DONT_TRAVERSE_CHILDREN` from `enterNode()` in order to skip all children
  of the current node, for all visitors.

* Added builders for traits and namespaces.

* The class, interface, trait, function, method and property builders now support adding doc comments using the
  `setDocComment()` method.

* Added support for fully-qualified and namespace-relative names in builders. No longer allow use of name component
  arrays.

* Do not add documentation and tests to distribution archive files.

Version 1.0.2 (2014-11-04)
--------------------------

* The `NameResolver` visitor now also resolves names in trait adaptations (aliases and precedence declarations).

* Remove stray whitespace when pretty-printing trait adaptations that only change visibility.

Version 1.0.1 (2014-10-14)
--------------------------

* Disallow `new` expressions without a class name. Previously `new;` was accidentally considered to be valid code.

* Support T_ONUMBER token used by HHVM.

* Add ability to directly pass code to the `php-parse.php` script.

* Prevent truncation of `var_dump()` output in the `php-parse.php` script if XDebug is used.

Version 1.0.0 (2014-09-12)
--------------------------

* [BC] Removed deprecated `Template` and `TemplateLoader` classes.

* Fixed XML unserializer to properly work with new namespaced node names.

Version 1.0.0-beta2 (2014-08-31)
--------------------------------

* [PHP 5.6] Updated support for constant scalar expressions to comply with latest changes. This means that arrays
  and array dimension fetches are now supported as well.

* [PHP 5.6] Direct array dereferencing of constants is supported now, i.e. both `FOO[0]` and `Foo::BAR[0]` are valid
  now.

* Fixed handling of special class names (`self`, `parent` and `static`) in the name resolver to be case insensitive.
  Additionally the name resolver now enforces that special class names are only used as unqualified names, e.g. `\self`
  is considered invalid.

* The case of references to the `static` class name is now preserved. Previously `static` was always lowercased,
  regardless of the case used in the source code.

* The autoloader now only requires a file if it exists. This allows usages like
  `class_exists('PhpParser\NotExistingClass')`.

* Added experimental `bin/php-parse.php` script, which is intended to help exploring and debugging the node tree.

* Separated the parser implemention (in `lib/PhpParser/ParserAbstract.php`) and the generated data (in
  `lib/PhpParser/Parser.php`). Furthermore the parser now uses meaningful variable names and contains comments
  explaining their usage.

Version 1.0.0-beta1 (2014-03-27)
--------------------------------

* [BC] PHP-Parser now requires PHP 5.3 or newer to run. It is however still possible to *parse* PHP 5.2 source code,
  while running on a newer version.

* [BC] The library has been moved to use namespaces with the `PhpParser` vendor prefix. However, the old names using
  underscores are still available as aliases, as such most code should continue running on the new version without
  further changes.

  However, code performing dispatch operations on `Node::getType()` may be affected by some of the name changes. For
  example a `+` node will now return type `Expr_BinaryOp_Plus` instead of `Expr_Plus`. In particular this may affect
  custom pretty printers.

  Due to conflicts with reserved keywords, some class names now end with an underscore, e.g. `PHPParser_Node_Stmt_Class`
  is now `PhpParser\Node\Stmt\Class_`. (But as usual, the old name is still available)

* [PHP 5.6] Added support for the power operator `**` (node `Expr\BinaryOp\Pow`) and the compound power assignment
  operator `**=` (node `Expr\AssignOp\Pow`).

* [PHP 5.6] Added support for variadic functions: `Param` nodes now have `variadic` as a boolean subnode.

* [PHP 5.6] Added support for argument unpacking: `Arg` nodes now have `unpack` as a boolean subnode.

* [PHP 5.6] Added support for aliasing of functions and constants. `Stmt\Use_` nodes now have an integral `type`
  subnode, which is one of `Stmt\Use_::TYPE_NORMAL` (`use`), `Stmt\Use_::TYPE_FUNCTION` (`use function`) or
  `Stmt\Use_::TYPE_CONSTANT` (`use const`).

  The `NameResolver` now also supports resolution of such aliases.

* [PHP 5.6] Added support for constant scalar expressions. This means that certain expressions are now allowed as the
  initializer for constants, properties, parameters, static variables, etc.

* [BC] Improved pretty printing of empty statements lists, which are now printed as `{\n}` instead of `{\n    \n}`.
  This changes the behavior of the protected `PrettyPrinterAbstract::pStmts()` method, so custom pretty printing code
  making use it of may need to be adjusted.

* Changed the order of some subnodes to be consistent with their order in the sour code. For example `Stmt\If->cond`
  will now appear before `Stmt\If->stmts` etc.

* Added `Scalar\MagicConstant->getName()`, which returns the name of the magic constant (e.g. `__CLASS__`).

**The following changes are also included in 0.9.5**:

* [BC] Deprecated `PHPParser_Template` and `PHPParser_TemplateLoader`. This functionality does not belong in the main project
  and - as far as I know - nobody is using it.

* Add `NodeTraverser::removeVisitor()` method, which removes a visitor from the node traverser. This also modifies the
  corresponding `NodeTraverserInterface`.

* Fix alias resolution in `NameResolver`: Class names are now correctly handled as case-insensitive.

* The undefined variable error, which is used to the lexer to reset the error state, will no longer interfere with
  custom error handlers.

---

**This changelog only includes changes from the 1.0 series. For older changes see the [0.9 series changelog][1].**

 [1]: https://github.com/nikic/PHP-Parser/blob/0.9/CHANGELOG.md


text:
## Blackface PHP Framework

### Objective
The main objective is to teach web development with PHP, OO, MVC and frameworks. We do not want to teach how to use a framework, but its main foundations.

### Getting Started

1. Download de app on your web directory
```shellscript
  cd /var/www
  git clone https://github.com/dmarczal/blackface-framework-example blackface-todo
```

2. Run the command ./scripts/setup.sh # to set application paths
3. Change the databse user and passswor on ./scripts/db.sh
4. Run the command ./scripts/db.sh reload # this command load the database
5. Access http://localhost/blackface-todo

### See the framework

See the framework on https://github.com/dmarczal/blackface-framework

## Used Technologies

* Linux or Macos
* PHP 5.4.24 or higher
* Apache or Engnix
* Postgresql database

### Author:
  Prof. Diego Marczal. http://marczal.com

### Version:
  0.0.2

### License
  MIT License. Copyright 2013-2013 Diego Marczal. http://marczal.com

repository: gzmarques/pi-mvc

repo_name: gzmarques/pi-mvc


text:
---
layout: blog
title: PSEG Work
---

PSEG has begun work in the borough installing 69KV lines within the right-of-way along several borough streets. The council formally requested a revised plan be considered which would have redirected some of the poles to the south of Route 3 but that request was denied by PSEG.

For more information please read the documents provided by PSEG below:

[PSEG in Rutherford](https://storage.googleapis.com/static.rutherford-nj.com/borough-clerk/posts/Rutherford%20PSEG%20for%20website.docx.pdf)

[Electric and Magnetic Fields](https://storage.googleapis.com/static.rutherford-nj.com/borough-clerk/posts/EMF_brochure_web.pdf)

branch_name: refs/heads/beta


text:
# NonBooleanUtils

![Build Status](https://jenkins-2.sse.uni-hildesheim.de/buildStatus/icon?job=KH_NonBooleanUtils)

A utility plugin for [KernelHaven](https://github.com/KernelHaven/KernelHaven).

Utilities for for replacing non-boolean conditions in source code files.

## Usage

Place [`NonBooleanUtils.jar`](https://jenkins-2.sse.uni-hildesheim.de/job/KH_NonBooleanUtils/lastSuccessfulBuild/artifact/build/jar/NonBooleanUtils.jar) in the plugins folder of KernelHaven.

To use this preparation, set `preparation.class.0` to `net.ssehub.kernel_haven.non_boolean.NonBooleanPreperation` in the KernelHaven properties.

## Dependencies

In addition to KernelHaven, this plugin has the following dependencies:
* [CppUtils](https://github.com/KernelHaven/CppUtils)

## License

This plugin is licensed under the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0.html).

repository: AlexanderSchultheiss/NonBooleanUtils

repo_name: AlexanderSchultheiss/NonBooleanUtils


text:
Users can search for information about and results from those trials. This package provides a set of functions to interact with the search and download features. Results are downloaded to temporary directories and returned as R objects.

Note that the clinicaltrials.gov API _does not_ require an API key.

The [rclinicaltrials](http://github.com/sachsmc/rclinicaltrials) package is ongoing development.

### Installation

To install from github, use
`devtools::install_github()`, as follows:

```{r, eval = FALSE}
install.packages("devtools")
library(devtools)
install_github("sachsmc/rclinicaltrials")
```

### Basic usage

The main function is `clinicaltrials_search()`. Here's an example of its use:

```{r}
library(rclinicaltrials)
z <- clinicaltrials_search(query = 'lime+disease')
str(z)
```

This gives you basic information about the trials. Before searching or downloading, you can determine how many results will be returned using the `clinicaltrials_count()` function:

```{r}
clinicaltrials_count(query = "myeloma")
clinicaltrials_count(query = "29485tksrw@")
```

The query can be a single string which will be passed to the "search terms" field on clinicaltrials.gov. Terms can be combined using the logical operators AND, OR, and NOT. Advanced searches can be performed by passing a vector of key=value pairs as strings. For example, to search for cancer interventional studies:

```{r}
clinicaltrials_count(query = c("type=Intr", "cond=cancer"))
```

The possible advanced search terms are included in the `advanced_search_terms` data frame which comes with the package. The data frame has the keys, description, and a link to the help webpage which will explain the possible values of the search terms. To open the help page for `cond`, for instance, run `browseURL(advanced_search_terms["cond", "help"])`.

```{r}
head(advanced_search_terms)
```

To download detailed study information, including results, use `clinicaltrials_download()`. Downloading lots of results may take a long time and use a substantial amount of hard drive space. You can limit the number of studies downloaded with the `count` option. By default, the count is limited to 20.

```{r}
y <- clinicaltrials_download(query = 'myeloma', count = 10, include_results = TRUE)
str(y)
```

This returns a list of dataframes that have a common key variable: `nct_id`. Optionally, you can get the long text fields and/or study results (if available). Study results are also returned as a list of dataframes, contained within the list.

### How to use the results

The data come from a relational database with lots of text fields, so it may take some effort to get the data into a flat format for analysis. For that reason, results come back from the `clinicaltrials_download` function as a list of dataframes. Each dataframe has a common key variable: `nct_id`. To merge dataframes, use this key. Otherwise, you can analyze the dataframes separately. They are organized into study information, locations, outcomes, interventions, results, and textblocks. Results, where available, is itself a list with three dataframes: participant flow, baseline data, and outcome data.

If you have any difficulties, or notice anything strange with the results, please report the issue [here](http://github.com/sachsmc/rclinicaltrials/issues).

### Tutorial

To view the tutorial for the `rclinicaltrials` package:

```r
vignette("basics", "rclinicaltrials")
```

### Links

* [clinicaltrials.gov](http://clinicaltrials.gov)
* [clinicaltrials.gov API](http://clinicaltrials.gov/ct2/resources/download)

### License

Licensed under the [MIT license](LICENSE). ([More information here](http://en.wikipedia.org/wiki/MIT_License).)

repository: cran/rclinicaltrials

repo_name: cran/rclinicaltrials