text:
{
  "title": "ICYMI: So. Much. Useful. Stuffs. @SuzanBaert on scoped dplyr verbs! #rstats #AmstRday #satRday @satRdays_org 📽 https://t.co/mLrNvjBaYG https://t.co/3WpmaqGQwo",
  "date": "2018-09-11"
}

# rstats

> **Dallin Webb** (@webb_dallin; 40/7): ICYMI: So. Much. Useful. Stuffs. @SuzanBaert on scoped dplyr verbs! #rstats #AmstRday #satRday @satRdays_org
📽 https://t.co/mLrNvjBaYG https://t.co/3WpmaqGQwo  [↪](https://twitter.com/dataandme/status/1039585877767450624)

<!-- -->

> **Mara Averick** (@dataandme; 37/8): 👩🍳 Chef @LVaudor makes an #rstats omelette with pipes…
🍳 "Use pipes to chain instructions"
https://t.co/MlMJSFx37G https://t.co/48u6qhQPTv  [↪](https://twitter.com/dataandme/status/1039559722800693248)

<!-- -->

> **rOpenSci** (@rOpenSci; 31/6): Loving the `prettycode` package by @GaborCsardi!
>
I often want to look at the function body in the terminal and it bums me out to read it with base::print when @rstudio has spoiled me with its beautiful syntax highlighting.
>
Prettycode printing makes it, well, pretty! 💅
>
#rstats https://t.co/fvLJodK83q  [↪](https://twitter.com/dataandme/status/1039538332777238528)

<!-- -->

> **Bothe（￣□￣；）** (@geschichtenpost; 26/13): Export a data frame to Excel with the writexl package: write_xlsx(mydata, "mydata.xlsx") https://t.co/xKJ4qQYh87 #rstats  [↪](https://twitter.com/dataandme/status/1039544093406154752)

<!-- -->

> **rOpenSci** (@rOpenSci; 26/11): Attn ecologists, the `landscapemetrics` #rstats package is a drop-in replacement for FRAGSTATS https://t.co/IJSSoXlF4h @msciain @MHKHesselbarth @jakub_nowosad  [↪](https://twitter.com/dataandme/status/1039591327720202241)

<!-- -->

> **Liza Dosso** (@lizadosso; 25/3): Wanna see what #rstats, #python, #sql, and #spreadsheets courses are going to be launched soon or that we are currently in development on @DataCamp? Check out our Trello board now including who will be teaching these courses as well! https://t.co/q9WvU77J53  [↪](https://twitter.com/dataandme/status/1039595544669110272)

<!-- -->

> **Maëlle Salmon 🐟** (@ma_salmon; 19/6): Want your RMarkdown to be accessible to even *more* people? ✅
"Accessible R Markdown Documents" by @ajrgodfrey
https://t.co/1ArCm9AsOa #rstats  [↪](https://twitter.com/dataandme/status/1039616575211487233)

<!-- -->

> **Stanisław M. Stanuch** (@dziennikarz; 18/3): I got a nifty new #rstats hex sticker! 😀 Thanks @dmi3k!
>
Read more about my 💙 for the {polite} 📦 at https://t.co/xEZGODFQ4S
>
PS: this is @LockeData chibi-me by @OzLocke 😎
>
#webscraping https://t.co/5pK2EALwQ3  [↪](https://twitter.com/dataandme/status/1039543350175707137)

<!-- -->

> **rOpenSci** (@rOpenSci; 15/4): Week 24 of #TidyTuesday looking at household ownership of cats and dogs. I calculated non-pet owners and compared them against cat and dog owners per state using the geofacet package. I like this package as it allows for easy comparisons.
#tidyverse #rstats #r4ds #dataviz https://t.co/K5g0wYIeJA  [↪](https://twitter.com/dataandme/status/1039538411948765184)

<!-- -->

> **Kendra Kaiser** (@kendraekaiser; 14/3): My first data package was accepted by @datadryad for our upcoming publication in freshwater biology! All #rstats scripts for reproducible analysis will be available on my github page too. Keep an eye out if you're into size spectra and knowing what happens to bugs in AMD streams!  [↪](https://twitter.com/dataandme/status/1039593413543452672)

<!-- -->

> **Luke Wylie** (@LWylie_; 13/2): Fundamental web etiquette rules for my API/webscraping workshop... @hrbrmstr and any other #rstats folks, anything I should add to educate people? https://t.co/OwsjTb0l2t  [↪](https://twitter.com/dataandme/status/1039606109890400256)

<!-- -->

> **Mario Cortina Borja** (@cortina_borja; 11/4): Another great set of ⚡ talks last night #rladies #rstats
- @alackles Morphospaces w/ #Geomorph
- @annakopoulos Intgrt python&R w/ #Reticulate
- @VFFrans LitSurvy w/ #Bibliometrix
- @LaurenWisnieski GLM w/ #glmulti
- @janani137 Cool #dataviz resourcs @R_Graph_Gallery
💰@msuvets https://t.co/X0heJJlKpD  [↪](https://twitter.com/dataandme/status/1039530709818519553)

<!-- -->

> **Aedin Culhane** (@AedinCulhane; 10/8): [blog] "What have these birds been studied for? Querying science outputs with R"
>
Featuring these #rstats 📦 s
>
🔍 @rOpenSci's {fulltext} for querying the scientific literature
>
🔍 @DataONEorg's {dataone} for querying DataONE's metadata
>
https://t.co/a3zGhOPJwC by @ma_salmon https://t.co/bt1UBpIHo9  [↪](https://twitter.com/dataandme/status/1039539142206533632)

<!-- -->

