// in app root
cd node_modules && ln -nsf ../ @app
// .gitignore
node_modules/*
!node_modules/@app
// *.js
// Before
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
# 1 | |
echo "{a: 123, v: 546}" | xargs -I {} node -e "console.log(JSON.stringify({}, null, 2))" | |
# 2 | |
cat some.json | xargs -I {} node -e "console.log(JSON.stringify({}, null, 2))" |
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 golang:1.13-alpine as builder | |
LABEL maintainer="MinIO Inc <[email protected]>" | |
ENV GOPATH /go | |
ENV CGO_ENABLED 0 | |
ENV GO111MODULE on | |
COPY . ./minio | |
RUN cd minio && go install -v -ldflags "$(go run buildscripts/gen-ldflags.go)" |
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
defmodule HanxinWeb.CounterLive do | |
use HanxinWeb, :live_view | |
def mount(_params, _session, socket) do | |
{:ok, assign(socket, hello: :world, count: 0)} | |
end | |
def render(assigns) do | |
~L""" | |
<H1>Hello <%= assigns.hello %></H1> |
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
/** | |
* After aquired a service account's certfication with right permisstion with spreadsheet | |
*/ | |
import { google } from "googleapis"; // npm i googleapis | |
const serviceAccount = require('service-account-cert.json') | |
const auth = new google.auth.JWT( | |
serviceAccount.client_email, | |
undefined, | |
serviceAccount.private_key, | |
"https://www.googleapis.com/auth/spreadsheets", |
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
tar -vczf targetName.tar --exclude=node_modules --exclude=.git --exclude=./vendor --exclude=./.sass-cache targetName |
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
# Redireact stdout to date-named file | |
λ echo '123' >> "$(date -d 'yesterday 01:00' '+%Y-%m-%d').log" | |
λ ls | |
2018-09-10.log |
This document is research for the selection of a communication platform for robot-net.
The purpose of this component is to enable rapid, reliable, and elegant communication between the various nodes of the network, including controllers, sensors, and actuators (robot drivers). It will act as the core of robot-net to create a standardized infrastructure for robot control.
Requirements:
NewerOlder