Skip to content

Instantly share code, notes, and snippets.

@tompi
tompi / .block
Last active May 29, 2020 07:18
D3 moving realtime data
license: mit
@tompi
tompi / .block
Created May 28, 2020 10:45 — forked from Sohalt/.block
d3 v4 realtime line chart
license: mit
#!/bin/sh
#
# Script to setup wifi debugging on first connected device,
# find the ip address and then connect to it
#
# Author: Thomas.Haukland@gmail.com
#
PORT="5555"
DEVICE=`adb devices | grep -v "^List" | grep -v "^$" | sed "s/[[:space:]]*device//" | head -1`
@tompi
tompi / make_icons.sh
Created August 22, 2019 09:02
Make android and ios icons from hi res image
#!/bin/sh
#
# Thomas Haukland
original=`echo $1 | sed 's/.png//'`
rm -rf ios droid
# iOS
mkdir ios
@tompi
tompi / make_splash.sh
Created August 22, 2019 09:01
Make android splash screens
#!/bin/sh
#
# Thomas Haukland
original=`echo $1 | sed 's/.png//'`
rm -rf ios droid
# iOS
#mkdir ios
@tompi
tompi / customMarkupLoginControl
Created May 8, 2012 13:17
Custom login markup med asp.net membership login control
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs"
Inherits="EPiNE.Custom.Templates.Minside.Login" MasterPageFile="~/Custom/Masterpages/Minside.master" %>
<%@ Register TagPrefix="EPiNE" TagName="NyKunde" Src="~/Custom/Units/Minside/NyKunde.ascx" %>
<%@ Register TagPrefix="EPiNE" TagName="GlemtPassord" Src="~/Custom/Units/Minside/GlemtPassord.ascx" %>
<asp:Content ID="Content2" runat="server" ContentPlaceHolderID="main">
<script type="text/javascript">
$(function() {
if (!$(".loginfailuretext").html()) {
$(".loginfailuretext").hide();