I hereby claim:
- I am hitalos on github.
- I am hitalos (https://keybase.io/hitalos) on keybase.
- I have a public key whose fingerprint is 4FFE E323 1044 4F7E 55C9 59F7 0510 6823 3EAF 592A
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
hostname: docker-server | |
rancher: | |
console: ubuntu | |
force_console_rebuild: false | |
services_include: | |
ubuntu-console: true | |
network: | |
interfaces: | |
eth*: | |
dhcp: false |
// (Really Simple) PID Class by Ivan Seidel | |
// GitHub.com/ivanseidel | |
// Use as you want. Leave credits | |
class PID{ | |
public: | |
double error; | |
double sample; | |
double lastSample; |
const net = require('net') | |
const server = net.createServer((socket) => { | |
const IP = socket.remoteAddress | |
socket.on('data', (data) => { | |
process.stdout.write(data.toString()) | |
}) | |
socket.on('end', () => { |
const express = require('express') | |
const app = express() | |
app.set('view engine', 'pug') | |
app.get('/', (req, res) => { | |
res.render('index', { title: 'Express' }) | |
}) |
const express = require('express') | |
const pug = require('pug') | |
const app = express() | |
const index = pug.compileFile('views/index.pug') | |
app.get('/', (req, res) => { | |
res.send(index({ title: 'Express' })) | |
}) |
DROP TABLE IF EXISTS items; | |
DROP TABLE IF EXISTS categories; | |
DROP TABLE IF EXISTS menus; |
{ | |
"name": "attach", | |
"type": "go", | |
"request": "attach", | |
"mode": "remote", | |
"remotePath": "/app", | |
"port": 2345, | |
"host": "localhost" | |
} |
CREATE TABLE IF NOT EXISTS cities ( | |
id INTEGER PRIMARY KEY, | |
name VARCHAR, | |
uf_id INTEGER REFERENCES ufs (id) ON UPDATE RESTRICT ON DELETE RESTRICT, | |
CONSTRAINT cities_name_uf_id_key UNIQUE (name, uf_id) | |
); | |
---- create above / drop below ---- | |
DROP TABLE IF EXISTS cities; |
package main | |
import ( | |
"fmt" | |
) | |
const ( | |
numCols = 4 | |
height = 32 | |
width = 20 |