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
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; |
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
#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 |
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
/* | |
:root { | |
--myPurple: 8, 0, 24; | |
--purpleButton: 25, 0, 75; | |
--offWhite: 195, 210, 190, 1; | |
--backGrey: 40, 40, 40; | |
--linkBlue: 195, 210, 255, 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
#! /usr/bin/env python2.7 | |
import json | |
import glob | |
import copy | |
producers = [] | |
for filename in glob.glob('new/*.json'): | |
fileobj = open(filename, "r") |
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
<?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> |
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
<?php | |
$oldString ='version 4.4.6 ( updated 05-08-2020 ) | |
- Improved logic to keep collapse/expand state consistent for Add/Clone/Delete/DnD actions in Layers panel. | |
- Updated Layers panel to allow selecting Goal and Winner for Split Testing from Layers panel. | |
- Improved the Visual Builder scroll performance. | |
- Added vmin and vmax to css allowed units in module settings. | |
version 4.4.5 ( updated 05-01-2020 ) | |
- Improved logic to keep collapse/expand state consistent for Add/Clone/Delete/DnD actions in Layers panel. | |
- Updated Layers panel to allow selecting Goal and Winner for Split Testing from Layers panel. |
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
echo '<p>'; | |
function evaluate_everything($values, $expressions) { | |
$output = []; | |
foreach($expressions as $expression) { | |
$row = []; | |
foreach($values as $value){ | |
$str = ''; | |
eval("\$str = \"$expression\";"); |
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
<?php | |
require('/var/www/html/.../header.php'); | |
$active = 'yes'; | |
$query = "SELECT * FROM calendars WHERE active = ?"; | |
$stmt = $db->prepare($query); | |
$stmt->bind_param('s', $active); | |
$stmt->execute(); | |
$result = $stmt->get_result(); | |
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
<div id="formInputs"> | |
<p> | |
<input type="text" name="email" id="email" style="width:67%;" placeholder="Email*"/> | |
<input type="password" name="password" id="password" style="width:67%;" placeholder="Password*"/> | |
</p> | |
<button id="reviewButton" onclick="login()" class="buttonLogin">Log In</button> | |
</div> | |
<div id="for-logged-in-user-only" style="display:none;"></div> |
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
// buffer all upcoming output | |
ob_start(); | |
echo 'All done. Goodbye.'; | |
// get the size of the output | |
$size = ob_get_length(); | |
// send headers to tell the browser to close the connection | |
header("Content-Length: $size"); | |
header('Connection: close'); |
NewerOlder