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 gc | |
import os | |
import pandas as pd | |
import psutil | |
import time | |
import sys | |
from random import seed | |
from random import random | |
from datetime import datetime |
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
## To run multiple local service | |
```bash | |
gemstone up -l obsidian,jasper | |
``` | |
--------------------------------------------------------------- | |
## To run local tourmaline pointing to QA ES |
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 namespace = window.GlobalSnowplowNamespace = window.GlobalTapinfluenceNamespace || window.GlobalSnowplowNamespace; | |
var tracker = namespace.length ? window[namespace[0]] : null; | |
console.log(["@@@ namespace", namespace.length ? namespace[0] : ""]); | |
console.log(["@@@ tracker", tracker]); | |
if (tracker) { | |
// We need to hack original tracker to handle trackConversion event | |
// transparently for the user since this event is deprecated in new | |
// snowplow script. |
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
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: _APP_NAME_ | |
labels: | |
app: _APP_NAME_ | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: |
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
image: docker:latest | |
services: | |
- docker:dind | |
stages: | |
- build | |
- deploy | |
variables: | |
CONTAINER_DEV_IMAGE: registry.gitlab.com/brunomacf/kube-test:$CI_COMMIT_SHA |
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 mhart/alpine-node:9 | |
WORKDIR /home | |
ADD . ./ | |
RUN npm install -g http-server | |
CMD http-server -p 80 ./ |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Test</title> | |
</head> | |
<body> | |
<h1>Hello World!</h1> | |
</body> |
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 Fake from "./component"; | |
import {shallow} from "enzyme"; | |
describe("Fake Component", () => { | |
describe("load method", () => { | |
describe("on valid url", () => { | |
it("should set remote object to component state", (done) => { | |
const url = "http:///....."; | |
const httpMock = { |
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 React from "react"; | |
import PropTypes from "prop-types"; | |
import i18n from "darch/src/i18n"; | |
import Http from "darch/src/utils/http"; | |
import LoggerFactory from "darch/src/utils/logger"; | |
const Logger = new LoggerFactory("fake"); | |
/** | |
* Main component class. |