Skip to content

Instantly share code, notes, and snippets.

View mohamedelbachir's full-sized avatar
🎯
Focusing

bachdev mohamedelbachir

🎯
Focusing
View GitHub Profile
@mohamedelbachir
mohamedelbachir / rss_urls.txt
Created October 31, 2025 09:16 — forked from miguelmota/rss_urls.txt
Tech news RSS feeds
https://news.ycombinator.com/rss
https://www.reddit.com/r/technology/top.rss?t=day
http://rss.slashdot.org/Slashdot/slashdotMain
https://www.theverge.com/rss/tech/index.xml
https://techcrunch.com/feed/
https://www.theguardian.com/us/technology/rss
https://feeds.arstechnica.com/arstechnica/technology-lab
https://www.reutersagency.com/feed/?best-topics=tech&post_type=best
https://feeds.a.dj.com/rss/RSSWSJD.xml
https://www.ft.com/technology?format=rss
@mohamedelbachir
mohamedelbachir / sdl2_opengl.cpp
Created August 26, 2024 23:32 — forked from jordandee/sdl2_opengl.cpp
Simple SDL2/OpenGL example
// To compile with gcc: (tested on Ubuntu 14.04 64bit):
// g++ sdl2_opengl.cpp -lSDL2 -lGL
// To compile with msvc: (tested on Windows 7 64bit)
// cl sdl2_opengl.cpp /I C:\sdl2path\include /link C:\path\SDL2.lib C:\path\SDL2main.lib /SUBSYSTEM:CONSOLE /NODEFAULTLIB:libcmtd.lib opengl32.lib
#include <stdio.h>
#include <stdint.h>
#include <assert.h>
#include <SDL2/SDL.h>
#include <SDL2/SDL_opengl.h>
@mohamedelbachir
mohamedelbachir / main.cpp
Created January 24, 2024 13:20
Simple template SDL Code
#include<SDL.h>
#include<iostream>
#include<cstdlib>
int main(int argc, char **argv){
if(SDL_INIT(SDL_INIT_VIDEO)<0){
std::cout<<"impossible to initialize SDL"<<std::endl;
return EXIT_FAILURE;
}
return EXIT_SUCCESS;
}