This file contains 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 nette = nette || { }; | |
nette.getValue = function(elem) { | |
if (!elem) { | |
var undefined; | |
return undefined; | |
} | |
if (!elem.nodeName) { // radio | |
for (var i = 0, len = elem.length; i < len; i++) { |
This file contains 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
{block headcontent} | |
{foreach $js as $script} | |
<script type="text/javascript" src="{$basePath}/js/{$script}"></script> | |
{/foreach} | |
{foreach $css as $sheet} | |
<link rel="stylesheet" media="screen,projection,tv" href="{$basePath}/css/{$sheet}" type="text/css"> | |
{/foreach} | |
{/block} | |
{block content} |
This file contains 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
#!/bin/bash | |
# Vaclav Bohac (c) 2010 | |
SCAFDIR=$HOME/repo/nette-scaffolding | |
if [ "$1" = "create" ]; then | |
shift | |
if [ ! -n "$1" ]; then | |
echo "You must specify a project name" |
This file contains 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
#include <iostream> | |
#include <math.h> | |
#include <iomanip> | |
#include <assert.h> | |
#include <ctime> | |
#include <cstdlib> | |
#include "Matrix.hpp" | |
using namespace std; |
This file contains 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
{block content} | |
<div id="header"> | |
<h1>Integration of Nette Framework and Google Closure Library</h1> | |
<h2>Two most powerfull frameworks.</h2> | |
</div> | |
<div> | |
{snippet:list} |
This file contains 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
#Newbie programmer | |
def factorial(x): | |
if x == 0: | |
return 1 | |
else: | |
return x * factorial(x - 1) | |
print factorial(6) | |
#First year programmer, studied Pascal |
This file contains 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
#!/bin/bash | |
# Author: Vaclav Bohac <[email protected]> | |
# | |
# Run easily Google Closure compiler in your project directory. | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. |
This file contains 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
{block content} | |
<div id="header"> | |
<h1>It works!</h1> | |
<h2>Congratulations on your first Nette Framework powered page.</h2> | |
</div> | |
<div> | |
<p>{$message}</p> |
This file contains 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
#!/bin/bash | |
# Refresh firefox "externaly" using repl. | |
echo "BrowserReload();" | nc -q 1 localhost 4242 2>&1 > /dev/null | |
OlderNewer