Skip to content

Instantly share code, notes, and snippets.

View tiagodll's full-sized avatar

Tiago Dall'Igna tiagodll

View GitHub Profile
@tiagodll
tiagodll / css-expandbox.html
Last active January 11, 2016 15:11
Making an expandable box with nothing but html and css you can also have only one div, and just change the height of it.
<style>
input[type="checkbox"].expand-content{ display:none; }
input[type="checkbox"].expand-content ~ .collapsed { display:block; }
input[type="checkbox"].expand-content ~ .expanded { display:none; }
input[type="checkbox"].expand-content:checked ~ .collapsed { display:none; }
input[type="checkbox"].expand-content:checked ~ .expanded { display:block; }
</style>
@tiagodll
tiagodll / sharepoint-fullpage.css
Last active December 25, 2015 14:19
A very simple hack to create a full size page (without header, footer or anything else) in sharepoint.
.new-body { position: relative; }
.webPart > .new-body {
position: absolute !important;
top: 0;
left: 0;
right: 0;
bottom: 0;
}
<html>
<head>
<title>Slideshow</title>
</head>
<body>
<div id="bgcontainer">
<div style="background: #0000aa">1</div>
<div style="background: #00aa00">2</div>
<div style="background: #aa0000">3</div>
<div style="background: #aa00aa">4</div>
// ==UserScript==
// @name 9gag.tv on chromecast
// @namespace http://tiago.dalligna.co.uk/
// @version 0.1
// @description watch 9gag.tv in chromecast
// @match http://9gag.tv/v/*
// @require https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js
// @copyright 2013 Tiago
// ==/UserScript==
@tiagodll
tiagodll / pipe_sharp.cs
Last active June 24, 2019 16:02
adds pipe functionality to C#
using System;
namespace pipe_sharp
{
class Program
{
static void Main(string[] args)
{
var total = Pipe<int>
.Take(12)

Tools for working on windows:

  • VSCode # text editor
  • azurestudio # sql server gui
  • remote desktop connection manager
  • Cmder # terminal
  • Ditto # clipboard manager
  • fiddler # capture network trafic
  • TreeSizeFree # grafical gui for drive space
  • beyon compare # file comparison of files/folders
  • paint.net # free image editor
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
git config --global alias.latest 'show --name-only --oneline HEAD'
git config --global alias.co checkout
@tiagodll
tiagodll / RiderTiagoDarkTheme.icls
Created March 4, 2020 12:53
My theme for rider editor
<scheme name="Tiago Dark" version="142" parent_scheme="Rider Dark">
<metaInfo>
<property name="created">2020-03-04T13:50:23</property>
<property name="ide">Rider</property>
<property name="ideVersion">2019.3.3.0.0</property>
<property name="modified">2020-03-04T13:50:28</property>
<property name="originalScheme">Tiago Dark</property>
</metaInfo>
<colors>
<option name="CARET_ROW_COLOR" value="282800" />

How to decide which product is the right one to build

@tiagodll
tiagodll / 64id.js
Created March 10, 2020 16:22
64id - an id encoding for more readable urls, but still keeping a long number
function EncodeDigit(digit) {
if (digit < 10)
return digit + 48
else if (digit < 36)
return digit + 97 - 10
else if (digit < 62)
return digit + 65 - 36