> **marcoscan** (@marcoscan; 9/7): Hi @UBC #Rstats folks. The #UBC R study group is having their first meeting of the fall tomorrow (Wed) at 12:30 pm in Koerner Library (Room 216). Come join us, say hello and help decide the topics we should cover this year!
>
https://t.co/RXzCyjGJhf
>
cc @minisciencegirl @allancho  [↪](https://twitter.com/dataandme/status/1039546784685551616)

<!-- -->

> **Adnan** (@tapundemek; 9/1): Achievement unlocked: created a draft #eval report entirely in #rstats and my boss liked it so much he's asking how we can implement more of them in the future!  [↪](https://twitter.com/dataandme/status/1039610341011861504)

<!-- -->

> **Jose Manuel Vera** (@verajosemanuel; 8/4): Useless fun with #rstats stringr and rebus packages and the babynames dataset: finding girls born the same year as my daughter with names that rhyme with hers https://t.co/Oj8OasAadi  [↪](https://twitter.com/dataandme/status/1039541265120026625)

<!-- -->

> **CRAN Package Updates** (@CRANberriesFeed; 8/2): Absolutely loving #SMLP2018 so far - highly recommend for any #PhD students in #psycholinguistics who want a really good foundation in #rstats & linear mixed models - and set in beautiful Berlin - what more could you want?! https://t.co/80IgZS0Tj6  [↪](https://twitter.com/dataandme/status/1039549638053953536)

<!-- -->

> **Chester Ismay** (@old_man_chester; 7/4): 🗺 multiple regionalizations, one map…
"sabre: or how to compare two maps?" 📐 @jakub_nowosad
https://t.co/NX41FU7LXt #rstats #rspatial https://t.co/IOl90tPXrN  [↪](https://twitter.com/dataandme/status/1039623887343022080)

<!-- -->

> **hughbartling** (@hughbartling; 7/4): Getting started simulating data in #RStats: some helpful functions and how to use them
>
https://t.co/9LoxY8WdOd  [↪](https://twitter.com/dataandme/status/1039546661557731330)

<!-- -->

> **R Weekly Live** (@rweekly_live; 7/2): Why purrr instead of [a-z]apply?  @niklzgames slam dunked it and showed us in the excellent purrr workshop #earlconf #rstats https://t.co/n6uDQzqGRE  [↪](https://twitter.com/dataandme/status/1039544237136797696)

<!-- -->

> **Ryan Bahia** (@ryanbahia; 6/2): ¡Este jueves 6to #Meetup #RLadiesCDMX gracias a la colaboración con @LNPP_MX!
Tendremos una plática con @guzmart_je sobre R y #MatrimonioIgualitario y un taller  de introducción a #RStats con @TeresaOM
📅: 13 Sep
⏰: 19:30
📍: @CIDE_MX
Registro: https://t.co/WwCnpUMW0n https://t.co/FsI20ziPWE  [↪](https://twitter.com/dataandme/status/1039574293376524289)

<!-- -->

> **Beck Frydenborg** (@beckfrydenborg; 6/2): Stop using Data Frames in #rstats .  Good read on tibbles and #tidyverse  here: https://t.co/wF8TvTwEBS  [↪](https://twitter.com/dataandme/status/1039543771317366784)

<!-- -->

> **R-Ladies Santa Fe** (@RLadiesSantaFe; 6/1): New blog post: Going from a human readable Excel file to a machine-readable csv with {tidyxl} https://t.co/63lZM8fmAk #rstats #datascience #tidyxl  [↪](https://twitter.com/dataandme/status/1039604517287931904)

<!-- -->

> **Aly Baumgartner** (@kyrietree; 6/1): I had a great time with @RLadiesELansing last night at my first meetup! #rstats #rladies 😊 https://t.co/hm7ASDmKlj  [↪](https://twitter.com/dataandme/status/1039596437212999680)

<!-- -->

> **NumFOCUS** (@NumFOCUS; 5/2): Don't miss the inaugural NumFOCUS Project Forum for Core Developers and Critical Users, Sept 24-25 in NYC
>
View the schedule: https://t.co/Sp3zu3JzcG
>
Register: https://t.co/jFH6g4XUHW
>
Spread the word!
#opensource #Sustainability #pydata #data #science #python #rstats #julialang https://t.co/okF4ntMZXS  [↪](https://twitter.com/dataandme/status/1039572056524894209)

<!-- -->

> **Erdi** (@barcanumbers; 5/2): En breve arranca el encuentro!
>
#RLadies #rstats #RLadiesArgentina https://t.co/Ic3uetAkhs  [↪](https://twitter.com/dataandme/status/1039599810477797376)

<!-- -->

> **Joris Meys** (@JorisMeys; 5/2): After-unconfUROS beers #rstats https://t.co/EeorDOZK9T  [↪](https://twitter.com/dataandme/status/1039588218646278144)

<!-- -->

> **Simon Garnier** (@sjmgarnier; 5/2): YESSSS I'm so happy I could cry.  #DataScience #data #datasets #rstats #Python spreading the world to all data friends. https://t.co/h1ffdI3hnP  [↪](https://twitter.com/dataandme/status/1039587691623587840)

<!-- -->

> **Justin Pomeranz** (@NotAPomegranite; 5/1): Video: R and Python in in Azure HDInsight https://t.co/YnhNB9JFkN #rstats #DataScience  [↪](https://twitter.com/dataandme/status/1039620921785561089)

<!-- -->

> **rOpenSci** (@rOpenSci; 4/4): When @GuitarsUnited followed us, we saw it as an opportunity to put some of our #rstats and #dataviz skills to the test. Plus its #ArtsEdWeek and what better way to celebrate than mixing beautiful graphs, guitars  🎸and analytics! https://t.co/ep67TnUiyc  [↪](https://twitter.com/dataandme/status/1039536400071368704)

<!-- -->

> **CRAN Package Updates** (@CRANberriesFeed; 4/2): Fun with cartograms: cats seem to be a Northeast and Midwest thing; dogs more geographically diverse #tidytuesday #rstats https://t.co/JGvySO7lNp  [↪](https://twitter.com/dataandme/status/1039558646269587456)

<!-- -->

> **ThinkR** (@thinkR_fr; 4/1): Me: Ugh, why does this journal have to be so strict and specific with figure formatting?
>
Also Me: Hooray, I am an #rstats #ggplot2 wizard now!  [↪](https://twitter.com/dataandme/status/1039618111861870593)

<!-- -->

> **CRAN Package Updates** (@CRANberriesFeed; 4/1): "potential-tribble" actually makes sense in an #rstats context https://t.co/iz6o1ZVfa5  [↪](https://twitter.com/dataandme/status/1039564937885085697)

<!-- -->

> **tj mahr 🍕🍍** (@tjmahr; 3/4): Give back to the #opensource #datascience tools you use every day — become a NumFOCUS member!
>
https://t.co/LMVvo5lYZ4
>
#python #pydata #julialang #rstats #bayesian #bigdata #machinelearning #dataviz #openscience #opendata https://t.co/J9ykdv11k8  [↪](https://twitter.com/dataandme/status/1039597272387014656)

<!-- -->

> **Benjamin Gowan** (@Benjaming_G; 3/1): For what things R programming language is better than Python? #rstats https://t.co/ZJPntc5Pe6  [↪](https://twitter.com/dataandme/status/1039535779494559749)

<!-- -->

> **fonzie** (@OilGains; 3/0): @FC_rstats The problem I have always had with this is that, not having access to their data makes it difficult to initially conceive an abstract or proposal.  [↪](https://twitter.com/dataandme/status/1039600333033533443)

<!-- -->

> **CRAN Package Updates** (@CRANberriesFeed; 2/6): #MoviePass @ $HMNY $.02 with Over 3 Million Paid Subscribers & Targets 5M By Year’s End ||<<< https://t.co/vDIAjSV0JR  <  $AAPL $GOOGL $MSFT $FB $NVDA $NFLX #MachineLearning  #DataScientists #abdsc #BigData #DataScience #DataViz #AI #Python #Rstats #Coding https://t.co/ysudsXapkp  [↪](https://twitter.com/dataandme/status/1039548155732340738)

<!-- -->

> **Zach Koehn** (@JZKoehn; 2/2): @DataONEorg @ma_salmon [blog] This post is the 5/5 of our #rstats series "The birder's guide to rOpenSci"! 🐣 🗺
>
In the last weeks, research software engineer @ma_salmon explored our packages suite 🔨 🔧 with use cases involving birds! 🐦
>
https://t.co/tKN0H97Rwz
>
📸 by J-Cl Salmon https://t.co/MlFG0IdW02  [↪](https://twitter.com/dataandme/status/1039539478069559297)

<!-- -->

> **One R Tip a Day** (@RLangTip; 2/1): Went to Starbucks to get caffeine. As soon as I walked up, the barista took my jar and made the best iced chai before I said a word. As he handed the jar back, he smiled and said “it has light ice”. Gotta love being a regular!
>
And now #gradingjail followed by #rstats. #365teas https://t.co/RKt6xhdH4T  [↪](https://twitter.com/dataandme/status/1039625806551674880)

<!-- -->

> **Las Vegas Tours Markets** (@VegasTours; 2/1): Waiting for all the R-Ladies.
#R #RLadies #rstats #RLadiesArgentina #RLadiesLatAm https://t.co/7p8WRLxVp1  [↪](https://twitter.com/dataandme/status/1039599332092198916)

<!-- -->

> **FC rSTATS** (@FC_rstats; 2/1): Who wrote the anti-Trump New York Times op-ed? Using #rstats tidytext to find document similarity  https://t.co/Nd5s0FT9tH  [↪](https://twitter.com/dataandme/status/1039589883126267904)

<!-- -->

> **François** (@Read_The_Dung; 2/1): Thanks @sheilasaia #rstats #water #DataScience #dataviz https://t.co/2amwKodAYu  [↪](https://twitter.com/dataandme/status/1039589204924162048)

<!-- -->

> **Dr William McKibbin** (@McKibbinUSA; 2/1): Rainfall doesn't look as bad as I thought for Winston-Salem. But Raleigh eastward, yikes. 15 inches expected in 5 day forecast (yellow) #ncwx
>
interactive map in jupyter notebook / #python (viridis colormap). I'll detail tools @NACIS conference #GIS #maps #datascience #rstats https://t.co/cWcdBoWtwi  [↪](https://twitter.com/dataandme/status/1039582851010846725)

<!-- -->

> **WinVector LLC** (@WinVectorLLC; 2/1): @ma_salmon @bikesRdata @Team_eBird @sebpardo @StrimasMackey ICYMI, post 3/5 "What's this bird? Classify old natural history drawings with R"
>
Showcasing our #rstats 📦 s
>
{magick} for 🖼 manipulation
>
{tesseract} for OCR
>
{cld2}&{cld3} for language detection
>
{taxize} for taxonomic name resolution
>
https://t.co/BiQMS7ubAQ by @ma_salmon https://t.co/9Ei8lL08kK  [↪](https://twitter.com/dataandme/status/1039540978414047232)

<!-- -->

> **Matt Southward** (@matt_southward_; 2/1): Fabulous resource for joining data in R #Rstats, thank you
@JennyBryan
https://t.co/lH6bG15nLd  [↪](https://twitter.com/dataandme/status/1039531451937697792)

<!-- -->

> **Emily Bovee** (@ebovee09; 2/0): Amazing event! submit your ideas! https://t.co/NtbxHk2Rn3  [↪](https://twitter.com/dataandme/status/1039597981761253382)

<!-- -->

> **Jung Byun** (@smiwjung; 1/2): New Weekly Energy Report https://t.co/KcC8oQ5x4X
#WER.  Made entirely with #rstats and Rmarkdown.  Bonus: all the charts made with ggplot2.
https://t.co/1jWC688qJn  [↪](https://twitter.com/dataandme/status/1039603951719645184)

<!-- -->

> **Antonello Pareto 🇪🇺** (@AntoViral; 1/2): Roxygen problem related to collate field. #rstats devs that need this (eg when using S4 classes in your  package), switch back to roxygen 6.0.1 for now. Windows users that don't want to  build from source, I made a binary. More info on how to install:
>
https://t.co/0ohnVm8qob  [↪](https://twitter.com/dataandme/status/1039582201963339782)

<!-- -->

> **Indrajeet Patil** (@patilindrajeets; 1/1): @vivekhsridhar @biorxivpreprint @SimonGingins @dom_roche My purpose is to make an opencv-based "pipelinable" tracker for #rstats (à la swistrack), with a one-command installation process.  [↪](https://twitter.com/dataandme/status/1039626595970023427)

<!-- -->

> **RLadiesCDMX** (@RLadiesCDMX; 1/1): A reproducible #dataviz example of animatedly tracking #Typhoon (or #Hurricanes ) using #rstats and #gganimate.  Check out my latest post: https://t.co/zoAf3xr1lF
>
Plus, please be prepared and stay safe during #HurricaneFlorence . https://t.co/75qOQDJaxr  [↪](https://twitter.com/dataandme/status/1039609120821837824)

<!-- -->

> **rOpenSci** (@rOpenSci; 1/1): About 20% of the times I compile my blogdown #rstats site, the compiled main index.Rmd is empty and doesn't use any of the Hugo templates (but all other pages are fine). I fix it by recompiling the site until it works, but it's the strangest thing ever and idk why it happens https://t.co/Sfcnwkevvm  [↪](https://twitter.com/dataandme/status/1039597970822332416)

<!-- -->

> **susan bayes** (@sue_bayes; 1/1): #rdata #rstats: Hydrochemical composition data set of Llobregat river basin water (NE Spain) - https://t.co/DlYn5GvrA7  [↪](https://twitter.com/dataandme/status/1039590245543624704)

<!-- -->

> **#rstats data** (@rstatsdata; 1/1): Using DataCamp’s Autograder to Teach R #rstats #datascience #edtech #bigdata https://t.co/QWvwEzTnzo https://t.co/bXjrBlHXer  [↪](https://twitter.com/dataandme/status/1039583985716920321)

<!-- -->

> **Joris Meys** (@JorisMeys; 1/1): Warning for #rstats devs: don't update to #roxygen2 6.1.0 if your pkg is not the root of your project. It gives permission denied errors by apparently trying to use file() on a dir. Highly annoying. Bug report when I am home.  [↪](https://twitter.com/dataandme/status/1039545987000348672)

<!-- -->

> **psolymos** (@psolymos; 1/1): Retweet count for specific tweet
>
#rstats
#dataviz
>
https://t.co/lMVak10Xmq  [↪](https://twitter.com/dataandme/status/1039574637909352449)

<!-- -->

> **CRAN Package Updates** (@CRANberriesFeed; 1/1): Alors @william_the_sir, je pense voici pour toi. Ceci n'est pas une  omelette! #rstats #pipes https://t.co/RwWrpifLSa  [↪](https://twitter.com/dataandme/status/1039565448646455296)

<!-- -->

> **CRAN Package Updates** (@CRANberriesFeed; 1/1): The highly anticipated v0.2.0 of bfw (Bayesian Framework for Computational Modeling) #rstats package is alive on #CRAN.
>
Please contact me if you're interesting in adding a specific module (e.g., longitudinal models). https://t.co/cGYOAjywPh  [↪](https://twitter.com/dataandme/status/1039555540400177153)

<!-- -->

> **Jesus_Rivera** (@Rivera_Jesus3; 1/1): How to Download Modis Images Using R: An Operational Implementation With R studio #datascience #gis #opendata #rstats  https://t.co/VOHdgTyRRP  [↪](https://twitter.com/dataandme/status/1039546853237432321)

<!-- -->

> **Fabio Votta** (@FabioFavusMaxim; 1/1): O @cepesp desenvolveu nos últimos meses uma ferramenta com mapas interativos sobre a distribuição espacial dos votos de diferentes candidatos.
É uma ferramenta muito útil para analistas, jornalistas e curiosos.
Confiram em: https://t.co/t8PTrqlEIo
>
#eleicoes2018  #rstats  [↪](https://twitter.com/dataandme/status/1039545414461149186)

<!-- -->

> **FC rSTATS** (@FC_rstats; 1/1): Learning the ropes with @gitlab CI for #rstats package testing, here is a first cut #git #gitlab #ci #gitlabci https://t.co/6eiS1rKPk0  [↪](https://twitter.com/dataandme/status/1039529198677893122)

<!-- -->

> **sbtr.** (@visualsent; 1/0): @FC_rstats @barcanumbers Yep, fair point. Can be reflected in feasibility of proposals. The sample this year should help with that. Any additional questions you have with the event, don't hesitate to give me a shout.  [↪](https://twitter.com/dataandme/status/1039601828848185344)

<!-- -->

> **Samuel M. Jenness** (@SamuelJenness; 0/2): Keep up to date on the latest from @NumFOCUS sponsored projects — sign up for the NumFOCUS newsletter: https://t.co/zFSHYVs2oK
>
#python #pydata #julialang #rstats #bayesian #bigdata #machinelearning #dataviz #openscience #opendata #opensource #oss #datascience https://t.co/BEiHuYrEus  [↪](https://twitter.com/dataandme/status/1039601055603077120)

<!-- -->

> **Joseph Stachelek** (@__jsta; 0/1): Posted by David Smith, now on R-bloggers: Video: R and Python in in Azure HDInsight #rstats https://t.co/Kpu2sRn5yL  [↪](https://twitter.com/dataandme/status/1039623939243294720)

<!-- -->

> **Suzan Baert** (@SuzanBaert; 0/1): CRAN updates: ggcorrplot https://t.co/y5W2NTKSXT #rstats  [↪](https://twitter.com/dataandme/status/1039620127585693696)

<!-- -->

> **R-Ladies East Lansing** (@RLadiesELansing; 0/1): CRAN updates: hBayesDM https://t.co/y5W2NTKSXT #rstats  [↪](https://twitter.com/dataandme/status/1039589935345479680)

<!-- -->

> **rOpenSci** (@rOpenSci; 0/1): New CRAN package did with initial version 1.1.2 https://t.co/0QdYpl5sce #rstats  [↪](https://twitter.com/dataandme/status/1039574819828842496)

<!-- -->

> **Tiffany Timbers** (@TiffanyTimbers; 0/1): CRAN updates: HMMEsolver jubilee steemr https://t.co/y5W2NTKSXT #rstats  [↪](https://twitter.com/dataandme/status/1039605053236105216)

<!-- -->

> **Dana Linnell Wanzer, MA** (@danawanzer; 0/1): CRAN updates: mixKernel https://t.co/y5W2NTKSXT #rstats  [↪](https://twitter.com/dataandme/status/1039529623107903488)

<!-- -->

> **Katie Ssssss🐍** (@katiesegreti; 0/1): CRAN updates: sport https://t.co/y5W2NTKSXT #rstats  [↪](https://twitter.com/dataandme/status/1039574843283439620)

<!-- -->

> **Holly Joseph** (@drhollyjoseph; 0/1): CRAN updates: bfw https://t.co/y5W2NTKSXT #rstats  [↪](https://twitter.com/dataandme/status/1039559744887943168)

<!-- -->

> **Mara Averick** (@dataandme; 0/1): CRAN updates: iml KrigInv malariaAtlas tsibble https://t.co/y5W2NTKSXT #rstats  [↪](https://twitter.com/dataandme/status/1039544685323321345)

<!-- -->

> **Mark van der Loo** (@markvdloo; 0/1): Has anyone had any luck downloading zipped files from a website and extracting one (very large) file into R? Could use some guidance. #rstats  [↪](https://twitter.com/dataandme/status/1039604127293222912)

<!-- -->

> **R-bloggers** (@Rbloggers; 0/1): How To: Spiral line drawings with the tidyverse and gganimate.
https://t.co/WkCPxyuxd3 #rstats  [↪](https://twitter.com/dataandme/status/1039603630679179265)

<!-- -->

> **Omni Analytics Group** (@OmniAnalytics; 0/1): Excited to see this! #rstats https://t.co/uMtYu7X6H3  [↪](https://twitter.com/dataandme/status/1039602042845777925)

<!-- -->

> **Kevin Cohen** (@KevinBCohen; 0/1): I typed this into R but it didn't work. Any ideas? #rstats https://t.co/eMzpOtG3Ze  [↪](https://twitter.com/dataandme/status/1039593747581952000)

<!-- -->

> **Francois Dion** (@f_dion; 0/1): Video: R and Python in in Azure HDInsight @MicrosoftR #rstats #datascience https://t.co/EZNSdVJdyM  [↪](https://twitter.com/dataandme/status/1039592896247123968)

<!-- -->

> **Wenlong Liu** (@tianya0423; 0/1): Maybe I am missing something but is it the intended behavior of ncvar_put that it switches the order of the dimensions if I let it write an array in one piece to a file, e.g. if I don't loop over one dimension? #rstats #netcdf  [↪](https://twitter.com/dataandme/status/1039586143975694336)

<!-- -->

> **Andrew Heiss, PhD** (@andrewheiss; 0/1): Hey #rstats twitter, I'm somehow influential in setting up a list for R users to join/follow on mastodon (which you should join. Hell we could even set up an instance focused around R...).
>
Anyway should a list of users be called rstats or just R?  [↪](https://twitter.com/dataandme/status/1039585440960065536)

<!-- -->

> **Phil McAleer** (@McAleerP; 0/1): Najbardziej angażujący tweet o #rstats w ciągu ostatnich 12h. https://t.co/KNCz777wyM  [↪](https://twitter.com/dataandme/status/1039578373083869184)

<!-- -->

> **Øystein Olav Skaar** (@motsegn; 0/1): More reasons to try data.table https://t.co/0RiSCV6V85
#rstats  [↪](https://twitter.com/dataandme/status/1039578210583818242)

<!-- -->

> **Geo.Appsmith** (@geoappsmith; 0/1): Wow that was fast!
https://t.co/hvKwXjE3G7
#Rstats #data.table #datatable  [↪](https://twitter.com/dataandme/status/1039557707408203776)

<!-- -->

> **Arthur Fisch** (@atrfisch; 0/1): @bjornstenberg Because it was mainly a learning exercise for me to practice my data manipulation/visualisation skills using the #rstats programming language  [↪](https://twitter.com/dataandme/status/1039574755681202176)

<!-- -->

> **NumFOCUS** (@NumFOCUS; 0/1): created some helper functions for the Azure SMR package that Microsoft created for Azure and R.
https://t.co/KdrLeM9ydC
>
#rstats #Azure  [↪](https://twitter.com/dataandme/status/1039573997481017344)

<!-- -->

> **Thomas Hütter** (@DerFredo; 0/1): Indeed it has #RStats #fisheRies https://t.co/0GTIaG00CH  [↪](https://twitter.com/dataandme/status/1039566499147657221)

<!-- -->

> **CRAN Package Updates** (@CRANberriesFeed; 0/1): @PNAS announced no more print issues from 2019.  When journals go online, can there be greater support for supplements that can be linked/searched, more support for video, reproducible interactive #rstats/data analysis methods section? Maybe even Rmarkdown or RShiny supplements. https://t.co/A5DsowSBbm  [↪](https://twitter.com/dataandme/status/1039551273471815680)

<!-- -->

> **CRAN Package Updates** (@CRANberriesFeed; 0/1): Introducing compareBars: Simplify comparative bar charts https://t.co/NLgzBAkgk1 #rstats https://t.co/k303halQLT  [↪](https://twitter.com/dataandme/status/1039546871570673668)

<!-- -->

> **WinVector LLC** (@WinVectorLLC; 0/1): @ma_salmon @bikesRdata @Team_eBird @sebpardo @StrimasMackey ICYMI, post 4/5 "What are these birds? Complement occurrence data with taxonomy and traits information"
>
Feat. our #rstats 📦s
>
{taxize}, taxonomic toolbelt for R
>
{traits}, access to species traits data
>
https://t.co/Y2tIhiEsP7 by @ma_salmon
>
Gif: local species taxonomic tree https://t.co/CShyPfdv5z  [↪](https://twitter.com/dataandme/status/1039541708873031680)

<!-- -->

> **David Smale** (@committedtotape; 0/1): @ma_salmon @bikesRdata ICYMI, 2/5 post of the series: What birds are observed near Radolfzell? Bird occurrence data in #rstats 📊 🐦
>
Using &comparing our 2 📦 s accessing @Team_eBird's data
>
{rebird} by @sebpardo
>
{auk} by @StrimasMackey
>
https://t.co/lGA4jXIVDf by @ma_salmon https://t.co/5GyGp0hSMr  [↪](https://twitter.com/dataandme/status/1039540194796396544)

<!-- -->

> **Andy Troiano** (@andytroiano; 0/1): @ma_salmon ICYMI, 1/5 post of the birder series: Where to go observe birds in Radolfzell? 🗺 An answer with #rstats and open data 🐦
>
https://t.co/dVMb0ZPlBD
>
By @ma_salmon and @bikesRdata https://t.co/lvr3JzuIOl  [↪](https://twitter.com/dataandme/status/1039539938759401474)

<!-- -->

> **Jessleena Suri** (@jessleena; 0/1): "The robust estimate [is] variously known as the Huber sandwich estimator, White's estimate, the Horvitz-Thompson estimate, the working independence variance , the infinitesimal jackknife, and the WLW estimate" #rstats #coxph At least its not an infinitesimal sandwich :)  [↪](https://twitter.com/dataandme/status/1039533587597385728)

<!-- -->

> **FC rSTATS** (@FC_rstats; 0/1): Finding myself wishing on a daily basis that the matrix was real so that I could plug in and get a crash course in landscape ecology & handling spatial data with #rstats, read every paper in my Mendeley, and then solve all the issues of scale causing my brain to implode! #phdlife  [↪](https://twitter.com/dataandme/status/1039529361416904704)

<!-- -->

> **Mara Averick** (@dataandme; 0/0): Way to go, you all! Making it easy for the rest of us to learn #rstats AND #Bayesianstats https://t.co/dedm2PFoZW  [↪](https://twitter.com/dataandme/status/1039632474391896066)

<!-- -->

> **Mara Averick** (@dataandme; 0/0): @CentristLad I love Spanish and English, and #RStats  [↪](https://twitter.com/dataandme/status/1039632228408590337)

<!-- -->

> **Bruno Rodrigues** (@brodriguesco; 0/0): @ryanbahia @barcanumbers @barcanumbers 👀👀👀👀 To request a one-match F24 sample, please contact pro*at*https://t.co/698szu3J4l  [↪](https://twitter.com/dataandme/status/1039605003336515584)

<!-- -->

> **NumFOCUS** (@NumFOCUS; 0/0): @barcanumbers fair point... @ryanbahia might be able to share some data spec sheets to help people develop their ideas.  [↪](https://twitter.com/dataandme/status/1039601282284249089)

<!-- -->

repository: batpigandme/twitter-blogdown

repo_name: batpigandme/twitter-blogdown


text:
<!---
title: Installation
-->

#### 1. Composer
Add the `laradic/assets` package to your composer.json dependencies.
```json
"require": {
    "laradic/assets": "1.0.*"
}
```

#### 2. Laravel
Register the `AssetsServiceProvider` in your application, preferably in your `config/app.php` file.
```php
'providers' => [
    Laradic\Assets\AssetsServiceProvider::class
]
```

###### Optional: Add the facade

```php
'facades' => [
    'Asset' => Laradic\Assets\Facades\Asset::class
]
```

#### 3. Optional: Publish config
```sh
php artisan vendor:publish --provider=Laradic\Assets\AssetsServiceProvider
```

license: MIT

repository: laradic/assets

branch_name: refs/heads/master

extension: md

license_type: permissive

repo_name: laradic/assets


text:
Role Pure – Controllers
=========
This playbook set the controllers with all the necessary options to set pure as default
cinder block storage.

** It has two variables in the defaults: **
  -	IP ADDRESS for the PURE STORAGE
  -	PURE_TOKEN from PURE

** It prompts for the PROJECT ID  **

** It prompts for the token **

How To
-------
To run this playbook just create a new hosts files with the IP addres of the controllers
and run the

  `ansible-playbook -i hosts pure.yaml`

License
-------

Apache

Author Information
------------------

Remo Mattei

repository: itlinux/pure-storage

repo_name: itlinux/pure-storage


text:
# poker-currency
Have cards but don't have chips? This might be a temporary solution. Built with firebase.

##Usage:
1. Perform a clone on this repo. ``git clone https://github.com/arbazsiddiqui/poker-currency``
2. Run ``app.html`` file on browser.
3. Start Betting.

####Note :
As this uses a single instance of database and is realtime, only a table can be used at a time. Hence use your own [firebase](https://www.firebase.com/) collection for this.

repository: arbazsiddiqui/poker-currency

repo_name: arbazsiddiqui/poker-currency


text:
orchestraNOW

  orchestraNOW is an orchestra service management platform. Users can create Services (rehearsal or concerts) and assign repertoire (Works) to those Services.

## Features
- Sign in/Sign up option with authenticated password
- Integrated Google OmniAuth
- Full CRUD capabilities for service and works
- Calendar and List view of all services

## Tech Stack
This web app makes use of the following:
- Ruby [2.6.1]
- Rails [~> 6.0.3] - MVC Web Framework
- SQLite3 [~> 1.4] - Database
- BCrypt [~> 3.1.7] - Gem for encryption
- Simple-Calendar

## Installing

- Clone this repo to you7r local machine `git clone <this-repo-url>`
- run `bundle install` to install required dependencies
- run `rails db:create` to create a database locally.
- run `rails db:migrate` to create tables into the database.
- run `rails db:seed` to create seed data.
- run `rails s` to run the server.

## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

## License
[MIT](https://choosealicense.com/licenses/mit/)


text:
# CryptoGraph
CryptoGraph - is an app to observe the most popular cryptocurrencies such as Bitcoin and Etherium. CryptoGraph is taking info from
the 3 markets(Bitstamp, Bitfinex and CEX) and building a graph that shows asks, bids and last prices of the cryptocurrencies from the
each market.
To create this app I used this list of modules:

Alamofire - to work with markets' API

DropDown - to create a drop down list with which the user can choose which crypto and from which market he wants to observe the graph

SwiftyJSON - to parse JSON requests into Swift

Charts - to draw the graph

You can find more information about the app on the Wiki page.

repository: DanSytnikov/MobileApp

gha_license_id: MIT

repo_name: DanSytnikov/MobileApp


text:
# Contributing

You can contribute to this repository by reporting [issues](https://github.com/jacwright/date.format/issues) and creating [pull requests](https://github.com/jacwright/date.format/pulls).

## Testing
Testing can be done with the [date.format.testing](https://github.com/kevzdev/date.format.testing) library.

## Contributors
- [Jacob Wright (jacwright)](https://github.com/jacwright)
- [Kevin (kevzdev)](https://github.com/kevzdev)
- [Amol Udage (amoludage)](https://github.com/amoludage)
- [Matvei Fisenko (MatveiFisenko)](https://github.com/MatveiFisenko)
- [Spasa Mihajlović (spasa)](https://github.com/spasa)
- [Thomas Hägglund (sirmadman)](https://github.com/sirmadman)
- [Edvin Rab (BlackWiCKED)](https://github.com/BlackWiCKED)
- [Cloady (cloady)](https://github.com/cloady)
- [Ciprian Murariu (ciprianmp)](https://github.com/ciprianmp)

Thanks to Tomas Theunissen, Haravikk and D’n Russler for contributing before the repository was published on GitHub.


text:
# stdjson

stdjson converts an application output to **stdout** and **stderr** into json format with each line getting an index number.

## Install

stdjson is written in go and can therefore be installed via: ``go get github.com/mfmayer/stdjson`` (go must be installed).

## Usage of stdjson

```
$ ./stdjson
./stdjson: missing command
Usage: ./stdjson COMMAND ARGUMENTS...
 Try : ./stdjson ls -al
```

## Example

Reason for writing this tool was logging of service output to e.g. azure log analytics. Microsoft's log analytics agent is able to log any output (stdout & stderr) into the azure log analytics container logs and stores line by line with a timestamp in milliesecond resolution. Unfortunately, this can cause the order of output to be lost if the output is faster, e.g. in case of a panic when outputting a stack trace.

For this reason stdjson wraps every line of output into the following json format: ``{"i": <line index>,"d": <line data/content>}``

```
$ ./stdjson ls -al
{"d":"total 2688","i":"1"}
{"d":"drwxrwxr-x 3 mayema mayema    4096 Aug 18 13:07 .","i":"2"}
{"d":"drwxr-xr-x 8 mayema mayema    4096 Aug 18 12:57 ..","i":"3"}
{"d":"drwxrwxr-x 8 mayema mayema    4096 Aug 18 12:57 .git","i":"4"}
{"d":"-rw-rw-r-- 1 mayema mayema     269 Aug 18 12:57 .gitignore","i":"5"}
{"d":"-rw-rw-r-- 1 mayema mayema    1071 Aug 18 12:57 LICENSE","i":"6"}
{"d":"-rw-rw-r-- 1 mayema mayema    2322 Aug 18 13:07 main.go","i":"7"}
{"d":"-rw-rw-r-- 1 mayema mayema     135 Aug 18 12:57 README.md","i":"8"}
{"d":"-rwxrwxr-x 1 mayema mayema 2722213 Aug 18 13:07 stdjson","i":"9"}
```

repository: mfmayer/stdjson

repo_name: mfmayer/stdjson


text:
## kool docker

Creates a new container and runs the command in it.

### Synopsis

This command acts as a helper for docker run.
You can start with options that go before the image name
for docker run itself, i.e --env='VAR=VALUE'. Then you must pass
the image name and the command you want to execute on that image.

```
kool docker [options] [image] [command] [flags]
```

### Options

```
  -T, --disable-tty           Deprecated - no effect
  -e, --env stringArray       Environment variables
  -h, --help                  help for docker
  -p, --publish stringArray   Publish a container’s port(s) to the host
  -v, --volume stringArray    Bind mount a volume
```

### Options inherited from parent commands

```
      --verbose   increases output verbosity
```

### SEE ALSO

* [kool](kool.md)	 - kool - Kool stuff

repository: jeanleite/kool

repo_name: jeanleite/kool


text:
# Backstage demo helm charts

This folder contains Helm charts that can easily create a Kubernetes deployment of a demo Backstage app.

To deploy it chose a DNS name where this demo will live and run

```
git clone https://github.com/spotify/backstage.git
cd contrib/chart/backstage
helm install backstage . \
--set appConfig.app.baseUrl="https://backstage.mydomain.com" \
--set appConfig.backend.baseUrl="https://backstage.mydomain.com" \
--set appConfig.backend.cors.origin.baseUrl="https://backstage.mydomain.com" \
```

This command will deploy the following pieces:

- Backstage frontend
- Backstage backend with scaffolder and auth plugins
- (optional) a PostgreSQL instance
- lighthouse plugin
- ingress

After a few minutes Backstage should be up and running in your cluster under the DNS specified earlier.

Make sure to create the appropriate DNS entry in your infrastructure. To find the IP address run

```bash
$ kubectl get ingress
NAME                HOSTS   ADDRESS         PORTS   AGE
backstage-ingress   *       <IP_ADDRESS>   80      17m
```

> **NOTE**: this is not a production ready deployment.

## Customization

### Custom PostgreSQL instance

Configuring a connection to an existing PostgreSQL instance is possible through the chart's values.

First create a yaml file with the configuration you want to override, for example `backstage-prod.yaml`:

```bash
postgresql:
  enabled: false

appConfig:
  app:
    baseUrl: https://backstage-demo.mydomain.com
    title: Backstage
  backend:
    baseUrl: https://backstage-demo.mydomain.com
    cors:
      origin: https://backstage-demo.mydomain.com
    database:
      client: pg
      connection:
        database: backstage_plugin_catalog
        host: <host>
        user: <pg user>
        password: <password>
lighthouse:
  database:
    client: pg
    connection:
      host: <host>
      user: <pg user>
      password: <password>
      database: lighthouse_audit_service

```

For the CA, create a `configMap` named `<helm_release_name>-postgres-ca` with a file called `ca.crt`:

```
kubectl create configmap my-backstage --from-file=ca.crt"
```

Now install the helm chart:

```
cd contrib/chart/backstage
helm install -f backstage-prod.yaml my-backstage .
```

### Different namespace

To install the charts a specific namespace use `--namespace <ns>`:

```
helm install -f my_values.yaml --namespace demos backstage .
```

### Disable loading of demo data

To deploy backstage with the pre-loaded demo data disable `backend.demoData`:

```
helm install -f my_values.yaml --set backend.demoData=false backstage .
```

## Troubleshooting

#### Unable to verify signature

```
Backend failed to start up Error: unable to verify the first certificate
    at TLSSocket.onConnectSecure (_tls_wrap.js:1501:34)
    at TLSSocket.emit (events.js:315:20)
    at TLSSocket._finishInit (_tls_wrap.js:936:8)
    at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:710:12) {
  code: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE'
```

This error happens in the backend when it tries to connect to the configured PostgreSQL database and the specified CA is not correct. The solution is to make sure that the contents of the `configmap` that holds the certificate match the CA for the PostgreSQL instance. A workaround is to set `appConfig.backend.database.connection.ssl.rejectUnauthorized` to `false` in the chart's values.

<!-- TODO Add example command when we know the final name of the charts -->


text:
# Your Store site E2E tests

## Table of Contents

- [Getting Started](#getting-started)
- [Project structure](#project-structure)
- [Prepare environment](#prepare-environment)
- [Running AT from command line](#running-at-from-command-line)

## Getting Started

Check you have already installed:
For mac
1. [Chrome](https://www.google.com/chrome/) is a default browser for running AT

## Project structure

Test project contains following directories:

* **data** - a place for test data (constants, test data generator and etc.)
* **pages** - describes base system components
* **suites** - all tests for the project

## Prepare environment

Install JS dependencies:
```bash
npm install
```
## Running AT from command line

To run test case, say:
```bash
npm run test
```

For more running options see [WebdriverIO documentation](http://webdriver.io/guide/testrunner/gettingstarted.html)

branch_name: refs/heads/main


text:
# WindowCapture2D
Library for capturing and displaying windows in real time with UnrealEngine.

Captures in specified window units.

You can also capture windows hidden behind other windows.

Captured windows can be attached to meshes or UMG in 3D space.

![ed99cc1218473bb4accc3c5d217454c4](https://user-images.githubusercontent.com/8191970/59857826-b31e1400-93b4-11e9-80df-13e39a0e1ec6.gif)

## UE4 Marketplace
[https://www.unrealengine.com/marketplace/ja/slug/windowcapture2d](https://www.unrealengine.com/marketplace/ja/slug/windowcapture2d)

# Quick Start
Please check "show engine content" and "show plugin content"

![showcontent](https://user-images.githubusercontent.com/8191970/60973786-dc9edf80-a363-11e9-8eb4-c01deb0135c5.png)

## When Actor is placed
1. Put "WindowCapturePlane" at the level

![setactor](https://user-images.githubusercontent.com/8191970/60768239-afe98e80-a0fd-11e9-989f-445cf6779517.png)

## When Widget is placed
1. Place "WindowCaptureUMG" in UMG

![umg](https://user-images.githubusercontent.com/8191970/60768308-ffc85580-a0fd-11e9-8e2f-7d99cc2893c5.png)

1. Set various properties

![image](https://user-images.githubusercontent.com/8191970/59692049-18400100-921f-11e9-9e09-c945c744c05c.png)

| Property | Description |
|:-----------|:------------|
| Capture Target Title | Title string of the window that you want to capture |
| Title Matching Window Search | Title string matching method |
| Frame Rate | Interval to capture the window (fps) |
| Check Window Size | When on, changes the texture size by monitoring the window size change <br/> If enabled, the load will be high|
| Cut Shadow| Remove the shadow of the window from the capture target |

# Title Matching Window Search

| Type | Description |
|:-----------|:------------|
| PerfectMatch | Must match exactly with the input string　|
| ForwardMatch | Compare with the input string in a forward match|
| PartialMatch | Compare with the input string in a partial match|
| BackwardMatch | Compare with the input string in a backward match|
| RegularExpression | Compare using regular expressions |


text:
# US economy adds more than 100K jobs, unemployment rises slightly

Published at: **2019-11-01T07:39:14+00:00**

Author: **CNN Newsource**

Original: [Fox 4](https://www.fox4now.com/news/national/us-economy-adds-more-than-100k-jobs-unemployment-rises-slightly)

The US economy added 128,000 jobs in October. The unemployment rate rose slightly to 3.6%.
The United States lost 36,000 manufacturing jobs last month, impacted primarily by the GM strike.
Overall, the October report was stronger than expected, beating economists' far more dour forecasts. The 40-day GM strike, which took some 50,000 autoworkers out of the workforce, was expected to serve as a bigger drag on the employment market.
The unemployment rate ticked up from 3.5% in September, but it remains near a 50-year low.
Although the report was strong, hiring has slowed down in 2019 compared with 2018, averaging just 167,000 jobs per month versus 223,000 last year.
Stocks didn't react much to the jobs report. Dow futures were up about 30 points.

license: Unlicense

repository: dsadlollioygjmzvcxv/tdc-exported

repo_name: dsadlollioygjmzvcxv/tdc-exported


text:
# Docker and ECS

### Creating your project from the mkt-docker-template project

#### Initial Setup

Setup a new project in your gitlab island and copy all of the files in mkt-template-docker (except the .git directory) to it

In this example well use **mkt-myisland** as the island name (no that's not your actual island name, don't use it), and **mkt-tenant-splitter** as the project name (see previous comment).

change all reference from mkt-myisland to mkt-myisland and all references to mkt-docker-template to mkt-tenant-spitter, you'll have to update the following files:
* build.gradle files
* cloudformation.json
* environments.yaml
* gradle.properties
* settings.gradle

change the cloudGroup name in gradle.properties to cloudGroup=MyIsland

change the Mappings/Constants/InstanceValues/ECRImageName to mkt-myisland/mkt-tenant-splitter

edit the Dockerfile and update the maintainer name and the context-root in the HEATHCHECK CMD

    ARG REPO
    ARG RELEASE=latest
    FROM ${REPO}mkt-docker/alpine-jdk8-min:${RELEASE}
    ARG RELEASE=unknown
    ARG VERSION=unknown
    ARG PROJECT=unknown
    MAINTAINER cibuild<EMAIL_ADDRESS>    LABEL name=${PROJECT}                           \
      description="CI360 Template Microservice" \
      vendor="SAS Institute Inc."               \
      version=${VERSION}                        \
      revision=${REVISION}                      \
<EMAIL_ADDRESS>
    USER sassrv

    COPY service/ /install/citng/service/

    EXPOSE 8080

    HEALTHCHECK CMD /usr/bin/curl --fail http://localhost:8080/tenantSplitter/commons/ping || exit 1

    CMD ["java", \
    "-XX:+UnlockExperimentalVMOptions",  \
    "-XX:+UseCGroupMemoryLimitForHeap", \
    "-XX:MaxRAMFraction=1", \
    "-XshowSettings:vm", \
    "-Dlogging.config=classpath:logback-spring.xml", \
    "-jar", \
    "/install/citng/service/service.jar"]

log in to our Amazon Docker Registry (ECR)

    $ aws ecr get-login --no-include-email --region us-east-1 | /bin/bash

create the initial repository for your image:

    $ gradlew ecrInit

this will create an ECR repository named <island-name/project-name> which in this case will be mkt-myisland/mkt-tenant-splitter, check it out in the aws console

#### Build the Application and create a docker image

build an image from the Dockerfile

just run:

    $ gradlew build

if you've built docker images before, and want to map that knowledge to what the gradlew build is doing, you can do it manually

    $ cd mkt-tenant-splitter-service/build/docker
    $ export PROJECT=mkt-tenant-splitter
    $ export VERSION=2001
    $ export REPO=952478859445.dkr.ecr.us-east-1.amazonaws.com/
    docker build \
    --build-arg REPO --build-arg VERSION --build-arg PROJECT \
    -t rzingle/baldur-ts .

note you can specify --build-arg directly:
* --build-arg VERSION=2001

or you can set an environment variable and just specify the variable name:
* --build-arg VERSION (with VERSION set as an environment variable in the local shell as shown above)

check it out, you have a local docker image:

    $ docker images | grep myisland
    mkt-myisland/mkt-tenant-splitter latest e4cef8f9fabb 4 minutes ago 149MB

You're curious and are wondering, has it been pushed to the ECR Repo yet?

    $ aws ecr list-images --repository-name mkt-myisland/mkt-tenant-splitter
    {
    "imageIds": []
    }

No it hasn't - because we are using stackPrefix=null. Once we are deploying to a cloudformation stack and ECS it will populate the ECR registry.

Now lets try hitting the tenant splitter endpoint that lists our aws S3 buckets from our app running in IntelliJ:

    $ curl http://localhost:8080/tenantSplitter/s3/bucketlist
    [angularspa.ci.tc, aws-athena-query-results-952478859445-us-east-1, aws-athena-query-results-952478859445-us-west-2, aws-codestar-us-east-1-952478859445, ....

Lets do the same with our docker container:

    $ docker run --rm -it -p8888:8080 mkt-myisland/mkt-tenant-splitter
    $ curl http://localhost:8888/tenantSplitter/s3/bucketlist
    {"errorCode":0,"details":["correlator: 0f04f683-fafa-4694-a62e-bd78e0f456fd","traceId: b127c96eb2332214", ....

It doesn't work. Our docker container can't see our laptop's file system so it can't read our aws credentials in **~/.aws/credentials**. This is ok when it's running in ECS or EKS because the infrastructure will inject credentials for us. We can do this locally by mounting the credentials as a docker volume when we start the container.

    $ docker run --rm -it -p8888:8080 -v ~/.aws:/home/sassrv/.aws  mkt-myisland/mkt-tenant-splitter
    $ curl http://localhost:8888/tenantSplitter/s3/bucketlist
    [angularspa.ci.tc, aws-athena-query-results-952478859445-us-east-1, aws-athena-query-results-952478859445-us-west-2,

Now it works! The flag **-v ~/.aws:/home/sassrv/.aws** mounts our laptop's home folder/.aws folder under a folder in the container named /home/sassrv/.aws. We're running our application as user sassrv so the aws sdk looks here when running through the credential lookup chain.

#### Run your application in ECS
Now we can do a full build and deploy to ECS and our application will run as a docker container on one of our ECS environments. You can either kick this off as a Jenkins job or via gradle with something like this:

    $ gradlew all -Dstack=baldur -DbuildType=personal -Downer=razing<EMAIL_ADDRESS>-x test -x integrationTest

Your cloudformation.json file has a parameter named ECSStackName which tells you which ECS environment your container will be deployed to.

repository: randyzingle/tools

gha_language: Python

repo_name: randyzingle/tools


text:
# Strava Gear Hours

This small utility helps me determine when the suspension shocks on my bike
need servicing based on usage data from [Strava][].

[Strava]: https://www.strava.com/

Strava allows you to associate gear (e.g. a bike) with your rides and can
report the total distance they have been used for. However the service
intervals for most shocks are detailed in hours-used rather than distance
travelled.

## Install

Assuming that you have [Go][] installed, `GOPATH` setup, and this repo using
`go get`:

    go install

[Go]: https://golang.org

## Setup

1. Ensure that you have a [bike added][] and associated to activities in Strava.
1. Generate an API token by [creating an application][] in Strava.
1. Export the access token as an environment variable (noting preceding
   space to prevent it being stored in your shell history):

         export STRAVA_ACCESS_TOKEN=abc123

[bike added]: https://www.strava.com/settings/gear
[creating an application]: https://www.strava.com/settings/api

## Usage

If a component has been in use since you first started using the bike:

    strava-gear-hours -bike "my bike"

If you've serviced a component since you first started using the bike then
you can specify the date of last service:

    strava-gear-hours -bike "my bike" -since "2015-12-31"

## Notes

Strava allows you to associate components (shocks, chain, etc.) to gear.
That could provide a better way of keeping track of the last service. Except
that components aren't currently exposed by the [Strava API][].

[Strava API]: https://strava.github.io/api/

repository: dcarley/strava-gear-hours

repo_name: dcarley/strava-gear-hours


text:
# repeat-string [![NPM version](https://badge.fury.io/js/repeat-string.svg)](http://badge.fury.io/js/repeat-string)

> Repeat the given string n times. Fastest implementation for repeating a string.

## Install with [npm](npmjs.org)

```bash
npm i repeat-string --save
```
### Install with [bower](https://github.com/bower/bower)

```bash
bower install repeat-string --save
```

## Usage

### [repeat](index.js#L34)

Repeat the given `string` the specified `number` of times.

* `string` **{String}**: The string to repeat
* `number` **{Number}**: The number of times to repeat the string
* `returns` **{String}**: Repeated string

**Example:**

```js
var repeat = require('repeat-string');
repeat('A', 5);
//=> AAAAA
```

## Benchmarks

Repeat string is significantly faster than [repeating](https://github.com/sindresorhus/repeating).

```bash
# 20,000x
  repeat-string.js x 16,619,408 ops/sec ±1.05% (92 runs sampled)
  repeating.js x 5,991,724 ops/sec ±0.62% (98 runs sampled)

# 2,000x
  repeat-string.js x 17,284,768 ops/sec ±0.71% (94 runs sampled)
  repeating.js x 6,828,993 ops/sec ±0.87% (96 runs sampled)

# 250x
  repeat-string.js x 16,241,986 ops/sec ±0.78% (93 runs sampled)
  repeating.js x 7,281,492 ops/sec ±0.76% (95 runs sampled)

# 50x
  repeat-string.js x 16,447,301 ops/sec ±1.12% (96 runs sampled)
  repeating.js x 8,933,633 ops/sec ±0.64% (98 runs sampled)

# 5x
  repeat-string.js x 16,363,515 ops/sec ±1.09% (98 runs sampled)
  repeating.js x 12,164,964 ops/sec ±0.74% (98 runs sampled)
```

**Run the benchmarks**

Install dev dependencies:

```bash
npm i -d && node benchmark
```

## Author

**Jon Schlinkert**

+ [github/jonschlinkert](https://github.com/jonschlinkert)
+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)

### Other javascript/node.js utils

Other projects that I maintain:

  - [assemble](https://github.com/jonschlinkert/assemble)
  - [remarkable](https://github.com/jonschlinkert/remarkable)
  - [less.js](https://github.com/jonschlinkert/less.js)
  - [handlebars-helpers](https://github.com/jonschlinkert/handlebars-helpers)
  - [verb](https://github.com/jonschlinkert/verb)
  - [arr](https://github.com/jonschlinkert/arr)
  - [arr-diff](https://github.com/jonschlinkert/arr-diff)
  - [array-last](https://github.com/jonschlinkert/array-last)
  - [array-slice](https://github.com/jonschlinkert/array-slice)
  - [array-sum](https://github.com/jonschlinkert/array-sum)
  - [arrayify-compact](https://github.com/jonschlinkert/arrayify-compact)
  - [compact-object](https://github.com/jonschlinkert/compact-object)
  - [delete](https://github.com/jonschlinkert/delete)
  - [for-in](https://github.com/jonschlinkert/for-in)
  - [for-own](https://github.com/jonschlinkert/for-own)
  - [has-any](https://github.com/jonschlinkert/has-any)
  - [has-value](https://github.com/jonschlinkert/has-value)
  - [is-number](https://github.com/jonschlinkert/is-number)
  - [is-plain-object](https://github.com/jonschlinkert/is-plain-object)
  - [mixin-deep](https://github.com/jonschlinkert/mixin-deep)
  - [mixin-object](https://github.com/jonschlinkert/mixin-object)
  - [object-length](https://github.com/jonschlinkert/object-length)
  - [omit-empty](https://github.com/jonschlinkert/omit-empty)
  - [reduce-object](https://github.com/jonschlinkert/reduce-object)

## License
Copyright (c) 2015 Jon Schlinkert
Released under the MIT license

***

_This file was generated by [verb](https://github.com/assemble/verb) on January 24, 2015._

repository: arcanis/yarn

gha_language: JavaScript

gha_license_id: NOASSERTION

repo_name: arcanis/yarn


text:
# PDImaging
**This was a fun side project I had last year, however, it might have been somewhat too ambitious. I might come back to this project later once I am finished with my masters degree.**

**I am now finished with my masters degree, but I have other project's I'm working on and a job. This was a fun project, but don't expect updates in the immediate future.**

If I ever pick this up, I'll have to rewrite it for Python 3.X.

## A Python toolkit for variational and PDE based image processing
This toolbox is an attempt to fill that hole and uses a combination of Cython and C++ to speed things up. One big advantage of this toolbox is that all functions have references to where the respective algorithms were first published, as well as what source I've used for the algorithm to improve the ease at which scientists use this toolbox.

## Current project state
This project is written on the side of my studies and are only, thus updates will be sporadic and it is not near any stat of completion yet. There only functions currently implemented are for improving image quality, denoising using Perona Malik iterations and ROF/TV-L2 denoising as well as TV-L2 regularised deconvolution.

### Immediate todo list:
1. Improve setup files to make building with distutils possible.
2. TVL1 deconvolution.
3. Create Guided Poisson solvers.
4. Create TGV denoising and deconvolution framework.
5. Improve deconvolution framework.

### Long term todo list:
1. Segmentation algorithms
2. 3D-Implementations of some algorithms
3. Color implementations of algorithms
4. Image inpainting (maybe)

### Required python packages:
I reccomend using an installation of the great Anaconda Python bundle, as that will have all required Python packages installed. If not, these are the packages this toolbox requires:

1. Numpy
2. Cython
3. Scikit-Image
4. Scipy (for convolution)

repository: yngvem/PDImaging

repo_name: yngvem/PDImaging


text:
# Trump Says He Would Like to See Johnson and Farage United, Claims 'They are Both Friends of His'

Published at: **2019-11-03T22:44:16+00:00**

Author: ****

Original: [Sputniknews](https://sputniknews.com/us/201911031077216431-trump-says-he-would-like-to-see-johnson-and-farage-united-claims-they-are-both-friends-of-his/)

US President Donald Trump told reporters at the White House on Sunday that he would like British PM Boris Johnson and Brexit Party leader Nigel Farage to unite when asked which leader he supported.
Trump has repeated his call for the two British politicians to come together, as a few days ago he also suggested Johnson and Farage should team up, insisting that the two men could be "an unstoppable force".
Earlier in October, the US president said that the United Kingdom's trade with the United States could be substantially stronger following Brexit.
On 12 December Britain holds its first winter general vote since 1923. Nigel Farage said he was not going to run in the election and would like to instead concentrate on his campaign against Johnson's plan for Brexit.


text:
# scweet-docker
Docker image and `Dockerfile` for [Scweet](https://github.com/Altimis/Scweet). Code modified and adapted from source repository to make it working in `Docker`.

## A simple and unlimited twitter scraper with python and without authentification.

In the last days, Twitter banned almost every twitter scrapers. This repository represent an alternative legal tool (depending on how many seconds we wait between each scrolling) to scrap tweets between two given dates (start_date and max_date), for a given language and list of words or account name, and saves a csv file containing scraped data :

``[UserScreenName,	UserName,	Timestamp,	Text, Embedded_text, Emojis,	Comments,	Likes,	Retweets,	Image link,	Tweet URL]``

It is also possible to download and save the images from ``Image link`` by passing the argument ``save_images = True``, If you only want to scrape images, I recommand to set the argument ``display_type = image`` to show only tweets that contain images.

You can scrape user profile information as well, including following and followers.

Scweet uses only selenium to scrape data. Authentification is required in the case of followers/following scraping. It is recommended to log in with a new account (if the list of followers is very long, it is possible that your account will be banned). To log in to your account, you need to enter your ``username`` and ``password`` in [env](https://github.com/Altimis/Scweet/blob/master/.env) file. You can controle the ``wait`` parameter in the ``get_users_followers`` and ``get_users_following`` functions.

The [user](https://github.com/Altimis/Scweet/blob/master/Scweet/user.py) code allows you to get all information of a list of users, including location, join date and lists of **followers and following**. Check [this example](https://github.com/Altimis/Scweet/blob/master/Scweet/Example.ipynb).

**Note that all these functionalities will be added in the final version of the library**.

## Requierments :

```pip install -r requirements.txt```

Note : You need to have Chrome installed in your system

## Results :

### Tweets :

The CSV file contains the following features (for each tweet) :

- 'UserScreenName' :
- 'UserName' : UserName
- 'Timestamp' : timestamp of the tweet
- 'Text' : tweet text
- 'Embedded_text' : embedded text written above the tweet. It could be an image, video or even another tweet if the tweet in question is a reply.
- 'Emojis' : emojis existing in tweet
- 'Comments' : number of comments
- 'Likes' : number of likes
- 'Retweets' : number of retweets
- 'Image link' : Link of the image in the tweet
- 'Tweet URL' : Tweet URL.

### Following / Followers :

The ``get_users_following`` and ``get_users_followers`` in [user](https://github.com/Altimis/Scweet/blob/master/Scweet/user.py) give a list of following and followers for a given list of users. Note that each user should start with an uppercase letter.

**More features will be added soon, such as "all reaplies of each tweet for a specific twitter account"**

## Usage :

### Notebook example :

**You can check the example [here](https://github.com/Altimis/Scweet/blob/master/Scweet/Example.ipynb).**

### Terminal :

```Scrap tweets.

optional arguments:
  -h, --help            show this help message and exit
  --words WORDS         Words to search. they should be separated by "//" : Cat//Dog.
  --from_account FROM_ACCOUNT
                        Tweets posted by "from_account" account.
  --to_account TO_ACCOUNT
                        Tweets posted in response to "to_account" account.
  --hashtag HASHTAG
                        Tweets containing #hashtag
  --max_date MAX_DATE   max date for search query. example : %Y-%m-%d.
  --start_date START_DATE
                        Start date for search query. example : %Y-%m-%d.
  --interval INTERVAL   Interval days between each start date and end date for
                        search queries. example : 5.
  --lang LANG           tweets language. Example : "en" for english and "fr"
                        for french.
  --headless HEADLESS   Headless webdrives or not. True or False
  --limit LIMIT         Limit tweets per <interval>
  --display_type DISPLAY_TYPE
                        Display type of twitter page : Latest or Top tweets (
  --resume RESUME       Resume the last scraping work. You need to pass the same arguments (<words>, <start_date>, <max_date>...)```

### To execute the script :
python scweet.py --words "excellente//car" --to_account "tesla"  --max_date 2020-01-05 --start_date 2020-01-01 --limit 10 --interval 1 --display_type Latest --lang="en" --headless True
```

# Docker
This is the `Dockerfile` to build the `Scweet` image.

## Build [docker]
We build the Docker container
```
docker build -f Dockerfile -t scweet .
```

## Run [docker]
We run the Docker image with a attached `/src` volume for editable sources and a `/root` volumes in `$VOLUME` for files.
```
VOLUME=/myvolume docker run --rm -it -d -v `pwd`:/app -v $VOLUME:/root --name scweet-test scweet
docker exec -it scweet-test bash
```

repository: loretoparisi/scweet-docker

repo_name: loretoparisi/scweet-docker


text:
# Python Releases and edk2toollib

This document provides information on the necessary steps to update the
edk2-pytool-library repository when a new minor version of python has been
released (3.9, 3.10, etc).

## Steps

Each individual step will be a different section below and be associated with
a specific file that must be updated.

### setup.py

This file is responsible for the release process to pypi. We want to make sure
we keep the required version for our pypi releases up to date. Within
`setuptools.setup()` locate the line `python_requires = "XXX"` and update it to
the next version.

We typically support the last three minor versions; barring any special
exceptions, if the newest minor version is 3.11, then overall we will support
3.9, 3.10, and 3.11. Therefore you should update the line to
`python_requires = ">=3.9.0"`.

Additionally, we must update the classifiers section to show the three
supported python versions:

```python
classifiers=[
    ...
    "Programming Language :: Python :: 3.9",
    "Programming Language :: Python :: 3.10",
    "Programming Language :: Python :: 3.11"
]
```


text:
> [Go to French version](/fr/Règlements/Codification%20des%20règlements%20du%20Canada/901-1000/C.R.C.,%20ch.%20992.md)

# Regulations Respecting Hours of Work of Employees Engaged in Shipping on the West Coast of Canada

**C.R.C., c. 992**

Enabling authorities:
- [CANADA LABOUR CODE](/en/Acts/Revised%20Statutes%20of%20Canada/L/L-2.md)

----------

## Short Title

**1** These Regulations may be cited as the West Coast Shipping Employees Hours of Work Regulations.

## Interpretation

**2** In these Regulations,

***Act*** means Part III of the [Canada Labour Code](/en/Acts/Revised%20Statutes%20of%20Canada/L/L-2.md); (*Loi*)

***employee*** means a person employed on board a ship described in section 3; (*employé*)

***employer*** means a person who employs one or more employees; (*employeur*)

***lay-day*** means a day off work with pay to which an employee becomes entitled by working on board a ship for a number of days. (*jour de relâche*)

## Modification

**3** The provisions of sections 169 and 171 of the Act are modified to the extent set out in these Regulations for the purpose of the application of Division I of the Act to any classes of employees employed on a ship that is operated by an undertaking or a business that comes within the legislative authority of Parliament and that is engaged in shipping from any port in the Province of British Columbia.
> SOR/92-594, s. 2.

## Standard Hours of Work

**4**

- **(1)** Subject to these Regulations, where an employee is entitled to not less than 1.13 lay-days for each day he is on board a ship and works 12 hours, the working hours of the employee may exceed eight hours in a day and 40 hours in a week but shall not exceed 12 hours in a day and his employer shall not cause or permit him to work longer hours than 12 hours in any day.

- **(2)** Subject to these Regulations, where an employee is entitled to not less than 0.4 of a lay-day for each day he is on board a ship and works eight hours, the working hours of the employee may exceed 40 hours in a week but shall not exceed eight hours in a day and his employer shall not cause or permit him to work longer hours than eight hours in any day.

- **(3)** Subject to subsection (4), no employee referred to in subsections (1) and (2) shall be permitted to accumulate more than 45 lay-days.

- **(4)** Where it is established to the satisfaction of the Minister that during any period, as a result of exceptional circumstances, an accumulation of more than 45 lay-days is reasonable, the Minister may, by permit, authorize an accumulation of more than 45 lay-days during the period set out in the permit.

## Overtime

**5**

- **(1)** Subject to section 6, an employee may be employed in excess of the hours of work described in subsections 4(1) and (2) but, except as provided in section 177 of the Act, the total number of hours overtime that may be worked by any employee in any period of seven consecutive working days shall not exceed
	- **(a)** 18 hours overtime, where his hours of work are as described in subsection 4(1); or
	- **(b)** 12 hours overtime, where his hours of work are as described in subsection 4(2).

- **(2)** Where an employee whose maximum hours overtime are prescribed by paragraph (1)(a) or (b) works a number of consecutive working days that is greater or less than seven, the maximum number of hours overtime that may be worked by that employee during those consecutive working days shall bear the same proportion to the number of hours prescribed in paragraph (1)(a) or (b), whichever is applicable, that the number of consecutive working days bears to seven.
> SOR/92-594, s. 2.

**6** Where, in any working day during a period of seven consecutive working days, an employee is relieved of his duty to work when he would usually be working as a result of the loading or unloading of the ship on which he is employed and his daily working hours are thereby reduced, the total number of hours overtime that the employee may work in that period shall be increased by the number of hours by which his daily working hours are so reduced.

## Section 173 of Act Does Not Apply

**7** For the purposes of these Regulations, hours of work may be scheduled and actually worked without regard to section 173 of the Act.
> SOR/92-594, s. 2.

url: https://raw.githubusercontent.com/TravisMadill/CanadianLaws/776186d75e6e345dc5a0f1cd9243028efa9ac34c/en/Regulations/Consolidated Regulations of Canada/901-1000/C.R.C., c. 992.md

repository: TravisMadill/CanadianLaws

repo_name: TravisMadill/CanadianLaws


text:
# PHP Applications – Train Ticket Booking System (Lab 11)

Design a web portal application for seamless booking of train ticket. Use PhP, Html, Css, Js, and any other tech stack you deem necessary.

Note: All fields are mandatory and has to be validated using regular expressions

Portal Design:

1.	Enter the from station, to station and date details and submit the details

2. List the trains which runs between the stations as below

3.	Select a class from a train and book the ticket

4.	Fill the passenger details

5.	Once the details are filled, display the ticket details


text:
# C

This was created using 'gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609'

To see the result of a problem merely do the following:

./run problem_x

Where x is the problem number


text:
C++ API:
[![Build Status](https://travis-ci.org/mklarqvist/tomahawk.svg?branch=master)](https://travis-ci.org/mklarqvist/tomahawk)
[![Release](https://img.shields.io/badge/Release-beta_0.7.0-blue.svg?logo=c%2B%2B&logoColor=white)](https://github.com/mklarqvist/tomahawk/releases)
[![Release](https://img.shields.io/badge/Release-beta_0.1.0-blue.svg?logo=docker&logoColor=white)](https://github.com/mklarqvist/tomahawk/releases)
[![License](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/mklarqvist/tomahawk/blob/master/LICENSE)

R:
[![Release](https://img.shields.io/badge/Release-beta_0.1.0-blue.svg?logo=R&logoColor=white)](https://github.com/mklarqvist/rtomahawk/releases)
[![License](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/mklarqvist/rtomahawk/blob/master/LICENSE)

Python3:
[![Release](https://img.shields.io/badge/Release-alpha_0.1.0-blue.svg?logo=Python&logoColor=white)](https://github.com/mklarqvist/pytomahawk/releases)
[![License](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/mklarqvist/pytomahawk/blob/master/LICENSE)

# Fast calculation of LD in large-scale cohorts
Tomahawk is a machine-optimized library for computing
[linkage-disequilibrium](https://en.wikipedia.org/wiki/Linkage_disequilibrium)
from population-sized datasets. Tomahawk permits close to real-time analysis of
regions-of-interest in datasets of many millions of diploid individuals on a
standard laptop. All algorithms are embarrassingly parallel and have been
successfully tested on chromosome-sized datasets with up to _10 million_
individuals.

Tomahawk uniquely constructs complete haplotype/genotype contigency matrices for
each comparison, perform statistical tests on the output data, and provide a
framework for querying the resulting data.

## CLI Commands

| Command        | Description                                                 |
|----------------|-------------------------------------------------------------|
| [`aggregate`](cli/cli-aggregate)    | data rasterization framework for `TWO` files                |
| [`calc`](cli/cli-calc)         | calculate linkage disequilibrium                            |
| [`scalc`](cli/cli-scalc)         | calculate linkage disequilibrium for a single site                          |
| [`concat`](cli/cli-concat)       | concatenate `TWO` files from the same set of samples        |
| [`import`](cli/cli-import)      | import `VCF`/`VCF.gz`/`BCF` to `TWK`                        |
| [`sort`](cli/cli-sort)         | sort `TWO` file                                             |
| [`view`](cli/cli-view)         | `TWO`->`LD`/`TWO` view, `TWO` subset and filter          |
| [`haplotype`](cli/cli-haplotype)    | extract per-sample haplotype strings in `FASTA`/binary format |
| [`decay`](cli/cli-decay)        | compute LD-decay over distance                              |

repository: FINNGEN/tomahawk

repo_name: FINNGEN/tomahawk


text:
![Octoshark logo](https://dl.dropboxusercontent.com/u/3230730/github/octoshark.png)

![Travis status](https://travis-ci.org/dalibor/octoshark.png)

Octoshark is a simple ActiveRecord connection switcher. It provides a general purpose connection switching mechanism that can be used in sharding and master-slave multi-database environments. It's up to you to specify how ActiveRecord models will use the Octoshark connections, see below for example scenarios.

## Installation

Add this line to your application's Gemfile:

```
gem 'octoshark'
```

And then execute:

```
$ bundle
```

Or install it yourself as:

```
$ gem install octoshark
```

## Usage

Specify the connections for Octoshark to manage. This is usually done in an app initializer.

```ruby
Octoshark.configure({
  db1: { adapter: "sqlite3", database: "db/db1.sqlite" },
  db2: { adapter: "sqlite3", database: "db/db2.sqlite" }
})
```

Configure which ActiveRecord models will use the Octoshark connection by overriding the Model.connection method. If there are many models, extract it in a module and include it.

```ruby
class Post < ActiveRecord::Base
  def self.connection
    Octoshark.current_connection
  end
end
```

To use a specific database connection, do:

```ruby
Octoshark.with_connection(:db1) do
  # work with db1
  Post.first
end
```

Octoshark connection is changed for the duration of the block and then reversed back to the previous connection.

`Octoshark.current_connection` returns the active connection while in `with_connection` block, and outside it raises `Octoshark::NoCurrentConnectionError` error.

Multiple connection switch blocks can be nested:

```ruby
Octoshark.with_connection(:db1) do
  # work with db1

  Octoshark.with_connection(:db2) do
    # work with db2
  end

  # work with db1
end
```

## Sharding Example

For example, let's say we have few models that are in the default Rails database (User, Account, etc) and few models that we want to shard (Blog, Post, Comment, etc). For all models in the default database, we can use the default ActiveRecord connection, and for all sharded models we need to the Octoshark connection.

We specify the connection for the sharded models based on the shard key (User) in a controller with an around filter:

```ruby
# before_filter :find_user
around_filter :select_shard

def select_shard(&block)
  Octoshark.with_connection(current_user.shard, &block)
end
```

Similarly, in all other application entry-points that start with the default ActiveRecord connection (background jobs for an example), we need to switch the shard connection and then proceed.

## Master-Slave Example

When we want to do something in the slave database with all ActiveRecord models, then we need to add Octoshark's current or default connection to all models, either by overriding `ActiveRecord:Base.connection` or using a module that we include in all models.

```ruby
class ActiveRecord::Base
  def self.connection
    # Some rake tasks like `rake db:create` does not load initializers,
    # and because we're overriding ActiveRecord::Base.connection,
    # we need to make sure Octoshark is configured before using it.
    Octoshark.configure(configs) unless Octoshark.configured?

    # Return the current connection (from with_connection block) or default one
    Octoshark.current_or_default_connection
  end
end
```

Here we use `Octoshark.current_or_default_connection` method which returns the current connection while in `with_connection` block and fallback to the default connection when outside.

## Octoshark.reload!

Whenever ActiveRecord::Base establishes a new database connection, `Octoshark.reload!` is called. This is necessary for Octoshark to disconnect old connection pools and set new ones, otherwise `ActiveRecord::ConnectionNotEstablished` will be raised.

Few examples where database connections are re-established:

* Unicorn before/after fork
* Spring prefork/serve
* Some rake tasks like `rake db:test:prepare`

## Database Cleaner

Here's an example how to clean default and shard databases using both default connection and Octoshark connections:

```ruby
config.before(:suite) do
  clean_database_with(:truncation)
end

config.before(:each) do
  DatabaseCleaner.start
end

config.after(:each) do
  clean_database_with(:transaction)
end

def clean_database_with
  # default ActiveRecord::Base connection pool
  DatabaseCleaner[:active_record, {connection: ActiveRecord::Base.connection_pool}]

  # Octoshark connection pool for the connection
  Octoshark.connection_pools.each_pair do |name, connection_pool|
    DatabaseCleaner[:active_record, {connection: connection_pool}]
  end

  DatabaseCleaner.clean_with(strategy)
end
```

## Logo

Thanks to [@saschamt](https://github.com/saschamt) for Octoshark logo design. :)

## Contributing

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

repository: aleknak/octoshark

repo_name: aleknak/octoshark


text:
GSync
======

Frustrated with the standard tools for syncing directories between my local machine and google drive. I
deceided to write this simple script which stores a list of folders and their corresponding
location google ids. Then when run it either does an upload sync or download sync for each file_id
loacl directory pair. All the grunt work is done by the command line program gdrive.

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

### Prerequisites

* GDrive - https://github.com/prasmussen/gdrive

###  Building

```
$ python ./setup.py install --prefix=[install_location]
```

Usage
-----

Print the help message
```
$ gsync help
```

Print the list sync directories
```
$ gsync list
```

Add a folder to sync
```
$ gsync add [folder] [google_id]
```

Sync upload
```
$ gsync push
```

Sync download
```
$ gsync pull
```

repository: batearedcollie/gsync

repo_name: batearedcollie/gsync


text:
---
layout: service
title: Newsfeed
inshort: SharePoint's (lite) social network
groups: Social Networking; Direct Communication
xlinkadmin:
xlinkdev:
xlink:
xlinkbusiness:
xmarketing:
source: https://support.office.com/en-us/article/Office-365-enterprise-social-experience-Yammer-and-Newsfeed-21954c85-4384-47d4-96c2-dfa1c9d56e66
---

SharePoint Newsfeed used to be the default option for social experiences in Office 365. If you want to use the Newsfeed, you can turn it on in the SharePoint Online admin center

## Newsfeed or Yammer?
Office 365 includes two options for enterprise social features: Yammer and the SharePoint Newsfeed. If you pick Yammer to be your social experience, follow the [Enterprise Activation process](https://support.office.com/en-us/article/Enterprise-Activation-process-4f924c74-87d2-49d0-a4f6-cba3ce2b0e7c) to activate Yammer. After activation, a Yammer tile appears on the Office 365 portal page and the app launcher, making it easy for Office 365 users to reach Yammer. Also, if your network is eligible, users can sign-in to Yammer using their Office 365 account.

repository: Hexatown/docs

gha_language: PowerShell

repo_name: Hexatown/docs


text:
# Geodesic
Programs for calculating distance between coordinates.

## Formula
* [Haversine formula](https://en.wikipedia.org/wiki/Haversine_formula)
* [Vincenty's formula](https://en.wikipedia.org/wiki/Vincenty%27s_formulae)

## Compilation
```
make
make clean
```
A binary will be located in `./bin` directory (`bin/geodesic`).

## Usage
```
geodesic [-i file] [-o file] [-k precision] [-p problem] [-f projection] [-s] [-a] [-h]
```
### Computation Options
`-p [direct|inverse|polygon]` Solve direct problem or inverse problem.
* Direct problem: Given a coordinate and a vector of distance and initial bearing, evaluate the destination coordinate and the final bearing.
* Inverse problem: Given 2 coordinates, evaluate the distance, the initial bearing and the final bearing.
* Polygon problem: Given a set of coordinates, evaluate the perimeter and area.

`-f [sphere|ellipsoid|block]` Select projection for evaluating the azimuths and distances.
* Sphere projection employs the haversine algorithm and spherical triangle formula. Error is higher (error ~0.5%).
* Ellipsoid projection employs the Vincenty's algorithm with modifications by Charles Karney. It is more resource-intensive (2x sphere projection).
* Block projection means following parallels of latitude and meridians of longitude, assuming the Earth is an ellipsoid. For meridian arcs Bessel's series is implemented. All inputted coordinates should follow meridians of longitude and parallels of latitude.

`-s` Different computations for different problems.
* Distance between coordinates for inverse problems.
* The destination coordinate for direct problems.
* The perimeter for polygon problems.

`-a` Different computations for different problems.
* Initial and final bearings from one coordinate to the next for inverse problems.
* The final bearing for direct problems.
* The area for polygon problems.

### IO Options
`-i [FILE|-]` Input file. `-` signifies standard in (stdin). Defaults to stdin without the option.

`-o [FILE|-]` Output file. `-` signifies standard out (stdout). Defaults to stdout without the option.

`-k [integer]` Set the number of decimal places in output. Default is 6.

### Inverse problem

#### Arguments
Coordinates are given in the form of:

`[coordinates1] [coordinates2] ... [coordinatesN]`, where
each coordinate is in the form of `latitude,longitude` in decimals.

#### Output
```
[
  {
    "distance": xxx,
    "start_azimuth": xxx,
    "end_azimuth": xxx
  },
  {
    "distance": xxx,
    "start_azimuth": xxx,
    "end_azimuth": xxx
  },
  ...
  {
    "distance": xxx,
    "start_azimuth": xxx,
    "end_azimuth": xxx
  },
  {
    "total_distance": xxx
  }
]
```
Where
each set of pairs in array specifies the following:
* `distance` as the distance between the nth coordinate and the (n+1)th coordinate.
* `start_azimuth` as the bearing at the nth coordinate, on the line from the nth coordinate to the (n+1)th coordinate.
* `end_azimuth` as the bearing at the (n+1)th coordinate, on the line from the nth coordinate to the (n+1)th coordinate.

`"total_distance"` specifies the total distance of the line joining all coordinates.

### Direct problem

#### Arguments
Vectors are given in the form of:

`[start coordinate] [vector1] [vector2] ... [vectorN]`, where
each vector is in the form of `distance:bearing`, in decimals and degrees respectively.

#### Output
```
[
  {
    "coordinate": [xxx,xxx],
    "azimuth": xxx
  },
  {
    "coordinate": [xxx,xxx],
    "azimuth": xxx
  },
  ...
  {
    "coordinate": [xxx,xxx],
    "azimuth": xxx
  }
]
```
Where
each set of pairs in array specifies the following:
* `coordinate` as the destination coordinate at the distance and bearing from the (n-1)th coordinate.
* `azimuth` as the bearing at `coordinate` (nth coordinate), on the line from (n-1)th coordinate to nth coordinate.

### Polygon problem

### Arguments
Coordinates are given in the form of:

`[coordinates1] [coordinates2] ... [coordinatesN] [coordinates1]`, where
each coordinate is in the form of `latitude,longitude` in decimals.

Coordinates of a polygon should be specified in the **counter-clockwise** direction.

For polygons that include the poles, coordinates should be specified in the **eastward** direction for the North Pole, and the **westward** direction for the South Pole.

Note that `coordinate1` must be placed at the end to close the polygon.

#### Output
```
{
  "perimeter": xxx,
  "area": xxx
}
```
Where
* `perimeter` denotes the perimeter of the polygon.
* `area` denotes the area of the polygon.

### Units
* All distances are provided in kilometres.
* All areas are provided in square kilometres.
* All angles are provided in degrees.
* For latitudes, positive is assumed for north.
* For longitudes, positive is assumed for east.
* For bearings, full bearing must be used.

### Notes
* `allow_nan` should be set to `true` for parsing JSON, because azimuths may return a `NaN` value for zero vectors depending on the algorithm.

## References
1. [Movable Type Scripts](https://www.movable-type.co.uk/scripts/latlong.html)
2. [Vincenty's formulae @ Wikipedia](https://en.wikipedia.org/wiki/Vincenty%27s_formulae)
3. [Geodetic Inverse Solution between Antinodal Points](https://geographiclib.sourceforge.io/geodesic-papers/vincenty75b.pdf)
4. [Determination of areas on the plane, sphere and ellipsoid](https://www.tandfonline.com/doi/abs/10.1179/sre.2006.38.301.583?journalCode=ysre20)
5. [Geodesics on an ellipsoid of revolution](https://arxiv.org/pdf/1102.1215.pdf)
6. [Meridian arc @ Wikipedia](https://en.wikipedia.org/wiki/Meridian_arc)
7. [Longitude @ Wikipedia](https://en.wikipedia.org/wiki/Longitude#Length_of_a_degree_of_longitude)

repository: Wetitpig/geodesic

repo_name: Wetitpig/geodesic


text:
# Video Metadata UI

- requires some environment variables to run correctly
```
AWS_DEFAULT_REGION: "us-east-1"
AWS_ACCESS_KEY_ID: "${AWS_ACCESS_KEY_ID}"
AWS_SECRET_ACCESS_KEY: "${AWS_SECRET_ACCESS_KEY}"
DB_USERNAME: "${DB_USERNAME}"
DB_PASSWORD: "${DB_PASSWORD}"
DB_NAME: "${DB_NAME}"
DB_ENDPOINT: "${DB_ENDPOINT}"
BUCKET: "${BUCKET}"
```

## Current Functionality

* can stream video from s3
* can dynamically query video-metadata DB
* can display video metadata alongside of video as it's playing

## Todos

* add dynmaic way to list videos in s3
* add deep linking ability
* add ability to see histograms of metadata plots
* add ability to search for labels and celebrities and have the video load to that point

repository: turnerlabs/video-metadata-ui

repo_name: turnerlabs/video-metadata-ui


text:
# Password Hash Upgrade
An example project of password hashing functions implemented in C# for handling the safe rehashing of improperly hashed passwords.

Occasionally we will come across projects that are storing user's passwords in plaintext or with weak hashing algorithms, presenting an unacceptable security risk. In the case of stored plaintext passwords, we can simply hash the passwords using a secure hashing algorithm.

However, if the passwords have already been hashed with a weak algorithm such as an SHA variant, then the problem becomes a little more difficult. To avoid having to reset all user's passwords, we can pass the weak hashes into the stronger algorithm and save the result as the new hash. When a user logs in, to verify their password, we first hash it with the original weak hash, then use that as the input into the verification method of the strong algorithm. If the password is verified, as we now know we have the correct plaintext password, we can rehash it with the strong algorithm only. The next time the user logs in, we can then skip the intermediate step and use only the verification method for the strong hash algorithm.

There may be thousands or millions of improperly stored passwords, so it will take time to hash the weak hashes with the stronger hashes. As users may still be logging in during this time, we will need to handle the original hashes until all weak hashes have been upgraded, as well as the intermediate hashes and the final strong hash.

For example, if passwords were originally hashed with SHA, and we now need to upgrade the algorithm to Bcrypt, we can Psuedocode the following:

``` Psuedocode
// Safely rehash user password
Function Create_Intermediate_Hash(SHA_Hashed_Password)
    Intermediate_Hash = Bcrypt.CreateHash(SHA_Hashed_Password)
    Save_To_Database(Intermediate_Hash)

// Verify user password
Function Verify_User_Password(PlainText_Password):
    Hashed_Password = Get_User_Password_Hash_From_Database()

    // Get the hash algorithm, could be stored in a separate column, or as part of the password hash
    Hashed_Password_Algorithm = Get_Hash_Algorithm(Hashed_Password)

    If Hashed_Password_Algorithm is SHA_To_Bcrypt:
        SHA_Hash = SHA.Hash(PlainText_Password)
        Verified = Bcrypt.Verify(SHA_Hash)
        If Verified is Valid:
            return Valid_Requires_ReHash

    Else If Hashed_Password_Algorithm is Bcrypt:
        Verified = Bcrypt.Verify(PlainText_Password)
        If Verified is Valid:
            return Valid

    Else If Hashed_Password_Algorithm is SHA:
        SHA_Hash = SHA.Hash(PlainText_Password)
        If SHA_Hash == Hashed_Password:
            return Valid_Requires_ReHash

    return Invalid

// Rehash the plaintext password with Bcrypt and save the result
Function Rehash_Password(PlainText_Password)
    Bcrypt_Hash = Bcrypt.CreateHash(PlainText_Password)
    Save_To_Database(Bcrypt_Hash)

// Main program
Function Main()
    // Get the unsafe password hash and rehash it with the intermediate step
    Current_Password_Hash = Get_User_Password_Hash_From_Database()
    Create_Intermediate_Hash(Current_Password_Hash)

    // User logs in and provides password in plaintext
    Verified = Verify_User_Password(PlainText_Password)
    If Verified == Valid_Requires_ReHash:
        Rehash_Password(PlainText_Password)
        Login_User()
    Else if Verified == Valid:
        Login_User()
    Else:
        Reject_Login()
```

## Example Project
This example project is written in C# using .NET Core 3. *PasswordHasher.cs* implements the *IPasswordHasher* interface, returning a *PasswordVerificationResult*. In this case, passwords were originally hashed with SHA_256, and will be upgraded to use Bcrypt. Because we didn't want to create another column to store the hash type, the hash type has been appended to the password hash.

*Program.cs* is a Console Application that implements the hashing methods in *HashHelpers.cs*, to fetch all SHA_256 passwords from the database and hash them with Bcrypt to create the intermediate hash.

repository: DBeath/passwordhasher

repo_name: DBeath/passwordhasher


text:
read line, read integer and print
```ocaml
(*
 * https://atcoder.jp/contests/abc041/tasks/abc041_a
 * *)
let s = read_line()
let i = read_int()

let _ = Printf.printf "%c\n" (s.[i-1])
```

operator overloading
```ocaml
(*
 * https://atcoder.jp/contests/abc041/tasks/abc041_b
 * *)
let ( * ) a b = (a * b) mod<PHONE_NUMBER>

let () = Scanf.scanf "%d %d %d" (fun a b c ->
    Printf.printf "%d\n" (a*b*c))
```

read n then n space separated integers, sort and apply a function
```ocaml
(*
 * https://atcoder.jp/contests/abc041/tasks/abc041_c
 * *)
Scanf.scanf "%d" (fun n ->
    let a = Array.init n (fun i -> Scanf.scanf " %d" (fun a -> -a, i+1)) in
    Array.sort compare a;
    Array.iter (fun (_, y) -> Printf.printf "%d\n" y) a
)
```

read input and pass it to a function
```ocaml
(*
 * https://atcoder.jp/contests/abc170/tasks/abc170_a
 * *)
open Printf
open Scanf

let solve a b c d e = 15 - a - b - c - d - e

let main =
    scanf "%d %d %d %d %d" solve |> printf "%d\n"
```

init array, for, if
```ocaml
(*
 * https://atcoder.jp/contests/abc170/tasks/abc170_a
 * *)
open Printf
open Scanf

let main =
    let xs = Array.init 5 @@ fun _ -> scanf"%d " @@ fun x -> x in
    for i = 0 to 4 do
        if xs.(i) = 0 then
            printf "%d\n" @@ i + 1
    done
```

double for using Arrays and folds
```ocaml
(*
 * https://atcoder.jp/contests/abc143/tasks/abc143_b
 * *)
Scanf.scanf "%d\n" @@ fun n ->
    let d = Array.init n @@ fun _ -> Scanf.scanf "%d " @@ fun d -> d in
    Printf.printf "%d\n" @@
    Array.fold_left (Array.fold_left ( + )) 0 @@
    Array.init n @@ fun i ->
        Array.init n @@ fun j ->
            if i <= j then 0
            else d.(i) * d.(j)
```

repository: uninhm/mamechishiki

repo_name: uninhm/mamechishiki


text:
![CausalityTools.jl static logo](assets/logo-large.png)

```@docs
CausalityTools
```

## Goals

Causal inference, and quantification of association in general, is fundamental to
most scientific disciplines. There exists a multitude of bivariate and multivariate
association measures in the scientific literature. However, beyond the most basic measures,
most methods aren't readily available for practical use. Most scientific papers don't
provide code, which makes reproducing them difficult or impossible, without
investing significant time and resources into deciphering and understanding the original
papers to the point where an implementation is possible. To make reliable inferences,
proper independence tests are also crucial.

Our main goal with this package is to provide an easily extendible library of
association measures, a as-complete-as-possible set of their estimators.
We also want to lower the entry-point to the field of association
quantification, independence testing and causal inference, by providing well-documented
implementations of literature methods with runnable code examples.

The core function for quantifying associations is [`independence`](@ref),
which performs either a parametric or nonparametric (conditional)
[`IndependenceTest`](@ref) using some form of
[association measure](@ref association_measure). These tests, in turn, can be
used with some [`GraphAlgorithm`](@ref) and [`infer_graph`](@ref) to infer causal graphs.

## Input data

Input data for CausalityTools are given as:

- Univariate *timeseries*, which are given as standard Julia `Vector`s.
- Multivariate timeseries, *StateSpaceSets*, or *state space sets*, which are given as
    [`StateSpaceSet`](@ref)s. Many methods convert *timeseries* inputs to [`StateSpaceSet`](@ref)
    for faster internal computations.
- Categorical data can be used with [`ContingencyMatrix`](@ref) to compute various
    information theoretic measures and is represented using any iterable whose elements
    can be any arbitrarily complex data type (as long as it's hashable), for example
    `Vector{String}`, `{Vector{Int}}`, or `Vector{Tuple{Int, String}}`.

```@docs
StateSpaceSet
```

## Pull requests and issues

This package has been and is under heavy development. Don't hesitate to submit an
issue if you find something that doesn't work or doesn't make sense, or if there's
some functionality that you're missing.
Pull requests are also very welcome!

## Maintainers and contributors

The CausalityTools.jl software is maintained by
[Kristian Agasøster Haaga](https://github.com/kahaaga), who also curates and writes this
documentation. Significant contributions to the API and documentation design has been
made by [George Datseris](https://github.com/Datseris), which also co-authors
[ComplexityMeasures.jl](https://github.com/JuliaDynamics/ComplexityMeasures.jl), which
we develop in tandem with this package.

A complete list of contributors to this repo are listed on the main Github page. Some
important contributions are:

- [Norbert Genera](https://github.com/norbertgerena) contributed bug reports and
    investigations that led to subsequent improvements for the pairwise asymmetric
    inference algorithm and an improved cross mapping API.
- [David Diego](https://www.researchgate.net/profile/David-Diego)'s contributions were
    invaluable in the initial stages of development. His MATLAB code provided the basis
    for several transfer entropy methods and binning-related code.
- [George Datseris](https://github.com/Datseris) also ported KSG1 and KSG2 mutual
    information estimators to Neighborhood.jl.
- [Bjarte Hannisdal](https://github.com/bhannis) provided tutorials for mutual information.
- Tor Einar Møller contributed to cross-mapping methods in initial stages of development.

Many individuals has contributed code to other packages
in the [JuliaDynamics](https://juliadynamics.github.io/JuliaDynamics/) ecosystem which
we use here. Contributors are listed in the respective GitHub repos and webpages.

## Related packages

- [TransferEntropy.jl](https://github.com/JuliaDynamics/TransferEntropy.jl) previously
    provided mutual infromation and transfer entropy estimators. These have been
    re-implemented from scratch and moved here.

gha_language: Julia


text:
# MyBatisQueryLogFormatter

* Intellij Plugin

---
A plugin that combines query and parameter parts from the remaining query log with mybatis.

## Usage:

If you execute "Tools"> "Bind Query Log" function after selecting the log in the editor window,
Copy the result to the clipboard.
Only one query at a time is possible

![ScreenShot](https://github.com/bgcho98/MyBatisQueryLogFormatter/blob/master/img/usage.gif)

## License

* MIT License


text:
---
hrs_structure:
  division: '2'
  volume: '8'
  title: '23'
  chapter: '425'
  section: 425-10
type: hrs_section
tags:
  - Business
menu:
  hrs:
    identifier: HRS_0425-0010
    parent: HRS0425
    name: '425-10 Taxes, etc., a prior lien on partnership property on dissolution'
weight: 46075
title: 'Taxes, etc., a prior lien on partnership property on dissolution'
full_title: '425-10 Taxes, etc., a prior lien on partnership property on dissolution'
---
**§425-10 Taxes, etc., a prior lien on partnership property on dissolution.** Upon dissolution of a general partnership, any lawful taxes, imposts, license fees or assessments for which the partnership, or any partner in respect thereof, is liable shall constitute a prior lien upon the assets of the partnership but not as against the interest of those creditors who have prior recorded liens. [L 1969, c 247, pt of §1]

repository: SamMade/BlueAndKrabby

repo_name: SamMade/BlueAndKrabby


text:
---
layout: post
title: Novice to Expert
permalink: /how-to/novice-to-expert
post_id: 189
categories:
- ACT!
- How to
- Howto
---

After spotting a
[link](http://www.43folders.com/2009/10/22/who-you-are) to both the
[Dreyfus Model of Skill Acquisition](http://en.wikipedia.org/wiki/Dreyfus_model_of_skill_acquisition) and
[Pragmatic Thinking and Learning: Refactor Your Wetware](http://pragprog.com/titles/ahptl/pragmatic-thinking-and-learning), I've read the original 1980 paper by the Stuart and Hubert Dreyfus (
[A Five-Stage Model of the Mental Activities Involved in Directed Skill Acquisition](http://stinet.dtic.mil/cgi-bin/GetTRDoc?AD=ADA084551&Location=U2&doc=GetTRDoc.pdf))which made for interesting reading.

It describes (suprise!) 5 stages one goes through when learning a skill:*Novice

*Advanced beginner

*Competent

*Proficient

*Expert
I've yet to read the book
[Pragmatic Thinking and Learning: Refactor Your Wetware](http://pragprog.com/titles/ahptl/pragmatic-thinking-and-learning), but the two chapters that are online ("Introduction" and "Journey From Novice to Expert") and the mind map shown all lead me to believe that the book uses the Dreyfus Model as a basis to then provide practical measures to implement in order to make your way from novice to expert.

This is of interest to me because since October 2008 I began working with a product called
[ACT!](http://www.evolutionmarketing.com.au) which is a Contact and Customer Relationship Management product. When I began I was a Novice at using and implementing ACT!. My employer provided great training which got me to the Advanced beginner stage. Constant use and troubleshooting got me to the Competent stage, which was validated by my passing the ACT! Certified Consultants Exam. Now I'm chipping away at the Proficient stage, made just a little more interesting by the fact the the software has just been updated to version 12 (ACT! by Sage 2010).

But enough about me, what have you been working on becoming an expert on?

gha_language: CSS