Skip to content

Instantly share code, notes, and snippets.

@OAlm
OAlm / 1. listening-mouse-events.html
Last active August 29, 2015 14:17
Verkkopalvelut, basic examples on mouse event listeners, spring 2015 (Metropolia) DEMO: http://bit.ly/1Oqijrp
<!DOCTYPE html>
<!-- LISTENING EVENTS EXAMPLES FROM W3SCHOOLS, SEE http://www.w3schools.com/jsref/dom_obj_event.asp -->
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="basic.css">
</head>
<body>
<h2>Mouse event listener examples, javascript</h2>
<div class="item"><button id="clickButton">1. Click me</button></div>
@OAlm
OAlm / 1. listening-mouse-events-jquery.html
Last active August 29, 2015 14:17
Verkkopalvelut 2015, basic mouse event listeners with jquery (Metropolia). DEMO: http://bit.ly/1N5rc6f
<!DOCTYPE html>
<!-- LISTENING EVENTS EXAMPLES FROM W3SCHOOLS, SEE http://www.w3schools.com/jsref/dom_obj_event.asp -->
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="basic.css">
<script src="jquery-2.1.3.min.js"></script>
</head>
<body>
<h2>Mouse event listener examples, jquery</h2>
@OAlm
OAlm / 1_main.py
Last active September 9, 2015 19:45
CC Assignment 2, fall 2015, Markov Chains
__author__ = 'alm'
import logging
import random
from collections import Counter
from collections import defaultdict
from ticker import Ticker
import help
@OAlm
OAlm / main.py
Created September 15, 2015 19:32
CC assignment 3, fall 2015
__author__ = 'alm'
from nltk.stem.wordnet import WordNetLemmatizer
import gzip
import zipfile
import sys
import codecs
from assignment2 import help
@OAlm
OAlm / deap_tutorial_itcc.py
Created September 29, 2015 09:32 — forked from assamite/deap_tutorial_itcc.py
DEAP example
'''DEAP example. We try to evolve a list of digits to match a target list of
digits, that represents a date.
'''
import random
from deap import algorithms
from deap import base
from deap import creator
from deap import tools
# Date, a target which we want to evolve.
@OAlm
OAlm / lassemaija.md
Last active September 29, 2015 18:26 — forked from anonymous/lassemaija.md

Lasse-Maijan etsivätoimisto, kirjat

  1. Timanttien arvoitus
  2. Hotellin arvoitus
  3. Sirkuksen arvoitus
  4. Kahvilan arvoitus
  5. Muumion arvoitus
  6. Elokuvateatterin arvoitus
  7. Junan arvoitus
  8. Sanomalehden arvoitus
\score {
<<
{ \key c \major
e'2. e'8. e'16 e'4 e'2 d'4 e'2. e'16 e'8. fis'16 gis'8. b'2.
a2. gis8. gis16 gis16 gis8. gis2. b8. b16 b2.
d'2 cis'4 cis'4 cis'4 b4 b2 b4. b2 b8
a2. gis8. gis16 gis16 gis8. gis2. b8. b16 b2.
d'2 cis'4 cis'4 cis'4 b4 b2 b4. b2 b8
e'2. e'8. e'16 e'4 e'2 d'4 e'2. e'16 e'8. fis'16 gis'8. b'2.
}

Articles related to robot journalism