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
<tr class=”<%= cycle(”odd”, “even”)%>” id=”<%= code %>”> |
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> | |
using namespace std; | |
int | |
fact(int n){ | |
if(n==0) return 1; | |
else return n*fact(n-1); | |
} | |
int |
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> | |
using namespace std; | |
int n[3]; | |
char x[6][6]; | |
int br[6]; | |
int max_br(){ | |
int max=0; |
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> | |
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; | |
} |
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
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); |
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
# 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) |
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> | |
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; } |
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
# disable account, Linux | |
$ usermod -p '' user | |
$ chage -d 0 user |
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 | |
grep -v ^# /etc/dhcp3/dhcpd.conf | grep -a2 host | egrep -v "hardware|\}|rndc-key" | awk '{print $2}' | sed '$!N;s/\n/ /' | column -t |
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
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){ |
OlderNewer