I hereby claim:
- I am quonic on github.
- I am spyingwind (https://keybase.io/spyingwind) on keybase.
- I have a public key ASDv4D7S-vSoK3i9JZab5T67msTuOxTOJPPK9viJU-0bbAo
To claim this, I am signing this object:
| { | |
| "id": 3, | |
| "title": "Username", | |
| "originalTitle": "Username", | |
| "tags": [ | |
| "screeps" | |
| ], | |
| "style": "dark", | |
| "timezone": "browser", | |
| "editable": true, |
| if (Memory.stats == undefined) { | |
| Memory.stats = {}; | |
| } | |
| var rooms = Game.rooms; | |
| var spawns = Game.spawns; | |
| for (let roomKey in rooms) { | |
| let room = Game.rooms[roomKey]; | |
| var isMyRoom = (room.controller? room.controller.my : 0); | |
| if (isMyRoom) { |
| /* | |
| Some math for Screeps to help the AI "think" a bit better | |
| Inspired by aeyi on Slack | |
| */ | |
| // https://68.media.tumblr.com/16cbbc594954cf014a42f55357ce6048/tumblr_og39vjBM3u1uqpzebo1_1280.png | |
| // Spreadsheet showing how these equations work out when graphed | |
| // https://docs.google.com/spreadsheets/d/1fvmxjqwWEHCkI5LTFA0K_aPLFAfF016E5IHZb9Xi23M/edit#gid=1779388467 |
| #Get-Content -path myCSV.csv | ConvertFrom-Csv -Delimiter ',' | ConvertTo-Json | Out-File myJSON.json | |
| $myCSV = 'Job Code,Group1,Group2,Group3 | |
| Web-1234,HR,FileShare,VDI1 | |
| Web-1235,IT,FileShare,VDI2' | |
| $myJSON = $myCSV | ConvertFrom-Csv -Delimiter ',' | ConvertTo-Json | |
| # What I get | |
| $myJSON = ' |
| $myIniSettings = Get-IniContent mySettings.ini | |
| $myIniSettings | ConvertTo-Json | |
| <# Returns | |
| { | |
| "second": { | |
| "dotheneedful": "1234", | |
| "donothing": "\"doing it\"" | |
| }, |
| $StoredCredential = "$PSScriptRoot/Credential.xml" | |
| if($Crediential){ | |
| $mycreds = $Crediential | |
| Export-Clixml -Path $StoredCredential -InputObject $mycreds | |
| }elseif($Username -and $Password){ | |
| $secpasswd = ConvertTo-SecureString $Password -AsPlainText -Force | |
| $mycreds = New-Object System.Management.Automation.PSCredential ($Username, $secpasswd) | |
| Export-Clixml -Path $StoredCredential -InputObject $mycreds | |
| }else{ | |
| if($PSScriptRoot -and $(Test-Path -Path $StoredCredential)){ |
| $routes = @{ | |
| "/api/v1/localusers/" = { return '{ | |
| "meta": { | |
| "limit": 20, | |
| "next": null, | |
| "offset": 0, | |
| "previous": null, | |
| "total_count": 2 | |
| }, | |
| "objects": [ |
I hereby claim:
To claim this, I am signing this object:
| function New-Password{ | |
| Param( | |
| [int] | |
| $min=6, | |
| [int] | |
| $max=8, | |
| [int] | |
| $Count = 1, | |
| [string] | |
| $Dictionary=".\dict.txt" |
| Add-Type -assembly "Microsoft.Office.Interop.Outlook" | |
| $Outlook = New-Object -comobject Outlook.Application | |
| $namespace = $Outlook.GetNameSpace("MAPI") | |
| $i = 0 | |
| $j = 0 | |
| $topfolder = "" | |
| $inbox = "" | |
| $namespace.Folders | ForEach-Object { | |
| $i++ |