Skip to content

Instantly share code, notes, and snippets.

View jinwood's full-sized avatar

Julian Inwood jinwood

  • Dorset, UK
View GitHub Profile

Angular 9 Project

Component

import { Component, Input } from '@angular/core';
import { MigrateFrom, MigrateTo, SelectedTenant } from '../../types';

@Component({

  selector: 'my-component',
const input = [
{
id: '79b1da7f-f647-4e29-b1b6-3a094afddedc',
name: 'Root Organization',
children: [
{
id: '8ff4da80-271e-4d98-220b-08d63febf597',
name: 'Huge CSP 1',
children: [
{
@jinwood
jinwood / ting.js
Created June 25, 2019 21:54
Array ting
console.log('hello');
const data = [
{
id: 1,
country: [
{ id: '5a60626f1d41c80c8d3f8a85' },
{ id: '5a6062661d41c80c8b2f0413' }
]
},
#View all conflicts in merge
git diff --name-only --diff-filter=U
@jinwood
jinwood / Client.cs
Created March 15, 2018 13:56 — forked from robertripoll/README.md
Telnet Server C#
using System;
using System.Net;
namespace TelnetServer
{
public enum EClientStatus
{
/// <summary>
/// The client has not been
/// authenticated yet.
@jinwood
jinwood / boxstarter.ps1
Last active October 3, 2017 15:05 — forked from jessfraz/boxstarter.ps1
Boxstarter Commands for a new Windows box.
# Description: Boxstarter Script
# Author: Jess Frazelle <jess@linux.com>
# Last Updated: 2017-09-11
#
# Install boxstarter:
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
#
# You might need to set: Set-ExecutionPolicy RemoteSigned
#
# Run this boxstarter by calling the following from an **elevated** command-prompt:
#!/bin/sh
git filter-branch --env-filter '
OLD_EMAIL=""
CORRECT_NAME=""
CORRECT_EMAIL=""
if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ]
then
@jinwood
jinwood / .bash
Created September 26, 2015 08:40
Install 32bit libs on 64bit linux os
sudo apt-get install ia32-libs
import requests
import csv
import os
import sys
from lxml import etree
try:
postcode = sys.argv[1]
except:
print "you need to enter a postcode silly!"
SELECT
t.NAME AS TableName,
s.Name AS SchemaName,
p.rows AS RowCounts,
SUM(a.total_pages) * 8 AS TotalSpaceKB,
SUM(a.used_pages) * 8 AS UsedSpaceKB,
(SUM(a.total_pages) - SUM(a.used_pages)) * 8 AS UnusedSpaceKB
FROM
sys.tables t
INNER JOIN