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
import '@xbs/webix-pro'; | |
import '@xbs/scheduler'; | |
/** | |
* | |
*/ | |
export class Mobile extends ComponentCore { | |
// | |
scheduler: any = null; |
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
data = [{'id': 1, 'value': "{name: 'Aaron', 'Coolness': 10}"}, {'id': 2, 'value': "{name: 'Fil', 'Coolness': 10}"}] | |
df = sqlContext.createDataFrame(data) | |
# print df.rdd.collectAsMap() | |
import json | |
with open('/tmp/myoutput.json', 'w') as outfile: | |
json.dump(df.rdd.collectAsMap(), outfile) | |
# display(dbutils.fs.ls("file:/tmp/myoutput.json")) |
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
""" | |
The style guide follows the strict python PEP 8 guidelines. | |
@see http://www.python.org/dev/peps/pep-0008/ | |
""" | |
import numpy as np | |
def main(): | |
"""Main execution for the feature extractor.""" | |
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
#include <stdio.h> | |
#include <QString> | |
/** | |
* @brief The BinaryTree class | |
*/ | |
template <class K, class V> | |
class BinaryTree | |
{ | |
public: |
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
/** | |
* Main entry point to execute the application. | |
* | |
* @copyright (c) 2012-Present Aaron Zampaglione <[email protected]> | |
*/ | |
path = require('path'); | |
requirejs = require('requirejs'); | |
// Setup requirejs. | |
requirejs.config({ |
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
{ | |
"analyze": false, | |
"author": "Aaron Zampaglione <[email protected]>", | |
"config": { | |
"base_url": "", | |
"cfd": "s", | |
"cookieSecret": "jnoefwjhjofewy89r3y8vdsnkjds", | |
"logDir": "./logs", | |
"uploads": "up" | |
}, |
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
var http = require('http'); | |
var https = require('https'); | |
var httpProxy = require('http-proxy'); | |
var crypto = require('crypto'); | |
var fs = require('fs'); | |
/* | |
* Server configurations | |
*/ | |
var servers = { |
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
# | |
# Matches a country to a timezone (if it has only one). | |
# | |
# @author Aaron Zampaglione <[email protected]> | |
# @copyright 2011 Aaron Zampaglione | |
# @license MIT | |
# | |
countrytmzs = { | |
'AD': 'Europe/Andorra', | |
'AE': 'Asia/Dubai', |
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
# | |
# Matches a state to its timezone (if it has only one). | |
# | |
# Commented out fields mean that the state | |
# has multiple timezones or was unknown at the time. | |
# | |
# @author Aaron Zampaglione <[email protected]> | |
# @copyright 2011 Aaron Zampaglione | |
# @license MIT | |
# |
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
# | |
# Country Code dictionary. | |
# | |
ucountries = { | |
'AD': u'ANDORRA', | |
'AE': u'UNITED ARAB EMIRATES', | |
'AF': u'AFGHANISTAN', | |
'AG': u'ANTIGUA AND BARBUDA', | |
'AI': u'ANGUILLA', | |
'AL': u'ALBANIA', |
NewerOlder