Skip to content

Instantly share code, notes, and snippets.

<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>
@mekhami
mekhami / Index.vue
Last active February 15, 2018 20:10
export default {
components: {
TwoPaneLayout,
Filters,
SampleTable,
SampleTableHeader
},
apollo: {
samples: {
query: SAMPLES_QUERY,
'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)
}
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)
@mekhami
mekhami / notes.txt
Last active January 26, 2018 04:59
dragon knight class notes
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.
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)
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)
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])
<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>