One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| $ErrorActionPreference = "Stop" | |
| $notificationTitle = "Notification: " + [DateTime]::Now.ToShortTimeString() | |
| [Windows.UI.Notifications.ToastNotificationManager, Windows.UI.Notifications, ContentType = WindowsRuntime] > $null | |
| $template = [Windows.UI.Notifications.ToastNotificationManager]::GetTemplateContent([Windows.UI.Notifications.ToastTemplateType]::ToastText01) | |
| #Convert to .NET type for XML manipuration | |
| $toastXml = [xml] $template.GetXml() | |
| $toastXml.GetElementsByTagName("text").AppendChild($toastXml.CreateTextNode($notificationTitle)) > $null |
| #Put this in Export-Chocolatey.ps1 file and run it: | |
| #.\Export-Chocolatey.ps1 > packages.config | |
| #You can install the packages using | |
| #choco install packages.config -y | |
| Write-Output "<?xml version=`"1.0`" encoding=`"utf-8`"?>" | |
| Write-Output "<packages>" | |
| choco list -lo -r -y | % { " <package id=`"$($_.SubString(0, $_.IndexOf("|")))`" version=`"$($_.SubString($_.IndexOf("|") + 1))`" />" } | |
| Write-Output "</packages>" |
| # import libraries | |
| library(shiny) | |
| ########## | |
| # SERVER # | |
| ########## | |
| #generic line initiating the SERVER | |
| server <- shinyServer(function(input, output) { |
| import fs from 'fs'; | |
| import path from 'path'; | |
| const convert = (imgPath) => { | |
| // read image file | |
| fs.readFile(imgPath, (err, data)=>{ | |
| // error handle | |
| if(err) { | |
| throw err; | |
| } |
| # Returns a reactive that debounces the given expression by the given time in | |
| # milliseconds. | |
| # | |
| # This is not a true debounce in that it will not prevent \code{expr} from being | |
| # called many times (in fact it may be called more times than usual), but | |
| # rather, the reactive invalidation signal that is produced by expr is debounced | |
| # instead. This means that this function should be used when \code{expr} is | |
| # cheap but the things it will trigger (outputs and reactives that use | |
| # \code{expr}) are expensive. | |
| debounce <- function(expr, millis, env = parent.frame(), quoted = FALSE, |
| #!/bin/bash | |
| # Dependencies: dynamo-archive | |
| # In case there is some big tables, it is advisable to dedicate a process for each big table | |
| # and another process for the rest, since this can work in parallel | |
| # Can use https://github.com/bchew/dynamodump which is faster and easier | |
| key=<AWS access key> | |
| secret=<AWS secret> | |
| region=<AWS region> |
| # PostgreSQL can be on a remote server but you'll need root privileges in Linux and superuser in PostgreSQL. | |
| # First install build tools | |
| sudo su | |
| aptitude install build-essential | |
| aptitude install postgresql-server-dev-9.4 | |
| # Clone and build the PL/pgSQL server-side debugger |
| #=================================================== | |
| # Demo multi-function roxygen2 - three ways to do it | |
| #=================================================== | |
| # This shows how things do work, including wierd corner cases, not | |
| # how they should be done. Most of the information comes from | |
| # http://r-pkgs.had.co.nz/man.html | |
| #==================================================== | |
| # Demo multi-function roxygen2 page using @describeIn |
| @startuml | |
| participant "pull/2/merge" as feature | |
| participant develop | |
| participant "release/2.0.0" as majorRelease | |
| participant "release/1.3.0" as minorRelease | |
| participant master | |
| activate develop | |
| activate master | |
| master -> master: commit | |
| master -> master: tag 1.2.0 |