Ensure you have TypeScript installed globally using this command:
npm install -g typescript
This outlines how to setup a new TypeScript project with mocha support.
# Configure blob storage account access key globally | |
spark.conf.set( | |
"fs.azure.account.key.%s.blob.core.windows.net" % storage_name, | |
sas_key) | |
output_container_path = "wasbs://%s@%s.blob.core.windows.net" % (output_container_name, storage_name) | |
output_blob_folder = "%s/wrangled_data_folder" % output_container_path | |
# write the dataframe as a single file to blob storage | |
(dataframe |
$ ssh brad@192.168.1.29
$ mkdir test
$ cd test
Enter this in the search box along with your search terms:
Get all gists from the user santisbon.
user:santisbon
Find all gists with a .yml extension.
extension:yml
Find all gists with HTML files.
language:html
package com.rich.api.config; | |
import java.util.Arrays; | |
import org.springframework.context.annotation.Bean; | |
import org.springframework.context.annotation.Configuration; | |
import springfox.documentation.builders.ApiInfoBuilder; | |
import springfox.documentation.builders.PathSelectors; | |
import springfox.documentation.builders.RequestHandlerSelectors; |
// usage: $('.container').shiftSelectable() to select all checkboxes in container $('.cont') | |
// or $('.container').shiftSelectable({items: '.shift-selectable'}) to select only checkboxes with shift-selectable class | |
$.fn.shiftSelectable = function(config) { | |
config = $.extend({ | |
items: 'input[type="checkbox"]' | |
}, config); | |
var $container = this; | |
var lastChecked; | |
$container.on('click', config.items, function(evt) { |
import javax.validation.Constraint; | |
import javax.validation.Payload; | |
import java.lang.annotation.Retention; | |
import java.lang.annotation.Target; | |
import static java.lang.annotation.ElementType.FIELD; | |
import static java.lang.annotation.ElementType.PARAMETER; | |
import static java.lang.annotation.RetentionPolicy.RUNTIME; | |
/** |
# See list of docker virtual machines on the local box | |
$ docker-machine ls | |
NAME ACTIVE URL STATE URL SWARM DOCKER ERRORS | |
default * virtualbox Running tcp://192.168.99.100:2376 v1.9.1 | |
# Note the host URL 192.168.99.100 - it will be used later! | |
# Build an image from current folder under given image name | |
$ docker build -t gleb/demo-app . |
/** | |
* Using Apache Common Bean Utils. | |
*/ | |
import org.apache.commons.beanutils.BeanUtils; | |
import java.util.HashMap; | |
public class ApacheCommonExample throws IllegalAccessException, | |
InvocationTargetException, NoSuchMethodException { | |
public HashMap<String,Object> convert(Person person) { |