Skip to content

Instantly share code, notes, and snippets.

View janosrusiczki's full-sized avatar

János Rusiczki janosrusiczki

View GitHub Profile
@janosrusiczki
janosrusiczki / class.perlin.php
Created July 4, 2012 14:17
PHP port of Ken Perlin's "Improved Noise"
<?php
//This is a port of Ken Perlin's "Improved Noise"
// http://mrl.nyu.edu/~perlin/noise/
// Originally from http://therandomuniverse.blogspot.com/2007/01/perlin-noise-your-new-best-friend.html
// but the site appears to be down, so here is a mirror of it
class Perlin {
var $p, $permutation, $seed;
  • face sens
  • locat - "Unde ești locat?"
  • introdu-te - "Introdu-te să te cunoaștem"
  • shiftat
  • vin înspre tine - "Vin înspre tine cu următoarea propunere"
  • impactat - "Cum ești impactat de această schimbare?"
  • aware - "Trebuie să fiți toți aware de importanța"
<?php
$cnp = $_POST['cnp'];
$email = $_POST['email'];
$data_nasterii = $_POST['data_nasterii'];
$anul = $_POST['anul'];
$parola = $_POST['parola'];
$tipul = $_POST['tipul'];
$nume = $_POST['nume'];
$prenume = $_POST['prenume'];
# frozen_string_literal: true
namespace :flickr do
desc "Imports a Flickr export (from 2018)"
task import: :environment do
photo_files = []
Dir.glob("#{Rails.root}/flickr/photos/*.{jpg,png}").each do |file_name|
photo_files << file_name
end
[
{
"name":"Bicycle",
"confidence":99.89359283447266,
"bounding_box":{
"top":0.6072657704353333,
"left":0.5697808265686035,
"width":0.1989825963973999,
"height":0.3251010775566101
}
@janosrusiczki
janosrusiczki / hgt.py
Created February 11, 2022 19:53
Patched phyghtmap/hgt.py file to work with GDal version 3 and above
from __future__ import print_function
__author__ = "Adrian Dempwolff (phyghtmap@aldw.de)"
__version__ = "2.23"
__copyright__ = "Copyright (c) 2009-2021 Adrian Dempwolff"
__license__ = "GPLv2+"
import os
import sys
from matplotlib import __version__ as mplversion
body {
background:#fff;
margin-top: 0px;
margin-left: 0px;
margin-right: 0px;
padding: 0;
background-image:
url(images/bar-back.gif);
background-repeat:repeat-x;
font-family:trebuchet MS, trebuchet, verdana, arial, sans-serif;