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 ( | |
"context" | |
"errors" | |
"fmt" | |
) | |
type ( | |
Service struct { |
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
#! /bin/bash | |
# Get Packages | |
echo Get Packages | |
gsutil cp gs://fdb/foundationdb-clients_3.0.7-1_amd64.deb . | |
gsutil cp gs://fdb/foundationdb-server_3.0.7-1_amd64.deb . | |
# Install FoundationDB | |
echo Install FoundationDB | |
sudo dpkg -i foundationdb-server_3.0.7-1_amd64.deb foundationdb-clients_3.0.7-1_amd64.deb |
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
IntegerGreater = func(x interface{}, y interface{}) bool { | |
if x == nil || y == nil { | |
return false | |
} | |
var xint int = 0 | |
var yint int = 0 | |
xtyp := reflect.TypeOf(x) |
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
gcloud compute firewall-rules create default-allow-${HOST%.*} \ | |
--allow tcp:6443 \ | |
--target-tags ${HOST%.*}-cluster \ | |
--source-ranges 0.0.0.0/0 |
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 ( | |
"net/http" | |
"net/url" | |
) | |
func main() { | |
vals := make(url.Values, 0) |
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
{ | |
"year": "2014", | |
"make": "Ford", | |
"model": "Fusion", | |
"style": "All", | |
"products": [{ | |
"id": 11000, | |
"attributes": [{ | |
"key": "Install Time", | |
"value": "10 minutes" |
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="hitchlookup" class="width-100"> | |
<span id="closeLookup">X</span> | |
<p>Quick Vehicle Lookup</p> | |
<form method="get" id="hitchLookupForm" name="hitchLookup_compressed" action="@Url.Content("~/HitchLookup/find")"> | |
<div> | |
<!-- Select Year --> | |
<select disabled="disabled" name="year" id="select_year" required> | |
<option value="">Select Year</option> | |
@*foreach (string year in years) { | |
<option value="@year">@year</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
// Problem: Given a sequence of nonnegative integers A and an integer T, return whether there is a *continuous sequence* of A that sums up to exactly T | |
// Example: | |
// [23, 5, 4, 7, 2, 11], 20. Return True because 7 + 2 + 11 = 20 | |
// [1, 3, 5, 23, 2], 8. Return True because 3 + 5 = 8 | |
// [1, 3, 5, 23, 2], 7 Return False because no sequence in this array adds up to 7 | |
// Note: We are looking for an O(N) solution. There is an obvious O(N^2) solution which is a good starting point but is not the final solution we are looking for. It’s important for the code to be as efficient as possible | |
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
.ui-tabs-vertical .ui-tabs-nav { | |
padding: .2em .1em .2em .2em; | |
float: left; | |
width: 18%; | |
border: 0px; | |
background: #FFFFFF no-repeat; | |
overflow: hidden; | |
border-radius: 0; | |
box-shadow: -7px 0 7px #eaeaea inset; | |
} |
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
{ | |
"year": "2010", | |
"make": "", | |
"model": "", | |
"style": "", | |
"exposed": "", | |
"drilling": "", | |
"installTime": "", | |
"availableMakes": [ | |
"Acura", |
NewerOlder