This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Kodex uživatele | |
Cílem projektu Zákonomat je poskytnout co nejširší veřejný prostor pro *konstruktivní* nápady vedoucí ke zlepšení právního prostředí v České republice. | |
Uživatelé mohou vkládat do systému vlastní návrhy zákonů (zejména v té věcné rovině), tak i psát komentáře k již podaným (a právě zpracovávaným) návrhům někoho jiného a diskutovat o nich. | |
Aby ty skutečně dobré nápady nezapadly v hromadě balastu a nestala se tady z toho jedna velká "Zeď nářků"*), aby komentáře k návrhům měly formu věcné a konstruktivní diskuze a nestal se z nich prostor pro "vyřizování si účtů", tak je potřeba stanovit určitá minimální pravidla pro používání tohoto systému. | |
Chápeme, že některá pravidla mohou působit trochu represivně, ale bohužel několikaleté zkušenosti ukazují, že se v internetových diskuzích občas objevují individua, která nemají zájem o věcnou a férovou diskuzi, ale spíše sledují vlastní zájmy a zájmíčky. | |
Každý uživatel (ať již navrhovatel nebo komentátor) tím, že vloží do systému vlastní návrh, přidá kome |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#test novel 1 | |
* lalalala | |
* nananana | |
* batman | |
* marihuana |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function subscribeAllMouseEvents(element) { | |
var evNames = ['mousedown', 'mouseup', 'click', 'dblclick', 'mousemove', 'mouseover', 'mouseout', 'mousewheel' ]; | |
evNames.forEach(function (evName) { | |
element.addEventListener(evName, function(e) { | |
console.log(e); | |
}); | |
}); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Zpráva z nově provedeného výzkumu agentury Ipsos ve spolupráci se studenty Fakulty | |
sociálních věd Univerzity Karlovy říká, že v Česku vzrostl počet lidí, kteří jsou pro zákaz | |
kouření v restauracích. Pro úplný zákaz kouření by bylo 78 % Čechů, což je poměrně | |
vysoký počet lidí. K nekuřákům se totiž přidávají pomalu ale jistě už i kuřáci. | |
Přitom v roce 2007 podporovalo zákaz jen 13 procent kuřáků, dnes s nevím |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var cp = require('child_process'); | |
var isWin = /^win/.test(process.platform); | |
var cloneProcess; | |
if (isWin) { | |
cloneProcess = cp.spawn('grunt.cmd', []); | |
}else{ | |
cloneProcess = cp.spawn('grunt'); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fs = require('fs'); | |
var originalAddMatcherResult = jasmine.Spec.prototype.addMatcherResult; | |
jasmine.Spec.prototype.addMatcherResult = function() { | |
if (!arguments[0].passed()) { | |
browser.takeScreenshot().then(function(png) { | |
var stream = fs.createWriteStream("./screenshot.png"); | |
stream.write(new Buffer(png, 'base64')); | |
stream.end(); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
<h1>no namespace</h1> | |
</body> | |
<script src="/socket.io/socket.io.js"></script> | |
<script> | |
var socket = io('/'); | |
socket.emit('my other event', { my: 'data1212' }); | |
</script> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0 info it worked if it ends with ok | |
1 verbose cli [ 'C:\\Program Files\\nodejs\\\\node.exe', | |
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js', | |
1 verbose cli 'update', | |
1 verbose cli 'grunt-contrib-concat' ] | |
2 info using [email protected] | |
3 info using [email protected] | |
4 verbose node symlink C:\Program Files\nodejs\\node.exe | |
5 verbose url raw grunt-contrib-concat | |
6 verbose url resolving [ 'https://registry.npmjs.org/', './grunt-contrib-concat' ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head lang="en"> | |
<meta charset="UTF-8"> | |
<title></title> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
// Let's say we have a model with data | |
var propObj = {}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var runSequentially = function(arr, onEach){ | |
var res = []; | |
var step = function() { | |
return onEach(arr[0]).then(function(resolved) { | |
arr.splice(0,1); | |
resolved.push(res); | |
if (arr.length > 0) { | |
return step(); | |
} else { | |
return res; |