Skip to content

Instantly share code, notes, and snippets.

View vc1492a's full-sized avatar
🚀
Let's ride!

Valentino Constantinou vc1492a

🚀
Let's ride!
View GitHub Profile
#-*- coding:utf-8 - *-
def load_dataset():
"Load the sample dataset."
return [[1, 3, 4], [2, 3, 5], [1, 2, 3, 5], [2, 5]]
def createC1(dataset):
"Create a list of candidate item sets of size one."
@ocean90
ocean90 / box-shadow.html
Last active April 11, 2024 13:54
CSS3 Box Shadow, only top/right/bottom/left and all
<!DOCTYPE html>
<html>
<head>
<title>Box Shadow</title>
<style>
.box {
height: 150px;
width: 300px;
margin: 20px;
@fabianp
fabianp / gist:1046959
Created June 25, 2011 22:15
Hilbert matrix in Python
"""
Hilbert matrix using numpy. Contains:
- hilb(n, m) : returns the Hilbert matrix of size (n, m)
- invhilb(n) : returns the inverse of the Hilbert matrix of size (n, n)
"""
import numpy as np
from math import factorial