Skip to content

Instantly share code, notes, and snippets.

View AdamZWinter's full-sized avatar

Adam Winter AdamZWinter

  • Seattle, WA, USA
View GitHub Profile
<?php
echo '
<table width=50%>
<thead>
<tr>
<th width=60%><p>Name</p></th>
<th width=20%><p>Owner</p></th>
<th width=20%><p>Permission</p></th>
</tr>
#! /usr/bin/env python2.7
import json
import glob
import copy
producers = []
for filename in glob.glob('new/*.json'):
fileobj = open(filename, "r")
/*
:root {
--myPurple: 8, 0, 24;
--purpleButton: 25, 0, 75;
--offWhite: 195, 210, 190, 1;
--backGrey: 40, 40, 40;
--linkBlue: 195, 210, 255, 1;
}
*/
@AdamZWinter
AdamZWinter / gist:03c5b4931cac20f3dc94604fcce51f90
Last active March 16, 2021 17:21
Powershell Password Credentials to String
#Prompts for the username/password, enter the username in the form of DomainName\UserName
$Credential = get-credential -Message "Please enter the VPM credentials"
#Converts the password to clear text to pass it through correctly as passing through a secure string does not work.
$Password = $credential.GetNetworkCredential().password
#Converts the $Credential to just the DomainName/UsernName.
$Account = $credential.UserName
echo $Password
@AdamZWinter
AdamZWinter / gist:c4b382e142aa67698ce0ef5f20ff6867
Created November 13, 2023 04:57
Singleton Object Class Java
public class BandRepository {
private static BandRepository instance;
private List<Band> mBands;
public static BandRepository getInstance(Context context) {
if (instance == null) {
instance = new BandRepository(context);
}
return instance;