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
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: myapp-svc | |
spec: | |
selector: | |
app: myapp | |
ports: | |
- protocol: TCP | |
port: 5432 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
from sqlalchemy.sql import text, select, join | |
def wrap_array_for_columns(arr): | |
return map(lambda x: text(column_text(x)), arr) | |
def column_text(column_struct): | |
_name = column_struct.get("name") | |
_table = column_struct.get("table") | |
_alias = column_struct.get("alias", _name) | |
if _table is None: | |
return "%s as %s"%(_name, _alias) |
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
class SqlMetadata: | |
def __init__(self, name, sql): | |
self.name = name | |
self.sql = sql | |
def getSql(self): | |
return self.sql+' as '+self.name | |
sqlarray = [SqlMetadata("score", "json_array_elements(restaurant_from_df.grades_json::json)->'score'"), | |
SqlMetadata("grade", "json_array_elements(restaurant_from_df.grades_json::json)->'grade'"), | |
SqlMetadata("date", "json_array_elements(restaurant_from_df.grades_json::json)->'date'"), | |
] |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
<?xml version="1.0" encoding="UTF-8"?> | |
<transformation> | |
<info> | |
<name>create_new_transformation</name> | |
<description/> | |
<extended_description/> | |
<trans_version/> | |
<trans_type>Normal</trans_type> | |
<directory>/</directory> | |
<parameters> |
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
from __future__ import division | |
import gym | |
import numpy as np | |
from keras.models import Sequential | |
from keras.layers import Dense, Activation | |
from keras.optimizers import sgd | |
import os | |
import random | |
from os.path import isfile | |
from collections import deque |
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
//Script here | |
var row = createRowCopy(getOutputRowMeta().size()); | |
for(var i = 0; i < parsed.data.length; i++) { | |
//Alert(one_data.name); | |
var one_var = parsed.data[i]; | |
name = one_var.name; | |
type = one_var.type; | |
value = one_var.value; |
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
//Script here | |
//Alert(test); | |
var parsed = JSON.parse(var_settings); | |
for(var i = 0; i < parsed.data.length; i++) { | |
//Alert(one_data.name); | |
var one_var = parsed.data[i]; | |
name = one_var.name; | |
type = one_var.type; | |
value = one_var.value; |
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
$ jupyter notebook | |
[W 23:02:29.351 NotebookApp] WARNING: The notebook server is listening on all IP addresses and not using encryption. This is not recommended. | |
[I 23:02:29.398 NotebookApp] The port 3000 is already in use, trying another port. | |
[I 23:02:29.398 NotebookApp] The port 3001 is already in use, trying another port. | |
[I 23:02:29.398 NotebookApp] The port 3002 is already in use, trying another port. | |
[I 23:02:29.398 NotebookApp] The port 3003 is already in use, trying another port. | |
・・・ |