Skip to content

Instantly share code, notes, and snippets.

View gerardo's full-sized avatar
👁️

Gerardo Curiel gerardo

👁️
View GitHub Profile
private void Action(object sender, RoutedEventArgs e)
{
int i;
string curDir=Directory.GetCurrentDirectory();
string fileName=curDir+@"\msft.csv";
List<string[]> parsedData = parseCSV(fileName);
int nCount = parsedData.Count;
double[] closingPricesArr = new double[nCount - 1];
for (i = 0; i < nCount - 1; i++)
closingPricesArr[i] = Convert.ToDouble(parsedData[i + 1][6]);
@gerardo
gerardo / gist:5302466
Created April 3, 2013 15:53
fetch_resource method for xhtml2pdf
def fetch_resources(uri, rel):
"""
Callback to allow xhtml2pdf/reportlab to retrieve
Images,Stylesheets, etc.
`uri` is the href attribute from the html link element.
`rel` gives a relative path, but it's not used here.
"""
if uri.startswith(settings.MEDIA_URL):
path = os.path.join(settings.MEDIA_ROOT,
T := X ;
Y := T ;
X := Y ;
S = (format-line | (line date-line)) #"[\s\S]*"
format-line = #"##fileformat=VCFv[\s\S^(?:\r\n|\r|\n)]*(?:\r\n|\r|\n)"
date-line = #"##fileDate=[\s\S^(?:\r\n|\r|\n)]*(?:\r\n|\r|\n)"
line = #"[\s\S^(?:\r\n|\r|\n)]*(?:\r\n|\r|\n)"
[2018-09-12 02:11:07,849] {base_task_runner.py:107} INFO - Job 1481{cli.py:464} ERROR - Section lineage Option backend does not exist in the config!
{cli.py:464} ERROR - Section atlas Option sasl_enabled does not exist in the config!
{cli.py:464} ERROR - Section atlas Option host does not exist in the config!
{cli.py:464} ERROR - Section atlas Option port does not exist in the config!
{cli.py:464} ERROR - Section atlas Option username does not exist in the config!
{cli.py:464} ERROR - Section atlas Option password does not exist in the config!
{cli.py:464} ERROR - Section hive Option default_hive_mapred_queue does not exist in the config!
{cli.py:464} ERROR - Section dask Option cluster_address does not exist in the config!
{cli.py:464} ERROR - Section dask Option tls_ca does not exist in the config!
{cli.py:464} ERROR - Section dask Option tls_cert does not exist in the config!
version: "2.2"
services:
kubernetes:
image: bsycorp/kind:latest-1.14
privileged: true
kubectl:
image: bitnami/kubectl:1.14
depends_on: [kubernetes]