Skip to content

Instantly share code, notes, and snippets.

View sqeezy's full-sized avatar

Anton Herzog sqeezy

View GitHub Profile
@sqeezy
sqeezy / knight_tour.py
Last active January 4, 2016 18:49
Simple solution for knight tour problem. Slow with n>5.
import copy
movements = [[1, 2], [1, -2], [-1, -2], [-1, 2], [2, 1], [-2, 1], [2, -1], [-2, -1]]
field = []
results = []
def start(n=5, m=5, xStart=2, yStart=2):
moves = []
for i in range(0, n):
@sqeezy
sqeezy / gist:8806746
Created February 4, 2014 16:11
Compute the determinant of a matrix.
/// <summary>
/// Duplicates a ComplexMatrix without one columns and one row
/// </summary>
/// <param name="matrix"></param>
/// <param name="column"></param>
/// <param name="row"></param>
/// <returns></returns>
private Matrix make_matrix(Matrix matrix, int column)
{
Matrix new_matrix = new Matrix(matrix.Rows - 1, matrix.Columns - 1);
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions -EnableShowFullPathInTitleBar
Disable-UAC
Set-StartScreenOptions -EnableBootToDesktop -EnableSearchEverywhereInAppsView -EnableListDesktopAppsFirst
Enable-RemoteDesktop
cinst google-chrome-x64 git-credential-winstore packer vagrant virtualbox lockhunter sysinternals visualstudiocode consolez -y
This file has been truncated, but you can view the full file.
Type to search resources...
Vagrant Applications Builds Artifacts Environments sqeezy
sqeezy/Windows2012R2 › builds › #2
Builds Variables Links
Settings Integrations Access Event Log
Queued manually in Atlas
Build #2 triggered by sqeezy from Atlas-user 10 hours ago
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions -EnableShowFullPathInTitleBar
Disable-UAC
Set-StartScreenOptions -EnableBootToDesktop -EnableSearchEverywhereInAppsView -EnableListDesktopAppsFirst
Enable-RemoteDesktop
cinst chocolatey
cinst google-chrome-x64
cinst git-credential-winstore
cinst lockhunter
cinst chocolatey visualstudiocode consolez vim -y
$content = Get-Content .\fitnesse_output.txt
$length = $content.Length
$i = $length-3
$filteredContent = ($content)[1 .. $i]
$filteredContent
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
Enable-RemoteDesktop
cinst 1password
cinst 7zip
cinst 7zip.install
cinst AdobeAIR
cinst adobereader
cinst Atom
cinst markdownpad2
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions -EnableShowFullPathInTitleBar
Disable-UAC
Set-StartScreenOptions -EnableBootToDesktop -EnableSearchEverywhereInAppsView -EnableListDesktopAppsFirst
Enable-RemoteDesktop
Disable-BingSearch
Update-ExecutionPolicy ByPass
cinst powershell
cinst vivaldi --pre