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
version: "3.4" | |
services: | |
elasticsearch: | |
image: docker.elastic.co/elasticsearch/elasticsearch:7.13.2 | |
ports: | |
- 9200:9200 | |
- 9300:9300 | |
environment: | |
- discovery.type=single-node |
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 msg = {}; | |
msg.payload = { | |
value_id: "2-37-1-0", | |
node_id: 2, | |
class_id: 37, | |
type: "bool", | |
genre: "user", | |
instance: 1, | |
index: 0, | |
label: "Switch", |
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 node:lts-alpine AS builder | |
WORKDIR /usr/src/app | |
COPY package*.json ./ | |
RUN npm ci | |
COPY . . | |
RUN npm run test | |
RUN npm run build | |
FROM node:lts-alpine | |
ENV NODE_ENV=production |
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
#/bin/sh | |
npm install --save-dev \ | |
typescript \ | |
ts-node-dev \ | |
eslint \ | |
@typescript-eslint/eslint-plugin \ | |
@typescript-eslint/parser \ | |
prettier \ | |
eslint-config-prettier \ |
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
function spamFilter() { | |
var threads = GmailApp.search('is:unread in:inbox'); | |
for (var i = 0; i < threads.length; i++) { | |
var thread = threads[i]; | |
if (!thread.isUnread()) { | |
continue; | |
} |
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
git pull | |
yarn | |
yarn start | |
yarn storybook | |
editor src/components/MyComponent.*jsx | |
git commit -am "Awesome new feature or maybe a bugfix" | |
git push origin master |
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 { connect } from 'react-redux'; | |
import { actions as historyActions } from 'redux/modules/history'; | |
export default (WrappedComponent) => { | |
class HistoryContainer extends React.Component { | |
static propTypes = { | |
fetchHistory: React.PropType.func.isRequired, | |
} | |
componentWillMount() { |
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
#!/usr/bin/env python3.4 | |
from http.server import BaseHTTPRequestHandler, HTTPServer | |
import urllib.parse | |
import logging | |
from xml.dom.minidom import Document | |
logging.basicConfig(level=logging.DEBUG) | |
class MegaAwesomePythonServer(BaseHTTPRequestHandler): |