text:
{
  "title": "Happy to report that density contours will be much improved in the next ggplot2. #rstats #ggplot https://t.co/HNXzSfOjnt",
  "date": "2020-03-13"
}

# rstats

> **Gustavo Vaca Trigo** (@xvaca; 168/23): Happy to report that density contours will be much improved in the next ggplot2. #rstats #ggplot https://t.co/HNXzSfOjnt  [↪](https://twitter.com/dataandme/status/1238236919273869316)

<!-- -->

> **Thomas Hütter** (@DerFredo; 138/35): It's surprisingly tedious to get the US Population series by year of age and sex from 1900 to 2019, but when you do, you can make a little animation of it with #rstats, ggplot2 and gganimate. Like this one. Look at that punch in the gut in 1919. Look at those Boomers. https://t.co/gCn63KF2bm  [↪](https://twitter.com/dataandme/status/1238284798147407872)

<!-- -->

> **Lucas Enrich** (@lucariel1; 50/29): Top 5 R resources on COVID-19 Coronavirus  {https://t.co/S72WjTaJqB} #rstats #DataScience  [↪](https://twitter.com/dataandme/status/1238243250034692096)

<!-- -->

> **tidyverse tweets** (@tidyversetweets; 46/12): #RStats — Can we scrape the online documentation of an API to automate the creation of an R wrapper 📦?
>
Spoiler: yes.
>
"Automate the Creation of an API Wrapper package by Scraping its Online Documentation"
>
https://t.co/iUfbDXwgpE  [↪](https://twitter.com/dataandme/status/1238230472876011520)

<!-- -->

> **tidyverse tweets** (@tidyversetweets; 30/41): 520 Statistical Concepts Explained in Simple English. #BigData #Analytics #DataScience #AI #MachineLearning #IoT #IIoT #Python #RStats #JavaScript #ReactJS #CloudComputing #Serverless #DataScientist #Linux #Statistics #Programming #Coding #100DaysofCode
https://t.co/Hu91IZ5CIv https://t.co/dJ77mslJiv  [↪](https://twitter.com/dataandme/status/1238223498897756161)

<!-- -->

> **Public Health Data Science** (@PHExaminer; 22/3): Mañana estaremos publicando un breve post con un análisis que hicimos con los compañeros de @menta_arg de de los discursos presidenciales de Apertura de Sesiones Ordinarias desde 1984 a 2020
>
Que belleza  geom_parallel_sets() de #ggforce
>
#rstats #rstatsES https://t.co/E5CFwO3dYj  [↪](https://twitter.com/dataandme/status/1238270082939334656)

<!-- -->

> **Jason Richardson** (@jcrichardson617; 16/8): Why is #SocialDistancing so important? Because #COVID19 is both more infectious and more lethal than the seasonal flu. Here's what it looks like when you start with a single infection.
#Rstats #ggplot @CoViD19SARSCoV2 @R4DScommunity https://t.co/jVRUcq0j3s  [↪](https://twitter.com/dataandme/status/1238211367783616513)

<!-- -->

> **Thomas Hütter** (@DerFredo; 14/4): There is no substitute for #CourseBasedResearch at the #BotanicGarden @smithcollege. Sad ending the #PlantPhysiology lab this way. Students were attached to their plants and took them home. Still using @RStudio for #dataviz & #rstats, but now with fun videos. #DataScience https://t.co/WtCHGXN0sJ  [↪](https://twitter.com/dataandme/status/1238213048021798912)

<!-- -->

> **R Weekly Live** (@rweekly_live; 14/3): RInside 0.2.16: Now with R embedding from C
The easiest way to embed R in your C++ (and C) applications
https://t.co/ocluI5BnfR
#rstats #rcpp
>
/cc @LanceBachmeier https://t.co/Mh8cU3DBRv  [↪](https://twitter.com/dataandme/status/1238251365773819906)

<!-- -->

> **tidyverse tweets** (@tidyversetweets; 14/3): Interested in a video intro to ML and predictive modeling?
>
☑ Should you develop a model? (with shoutout to @MaartenvSmeden)
☑ Supervised ML is a curve-fitting exercise
☑ Problems fitting & applying models
☑ #rstats #tidymodels overview (no tuning)
https://t.co/P6aF3mW6II https://t.co/U0KtuSWJ9K  [↪](https://twitter.com/dataandme/status/1238218118603792384)

<!-- -->

> **tidyverse tweets** (@tidyversetweets; 13/5): I'm thinking about creating a class themes package for my upcoming data viz class.  Each student designs a theme - and they get to name it.  And then we package it. Has anyone done this.  Tips? #ggplot2 #rstats  [↪](https://twitter.com/dataandme/status/1238248999120965632)

<!-- -->

> **Psi Chi** (@PsiChiHonor; 11/11): Persistent config and data for R packages  {https://t.co/rv5GeXjn3T} #rstats #DataScience  [↪](https://twitter.com/dataandme/status/1238208202795364356)

<!-- -->

> **tidyverse tweets** (@tidyversetweets; 11/1): Homeschooling kids while finishing up the last half of my first year in PhD school... maybe I should just teach them to code....#coronavirus #gradschoolmommy #rstats  [↪](https://twitter.com/dataandme/status/1238230626714529792)

<!-- -->

> **Sean Hoban** (@seanmhoban; 10/4): Spotlight on speakers for next week's Community Call.
>
Next up @astroeringrand!
>
Erin is a data scientist at @UncommonSchools and board member of @RLadiesNYC. Erin is the maintainer of #rstats #astropic package as well as several internal packages. https://t.co/ov8tKxTCck  [↪](https://twitter.com/dataandme/status/1238208140744802312)

<!-- -->

> **JP Ruiz Nicolini** (@TuQmano; 9/33): #DigitalMarketing #content #Mining #Analytics #Ai #100DaysOfCode #MachineLearning #Cloud #MVP #IoT #fintech #FintechCA #CA #Calirofnia #workfromhome #opensource #rstats #python #SEM #GirlsWhoCode #Linux #serverless #Miners visit https://t.co/OtcgOyfjDQ https://t.co/ZSeuobYHb6  [↪](https://twitter.com/dataandme/status/1238261088531120131)

<!-- -->

> **Karl Wittfogel** (@KWittfogel; 9/17): Distributed Machine Learning with #ApacheSpark | #BigData #Analytics #DataScience #AI #MachineLearning #IoT #IIoT #PyTorch #Python #RStats #TensorFlow #Java #JavaScript #ReactJS #GoLang #CloudComputing #Serverless #DataScientist #Linux via @gp_pulipaka | https://t.co/S632GrFy14 https://t.co/ZcnMydMyIt  [↪](https://twitter.com/dataandme/status/1238250772808245248)

<!-- -->

> **David Eccles (Māo/32)** (@gringene_bio; 8/4): took a break from reading covid-19 news to work on my ggplot2 skills, and now I'm stuck ... #rstats #epitwitter how do I remove the x-axis label from a forest plot? taking out the xlab() part didn't work. for reference, I'm using code similar to this: https://t.co/JRZEcUWnvH  [↪](https://twitter.com/dataandme/status/1238214168454496258)

<!-- -->

> **tidyverse tweets** (@tidyversetweets; 8/3): So to try some #shiny, I made this comparative interactive visualization of the #CoronaOutbreak :
#covid_19 #rstats #shiny #FlattenTheCurve
>
https://t.co/2MGLGZCbyf https://t.co/RD6psdVP37  [↪](https://twitter.com/dataandme/status/1238221943687569408)

<!-- -->

> **Simon Wigley** (@SimonWigley5; 8/1): Just in the last week, I've dealt with 3 e-mails & 2 GitHub issues about my #rstats packages not working and the solution turned out to be just updating existing 📦s!
>
So, everyone, please wash your hands frequently and also update your 📦s regularly! 😬🤘
https://t.co/WCgVRzFvha https://t.co/ik8uPGoFNU  [↪](https://twitter.com/dataandme/status/1238207048107638796)

<!-- -->

> **tidyverse tweets** (@tidyversetweets; 7/8): Covid-19 interactive map (using R with shiny, leaflet and dplyr): https://t.co/RzCckDZr4o
#CoronavirusPandemic #CoronaOutbreak #Coronavirus #Covid_19 #rstats #DataViz #programming #coding #DataScience #BigData #R  [↪](https://twitter.com/dataandme/status/1238220949885005824)

<!-- -->

> **tidyverse tweets** (@tidyversetweets; 7/4): 🔊 A few announcements about our upcoming #rstats events! 🚨
>
💻 Our next meetup, March 19, will now be online: https://t.co/ZqUDYQnDTM
>
🗓 We will also host an online event in April and assess the need for future events
>
⏰ satRday SoCal 2020 has been postponed until Fall 2020  [↪](https://twitter.com/dataandme/status/1238257004436692992)

<!-- -->

> **CRAN Package Updates** (@CRANberriesFeed; 6/1): welp thanks to whomever added the note field at the top of that gsheet for Canadian academic library #covid19 responses which messes up my csv generation, I have now figured out how to fix that programmatically in #rstats, so I'm pretty pleased.  [↪](https://twitter.com/dataandme/status/1238214767950643200)

<!-- -->

> **Kieran Healy** (@kjhealy; 5/10): [BEST] #Udemy Complete Python Developer in 2020: Zero to Mastery (+30 Hours) Course
>
➡ https://t.co/qaDlYAiV4W
>
#Python #Programming #Developer #BigData #Analytics #DataScience #AI #MachineLearning #IoT #IIoT #RStats #Java #JavaScript #ReactJS #GoLang #Serverless #Linux  [↪](https://twitter.com/dataandme/status/1238282459097133056)

<!-- -->

> **tidyverse tweets** (@tidyversetweets; 5/4): As a few days ago I wanted to compare #Covid_19 cases evolution for different countries and @OurWorldInData did not have their wonderful graphs, I did a #rstats shiny app based on #WorldHealthOrganisation data:
https://t.co/GLKuFzB9fe
>
#Rstudio #dataviz #COVID19 https://t.co/FnU5vyEtTw  [↪](https://twitter.com/dataandme/status/1238218776686088193)

<!-- -->

> **Dave Clark** (@microbeEcology; 5/2): Useful things for coaches to do with our elongated spring breaks:
>
1. Create a Coursera account
2. Trial and error with #RStats
3. See if you can’t transfer your data over to SQL
4. Register for Scott E. Page’s course
5. Become anti-fragile to the woes of the sport industry https://t.co/BBNBxZqq8v  [↪](https://twitter.com/dataandme/status/1238211067874066432)

<!-- -->

> **Felipe Mattioni Maturana** (@felipe_mattioni; 4/4): By the way: 'rbem' 📦 plays well with the new 'geom_contour_filled' that came with the recent ggplot2 v3.3.0 update. #rstats #rspatial
>
https://t.co/QqRZ0s5Bfg https://t.co/vLD8SRJ35l  [↪](https://twitter.com/dataandme/status/1238209026711830528)

<!-- -->

> **Jeremy Handler** (@Jeremy_Handler; 4/3): #Covid19 #interactive #map (using #R with #shiny, leaflet and #dplyr)
>
https://t.co/4uxVLO0AQp
>
 #rstats #DataScience  [↪](https://twitter.com/dataandme/status/1238206751725490178)

<!-- -->

> **Simon Wigley** (@SimonWigley5; 4/2): Posted by R on Stats and R, now on R-bloggers: Top 5 R resources on COVID-19 Coronavirus #rstats https://t.co/QwKLYkiYox  [↪](https://twitter.com/dataandme/status/1238244713112666113)

<!-- -->

> **tidyverse tweets** (@tidyversetweets; 4/2): #patchwork is awesome! (as well as #ggplot & #forecast). #rstats #dataviz #DataVisualization #datascience #MadridPollution #Madrid #timeseries https://t.co/5w0gW5IHLN  [↪](https://twitter.com/dataandme/status/1238222777813028866)

<!-- -->

> **Jeremy Handler** (@Jeremy_Handler; 4/0): @CliffordTheHutt @niais Honestly, I had the thought to prep a bunch of food and go hide out in a remote cabin. As long as it has power I could still use RStats...  [↪](https://twitter.com/dataandme/status/1238244423693189125)

<!-- -->

> **Dr. GP Pulipaka** (@gp_pulipaka; 3/28): #IoT start #branding with #CLRit Visit https://t.co/lnqHhn2PL7 for details. #CLR #it #Analytics #Ai #100DaysOfCode #MachineLearning #Cloud #MVP #IoT #fintech #FintechCA #CA #California #workfromhome #opensource #rstats #python #SEM #GirlsWhoCode #Linux #serverless https://t.co/ZKBmFsWM10  [↪](https://twitter.com/dataandme/status/1238287222731931649)

<!-- -->

> **Laust Mortensen** (@udansk; 3/2): Automate the Creation of an API Wrapper package by Scraping its Online Documentation @_ColinFay #rstats #datascience https://t.co/07A2516PIY  [↪](https://twitter.com/dataandme/status/1238232588751233024)

<!-- -->

> **tidyverse tweets** (@tidyversetweets; 3/2): Hate base #rstats plots visually but love their simplicity? I just discovered ggplot2::quickplot which gets the job done! https://t.co/344JGMRjWW  [↪](https://twitter.com/dataandme/status/1238232619654971397)

<!-- -->

> **CRAN Package Updates** (@CRANberriesFeed; 3/2): The paste command in #rstats is really helpful for concatenating both words & numbers. Watch my #video to see how to "paste" together strings: https://t.co/Vocxjit2kD #ThursdayThoughts #DataScience #DataWarehouse @dataandme @marknr #marketingagency #careerdevelopment #Database https://t.co/rkehE3av0p  [↪](https://twitter.com/dataandme/status/1238215714986692613)

<!-- -->

> **Dr. Sören Wilke** (@SorenWilke; 2/2): #rstats I recently switched to FiraCode which automatically replaces things like <-, <=, != with a readable ligature (https://t.co/uqg6iyRd7H) https://t.co/ubuXr15Jum  [↪](https://twitter.com/dataandme/status/1238285612366479362)

<!-- -->

> **tidyverse tweets** (@tidyversetweets; 2/2): Supercharge your GitHub Actions Experience with tic @rOpenSci #rstats #datascience https://t.co/demW7je6TR  [↪](https://twitter.com/dataandme/status/1238262790869209089)

<!-- -->

> **tidyverse tweets** (@tidyversetweets; 2/2): This is a great idea! I also have a lot of online guest lectures on hand about #marineecology #physiology #climatechange #invertebrates #scicomm #oceans #bioinformatics #rstats and more. https://t.co/W4PX5W1YZn  [↪](https://twitter.com/dataandme/status/1238231606764027904)

<!-- -->

> **Kristen Panthagani** (@kmpanthagani; 2/1): I appreciate any help in these trying times #rstats
>
https://t.co/JkUPrvYjlw https://t.co/aIEvWN3VyI  [↪](https://twitter.com/dataandme/status/1238286759693127681)

<!-- -->

> **Hilary Izatt** (@heyhilaryizatt; 2/1): DBI update rather than write (S3) #tidyverse #rstats https://t.co/SNi0szUMMl  [↪](https://twitter.com/dataandme/status/1238225818570182657)

<!-- -->

> **tidyverse tweets** (@tidyversetweets; 2/1): Pre-Finals week has a bit of everything - #CoronaOutbreak scare, bootstrapping, Bayesian predictive densities, RNN/LSTMs, and just a dash of Trek 🚀 .
>
#gradlife #ML #NLProc #rstats https://t.co/6z0kvKidMc  [↪](https://twitter.com/dataandme/status/1238234502930956292)

<!-- -->

> **tidyverse tweets** (@tidyversetweets; 2/1): Hmm… I wonder if there is some Stata-like software that was free that one could easily migrate to? #rstats https://t.co/0OsJjMtjSu  [↪](https://twitter.com/dataandme/status/1238232181383798784)

<!-- -->

> **tidyverse tweets** (@tidyversetweets; 2/1): Asi se expresan los mexicanos en emojis sobre el #COVID19mx (22,345 tuits de la tendencia). #rstats https://t.co/b1d5FfyQbI  [↪](https://twitter.com/dataandme/status/1238221025940127745)

<!-- -->

> **Michael Sumner** (@mdsumner; 2/1): Anyone in the #rstats community have any advise? https://t.co/5yXtLLznFb  [↪](https://twitter.com/dataandme/status/1238215801276174336)

<!-- -->

> **Dr. Jay Timm** (@JasonTimm13; 2/0): @Jeremy_Handler @FC_rstats @FC_Python Going to use some @StatsBomb data to come up with some real obvious content in my learning phase.
>
Breaking @USWNT wins 2019 WWC according to data  [↪](https://twitter.com/dataandme/status/1238242262775140352)

<!-- -->

> **Gina Reynolds** (@EvaMaeRey; 1/2): R - Making predictions and confidence intervals with different models for each group of data #tidyverse #rstats https://t.co/B3z2f5fzKA  [↪](https://twitter.com/dataandme/status/1238286216019263488)

<!-- -->

> **Alejandra** (@sussenglish; 1/2): a little signal boost: #rstats #rspatial @causalinf  [↪](https://twitter.com/dataandme/status/1238266427213107201)

<!-- -->

> **My ML Journal** (@myMLjournal; 1/2): RInside 0.2.16 @eddelbuettel #rstats #datascience https://t.co/BPILPYQD8n  [↪](https://twitter.com/dataandme/status/1238252724124254210)

<!-- -->

> **Cody Arlie Reed** (@CodyArlie; 1/2): How does one add recession bars to plotly graph #rstats #shiny #plotly  [↪](https://twitter.com/dataandme/status/1238261824715399171)

<!-- -->

> **Simon Wigley** (@SimonWigley5; 1/2): Some important updates for upcoming #rstats meetups and the satRday conference 👇 https://t.co/2rapNLI7wW  [↪](https://twitter.com/dataandme/status/1238261499866554371)

<!-- -->

> **john "would like 19 corvids" fink** (@adr; 1/1): Partitioning timeseries data #tidyverse #rstats https://t.co/aC4ArmSghn  [↪](https://twitter.com/dataandme/status/1238224561457573895)

<!-- -->

> **Matthew Smith** (@MatthewSmith786; 1/1): Con los datos a mano monté un repositorio de #R para analizar cómo estaba evolucionando la propagación por comunidad autónoma. Puedes consultar y colaborar en el código #Rstats https://t.co/6Y3a0PGUke  [↪](https://twitter.com/dataandme/status/1238282864992686081)

<!-- -->

> **R Weekly Live** (@rweekly_live; 1/1): looking forward to meet you on our next meetup at #GU #southbank March **24**, don't forget to RSVP Come to learn about #GIS #rstats from @r_solymosi
 (international guest speaker)
https://t.co/EBa57kAW5C  [↪](https://twitter.com/dataandme/status/1238275024496128002)

<!-- -->

> **Gift Coupons** (@CourseGift; 1/1): Hey #rstats. Are we not done with @Rbloggers??  It links to NOT our sites-proper, and one that is hardly readable. I am personally finished. Cheers.   See https://t.co/Ww5kHpWDnC  [↪](https://twitter.com/dataandme/status/1238235436645928960)

<!-- -->

> **tidyverse tweets** (@tidyversetweets; 1/1): #rstats Twitter, help! In my infinite wisdom, I've just let R spend an hour extracting influence() diagnostics out of a .rma model (k > 700)... without assigning it into an object🤦. Is there a way to save the output data, or is my bedtime doomed tonight and I have to re-run?  [↪](https://twitter.com/dataandme/status/1238225147309539334)

<!-- -->

> **Stringfest Analytics** (@stringfestdata; 1/1): Thank you @_RachaelDempsey !
>
I love them! Delightful surprise after returning from lunch :)
>
#rstats #hexsticker https://t.co/ImrB5PvNpc  [↪](https://twitter.com/dataandme/status/1238214147134722048)

<!-- -->

> **Simon Wigley** (@SimonWigley5; 1/1): Coronavirus distraction: a job candidate has relevant #rstats knowledge, but not industry-specific experience.  For salary negotiations, how many years of experience does this candidate have?
2010: undergrad
2012: masters
2016: phd
2016-2020: academic job
2020: industry job  [↪](https://twitter.com/dataandme/status/1238207901312913408)

<!-- -->

> **R-Ladies Brisbane** (@RLadiesBrisbane; 1/0): @Jeremy_Handler @FC_rstats @FC_Python @StatsBomb @USWNT But I can play Iron Man on the guitar, and soon enough - Wonderwall 🤣  [↪](https://twitter.com/dataandme/status/1238247144081031168)

<!-- -->

> **Earl F Glynn** (@EarlGlynn; 1/0): @SimonWigley5 @FC_rstats @FC_Python Thanks, might have to give that a shot while I’m bored  [↪](https://twitter.com/dataandme/status/1238241885220737027)

<!-- -->

> **Malcolm Barrett** (@malco_barrett; 0/3): I'm collecting the best articles, videos, and resources on R Tools for coronavirus on Refind. Follow along! https://t.co/R712AnQH8q #rstats  [↪](https://twitter.com/dataandme/status/1238250324055523328)

<!-- -->

> **tidyverse tweets** (@tidyversetweets; 0/3): Groups are not allowed to meet in @jocolibrary meeting rooms during March, so KC R Users group meeting on Saturday has been cancelled.  I'll have more time to prepare my #rstats talk now.  [↪](https://twitter.com/dataandme/status/1238227855491858434)

<!-- -->

> **Oliver D. Reithmaier** (@ODR_Psy; 0/3): Deadline approaches: Psi Chi’s first-ever monthly R programming contest ends on March 15. Could you benefit from some guided practice using the free R software? Students and faculty are both welcome! Visit https://t.co/JOdzXNLKTn @astaples13 @jorowags #PsiChi #PsiChiR #rstats https://t.co/xaoGNs12s4  [↪](https://twitter.com/dataandme/status/1238209425502060559)

<!-- -->

> **ky** (@kylefbutts; 0/2): https://t.co/ihYVZb7cLb
Cambie algunas cosas luego de un feedback #rstats #rstatses #python #tidytuesday  [↪](https://twitter.com/dataandme/status/1238255918699159554)

<!-- -->

> **Daloha Rodríguez-Molina** (@darokun; 0/2): Según las fuentes oficiales, así va el COVID19 en #Ecuador
>
#CoronavirusEnEcuador #coronavirus #COVID19
#Rstats https://t.co/TH68vqAJ9J  [↪](https://twitter.com/dataandme/status/1238217159844782082)

<!-- -->

> **Ingrid Szilagyi** (@infj_ingrid; 0/2): Long-term rainfall records are usually discretized into independent storm events by defining a minimum inter-event time (MIT), which is also known as inter-event time definition (IETD). Check out my “IETD” R package now available on CRAN. #rstats https://t.co/eE9ZqkQlIk.  [↪](https://twitter.com/dataandme/status/1238217119084564480)

<!-- -->

> **Claus Wilke** (@ClausWilke; 0/1): [NEW] #Udemy Mastering Multithreading Programming with Go (Golang) (+3 Hours) Course
>
➡ https://t.co/VerfmZP6pS
>
#BigData #Analytics #DataScience #AI #MachineLearning #IoT #IIoT #Python #PyTorch #RStats #Java #JavaScript #ReactJS #GoLang #Programming #Serverless #Linux  [↪](https://twitter.com/dataandme/status/1238291625987551235)

<!-- -->

> **Colin Fay 🤘** (@_ColinFay; 0/1): 📝 "When does "garbage time" start?" \\ Joseph Ciesielski @jtcies
>
https://t.co/YmpHTUcSMj
#rstats https://t.co/irxlV5PZ1d  [↪](https://twitter.com/dataandme/status/1238288696425811968)

<!-- -->

> **Danielle Ignace** (@IgnaceLab; 0/1): The Emotionizer - 2020 Shiny Contest Submission #tidyverse #rstats https://t.co/kMdHGK0D2L  [↪](https://twitter.com/dataandme/status/1238286216723865600)

<!-- -->

> **Dirk Eddelbuettel** (@eddelbuettel; 0/1): Scrapping tbody class object in R #tidyverse #rstats https://t.co/fGp5mr1Oc6  [↪](https://twitter.com/dataandme/status/1238205679028121600)

<!-- -->

> **Karandeep Singh** (@kdpsinghlab; 0/1): Climate Zone Shiny Map #tidyverse #rstats https://t.co/LpvaAeR03D  [↪](https://twitter.com/dataandme/status/1238264826213720065)

<!-- -->

> **R-bloggers** (@Rbloggers; 0/1): Reading dates for plotting #tidyverse #rstats https://t.co/ItNYoXbsYw  [↪](https://twitter.com/dataandme/status/1238250983966281730)

<!-- -->

> **rOpenSci** (@rOpenSci; 0/1): Can't deploy an app with library Seurat #tidyverse #rstats https://t.co/NVpWfQtV5n  [↪](https://twitter.com/dataandme/status/1238214493311848448)

<!-- -->

> **Anno Domaini®** (@AnnoDomaini; 0/1): Eliminate cases based on multiple rows values #tidyverse #rstats https://t.co/UF6qw0AIOr  [↪](https://twitter.com/dataandme/status/1238214492510720002)

<!-- -->

> **Ed Kwedar** (@EdKwedar; 0/1): plz help with svyciprop and NHANES data #tidyverse #rstats https://t.co/09g2OTXSXk  [↪](https://twitter.com/dataandme/status/1238282435445612544)

<!-- -->

> **Ariel Beccia** (@arielbeccia; 0/1): How to use cut function for the string variables? #tidyverse #rstats https://t.co/0TMRClljcj  [↪](https://twitter.com/dataandme/status/1238234617402007553)

<!-- -->

> **André Calero Valdez** (@Sumidu; 0/1): deminR - 2020 Shiny Contest Submission #tidyverse #rstats https://t.co/yqjDOvCdC1  [↪](https://twitter.com/dataandme/status/1238217013987852288)

<!-- -->

> **Indrajeet Patil** (@patilindrajeets; 0/1): How to calculate a variable using a lagged value using R #tidyverse #rstats https://t.co/62Puo7PK8o  [↪](https://twitter.com/dataandme/status/1238269853531807745)

<!-- -->

> **Learn R in a Day** (@LearnRinaDay; 0/1): Can I Run ANOVA with 2 Columns of Data? #tidyverse #rstats https://t.co/ZsMl5jx5Kl  [↪](https://twitter.com/dataandme/status/1238206936245551131)

<!-- -->

> **Los Angeles R Users** (@la_Rusers; 0/1): Access Azure Blob Storage through R #tidyverse #rstats https://t.co/rkEqZ4d74y  [↪](https://twitter.com/dataandme/status/1238273626660618241)

<!-- -->

> **Gift Coupons** (@CourseGift; 0/1): Cut integer as time into 15 minutes intervals #tidyverse #rstats https://t.co/AE6XkJ7ABr  [↪](https://twitter.com/dataandme/status/1238264825484115969)

<!-- -->

> **Denis Mongin** (@denis_mongin; 0/1): fix(dataframe) -> is there another function allowing me to edit a dataframe the way I do it in Excel ? (Copy Paste over a whole column,etc...) #tidyverse #rstats https://t.co/Ve6oronKpH  [↪](https://twitter.com/dataandme/status/1238210715317657600)

<!-- -->

> **Patrick Peterson** (@PPetersonSC; 0/1): Research-style frequency table formatting with R Markdown #tidyverse #rstats https://t.co/nWdhgbagDr  [↪](https://twitter.com/dataandme/status/1238215772641677314)

<!-- -->

> **Rhi Kirton BSc** (@Rhiannon_Kirton; 0/1): Wow, this thread on how to run anova in #rstats is incredibly detailed and certainly useful! https://t.co/EcQZoqzoTf  [↪](https://twitter.com/dataandme/status/1238277443212972033)

<!-- -->

> **Anno Domaini®** (@AnnoDomaini; 0/1): Cool what one can do in R 😃 #rstats #covid_19
Doctor Fabacher has produced an interactive map for global monitoring of the infection, accessible at:
https://t.co/dkaox8D2v2
Not so cool what is happening in the world right now though..  [↪](https://twitter.com/dataandme/status/1238276798372286474)

<!-- -->

> **Kiernan** (@kiernxn; 0/1): #rstats no it's the extremes of the user coordinates of the plotting region https://t.co/PPrNrV8gxw  [↪](https://twitter.com/dataandme/status/1238273036253401089)

<!-- -->

> **ky** (@kylefbutts; 0/1): CRAN updates: dccvalidator https://t.co/y5W2NTKSXT #rstats  [↪](https://twitter.com/dataandme/status/1238269085567385603)

<!-- -->

> **R Weekly Live** (@rweekly_live; 0/1): CRAN updates: cgmanalysis pammtools https://t.co/y5W2NTKSXT #rstats  [↪](https://twitter.com/dataandme/status/1238208685756858370)

<!-- -->

> **Dr. Richelle Tanner** (@richelletanner; 0/1): CRAN updates: EpiILM https://t.co/y5W2NTKSXT #rstats  [↪](https://twitter.com/dataandme/status/1238223778817150980)

<!-- -->

> **Jacob R Weverka** (@weverkaj; 0/1): #RStats #debugging🤬
>
> a <- c("KRT76", "kitematic/ShinyApps/nanostring_testing")
>
> ifelse(nchar(a)<20, a, a %>% paste(substring(text=., first=1, last=5), "..."))
[1] "KRT76" "kitematic/ShinyApps/nanostring_testing kitem ..."
>
How did the full-length string get in there?  [↪](https://twitter.com/dataandme/status/1238264907524648964)

<!-- -->

> **YaNiPaper** (@YaNiPaper; 0/1): #Rstudio keyboard shortcut: Use Selection for Find - Ctrl+F3 (Windows), Command+E (Mac). #rstats  [↪](https://twitter.com/dataandme/status/1238262283945508864)

<!-- -->

> **Bryan Jenks** (@Tall_Viking; 0/1): Posted by Super User, now on R-bloggers: Corona in Belgium #rstats https://t.co/XQP7TO6UTy  [↪](https://twitter.com/dataandme/status/1238206970156498967)

<!-- -->

> **Shannon Pileggi** (@PipingHotData; 0/1): Posted by Posts on R-hub blog, now on R-bloggers: Persistent config and data for R packages #rstats https://t.co/MM30SKfl6V  [↪](https://twitter.com/dataandme/status/1238214476836593670)

<!-- -->

> **Luis F. Duque** (@felipeduque1986; 0/1): @ryantimpe Gotta add in the new Mario blocks too! It’s about time Super Mario came to #rstats  [↪](https://twitter.com/dataandme/status/1238236153200947202)

<!-- -->

> **R posts you might have missed!** (@icymi_r; 0/1): Ooh this looks really interesting, look forward to exploring this new #rstats package https://t.co/2l4AnmA4V7  [↪](https://twitter.com/dataandme/status/1238234866392739847)

<!-- -->

> **CRAN Package Updates** (@CRANberriesFeed; 0/1): I just realized one of my other apps had priority over RStudio for the pipe shortcut and this prevented me from inserting pipes - the other app intercepted the shortcut without passing it to RStudio.
>
Just in case you're having similar problems, check other apps!
#Rstats  [↪](https://twitter.com/dataandme/status/1238214840105271296)

<!-- -->

> **Thomas Hütter** (@DerFredo; 0/1): Active COVID-19 cases by Australian State
>
#Covid_19 #Australia #rstats
data source: https://t.co/BUGwvZlRiG https://t.co/Ij5DoDkHAL  [↪](https://twitter.com/dataandme/status/1238213683685158912)

<!-- -->

> **James Conigrave** (@jamesconigrave; 0/1): @jburnmurdoch are the data underlying this graph available somewhere? I would like to check if I could replicate this cool graph in #rstats 🙂  [↪](https://twitter.com/dataandme/status/1238209237060370435)

<!-- -->

> **R-bloggers** (@Rbloggers; 0/0): Final chance to apply for exciting informatics postdoc with interdisciplinary team of @jdrob_at_MSU @seanmhoban @AndriaEDawson @AlissaJ_Brown! https://t.co/OdPbqRXyOU Apply today! #phdjobs #phdchat #academia #genetics #bioinformatics #rstats  [↪](https://twitter.com/dataandme/status/1238290082890743808)

<!-- -->

> **numeroteca** (@numeroteca; 0/0): @Jeremy_Handler @FC_rstats @FC_Python @StatsBomb @USWNT Most likely scenario https://t.co/Kwu9F52EFO  [↪](https://twitter.com/dataandme/status/1238246969124020226)

<!-- -->

> **Martina Sladekova** (@martinasladek; 0/0): @Jeremy_Handler Trial and error combined with the internet! Started with @FC_rstats and @FC_Python  [↪](https://twitter.com/dataandme/status/1238241725522608129)

<!-- -->

> **Zorro Notorious M. E. B he / him** (@znmeb; 0/0): @SimonWigley5 @FC_rstats @FC_Python @StatsBomb @USWNT That’s awesome, will be curious on your progress  [↪](https://twitter.com/dataandme/status/1238243441101938690)

<!-- -->

repository: batpigandme/twitter-blogdown

repo_name: batpigandme/twitter-blogdown


text:
---
layout: article
title:  "Scikit-Learn"
excerpt: "Guide to hosting your scikit-learn model on Algorithmia."
categories: model-guides
tags: [algo-model-guide]
show_related: true
author: steph_kim
image:
    teaser: /language_logos/scikit.svg
---

Welcome to hosting your scikit-learn model on Algorithmia!
This guide is designed as an introduction to hosting a scikit-learn model and publishing an algorithm even if you’ve never used Algorithmia before.

## Prerequisites
Maybe you've got a great idea or have tirelessly worked on a project in your spare time and you want it to be useful to others. Before you get started hosting your model on Algorithmia there are a few things you'll want to do first:

#### Train your model.
Say you have a regression model that is predicting the popularity of a product based on various features. You have your training data that has ratings of such products and their associated features. You also have your test data that has the products minus the ratings. You do some data preprocessing and then train your model and validate it. You're happy with your results and now need to pickle the trained model so you can upload it to Algorithmia.

#### Pickle your trained model.
Various programming languages have different picklers to choose from. To prepare your model for uploading via our Data API, pick a pickler and save the pickled model locally.

### Create a Data Collection
Now you'll want to create a data collection to host your pickled model.

- To use the Data API, log into your Algorithmia account and create a data collection via the Data Collections page.

- Click on **“Add Collection”** under the “My Collections” section on your data collections page.

- After you create your collection you can set the read and write access on your data collection. For more information check out: Data Collection Types

### Upload your Model into a Collection
Next, upload your pickled model to your newly created data collection.

- Load model by clicking box **“Drop files here to upload”**

- Note the path to your files: data://username/collections_name/pickled_model.pkl

### Create your Algorithm
Creating your algorithm is easy!

- To add an algorithm, simply click **“Add Algorithm”** from the user profile icon.
- Name your algorithm, select the language, choose permissions and make the code either open or closed source.

**Note**: There is also a checkbox for 'Standard Execution Environment' or 'Advanced GPU'. For machine learning models you will want to check 'Standard Execution Environment'.

### Load your Model
Here is where you load your pickled model that is to be called by the apply() function.
Our recommendation is to preload your model in a separate function before apply(). The reasoning behind this is because when your model is first loaded it can take some time to load depending on the file size. However, with all subsequent calls only the apply() function gets called which will be much faster since your model is already loaded!

Now to check out a code example using the Random Forest Regressor to build a prediction model in Scikit-learn

{% highlight python %}
import sys
import pickle
import csv
import numpy as np
import Algorithmia

from sklearn.datasets import load_boston
from sklearn.ensemble import RandomForestRegressor

client = Algorithmia.client()

def load_model():
    # Get file by name
    # Open file and load model
    file_path = 'data://demo/demo/scikit-demo-boston-regression.pkl'
    model_path = client.file(file_path).getFile().name
    # Open file and load model
    with open(model_path, 'rb') as f:
        model = pickle.load(f)
        return model

# Load model outside of the apply function so it only gets loaded once
model = load_model()

def process_input(input):
    # Create numpy array from csv file passed as input in apply()
    if input.startswith('data:'):
        file_url = client.file(input).getFile().name
        try:
            np_array = np.genfromtxt(file_url, delimiter=',')
            print(np_array)
            return np_array
        except Exception as e:
            print("Could not create numpy array from data", e)
            sys.exit(0)

def apply(input):
    # Input should be a csv file - model is trained on Sklearn
    # Boston housing dataset using RandomForestRegressor
    np_data = process_input(input)
    prediction = model.predict(np_data)
    return list(prediction)

{% endhighlight %}

If you are authoring an algorithm, avoid using the ‘.my’ pseudonym in the source code. When the algorithm is executed, ‘.my’ will be interpreted as the user name of the user who called the algorithm, rather than the author’s user name.
{: .notice-warning}

### Set your Dependencies
Now is the time to set your dependencies that your model relies on.

- Click on the **"Dependencies"** button at the top right of the UI and list your packages under the required ones already listed and click **"Save Dependencies"** on the bottom right corner.

### Publish your Algorithm
Last is publishing your algorithm. The best part of hosting your model on Algorithmia is that users can access it via an API that takes only a few lines of code to use! Here is what you can set when publishing your algorithm:

- Set version permissions to public or private use

- Set it to royalty free or set to per-call royalty

- Set access permissions to have full access to the internet and ability to call other algorithms

For more information and detailed steps: creating and publishing your algorithm

## Working Demo
If you would like to check this demo out on the platform you can find it here: Scikit-Learn-demo

That's it for hosting your scikit-learn model on Algorithmia!

license: MIT

repository: codeaudit/dev-center

branch_name: refs/heads/master

extension: md

license_type: permissive

repo_name: codeaudit/dev-center


text:
# SafeLoad

Be your own file sharing service with ease.

## Install
Download this repository and put it somewhere on your server.

Then do the following:
```sh
cd SafeLoad             # If you aren't in the folder already.
sudo npm i -g serve
npm i --production
serve
```

## Use cases
You ...
* ... want to share huge files¹
* ... need a secure way to exchange files
* ... want to be in control of everything
* ... trust no one
* ... value a modern design
* ... FOSS everything

*¹ As long as your server can handle it*

If one or more points apply to you then: **SafeLoad is the way to go**.

## Security
When handling files of various users it's very important to deal with proper security. Therefore, we follow the principle of **zero-knownledge**. Anyone can create a instance of SafeLoad and all users can be sure that **the owner of that instance cannot read your data.** Only your recipients can decrypt your valuable data.

The way we achive this is by encrypting all data on client-side using **OpenPGP.js**. The password that was used for the encryption will be sent to the server but as a **Argon2 hash**.

repository: InstantCodee/SafeLoad

branch_name: refs/heads/main

repo_name: InstantCodee/SafeLoad


text:
---
title: Installing Discord.Net
---

Discord.Net is distributed through the NuGet package manager, and it is
recommended to use NuGet to get started.

Optionally, you may compile from source and install yourself.

# Supported Platforms

Currently, Discord.Net targets [.NET Standard] 1.3, and offers support for
.NET Standard 1.1. If your application will be targeting .NET Standard 1.1,
please see the [additional steps](#installing-on-net-standard-11).

Since Discord.Net is built on the .NET Standard, it is also recommended to
create applications using [.NET Core], though you are not required to. When
using .NET Framework, it is suggested to target `.NET 4.6.1` or higher.

[.NET Standard]: https://docs.microsoft.com/en-us/dotnet/articles/standard/library
[.NET Core]: https://docs.microsoft.com/en-us/dotnet/articles/core/

# Installing with NuGet

Release builds of Discord.Net 1.0 will be published to the
[official NuGet feed].

Development builds of Discord.Net 1.0, as well as [addons](TODO) are published
to our development [MyGet feed].

Direct feed link: `https://www.myget.org/F/discord-net/api/v3/index.json`

Not sure how to add a direct feed? See how [with Visual Studio]
or [without Visual Studio](#configuring-nuget-without-visual-studio)

[official NuGet feed]: https://nuget.org
[MyGet feed]: https://www.myget.org/feed/Packages/discord-net
[with Visual Studio]: https://docs.microsoft.com/en-us/nuget/tools/package-manager-ui#package-sources

## Using Visual Studio

1. Create a solution for your bot
2. In Solution Explorer, find the 'Dependencies' element under your bot's
project
3. Right click on 'Dependencies', and select 'Manage NuGet packages'
![Step 3](images/install-vs-deps.png)
4. In the 'browse' tab, search for 'Discord.Net'

> [!TIP]
Don't forget to change your package source if you're installing from the
developer feed.
Also make sure to check 'Enable Prereleases' if installing a dev build!

5. Install the 'Discord.Net' package

![Step 5](images/install-vs-nuget.png)

## Using JetBrains Rider

1. Create a new solution for your bot
2. Open the NuGet window (Tools > NuGet > Manage NuGet packages for Solution)
![Step 2](images/install-rider-nuget-manager.png)
3. In the 'Packages' tab, search for 'Discord.Net'
![Step 3](images/install-rider-search.png)

> [!TIP]
Make sure to check the 'Prerelease' box if installing a dev build!

4. Install by adding the package to your project
![Step 4](images/install-rider-add.png)

## Using Visual Studio Code

1. Create a new project for your bot
2. Add Discord.Net to your .csproj

[!code-xml[Sample .csproj](samples/project.csproj)]

> [!TIP]
Don't forget to add the package source to a [NuGet.Config file](#configuring-nuget-without-visual-studio) if you're installing from the
developer feed.

# Compiling from Source

In order to compile Discord.Net, you require the following:

### Using Visual Studio

- [Visual Studio 2017](https://www.visualstudio.com/)
- [.NET Core SDK 1.0](https://www.microsoft.com/net/download/core#/sdk)

The .NET Core and Docker (Preview) workload is required during Visual Studio
installation.

### Using Command Line

- [.NET Core SDK 1.0](https://www.microsoft.com/net/download/core#/sdk)

# Additional Information

## Installing on .NET Standard 1.1

For applications targeting a runtime corresponding with .NET Standard 1.1 or 1.2,
the builtin WebSocket and UDP provider will not work. For applications which
utilize a WebSocket connection to Discord (WebSocket or RPC), third-party
provider packages will need to be installed and configured.

First, install the following packages through NuGet, or compile yourself, if
you prefer:

- Discord.Net.Providers.WS4Net
- Discord.Net.Providers.UDPClient

Note that `Discord.Net.Providers.UDPClient` is _only_ required if your bot will
be utilizing voice chat.

Next, you will need to configure your [DiscordSocketClient] to use these custom
providers over the default ones.

To do this, set the `WebSocketProvider` and optionally `UdpSocketProvider`
properties on the [DiscordSocketConfig] that you are passing into your
client.

[!code-csharp[NET Standard 1.1 Example](samples/netstd11.cs)]

[DiscordSocketClient]: xref:Discord.WebSocket.DiscordSocketClient
[DiscordSocketConfig]: xref:Discord.WebSocket.DiscordSocketConfig

## Configuring NuGet without Visual Studio

If you plan on deploying your bot or developing outside of Visual Studio, you
will need to create a local NuGet configuration file for your project.

To do this, create a file named `nuget.config` alongside the root of your
application, where the project solution is located.

Paste the following snippets into this configuration file, adding any additional
feeds as necessary.

[!code-xml[NuGet Configuration](samples/nuget.config)]

branch_name: refs/heads/dev

gha_language: C#

gha_license_id: MIT


text:
# angular-defer-cloak

Angular `defer-cloak` directive  + CSS rules as an improved alternative to the native angular [`ng-cloak` directive](https://docs.angularjs.org/api/ng/directive/ngCloak).

## Installation

    bower install angular-defer-cloak

## Initialisation of your application

```js
angular.module('app',['deferCloak'])
```

```html
<html>
  <head>
    <link rel="stylesheet" href="bower_components/angular-defer-cloak/angular-defer-cloak.min.css">
    <script src="bower_components/angular-defer-cloak/angular-defer-cloak.min.js"></script>
  </head>
  <body data-ng-app="app">
    <!-- ... -->
  </body>
</html>
```

## Usage example

```html

  <div data-defer-cloak data-ng-show="isLoading">
      Loading ...
  </div>
  <div data-defer-cloak class="error-content" data-ng-show="items && items.length === 0 && !isLoading">
      <p class="error-text">No item available</p>
  </div>
  <div data-defer-cloak class="error-content" data-ng-show="errorRetrievingItems">
      <p class="error-text">Can't fetch items</p>
  </div>

  <ul>
      <li data-ng-repeat="item in items">
        {{item.label}}
      </li>
  </ul>
</body>
```

## LICENSE

The MIT License (MIT)

Copyright (c) 2015 Rémi Becheras<EMAIL_ADDRESS>(https://github.com/rbecheras)

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

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

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

repository: sirap-group/angular-defer-cloak

repo_name: sirap-group/angular-defer-cloak


text:
[![Binder](https://mybinder.org/badge.svg)](https://mybinder.org/v2/gh/fMercury/DeepLearningEAIA/master)

# Deep Learning Tutorial

### Deep Learning tutorial in Python using Keras and Tensorboard for the 2017 "Argentinian School in Artificial Intelligence" (EAIA)

In this tutorial we aim to give you some notions on how Deep Learning algorithms are implemented and the key points
to use them and not get burned in the process. We will center on how to translate the theory of neural networks easily into
efficient code with as little effort as possible. We won't teach you how to implement the complex algorithms involved,
but rather how to ensemble the available parts to get the classification pipeline you want. You don't need to be an
expert in machine learning or deep learning to understand this content, but some prior background is required.
Also, we count on you knowing how to program in Python and how to use Jupyter Notebooks.

To follow the tutorial please clone this repository and check the instructions in notebook `deep_learning_tutorial_0.ipynb`
that will explain how to set up your environment. Please don't hesitate to contact us with questions or feedback, it's always
welcome!

Enjoy!

repository: fMercury/DeepLearningEAIA

repo_name: fMercury/DeepLearningEAIA


text:
# Gigs

[![HTML](https://img.shields.io/badge/HTML-E34F26?style=for-the-badge&logo=html5&logoColor=white)](https://developer.mozilla.org/en-US/docs/Learn/Getting_started_with_the_web/HTML_basics) [![CSS](https://img.shields.io/badge/CSS-1572B6?style=for-the-badge&logo=css3&logoColor=white)](https://developer.mozilla.org/en-US/docs/Web/CSS) [![JS](https://img.shields.io/badge/JavaScript-323330?style=for-the-badge&logo=javascript&logoColor=F7DF1E)](https://developer.mozilla.org/en-US/docs/Web/JavaScript) [![AngularJS](https://img.shields.io/badge/AngularJS-E23237?style=for-the-badge&logo=angularjs&logoColor=white)](https://angularjs.org/)
[![License: MIT](https://img.shields.io/badge/License-MIT-lightgrey.svg?style=for-the-badge)](https://opensource.org/licenses/MIT)

[![GitHub contributors](https://img.shields.io/github/contributors/AlexHedley/Gigs.svg?style=for-the-badge)](https://GitHub.com/AlexHedley/Gigs/graphs/contributors/)
[![GitHub issues](https://img.shields.io/github/issues/AlexHedley/Gigs.svg?style=for-the-badge)](https://GitHub.com/AlexHedley/Gigs/issues/)
[![GitHub issues-closed](https://img.shields.io/github/issues-closed/AlexHedley/Gigs.svg?style=for-the-badge)](https://GitHub.com/AlexHedley/Gigs/issues?q=is%3Aissue+is%3Aclosed) | [![GitHub pull-requests](https://img.shields.io/github/issues-pr/AlexHedley/Gigs.svg?style=for-the-badge)](https://GitHub.com/AlexHedley/Gigs/pull/) | [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=for-the-badge)](http://makeapullrequest.com)

## Site

- https://alexhedley.github.io/Gigs/

## Gigs Blog (Legacy)

From: http://alexhedley.com/music/

2013: https://web.archive.org/web/20131211120614/http://alexhedley.com/music/

## Example

![Ticket Example](docs/images/Ticket_Example.png "Ticket Example")

## Run

`py -m http.server`

## Docs

- [Docs](docs/README.md)
- [Contributors](docs/CONTRIBUTORS.md)
- [Acknowledgements](docs/ACKNOWLEDGEMENTS.md)
- [Changelog](docs/CHANGELOG.md)

repository: AlexHedley/Gigs

repo_name: AlexHedley/Gigs


text:
---
layout: post
title: Running web application locally as a predefined user using OWIN Middleware
date: 2015-03-01 09:29
author<EMAIL_ADDRESS>comments: true
categories: [Visual Studio, IAM]
tags: [authentication, claims]
---

It is quite common that we sometimes need to run the application without all the identity server redirection dance at development time. It is possible to assign common identity to all the users running the application locally as follows.

Create a custom authentication middleware as follows.

{% highlight csharp %}
public class LocalAuthenticationMiddleware : OwinMiddleware
{

    public LocalAuthenticationMiddleware2(OwinMiddleware next) :
        base(next) { }

    public override async Task Invoke(IOwinContext context)
    {
        var response = context.Response;
        var request = context.Request;

        response.OnSendingHeaders(state =>
        {
            var resp = (OwinResponse)state;

            if (resp.StatusCode == 401)
            {
                resp.Headers.Add("WWW-Authenticate", new[] { "Basic" });
                resp.StatusCode = 403;
                resp.ReasonPhrase = "Forbidden";
            }
        }, response);

        // use this identity only if running locally
        if (request.Uri.IsLoopback)
        {
            var claims = new[]
                    {
                        new Claim("name", "Administrator"),
                        new Claim(ClaimTypes.NameIdentifier, "0001"),
                        new Claim(ClaimTypes.Role, "SiteAdministrator"),
                    };
            var identity = new ClaimsIdentity(claims, "Basic");
            request.User = new ClaimsPrincipal(identity);

        }

        await Next.Invoke(context);
    }
}
{% endhighlight %}

Then use the custom authentication middleware in the application startup

{% highlight csharp %}
app.Use(typeof(LocalAuthenticationMiddleware));
{% endhighlight %}

Access the claims via `Controller.User` API.
{% highlight csharp %}
var nameClaim = (User as ClaimsPrincipal).Claims.FirstOrDefault(t => t.Type == "name");
{% endhighlight %}

### References
basic authentication

repository: weliwita/blog

repo_name: weliwita/blog


text:
Use std::unique_ptr for exclusive-ownership resource management
===============================================================

std::unique_ptr
---------------

std::unique_ptr embodies exclusive ownership semantics.

A non-null std::unique_ptr always owns what it points to.

Moving a std::unique_ptr trasfers ownership from the source pointer
to the destination pointer (the source pointer is set to null).

Copying a std::unique_ptr isn't allowed.

std::unique_ptr is thus a move-only type.

Upon destruction, a non-null std::unique_ptr destroys its resource.

By default, resource destruction is accomplished by applying
"delete" to the raw pointer inside the std::unique_ptr.

destruction of std::unique_ptr
------------------------------

The std::unique_ptr owning the managed resource would eventually
have its desctrutor called
(except the next case: if an when an exception
propagates out of a thread's primayr function (e.g., main,
for the program's initial thread) or if a "noexcept" specification
is vialated, local objects may not be destroyed, and if std::abort
or an exit function (i.e., std::_Exit, std::exit, or std::quic_exit)
is called, they definitely won't be.

Custom deleters for unique_ptr
------------------------------

When using the default deleter (i.e., "delete"), you can reasonably
assume that "std::unique_ptr" objects are the same size
as raw pointers.

When custom deleters enter the picture, this may no be the case;
deleters that are function pointers generally cause the size of a
std::unique_ptr to grow from one word to two
for deleters that are function objects, the change in size depends
on how much state is stored in the function object.

Stateless function objects (e.g., from lambda expressions with no
captures) incur no size penalty, and this means that when a custom
deleter can be implemented as either a function or a captureless
lambda expression, the lambda is preferable.

std::unique_ptr for arrays
--------------------------

std::unique_ptr comes in two forms:
- one for individual objects (std::unique_ptr<T>);
- one for arrays (std::unique_ptr<T[]>).

You can use std::unique_ptr<T[]> when you're using a C-like API
that returns a raw pointer to heap array that you assume
ownership of.

Convert std::unique_ptr to std::shared_ptr
------------------------------------------

std::unique_ptr can be easily and efficiently converted to a
std::shared_ptr.

Summary
-------

- std::unique_ptr is a small, fast, move-only smart pointer for
  managing resources with exclusive-ownership semantics;
- by default, resource destruction takes place via "delete",
  but custom deleters can be specified;
  stateful deleters and function pointers as deleters increase
  the size of std::unique_ptr objects;
- converting a std::unique_ptr to a std::shared_ptr is easy.

repository: ordinary-developer/education

repo_name: ordinary-developer/education


text:
# Should I kite poole bay today?

![IS IT WINDY?](https://media.giphy.com/media/xjSUt7Z7OzpE4/giphy.gif)

Gatsby is probably overkill for this project, but it is fun to use.

### Build
You'll need [gatsby-cli](https://www.gatsbyjs.org/docs/) installed first.

Then.

`gatsby develop`

or

`gatsby build` for production.

repository: ollieRogers/should-i-kite-today

gha_language: CSS

repo_name: ollieRogers/should-i-kite-today


text:
---
title: Guide to the MapsIndoors CMS
---

## About the User Roles

There are 2 roles in the system:

**Editor** - Editors can create new locations, make changes to and remove existing locations

**Admin** - Administrators also have access to types, categories and users management, network visualisation and app configuration.

**Regarding the transition to MapsIndoors CMS 3.0**
If you are using the CMS to manage push messaging or beacons you have to continue using the previous CMS version. The same applies in the event of having unpublished changes in your CMS. Please publish them in the previous version before starting to use the new version. Editors roles of the previous CMS version will need to have their roles updated by an admin, on the "users" page before they can access the new CMS. [Click here to access the previous CMS version](https://cms-legacy.mapsindoors.com/)
.

**Logging In**

Visit [cms.mapsindoors.com](https://cms.mapsindoors.com/)

Log in using a google account or by typing your email and password![image alt text](image_1.png)

## Locations

After logging in, the map will appear. ![image alt text](image_2.png)

There are a number of key elements on the map:

1. **Solutions:** if you have access to more than one solution, you can change the active solution here.

2. **Venues:** if there are multiple venues in the current solution you can select the active one here.

3. **Menu:** navigate between the pages you have access to here. Pages that show content based on the selected venue are grouped first (teal background).

4. **Toggle map or list:** view locations on a map or display a list of locations.

5. **Filter and search:** search for locations and/or use one or more filters. Applies to both map and list.

6. **Floor selector:** change which floor is displayed on the map.

7. **Building:** all buildings belonging to the selected venue will be displayed on the map

8. **User menu:** change password or log out.

### Creating a Location

To create a new location, click anywhere on the map - do not worry if the position is a bit off, it can be moved afterwards.

After clicking, the create form will open over the left side of the map.

### Create/edit location form

**1 - Translated texts**:

Properties like name (required for default language), aliases, description and any custom defined values.

Aliases are alternative names used to match the location to searches.

**2 - Type & Categories**:

A location requires a type. Types define things like icon, template, label format and zoom levels the location is displayed at. Types are created and controlled elsewhere in the CMS - see more under Types

A location can belong to any number of categories. - see more under Categories

**3 - Location**:

Building, floor and Room ID (if applicable) can be set here. Building and floor will be set automatically but you should always verify that these properties are correct.

**4 - ****More:**

Active from/to define when the location is displayed and searchable in the app(s).

**5 - Image**:

Upload an image or provide a link (https). If you link to content outside the MapsIndoors CMS we can not take responsibility for changes or availability.

#### Save changes

Remember to save before clicking on another location or changing the page, otherwise your changes will be lost. To save the changes,  press the "Save"-button in the top of the location edit form.

### List

As previously mentioned you can toggle between map and list. Switching to list-view will present the locations in a table as shown below:![image alt text](image_3.png)

* To edit a location, click the pencil

* To edit multiple locations, tick each one

* Once locations are selected, a new toolbar appears:

![image alt text](image_4.png)

**Edit **opens a menu with some of the properties also seen when editing one location.

**Delete** deletes all the selected locations (a prompt will open to ensure a delete is requested).

## Types

At the types page you can manage the different types of locations.

![image alt text](image_5.png)

The page is split in two views:

* **Preview map**, this allows you to see the changes you make to viewing distance, visibility, icon and label format. The map should give a good indication of how the location is displayed in the end-user app.

* **Types table** displaying the name, icon path, icon preview, viewing distance, label format and whether the type is visible.

Once a type has been created and saved, it will show up in the type selector, when creating or editing a location. Remember to save before leaving the page, or changes will be lost.

## Categories

A location can belong to any number of categories. Once a category has been created it is selectable when creating or editing a location.

![image alt text](image_6.png)

The category page shows the existing categories with all translations. Click the pencil to edit a category or "Add category" to create a new one. In both cases the edit panel opens:

![image alt text](image_7.png)

You are required to fill in all languages. Google Translate is integrated to give you automatic suggestions filling in the name in one language.

# Admin

Admin allows access to the following sections:

1. **Network**

2. **App configuration**

3. **Users**

## Network

At this point the network page is really simple as it does not (yet) allow you to change anything but rather lets you see a visualisation of the underlying network that is used for navigation.

![image alt text](image_8.png)

Display settings will allow you to select what to display. Currently only entry points and doors are available.

The path size controls how thick the lines are and can be useful when zooming in or out.

## App configuration

This page contains basic settings for your standard app. If you do not use the standard app these settings can still be used for your tailored app but they are not required.

![image alt text](image_9.png)

Use this module to set the title, primary color and secondary color. It is recommended to set the correct colors even though this will not yet(!) change the color in the app(s), as we will be updating the apps to use these colors in the near future.

## Users

Here you can manage who has access to your content and with what access level.

![image alt text](image_10.png)

If you manage multiple solutions you can filter users by solution or search for a specific user. Admin users have a shield icon next to their username (email)

Use the pencil to edit or delete an existing user.

When creating a user provide the following information:

* **Email**: The user's email address, this is used as a username

* **User Role**: What role should be granted.

* **Content Access**: Which Content should be accessible.

![image alt text](image_11.png)

It is possible to create multiple users with the same role and access by typing multiple emails separated by "," (comma). Once a user is created an email will be sent with a temporary password.

# Glossary

* **Types**: are used for various Locations on the map, e.g. POIs, Rooms.  Having a unified representation for specific types of locations makes the system easier for users to engage with. The type defines the icon drawn on the map. Types are initially set via the data provided in the [Datasheet](https://docs.google.com/document/d/1Ew9hUNOBVwJ7gj21cDMvYHQzf9B-ZuGxJG1dyl3-Plg/edit#heading=h.39cxbb5fydt8)

* **Location**: A term used in the system for all Rooms and POI

* **POI**: "Point of interest" - is usually an object that isn’t tied to a room. E.g. Vending Machine, Locker, A Statue, ATM etc.

* **RoomID**: The number for the Room, more information can be found in the [Datasheet](https://docs.google.com/document/d/1Ew9hUNOBVwJ7gj21cDMvYHQzf9B-ZuGxJG1dyl3-Plg/edit#heading=h.39cxbb5fydt8)

* **Https**: This is needed for security and safety reasons.


text:
# Tutorial: using a HLS stream IP with DMA tutorial (Part 1: HLS design)

In a [previous tutorial](https://discuss.pynq.io/t/tutorial-pynq-dma-part-1-hardware-design/3133?u=cathalmccabe) I showed how to use the AXI DMA to stream data between memory to AXI stream interfaces. The DMA tutorial used an AXI stream FIFO to do a loopback test to show how to use the DMA. This tutorial will show how to create and add a HLS IP with an AXI input stream, and AXI output stream. This tutorial will be split into two parts. This *part 1* shows how to build the HLS IP, [part 2](https://discuss.pynq.io/t/tutorial-using-a-hls-stream-ip-with-dma-tutorial-part-2-vivado-design/3345?u=cathalmccabe) shows how to build the Vivado hardware design and [part 3](https://discuss.pynq.io/t/tutorial-using-a-hls-stream-ip-with-dma-part-3-using-the-hls-ip-from-pynq/3346?u=cathalmccabe) shows how to use the IP with PYNQ.

This tutorial is based on the **v2.7** PYNQ image and will use Vivado **2020.2** (required for PYNQ v2.7).

Vitis HLS **2020.2** will be used to build the HLS IP. This version has updated support for generating

If you are using a different PYNQ version you should be able to follow the same steps in this tutorial, but you should make sure you are using the supported version of Vivado for that PYNQ release.

The **PYNQ-Z2** board was used to test this design.

## References

If you are new to Zynq design, I recommend you review a [previous tutorial](https://discuss.pynq.io/t/tutorial-creating-a-hardware-design-for-pynq/145?u=cathalmccabe) which shows how to build a Vivado hardware design for use with PYNQ.

## Get the sources

Xilinx provide an open source repository of [Vitis HLS introductory examples](https://github.com/Xilinx/Vitis-HLS-Introductory-Examples). These examples can be extremely useful for beginners and experienced HLS designers. Rather than write code from scratch, I'm going to use the [using AXI stream with side channels](https://github.com/Xilinx/Vitis-HLS-Introductory-Examples/tree/2021.2/Interface/Streaming/using_axi_stream_with_side_channel_data) example from this repository. You can download the source files from this link.

## Creating and building the project

When you download the source files, you should have the kernel source file (example.cpp), the testbench (example_test.cpp) and the Tcl file (run_hls.tcl) to build the project.

You can use the Vitis HLS GUI or create a project, add the files, and build the IP. You can also use Vitis HLS on the command line to build the IP.

### Vitis HLS GUI

Skip this section if you prefer to use the command line flow.

* Create a new Vitis HLS project

![](./images/hls/new_vitis_hls_project.png)

* Add the **example.cpp** as a design file. This file includes the code we will synthesize to hardware.

  Make sure to browse and select the top level **example** function

![](./images/hls/new_proj.gif)

* Click next, and on the next screen add the **example_test.cpp** as a testbench file. This file only includes a testbench for the example() function

![](./images/hls/add_testbench.png)

* Select the Zynq part used on your board (or select by board if you installed board files). For the PYNQ-Z2 I select the *xc7z020clg200-1*.

![](./images/hls/select_part.png)

* Review the Solution Configuration. I will leave the default values. The default clock period is 10 ns (100 MHz). If you want to run your design at a different speed, you can change the period.  The final speed your design will run at will be determined when you build the project in Vivado.

![](./images/hls/project_configuration.png)

* Click **Finish** to create the project.

## Explore and modify the code

Under sources open *example.cpp*

![](./images/hls/explore_project.png)

The code has a function with one input AXI stream, and one output AXI stream.

```c++
    void example(hls::stream< ap_axis<32,2,5,6> > &A,
	hls::stream< ap_axis<32,2,5,6> > &B)
```

This is the main part of the kernel code :

```c++
    while(1)
    {
	A.read(tmp);
	tmp.data = tmp.data.to_int() + 5;
	B.write(tmp);
     if(tmp.last)
     {
         break;
     }
    }

```

The function will read data from an input stream (A), add 5 and write out the value. You would change this code to implement your own algorithm.

The following **PRAGMAS** will specify that A and B should be implemented as *AXI STREAM* interfaces (**axis**).

```c++
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE axis port=B
```

Vitis HLS will automatically determine if the streams are inputs or outputs based on how they are used in the code.

* Add the following **PRAGMA** to add an AXI Lite control interface to the IP and save *example.cpp*.

```c++
#pragma hls interface s_axilite port=return
```

This is optional and allows us to use a control register to start and stop the IP (and auto-start), and check if the IP is "done" (has completed). If you don't need to control the IP, you can skip this and just have a simple stream-in and stream-out which will automatically process any data it receives.

The pragma can be added after the other two *INTERFACE* PRAGMAs.

## Build the project

This is not intended to be a detailed tutorial on the HLS GUI. You can explore other options yourself, including running the testbench for this simple design. Remember that you modified the kernel code, so you will need to modify the self-checking testbench.

* Build the project by clicking the build button ![](./images/hls/build.png).

You can click on the thumbnail to view the full details from the synthesis report.

[![](./images/hls/synthesis_report_thumb.png)](./images/hls/synthesis_report_large.png)

### HW Interfaces

I won't go through all the sections of this report. Review the HW interfaces section to see the A_AXILITE interface we added by including with the PRAGMA we added to the source code. This is the 32-bit control interface.

Notice the AXIS (AXI STREAM) interfaces for *A* and *B*.

![](./images/hls/hw_interfaces.png)

Notice that a full AXI stream interface has been added. i.e. sideband signals have been included: TDEST, TID, TKEEP, TLAST, TSTRB, TUSER. The **TLAST** signal is optional in the AXI stream protocol and can be omitted by the HLS tools if it is not explicitly used as is done in this example. However, it is required by the AXI DMA so we need to make sure it is included for this example. This can be a common problem when using the AXI DMA, so you should make sure TLAST is included in your AXI Stream interfaces.

## Export the IP

* From the menu bar select **Solution > Export IP**

  I will leave the default values.

![](./images/hls/export_ip.png)

You can make some modifications by clicking on *Configuration*. These names will make the IP easier to identify or organise in the Vivado IP catalog.

![](./images/hls/hls_ip_configuration.png)

* Click **OK** to export the IP

You can monitor the progress of the export in the *Console*. This usually takes less than 1 minute.

```
Starting export RTL ...
...
Finished export RTL.
```

You can find the exported IP in your project directory inside **solution1/impl/ip**:

![](./images/hls/ip_directory.png)

Notice the zip file , which is an archive of all the other files and folders in this directory which make up the packaged IP. The files and folders make up the packaged IP including hardware source code, example software drivers and information about the IP. There are some extra temporary and other files (E.g. Tcl, log and journal files) here that aren't needed. The Zip file in this directory is an archive of the packaged IP which doesn't include those extra files. You can move the Zip file and extract it somewhere else or move it to another computer.

Inside the **./hdl/** folder, you will see the Verilog or VHDL source files that have been generated by the HLS tools. You don't usually need to look at the contents of these files. They are intended to be easily (human) readable HDL files.

In **./drivers/example_v1_0/src** open the *xexample_hw.h* file. This file includes the register map for the IP. This information will be accessible from the PYNQ *register_map* later.

For example, we can see the control register will be at offset 0x0. We would write a "1" to *bit 0* to start this IP, and we can readback this register and check *bit 1* to see if the IP has completed its operation. You will see how we do this from PYNQ later

```
// 0x0 : Control signals
//       bit 0  - ap_start (Read/Write/COH)
//       bit 1  - ap_done (Read/COR)
//       bit 2  - ap_idle (Read)
//       bit 3  - ap_ready (Read)
//       bit 7  - auto_restart (Read/Write)
//       others - reserved
...
// (SC = Self Clear, COR = Clear on Read, TOW = Toggle on Write, COH = Clear on Handshake)
```

### Command line

The source files downloaded from GitHub include a Tcl file (*run_hls.tcl*). This can be used to compile the source files, and export the IP (as we did above) from the command line.

The Tcl file sets a target device and a clock speed that will be used by Vitis HLS.

* Open *run_hls.tcl* and review the contents

```tcl
set_part  {xcvu9p-flga2104-2-i}
create_clock -period "200MHz"
```

You should set these values to your target part and target clock speed.

I will edit the Tcl file and change the part to 7020 for the PYNQ-Z2 and I will set the clock to 100MHz to match the settings we used in the GUI flow. You can choose a different part and clock speed.

```tcl
set_part  {xc7z020-clg400-1}
create_clock -period "100MHz"
```

You can see that there are a number of options based on the

* Modify the following: ```set hls_exec 3``` to select the option to build, run cosim, **AND** export the IP

Running cosim isn't required but you may find this interesting. You could comment this line out to save a small amount of build time.

## Open Vitis HLS command line

* For Windows open the *Vitis HLS Command Prompt* from the Windows start menu, or on Linux open a *terminal* where the Vitis HLS tools are already sourced.
* Change directory (*cd*) to the source file directory
* Run the following command to build the project and export the IP: ```vitis_hls -f run_hls.tcl```

This will build the project in the source directory. You can modify the paths and build from a different directory if you prefer.

You can find the files for the packaged IP in a similar directory to the GUI example:

`./proj_axi_stream_side_channel_data/solution1/impl/ip`

## Part 2

The [next part 2](https://discuss.pynq.io/t/tutorial-using-a-hls-stream-ip-with-dma-tutorial-part-2-vivado-design/3345?u=cathalmccabe) of this tutorial will show how to add this IP to a Vivado design and use the IP from PYNQ.

gha_language: Jupyter Notebook


text:
# qonwaygameoflife
Hackaton Madrid 2019 - Quantum Game of Life

This is three renditions of the quantum game of life - top left is the classical game of life, top right is the semi quantum version
and the bottom is a fully quantum kernel rendition. The fully quantum kernel uses a quantum cloning machine to bring cells to life as an average of the neighbouring cells.

continous boundary conditions!
you can draw live cells!

You can run the file by using
python life.py seedfile.txt
or python life.py lower_bound upper_bound
where lower bound and upper bound are floats between 0 and 1

Semi quantum simulation is based on https://arxiv.org/pdf/1902.07835.pdf

The quantum kernel is original.

repository: silky/qonwaygameoflife

repo_name: silky/qonwaygameoflife


text:
When you click play, you will choose your dungeon, Race (Elf, Dwarf, Human), and Class (Rogue, Fighter, Wizard). Based on your choices, you will have different attributes (Strength, Dexterity, Constitution, Wisdom, Charisma, Intelligence) and based on those attributes, you will be better or worse at different actions. Due to the random nature of dice, no 2 journeys will be exactly the same, even if you make the same choices. So, hop on in, click play, and pray that the dice gods and RNGesus smile upon you.

## Technologies Used
- Java 1.8
- JUnit 4.13.1
- SLF4J 1.7.12
- HTML/CSS/Javascript
- NodeJS 6.14.12
- React 17.0.2
- Redux 1.5.
- Axios 0.21.1
- spring-boot-starter-data-mongodb
- spring-boot-starter-web
- Spring Boot 2.4.5

## Features

### Implemented
- Create character/Customize
- Navigate throughtout dungeon
- Create combat system to fight monsters.
- Reach the end of the dungeon
- Query [Dungeons and Dragons api](https://www.dnd5eapi.co) for weapon and spell properties.

## Getting Started
To install the client and server applications, click on the following links to install the pre-requisite software.

1) [Intellij](https://www.jetbrains.com/help/idea/installation-guide.html)
2) [Visual Studio Code](https://code.visualstudio.com/download)
3) [JDK 1.8](https://docs.oracle.com/javase/8/docs/technotes/guides/install/install_overview.html)
4) [NodeJS](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)
5) [MongoDB](https://docs.mongodb.com/manual/installation/)

6) Open a terminal or powershell and clone this repo:

```git clone https://github.com/JavaPowerProgrammers/Project2_Team6.git```

7) Navigate to your home directory and enter the following command to start MongoDB:

```mongod --dbpath mongo-data/```

8) Open the Client application in VS Code, open a terminal in VS Code, and enter the follow commands:

```cd frontend```

```npm install axios```

```npm install @reduxjs/toolkit```

9) Open the Server application in Intellij and wait for gradle to finish building the application. Then, open BackendApplication.java in the package com.ex and click the green play button to the left of the main method.  This should launch the server listening for HTTP requests on port 8080.
10) Back in VS Code, in the terminal, type:

```npm start```

11) This automatically opens a tab in your default web browser at http://localhost:3000.  If not, then copy/paste the link in your browser, and you should see the following:

![Dungeons Master Home Screen](/DungeonsMasterHome.png?raw=true "Dungeons Master Home Screen")

## Usage

The game is fairly self-explanatory.  In the center sub-window, you have several options to choose from, such as "Attack Spider" and "Examine Dead Body in the Corner".  Clicking on any of these options leads to another screen where some interaction occurs.  Throughout the game, you may add items to your inventory.  These can be viewed by clicking on the "Inventory" button on the right hand side below the character stats display.

## Contributors
### Team Thundercats
- [David Houman](https://github.com/DHouman) - designed the game, contributed game assets, and contributed to backend design and testing.
- [Benjamin Bales](https://github.com/benjaminbales) - contributed to design and testing of backend Spring boot application, combined DND API data with backend data to maintain and update game state.
- [Rakeon Jerralds](https://github.com/LORDBLACKSMITH-ray) - developed frontend application using React and Redux.

## License

This project uses the following license:[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

repository: benjaminbales/DungeonMaster

repo_name: benjaminbales/DungeonMaster


text:
---
layout: post
title: Writing my first Github blog without installation of Jekyll locally!
tags: [jekyll]
---

I have been interested in writing blogs on Github for a while. However after poked around in some articles on the Internet, I gave up since they had always asked to setup Jekyll environment locally first (I have so many client devices...)

Until yesterday, after read one article [Build A Blog With Jekyll And GitHub Pages](http://www.smashingmagazine.com/2014/08/01/build-blog-jekyll-github-pages/), within one hour, I could set my blog site up in Github very easily. I really thank the author for sharing his work.

Next, I will explore the possibilities for using my blog repository with Eclipse (since I'm an Eclipse guy) and how to add comments, tags in my Github blog site:

* Using Eclipse
With Eclipse, I can use EGit to manage my blog repository, and I also installed a Markdown plugin from Eclipse markplace. But I haven't found a Jekyll plug in for Eclipse yet.

* Using comments
There are two lines in "_config.yml" file:
`# Your disqus shortname, entering this will enable commenting on posts`
`disqus:`
After I registed in disqus.com and got a shortname, I put it in above line, save and push it into Github. I waited for seconds and refreshed this blog page, I could see the commenting box. It's a quick setting and wonderful!!!

* Using Google Analytics
There are two lines in "_config.yml" file:
`# Enter your Google Analytics web tracking code (e.g. UA-2110908-2) to activate tracking`
`google_analytics: `
Same as using comments: register in Google Analytics site and get your tracking code, then add it after the colon.

* Using tags
It seems that currently there is no built-in support for tagging in jekyll without using plug-ins. Here is [the ticket](https://github.com/jekyll/jekyll/issues/867). However, I found that [this article](http://www.minddust.com/post/tags-and-categories-on-github-pages/) provides a workaround. I follow the steps in it to configure this blog site, this is the reason why you can see a "test tag" tag at the end of this blog:-)

So far so good without installation of jekyll locally.


text:
---
type: rule
archivedreason:
title: Do you know why SSW is using Jira?
guid: 26318aad-6bca-45df-bc7d-9ecba1293909
uri: do-you-know-why-ssw-is-using-jira
created: 2009-08-13T01:46:54.0000000Z
authors: []
related: []
redirects: []

---

To help track and prioritise Sys Admin tasks - It has the following key features that help us to work efficiently on the right things in a visible way:

<!--endintro-->

        1. User definable workflow
        2. User definable dashboards that can show all a user's tasks etc. or all tasks related to a particular project
        3. User definable links between issues
        4. User definable fields, screens, notifications (emails), statusus, resolutions, priorities, issue types, permissions, security, filters, displays and reports
        5. Versions whereby tasks can be assigned to versions which then form an SSW release plan
        6. Full visibility of everyone's work to everyone else

> > > ***Of all the features above the Dashboard is the one with greatest value.  We are able to configure dashbaords for individuals to know exactly what work they should be doing by when.  We can configure dashboards to summarise a projects status.  Consequently, non-power users of Jira can quicklty see what is going providing the visibility that we all need.***
> > >
> > >  Clearly other products (like TFS) have similar features and we will be using TFS for other projects


text:
---
title: Function config
category: Configuration
description: Lambda function configuration
sections:
  - 'runtime'
  - 'memory'
  - 'timeout'
  - 'concurrency'
  - 'layers'
  - 'policies'
  - 'architecture'
  - 'storage'
---

Configure individual Lambda function properties (e.g. `src/http/get-index/config.arc`).

## `@arc`

Use the `@arc` pragma to disable Architect features for a specific function:

- `env` - boolean, `true` (default) or `false` to skip loading local environment variables.
- `shared` - boolean, `true` (default) or `false` to skip hydrating project code from `@shared`.
- `views` - boolean, `true` (default) or `false` to skip hydrating project code from `@views`.

### Example `config.arc`

```arc
# src/function/dir/config.arc
@arc
env false
shared false
views false
```

## `@aws`

Configure the deployed function with [the `@aws` pragma](../project-manifest/aws) and the following properties:

- [`runtime`](#runtime) - string, Lambda runtime or alias: `nodejs16.x` (default), `python3.7`, `dotnetcore3.1`, `node`, `py`, `.net`, etc.
- [`memory`](#memory) - number, between `128` and `3008` MB in 64 MB increments.
- [`timeout`](#timeout) - number, in seconds (max `900`)
- [`concurrency`](#concurrency) - number, `0` to AWS account maximum (if not present, concurrency is unthrottled)
- [`provisionedConcurrency`](#provisionedconcurrency) - number, `1` to AWS account maximum (disabled by default)
- [`layers`](#layers) - Up to 5 Lambda layer ARNs; **must be in the same region as deployed**
- [`policies`](#policies) - Configure [AWS SAM policy templates](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-policy-templates.html)
- [`architecture`](#architecture) - [AWS Architecture](https://docs.aws.amazon.com/lambda/latest/dg/foundation-arch.html) for the function: `x86_64` (default) or `arm64`
- [`storage`](#storage) - number, between `512` (default) and `10240` MB. The function's ephemeral storage (`/tmp` file system).
- [`fifo`](#fifo) - boolean, `true` (default) or `false` to use `standard` SQS type

> Note: any function configurations made globally in your project manifest will be overridden by individual functions. For example, if your `app.arc` includes `memory 128`, and `src/http/get-index/config.arc` includes `memory 3008`, all functions except `get /` will be configured with 128MB of memory, while `get /` will override that global with 3008MB.

Read more about the [Lambda limits](https://docs.aws.amazon.com/lambda/latest/dg/limits.html) and [resource model](https://docs.aws.amazon.com/lambda/latest/dg/resource-model.html).

### Example `config.arc`

```arc
# src/function/dir/config.arc
@aws
runtime ruby
memory 256
timeout 3
concurrency 1
layers {ARN}
policies {ARN}
architecture arm64
```

### `runtime`

Configure Lambda function `runtime`:

- Like `nodejs16.x` (default), `nodejs14.x`, `python3.9`, `ruby2.7`
- Unsupported by Sandbox locally: `dotnetcore3.1`, `go1.x`, `java11`
- Or a runtime alias: `nodejs`, `python`, `ruby`, `.net`, `go`,  `java`
  - Aliases always use the default version of the matched runtime: `ruby` => `ruby2.7`.

See [@aws](../project-manifest/aws) and official [Lambda documentation](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html) for further reference.

```arc
@aws
runtime ruby
```

### `memory`

Configure Lambda function `memory` between `128` MB to `10240` MB, in `1` MB increments.

Memory size also directly correlates with CPU speed; higher memory levels are available in more capable Lambda clusters

```arc
@aws
memory 1024
```

### `timeout`

Configure Lambda function `timeout` in seconds to a max of `900`. (`15` minutes.)

The default timeout (if no value supplied) is `5`. (`5` seconds.)

```arc
@aws
timeout 30
```

### `concurrency`

Configure Lambda function concurrency. If not present concurrency is unthrottled.

Limit execution to one invocation at a time:

```arc
@aws
concurrency 1
```

> Tip: `@events` functions with `concurrency 1` create a queue-like primitive

Disable invocation by setting concurrency to zero:

```arc
@aws
concurrency 0
```

### `provisionedConcurrency`

Configure a Lambda's provisioned concurrency, which ensures the concurrency specified will always respond without coldstart. By default, Architect never sets provisioned concurrency, as it costs money whether actively in use or not.

> Note: be warned that this is one of the only features that starts costing money the moment it is enabled. Be especially careful when enabling this feature globally for your project, as it has the potential to run up your costs rather quickly. Please refer to [Lambda's provisioned concurrency pricing guide](https://aws.amazon.com/lambda/pricing/#Provisioned_Concurrency_Pricing).

Set a provisioned concurrency of 10 warm containers for your Lambda:

```arc
@aws
provisionedConcurrency 10
```

Pair with `concurrency` to guarantee a Lambda with 10 warm containers that never exceeds 100 concurrent requests:

```arc
@aws
concurrency 100
provisionedConcurrency 10
```

### `layers`

Configure Lambda function `layers` with max 5 Lambda Layer ARNs.

> Warning: Lambda Layers must be in the same region as they are deployed

Add one layer:

```arc
@aws
layers arn:aws:lambda:us-east-1:764866452798:layer:ghostscript:1
```

Or multiple layers:

```arc
@aws
layers
  arn:aws:lambda:us-east-1:764866452798:layer:chrome-aws-lambda:4
  arn:aws:lambda:us-east-1:145266761615:layer:pandoc:1
```

> Tip: find [awesome layers](https://github.com/mthenw/awesome-layers)

### `policies`

Configure custom Lambda function `policies`, enabling granular and specific privileges and access controls.

The `policies` setting takes one or more IAM policy ARNs or AWS-managed policy names (e.g. `AmazonDynamoDBFullAccess`).

Configuring one or more policies will completely remove all of Architect's default Lambda privileges. To restore Architect's default privileges, include a policy named `architect-default-policies`.

> Note: `architect-default-policies` is an internal Architect framework setting based on the least-privilege permissions specific to your project. It is not a managed / public IAM policy, and will not be found in your AWS console.

Lambda only has a single set of permissions (as defined by the AWS-managed `S3CrudPolicy` policy):

```arc
@aws
policies
  S3CrudPolicy
```

Lambda has both an AWS-managed policy (`S3CrudPolicy`) and all default Architect permissions:
```arc
@aws
policies
  S3CrudPolicy
  architect-default-policies
```

Terser single-line version of the above example:
```arc
@aws
policies S3CrudPolicy architect-default-policies
```

#### Additional resources

- [AWS IAM policy ARNs](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html#identifiers-arns)
- [Community-maintained list of AWS-managed policies](https://github.com/z0ph/MAMIP/tree/master/policies)

### `architecture`

Configure Lambda function [CPU `architecture`](https://docs.aws.amazon.com/lambda/latest/dg/foundation-arch.html) to be one of `x86_64` or `arm64`. This setting defaults to `x86_64` if not specified. `arm64` only available in supported AWS regions.

> Note: locally, Architect Sandbox executes the function's runtime with your machine's native architecture.

```arc
@aws
architecture arm64
```

### `storage`

Configure Lambda function temporary file system size between `512` MB and `10240` MB, in `1` MB increments. Defaults to `512` MB.

Ephemeral storage lives at `/tmp` in an AWS Lambda and will not persist between deployments. Amazon describes this disk space as a "scratch resource." Read more in [the AWS announcement post](https://aws.amazon.com/blogs/aws/aws-lambda-now-supports-up-to-10-gb-ephemeral-storage/).

```arc
@aws
storage 5000
```

### `fifo`

Configure SQS queue type to `fifo` (`true`, default) or `standard` (`false`).

```arc
@aws
fifo false
```

gha_language: JavaScript


text:
# Payment integrations for Laravel projects

[![Total Downloads](https://img.shields.io/packagist/dt/magedahmad/larapayment.svg?style=flat-square)](https://packagist.org/packages/magedahmad/larapayment) [![Latest Version](https://img.shields.io/github/v/tag/MagedAhmad/LaraPayment?sort=semver&label=version)](https://github.com/MagedAhmad/LaraPayment/)
[![Latest Version](https://img.shields.io/packagist/v/magedahmad/larapayment?label=version)](https://packagist.org/packages/magedahmad/larapayment/)
[![Development Branch](https://img.shields.io/badge/development_branch-master-green.svg)](https://github.com/MagedAhmad/LaraPayment/tree/master/)
[![Made With](https://img.shields.io/badge/made_with-php-blue)](/docs/requirements/)

A package to handle different payment gateways

## Installation

You can install the package via composer:

```bash
composer require magedahmad/larapayment
```
After installing, register the service provider inside config/app.php
```php
MagedAhmad\LaraPayment\LaraPaymentServiceProvider::class,
```
in terminal publish the migration and config file with
```bash
php artisan vendor:publish --provider="MagedAhmad\LaraPayment\LaraPaymentServiceProvider
```
and migrate the db table
```bash
php artisan migrate
```
in `app/config/larapament.php` you need to modify the API keys

## Usage

`paymob` instructions

``` php
use MagedAhmad\LaraPayment\LaraPayment;

$payment = new LaraPayment();

// payment gateway = paymob
// amount to pay in usd = 100$
$payment->make_payment("paymob", 100, $items);
```
default currency is `USD`, if you want you can change currency in constructor.
```php
$payment = new LaraPayment('EGP');
```

Response would return the `iframe` that you need to include in your blade file

after completing transaction you would be redirected to a route you specify in [paymob itself](https://docs.paymob.com/docs/transaction-callbacks)

in the function handling the callback url you need to verify the transaction.

example code:
```php
public function receive(Request $request)
{
    $laraPayment = new LaraPayment();

    $laraPayment->verify_paymob($request->order, $request->all()); // return status
}
```

And That's it !
### Testing

``` bash
composer test
```

### Changelog

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

## Contributing

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

If you discover any security related issues, please email<EMAIL_ADDRESS>instead of using the issue tracker.

## Credits

- [Maged Ahmed](https://github.com/MagedAhmad)
<!-- - [All Contributors](../../contributors) -->

## License

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

repository: MagedAhmad/LaraPayment

repo_name: MagedAhmad/LaraPayment


text:
# Changelog

## Sitemap v1.0.0-rc.1 February 23, 2020

* Remove duplicated key. Thanks to @isavita

## Sitemap v1.0.0-rc December 12, 2018

Release candidate

### Enhancements

* Refactored the adapter structure this change does not break any API and proformence is equal to the GenServer implemetion.
* Added pre_work/0 and post_work/0 hooks to adapter.

## Sitemap v0.1.0 October 27, 2018

### Enhancements

* Initial

repository: Schultzer/sitemap

gha_language: Elixir

gha_license_id: NOASSERTION

repo_name: Schultzer/sitemap


text:
<!-- add-breadcrumbs -->
# Le Fichier des Écritures Comptables [FEC]

Since 2014, a legal requirement makes it mandatory for companies operating in France to provide a file of their general accounting postings by fiscal year corresponding to an electronic accounting journal.

For ERPNext users this file can be generated using a report available if you system's country is France.

### Requirements

To generate the report correctly, your Chart of Account needs to be setup according to the french accounting rules.

All accounts need to have a number in line with the General Chart of Account (PCG) and a name.

The SIREN number of your company can be added in the "Company" doctype.

### CSV generation

You can generate the required CSV file by clicking on "Export" in the top right corner of the report.

### Testing Instructions

To test the validity of your file, the tax administration provides a testing tool at the following address: [Outil de test des fichiers des écritures comptables (FEC)](http://www.economie.gouv.fr/dgfip/outil-test-des-fichiers-des-ecritures-comptables-fec)

repository: Mangesh-Khairnar/foundation

repo_name: Mangesh-Khairnar/foundation


text:
# micromark-extension-gfm-task-list-item

[![Build][build-badge]][build]
[![Coverage][coverage-badge]][coverage]
[![Downloads][downloads-badge]][downloads]
[![Size][size-badge]][size]
[![Sponsors][sponsors-badge]][collective]
[![Backers][backers-badge]][collective]
[![Chat][chat-badge]][chat]

**[micromark][]** extension to support GitHub flavored markdown (GFM) [task list
items][].

## Contents

*   [What is this?](#what-is-this)
*   [When to use this](#when-to-use-this)
*   [Install](#install)
*   [Use](#use)
*   [API](#api)
    *   [`gfmTaskListItem`](#gfmtasklistitem)
    *   [`gfmTaskListItemHtml`](#gfmtasklistitemhtml)
*   [Types](#types)
*   [Compatibility](#compatibility)
*   [Security](#security)
*   [Related](#related)
*   [Contribute](#contribute)
*   [License](#license)

## What is this?

This package is a micromark extension to add support for GFM task list items.
It matches how task list items work on `github.com`.

## When to use this

In many cases, when working with micromark, you’d want to use
[`micromark-extension-gfm`][micromark-extension-gfm] instead, which combines
this package with other GFM features.

When working with syntax trees, you’d want to combine this package with
[`mdast-util-gfm-task-list-item`][mdast-util-gfm-task-list-item] (or
[`mdast-util-gfm`][mdast-util-gfm] when using `micromark-extension-gfm`).

These tools are all rather low-level.
In most cases, you’d instead want to use [`remark-gfm`][remark-gfm] with
[remark][].

## Install

This package is [ESM only][esm].
In Node.js (version 12.20+, 14.14+, or 16.0+), install with [npm][]:

```sh
npm install micromark-extension-gfm-task-list-item
```

In Deno with [Skypack][]:

```js
import {gfmTaskListItem, gfmTaskListItemHtml} from 'https://cdn.skypack.dev/micromark-extension-gfm-task-list-item@1?dts'
```

In browsers with [Skypack][]:

```html
<script type="module">
  import {gfmTaskListItem, gfmTaskListItemHtml} from 'https://cdn.skypack.dev/micromark-extension-gfm-task-list-item@1?min'
</script>
```

## Use

```js
import {micromark} from 'micromark'
import {
  gfmTaskListItem,
  gfmTaskListItemHtml
} from 'micromark-extension-gfm-task-list-item'

const output = micromark('* [x] a\n* [ ] b', {
  extensions: [gfmTaskListItem],
  htmlExtensions: [gfmTaskListItemHtml]
})

console.log(output)
```

Yields:

```html
<ul>
<li><input checked="" disabled="" type="checkbox"> a</li>
<li><input disabled="" type="checkbox"> b</li>
</ul>
```

## API

This package exports the following identifiers: `gfmTaskListItem`,
`gfmTaskListItemHtml`.
There is no default export.

The export map supports the endorsed
[`development` condition](https://nodejs.org/api/packages.html#packages_resolving_user_conditions).
Run `node --conditions development module.js` to get instrumented dev code.
Without this condition, production code is loaded.

### `gfmTaskListItem`

An extension for micromark to parse GFM task list items (can be passed in
`extensions`).

### `gfmTaskListItemHtml`

An extension to compile them to HTML (can be passed in `htmlExtensions`).

## Types

This package is fully typed with [TypeScript][].
There are no additional exported types.

## Compatibility

This package is at least compatible with all maintained versions of Node.js.
As of now, that is Node.js 12.20+, 14.14+, and 16.0+.
It also works in Deno and modern browsers.

## Security

This package is safe.

## Related

*   [`syntax-tree/mdast-util-gfm-task-list-item`][mdast-util-gfm-task-list-item]
    — support GFM task list items in mdast
*   [`syntax-tree/mdast-util-gfm`][mdast-util-gfm]
    — support GFM in mdast
*   [`remarkjs/remark-gfm`][remark-gfm]
    — support GFM in remark

## Contribute

See [`contributing.md` in `micromark/.github`][contributing] for ways to get
started.
See [`support.md`][support] for ways to get help.

This project has a [code of conduct][coc].
By interacting with this repository, organization, or community you agree to
abide by its terms.

## License

[MIT][license] © [Titus Wormer][author]

<!-- Definitions -->

[build-badge]: https://github.com/micromark/micromark-extension-gfm-task-list-item/workflows/main/badge.svg

[build]: https://github.com/micromark/micromark-extension-gfm-task-list-item/actions

[coverage-badge]: https://img.shields.io/codecov/c/github/micromark/micromark-extension-gfm-task-list-item.svg

[coverage]: https://codecov.io/github/micromark/micromark-extension-gfm-task-list-item

[downloads-badge]: https://img.shields.io/npm/dm/micromark-extension-gfm-task-list-item.svg

[downloads]: https://www.npmjs.com/package/micromark-extension-gfm-task-list-item

[size-badge]: https://img.shields.io/bundlephobia/minzip/micromark-extension-gfm-task-list-item.svg

[size]: https://bundlephobia.com/result?p=micromark-extension-gfm-task-list-item

[sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg

[backers-badge]: https://opencollective.com/unified/backers/badge.svg

[collective]: https://opencollective.com/unified

[chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg

[chat]: https://github.com/micromark/micromark/discussions

[npm]: https://docs.npmjs.com/cli/install

[skypack]: https://www.skypack.dev

[license]: license

[author]: https://wooorm.com

[contributing]: https://github.com/micromark/.github/blob/HEAD/contributing.md

[support]: https://github.com/micromark/.github/blob/HEAD/support.md

[coc]: https://github.com/micromark/.github/blob/HEAD/code-of-conduct.md

[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c

[typescript]: https://www.typescriptlang.org

[micromark]: https://github.com/micromark/micromark

[remark]: https://github.com/remarkjs/remark

[micromark-extension-gfm]: https://github.com/micromark/micromark-extension-gfm

[mdast-util-gfm-task-list-item]: https://github.com/syntax-tree/mdast-util-gfm-task-list-item

[mdast-util-gfm]: https://github.com/syntax-tree/mdast-util-gfm

[remark-gfm]: https://github.com/remarkjs/remark-gfm

[task list items]: https://github.github.com/gfm/#task-list-items-extension-

gha_language: HTML


text:
Hidden docs, needs work

For local Hyper-v Devbox notes

From https://raw.githubusercontent.com/silversword411/tacticalrmm-devdocs

Needs an official install_devbox.sh script

# Setup local devbox in hyper-v VM

## Install Ubuntu 20.04 LTS
Don't forget to

```bash
sudo apt-get updates && sudo apt-get upgrade
```

### Optional
Set all users in sudo group not to require password every time:

```bash
sudo visudo
```

Add this:

```
%sudo ALL=(ALL) NOPASSWD: ALL
```

## Download customized install script and tweak

Create folder to dump into

```bash
sudo mkdir /rmm
sudo chown ${USER}:${USER} -R /rmm
cd /rmm
```

Get dev install script
```bash
wget https://raw.githubusercontent.com/silversword411/tacticalrmm-devdocs/blob/main/install_devbox.sh
```

Edit, and search for `REPLACEMEWITHYOURFORKEDREPOURL`

and replace with your forked repo URL (example commented out below)

## Run it

```bash
./install_devbox.sh
```
## Watch for

![Image](images/installcomplete.png)

!!!Note Unlike regular installs, don't worry about the QR code

## Celebrate

![Image](images/celebrate.gif)

# Misc commands

### Start mkdocs on dev box

```bash
cd /rmm/api
source env/bin/activate
pip install --upgrade pip
pip install --upgrade setuptools wheel
pip install -r tacticalrmm/requirements-dev.txt
cd /rmm/docs
mkdocs serve
```

### Running tests locally

Prep and update

```bash
source /rmm/api/env/bin/activate
cd /rmm/api/tacticalrmm
pip install -r requirements.txt
```

Then run tests

```bash
python manage.py test
```

## Misc Notes

### Spinning up front end web interface in development

```bash
cd /web
npm run serve
```

repository: igorjs/tacticalrmm

branch_name: refs/heads/develop

repo_name: igorjs/tacticalrmm


text:
# winston-application-insights-transport

Application insights transport for winston >= 3.x

## Usage

```
import { ApplicationInsightsTransport } from 'winston-application-insights-transport';

// {...}

const logger = winston.createLogger({
  transports: [
    new ApplicationInsightsTransport({
      key: "__INSTRUMENTATION_KEY__",
    }),
  ]
});
```


text:
# insulin
A minimal repository manager
`insulin` is an anabolic hormone

## Usage

Calling `insulin` without a command will show the proper help
If no argument is passed to a command, it will take args from stdin

- `insulin add` a url to the internal repository list
- `insulin query` will grep the list of repositories with the input
- `insulin get` files from the repositories
- `insulin search` files on the repositories

`-d` controls the target data folder