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/local/src/tennant_gcp/venv/bin/python | |
""" | |
argparse | |
requests | |
google-cloud-compute | |
google-cloud-logging | |
google-cloud-secret-manager | |
""" | |
#;venv=$(head -1 $0 | grep -Po '#!\K.+/venv'); | |
#;sudo python -m venv ${venv}; |
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
angular.module("ui-utils-too", []). | |
directive("scrollfollow", ["$window", ($window) -> | |
restrict: "A" | |
link: (scope, el, attrs) -> | |
window = angular.element($window) | |
parent = angular.element(el.parent()) | |
currentOffsetTop = el[0].getBoundingClientRect().top | |
headerOffsetTop = scope.$eval(attrs.scrollfollow) || 5 | |
# assumes width/padding in px |
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 compiler | |
import scala.collection.mutable.LinkedList | |
/** A `Parser` which understands the Jack grammar. | |
*/ | |
object JackParser extends Parser { | |
def parse(tokenizer: BufferedIterator[Token], tree: TreeNode[TreeValue]) { | |
tokenizer.head match { |