Skip to content

Instantly share code, notes, and snippets.

@FWeinb
FWeinb / dabblet.css
Created July 24, 2019 21:20
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
@FWeinb
FWeinb / dabblet.css
Last active July 24, 2019 21:14
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
@FWeinb
FWeinb / extension.ts
Created June 20, 2019 15:54
Quick and dirty poc
import * as vscode from 'vscode'
import { DevtoolsPanel } from './DevtoolsPanel'
import { log } from './utils/Logger'
import * as path from 'path'
const DevtoolBackend = require('overmind-devtools-client/DevtoolBackend')
// !!!This is really bad!!!
const findActionRegex = /^\s*export (?:const|let)\s([^:]+)\s*?:\s*?Action(?:<[^>]*?>)?\s*?=/g
@FWeinb
FWeinb / reset_routing_table.sh
Created November 30, 2017 20:15 — forked from midwire/reset_routing_table.sh
Reset routing table on OSX
#!/usr/bin/env bash
# Reset routing table on OSX
# display current routing table
echo "********** BEFORE ****************************************"
netstat -r
echo "**********************************************************"
for i in {0..4}; do
sudo route -n flush # several times
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Proxy path reader</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script>
<script src="./suite.js"></script>
</head>
<body>
<h1>Open the console to view the results</h1>
@FWeinb
FWeinb / ESP_Plasma.ino
Last active May 29, 2016 14:58 — forked from AdySan/ESP_Plasma.ino
ESP8266/Arduino Plasma effect demo using esp8266-oled-ssd1306 library.
#include <Arduino.h>
// Include the correct display lib
// SPI
// #include <SSD1306Spi.h>
// I2c using brzo_i2c
// #include <SSD1306Brzo.h>
// Standard Wire
#include <SSD1306.h>
@FWeinb
FWeinb / testHook.js
Created August 5, 2015 16:37
My first hook.io microservice
module['exports'] = function simpleHttpRequest (hook) {
// npm modules available, see: http://hook.io/modules
var request = require('request');
request.get('http://httpbin.org/ip', function(err, res, body){
if (err) {
return hook.res.end(err.messsage);
}
hook.res.end(body);
})
};
@FWeinb
FWeinb / echoHttpRequest.js
Last active October 6, 2021 13:26 — forked from Marak/echoHttpRequest.js
Echo HTTP requests
module['exports'] = function echoHttp (hook) {
hook.debug("Debug messages are sent to the debug console");
hook.debug(hook.params);
hook.debug(hook.req.path);
hook.debug(hook.req.method);
@FWeinb
FWeinb / SassMeister-input.scss
Created August 21, 2014 12:09
Generated by SassMeister.com.
// ----
// Sass (v3.4.0)
// Compass (v1.0.0)
// ----
$myVar: 10;
$myBool: true;
@if ($myBool==true) {
$myVar: 7 !global;
}
@FWeinb
FWeinb / SassMeister-input.scss
Created August 21, 2014 09:33
Generated by SassMeister.com.
// ----
// Sass (v3.4.0)
// Compass (v1.0.0)
// ----
$gap: 20px;
.my-class {
margin-top: -$gap + 5;
}