Skip to content

Instantly share code, notes, and snippets.

library("shiny")
x <- runApp(shinyApp(
fluidPage(
"Password:",
tags$input(id = "password", type = "password"),
actionButton("done", "Done")
),
function(input, output) {
observe({
@urasandesu
urasandesu / Get-HelpByMarkdown.ps1
Last active August 5, 2023 04:12
This script converts PowerShell comment-based help to GitHub Flavored Markdown.
#
# File: Get-HelpByMarkdown.ps1
#
# Author: Akira Sugiura ([email protected])
#
#
# Copyright (c) 2014 Akira Sugiura
#
# This software is MIT License.
#
@hrbrmstr
hrbrmstr / phantomjs.R
Created December 29, 2014 15:29
Scraping gnarly sites with phantomjs & rvest
library(rvest)
# example of using phantomjs for scraping sites that use a twisty maze
# of javascript to render HTML tables or other tags
# grab phantomjs binaries from here: http://phantomjs.org/
# and stick it somehere PATH will find it
# this example scrapes the user table from:
@ericelliott
ericelliott / essential-javascript-links.md
Last active June 14, 2025 18:43
Essential JavaScript Links
@bpj
bpj / wikilink2link.pl
Last active December 6, 2021 06:26
wikilink2link.pl - Convert GitHub wikilinks to Markdown links.
@hadley
hadley / .Renviron
Last active October 22, 2020 16:44
R_COMPLETION=FALSE
R_LIBS=~/R
TMPDIR=/tmp
_R_CHECK_FORCE_SUGGESTS_=false
GITHUB_PAT=[redacted]
DO_PAT=[redacted]
@damirarh
damirarh / SetWinStoreSetting.ps1
Created January 17, 2015 15:14
Function for changing a windows Store app setting directly in its settings.app file
function Set-WinStoreSetting {
param (
[Parameter(Mandatory=$true, Position=0)][string]$PackageName,
[Parameter(Mandatory=$true, Position=1)][string]$SettingName,
[Parameter(Mandatory=$true, Position=2)][string]$SettingValue
)
$settingsFile = [IO.Path]::Combine($env:LOCALAPPDATA, 'Packages', $PackageName, 'Settings\settings.dat')
# temporary paths
@airstrike
airstrike / CycleAccentBackgrounds.bas
Last active January 3, 2023 18:38
Cycle Accent Backgrounds in Excel
' OMNI
' Author: Andre Terra
' Name: CycleAccentBackgrounds
' URL: https://gist.github.com/airstrike/11f58afb9b44c2c81291
' Version: 1.2.1
Sub CycleAccentBackground()
Dim NextColor As Integer
Dim NextColorRGB As Long
Dim ThemeColor As Long
@dpapathanasiou
dpapathanasiou / SchemaSpy-HOWTO.md
Last active February 17, 2024 19:45
How to use SchemaSpy to generate the db schema diagram for a PostgreSQL database

SchemaSpy is a neat tool to produce visual diagrams for most relational databases.

Here's how to use it to generate schema relationship diagrams for PostgreSQL databases:

  1. Download the jar file from here (the current version is v6.1.0)

  2. Get the PostgreSQL JDBC driver (unless your installed version of java is really old, use the latest JDBC4 jar file)

  3. Run the command against an existing database. For most databases, the schema (-s option) we are interested in is the public one:

@nateklaiber
nateklaiber / design.md
Last active July 27, 2025 04:17
API Client Design