Skip to content

Instantly share code, notes, and snippets.

James Traver code-for-coffee

Block or report user

Report or block code-for-coffee

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@code-for-coffee
code-for-coffee / osx_10.14_cli_notes.md
Last active Oct 30, 2018
OS X 10.14 Mojave Upgrade Notes
View osx_10.14_cli_notes.md

Problem(s)

  • git and other tools needs a tool pointed to an incorrect path
$ git
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), 
missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
@code-for-coffee
code-for-coffee / readme.md
Last active Feb 21, 2018
Typescript Notes
View readme.md

Compiler options

The above tsc command is in the most basic form because no compiler options are specified. There are many compiler options that you can use with the tsc command to control the compilation to your preference. For example:

tsc myscript.ts --noImplicitAny The --noImplicitAny option tells the compiler to check the TypeScript code and raise an error on expressions and declarations with an implied any type. the default value for this option is false, which means it is turned off by default.

some options require a parameter too like the --target option, it requires you to specify the ECMAScript target version you would like your TypeScript file to be compiled into. For example:

tsc myscript.ts --target "ES5" Two other options that are worth mentioning are the --module and the --outfile options.

@code-for-coffee
code-for-coffee / docker_cheatsheet.md
Created Feb 21, 2018
Docker Cheatsheet(s) (from Docker.com)
View docker_cheatsheet.md
## List Docker CLI commands
docker
docker container --help

## Display Docker version and info
docker --version
docker version
docker info
View keybase.md

Keybase proof

I hereby claim:

  • I am code-for-coffee on github.
  • I am codeforcoffee (https://keybase.io/codeforcoffee) on keybase.
  • I have a public key ASBsXI2tUc1uUwMrDbn9MW0-6X_9d7ihX7GdN5zlnp7i0wo

To claim this, I am signing this object:

@code-for-coffee
code-for-coffee / looper.py
Created Nov 5, 2017
loop and glob folders
View looper.py
import glob
import os
path = 'C:/Users/James/PycharmProjects/loopAndAppend/files/'
for filename in glob.glob(os.path.join(path, '*.xml')):
file = open(filename)
# convert contents of file variable
# to string or xml and append to datasetFile.write()
# .write() requires a string argument
@code-for-coffee
code-for-coffee / slides.md
Last active Jun 18, 2017
FEWD Butterfree Day 1
View slides.md

GeneralAssemb.ly

FEWD - HTML BASICS

Katie Allyn

Assistant Instructor

@code-for-coffee
code-for-coffee / .travis.yml
Created Jan 30, 2017
Travis CI Config for Ubuntu w/Node 6.x
View .travis.yml
language: node_js
node_js:
- "6.0"
sudo: required
env:
- CXX=g++-4.8
addons:
apt:
sources:
- ubuntu-toolchain-r-test
View gist:0ba9ac9d1f0458d7239d0b25ce0af1f7
package org.codeforcoffee.exoplanetarchive;
/**
* Created by codeforcoffee on 12/4/16.
*/
public abstract class Product {
public double taxRate = 0.11;
public String name;
public double price;
@code-for-coffee
code-for-coffee / slides.md
Last active Nov 14, 2016
Let's Get Ready for Angular
View slides.md

Let's Get Ready for Angular.js

Today you're going to be introduced to AngularJS, a framework from Google. This framework is very powerful and will make connecting to APIs a breeze. We'll introduce Angular by doing then following:

  • Create a strictly client side application in Angular.js
  • Create controllers to manage data
  • Interact with the $scope of a controller
  • Use $http to fetch resources from APIs

@code-for-coffee
code-for-coffee / StagingRoom.lua
Last active Nov 13, 2016
Civ6 Enable Team Multiplayer
View StagingRoom.lua
-- IMPORTANT: DISABLING TEAM PULLDOWNS UNTIL DAY 0 PATCH
--playerEntry.TeamPullDown:SetDisabled(not bCanChangePlayerValues);
playerEntry.TeamPullDown:SetHide(true);
You can’t perform that action at this time.