Skip to content

Instantly share code, notes, and snippets.

@auchenberg
auchenberg / launch.json
Created April 8, 2017 19:23
VS Code + iOS Web Debugging
{
"version": "0.2.0",
"configurations": [
{
"name": "iOS Web",
"type": "chrome",
"request": "attach",
"port:": 9000,
"url": "https://kenenth.io/*",
"webRoot": "${workspaceRoot}/src"
@auchenberg
auchenberg / readme.md
Last active April 4, 2017 20:50
Webpack logging in DevTools

Webpack logging in DevTools

This project aims to enable webpack logging to be surfaced in browser DevTools, through a simple extension for Webpack and/or https://github.com/webpack/webpack-dev-server

Use-cases

  1. As a developer I can see my Webpack logs and errors in the DevTools console together with the rest of my logs.

Value prop

Central place for logs and errors regardless if they are client-side, server-side or coming from the build system.

aValue 96 352 0 16 40 10 14 2 255 0 0 44100
AppleLossless detected. Trying to decode ALAC
alacConfig { frameLength: 352,
compatibleVersion: 0,
bitDepth: 16,
pb: 40,
mb: 10,
kb: 14,
channels: 2,
maxRun: 255,
var WebSocket = require('ws');
lastId = 1;
var ws = new WebSocket('ws://localhost:9222/devtools/page/1');
ws.on('error',function(error) {
console.log('error', error);
});
@auchenberg
auchenberg / index.md
Last active February 26, 2016 23:31
DevTools Camp, Vancouver edition!

DevTools Camp, Vancouver edition!

Microsoft and Mozilla are please to announce the first edition of DevTools Camp. A casual meetup themed around in-browser DevTools, such as Firefox and Edge DevTools, and this time in downtown Vancouver, Canada, hosted by Mobify.

Our aim is to create a meetup where we can discuss web tooling, and showcase some of the things, we are thinking about and working on.

Time & date

March 22nd 2016 at 6:30 PM until 22:00 PM.

Agenda

@auchenberg
auchenberg / SudokuBoardValidator
Last active December 20, 2015 07:49
SudokuBoardValidator
// Problem: http://www.eecis.udel.edu/~breech/contest.inet.fall.07/problems/valid-sudoku.html
function SudokuBoardValidator(data) {
this.data = data;
}
SudokuBoardValidator.prototype = {
isUniq: function (range) {
@auchenberg
auchenberg / gist:6048667
Created July 21, 2013 14:08
Fizz buss in JavaScript
for(i=1; i <= 100; i++) {
if(i % 3 === 0 && i % 5 === 0) {
console.log('FizzBuzz');
} else if(i % 3 === 0) {
console.log('Fizz');
} else if (i % 5 === 0) {
console.log('Buzz');
} else {
console.log(i);
}
@auchenberg
auchenberg / gist:5916408
Created July 3, 2013 08:41
Podio alisas
# Podio
alias podio='cd HOME/Podio'
alias podio-rails='podio && cd frontend-rails'
alias podio-php='podio && cd frontend-php'
alias podio-scss='sass --watch /Users/auchenberg/Podio/frontend-rails/app/assets/stylesheets:/Users/auchenberg/Podio/frontend-rails/public/stylesheets/compiled'
alias podio-shared=' podio && cd shared-assets'
alias podio-rb='podio-rails && cd vendor/podio && git pull && podio-rails'
# Rails
alias rails-debug='VERBOSE_API=1 LIVERELOAD=1 rails server thin --debugger'
"assetCount.Css": 7,
"assetCount.Gif": 13,
"assetCount.Html": 3,
"assetCount.Ico": 1,
"assetCount.JavaScript": 8,
"assetCount.Jpeg": 4,
"assetCount.Png": 177,
"assetCount.application/octet-stream": 1,
"assetCount.application/vnd.ms-fontobject": 2,
Process: Drop to GIF [66177]
Path: /Users/USER/Downloads/Drop to GIF.app/Contents/MacOS/Drop to GIF
Identifier: com.mortenjust.Drop-to-GIF
Version: 1.122 (11)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Drop to GIF [66177]
User ID: 503
Date/Time: 2015-11-04 19:05:40.762 +0100