Skip to content

Instantly share code, notes, and snippets.

Avatar

Joe jcreager

View GitHub Profile
View terraform.log
2020/07/25 14:12:53 [INFO] Terraform version: 0.12.29
2020/07/25 14:12:53 [INFO] Go runtime version: go1.13.14
2020/07/25 14:12:53 [INFO] CLI args: []string{"/usr/local/bin/terraform", "--version"}
2020/07/25 14:12:53 [DEBUG] Attempting to open CLI config file: /Users/joe/.terraformrc
2020/07/25 14:12:53 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2020/07/25 14:12:53 [INFO] CLI command args: []string{"version", "--version"}
2020/07/25 14:12:53 [DEBUG] checking for provider in "."
2020/07/25 14:12:53 [DEBUG] checking for provider in "/usr/local/bin"
2020/07/25 14:12:53 [INFO] Failed to read plugin lock file .terraform/plugins/darwin_amd64/lock.json: open .terraform/plugins/darwin_amd64/lock.json: no such file or directory
@jcreager
jcreager / fibonacci.go
Created Nov 9, 2017
A Tour of Go - Exercise: Fibonacci closure
View fibonacci.go
package main
import "fmt"
// fibonacci is a function that returns
// a function that returns an int.
func fibonacci() func() int {
x, y, z := 0, 1, 0
return func() int {
z, x, y = x, y, x+y
@jcreager
jcreager / wordcount.go
Created Nov 7, 2017
A Tour of Go - Exercise: Maps
View wordcount.go
package main
import (
"golang.org/x/tour/wc"
"strings"
)
func WordCount(s string) map[string]int {
words := strings.Fields(s)
var count map[string]int
@jcreager
jcreager / helloWorld.c
Created May 3, 2016
Hello World! in C
View helloWorld.c
#include<stdio.h>
main()
{
printf("Hello World");
}
View helloWorld.asm
; ----------------------------------------------------------------------------------------
;Source: http://cs.lmu.edu/~ray/notes/x86assembly/
;Writes "Hello, World" to the console using only system calls. Runs on 64-bit Linux only.
; To assemble and run:
;
; nasm -felf64 hello.asm && ld hello.o && ./a.out
; ----------------------------------------------------------------------------------------
global _start
@jcreager
jcreager / helloWorld.sh
Created May 2, 2016
Print Hello World Node
View helloWorld.sh
$node helloWorld.js
@jcreager
jcreager / hellWorld.cpp
Created May 2, 2016
Print Hello World in c++
View hellWorld.cpp
#include <iostream>
int main()
{
std::cout << "Hello, world!\n";
}
@jcreager
jcreager / helloWorld.java
Created May 2, 2016
Print Hello World! in Java
View helloWorld.java
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, World");
}
}
@jcreager
jcreager / helloWorld.py
Created May 2, 2016
Print Hello World in Python
View helloWorld.py
print 'Hello World!'
@jcreager
jcreager / helloWorld.php
Last active May 2, 2016
Hello World! in PHP
View helloWorld.php
<?php
print 'Hello World!'
//or
echo 'Hello World!'
?>
You can’t perform that action at this time.