Description...
The Utilities.get_random_integer() function returns a pseudo-random integer number in the range [min, max] or [min, max), depending on its arguments.
@-moz-document domain(monkeytype.com) { | |
.keymapKey { | |
&[data-key="wW"], | |
&[data-key="cC"], | |
&[data-key="jJ"], | |
&[data-key=";:"], | |
&[data-key="aA"], | |
&[data-key=".>"] { | |
background-color: #f38ba830 !important; |
spam <- c( | |
"million" = 156, | |
"dollars" = 29, | |
"adclick" = 51, | |
"conferences" = 0.0001 | |
) | |
ham <- c( | |
"million" = 98, | |
"dollars" = 119, |
const nanoid = require('nanoid'); | |
function readable_id() { | |
const id = nanoid.customAlphabet('1234567890abcdef', 8)(); | |
const readable_id = `${id.slice(0, 4)}-${id.slice(4)}` | |
return readable_id; | |
} | |
const candidates = [ | |
{ id: readable_id(), name: 'Janne Salokoski', list: 'Osakuntalaiset' }, |
#!/bin/bash | |
# Tom Hale, 2016. MIT Licence. | |
# Print out 256 colours, with each number printed in its corresponding colour | |
# See http://askubuntu.com/questions/821157/print-a-256-color-test-pattern-in-the-terminal/821163#821163 | |
set -eu # Fail on errors or undeclared variables | |
printable_colours=256 |
# | |
# Luo tähän tiedostoon yksinkertainen komentoriviohjelma, joka toimii laskimena. | |
# Laskimen tarvitsee vähintään pystyä laskemaan x+y -laskuja. | |
# Yritä tehdä laskimesta helppokäyttöinen ja lisätä peruslaskimen ominaisuudet. | |
# Käytä haluamaasi ohjelmointikieltä. | |
# | |
# Koodin ei tarvitse olla täydellinen, eikä sen tarvitse päästä buildaamisesta | |
# läpi. Harjoituksen tarkoituksena on kartoittaa ohjelmointiosaamista. | |
# |
nul = [] execVM "init.sqf"; |
var URL = "http://localhost:8080/"; | |
var Socket = function(url) | |
{ | |
// Global properties | |
this.url = url; | |
this.connection = new WebSocket(URL); | |
// Global functions | |
this.send = function(msg) |
var Point = function(x, y) | |
{ | |
this.x = Number(x); | |
this.y = Number(y); | |
this.toString = function() | |
{ | |
return "(" + this.x + ", " + this.y + ")" | |
} | |
} |
<!DOCTYPE html> | |
<html> | |
<head> | |
<style type="text/css"> | |
path | |
{ | |
fill: none; | |
stroke: red; |