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
httprouter github.com/julienschmidt/httprouter A high performance HTTP request router that scales well | |
Negroni github.com/codegangsta/negroni Idiomatic HTTP Middleware | |
Black Friday github.com/russross/blackfriday a markdown processor | |
Render gopkg.in/unrolled/render.v1 Easy rendering for JSON, XML, and HTML | |
SQLite3 github.com/mattn/go-sqlite3 sqlite3 driver for 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
<html> | |
<head> | |
<link href="https://cdn.rawgit.com/twbs/bootstrap/v4-dev/dist/css/bootstrap.css" rel="stylesheet"> | |
</head> | |
<body> | |
<div class="container"> | |
<div class="page-title"> | |
<h1>Markdown Generator</h1> | |
<p class="lead">Generate your markdown with Go</p> | |
<hr /> |
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
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ | |
module.exports = { | |
VERSION: '%KARMA_VERSION%', | |
KARMA_URL_ROOT: '%KARMA_URL_ROOT%', | |
CONTEXT_URL: 'context.html' | |
} | |
},{}],2:[function(require,module,exports){ | |
var stringify = require('./stringify') | |
var constant = require('./constants') |
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
Verifying that +paulohp is my blockchain ID. https://onename.com/paulohp |
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
remoteok.io | |
angel.co/jobs | |
wfh.io | |
authenticjobs.com | |
weworkremotely.com | |
careers.stackoverflow.com/jobs/remote | |
workingnomads.co/jobs | |
remotenation.co |
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
'use strict'; | |
Object.defineProperty(exports, '__esModule', { | |
value: true | |
}); | |
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })(); | |
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } } |
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
var fs = require('fs'); | |
var https = require('https'); | |
var http = require('http'); | |
var express = require('express'); | |
var path = require('path'); | |
var app = express(); | |
var config = { | |
key: fs.readFileSync(path.join(__dirname, 'config/certificates/server.key')), | |
cert: fs.readFileSync(path.join(__dirname, 'config/certificates/server.crt')) | |
}; |
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
// module | |
exports.makePaulo = function () { | |
request('http://blaablablablbla', function(err, res, body){ | |
return res.statusCode | |
}); | |
}; | |
//using module |
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
'headers': { | |
Csrf-Token: 'meu-token-22-doido-de-loucura' | |
} |
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
var rsa = require('rsa-stream'); | |
var fs = require('fs'); | |
var privkey = fs.readFileSync('./minhaPrivKey.key', 'utf8'); | |
var encStream = rsa.decrypt(privkey); | |
var inStream = fs.createReadStream('./foto.enc'); | |
var outStream = fs.createWriteStream('./minhafotolocodedoida.jpg'); | |
inStream.pipe(encStream).pipe(outStream); |