Skip to content

Instantly share code, notes, and snippets.

View neuro-sys's full-sized avatar
💭
💾

Fırat Salgür neuro-sys

💭
💾
  • Helsinki, Finland
View GitHub Profile
@neuro-sys
neuro-sys / irc.c
Created October 31, 2012 15:55
irc.c
#include <Ws2tcpip.h>
#include <stdio.h>
#pragma comment (lib, "Ws2_32.lib")
#define PORT "6667"
#define HOST "irc.freenode.net"
DWORD WINAPI ThreadHTTPTitleCheck(LPVOID lpParam)
{
@neuro-sys
neuro-sys / rezilbot.c
Created November 1, 2012 22:48
rezil
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#include <stdio.h>
#include <pthread.h>
#include <string.h>
#include <stdlib.h>
#define PORT "6667"
#define HOST "irc.freenode.net"
@neuro-sys
neuro-sys / winsocktest.c
Created November 6, 2012 13:48
winsock
#include <stdio.h>
#include <Ws2tcpip.h>
#pragma comment (lib, "Ws2_32.lib")
int main()
{
WSADATA wsaData;
struct addrinfo hint;
struct addrinfo *res;
package irc;
import java.io.*;
import java.net.*;
/**
* Created with IntelliJ IDEA.
* User: JFDEV
* Date: 30.10.2012
* Time: 17:24
@neuro-sys
neuro-sys / sysout.log
Created November 14, 2012 08:34
was 7.0
[14.11.2012 10:30:59:984 EET] 000000a6 AdminHelper A ADMN1009I: An attempt is made to start the FOOEAR application.
[14.11.2012 10:31:00:109 EET] 000000a6 CompositionUn A WSVR0190I: Starting composition unit WebSphere:cuname=FOO in BLA WebSphere:blaname=FOOEAR.
[14.11.2012 10:31:42:500 EET] 000000a6 ApplicationMg A WSVR0200I: Starting application: FOOEAR
[14.11.2012 10:31:42:500 EET] 000000a6 ApplicationMg A WSVR0204I: Application: FOOEAR Application build level: Unknown
[14.11.2012 10:32:08:718 EET] 000000a6 ResourceMgrIm I WSVR0049I: Binding DefaultEJBTimerDataSource as jdbc/DefaultEJBTimerDataSource
@neuro-sys
neuro-sys / winbare.c
Created November 20, 2012 09:46
WinAPI barebones skeleton with OpenGL context set up.
#include <windows.h>
#include <gl/gl.h>
#include <gl/glu.h>
#define WIN32_LEAN_AND_MEAN
#define WCLASSNAME "HEDE"
#define W 640
#define H 480
#define PI (3.141592653589793)
@neuro-sys
neuro-sys / foo.c
Created November 21, 2012 17:25
foo
#include <windows.h>
#include <stdio.h>
#include <math.h>
#include <gl/gl.h>
#include <gl/glu.h>
#define WIN32_LEAN_AND_MEAN
#define WCLASSNAME "HEDE"
#define W 640
#include <windows.h>
#include <stdio.h>
#include <math.h>
#include <gl/gl.h>
#include <gl/glu.h>
#define WIN32_LEAN_AND_MEAN
#define WCLASSNAME "HEDE"
#define W 640
@neuro-sys
neuro-sys / gl2d.c
Created November 23, 2012 15:54
gl2d
#include <windows.h>
#include <stdio.h>
#include <math.h>
#include <gl/gl.h>
#include <gl/glu.h>
#define WIN32_LEAN_AND_MEAN
#define WCLASSNAME "HEDE"
#define W 640
@neuro-sys
neuro-sys / mandel.c
Created November 27, 2012 22:42
mandel.c
#include <windows.h>
#define W 640
#define H 400
const double xCentre = -0.75;
const double yCentre = +0.0;
const int nx = W;
const int ny = H;