Skip to content

Instantly share code, notes, and snippets.

View MikaelSoderstrom's full-sized avatar
🎯
Focusing

Mikael Söderström MikaelSoderstrom

🎯
Focusing
View GitHub Profile
FROM selenium/standalone-chrome
# TODO: Use volume shared with host instead
ADD . /protractor/project
USER root
# Installera some tools
RUN apt-get update -qqy \
&& apt-get -qqy install \
# First traceroute
traceroute to 40.113.90.202 (40.113.90.202), 30 hops max, 60 byte packets
1 gw113-fastest.uk2.net (83.170.113.1) 2.453 ms 2.502 ms 2.555 ms
2 thn.as13213.net (83.170.70.133) 1.020 ms 1.214 ms 1.291 ms
3 83.170.70.229 (83.170.70.229) 1.934 ms 2.042 ms 2.137 ms
4 igbtmdistc7503.msft.net (195.66.236.140) 2.212 ms 2.293 ms 2.356 ms
5 104.44.9.244 (104.44.9.244) 11.865 ms 11.995 ms 12.061 ms
6 be-5-0.ibr01.dbb.ntwk.msn.net (104.44.5.52) 12.184 ms 13.129 ms 12.991 ms
7 ae10-0.db5-96cbe-1a.ntwk.msn.net (104.44.9.3) 10.759 ms 11.881 ms 11.597 ms
8 * * *
@MikaelSoderstrom
MikaelSoderstrom / esp8266temp.ino
Created March 8, 2016 09:34
ESP8266 Temperature Web Server
#include <OneWire.h>
#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266WebServer.h>
#include <DallasTemperature.h>
#define ONE_WIRE_BUS D1
OneWire oneWire(ONE_WIRE_BUS);
DallasTemperature DS18B20(&oneWire);
using System;
using System.Text.RegularExpressions;
namespace ConsoleApplication6
{
class Program
{
static void Main(string[] args)
{
string test = "ABC123D";
using System;
using Windows.Devices.Gpio;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
// The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=402352&clcid=0x409
namespace rpi_win10_blinking_leds
{
/// <summary>
group.title = 'Genusapor';
@MikaelSoderstrom
MikaelSoderstrom / Nightmare-demo.js
Last active May 14, 2018 03:33
Testing with mocha, chai and nightmare.js
var path = require('path');
var Nightmare = require('nightmare');
var should = require('chai').should();
describe('Nightmare demo', function () {
this.timeout(15000); // Set timeout to 15 seconds, instead of the original 2 seconds
var url = 'http://localhost:3000';
describe('Start page', function () {