Skip to content

Instantly share code, notes, and snippets.

🤔
I may be slow to respond.

Daniel Perez Alvarez unindented

🤔
I may be slow to respond.
Block or report user

Report or block unindented

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@unindented
unindented / webpack@3.10.0
Created Feb 17, 2018
Webpack build details
View webpack@3.10.0
> webpack --config config/webpack/config.production.js --env.yammerEnv production
Starting type checking service...
Using 1 worker with 2048MB memory limit
Hash: 3a3c560f6c13f97f5a54
Version: webpack 3.10.0
Time: 27077ms
Asset Size Chunks Chunk Names
3-homesidebar-10-eff14b09519479d457f8.js.gz 14.7 kB [emitted]
icon_512x512.png 5.33 kB [emitted]
View puppeteer-styleguidist.js
const puppeteer = require('puppeteer');
(async () => {
const browser = await puppeteer.launch()
try {
const page = await browser.newPage()
await page.goto('https://react-styleguidist.js.org/examples/basic/', { waitUntil: 'networkidle' })
await takeScreenshotsOfElements(page, '[data-preview]')
View hapi_middleware.js
const Hapi = require('hapi')
const server = new Hapi.Server()
server.connection({
host: 'localhost',
port: 3000
})
server.route({
method: 'GET',
View express_middleware.js
var express = require('express')
const app = express()
app.use(function (req, res, next) {
const start = Date.now()
res.on('finish', () => {
console.log('Timestamp', Date.now() - start)
})
next()
View i18n.js
(function () {
var locale = (document.cookie.match('(^|; )locale=([^;]*)') || 0)[2];
var filename = './' + locale + '/strings.json';
define('i18n', [filename], function (dictionary) {
return {
locale: locale,
translations: dictionary.translations
};
});
@unindented
unindented / max_url.js
Created Oct 8, 2015
Check max URL length
View max_url.js
var http = require('http');
var url = require('url');
var port = 8080;
var server = http.createServer(function (req, res) {
res.setHeader('Access-Control-Allow-Origin', '*');
res.setHeader('Access-Control-Allow-Methods', 'OPTIONS, GET');
res.writeHead(200);
View keybase.md

Keybase proof

I hereby claim:

  • I am unindented on github.
  • I am unindented (https://keybase.io/unindented) on keybase.
  • I have a public key whose fingerprint is ADA1 BC8E B2F0 408A F8F2 D582 D36F 1EE0 2B39 6949

To claim this, I am signing this object:

You can’t perform that action at this time.