Skip to content

Instantly share code, notes, and snippets.

Rajiv Shah rajshah4

Block or report user

Report or block rajshah4

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
davidshinn / .block
Last active Mar 29, 2018 — forked from mbostock/.block
Box Plots
View .block
license: gpl-3.0
DanielBeckstein /
Last active Dec 14, 2016
Python script - that uses flickr rest api - to handle some flickr api calls (get images for keywords, get only images with certain licenses) for more details check out the awesome official flickr-api documentation: - how to get your api key:
#!/usr/bin/env python
# -*- coding: utf-8 -*-
Copyright (c) 2016 Daniel Beckstein
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
View RNN_Simple_Addition_Public.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
daroczig / impala.R
Last active Feb 2, 2017
Connect and query Imapala via SSH and Impala-shell from R
View impala.R
#' Connect and query Imapala via SSH and Impala-shell
#' @param query SQL query to run
#' @param host server hostname or IP
#' @param log enable or disable logging of debug/trace messages
#' @return data.table object
#' @export
query_impala <- function(query, host = 'localhost', log = require(futile.logger)) {
## measure time of query
timer <- proc.time()
rvanbruggen / hierarchy.cql for 2.0
Last active May 30, 2018
A gist to demonstrate the power of Neo4j for dealing with hierarchical data.
View hierarchy.cql for 2.0
//Let's create the top of the tree, the PRODUCT
create (n1:PRODUCT {id:1});
//Let's create 100 children of the PRODUCT, COST_GROUPS connected to the top of the tree
match (n1:PRODUCT {id:1})
with range(1,100) as RANGE, n1
foreach (r in RANGE | create (n2:COST_GROUP {id:r})-[:PART_OF {quantity:round(rand()*100)}]->(n1) );
//for every COST_GROUP, let's connect 100 children at a 3rd level, the COST_TYPEs
match (n2:COST_GROUP)
Last active Jun 11, 2019
Dynamic UI example app for R Shiny
Type: Shiny
Title: Dynamic UI
License: MIT
Author: Winston Chang <>
Tags: dynamic-ui renderui uioutput
DisplayMode: Showcase
View server.r
data_sets <- c("mtcars", "morley", "rock")
shinyServer(function(input, output) {
# Drop-down selection box for which data set
output$choose_dataset <- reactiveUI(function() {
selectInput("dataset", "Data set", as.list(data_sets))
# Check boxes
You can’t perform that action at this time.