Skip to content

Instantly share code, notes, and snippets.

@embed
embed / keybase.md
Last active September 10, 2019 12:32
keybase.io proof of my github identity

Keybase proof

I hereby claim:

  • I am embed on github.
  • I am tatita (https://keybase.io/tatita) on keybase.
  • I have a public key ASDwpkSEWgfLQp4J-YgNpGsMwouxGhwFmOzCf6hP13utbgo

To claim this, I am signing this object:

#include <stdio.h>
#include <unistd.h>
#include <termios.h>
int main()
{
struct termios old_tio, new_tio;
unsigned char c;
/* get the terminal settings for stdin */
@embed
embed / vektor.c
Created October 2, 2010 16:14
Gcc Vektör
#include<stdio.h>
union vint{
int __attribute__((vector_size(16))) v;
int b[4];
};
int main()
{
int arr[]={1,2,3,4,5,6,7,8};
@embed
embed / fft2test.sci
Created March 13, 2010 17:37
FFT test scilab
// Display mode
mode(0);
// Display warning for floating point exception
ieee(1);
x = rand(1024,1024,"normal");
stacksize('max')
tic
@embed
embed / gist:331446
Created March 13, 2010 17:16
FFT test octave/matlab
x=randn(1024,1024);
%stacksize('max')
tic
X=fft(x);
X=fft(x);
X=fft(x);
X=fft(x);
X=fft(x);
X=fft(x);
X=fft(x);
@embed
embed / fft2test.py
Created March 13, 2010 17:12
Python fft test
#!/usr/bin/python
# -*- coding: utf-8 -*-
#Programmed by Atilla Filiz
#Based the code by Kaan AKŞİT
rows=1024
cols=1024
try:
import random
float* matrixmul(float* fst, int frows, int fcols, float* sec, int srows, int scols)
{
if(fcols != srows)
{
printf("dimensions %d x %d to %d x %d\n",frows, fcols, srows, scols);
throw "Matrix dimension mismatch error";
}
float *result=new float[frows*scols];
@embed
embed / gist:167872
Created August 14, 2009 14:56
Resmi ortadan ikiye bölme
import os
for nr in range(1,18):
command ="convert %d.bmp -gravity West -crop 50%%x100%% left_%02d.bmp"%(nr,nr)
print command
os.system(command)
command ="convert %d.bmp -gravity East -crop 50%%x100%% right_%02d.bmp"%(nr,nr)
os.system(command)
/*
* V4L2 video capture example
*
* This program can be used and distributed without restrictions.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
Ey Zahit Şaraba Eyle İhtiram
İnsan Ol Cihanda Bu Dünya Fani
Ehline Helaldir, Na Ehle Haram
Biz İçeriz Bize Yoktur Vebali
Sevap Almak İçin İçeriz Şarap
İçmezsek Oluruz Düçar-ı Azap
Senin Aklın Ermez Bu Başka Hesap
Meyhanede Bulduk Biz Bu Kemali