Skip to content

Instantly share code, notes, and snippets.

@Hagbarth
Hagbarth / request.txt
Created May 7, 2020 19:58
SFG SOAP error
POST /soap-new?service=eIncomeDeliverAttached HTTP/1.1
Host: ei-indberetning.skat.dk:444
Accept-Encoding: gzip,deflate
Content-Length: 8160
Content-Type: multipart/related; boundary=73cc986f7263a9991fdd8384be27a90fa66200af22fda7c3b9b64d7df828
Soapaction: sii:eIncomeMailboxAdd
--73cc986f7263a9991fdd8384be27a90fa66200af22fda7c3b9b64d7df828
Content-Type: text/xml
### Keybase proof
I hereby claim:
* I am hagbarth on github.
* I am hagbarth (https://keybase.io/hagbarth) on keybase.
* I have a public key ASCaRmwAcW7oudG8_JVuve7kYpikj0hH66QEyShSMGWO-wo
To claim this, I am signing this object:
@Hagbarth
Hagbarth / explanation.md
Created July 1, 2016 12:47
SQL, knex and bookshelf

SQL

Normal call

SELECT * FROM Companies WHERE id = 'MY_ID';

Join call (with related employees)

SELECT *
@Hagbarth
Hagbarth / HBTimezone.h
Created November 18, 2015 01:24
React native get local timezone from iOS system
#import <Foundation/Foundation.h>
#import "RCTBridgeModule.h"
@interface HBTimezone : NSObject <RCTBridgeModule>
@end
@Hagbarth
Hagbarth / IsomorphicDatePicker.js
Created September 22, 2015 10:37
Isomorphic Datepicker
import React, {Component} from 'react';
export default class IsomorpicDatePicker extends Component {
render() {
if (typeof document !== 'undefined') {
const DatePicker = require('react-datepicker');
return <DatePicker {... this.props} />
}
return <input type="text" />;
}
@Hagbarth
Hagbarth / .vimrc
Created June 16, 2015 21:31
My .vimrc
set nocompatible
filetype off
set number
set rtp+=~/.vim/bundle/Vundle.vim
filetype plugin indent on
set tabstop=4
set shiftwidth=4
set expandtab
call vundle#begin()
@Hagbarth
Hagbarth / simple_form_validation.js
Created December 24, 2014 10:23
This is a simple form validator based on jQuery and the form structure of the Twitter Bootstrap design framework.
/********************************************************************************
* This is a simple form validator based on jQuery and the form structure of
* the Twitter Bootstrap design framework.
*
* @requires jQuery
* @requires Twitter Bootstrap
* @author Emil Hagbarth Rasmussen
*
********************************************************************************/
$.fn.validate = function () {