I hereby claim:
- I am ondrejslamecka on github.
- I am ondrejslamecka (https://keybase.io/ondrejslamecka) on keybase.
- I have a public key whose fingerprint is 5172 FB9C FCC2 4483 6C42 AB0D B681 321E 9F57 69D1
To claim this, I am signing this object:
julia> using BenchmarkTools | |
julia> using Dictionaries | |
julia> function f(d) | |
for _ = 1:1000 | |
set!(d, 1, 1) | |
unset!(d, 1) | |
end | |
end |
using Luxor | |
using Colors | |
const height = 80 | |
const lw = height / 10 | |
mutable struct Spring | |
k::Float64 # spring constant | |
equilibrium_length::Float64 | |
current_length::Float64 |
I hereby claim:
To claim this, I am signing this object:
<!-- | |
Sets the value back to select | |
Understands selected attribute | |
Arrow control works | |
TODO: optgroup, size,… (I haven't had need for those yet – if you had and want to share please contact me) | |
--> | |
<select class="selectlike"> | |
<option data-html="<b>Fancy text with HTML and styles</b>">Not so fancy fallback text</option> | |
</select> |
CREATE TABLE druh ( | |
"ID_druhu" int NOT NULL, | |
"Nazev_cesky" character varying, | |
"Nazev_latinsky" character varying, | |
"Vyskyt" character varying, | |
"Stupen_ohrozeni" character varying | |
); | |
INSERT INTO "druh" ("ID_druhu", "Nazev_cesky", "Nazev_latinsky", "Vyskyt", "Stupen_ohrozeni") VALUES | |
(1,'Medvěd lední','Ursus maritimus','pobřeží a zamrzlá moře polárních oblastí Evropy Asie a Ameriky','VU'), |
<?php | |
namespace App; | |
class Mailer | |
{ | |
/** @var \Nette\Mail\IMailer @inject */ | |
public $mailer; |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
/* --- IO --- */ | |
/** | |
* @brief Reads line of text, reallocates memory if needed | |
* @param input | |
* @param size |
// ascii85 encoder/decoder prototype | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
int ascii85encode(unsigned char *input, char *output) | |
{ | |
size_t inputSize = strlen((char *)input), inputIndex = 0; | |
unsigned int i = 0, j = 0, chunk = 0; |
# DOM Class - based on http://www.openjs.com/scripts/dom/class_manipulation.php | |
class @DomClass | |
this.has = (el, className) -> | |
return el.className.indexOf(className) != -1 | |
this.add = (el, className) -> | |
if !this.has(el, className) | |
el.className += ' ' + className |
/* Ondrej Slamecka 2012 */ | |
/** | |
* @param success Callback called on success | |
* @returns bool | |
*/ | |
google.maps.Map.prototype.useGeolocation = function(success, failure) | |
{ | |
if(typeof success === 'undefined') | |
return false; |