This file contains hidden or 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
| <h2>Ingredients</h2> | |
| <ol class="ingredients-list"> | |
| <!-- loop through and display existing ingredients --> | |
| <li data-ng-repeat="ingredient in formMeal.ingredients track by $index"> | |
| <textarea name="ingredientLines" | |
| type="text" | |
| data-ng-model="formMeal.ingredients[$index].name" | |
| placeholder="Add ingredient" | |
| data-ng-change="changeIngredient($index)" | |
| ></textarea> |
This file contains hidden or 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
| $scope.changeIngredient = function(index) { | |
| if (index == $scope.formMeal.ingredients.length -1) { | |
| $scope.formMeal.ingredients.push(''); | |
| } | |
| }; |
This file contains hidden or 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
| # Automatically adds branch name to the end of every commit message. Handy for git/JIRA integrations. | |
| # Make a copy of .git/hooks/prepare-commit-msg.sample in your repo and name the file prepare-commit-msg (remove "sample" extension) | |
| # Paste the following into the file, save the file, and try it out in bash | |
| NAME=$(git branch | grep '*' | sed 's/* //') | |
| echo $(cat "$1") "$NAME" > "$1" |
This file contains hidden or 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
| #Add this to the bottom of your .bashrc file and run source ~/.bashrc | |
| #thanks to | |
| #http://www.ibm.com/developerworks/linux/library/l-tip-prompt/ and | |
| #http://martinfitzpatrick.name/article/add-git-branch-name-to-terminal-prompt-mac/ | |
| # Git branch in prompt. | |
| parse_git_branch() { | |
| git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' |
This file contains hidden or 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
| -- Select | |
| SELECT * FROM items_ordered WHERE customerid = 10449; | |
| SELECT * FROM items_ordered WHERE item = 'tent'; | |
| SELECT customerid, order_date, item FROM items_ordered WHERE item LIKE '%S'; | |
| SELECT DISTINCT item FROM items_ordered; |
This file contains hidden or 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
| { | |
| "courses":{ | |
| "CS123":{ | |
| "fullName":"CS 123 - Introduction to Coding", | |
| "description":"A solid course with a brilliant instructor", | |
| "tips":[ | |
| { | |
| "tip":"Study hard", | |
| "timestamp":"July 2017" | |
| }, |
This file contains hidden or 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
| .pros-cons-table { | |
| width:100%; | |
| } | |
| .pros-cons-table tbody tr td { | |
| border: 2px solid white; | |
| } | |
| .pros-cons-header { | |
| width: 50%; |
This file contains hidden or 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
| [ | |
| { | |
| "name": "Rusty Broadsword", | |
| "prestige": 0, | |
| "slot": "mainHand", | |
| "rarity": "common", | |
| "classRestriction": "warrior", | |
| "noDrop": false, | |
| "hpRaw": 0, | |
| "manaRaw": 0, |
This file contains hidden or 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 "basehero.gd" | |
| #hero.gd | |
| #todo: globalize these | |
| var mainRoomMinX = 110 | |
| var mainRoomMaxX = 360 | |
| var mainRoomMinY = 250 | |
| var mainRoomMaxY = 410 | |
| var outsideMinX = 150 |
This file contains hidden or 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 KinematicBody2D | |
| #Hero properties - not governed by external spreadsheet data | |
| #These are set when a hero is randomly generated in heroGenerator.gd | |
| var heroID = -1 | |
| var heroName = "Default Name" | |
| var heroClass = "NONE" | |
| var level = -1 | |
| var xp = -1 | |
| var currentRoom = 0 #outside by default |