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
/*global document, jQuery */ | |
(function ($) { | |
'use strict'; | |
$(document).on('click', 'button', (function () { | |
var labels = ['Edit', 'Apply'], | |
createInput = function (text) { | |
return $('<input type="text">').val(text); |
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
#!/bin/bash | |
REPO=$HOME/repo/nette | |
SUMMARY="Nette Framework" | |
MESSAGE="Internet connection not availaible." | |
sleep 5 # delay for wifi connection | |
if curl --silent --head http://www.google.com/ | egrep "20[0-9] Found|30[0-9] Found" > /dev/null | |
then |
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
{* | |
* VisualPaginator template for Twitter bootstrap. | |
* @param Paginator $paginator | |
* @param array $steps | |
*} | |
<div n:if="$paginator->pageCount > 1" class="pagination"> | |
<ul> | |
<li n:class="$paginator->first ? disabled"> | |
<a n:href="this page => $paginator->page - 1">Zpět</a> |
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
/* Vaclav Bohac (c) 2012 - Problem No. 10139 in C++ */ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <math.h> | |
#include <vector> | |
#include <queue> | |
using std::vector; |
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
/* Vaclav Bohac (c) 2012 - Problem No. 10042 in C++ */ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <math.h> | |
#include <vector> | |
using std::vector; | |
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
/* Vaclav Bohac (c) 2012 - Problem No. 848 in C++ */ | |
#include <stdlib.h> | |
#include <algorithm> | |
#include <iostream> | |
#include <sstream> | |
#include <vector> | |
using namespace std; |
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
<?php | |
/** | |
* Makefile for converting project from PHP 5.3 to PHP 5.2. | |
* | |
* Call task 'main' to build a full release. | |
* The release built will be stored in 'dist' directory. | |
*/ | |
require 'tools/Nette/nette.min.php'; |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <math.h> | |
#define MAX(X, Y) ((X) > (Y) ? (X) : (Y)) | |
#define ABS(X) ((X) < 0 ? -(X) : (X)) | |
#define MAX_CIRCLES 8 | |
double R[MAX_CIRCLES], C[MAX_CIRCLES]; |
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
/* Solution to the UVa Online Judge problem no. 337 */ | |
#include <stdio.h> | |
#include <stdlib.h> | |
int row, column, insmode = 0, ctrlseq = 0; | |
char display[10][10]; | |
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
/* Solution to the UVa Online Judge problem no. 10013 */ | |
#include <stdlib.h> | |
#include <stdio.h> | |
#define MAX_SIZE 1000000 | |
char buffer[4 * MAX_SIZE], | |
number[MAX_SIZE]; |