# This example does an AJAX lookup and is in CoffeeScript
$('.typeahead').typeahead(
# source can be a function
source: (typeahead, query) ->
# this function receives the typeahead object and the query string
This file contains 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
ADFActivityRun | |
| project Output, PipelineRunId,Status,OperationName | |
| where PipelineRunId == "YourPipelineRunId"and Status == "Succeeded"and OperationName startswith"Copy" | |
| extend dataRead_ = todouble(parse_json(Output).dataRead), filesWritten_ = todouble(parse_json(Output).filesWritten) | |
| summarize TotalDataReadGB=sum(dataRead_)/1000/1000/1000, TotalFilesWrittenInMils=sum(filesWritten_)/1000000 |
This file contains 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
Run | Data Size(In Gb) | No. of files | Time Taken | Partitions | |
---|---|---|---|---|---|
1 | 160 | 6.8 Million | 243 minutes | None | |
2 | 160 | 6.8 million | 92 minutes | 2 (Date Partition) | |
3 | 465 | 27.4 million | 110 minutes | 23 (Date Partition) | |
4 | 160 | 6.8 million | 7 minutes | 16 (Prefix) |
This file contains 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 azure.storage.blob import BlockBlobService | |
from azure.storage.blob import PublicAccess | |
import os | |
#name of your storage account and the access key from Settings->AccessKeys->key1 | |
block_blob_service = BlockBlobService(account_name='storageaccountname', account_key='AccountKey') | |
#name of the container | |
generator = block_blob_service.list_blobs('testcontainer') |
This file contains 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
SELECT CONCAT_WS('.',TABLE_SCHEMA, TABLE_NAME, COLUMN_NAME) col,CONCAT('alter table ',TABLE_NAME,' MODIFY COLUMN ', COLUMN_NAME,' ',DATA_TYPE,'(',CHARACTER_MAXIMUM_LENGTH,') NULL DEFAULT NULL') as script_col | |
FROM information_schema.COLUMNS | |
WHERE is_nullable=0 | |
and length(COLUMN_DEFAULT) is NULL and | |
CHARACTER_MAXIMUM_LENGTH is not NULL and | |
table_schema = 'dbName' | |
Union | |
SELECT CONCAT_WS('.',TABLE_SCHEMA, TABLE_NAME, COLUMN_NAME) col,CONCAT('alter table ',TABLE_NAME,' MODIFY COLUMN ', COLUMN_NAME,' ',DATA_TYPE,' NULL DEFAULT NULL') as script_col | |
FROM information_schema.COLUMNS | |
WHERE is_nullable=0 |
This file contains 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
= Mahabharata = | |
The example graph consists of characters in Game of Thrones (GOT) | |
Key nodes - Relations, Characters, their houses, status of (Dead, Captured or Hurt), Properties like Title and Prefix | |
The Data is pulled from multiple websites - http://towerofthehand.com, http://gameofthrones.wikia.com/wiki/Game_of_Thrones_Wiki | |
//console | |
[source,cypher] | |
---- |
This file contains 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
#Company - The perfect future technologies pvt. ltd. | |
#website - www.theperfectfuture.com | |
#Author - brijraj singh | |
#email - brijraj.singh@theperfectfuture.com | |
#Date - 06/11/2013 | |
import urllib2,urllib | |
import sys,traceback | |
import csv |
This file contains 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
<?php | |
class PackageCategory | |
{ | |
protected static $playurl = 'https://play.google.com/store/apps/details?id='; | |
public function PackageCategory($packageName) { | |
$this->packageName = $packageName; | |
} |