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
{ | |
"name": "flare", | |
"children": [ | |
{ | |
"name": "analytics", | |
"children": [ | |
{"name": "AgglomerativeCluster", "size": 3938}, | |
{ | |
"name": "cluster", | |
"children": [ |
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
#ifndef SOLUTION_REVERSE_CHAR_STRING | |
#define SOLUTION_REVERSE_CHAR_STRING | |
/** | |
* Reverse a \0 terminated char* string. | |
* | |
* Keep two pointers, one at the beginning and the other one | |
* at the end of this char* string. Swap the values that these | |
* two pointers points too, and then move them to the middle by 1. | |
* |
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
#ifndef SOLUTION_UNIQUE_STR_CPP | |
#define SOLUTION_UNIQUE_STR_CPP | |
#include <string> | |
// Github Repository https://github.com/bxshi/interview-code/blob/master/src/CtCI5/1_1_unique_char.cpp | |
size_t _partition(std::string& str, size_t i, size_t j) { | |
size_t low = i; | |
size_t high = j; |
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
#!/usr/bin/python3 | |
import csv | |
import os | |
import sys | |
from lxml import etree | |
if len(sys.argv) is not 5: | |
print("Usage simple_parser.py dblp.xml article.csv author.csv citation.csv") | |
exit(1) |
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
####### Please Check github.com/bxshi/rdsg for new updates, this gist will not be change in the future ####### | |
## However, you can still use this since it is correct so far ## | |
# Port of original DeltaCon to R | |
# Baoxu(Dash) Shi | |
# Data Sciense Group | |
# University of Notre Dame | |
# | |
# Citation | |
# D. Koutra, J. T. Vogelstein, and C. Faloutsos: |
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
import org.apache.spark.graphx._ | |
import org.apache.spark.{SparkConf, SparkContext} | |
object StackOverFlow { | |
def main(args: Array[String]) { | |
val conf = new SparkConf().setAppName("HDTM") | |
.setMaster("local[4]") | |
val sc = new SparkContext(conf) |
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
#!/bin/bash | |
FILES="./*.txt" | |
DEST="/afs/dropbox" | |
SUFIX=".txt" | |
for f in $FILES | |
do | |
echo "${f:2}" | |
TMP=${f:2} |
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
/** | |
* Created with JetBrains WebStorm. | |
* User: Baoxu Shi | |
* Date: 13-4-19 | |
* Time: PM12:09 | |
* To change this template use File | Settings | File Templates. | |
*/ | |
var uuidGen = require('./uuidGenerator.js'); |
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
// ==UserScript== | |
// @name 58.com Filter | |
// @namespace http://use.i.E.your.homepage/ | |
// @version 0.1 | |
// @description For my girlfriend | |
// @include http://bj.58.com/hezu/* | |
// @copyright 2012+, You | |
// ==/UserScript== | |
//Constants |
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
// ==UserScript== | |
// @name Desktop Notification 4 Web WeChat | |
// @namespace https://gist.github.com/4639820 | |
// @version 1.0 | |
// @description nothing | |
// @match https://web.wechatapp.com/ | |
// @copyright 2013+, Carmack.Shi | |
// ==/UserScript== | |
var mainFunc = function () { |