I hereby claim:
- I am tuner on github.
- I am klavikka (https://keybase.io/klavikka) on keybase.
- I have a public key whose fingerprint is 297D EB71 AE84 46D7 4BD6 6FD5 C2CA 3963 DF9A 4818
To claim this, I am signing this object:
package harjoitus9; | |
import java.util.Arrays; | |
import java.util.List; | |
/** | |
* @author Kari | |
*/ | |
public class Alkusolmu { | |
static class Solmu { |
I hereby claim:
To claim this, I am signing this object:
import javax.faces.bean.SessionScoped; | |
import javax.faces.view.ViewScoped; | |
import javax.inject.Named; | |
import java.io.Serializable; | |
/** | |
* @author Kari | |
*/ | |
@Named | |
@ViewScoped |
@Retention(RetentionPolicy.RUNTIME) | |
public @interface CommandDescriptor { | |
Class [] supportedChannels(); | |
boolean moderatorRequired(); | |
String [] commands(); | |
} | |
////////////////////////////////////////// | |
public class StandardCommands { |
<macrodef name="git-status"> | |
<attribute name="dir" default=""/> | |
<sequential> | |
<echo>Check that we have a clean working tree...</echo> | |
<exec executable="sh" dir="@{dir}" resultproperty="gitStatusResult"> | |
<arg value="-c"/> | |
<arg value="git status --porcelain | grep -E '.[^\?] '"/> | |
</exec> | |
<fail> | |
<condition> |
package fi.bdb.cms.utils; | |
import com.google.common.cache.CacheBuilder; | |
import com.google.common.cache.CacheLoader; | |
import com.google.common.cache.LoadingCache; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import javax.annotation.PostConstruct; | |
import javax.annotation.PreDestroy; |
# SNAKES GAME | |
# Use ARROW KEYS to play, SPACE BAR for pausing/resuming and Esc Key for exiting | |
import curses | |
from curses import KEY_RIGHT, KEY_LEFT, KEY_UP, KEY_DOWN | |
from random import randint | |
curses.initscr() | |
win = curses.newwin(20, 60, 0, 0) |
from flask import Flask, g, render_template | |
import sqlite3 | |
import html | |
app = Flask(__name__) | |
def get_db(): | |
"""Opens a new database connection if there is none yet for the | |
current application context. | |
""" |
import re | |
import pathlib | |
from collections import defaultdict | |
from math import log, exp | |
def read_table(filename): | |
pattern = re.compile("^\s+(\d+)\s+([^\s]+)$") | |
table = {} |
# | |
# (c) Kari Lavikka 2018 | |
# | |
library(stats) | |
source("mnist.R") | |
mnist <- load_mnist() |