Skip to content

Instantly share code, notes, and snippets.

View aaangeletakis's full-sized avatar
🌴
On vacation

aaangeletakis

🌴
On vacation
View GitHub Profile

Below is a program to test the speed of certian io functions -- fwrite wins most of the time

#include <iostream>
#include <stdio.h>
#include <chrono>

// Check windows
#if _WIN32 || _WIN64
 #if _WIN64
  #define ENVIRONMENT64
def indent (O0O0O0OOO0OO0OOOO ):
OOOO0O0O00O0O00OO =""
for OOOOO0O00OOO0O00O in range (0 ,O0O0O0OOO0OO0OOOO ):
OOOO0O0O00O0O00OO +=" "
return OOOO0O0O00O0O00OO
funcName ="introCredit"
lines ="""By Alexios Angel
"""
startOfLineThingToAdd ="return \""
endOfLineThingToAdd ="\";"
def indent(num):
  stringy = ""
  for x in range(0, num):
    stringy += "  "
  return stringy
  
funcName = "introCredit"

lines = """
@aaangeletakis
aaangeletakis / BingBack.py
Last active October 10, 2017 14:18
A python script to auto download the Bing image of the day
# -*- coding: UTF-8 -*-
from urllib2 import urlopen
from urllib2 import Request
from json import loads
from datetime import date
from os.path import expanduser
from os.path import isdir
from os import chdir
from os import makedirs

sudo apt install libjpeg9-dev libwebp-dev libtiff5-dev libmikmod-dev libfishsound1-dev libsmpeg-dev liboggz2-dev libflac-dev libfluidsynth-dev libxcb-image0-dev libfreetype6-dev -y;

@aaangeletakis
aaangeletakis / How-to-get-a-music-files-duration.md
Created September 11, 2017 13:35
How to get a music file's duration:
  1. Download tinytag
  2. Use tiny tag.duration
@aaangeletakis
aaangeletakis / How-To-Install-SDL-On-Ubuntu.md
Last active February 20, 2024 17:55
How do I install SDL on ubuntu?

What you need to do to install SDL is:

#install sdl2
sudo apt install libsdl2-dev libsdl2-2.0-0 -y;

#install sdl image  - if you want to display images
sudo apt install libjpeg-dev libwebp-dev libtiff5-dev libsdl2-image-dev libsdl2-image-2.0-0 -y;

#install sdl mixer  - if you want sound