Skip to content

Instantly share code, notes, and snippets.

View yotamN's full-sized avatar

Yotam yotamN

View GitHub Profile
#!/usr/bin/python
from scapy.all import *
import pcapy
import time
import sys
import pygtk
pygtk.require('2.0')
import gtk
#include "Vector.h"
#include <iostream>
#define RESET 0
Vector::Vector(int n)
{
int num = n < 2 ? 2 : n;
this->_elements = new int[num];
this->_capacity = num;
int digitSum(int num);
int main(void)
{
digitSum(345); // 12
return 0;
}
int digitSum(int num)
{
# i3status configuration file.
# see "man i3status" for documentation.
# It is important that this file is edited as UTF-8.
# The following line should contain a sharp s:
# ß
# If the above line is not correctly displayed, fix your editor first!
general {
<html>
<head>
<title>
quiz
</title>
</head>
<body style="background-color:#FFFFCC; padding: 0;margin: 0;" >
<div style="background-color: #6699FF;">
<font size=6 face="rockwell">
<br>
@yotamN
yotamN / Code!!!
Last active August 29, 2015 14:21
int check(file* sign, file* f)
{
int i, j, t;
for(i=0; i<f->l - sign->l; i++)
{
t = 0;
for(j=0; j<sign->l; j++)
{
t++;
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define TRUE 1
#define FALSE 0
char* PutInStr(const char* fname);
int check(char* sig, char* doc);
<!DOCOTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<style>
a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{margin:0;padding:0;border:0;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:'';content:none}table{border-collapse:collapse;border-spacing:0}:focus{outline:0}*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}
</style>
</head>
<body>
@yotamN
yotamN / SassMeister-input.scss
Created May 16, 2014 09:07
Generated by SassMeister.com.
// ----
// Sass (v3.3.7)
// Compass (v1.0.0.alpha.18)
// ----
#top_menu {
margin: 0px;
padding: 0px;
li.item {
/* Some Code here */
@yotamN
yotamN / SassMeister-input.scss
Created May 16, 2014 09:02
Generated by SassMeister.com.
// ----
// Sass (v3.3.7)
// Compass (v1.0.0.alpha.18)
// ----
#top_menu {
margin: 0px;
padding: 0px;
li.item {
/* Some Code here */