Skip to content

Instantly share code, notes, and snippets.

@oskaremil
oskaremil / dabblet.css
Created June 5, 2012 15:03
Fancy button draft
/**
* Fancy button draft
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
@oskaremil
oskaremil / dabblet.css
Created June 5, 2012 15:18
Fancy button draft
/**
* Fancy button draft
*/
input.fancybutton{
font-size: 2em;
height: 3em;
width: 8em;
border-radius: 20px;
border-color: rgba(0,0,0,.2);
@oskaremil
oskaremil / dabblet.css
Created June 11, 2012 19:34
Turqoise band
/**
* Turqoise band
*/
#frame{
margin: 200px 20px;
}
#band {
background-image:
@oskaremil
oskaremil / dabblet.css
Created June 11, 2012 20:53
Turqoise band
/**
* Turqoise band
*/
#frame{
margin: 200px 20px;
}
#band {
background-image:
@oskaremil
oskaremil / Remove-Preinstalled-Windows-10-apps.ps
Created December 22, 2016 11:13
Remove pre-installed Windows 10 apps
#Set $true to remove Windows Mail and Windows Calendar
$removeMail = $null
# Remove 3D from Windows 10
Get-AppxPackage *3d* | Remove-AppxPackage
# Remove Camera from Windows 10
Get-AppxPackage *camera* | Remove-AppxPackage
# Remove Mail and Calendar from Windows 10
@oskaremil
oskaremil / mssql-tools.sql
Last active January 11, 2022 19:03
MS SQL Tools
-- List all tables containing column named [columnname]
SELECT c.name AS 'ColumnName'
,t.name AS 'TableName'
FROM sys.columns c
JOIN sys.tables t ON c.object_id = t.object_id
WHERE c.name LIKE '%columnname%'
ORDER BY TableName
,ColumnName;
@oskaremil
oskaremil / new-webapp-checklist
Created March 4, 2018 20:16
New webapp checklist
[ ] Preferred JavaScript framework:
[ ] Authenticated routes:
[ ] Responsive design (minimum device width):
[ ] Design guidelines:
[ ] Accessibility features:
[ ] Minimum supported version of Internet Explorer:
[ ] Search Engine Optimizations:
[ ] Site Analytics:
@oskaremil
oskaremil / Get-Chocolatey-Packages.cmd
Last active November 13, 2018 13:04
Chocolatey script to install default packages
choco install baretail
choco install fiddler -y
choco install yarn -y
@oskaremil
oskaremil / Get-PowerShell-ConvenientModules
Created October 24, 2018 19:03
PowerShell script for "default" modules
Install-Module posh-git -Scope CurrentUser
Install-Module PSExcel -Scope CurrentUser
Install-Module SqlServer -Scope CurrentUser -Force
@oskaremil
oskaremil / Generate-Parent-Child-Testdata.sql
Created November 7, 2020 22:47
Creates two parent-child tables and populates them with random data
-- Create a procedure that returns random integers.
IF OBJECT_ID('sp_RandomInt', 'P') IS NOT NULL
DROP PROCEDURE sp_RandomInt;
GO
CREATE PROCEDURE sp_RandomInt
@lower INT = 1,
@upper INT,
@randomInt INT = NULL OUTPUT
AS
BEGIN