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
<template> | |
<section> | |
<h1>Sample Filters</h1> | |
<h2>Filter by ID, type, owner, or date.</h2> | |
<section class="form-group"> | |
<label for="base-selection">Base Selection</label> | |
<select v-model="localFilters.inWorkflowInstance"> | |
<option selected value="null">All</option> | |
<option value="true">Submitted</option> | |
<option value="false">Unsubmitted</option> |
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
export default { | |
components: { | |
TwoPaneLayout, | |
Filters, | |
SampleTable, | |
SampleTableHeader | |
}, | |
apollo: { | |
samples: { | |
query: SAMPLES_QUERY, |
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
targets=( esp-samples/src/shared ) | |
for i in "${targets[@]}" | |
do | |
if [ -f $i ]; then | |
echo "symlink already exists for $i"; | |
else ln -s esp-shared-components $i; | |
echo "symlinked shared into $i"; | |
fi | |
done |
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
'use strict' | |
const path = require('path') | |
const utils = require('./utils') | |
const config = require('../config') | |
const vueLoaderConfig = require('./vue-loader.conf') | |
function resolve (dir) { | |
return path.join(__dirname, '..', dir) | |
} |
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
from django.db import models | |
# Create your models here. | |
class Person(models.Model): | |
name = models.TextField() | |
parents = models.ManyToManyField('self', through='PersonRelationship') | |
class PersonRelationship(models.Model): | |
parent = models.ForeignKey(Person, on_delete=models.CASCADE) |
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
Dragon Knight/Dragoon | |
Stat Priority: Con>Wis>Str/Dex>Int | |
Con can increase your maximum blood | |
Wis increases effectiveness of blood | |
Str/Dex/Int as combat stats | |
Elves would be terrible, high skills and hit rate but blood would be significantly less effective. | |
Humans/Halfelves would be good. Humans with their extra stat, halfelves with high wis would have very solid blood abilities. | |
Dwarves/Orcs great for combat, orcs would have weaker blood effects but it would last longer. |
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
class FlammableMixin(object): | |
def burn(self, damage_value): | |
self.remove_hp(damage_value) | |
class FreezableMixin(object): | |
def chill(self, damage_value, movement_reduction): | |
self.remove_hp(damage_value) | |
self.lower_speed(movement_reduction) |
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
const data = proxy.readQuery({ query: INVENTORY_ITEMS_QUERY }) | |
const index = data.inventoryItems.indexOf( | |
data.inventoryItems.find(item => item.uuid === updateInventoryItem.inventoryItem.uuid) | |
) | |
data.inventoryItems.splice(index, 1, updateInventoryItem.inventoryItem) |
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
def movegen(self): | |
singles = [] | |
doubles = [] | |
for x in range(2, self.w+2): | |
for y in range(2, self.h+2): | |
if self.board[x][y] == self.turn: | |
for n in self.MOVES_1: | |
if self.board[x+n[0]][y+n[1]] == self.EMPTY: | |
move = (x+n[0], y+n[1], x+n[0], y+n[1]) |
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
<template> | |
<table> | |
<thead> | |
<tr v-for="column in columns"> | |
<td>{{ column.label }}</td> | |
</tr> | |
</thead> | |
<tbody> | |
<tr v-for="row in rows"> | |
<td v-for="column in columns">{{ row[column] }}</td> |