This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
) | |
func main() { | |
// We created two structs in the local execution stack...its better to do large objects in heap | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
) | |
func main() { | |
fmt.Println("1) Generate Power Plant Report") | |
fmt.Println("2) Generate Power Grid Report") | |
fmt.Println("Please choose an option: ") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
) | |
func main() { | |
fmt.Println("Hello, playground") | |
for i:=0; i < 5; i++ { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
) | |
func main() { | |
fmt.Println("Hello, playground") | |
//foo := 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input { | |
file { | |
path => "C:\Users\afreeland\Documents\GitHub\ElasticImport\conf\appointment1.txt" | |
start_position => beginning | |
} | |
} | |
filter { | |
csv { | |
columns => [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(user){ | |
let mySchedule = [ ['user', 'day', 'time', 'startDate', 'endDate', 'title', 'venue']]; | |
var days = [].slice.call(document.querySelectorAll('.Sessions-heading'), 0) | |
function splitTime(timeStr, dayOfWeek){ | |
// Split 1:30 pm - 3:30 pm, 1:30pm-3:30pm | |
// Into ['1:30 pm', '3:30 pm'] | |
let _split = timeStr.toUpperCase().split(/\s?-\s?/) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with cte as ( | |
select | |
username, | |
start_time, | |
ROW_NUMBER() OVER(Partition by username, start_time order by end_time) as [rn] | |
from sometable | |
) | |
select * from cte | |
--delete cte | |
where [rn] > 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Environment]::SetEnvironmentVariable("GitHub", $env:USERPROFILE + "\Documents\GitHub", "Machine") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2017-05-04 13:58:32> Program: Starting Squirrel Updater: --install . | |
2017-05-04 13:58:33> Program: Starting install, writing to C:\Users\JHenniger\AppData\Local\SquirrelTemp | |
2017-05-04 13:58:33> Program: About to install to: C:\Users\JHenniger\AppData\Local\MHSPortal | |
2017-05-04 13:58:33> Program: Install path C:\Users\JHenniger\AppData\Local\MHSPortal already exists, burning it to the ground | |
2017-05-04 13:58:34> Utility: DeleteDirectory: could not delete - C:\Users\JHenniger\AppData\Local\MHSPortal\app-0.1.1\resources\app\node_modules\babel-runtime\helpers: System.IO.IOException: The directory is not empty. | |
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) | |
at System.IO.Directory.DeleteHelper(String fullPath, String userPath, Boolean recursive, Boolean throwOnTopLevelDirectoryNotFound) | |
at System.IO.Directory.Delete(String fullPath, String userPath, Boolean recursive, Boolean checkHost) | |
at Squirrel.Utility.<DeleteDirectory>d__19.MoveNext() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2017-05-04 10:14:54> Program: Starting Squirrel Updater: --install . | |
2017-05-04 10:14:54> Program: Starting install, writing to C:\Users\ebumgarner\AppData\Local\SquirrelTemp | |
2017-05-04 10:14:54> Program: About to install to: C:\Users\ebumgarner\AppData\Local\MHSPortal | |
2017-05-04 10:14:57> CheckForUpdateImpl: Couldn't write out staging user ID, this user probably shouldn't get beta anything: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\ebumgarner\AppData\Local\MHSPortal\packages\.betaId'. | |
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) | |
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) | |
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String ms |