text:
# Team Profile Generator

## Description
This is a backend based Object Oriented Programming application that write a file and send the data to an HTML page. This allows users to create a team page for their office, or any other organization they may be involved in.  This app has 3 options, manager, engineer, and intern.  You can add as many as you like and it will create a card for each employee or memeber.

## License Badge and Link (if applicable)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

[MIT Link](https://opensource.org/licenses/MIT)

  ## Table of Contents
- [Description](#description)
- [Installation](#dnstallation)
- [Usage](#usage)
- [Contributing](#contributing)
- [Tests](#tests)
- [License](#license)
- [Questions](#githubUser)

## Installation
npm install

## Screenshot

## Walk Through Video
https://drive.google.com/file/d/1Kz1jARXAl5sh1otAgTjccSCbud6fHTRC/view

## Contributing
Mark Sherman

## Tests
Jest

## License
MIT

## Questions
- Github Page: [marksherm04](https://github.com/marksherm04)
- Email<EMAIL_ADDRESS>


text:
![AdminStrap](https://i.imgur.com/oMBkVEg.png)
---
This Bootstrap Admin Panel was edited from the one [Brad Traversy](https://github.com/bradtraversy) did on one of his older YouTube Videos, link at bottom.
> I followed along with the video and edited it afterwards, yes there's a download link to all the code already however I thought it would be easier to follow along with it and correct any mistakes if any.

# Getting Started
These instructions will tell you how to download the files and upload them to a hosting service.

### Prerequisites

```
- You will need to download the master file zip.
- Export the files using Winrar.
- All files for download are included, just put into web host and edit how you like.
```

## Built With
- [Bootstrap](https://getbootstrap.com/docs/3.3/) - The Framework used to develop AdminStrap.

## Authors
- [Brxndan](https://github.com/Brxndan) - Edited Code - [Moonbright Softworks](https://moonbrightsoftworks.tumblr.com)
- [Brad Traversy](https://github.com/bradtraversy) - Initial Work - [Traversy Media](https://www.youtube.com/channel/UC29ju8bIPH5as8OGnQzwJyA)

## License
This project is licensed under the MIT License - see the [LICENSE.md](https://github.com/Brxndan/AdminStrap/blob/master/LICENSE.md) file for details.

## Acknowledgments
- [Brad Traversy](https://github.com/bradtraversy) for original code.
- [Billie Thompson/PurpleBooth](https://github.com/PurpleBooth) for README.md [Template](https://gist.github.com/PurpleBooth/109311bb0361f32d87a2).

[Traversy Media](https://www.youtube.com/channel/UC29ju8bIPH5as8OGnQzwJyA) - YouTube Channel

YouTube Video - Build A CMS Admin Bootstrap Theme From Scratch
[![Build A CMS Admin Bootstrap Theme From Scratch](http://img.youtube.com/vi/pXbEcGUtHgo/0.jpg)](http://www.youtube.com/watch?v=pXbEcGUtHgo)

license: MIT

repository: MoonbrightSoftworks/AdminStrap

branch_name: refs/heads/master

extension: md

license_type: permissive

repo_name: MoonbrightSoftworks/AdminStrap


text:
# Theming

## Using a Custom Theme

You can enable a custom theme by adding the `.vitepress/theme/index.js` file (the "theme entry file").

```bash
.
├─ docs
│  ├─ .vitepress
│  │  ├─ theme
│  │  │  └─ index.js
│  │  └─ config.js
│  └─ index.md
└─ package.json
```

A VitePress custom theme is simply an object containing three properties and is defined as follows:

```ts
interface Theme {
  Layout: Component // Vue 3 component
  NotFound?: Component
  enhanceApp?: (ctx: EnhanceAppContext) => void
}

interface EnhanceAppContext {
  app: App // Vue 3 app instance
  router: Router // VitePress router instance
  siteData: Ref<SiteData>
}
```

The theme entry file shoud export the theme as its default export:

```js
// .vitepress/theme/index.js
import Layout from './Layout.vue'

export default {
  Layout,
  NotFound: () => 'custom 404', // <- this is a Vue 3 functional component
  enhanceApp({ app, router, siteData }) {
    // app is the Vue 3 app instance from `createApp()`. router is VitePress'
    // custom router. `siteData`` is a `ref`` of current site-level metadata.
  }
}
```

...where the `Layout` component could like this:

```vue
<!-- .vitepress/theme/Layout.vue -->
<template>
  <h1>Custom Layout!</h1>
  <Content /><!-- this is where markdown content will be rendered -->
</template>
```

The default export is the only contract for a custom theme. Inside your custom theme, it works just like a normal Vite + Vue 3 application. Do note the theme also needs to be [SSR-compatible](/guide/using-vue.html#browser-api-access-restrictions).

To distribute a theme, simply export the object in your package entry. To consume an external theme, import and re-export it from the custom theme entry:

```js
// .vitepress/theme/index.js
import Theme from 'awesome-vitepress-theme'
export default Theme
```

## Extending the Default Theme

If you want to extend and customize the default theme, you can import it from `vitepress/theme` and augment it in a custom theme entry. Here are some examples of common customizations:

### Registering Global Components

```js
// .vitepress/theme/index.js
import DefaultTheme from 'vitepress/theme'

export default {
  ...DefaultTheme,
  enhanceApp({ app }) {
    // register global components
    app.component('MyGlobalComponent' /* ... */)
  }
}
```

Since we are using Vite, you can also leverage Vite's [glob import feature](https://vitejs.dev/guide/features.html#glob-import) to auto register a directory of components.

### Customizing CSS

The default theme CSS is customizable by overriding root level CSS variables:

```js
// .vitepress/theme/index.js
import DefaultTheme from 'vitepress/theme'
import './custom.css'

export default DefaultTheme
```

```css
/* .vitepress/theme/custom.css */
:root {
  --c-brand: #646cff;
  --c-brand-light: #747bff;
}
```

See [default theme CSS variables](https://github.com/vuejs/vitepress/blob/master/src/client/theme-default/styles/vars.css) that can be overridden.

### Layout Slots

The default theme's `<Layout/>` component has a few slots that can be used to inject content at certain locations of the page. Here's an example of injecting a component into the top of the sidebar:

```js
// .vitepress/theme/index.js
import DefaultTheme from 'vitepress/theme'
import MyLayout fro './MyLayout.vue'

export default {
  ...DefaultTheme,
  // override the Layout with a wrapper component that injects the slots
  Layout: MyLayout
}
```

```vue
<!--.vitepress/theme/MyLayout.vue-->
<script setup>
import DefaultTheme from 'vitepress/theme'
const { Layout } = DefaultTheme
</script>

<template>
  <Layout>
    <template #sidebar-top>
      My custom sidebar top content
    </template>
  </Layout>
</template>
```

Full list of slots available in the default theme layout:

- `navbar-search`
- `sidebar-top`
- `sidebar-bottom`
- `page-top-ads`
- `page-top`
- `page-bottom`
- `page-bottom-ads`
- Only when `home: true` is enabled via frontmatter:
  - `home-hero`
  - `home-features`
  - `home-footer`

repository: khalwat/vitepress

gha_license_id: MIT

repo_name: khalwat/vitepress


text:
# InteractiveBrokers2TastyWorks

This library converts the output of an Interactive Brokers Execution Flex Query to a TastyWorks-compatible CSV file.

### Activity Flex Query Parameters in Interactive Brokers

- Leave all defaults
- Set time period to LAST 365 DAYS (or whatever you want, really)
- In Sections, select Trades
    + Select Executions
    + Select All

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'interactive_brokers_2_tasty_works'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install interactive_brokers_2_tasty_works

## Usage

`InteractiveBrokers2TastyWorks.new(input_path: '~/trades.xml').save_as("/tmp/trades.csv")`

### Adding additional fields to the output (non standard output format)

```
InteractiveBrokers2TastyWorks.new(input_path: '~/trades.xml', add_output: ['ibExecID', 'ibOrderID'])

# or to specify a different header for the additional fields

InteractiveBrokers2TastyWorks.new(input_path: '~/trades.xml', add_output: { ibExecID: 'IB Execution ID', ibOrderID: 'IB Order ID' })
```

## Development

After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).

## Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/cmer/interactive_brokers_2_tasty_works. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.

## License

The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).

## Code of Conduct

Everyone interacting in the InteractiveBrokers2TastyWorks project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/cmer/interactive_brokers_2_tasty_works/blob/master/CODE_OF_CONDUCT.md).


text:
# Traits

All characters have _Traits_, but only characters with the _Perculiar_-trait can aquire additional ones willingly.

_Traits_ are either aquired automatically, similar to buffs through trigger-events or manually manipulating certain statistics in either non-playable or playable characters.

The difference between _Traits_, _Skills_ and certain _Focus_ abilities, is that _Traits_ are entirely passive.

But _Traits_ can, similar to _Skills_ and _Focus_ ability, still be upgraded by spending a certain number of ascension points, instead of leveling attributes. By upgrading certain _Traits_, certain stats are can be also either increased or decreased.

While selected _Traits_ have always positive effects, aquirable _Traits_ can be either positive or negative.
Negative _Traits_ can be downgraded to lessen the effect of the negative buff.

Unlike _buffs_, _debuffs_ and _Status_-effects, _Traits_ are permanent.

_Traits_ can be upgraded through the following path:

    1. Higher
    2. Greater
    3. Grand
    4. Prime
    5. Inhuman (only in survival mode)
    6. Godlike (only in hardcore mode)

Sinister Heart (Higher/Greater/Grand/Prime/Inhuman)

    Sharpshooter (Higher/Greater/Grand/Prime/Inhuman)

    Boundless Grasp (Higher/Greater/Grand/Prime/Inhuman)

    Disregard
    * This trait can lock you out of certain quests or dialogue options *

    Kleptomaniac (Higher/Greater/Grand)

    Silence (Higher/Greater/Grand/Prime/Inhuman/Godlike)

    Investigative Eye (Higher/Greater)

    Literacy (Higher/Greater/Grand/Prime/Inhuman)
    * This trait can grant you access to certain quests, quest options or additional dialogue options *

    Golden Tongue (Higher/Greater/Grand/Prime/Inhuman)
    * This trait can grant you access to certain quests, quest options or additional dialogue options *

    Charm (Higher/Greater/Grand/Prime)
    * This trait can grant you access to certain quests, quest options or additional dialogue options *

    Allure (Higher/Greater/Grand/Prime)
    Requires: Greater Charm
    * This trait can grant you access to certain quests, quest options or additional dialogue options *
    Your charm has become so irrestible, that there's a ?% chance the person chooses to engage in consensual intimacy with you.

    If your looks score a ? the chance increases in ?%

    Quacking Charlatan
    - "Even if you aren't that smart, you can still make people believe so."

    Nature´s Augur (Higher/Greater/Grand/Prime)
    Higher: You can understand animals.
    Greater: You can talk to animals.
    Grand: You can order animals to do something.
    Prime: You can turn into the animal of your focus path. Requires you to learn the conjuration ${id}
    - "The Augur is in a symbiotic relationship with nature and its offspring."

Passively aquirable traits:

Positive:
Buff (Higher/Greater/Grand/Prime/Inhuman)

        Vitality (Higher/Greater/Grand/Prime/Inhuman)

        Compassion (Higher/Greater/Grand/Prime/Inhuman)

        Nimbleness (Higher/Greater/Grand/Prime/Inhuman)

        Wit (Higher/Greater/Grand/Prime/Inhuman)

    Neutral

        Bipolar

    Negative:

        Depression
            Increases lethargy and makes you repulsive towards NPCs.

        Dork

        Naive
        - "Don't quote me."

        Blindness (Higher/Greater/Grand)

        Deafness (Higher/Greater/Grand)

        Mute

        Insanity (Higher/Greater/Grand/Prime/Inhuman)

repository: arsonite/nightshade

repo_name: arsonite/nightshade


text:
2021-05-24: Development Meeting
===============================

Kacper, Craig, Tim, Mike H, Mike L

Agenda
------

* Updates
* DataONE CN -- [name=Craig]
    * proveit case isn't working, may be a bug
    * UI needs to handle api param from integration and pass base_url
* Image cache refresh/rebuild -- [name=Craig]
    * Cron job builds base images for each environment on each node
    * ML: May be related to buildkit

Updates
-------

* Kacper
  * Bugfixes
    * [Correctly update wt_progress for last notification](https://github.com/whole-tale/girder_wholetale/pull/488)
        * This needs more work...
    * [fix path in fetch.txt](https://github.com/whole-tale/girder_wholetale/pull/487)
    * [Relax ACL constrains on GET /tale/:id/access](https://github.com/whole-tale/girder_wholetale/pull/486)
    * [Decrease the amount of Tale().updateTale calls during import](https://github.com/whole-tale/girder_wholetale/pull/484)
    * [Fixed issue where adding shared user always set view permission](https://github.com/whole-tale/ngx-dashboard/pull/184)
    * [Show error message for error raised during folder creation](https://github.com/whole-tale/ngx-dashboard/pull/185)
    * [Fixed some 403 raised in ro view of Tale](https://github.com/whole-tale/ngx-dashboard/pull/192)
  * PR reviews (dashboard updates + culling Instances + docs)
  * Tagged and deployed 1.0rc3

* Craig
    * Idle instance handling
    * Ran through [full test plan for v1.0rc3](https://github.com/whole-tale/wt-design-docs/issues/155)
    * [Test plan updates](https://github.com/whole-tale/wt-design-docs/pull/156)
    * PR Reviews

* Tim
    * Evaluated what works and doesn't with RDR support in Blazegraph.
        * We can adopt this reification strategy in a future release.
        * Will not disturb older traces or queries.
    * Spending the week getting core of CPR and WT vocabulary defined
        * Make camera-ready CPR demo paper consistent with what we are going to do
        * Exercise with examples in the demo paper repo

* Mike L

* Mike H

repository: whole-tale/wt-design-docs

gha_language: HTML

repo_name: whole-tale/wt-design-docs


text:
#completecommand

Programmatic autocompletion suggestions for Go binaries.

## Description

`completecommand` is a Go library that allows your binaries to programmatically return a list of
accepted flags that can be used to provide shell autocompletion suggestions for command line
invocations.

## Usage

In your program, simply import `completecommand`, and call its `Complete` functions as the first
line of your `main`.

```go
package main

import (
        "flag"

        "github.com/tiziano88/completecommand"
)

var flagA = flag.Bool("a", false, "A")
...

func main() {
        completecommand.Complete()
        ...
}
```

Then source the `completecommand.zsh` file from your `.zshrc`.


text:
# nord-bulma

A port of the [nord](https://github.com/arcticicestudio/nord) theme for the [Bulma](https://github.com/jgthms/bulma/) CSS framework

[Demo](https://sereneblue.github.io/nord-bulma)

## Usage

You can find the minified CSS files in the dist folder of the master branch or in the `dist/` folder in the source code zip file on the releases [page](https://github.com/sereneblue/nord-bulma/releases).

Alternatively, you can clone this repository and run `npm install && npm run build` to build nord-bulma.

## Thanks

[arcticicestudio](https://github.com/arcticicestudio/nord) for the Nord theme

[Jeremy Thomas](https://github.com/jgthms) for the Bulma CSS framework

repository: sereneblue/nord-bulma

gha_language: SCSS

repo_name: sereneblue/nord-bulma


text:
---
layout: post
title: A change is in the air...
image: /img/hello_world.jpeg
tags: [random, exciting-stuff]
---
I decided that I needed a change. Do you feel like that every so often? In this regard, it was to my blog and website.

I've been having a love/hate/love relationship with Git. Git is amazing. Amazingly frustrating sometimes, but amazing none the less. So when I first read about Github Pages I was like...
> This is exactly what I need! Version control all the things! (including my blog)

So I began looking into leveraging Github Pages and Jekyll. At first it looked complicated but then I realized I was really over complicating it. One simple fork or a repo later and I have a new site.

### But what about all the old content?
I have content reaching back about six years, which astonished me! I can't leave all that content behind, right?

Yep. I can.

I have no inclination nor drive to reach back and convert all of my SquareSpace posts into Markdown. Now I will convert some of my Michael's Minutes and reading links because that's useful to me, but most everything else will just be free electrons.

I'll still be focusing on technology and systems development. There may be some random thoughts in here as well.

*Onward and upward.*


text:
---
layout: post
lang: en
title: "From design to code, let's think about it"
image: images/pattern_ftf.png
categories:
  - Flutter
tags:
  - Flutter
  - Dart
  - Figma
  - Design
---

If you know me a little you already know that I always think about how we could be more productive as a whole software team. I'm always frustated by the information lost from one member of the team to the other: a customer need that a developer hasn't heard about, a design element that hasn't been exported or explained to the developer.

Today, I'll focus on the process from the UI/UX designer to the developer.

## A typical mobile development process today

On the picture below, I wanted to show you the situation I encounter most often.

![photo]({{ site.url }}/img/ftf_comic_1.png)

So, we've got a first step where the designer creates the visual content and exports it for the developers. For each platform, the developer will study the design resources and adapt this to his favorite platform, with the tools he know. Each time the designer  produces new content (or modifies an existing one), each developer will have to apply this to his platform.

Concerning the business logic, the developers will have to make sure they have clear specs avoid introducing different behaviours.

## Unified development

A first natural step would be to unify the platform specific branches. To achieve this, you can bet on a cross-platform solution. My personnal favorite today is [Flutter](http://www.flutter.io), but [Xamarin](http://www.xamarin.com) is a great choice too.

![photo]({{ site.url }}/img/ftf_comic_2.png)

Okay, we now have a far less specific toolchain and less potential specific issues : a simpler global overall process. Great!

## What if ... ?

But, I'm sure you noticed that the first tasks of the developer are to adapt the designer resources to its platform. Those are really long tasks where the developer has to understand what the designer thought when he created the content.

Just imagine if developers could directly use the content of the designer as components into their code.

![photo]({{ site.url }}/img/ftf_comic_3.png)

## Introducing Figma to Flutter

I immediately liked the [Figma](http://www.figma.com) designer tool  when I discovered it: runs everywhere, simple, collaborative.

But I fell in love after studying a little bit more the software architecture behind it. The engineering team is really incredible: the software is based on modern web technologies (WebAssembly!), and as a bonus they offer open API for anyone.

I started to work on a little tool that converts Figma files to Flutter widgets (Dart code).

![photo]({{ site.url }}/img/ftf_icon.png)

Even if still under active development, you can already try it in your browser here: [Figma-to-Flutter](http://aloisdeniel.github.com/figma-to-flutter).

I will probably write a more detailled post later on how it works, its features and how to use it from your build environment.

## Still very experimental

All of this is purely experimental and under active development. If I would have access to Figma rendering source code it would have been a lot easier and quicker (**if a Figma employee reads this and can share the algorithm, it would be awesome!**), but be aware that all the rendering logic is reverse engineered, so you will experience a lot of inconsistencies!

Though, several things are still missing from my implementation (*stay tuned for new features*):

* **Angular and diamond gradients**: only linear and radial gradients
* **Text supports only solid fills** : it is not possible to have text filled with effects.
* **Theme - colors and text styles** : an `InheritedWidget` will be generated to be able to update colors and styles globally.
* **Only "Pass Through" blend mode**
* **Only "Drop Shadow" effect**
* **Maybe more... :)**

Unfortunately Figma doesn't cover everything that is needed for modern dynamic layouts and I hope that they will add it :

* **Element-to-element constraints** : at the moment you can declare relative margin constraint only from an element to its parent. Unfortunately this doesn't cover dynamic stack of elements that are common.
* **Animations** : only basic transitions are supported today today.

## I use Xamarin too

I'm waiting for the [Drawing Spec](https://github.com/xamarin/Xamarin.Forms/issues/2452) to be implemented to eventually support Xamarin too.

If you want to react to this, please post a comment!


text:
- {riortizing Non-coding variation
- Nicotine-addition: CHRNA5 nicotininc receptor
- Many regulator elements in genome and many brain regionsa re not evolutionary conserved
so mouse not a good model for psychiatric ddisease

- Spectral learning of HMMs for predicting chromatin states for a single cell type
- enhancer RNAs - eRNAs -> used to identify enhancers

- Data from human epigenomics project
- PsychENCODE -> Specific to psychiatric disease

- Chromatin marks
    - H3K4Me1 --> Associated with enhancers
    - H3K4Me3 --> Associateed with promoters
    - H3K27Ac --> Associated with active enhancer
- Input: set of histone marks and other chromatin marks in a cell type
- Output: Chromaitcn states associated with genomic feature: enhancers. TSS

- EM not guaranteed to reach local optima, no provable xomplexity bounds
- Use method of moments, express expected moments of data as function of parametes, setting expected momemnts
equal to the sample moments calculated from the data
- Novel spectral learning: Coonsider all combinations of 8 histone marks: 2^8
- P_{1.2}$  has matrox of counts of consecutivate pairs of combinations of the genome
- {_{1,2,3}} is 3rd order tensor of counts of tripsi

- Matrix $O_i$ is the distribution of observation i
- Column vector $O_{i,k}=Pr(X_i|h_2=K)$
- Condition on hidden state: past present and future state

- REsults similar to ChromHMM
- but ChromHMM overfits
- Comparison with GWAS SNP enrichments - seen in 20th state

- eRNAs - bidirectiona non spliced --> active enhacner

repository: saketkc/hatex

repo_name: saketkc/hatex


text:
# qb-radialmenu
Radial Menu Used With QB-Core :arrows_counterclockwise:

**Now using FontAwesome Icons!**
To change icons get the name from [FontAwesome](https://fontawesome.com/v5.0/icons?d=gallery&p=2&s=brands,light,regular,solid&m=free) (v5) and use the icon's name in the config.lua for the icon (no `fa-` or `#` just the name like `arrow-right`)

repository: qbcoredev/server-data

branch_name: refs/heads/main

gha_language: JavaScript

repo_name: qbcoredev/server-data


text:
# Installation

npm install

## src/GenerateAccount.ts
* Running Command: node_modules/.bin/ts-node src/GenerateAccount.ts
* This file leverages [thor-model-kit](https://github.com/vechain/thor-model-kit) to generate private key, from which, public key and address can be derived. For more details, you can refer to https://github.com/vechain/thor-model-kit.

## src/deployContract.ts
* Running Command: node_modules/.bin/ts-node src/deployContract.ts
* This file leverages [thorify](https://github.com/vechain/thorify), a VeChain version web3, to deploy transaction. For more details, please refer to https://github.com/vechain/thorify. However, 'thorify' is limited to send only one clause inside of each transaction. For sending multi-clause transactions, [thor-model-kit](https://github.com/vechain/thor-model-kit) and [Sync](https://github.com/vechain/thor-sync/releases) toolkits can be utilized.


text:
# This project has been superceded by [RSSputin](https://github.com/Dotnaught/rssputin).

# vulture-feeds

vulture-feeds is an Electron-based RSS/Atom headline aggregator for journalists. It's designed for finding recently published news and source documents; it's not intended for reading articles.

Because I currently write for The Register, vulture-feeds is configured for finding tech news. But it can be adapted for other areas of interest.

The app has been setup to ingest some sources that require customization, because RSS and ATOM implementations aren't uniform. At some point, it may include more of these. Feel free to customize it to meet your needs.

Initially, the app included two main functions: RSS/Atom feed aggregation and webpage monitoring. As of version 1.0.3, it also supports keyword search filtering on displayed article links (to show fewer fetched links) and on article links prior to display (as a way of keeping feeds with lots of entries manageable).

The former filtering capability is available through the Search box at the top of the main page. The latter can be set from the File > Show Feeds menu and was intended for use on US court feeds, so a specific case can be followed while others are ignored and not loaded.

Webpage monitoring is done by comparing hashes of the network response to a request for the page. While hash comparison is easy to implement it's not the optimal approach because even the smallest change will be detected. Monitoring a specific page element is more reliable but also more brittle, requiring code changes if the page structure is revised.

Version 1.0.4 introduced the ability to track GitHub repos. Version 1.0.5 adds some changes to the way repos are handled: It looks at the last 30 days of Issues posts in selected repos and surfaces either all Issues modified since then or those that include body text matching keywords set when the repo feed was added. There are probably better ways to approach this. Future revisions may change this further.

<img alt="vulture-feeds-screenshot" src="https://user-images.githubusercontent.com/429084/36622694-90e4dd1a-18b3-11e8-9076-e1e344f825ab.png" style="max-width:100%;">

### Prerequisites

To build vulture-feeds, Node.js is required. It's been tested with v10.15.0.

```
Node.js
```

### Installing

To get started:

```
git clone https://github.com/Dotnaught/vulture-feeds.git
cd vulture-feeds
npm install
npm start
```

The app should present a blank page on startup. It comes with some default feeds, which can be loaded via Files > Load Defaults. Or add feeds individually via Files > Add Feed.

## Deployment

To build vulture-feeds as a desktop app, run the script for the appropriate platform and, if all goes well, the app will be available in the release-builds folder. Initially, vulture-feeds relied on electron-packager. Currently, it also implements electron-builder, which can build for macOS as follows:

```
npm run dist
```

Or to also build for Windows and Linux:

```
npm run distw
```

See the package.json file for other scripts.

The default configuration includes the Developer Tools menu. To disable it, change process.env.NODE_ENV from 'development' setting to 'production' at the top of the main.js file.

```
process.env.NODE_ENV = 'production';
```

To sign vulture-feeds with an Apple Developer ID using electron-packager, replace dummy text below with the name of your Apple Developer ID Certificate, which should be visible in the macOS Keychain app. Run these commands in the directory with the app build (e.g., vulture-feeds-darwin-x64).

```
codesign --deep --force --verbose --sign "Developer ID Application: YOUR_DEV_ID (xxxxxxxxx)" vulture-feeds.app
codesign --verify -vvvv vulture-feeds.app
spctl -a -vvvv vulture-feeds.app
```
In electron-builder, this should not be necessary.

## Built With

* [Electron](https://electronjs.org/) - Cross-platform app framework
* [Dexie](https://dexie.org/) - IndexDB
* [Materialize](https://materializecss.com/) - HTML/CSS design

## Notes

* vulture-feeds depends upon [hnrss](https://edavis.github.io/hnrss/) to extend the Hacker News RSS feed. If that feed should become unavailable, the hnrss code (https://github.com/edavis/hnrss) will need to be deployed somewhere and the feed URL will need to be fixed in the app.

* Changes to the Dexie database schema may cause problems. If the app fails to store data or throws related errors, try deleting the IndexDB instance named 'urlDatabase' via (Chrome) Developer Tools -> Application -> Storage -> IndexDB. Or just select 'Delete Database' from the File menu.

## Authors

* **Thomas Claburn** - *Version 1.0.5* - [Dotnaught](https://github.com/Dotnaught)

## License

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

repository: Dotnaught/vulture-feeds

repo_name: Dotnaught/vulture-feeds


text:
Title: Animating using AnimatedContainer Flutter widget
Date: 2019-11-13 11:33PM
Authors: ptyagi
Category: Flutter
Tags: AnimatedContainer, cross-platform, flutter, code-recipes, android, android Studio, iOS, development
Summary: Code recipe for implementing AnimatedContainer Flutter widget.

## Introduction

`AnimatedContainer` widget is the animated version of the `Container` widget.

In this article, we'll see how `AnimatedContainer` widget is used to animate an image in it. We'll observe animation behavior for various types of [curves](https://api.flutter.dev/flutter/animation/Curves-class.html).

**Target Audience:** Beginner

**Recipe:** Animating a container widget using `AnimatedContainer` widget.

**Focus Widget:** `AnimatedContainer`

**Goal:** Animate an image inside `AnimatedContainer` using various types given [AnimationCurves](https://gist.github.com/ptyagicodecamp/92f7ab72466b65a82da2c44f1c2fc262)

![code recipe demo]({attach}../../images/flutter/anim_container_1.jpg)

**AnimationCurves:**

![animation curves]({attach}../../images/flutter/anim_curves.jpg)

---

**Checkout YouTube video:**

<iframe width="560" height="315" src="https://www.youtube.com/embed/0NVLyjtWJqc" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

---

### Structure of `AnimatedContainer` widget

`AnimatedContainer` uses `duration` and `curve` properties to animate from previous values to new values of `width`, `height`, `color`, and `alignment`. `duration` value controls how long animation would take whereas `curve` property's value provides the type of animation [Curve](https://api.flutter.dev/flutter/animation/Curves-class.html)

```
AnimatedContainer(
        width: 100.0, //width of the container
        height: 100.0,
        color: Colors.blue,
        alignment: Alignment.center,
        duration: Duration(seconds: 2),
        curve: Curves.fastOutSlowIn,
        child: FlutterLogo(size: 75),
      ),
```

---

### Recipe's Code Structure ###

I'm using a drop down to choose the different type of `curve`. Animation curves used in this code recipe are available in the source code as well as [here](https://gist.github.com/ptyagicodecamp/92f7ab72466b65a82da2c44f1c2fc262).

`AnimatedContainer` needs to be implemented inside a `StatefulWidget` since its values are changed, and it provides animation while switching from old values to newer values.

`AnimationCurve dropDownValue` holds the current selection from the [AnimationCurves](https://gist.github.com/ptyagicodecamp/92f7ab72466b65a82da2c44f1c2fc262) drop down widget.

```
class AnimatedContainerDemo extends StatefulWidget {
  @override
  _AnimatedContainerDemoState createState() => _AnimatedContainerDemoState();
}

class _AnimatedContainerDemoState extends State<AnimatedContainerDemo> {
  AnimationCurve dropDownValue;
  bool selected = false;
  ...
}
```

Boolean `selected` keeps track of when `Animate` button is pressed or image is touched.

'Animate' button next to dropDown widget. It updates the value of `selected` as below:

```
Widget playAnimation(BuildContext context) {
  return RaisedButton(
    color: Colors.blueAccent,
    child: Text("Animate"),
    onPressed: () => setState(() {
      selected = !selected;
    }),
  );
}
```

---

### Implementing `AnimatedContainer` widget ###

`AnimatedContainer` is wrapped around `GestureDetector` to let user start animation by touch in addition to pressing 'Animate' button exclusively. User can choose one over another to start animation.

`AnimatedContainer` widget's default `width` is  200 and default `height` is 400, and its alignment is `topCenter`. When user presses 'Animate' button for a selected Curve type in dropDown widget, `width` updates to 400, `height` updated to 200, and its alignment changes to `center`. `AnimatedContainer` updates to new values with in `2` seconds as provided in `duration` attribute using current selection for `curve` property.

```
Widget animatedContainer(BuildContext context) {
  return GestureDetector(
    onTap: () {
      setState(() {
        selected = !selected;
      });
    },
    child: AnimatedContainer(
      width: selected ? 400.0 : 200.0,
      height: selected ? 200.0 : 400.0,
      alignment: selected ? Alignment.center : AlignmentDirectional.topCenter,
      duration: Duration(seconds: 2),
      curve: dropDownValue != null ? dropDownValue.curveCubic : Curves.linear,
      child: Image.asset('assets/images/sea.jpg'),
    ),
  );
}
```

I encourage you to Checkout the code below, and play around with different types of Curve animations to pick an animation that would work best for you.

---

### Source code repo ###

1. `AnimatedContainer` code recipe is available [here](https://github.com/ptyagicodecamp/flutter_cookbook/blob/animations/flutter_animations/flutter_animations/lib/animations/anim_container.dart)
2. Source code for all other animation code recipes is available [here](https://github.com/ptyagicodecamp/flutter_cookbook/tree/animations/flutter_animations/flutter_animations)

---

### References: ###

1. [AnimatedContainer](https://api.flutter.dev/flutter/widgets/AnimatedContainer-class.html)
2. [Animation Curves](https://api.flutter.dev/flutter/animation/Curves-class.html)

Happy cooking with Flutter :)

_Liked the article ?
Couldn't find a topic of your interest ? Please leave comments or [email<EMAIL_ADDRESS>about topics you would like me to write !
[BTW I love cupcakes and coffee both :)](https://www.paypal.me/pritya)_


text:
---
title: Why not Start, Right now.
summary: Lets go.
date: 2020-07-21
author: Emmett Naughton
tags:
  - Productivity
  - Web Development
  - Journey
  - Tech
---

![The Tweet](/_includes/assets/images/start/tweet.png)

### Don't Put off your Dreams

Its easy to make excuses. You are "Busy".

Here I am. Starting. This isn't the first time that I have tried to start, and it probably won't be my last.

#### Quick Questions

[what do you want to learn more about?](https://docs.google.com/forms/d/1kxt179aiqavctielbpi-9skuemgby9ql78vrpcvqmrw/prefill)

repository: enaughton/My-Blog

repo_name: enaughton/My-Blog


text:
---
layout: post
title: "Cyclomatic Complexity What?"
date: 2015-04-24T20:30:07+02:00
categories: programming
tags: [programming, code-quality]
---

A few days ago, as I was working on a _complex_ function, I got a warning from [PHPStorm][phpstorm] that the [cyclomatic complexity][complex] of that function had reached the stablished complexity level of 10. "This must be bad" - I thought, without a clue why.

So, what is this [cyclomatic complexity][complex] exactly?

If you already checked the links pointing to the wikipedia for the term, you can have a vague idea, or like me the first two times I checked **no idea at all**.

I would define it as:

Cyclomatic complexity is a measure of the quantity of different ways your code can execute. Complex code is difficult to maintain. That's bad.

Albert Camps

So the more ifs and loops your code has, the more _complex_ it is.

## How can I reduce the cyclomatic complexity?

Well, so we learnt that having a high cyclomatic complexity is **bad**. How to get rid of it?

And as you would _never imagine_ the anwer is: **refactoring**.

In this case, you usually can use the [extract method][extract] refactor. And extracting a few conditions and loops made the code much more readable.

So my code wasn't extremely bad after all.

What do you do to check the quality of your code? Is there any other metric that you use to check your code?

[complex]: http://en.wikipedia.org/wiki/Cyclomatic_complexity
[extract]: http://refactoring.com/catalog/extractMethod.html
[phpstorm]: https://www.jetbrains.com/phpstorm/

extension: markdown


text:
---
title: Tukwila Police deny records request for screenshots of dashcam video settings
date: '2016-08-29 15:04:00'
layout: post
---
Some government agencies live on the edge. In this case it's Tukwila PD. Not only do I think it's illegally destorying fail-safe/pre-event dashcam video but now it's denied a simple public records request not for video but the dashcam system's settings. The problem with denying requests is one request for one item cost the City of Shoreline over half a million dollars in daily pentailities for the requester and requester's attorneys. [Shoreline public-records case ends after 7 years](http://www.seattletimes.com/seattle-news/shoreline-public-records-case-ends-after-7-years/)

I sent the following request "This is a records request for every
agency I know of in Washington State using Coban dashcams. This is for
more research into
https://seattlepublicrecords.org/news/tim-clemans-proposal-for-retention-schedules-addressing-dashcamera-pre-event-fail-safe-video

I request a copy of every tab for the Coban in-car video unit
template(s) be emailed to me. Please screenshot the tabs and redact
them via Microsoft Paint.

" start DVMS, select Setup->in-car unit setup, select the template"
then screenshot each tab.

These tabs are writings related to the conduct of government retained
and used by the agencies and are reasonably locatable."

This was one email sent to each Washington agency I knew of with Coban video system.

The response was "The City is in receipt of your public records request received via email in the Office of the Tukwila Police Department on August 22, 2016.  In summary the request is for the Tukwila Police Department to copy every tab (by taking screen shots) in the Coban in car video unit template(s) and redact using Microsoft paint.

City staff members have reviewed your request and determined that no responsive records exist. In order to provide you with what you are requesting the City would have to collect information or organize data to create a record not existing at the time which is not required by the public records act.
This completes your public records request.  If you have any questions, please do not hesitate to contact me at<PHONE_NUMBER>.  Please respond via email to let us know that you received this satisfactorily.  Thank you."

The problem with the response is that the records act's definition of a public record is so broad that in my opinion my request is no doubt for existing records. I immediately filed a request stating "I then request the settings data from the SQL database. What I requested are loctable writtings. I believe the agency has violated the act." and then called the records officer for Tukwila PD. He was very nice. He promised to contact the Chief and an attorney about this.

While re-reading the KOMO verus Seattle Police dashcam videos case which is one of the few cases I know of dealing with requests for non-standard records, they asked for a list of videos, I came across "see also WAC 44–14–04001" It states "Agencies are encouraged to use technology to provide public records more quickly and, if possible, less expensively. An agency is allowed, of course, to do more for the requestor than is required by the letter of the act. Doing so often saves the agency time and money in the long run, improves relations with the public, and prevents litigation." So even if TPD is right by honoring the request it could prevent time/money/litigation. It now has to deal with a very technical request for "settings data from the SQL database." We went from a very easy thing to Google, how to screenshot, to now you need to ask IT to export data which requires calling Coban to figure out which tables and rows to export.

Below is my appeal:
"Formal records appeal:

(1) I request to inspect the tabs. I stay at my girlfriends house
nearby the police department several days a week. I could inspect the
records right now. (2) I believe the agency needs to comply with the
law. Here's my appeal.

I sent the following request "This is a records request for every
agency I know of in Washington State using Coban dashcams. This is for
more research into
https://seattlepublicrecords.org/news/tim-clemans-proposal-for-retention-schedules-addressing-dashcamera-pre-event-fail-safe-video

I request a copy of every tab for the Coban in-car video unit
template(s) be emailed to me. Please screenshot the tabs and redact
them via Microsoft Paint.

" start DVMS, select Setup->in-car unit setup, select the template"
then screenshot each tab.

These tabs are writings related to the conduct of government retained
and used by the agencies and are reasonably locatable."

The agency responded:

"City staff members have reviewed your request and determined that no
responsive records exist. In order to provide you with what you are
requesting the City would have to collect information or organize data
to create a record not existing at the time which is not required by
the public records act."

The definition of a record is extremely broad:
""Public record" includes any writing containing information relating
to the conduct of government or the performance of any governmental or
proprietary function prepared, owned, used, or retained by any state
or local agency regardless of physical form or characteristics. For
the office of the secretary of the senate and the office of the chief
clerk of the house of representatives, public records means
legislative records as defined in RCW40.14.100 and also means the
following: All budget and financial records; personnel leave, travel,
and payroll records; records of legislative sessions; reports
submitted to the legislature; and any other record designated a public
record by any official action of the senate or the house of
representatives.
(4) "Writing" means handwriting, typewriting, printing, photostating,
photographing, and every other means of recording any form of
communication or representation including, but not limited to,
letters, words, pictures, sounds, or symbols, or combination thereof,
and all papers, maps, magnetic or paper tapes, photographic films and
prints, motion picture, film and video recordings, magnetic or punched
cards, discs, drums, diskettes, sound recordings, and other documents
including existing data compilations from which information may be
obtained or translated."

The settings tabs are: "other documents including existing data
compilations from which information may be obtained or translated." I
am not asking for new information to be created. I am requesting
existing writings. Screenshotting is the electronic version of
photo-copying.

The state supreme court has dealt with this issue
http://caselaw.findlaw.com/wa-supreme-court/1669869.html:
"SPD contends that Vedder was asking it to create a new record. This
is clearly true to some extent; producing a document that would
correlate all of the information Vedder requested would have required
mining data from two distinct systems and creating a new document.
This is more than the PRA requires. Citizens for Fair Share v. Dep ‘t
of Corrections, 117 Wash.App. 411, 435, 72 P.3d 206 (2003) (citing
Smith v. Okanogan County, 100 Wash.App. 7, 13–14, 994 P.2d 857
(2000)). However, as SPD's later response to Rachner demonstrated, it
did have the capacity to produce a partially responsive record at the
time it denied her request. It should have done so.

¶ 18 We recognize that neither the PRA itself nor our case law have
clearly defined the difference between creation and production of
public records, likely because this question did not arise before the
widespread use of electronically stored data. Given the way public
records are now stored (and, in many cases, initially generated),
there will not always be a simple dichotomy between producing an
existing record and creating a new one. But “public record” is broadly
defined and includes “existing data compilations from which
information may be obtained” “regardless of physical form or
characteristics.” RCW 42.56.010(4), (3). This broad definition
includes electronic information in a database. Id.; see also WAC
44–14–04001. Merely because information is in a database designed for
a different purpose does not exempt it from disclosure. Nor does it
necessarily make the production of information a creation of a record.

¶ 19 Whether a particular public records request asks an agency to
produce or create a record will likely often turn on the specific
facts of the case and thus may not always be resolved at summary
judgment. But for SPD's response to Rachner's request, this might well
have been such a case. However, the uncontroverted evidence presented
showed that a partially responsive response could have been produced
at the time of the original denial. The failure to do so violated the
PRA."

Again I'm only asking for existing writings. This is really no
different then asking for a copy of three pages out of a book.

I'm extremely bothered by the denial. I am investigating what I
believe is illegal destruction of Coban pre-event/failsafe video. I
need to know the exact settings the agency has set for the dashcam
system. These settings are recorded as electronic writings stored in a
SQL database and viewable by non technical folks via a software
program called Coban back office."


text:
### Setting up the integration
* __Server URL__: Elasticsearch database URL.
* __Trust any certificate (not secure)__: Ignore HTTPS certificates.
* __Use system proxy settings__: Enable/Disable
* __Fetch indicators__: Enable/Disable
* __First Fetch Time__: Determine how far to look back for fetched indicators (<number> <time unit>, e.g., 12 hours, 7 days).
* __Indicator Reputation__: Indicators from this integration instance will be marked with this reputation.
* __Source Reliability__: Reliability of the source providing the intelligence data.
* __Indicator Value Field__: Source field that contains the indicator value in the index.
* __Indicator Type Field__: Source field that contains the indicator type in the index.
* __Indicator Type__: Default indicator type used in case no "Indicator Type Field" was provided.
* __Index From Which To Fetch Indicators__: A comma-separated list of indexes. If empty, searches all indexes.
* __Time Field Type__: Time field type used in the database.
* __Index Time Field__: Used for sorting sort and limiting data. If left empty, no sorting is applied.
* __Query__: Elasticsearch query to execute when fetching indicators from Elasticsearch.

#### Authentication
* __Name__: Used for authentication via Username + Password or API ID + API Key (If you wish to use API Key authorization enter **_api_key_id:** followed by your API key ID).
* __Password__: Used for authentication via Username + Password or API ID + API Key (If you wish to use API Key authorization enter your API key).]()

If you wish to use API Key authorization, please enter into the **Password** field your API key, and into the **Name** parameter **_api_key_id:** followed by your API key ID.
For example, for API Key with ID: _VuaCfGcBCdbkQm-e5aOx_ and key value: _ui2lp2axTNmsyakw9tvNnw_ you'll need to enter into name **_api_key_id:VuaCfGcBCdbkQm-e5aOx** and into password you'll need to enter the value: **ui2lp2axTNmsyakw9tvNnw**. For more info about API Key management see: https://www.elastic.co/guide/en/elasticsearch/reference/7.6/security-api-create-api-key.html

#### Feed Type
Fetch indicators stored in an Elasticsearch database.
1. The Cortex XSOAR Feed contains system indicators saved in an Elasticsearch index.
2. The Cortex XSOAR MT Shared Feed contains indicators shared by a tenant account in a multi-tenant environment.
3. The Generic Feed contains a feed in a format specified by the user.

repository: demisto/content

gha_language: Python

repo_name: demisto/content


text:
Bigfoot ![Build Status](https://circleci.com/gh/c2is/Bigfoot/tree/master.png?circle-token=61d6f6e7bde0901f2923a458cc91e97cf0520e7c)
=======

The Bigfoot administration interface.
Demo application using Bigfoot bundles to setup a BackOffice application. Based on symfony2 and symfony/symfony-standard.

Installation
------------

Clone this project :

    git clone git@github.com:c2is/Bigfoot.git your_project

Install dependencies using composer :

    cd your_project
    curl -sS https://getcomposer.org/installer | php
    php composer.phar install

**If you didn't set it up during the composer install**, setup your database through the Symfony standard distribution configuration web interface :

    /app_dev.php/_configurator/step/0

If you're using a database you didn't previously create, Doctrine can do it for you (this is a safe command you can use even if the database already exists) :

    ./app/console doctrine:database:create

Load the schema and the fixtures :

    ./app/console doctrine:schema:update --force
    ./app/console doctrine:fixtures:load

Set permissions on cache and logs directories

    sudo setfacl -R -m u:www-data:rwx -m u:`whoami`:rwx app/cache/
    sudo setfacl -dR -m u:www-data:rwx -m u:`whoami`:rwx app/cache/
    sudo setfacl -R -m u:www-data:rwx -m u:`whoami`:rwx app/logs/
    sudo setfacl -dR -m u:www-data:rwx -m u:`whoami`:rwx app/logs/

On Macosx rather do this way

    sudo chmod -R +a "`whoami` allow delete,write,append,file_inherit,directory_inherit" app/cache/
    sudo chmod -R +a "`whoami` allow delete,write,append,file_inherit,directory_inherit" app/logs/
    sudo chmod -R +a "_www allow delete,write,append,file_inherit,directory_inherit" app/cache/
    sudo chmod -R +a "_www allow delete,write,append,file_inherit,directory_inherit" app/logs/

Usage
-----

The Bigfoot administration interface is accessed in its specific environment named admin. It means the entry point is the admin.php file (or admin_dev.php for the debug mode), and the configuration is handled in the _admin suffixed files.
The configuration setup looks like :

- app
    - config
        - common.yml : contains configuration options used by both the front and back offices
        - config.yml : contains configuration options for the front office
        - config_admin.yml : contains configuration options for the back office
        - routing.yml : contains routing configuration for both the front office and back office
        - routing_admin.yml : contains routing configuration for the front office

Default configuration only includes the administration interface routes in the admin environment.
The administration interface is then available at :

    http://localhost/admin(_dev).php/admin/

Bigfoot comes with the SEO and User plugins.
By default, an authentication is required to access (if you loaded the bundled fixtures, you can use the admin / admin account).
Feel free to change the authentication configuration in app/Resources/config/security.yml to fit your needs, though be advised that the BigfootUserBundle features won't be usable if your User class doesn't extend the Bigfoot\Bundle\UserBundle\Model\BigfootUser class.

You should create a new admin user and delete the one loaded with the BigfootUserBundle fixtures if your application is accessible from the outside.

You can comment the content of the app/Resources/config/security.yml file to disable the authentication on the application.

Assetic
-------

Bigfoot assets are not in the usual public/ directory under Resources/ ; they are not installed properly with an assets:install. To install the administration interface assets, please use :

    ./app/console bigfoot:theme:install (--symlink)

This command installs bigfoot assets and also executes the usual assets:install command. If executed with the symlink option, assets will be installed via a symbolic link (instead of hard copy), which is recommended during development (no need to assets:install everytime a css / js file is changed).

Bigfoot assets are loaded via Assetic and are gitignored. To have the admin interface display properly in production environment, you first must dump the assets with :

    ./app/console assetic:dump --env=admin

Documentation
-------

[Read the dedicated Github pages website](http://c2is.github.io/BigfootDoc/html/en/).

gha_language: PHP


text:
# Plethora [![Build Status](https://travis-ci.org/SquidDev-CC/plethora.svg?branch=minecraft-1.8.9)](https://travis-ci.org/SquidDev-CC/plethora)

Plethora is a ComputerCraft peripheral provider for Minecraft 1.8.9+. It aims to provide both metadata and peripherals
for vanilla Minecraft and most mainstream mods.

Plethora also adds a series of "modules" to the game. These modules can be used by the player with varying success.
They really come in to their element when put in a manipulator, providing a series of methods which allow
interacting with your environment. This includes:
 - Introspection: investigating the current player's inventory (and ender chest)
 - Scanner: scans blocks in an area, gathering metadata about them and allowing wrapping peripherals remotely
 - Sensor: scans entities in an area. Like the scanner this allows getting metadata and wrapping them as peripherals.
 - Frickin' laser beam. It fires lasers.

 Plethora provides a neural
interface which can be attached to your head, or some unsuspecting animal or monster. Right clicking the entity with a
neural controller allows you to interact with it. You can insert modules (which will be wrapped as peripherals) and
manipulate them with the built-in computer. Building a cyborg army has never been so easy.

You can also add a kinetic augment to the neural interface. This allows controlling the host entity in various ways.

## Requirements
 - Minecraft with recent version of Forge
 - [ComputerCraft](http://minecraft.curseforge.com/projects/computercraft)

## Documentation
There is pretty comprehensive documentation on [the Plethora website](https://squiddev-cc.github.io/plethora/). This
contains tutorials, explanations of several fundamental concepts and thoroughly explained examples.

You can also create a HTML dump of all methods by running the command `\plethora dump out.html`. When run in a single
player world this will save a file in the active directory (normally `.minecraft` or your modpack's folder). This
documentation is also [available online](http://squiddev-cc.github.io/plethora/methods.html).

## Images
![](https://squiddev-cc.github.io/plethora/images/squids-laser.png)

> You know, I have one simple request. And that is to have ~~sharks~~ squid with frickin' laser beams attached to their heads!

![](https://squiddev-cc.github.io/plethora/images/modules.png)

> Various modules available

branch_name: HEAD


text:
\
提防化學氣體：用塑料薄膜組成3*3*3以上空間，睡前提前把安全的空氣收集起來。\
提防超聲波：用防噪音的塞子塞進耳朵。\
提防微波：用鋁箔紙（超市有賣，燒烤用的，自己可以實驗下，包住食物放入微波爐食物沒法加熱）做成可容身的密閉空間。\
twitter @brianwchh。祝各位平安。\

#
#

## something about China

More & more companies & individuals are becoming indifferent to what the Chinese people has been suffering from the Chinese Government(represened by CCP so far ),because of the fear for the career suicide disaster ! The powerful red empire has been reaching out its dirty censorship into your & children's hearts & brains . Human lose far more in the long term for trading with red devil for short term candy ! Your children and their children will have to swallow what you have sown for them. Things happening in HongKong proves that !
#######
Please spare just a few seconds to take a closely look at what has been happening to HongKong people, the number of yong people committing suicide is strangely high during recent months ! not to mention the way they commit suicide is extremely strange ! a 15 year old missing girl recently was found dead in the sea recently, naked !  when police beome the suspect of muder,it is desparately hard for peple to find the truth ! you may easily find a evidence that shows how many people & how they have been killed by hitler or soviet union, but it is becoming much harder for you to find one for the Chinese Communist Party !

##### band in China
https://southpark.cc.com/full-episodes/s23e02-band-in-china
##### SHOTS, Fuck the Chinese Government !
https://southpark.cc.com/full-episodes/s23e03-shots

#### a beatiful song 鄧麗君《中華民國頌》 https://youtu.be/SuCMUFsOKco   God gives each generation their mission, fighting for democracy for china is ours !!!
https://github.com/brianwchh/decentrialized-social-networking-software-system_1
#####
https://github.com/brianwchh/grassrootsstartup


text:
# Project file syntax

## Project metadata

PDM reads the project's metadata following the standardized format of [PEP 621](https://www.python.org/dev/peps/pep-0621/).
View the PEP for the detailed specification.

_In the following part of this document, metadata should be written under `[project]` table if not given explicitly._

## Determine the package version dynamically

You can specify a file source for `version` field like: `version = {from = "pdm/__init__.py"}`, in this form,
the version will be read from the `__version__` variable in that file.

PDM can also read version from SCM tags. If you are using git or hg as the version control system, define the
`version` as follows:

```toml
version = {use_scm = true}
```

In either case, you MUST also include `version` in `dynamic` field, or the backend will raise an error:

```toml
dynamic = ["version"]
```

## Include and exclude package files

The way of specifying include and exclude files are simple, they are given as a list of glob patterns:

```toml
includes = [
    "**/*.json",
    "mypackage/",
]
excludes = [
    "mypackage/_temp/*"
]
```

If neither `includes` or `excludes` is given, PDM is also smart enough to include top level packages and all data files in them.
Packages can also lie in `src` directory that PDM can find it.

## Select another package directory to look for packages

Similar to `setuptools`' `package_dir` setting, one can specify another package directory, such as `src`, in `pyproject.toml` easily:

```toml
package-dir = "src"
```

If no package directory is given, PDM can also recognize `src` as the `package-dir` implicitly if:

1. `src/__init__.py` doesn't exist, meaning it is not a valid Python package, and
2. There exist some packages under `src/*`.

## Implicit namespace packages

As specified in [PEP 420](https://www.python.org/dev/peps/pep-0420), a directory will be recognized as a namespace package if:

1. `<package>/__init__.py` doesn't exist, and
2. There exist normal packages and/or other namespace packages under `<package>/*`, and
2. `<package>` is not specified as `package-dir`

## Dependency specification

The `project.dependencies` is an array of dependency specification strings following the [PEP 440](https://www.python.org/dev/peps/pep-0440/)
and [PEP 508](https://www.python.org/dev/peps/pep-0508/).

Examples:

```toml
dependencies = [
    # Named requirement
    "requests",
    # Named requirement with version specifier
    "flask >= 1.1.0",
    # Requirement with environment marker
    "pywin32; sys_platform == 'win32'",
    # URL requirement
    "pip<EMAIL_ADDRESS>]
```

### Editable requirement

Beside of the normal dependency specifications, one can also have some packages installed in editable mode. The editable specification string format
is the same as [Pip's editable install mode](https://pip.pypa.io/en/stable/reference/pip_install/#editable-installs).

Examples:

```
dependencies = [
    ...,
    "-e path/to/SomeProject",
    "-e git+http://repo/my_project.git#egg=SomeProject"
]
```

!!! note "About editable installation"
    One can have editable installation and normal installation for the same package. The one that comes at last wins.
    However, editable dependencies WON'T be included in the metadata of the built artifacts since they are not valid
    PEP 508 strings. They only exist for development purpose.

### Optional dependencies

You can have some requirements optional, which is similar to `setuptools`' `extras_require` parameter.

```toml
[project.optional-dependencies]
socks = [ 'PySocks >= 1.5.6, != 1.5.7, < 2' ]
tests = [
  'ddt >= 1.2.2, < 2',
  'pytest < 6',
  'mock >= 1.0.1, < 4; python_version < "3.4"',
]
```

To install a group of optional dependencies:

```bash
$ pdm install -s socks
```

`-s` option can be given multiple times to include more than one groups.

### Development dependencies

You can have some development only dependencies, which is the same as `package.json`'s `dev-dependencies` field:

```toml
[project]

dev-dependencies = [
    "pytest",
    "flake8",
    "black"
]
```

To install all of them:

```bash
$ pdm install -d
```

## Console scripts

The following content:

```toml
[project.scripts]
mycli = "mycli.__main__:main"
```

will be translated to `setuptools` style:

```python
entry_points = {
    'console_scripts': [
        'mycli=mycli.__main__:main'
    ]
}
```

Also, `[project.gui-scripts]` will be translated to `gui_scripts` entry points group in `setuptools` style.

## Entry points

Other types of entry points are given by `[project.entry-points.<type>]` section, with the same
format of `[project.scripts]`:

```toml
[project.entry-points.pytest11]
myplugin = "mypackage.plugin:pytest_plugin"
```

## Build C extensions

Currently, building C extensions still relies on `setuptools`. You should write a python script which contains
a function named `build` and accepts the parameter dictionary of `setup()` as the only argument.
Update the dictionary with your `ext_modules` settings in the function.

Here is an example taken from `MarkupSafe`:

```python
# build.py
from setuptools import Extension

ext_modules = [Extension("markupsafe._speedups", ["src/markupsafe/_speedups.c"])]

def build(setup_kwargs):
    setup_kwargs.update(ext_modules=ext_modules)
```

Now, specify the build script path via `build` in the `pyproject.toml`:

```toml
# pyproject.toml
[project]
build = "build.py"
```

repository: dmitry-shibanov/pdm

repo_name: dmitry-shibanov/pdm


text:
# Microsoft Graph API Connect Sample for Python

Connecting to Office 365 is the first step every app must take to start working
with Office 365 services and data. This sample shows how to connect and then
call one API through the Microsoft Graph API (previously called Office 365
unified API), and uses the Office Fabric UI to create an Office 365 experience.

<img src="./README assets/screenshot.PNG" alt="Python Connect sample screenshot" />

## Prerequisites

To use the Microsoft Graph API Connect sample for Python, you need the following:
* [Python 3.5.2](https://www.python.org/downloads/)
* [Flask-OAuthlib](https://github.com/lepture/flask-oauthlib)
* [Flask-Script 0.4](http://flask-script.readthedocs.io/en/latest/)
* [Requests module](http://docs.python-requests.org/en/latest/)
* A [Microsoft account](https://www.outlook.com/) or an [Office 365 for business account](https://msdn.microsoft.com/en-us/office/office365/howto/setup-development-environment#bk_Office365Account)

> Note: Microsoft has tested the [Flask-OAuthlib](https://github.com/lepture/flask-oauthlib) library in basic scenarios and confirmed that it works with the v2.0 endpoint. Microsoft does not provide fixes for this library and has not done a review of it. Issues and feature requests should be directed to the library’s open-source project.
##


text:
# 1. About SpicePy
**SpicePy** is a name coming from the merge of **SPICE** (*Simulation Program with Integrated Circuit Emphasis*) and **Python**, hence, it goes without saying that it is a _Circuit simulator written in python_

**SpicePy** borns as a teaching project. It is shared with students of *basic circuit theory* with two aims:

* to allow them to check the results of exercises solved analytically
* to show them how a numerical code to solve circuit is made

This document provides information basic about features and installation procedure. For the user's guide please refer to the [Wiki section](https://github.com/giaccone/SpicePy/wiki).

##  1.1 What can I do with SpicePy?
SpicePy allows you to simulate
1. linear circuits
    * operating point
    * transient simulation
    * alternating current simulation
2. the following components:
    * resistor
    * capacitor
    * inductor
    * independent voltage source
    * independent current source
    * dependent sources (`VCVS`, `VCCS`, `CCVS`, `CCCS`)
3. transient sources (`pwl`, `pulse`, `sin`, `exp`)

# 2. Installation

This project is based on Python 3 (version `>= 3.6` is constrained in the setup). I'm use to run this project on the latest version provided by [miniconda](hnttps://docs.conda.io/en/latest/miniconda.html). For the sake of completeness, Python 2 is **not** supported.

The project makes use of the following Python modules:
* `numpy`
* `scipy`
* `matplotlib`

Usually, the last version of these Python modules is the one under use.

In the following three options for the installation are described.

## 2.1 Install from Pypi
Run this command (optionally, you can activate you virtual environment first):
```
pip install spicepy
```

## 2.2 Install (manually) from GitHub
1. Clone the repository:

`git clone https://github.com/giaccone/SpicePy.git`

2. put the project in the desired location
3. add SpicePy folder to the path of your interpreter

## 2.3 Install within Google Colab
1. Open a notebook in [`google colab`](https://colab.research.google.com/)
2. install `spicepy` with

```
!pip install spicepy    # please note the exclamation mark before 'pip'
```

3. now you can use `spicepy` within the notebook

# 3. Verify the installation
* Download the [benchmark](https://github.com/giaccone/SpicePy/tree/master/benchmark) and the [demo](https://github.com/giaccone/SpicePy/tree/master/demo) folder from the [GitHub project](https://github.com/giaccone/SpicePy),
* put the two folder at the same location,
* enter the `benchmark` folder and run the script `run_benckmark.py`.

If everything is configured correctly, you will obtain the following results:

# 4. Work in progress

Here you can read about aspects that I'm thinking to include in this project. The list does not certifies that I will integrate all it is described. It's a simple list of the topics that potentially will be developed.

* **non-linearity**: I'm planning to implement a non-linear solver based on Newthon-Rapshon method. A rough implementation already exists but it is far from be harmonized to the entire project. Since I prefer *stability* over *new features* I will include non-linearity when I will have some more (free) time that currently I do not have.
* **GUI**: a small project was developed in order to create a text editor with tools to write netlists and with SpicePy integrated. But It is not sufficiently stable.

repository: giaccone/SpicePy

repo_name: giaccone/SpicePy


text:
# About

Injects an interactive price histogram filter for Craigslist searches.

![Craigslist Price Histogram Screenshot](screenshot.png?raw=true)

## Why

While searching for goods, housing, etc. on Craigslist it can be difficult to
understand what the market looks like. This extension gives valueable insight in
the price distribution of the market for a given product.

## Installing

First clone the repo and install the dependencies with `yarn install` or `npm install`:

```sh
git clone git@github.com:jappareti/craigslist-price-histogram.git
cd craigslist-price-histogram
yarn install
```

To build for development and watch for changes, run:

```sh
yarn run dev
```

Add the build folder `./dist` to Google Chrome:

- In Chrome, navigate to `chrome://extensions`
- Make sure **Developer Mode** is toggled on in the top right.
- Click on **Load unpacked**
- Navigate to the `craigslist-price-histogram` folder on your computer
- Select the `dist` folder

Now, navigate to your local craigslist website and run a search query. For
example, here's a search page for all of the 1 bedroom apartments available in
San Francisco:

[https://sfbay.craigslist.org/search/apa?search_distance=4&postal=94117&min_bedrooms=1&max_bedrooms=1&availabilityMode=0&sale_date=all+dates](https://sfbay.craigslist.org/search/apa?search_distance=4&postal=94117&min_bedrooms=1&max_bedrooms=1&availabilityMode=0&sale_date=all+dates)

To build for production and deployment, run:

```sh
yarn run prod
```

## Issues

- Sometimes the first time you click "Create Price Graph" it gets stuck on
  loading. If this happens, try refreshing the page. I'm working on a fix for
  this.
- How to handle outliers. Sometimes the poster mis-types the price which throws
  off the distribution. For instance, one time I found a 1 bedroom apartment
  available for $24,909, but what they probably meant was $2,499
- How to handle duplicates. The duplicate listings skew the histogram because
  they add duplicate data. Ideally the data from CL would be
  duplicate-free, but that's rarely the case. Fixing this would involve
  duplicate-detection and removing them from the price list that is used to
  build the histogram.

repository: jappareti/craigslist-price-histogram

repo_name: jappareti/craigslist-price-histogram


text:
# Big Data Pipeline For General Purpose Corpus Translation

This document is designed to understand the Big Data pipeline that is built for the multiple use cases under Anuvaad project.
This should be read in parallel with the code under `project-anuvaad/data-pipeline` repository. Together, these constitute what we consider to be a scalable and automated solution to writing amd scheduling ETL jobs using Apache Spark (PySpark) and Airflow. This project includes the following :

- Core ETL processing using PySpark
- The ML based workflow using Airflow
- Default configuration for the translation pipeline

## ETL Project Structure

The project structure is as follows:

```bash
root/
 |-- configs/
 |   |-- config.yml
 |-- airflow-scripts/
 |   |-- anuvaad_airflow.py
 |-- spark-scripts/
 |   |-- anuvaad_tool_1_sentence_extractor.py/
 |   |-- anuvaad_tool_1_token_extractor.py/
 |-- dependencies/
 |   |-- ...
```

The workflow related scripts go under the 'airflow-scripts' directory.

The core ETL scripts go under 'spark-scripts' and the default configs are available under 'configs' directory.

Place the required dependencies under 'dependencies' directory.

## Fitting Anuvaad to the BigData Ecosystem

![Import UI](/screenshots/anuvaad_bigdata_pipeline.png?raw=true)
#### Data Acquisition :
Data is ingested into the system using web-scraping or some other means. The data lands in any external server (that interacts outside the network). This is done for security purposes. The frequency of ingestion could be daily or hourly (depending on the needs). Currently based on the requirements, real time ingestion might not be required. This data is then loaded into HDFS/Cloud Storage.

#### Data pre-processing  :
Extract and pre-process data from HDFS to prepare the training data. This is done with the help of Tool 1 and Tool 2, which will be used for generation of tokens.

#### Data Transformation :
Data is then transformed into a format, which can be understood by the Model training system. This is achieved by the use of Tool 3, where in the parallel sentences are generated.

#### Model Training :
We will feed the transformed parallel sentences (General/Judicial) to the Model training system, and capture the output.

#### Running the Model :
Using the trained model, get inferences on the test dataset stored in HDFS/Cloud Storage.

#### Model Evaluation :
Analyze the model performance, based on the predicted results on test data.

## Anuvaad Data Pipeline Considerations
#### Scalability :
With the ever increasing volume of data, the respective pipelines and their data stores will need to be able to massively autoscale to accommodate future load and velocity. This includes the ability to modularize and add components (via containers or VMs, which can be toggled on and off as necessary).

#### Data Distribution :
This allows many clients to have access to data and supports operations (create, delete, modify, read, write) on that data. Each data file may be partitioned into several parts called chunks. Each chunk may be stored on different nodes, facilitating the parallel execution of applications.

#### Parallel Processing :
This is needed for performing large computations by dividing the workload between more than one nodes/executors.

#### Performance :
This factor Involves
Cost Reduction for storage & processing of data.
Better turn around time for the translation.

#### Fault Tolerance :
System should continue to provide correct performance of its specified tasks in presence of failure. This is required at every level (Storage, Processing, etc)
Storage : fault tolerance is achieved through data replication (in turn increasing data availability).
Processing : fault tolerance is achieved through failover mechanism

#### Visualization :
Though a convenient feature, Visualization needs to be an integral part of Anuvaad for (and not limited to) the following reasons :
Review the quality of the translated text visually.
Spotting the trends for failed tokens

## Tech Stack
The proposed tech stack for the Anuvaad pipeline for in-house processing is shown below :
![Import UI](/screenshots/anuvaad_tech_stack.png?raw=true)
This may slightly differ if adopted for Cloud based platform, like AWS, GCP, or Azure.

## Airflow - ML pipeline
Sample run of the Airflow workflow is shown below :
![Import UI](/screenshots/anuvaad_airflow_workflow.png?raw=true)

repository: project-anuvaad/data-pipeline

repo_name: project-anuvaad/data-pipeline


text:
# THIS PROJECT IS DEPRECATED

This project was in use long time ago while [Koldy Framework](https://github.com/vkoudela/koldy-php-framework) v1 was current version. Do not use
this for any of your projects. Instead, use new framework version from (https://github.com/koldy/framework). You can find more
info on [koldy.net](https://koldy.net).

## Koldy PHP Framework

Koldy is PHP framework built for developers who wants to build web easy, fast, scalable and secure.

My target is to have PHP framework which is simple, easy, fast, well documented and based on MVC standards and I hope I'll make it even better.

Docs are on [http://koldy.net/docs](http://koldy.net/docs).

## Licence
Open sourced and published under [MIT licence](http://opensource.org/licenses/MIT).

repository: vkoudela/koldy-php-framework

repo_name: vkoudela/koldy-php-framework


text:
---
layout: text/textblock
---
Don't just use text only. Images can help improve your SEO. Search engines reward the use of consistent, relevant visual formats to support text. This in turn also improves the user experience.

You'll find more guidance on SEO and images in the [DTA Content Guide](https://guides.service.gov.au/content-guide/search-engines/#on-page-optimisation) including use of ALT tags and captions.

repository: govau/service-manual

repo_name: govau/service-manual


text:
# Aggregator-k8s
Kubernetes/Helm configs for Aggregator

**Do note that this is a Beta version**

This Helm project is created to setup ReportPortal with only one commando.
The help chart is tested on Minikube and creates a fully working ReportPortal project

The chart installs all mandatory services to run ReportPortal

The Helm chart installation consist of the following .yaml files:

- Statefulset and Service files of: `Aggregator` that are used for deployment and communication between services.
- A `Ingress` to access the EndPoint
- A `values.yaml` which exposes a few of the configuration options in the
charts.
- A `templates/_helpers.tpl` file which contains helper templates.

Start to minikube with options:
- `minikube start`

Installation of ingress plugin:
- `minikube addons enable ingress`

For deploy Helm Chart, need to initialization Helm:
- `helm init`

You can deploy this chart with `helm install ./<project folder>`.

Once it's installed please make sure that the PersistentVolumes directories are created

The url to reach ReportPortal is http://status.reportportal.io
Make sure that the url is added in the host file and the ip is the K8 ip address
Commando to get ip adress of minikube:
- `minikube ip`

The url to reach ReportPortal is http://reportportal.k8.com
Make sure that the url is added in the host file and the ip is the K8 ip address
Example:
- `<IP_ADDRESS>	status.reportportal.io`

Variables is presents in value.yml. Report Portal use next images in variables:

- PORT:
- TWITTER_CONSUMER:
- TWITTER_CONSUMER_SECRET:
- TWITTER_TOKEN:
- TWITTER_TOKEN_SECRET:
- TWITTER_BUFFER_SIZE:
- TWITTER_SEARCH_TERM:
- GITHUB_INCLUDE_BETA:
- GITHUB_TOKEN:
- GOOGLE_API_KEY

repository: reportportal/kubernetes

branch_name: refs/heads/develop

gha_language: Mustache

repo_name: reportportal/kubernetes


text:
## [1.3.1](https://github.com/Airfooox/cron-validate/compare/v1.3.0...v1.3.1) (2020-08-21)

### Bug Fixes

* fix wrong wildcard ('*') check with lower-/upperLimit ([df8b6f2](https://github.com/Airfooox/cron-validate/commit/df8b6f2be19a803d8927e6b25dd71875b5bc262a))

# [1.3.0](https://github.com/Airfooox/cron-validate/compare/v1.2.0...v1.3.0) (2020-08-14)

### Bug Fixes

* try to fix default export ([3a66f3f](https://github.com/Airfooox/cron-validate/commit/3a66f3f8998f58537341bb8233ceb2086c86a9d5))
* **deps:** update dependency yup to v0.29.3 ([#94](https://github.com/Airfooox/cron-validate/issues/94)) ([0080c06](https://github.com/Airfooox/cron-validate/commit/0080c06a1baaf68d591763aa76ca6e55e412ef60))

### Features

* Add support for alias ([#85](https://github.com/Airfooox/cron-validate/issues/85)) ([5193dd8](https://github.com/Airfooox/cron-validate/commit/5193dd8eb5f2ef30040d2edca2614e9fbc0c5364))

# [1.2.0](https://github.com/Airfooox/cron-validate/compare/v1.1.5...v1.2.0) (2020-07-29)

### Bug Fixes

* **deps:** update dependency yup to v0.29.2 ([#87](https://github.com/Airfooox/cron-validate/issues/87)) ([cb8cdfe](https://github.com/Airfooox/cron-validate/commit/cb8cdfe67e99f652e0afc924a76d55e3b51cb1a3))
* add explicit return types to avoid Result<unknown, ...> ([#78](https://github.com/Airfooox/cron-validate/issues/78)) ([177e301](https://github.com/Airfooox/cron-validate/commit/177e30140cad37e70fdd05e38080ecffddc9b6f9))

### Features

* Extending AWS Preset wildcards and checks. ([#80](https://github.com/Airfooox/cron-validate/issues/80)) ([a7baca0](https://github.com/Airfooox/cron-validate/commit/a7baca034af13624c314351eb89fe38dadf9c950))

## [1.1.5](https://github.com/Airfooox/cron-validate/compare/v1.1.4...v1.1.5) (2020-07-14)

### Bug Fixes

* fix require().default for non-es modules ([2b0eb95](https://github.com/Airfooox/cron-validate/commit/2b0eb9523d66c168e7de00a298a87541796bda0c)), closes [#69](https://github.com/Airfooox/cron-validate/issues/69)

## [1.1.4](https://github.com/Airfooox/cron-validate/compare/v1.1.3...v1.1.4) (2020-05-31)

### Bug Fixes

* **deps:** update dependency yup to v0.29.1 ([58eab14](https://github.com/Airfooox/cron-validate/commit/58eab14b1e66553af3f4a5e1183ccffe75e677f2))

## [1.1.3](https://github.com/Airfooox/cron-validate/compare/v1.1.2...v1.1.3) (2020-05-20)

### Bug Fixes

* fixed missing required fields in yup schema ([6ba1270](https://github.com/Airfooox/cron-validate/commit/6ba1270a6c9bd40936f6886df82757bf098ae004))
* **deps:** update dependency yup to v0.29.0 ([1bfcbc6](https://github.com/Airfooox/cron-validate/commit/1bfcbc692c193b0cd614dae3eb165f510fff6aab))

## [1.1.2](https://github.com/Airfooox/cron-validate/compare/v1.1.1...v1.1.2) (2020-05-01)

### Bug Fixes

* **deps:** update dependency yup to v0.28.5 ([27c6068](https://github.com/Airfooox/cron-validate/commit/27c60680cebe7b75d3bfb0c238dc59083f9d198b))

## [1.1.1](https://github.com/Airfooox/cron-validate/compare/v1.1.0...v1.1.1) (2020-04-27)

### Bug Fixes

* **deps:** update dependency yup to v0.28.4 ([de60998](https://github.com/Airfooox/cron-validate/commit/de60998ed1577b70c1e42621546a500df1ebd61e))

# [1.1.0](https://github.com/Airfooox/cron-validate/compare/v1.0.4...v1.1.0) (2020-04-18)

### Features

* add blank day '?' support ([ca71a28](https://github.com/Airfooox/cron-validate/commit/ca71a289307d2e171f32f2298b793b60fbf33be7))

## [1.0.4](https://github.com/Airfooox/cron-validate/compare/v1.0.3...v1.0.4) (2020-04-15)

### Bug Fixes

* err not containing string array but string ([4d5a972](https://github.com/Airfooox/cron-validate/commit/4d5a9725ef0d2c2222f75d2c6b6412c16ef17037))

## [1.0.3](https://github.com/Airfooox/cron-validate/compare/v1.0.2...v1.0.3) (2020-04-15)

### Bug Fixes

* update package.json for npm description ([72132c5](https://github.com/Airfooox/cron-validate/commit/72132c54b712dee1abd1fb0d42d9bd5d3395658d))

## [1.0.2](https://github.com/Airfooox/cron-validate/compare/v1.0.1...v1.0.2) (2020-04-15)

### Bug Fixes

* update README.md (trigger release) ([3880d42](https://github.com/Airfooox/cron-validate/commit/3880d4260520da41317d9de64763b4c98f71e4e7))

## [1.0.1](https://github.com/Airfooox/cron-validate/compare/v1.0.0...v1.0.1) (2020-04-15)

### Bug Fixes

* add package-lock.json to git release (trigger a new version) ([9f85bd4](https://github.com/Airfooox/cron-validate/commit/9f85bd488a0cefc8347d52a17c4e3b4e448fb4b4))

# 1.0.0 (2020-04-15)

### Bug Fixes

* add check for second step element ([76d59fa](https://github.com/Airfooox/cron-validate/commit/76d59fa73bb99c370c758a18aa45c59bb6e52988))
* Change imports of option type ([d447be5](https://github.com/Airfooox/cron-validate/commit/d447be55e99e57c7f93767be4a267453894c370d))
* fix useSeconds not being set on options by preset ([d77ec8c](https://github.com/Airfooox/cron-validate/commit/d77ec8c9cd7a670c21bc80e3ccd546cefc8289fc))
* fix value limits not applying to wildcard '*' ([00a3379](https://github.com/Airfooox/cron-validate/commit/00a3379414e1a0884a04c3167665eaea4935109e))
* fix wrong checks ([2f6290e](https://github.com/Airfooox/cron-validate/commit/2f6290ec277752b706bf1352a4d77cb64aa31112))

### Features

* add getOptionPreset and getOptionPresets ([9db79fe](https://github.com/Airfooox/cron-validate/commit/9db79fe012a419212d43aaa986c51830cd2de00a))
* Add individual checker files and add helper functions ([24ecf74](https://github.com/Airfooox/cron-validate/commit/24ecf747729124bb1fbb38e6eb9c7e34d3741540))
* add option validation with yup ([c08f210](https://github.com/Airfooox/cron-validate/commit/c08f2109ac3538aedf0a2d0a3353f2bbea457914))
* Add option.ts file, check for value limits ([032dcbe](https://github.com/Airfooox/cron-validate/commit/032dcbe9eaf9fdf875a9cbd39fe74727e8634bee))
* Add preset system for options ([bac86ee](https://github.com/Airfooox/cron-validate/commit/bac86ee44ad814f7ea9f430cd9fd27e33dc93066))
* Add reponse types for typesafe returns ([f85f36a](https://github.com/Airfooox/cron-validate/commit/f85f36a60f387aecba448355a0d4ec8c24bfdb92))
* add two additional option presets ([489e472](https://github.com/Airfooox/cron-validate/commit/489e4725978c1e22c71dea22edc624894cd383dd))
* Update result ([5bd3fa1](https://github.com/Airfooox/cron-validate/commit/5bd3fa18dc9c6e33a3ad83c66860c8451033f6b8))

repository: aylizhiyuan/slow-optimization

repo_name: aylizhiyuan/slow-optimization


text:
---
title: Testing
weight: 1
---

## Clear Cache During Tests

In your application's tests, if you are not seeding roles and permissions as part of your test `setUp()` then you may run into a chicken/egg situation where roles and permissions aren't registered with the gate (because your tests create them after that gate registration is done). Working around this is simple:

In your tests simply add a `setUp()` instruction to re-register the permissions, like this:

```php
    public function setUp(): void
    {
        // first include all the normal setUp operations
        parent::setUp();

        // now re-register all the roles and permissions (clears cache and reloads relations)
        $this->app->make(\Spatie\Permission\PermissionRegistrar::class)->registerPermissions();
    }
```

## Factories

Many applications do not require using factories to create fake roles/permissions for testing, because they use a Seeder to create specific roles and permissions that the application uses; thus tests are performed using the declared roles and permissions.

However, if your application allows users to define their own roles and permissions you may wish to use Model Factories to generate roles and permissions as part of your test suite.

With Laravel 7 you can simply create a model factory using the artisan command, and then call the `factory()` helper function to invoke it as needed.

With Laravel 8 if you want to use the class-based Model Factory features you will need to `extend` this package's `Role` and/or `Permission` model into your app's namespace, add the `HasFactory` trait to it, and define a model factory for it. Then you can use that factory in your seeders like any other factory related to your app's models.

repository: Catname/laravel-permission

repo_name: Catname/laravel-permission


text:
# OctoPrint-PBCuraEngine

PBCuraEngine is a plugin that adds the 'latest' CuraEngine slicer to
OctoPrint running on a Raspberry Pi.

We use the "PB" prefix because Cura is a pretty overloaded term, but
to be super-clear, this plugin uses ["vanilla" CuraEngine](https://github.com/Ultimaker/CuraEngine) with no modifications/enhancements.

## Setup

Install via the bundled [Plugin Manager](https://github.com/foosel/OctoPrint/wiki/Plugin:-Plugin-Manager)
or manually using this URL:

      https://github.com/Red-M/OctoPrint-PBCuraEngine/archive/master.zip

To use this plugin, you must have [CuraEngine](https://github.com/Ultimaker/CuraEngine/blob/master/README.md)
and its dependencies installed on your system. This plugin was
originally integrated with the version 3.x CuraEngine code and has since been tested working on 4.4.

There is an install script in the scripts directory of this repository to install CuraEngine.
This has been tested to work with 4.4 but should work with any version of CuraEnging.
To use the script, run `./install_curaengine.sh 4.4` as root (using sudo is fine, just make sure to use the `-i` option).
Once the install script has finished, you'll need to run `./get_cura_profiles.sh $PLUGIN_DIR 4.4` with `$PLUGIN_DIR`
being the location octoprint has installed this plugin to,
for example on an octopi, this is `/home/pi/oprint/lib/python2.7/site-packages/octoprint_PBCuraEngine`.
You can get the install location by looking in ocotprint's settings under the
plugin manager section there is "Using pip of <blah>", expand that and there is the install directory location.
Simply add `/octoprint_PBCuraEngine` to this directory location to get `$PLUGIN_DIR`.
You can change `4.4` used previously if you wish to use another version or for upgrades to CuraEngine.

For updating CuraEngine, all you should need to do is run `./install_curaengine.sh $CURAENGINE_VERSION` as root, where `$CURAENGINE_VERSION` is the git branch of [CuraEngine](https://github.com/Ultimaker/CuraEngine).

## Configuration

All configuration is done in the plugin menu provided in the web UI now.

## Slicer Settings

Slicer settings can be changed before slicing by having an additional JSON key under the `"metadata"` key.
The additional key under `"metadata"` is `"octoprint_settings"`, anything under here is used as a way for at slicing time overrides for the slicer.
The only issue with this that potientially certain options cannot be overriden because overrides don't merge
into the entire profile but only into the `"octoprint_settings"`.

For how to set up a slicing profile, see my exaple profile for my Creality Ender 3 Pro in the root of this repository under `example_profile`.

### Cura Settings.json

CuraEngine recently (in terms of versions) changed how profiles work.
My example printer profile is a great example of how this works and reading through it while reading this is highly recommended.
Basically its an inheritance system now, so for a custom profile all you need to do is
inherit from your own printer's existing profile (if one exists) then you can do changes in your profile.
So in my example profile, I set my extruder values since that isn't inherited and set my custom start and end gcode.
I set all my other options in the override JSON key because of the way my current not released patches to the
[slicer plugin](https://github.com/kennethjiang/OctoPrint-Slicer) work, which allows me to edit anything under the override JSON key.

## TODO:
- Clean up the plugin, its still rather messy.
- I may want to rename the plugin from its original name since its not exactly as it was or with the same intentions.
- Release my changes for [slicer plugin](https://github.com/kennethjiang/OctoPrint-Slicer) as a PR since they make using this plugin a breeze.

repository: Red-M/OctoPrint-PBCuraEngine

repo_name: Red-M/OctoPrint-PBCuraEngine


text:
## Flutter State Management

This is a sample app showing four different approaches to managing state in Flutter:

### [`setState`](https://docs.flutter.io/flutter/widgets/State/setState.html) vs [`StreamBuilder`](https://docs.flutter.io/flutter/widgets/StreamBuilder-class.html) vs [`scoped_model`](https://pub.dartlang.org/packages/scoped_model) vs [`redux`](https://pub.dartlang.org/packages/redux)

**Use case: manage multiple counters, synced with Firebase Database.**

Watch my video for a full overview of the differences and tradeoffs between these techniques:

[![](screenshots/poster-state-management.png)](https://youtu.be/HLop7s2sJ7Q)

Supported tasks:

- Show a list of counters
- Add new counters
- Increment or decrement existing counters
- Remove counters (swipe left to dismiss)

## Database

The app uses Firebase as a source of truth for the state of the counters. This allows the data to be **easily synced** across multiple clients. Realtime Database and Cloud Firestore are both supported (see `database.dart` class).

**NOTE**: For simplicity, the whole database has public read/write access, and counters can't be set per-user. For a production app it would be more appropriate to set user access rules.

## State management

The same functionality is replicated in four different pages accessible via the bottom navigation bar, using different state management techniques:

* [`setState`](https://docs.flutter.io/flutter/widgets/State/setState.html)
* [`StreamBuilder`](https://docs.flutter.io/flutter/widgets/StreamBuilder-class.html)
* [`scoped_model`](https://pub.dartlang.org/packages/scoped_model)
* [`redux`](https://pub.dartlang.org/packages/redux)

## Running the project

You need to register the project with your own Firebase account.

- Use `com.musevisions.multipleCountersFlutter` as your bundle / application ID when generating the Firebase project.

- Download the `ios/Runner/GoogleService-Info.plist` and `android/app/google-services.json` files as needed.

### For more articles and video tutorials, check out [Coding With Flutter](https://codingwithflutter.com/).

### [License: MIT](LICENSE.md)


text:
# Dale Smith Bot

In this repository you can find the Reddit (and original) version of the Dale Smith Bot

## How to use it

Simply write one of the keywords (usually variations of the bot's name) in a comment in the [subreddits](subs.json) the bot is listening on, and the bot will reply with a random quote.

* Only listens on mentioned subreddits to avoid spamming other subs.
* Always follow and comply with Reddit bot rules and best practices: [bottiquette](https://www.reddit.com/r/Bottiquette/wiki/bottiquette)

## How to install

1. Create a virtual environment and activate it (this is optional but when working with Python, I cannot recommend it enough) or create a root folder that will hold all the code;
2.  The final structure should be somewhat similar to this:

```
+ root
└───+ reddit
│     |-- praw.ini
│     |-- blocked_users.json
│     |-- subs.json
│     |-- reddit_bot.py
└───+ utils
      |-- __init__.py
      |-- core.py
      |-- logging_config.ini
      |-- quotes.json
      |-- triggers.json
```

4. Run command `pip install -r requirements.txt` in reddit directory (this should install the requirements for utils as well, otherwise, you can also run the command in utils folder);
5. Done, you are ready to configure it.

#### TL;DR Installation:

```
$ python -m venv <venv_name>
$ cd venv_name
$ source bin/activate
(venv_name) $ git clone https://github.com/leftwingmememachine/dale-smith-bot.git
(venv_name) $ git clone https://github.com/leftwingmememachine/utils.git
(venv_name) $ cd dale-smith-bot
(venv_name) $ pip install -r requirements.txt
```

## How to configure and run

1. Create and maintain the .env file for environment variables in reddit folder (ENV = 'TEST' or 'PROD' and TST_SUBS);
1. Create and maintain the praw.ini file for PRAW (Python Reddit API) in root reddit folder ([see PRAW documentation](https://praw.readthedocs.io/en/latest/getting_started/configuration/prawini.html));
1. Create and mantain a logging_config.ini file in utils folder for logging configuration ([see documentation](https://docs.python.org/3/library/logging.config.html#logging-config-fileformat));
1. Run the bot (`python reddit_bot.py`).
1. Have fun!

repository: leftwingmememachine/dale-smith-bot

repo_name: leftwingmememachine/dale-smith-bot


text:
# docker-init

Creates a basic Docker with some useful (sane?) defaults, using various "minimum" parent images from Docker Hub: Debian, Alpine or Centos.
For my definition of "useful" of course.

This also includes some scripts inside tools/ and init/

## `init/initialise-docker-image`

Initialises the image by updating the package-index caches, and adding some default packages, e.g. `ca-certificates`, `curl` and `runit`.

## `init/create-app-user`

Creates an `app` user for use when running as a container.

_NOTE:_ It's not usually a good idea to run tools as Root, as privilege-escalations keep getting discovered, and rootless mode is still a little experimental in some contexts.

## `tools/add-*-repo`

Adds a APT or DNF repo to the internal index cache.

## `tools/install-*-packages`

Installs the given package.
It also updates the package-index cache before running, and then empties them out afterwards to conserve space in the image.

Therefore, it's a good idea to try to install all the packages in one command-line, if possible.

## `tools/errors-lib.sh`

A simple error/logging library for the other shell scripts.

## Using `runit`

This image installs `runit` (http://smarden.org/runit/) in the Alpine and Debian images, as a easily-comprehensible way to support running multiple processes within a single container.
The main reason for wanting this is to run simple "side car" processes for things like log-forwarding, process-monitoring, or background reconfiguration, when you don't have access to a orchestrator that can manage this for you (like K8s).

In order to enable this in your sub-image, you must copy one of the following sections to it, instead of an `ENTRYPOINT` or `CMD` Dockerfile command.

NOTE: With "runit", you need to tell Docker to Term with SIGHUP instead:
  https://github.com/peterbourgon/runsvinit
  https://peter.bourgon.org/blog/2015/09/24/docker-runit-and-graceful-termination.html
  https://github.com/pixers/runit-docker
  https://docs.docker.com/engine/reference/builder/#stopsignal

### Running multi-process with "runit", run as "root" user, with the various service scripts stored in /etc/services/

_NOTE:_ You'll need to use `chpst` (http://smarden.org/runit/chpst.8.html) or `su` inside your run scripts.

```
STOPSIGNAL SIGHUP
USER root
COPY ${Your Runit Configs}/ /etc/service/
# Uncomment for Debian, as it's /usr/bin:
#CMD /usr/bin/runsvdir -P /etc/service
# Uncomment for Alpine, as it's /sbin:
#CMD /sbin/runsvdir -P /etc/service
```

### Running multi-process with "runit", run as "app" user, with the various service scripts stored in /app/services/

```
STOPSIGNAL SIGHUP
ENV SVDIR=/app/service
RUN mkdir -p "$SVDIR"
COPY ${Your Runit Configs}/ "$SVDIR/"
# Uncomment for Debian, as it's /usr/bin:
CMD /usr/bin/runsvdir -P "$SVDIR"
# Uncomment for Alpine, as it's /sbin:
CMD /sbin/runsvdir -P "$SVDIR"
```

# TODO

- Add `runit` to the Centos build.
- Convert the scripts to Go, to more-easily support failures, logging, help, etc.

repository: mexisme/docker-init

repo_name: mexisme/docker-init