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 / 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

Sequence of 31 functions by Propp

From: https://en.wikipedia.org/wiki/Vladimir_Propp

  1. ABSENTATION (LEAVE HOME): A member of the hero's community or family leaves the security of the home environment. This may be the hero themselves, or it may be some other relation that the hero must later rescue. This division of the cohesive family injects initial tension into the storyline. This may serve as the Hero's introduction, typically portraying them as an ordinary person.
  2. INTERDICTION (WARNING FOR HERO): A forbidding edict or command is passed upon the hero ('don't go there', 'don't do this'). The hero is warned against some action.
  3. VIOLATION of INTERDICTION (HERO AGAINST THE WARNING). The prior rule is violated. Whether performed by the Hero by accident or temper, a third party or a foe, this generally leads to negative consequences. The villain enters the story via this event, although not necessarily confronting the hero. They may be a lurking and manipulative presence, or might act aga