Here's an example of how to embed a Gist on GitHub Pages:
{% gist 5555251 %}
All you need to do is copy and paste the Gist's ID from the URL (here 5555251), and add it to a gist tag surrounded by {% and %}.
| shinyServer(function(input, output) { | |
| output$filetable <- reactiveTable(function() { | |
| if (is.null(input$files)) { | |
| # User has not uploaded a file yet | |
| return(NULL) | |
| } | |
| input$files | |
| }) | |
| }) |
| . | |
| ├── deploy.py | |
| ├── project | |
| │ ├── application.py | |
| │ ├── apps | |
| │ │ ├── articles | |
| │ │ │ ├── forms.py | |
| │ │ │ ├── __init__.py | |
| │ │ │ ├── models.py | |
| │ │ │ └── views.py |
| ####################################################### | |
| ## | |
| ## Wake.ps1, v1.0, 2013 | |
| ## | |
| ## Adapted by Ammaar Limbada | |
| ## Original Author: Matthijs ten Seldam, Microsoft (see: http://blogs.technet.com/matthts) | |
| ## | |
| ####################################################### | |
| <# |
| max_plots <- 5 | |
| ui <- fluidPage( | |
| headerPanel("Dynamic number of plots"), | |
| sidebarPanel( | |
| sliderInput("n", "Number of plots", value=1, min=1, max=5) | |
| ), |
Here's an example of how to embed a Gist on GitHub Pages:
{% gist 5555251 %}
All you need to do is copy and paste the Gist's ID from the URL (here 5555251), and add it to a gist tag surrounded by {% and %}.
| Sub CategoryToSheet() | |
| Dim rng As Range | |
| Dim Category As Range | |
| Dim List As New Collection | |
| Dim Item As Variant | |
| Dim i As Integer | |
| Dim rngLinkCell As Range | |
| Dim strSubAddress As String | |
| Dim strDisplayText As String | |
| ' |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| library("shiny") | |
| library("foreign") |
| # Bulk convert shapefiles to geojson using ogr2ogr | |
| # For more information, see http://ben.balter.com/2013/06/26/how-to-convert-shapefiles-to-geojson-for-use-on-github/ | |
| # Note: Assumes you're in a folder with one or more zip files containing shape files | |
| # and Outputs as geojson with the crs:84 SRS (for use on GitHub or elsewhere) | |
| #geojson conversion | |
| function shp2geojson() { | |
| ogr2ogr -f GeoJSON -t_srs crs:84 "$1.geojson" "$1.shp" | |
| } |