GitHub supports several lightweight markup languages for documentation; the most popular ones (generally, not just at GitHub) are Markdown and reStructuredText. Markdown is sometimes considered easier to use, and is often preferred when the purpose is simply to generate HTML. On the other hand, reStructuredText is more extensible and powerful, with native support (not just embedded HTML) for tables, as well as things like automatic generation of tables of contents.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #requires -version 4 | |
| <# | |
| .SYNOPSIS | |
| <Overview of script> | |
| .DESCRIPTION | |
| <Brief description of script> | |
| .PARAMETER <Parameter_Name> | |
| <Brief description of parameter input required. Repeat this attribute if required> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #requires -version 4 | |
| <# | |
| .SYNOPSIS | |
| <Overview of script> | |
| .DESCRIPTION | |
| <Brief description of script> | |
| .PARAMETER <Parameter_Name> | |
| <Brief description of parameter input required. Repeat this attribute if required> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Sub PasswordBreaker() | |
| 'Breaks worksheet password protection. | |
| Dim i As Integer, j As Integer, k As Integer | |
| Dim l As Integer, m As Integer, n As Integer | |
| Dim i1 As Integer, i2 As Integer, i3 As Integer | |
| Dim i4 As Integer, i5 As Integer, i6 As Integer | |
| On Error Resume Next | |
| For i = 65 To 66: For j = 65 To 66: For k = 65 To 66 | |
| For l = 65 To 66: For m = 65 To 66: For i1 = 65 To 66 | |
| For i2 = 65 To 66: For i3 = 65 To 66: For i4 = 65 To 66 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| library(shiny) | |
| library(shinyjs) | |
| # Get table metadata. For now, just the fields | |
| # Further development: also define field types | |
| # and create inputs generically | |
| GetTableMetadata <- function() { | |
| fields <- c(id = "Id", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - --from http://dba.stackexchange.com/questions/18059/copy-complete-structure-of-a-table | |
| IF TYPE_ID(N'TestTableType') IS NULL | |
| create type TestTableType as table (ObjectID int) | |
| go | |
| SET ANSI_NULLS ON | |
| GO | |
| SET QUOTED_IDENTIFIER ON | |
| GO | |
| -- Drop stored procedure if it already exists |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| THIS IS A SPECTACULARLY BAD IDEA. | |
| Never, ever, ever run this in production. | |
| Don't even run it on a VM that you care about. | |
| (I specifically build a throwaway VM just to run this.) | |
| Get the latest version: | |
| https://gist.github.com/BrentOzar/5d8e4e8cbc1d89d1021b6f889762d835 | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Dockerfile | |
| ---------------------------------------------------------------------------------------------------------------------- | |
| FROM debian | |
| RUN apt-get update &&\ | |
| apt-get upgrade -y &&\ | |
| apt-get dist-upgrade -y &&\ | |
| apt install wget -y &&\ | |
| apt-get update && apt-get install apt-transport-https -y &&\ | |
| echo "deb https://nemesida-security.com/ns/debian stretch non-free" > /etc/apt/sources.list.d/NemesidaScanner.list &&\ | |
| apt install gnupg -y &&\ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ```{r} | |
| #packages | |
| library(rvest) | |
| library(tidyverse) | |
| library(magrittr) | |
| library(scales) | |
| library(knitr) | |
| library(lubridate) | |
| ``` |
OlderNewer