Skip to content

Instantly share code, notes, and snippets.

<tr class=”<%= cycle(”odd”, “even”)%>” id=”<%= code %>”>
#include <iostream>
using namespace std;
int
fact(int n){
if(n==0) return 1;
else return n*fact(n-1);
}
int
#include <iostream>
#include <math.h>
using namespace std;
int n[3];
char x[6][6];
int br[6];
int max_br(){
int max=0;
#include <iostream>
using namespace std;
int br;
int manji(int br){
for(int i=1; i<5; i++)
if((br-i)%5==0){ return (br-i); break; }
return 0;
}
import fl.transitions.Tween
//import fl.transitions.easing.*
//import flash.events.*;
var ljk:MovieClip = new MovieClip();
ljk.graphics.lineStyle(3, 0x993399);
ljk.graphics.drawRoundRect(0,0,250,180,10);
ljk.x = 100; ljk.y = 100;
stage.addChild(ljk);
# WC14 test
#→ httperf --port=8014 --num-conns=10000
httperf --client=0/1 --server=localhost --port=8014 --uri=/ --send-buffer=4096 --recv-buffer=16384 --num-conns=10000 --num-calls=1
httperf: warning: open file limit > FD_SETSIZE; limiting max. # of open files to FD_SETSIZE
Maximum connect burst length: 1
Total: connections 10000 requests 10000 replies 10000 test-duration 3.430 s
Connection rate: 2915.6 conn/s (0.3 ms/conn, <=1 concurrent connections)
#include <iostream>
using namespace std;
// niz.cpp
// unos: m, n :(int)
// ispis: n-ti broj sa brojem znamenaka 4*m
int sumzn(int x){
int sum=0,orig=x;
while(x!=0){ sum+=x%10; x/=10; }
# disable account, Linux
$ usermod -p '' user
$ chage -d 0 user
#!/bin/bash
grep -v ^# /etc/dhcp3/dhcpd.conf | grep -a2 host | egrep -v "hardware|\}|rndc-key" | awk '{print $2}' | sed '$!N;s/\n/ /' | column -t
require "rubygems"
require 'inline'
class Test1
inline(:C) do |builder|
builder.include '<iostream>'
builder.add_compile_flags '-x c++', '-lstdc++'
builder.c '
using namespace std;
void zbroji(int a, int b){