Skip to content

Instantly share code, notes, and snippets.

@ondrek
ondrek / doctor.json
Last active August 29, 2015 13:56
Slovak Academic Degrees Statistics
[ { "count" : 9815,
"degree" : "PhD."
},
{ "count" : 2547,
"degree" : "CSc."
},
{ "count" : 433,
"degree" : "DrSc."
},
{ "count" : 290,
static assets in JS and CSS
how to include jquery
how to include google maps api
how to add social media
templates in templates
{{ templates.xxx }}
@ondrek
ondrek / gist:9410322
Last active August 29, 2015 13:57
Javascript Bind Native Implementation
var myFunc = function(){};
myFunc.prototype.bind = function( funct, obj ) {
return function(){
return funct.apply( obj, arguments );
};
};
/*
Element.addEventListener( "change", this.bind( this.refreshImagePreview, this ) );
/**
*
* Albumprinter Copyright 2014
* Samuel Ondrek, @ondrek
*
@ondrek
ondrek / random-boolean.js
Created March 7, 2014 15:06
Random Boolean in Javascript
Math.random() >= 0.5
@ondrek
ondrek / javascript.js
Last active August 29, 2015 13:57
Zinken Structure ™
var CreateBuildDirectory = function(callback) {
events.EventEmitter.call(this);
this.on("error", function(error){
throw error;
process.kill();
});
this.on("removed", function(){
@ondrek
ondrek / boilerplate.js
Last active July 3, 2023 21:14
Node.js Boilerplate for prototype-based class with events-functionality
var events = require("events");
var Scanner = function() {
events.EventEmitter.call(this);
this.on("after1000", function(){
console.log("one");
});
document.addEventListener("deviceready", function(){ console.log(device) }, false);
/*
File: CarbonSound/Sound.h
Contains: Sound Manager Interfaces.
Version: CarbonSound-116~1
Copyright: © 1986-2008 by Apple Computer, Inc., all rights reserved
Bugs?: For bug reports, consult the following page on
@ondrek
ondrek / gist:9689093
Created March 21, 2014 15:43
zoznam vsetkych podvodov, predrazenych tendrov za vlady fica ;)
Zodpovednosť R.Fica – LEN za svoju PRVÚ vládu 2006-2010:
Rozdelenie kvót CO2 – kvóty obchodované v EÚ
Suma: 11 086 000 000 Sk
Zodpovednosť: SNS
Nástenkový tender na ministerstve výstavby
Suma: 350 000 000 Sk
Zodpovednosť: SNS