Skip to content

Instantly share code, notes, and snippets.

@nebjak
nebjak / Main.cs
Created May 14, 2011 17:25
predavanje2
using System;
namespace predavanje2
{
public class NizOblika
{
private Oblik[] nizO;
private int duzina;
public NizOblika(int d) {
nizO = new Oblik[d];
@nebjak
nebjak / miff_blog_reg_ex.php
Created October 18, 2011 13:38
Miff blog - RegEx
<?php
$s = 'miffmedia.com';
if(preg_match("/\./",$s)) echo 'Postoji znak .';
$s1 = 'miffmedia+com';
if(preg_match("/\+/",$s1)) echo 'Postoji znak + .';
?>
@nebjak
nebjak / gist_embed_test.html
Created November 18, 2011 11:56
Test github:gist embed
<!doctype html>
<html>
<head>
<title>Test github:gist</title>
</head>
<body>
<script src="https://gist.github.com/1295443.js"> </script>
</body>
</html>
@nebjak
nebjak / vtsosc_js1_uvod.html
Created November 18, 2011 12:45
VTSOSC - JavaScript 1 : Uvod
<!doctype html>
<html>
<head>
<script type="text/javascript">
document.write('Hello world');
</script>
</head>
<body>
</body>
@nebjak
nebjak / rbenv-install-system-wide.sh
Last active October 2, 2015 18:08 — forked from hedgehog/rbenv-install-system-wide.sh
rbenv install and system wide install on Ubuntu 10.04 LTS.
# Update, upgrade and install development tools:
apt-get update
apt-get -y upgrade
apt-get -y install build-essential
apt-get -y install zlib1g-dev libreadline-dev libssl-dev libcurl4-openssl-dev
apt-get -y install git-core
# Install rbenv
git clone git://github.com/sstephenson/rbenv.git /usr/local/rbenv
@nebjak
nebjak / search-APR-by-mb.coffee
Created May 8, 2012 09:36
Pokušaj provere privrednog društva po matičnom broju preko AJAX zahteva na sajt APR-a
$('#maticniBroj').blur ->
mb = $(this).val()
$.post(
'http://pretraga2.apr.gov.rs/ObjedinjenePretrage/Search/SearchResult'
'SelectedRegisterId': 1
'SearchByRegistryCodeString': mb
'SearchByNameString': ''
'X-Requested-With': 'XMLHttpRequest'
(data) ->
alert data
@nebjak
nebjak / make_test.log
Created June 16, 2012 16:12
'make test' for node.js v0.7.11
[node (build/v0.7.11) ]% make test-all
make -C out BUILDTYPE=Release
make[1]: Entering directory `/home/nebjak/c0d3/github/node/out'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/nebjak/c0d3/github/node/out'
ln -fs out/Release/node node
./node deps/npm/node_modules/node-gyp/bin/node-gyp rebuild \
--directory="/home/nebjak/c0d3/github/node/test/gc/node_modules/weak" \
--nodedir="/home/nebjak/c0d3/github/node"
gyp info it worked if it ends with ok
@nebjak
nebjak / make_test-all_nodejs_v0.7.12.log
Created June 20, 2012 12:30
'make test-all' on Node.js v0.7.12
[node (build/v0.7.12) ]% make test-all
make -C out BUILDTYPE=Release
make[1]: Entering directory `/home/nebjak/c0d3/github/node/out'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/nebjak/c0d3/github/node/out'
ln -fs out/Release/node node
make -C out BUILDTYPE=Debug
make[1]: Entering directory `/home/nebjak/c0d3/github/node/out'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/nebjak/c0d3/github/node/out'
@nebjak
nebjak / make_test-all_node-v0.8.3
Created July 21, 2012 07:41
'make test-all' on Node.js v0.8.3
[node (build/v0.8.3) ]% make test-all
make -C out BUILDTYPE=Release
make[1]: Entering directory `/home/nebjak/c0d3/node/out'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/nebjak/c0d3/node/out'
ln -fs out/Release/node node
make -C out BUILDTYPE=Debug
make[1]: Entering directory `/home/nebjak/c0d3/node/out'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/nebjak/c0d3/node/out'
@nebjak
nebjak / node-v0.9.0-test-all.txt
Created July 29, 2012 06:26
Node.js v0.9.0 'make test-all'
[node (build/v0.9.0) ]% make test-all -j 4
make -C out BUILDTYPE=Release
make -C out BUILDTYPE=Debug
make[1]: Entering directory `/home/nebjak/c0d3/GitHub/node/out'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/nebjak/c0d3/GitHub/node/out'
ln -fs out/Release/node node
make[1]: Entering directory `/home/nebjak/c0d3/GitHub/node/out'
make[1]: Nothing to be done for `all'.