Skip to content

Instantly share code, notes, and snippets.

View attibalazs's full-sized avatar
🌱
Ficus

Atti attibalazs

🌱
Ficus
View GitHub Profile
@attibalazs
attibalazs / .gitignore
Created April 14, 2016 10:36 — forked from octocat/.gitignore
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@attibalazs
attibalazs / Lottery Distribution
Created March 29, 2016 14:57
Lottery Simulator - it`s hard to win the lottery
import random
# example data
#generate random set
x = []
i = 1
while i < 10000000:
l = random.sample(range(1, 60), 6)
str1 = '-'.join(str(e) for e in l)
@attibalazs
attibalazs / gist:78c6968f9cbb76f79701
Last active April 19, 2020 21:14
jstree get_type example - Jstree
$(function () {
$('#jstree').on("select_node.jstree", function (e, data) {
switch (data.node.type) {
case "country":
alert("country");
break;
case "region":
alert("region");
break;