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 bash | |
GCP_PROJECT="<REDACTED>" | |
function write_provider { | |
version=$1 | |
cat > provider.tf << EOF | |
provider "google" { | |
project = "$GCP_PROJECT" |
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
2019/10/07 12:28:41 [INFO] Terraform version: 0.11.14 | |
2019/10/07 12:28:41 [INFO] Go runtime version: go1.12.5 | |
2019/10/07 12:28:41 [INFO] CLI args: []string{"/usr/local/Cellar/[email protected]/0.11.14/bin/terraform", "plan"} | |
2019/10/07 12:28:41 [DEBUG] Attempting to open CLI config file: /Users/nsawyer/.terraformrc | |
2019/10/07 12:28:41 [DEBUG] File doesn't exist, but doesn't need to. Ignoring. | |
2019/10/07 12:28:41 [INFO] CLI command args: []string{"plan"} | |
2019/10/07 12:28:41 [INFO] command: backend initialized: *gcs.Backend | |
2019/10/07 12:28:41 [DEBUG] checking for provider in "." | |
2019/10/07 12:28:41 [DEBUG] checking for provider in "/usr/local/Cellar/[email protected]/0.11.14/bin" | |
2019/10/07 12:28:41 [DEBUG] checking for provider in ".terraform/plugins/darwin_amd64" |
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
$ cat *.java | |
public class ThisTest1 { | |
private String foo; | |
public ThisTest1() { | |
this.foo = "some string"; | |
} | |
} | |
public class ThisTest2 { | |
private String foo; |
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 controllers | |
import scala.collection.mutable.{Map => MMap} | |
import play.api.libs.json.{Json, JsValue} | |
import play.api.mvc._ | |
object Application extends Controller { | |
def index = Action { |
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
// Define array and a function to return the max of two numbers | |
val arr = Array(1, 2, 3, 4, 5) | |
def getMax(a :Int, b :Int) : Int = if (a > b) a else b | |
// Use foldLeft to find the max in the array | |
val max1 = (Integer.MIN_VALUE /: arr) { (large, elem) => getMax(large, elem) } | |
// No need to use sensible variable names, just use underscores! | |
val max2 = (Integer.MIN_VALUE /: arr) { getMax(_, _) } |
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
extends layout | |
block content | |
div(id="debt-solver-app") | |
header | |
h1= title | |
p Welcome to #{title} | |
p This app was written to help solve the all-too-familiar problem of paying off one's debt. | |
section(id="main") |
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
{ | |
"totalTweets": 26, | |
"tweetsPerMinute": { | |
"all": 0.0009084556254367575, | |
"tr": 0.0008385744234800839, | |
"zd": 0.0002445842068483578 | |
}, | |
"tweetsPerBrand": { | |
"tr": 24, | |
"zd": 7 |
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
{ | |
id: 428977109894430700, | |
id_str: '428977109894430721', | |
text: 'No such pipe, or this pipe has been deleted', | |
source: '<a href="http://goo.gl/IQ4Cjt" rel="nofollow">twitfeed сервер1</a>', | |
truncated: false, | |
in_reply_to_status_id: null, | |
in_reply_to_status_id_str: null, | |
in_reply_to_user_id: null, | |
in_reply_to_user_id_str: null, |
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 Variables | |
## ===================== | |
# Enable Git completions | |
source ${HOME}/.gitcompletion.bash | |
# Executables for local PHP 5.4 development stack | |
PATH=/usr/local/sbin:/usr/local/apache2/bin:/usr/local/bin:/usr/local/mysql/bin:${PATH} | |
PATH="$(brew --prefix php54)/bin:$PATH" |
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
moormann@moormannmbpx7:~/dev/git/stash/techrepublic (master)$ composer update fly/ | |
Loading composer repositories with package information | |
Updating dependencies | |
Your requirements could not be resolved to an installable set of packages. | |
Problem 1 | |
- The requested package symfony/symfony == 2.1.9999999.9999999-dev could not be found. | |
Problem 2 | |
- The requested package symfony/assetic-bundle == 9999999-dev could not be found. | |
Problem 3 |
NewerOlder