Skip to content

Instantly share code, notes, and snippets.

View akosnikhazy's full-sized avatar
🎯
Focusing

Ákos Nikházy akosnikhazy

🎯
Focusing
View GitHub Profile
@akosnikhazy
akosnikhazy / index.html
Created April 19, 2022 08:16 — forked from taniarascia/index.html
HTML Skeleton file
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<meta name="author" content="">
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
@akosnikhazy
akosnikhazy / twitch-live-widget.php
Created October 9, 2019 06:57
A small widget that shows up only when someone is live on Twitch, using Twitch's Helix API
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.twitch.tv/helix/streams?user_id=THE USER ID HERE');
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Authorization: Bearer YOUR SECRET HERE',
'Client-ID: YOUR APP CLIENT ID HERE'
));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
/*
* For this to work you need a form named "Form1"
* with a PictureBox named "camera".
*
* Next to the exe you need a "images" folder
*
* You need to install MjpegProcessor. It should work with
* other streams too, when I wrote this, happened that I
* had a mjpeg stream on my hand.
*/
@akosnikhazy
akosnikhazy / dragon-age-origins-instant-kill-cheat.au3
Last active September 6, 2016 12:44
Automatic console command for killing all hostiles in Dragon Age Origins. Just press a y to kill every enemy.
; Make a shortcut to your desktop of "daorigins.exe" (Dragon Age/bin_ship/daorigins.exe) go to shortcut properties, and under Target add -enabledeveloperconsole (after ..daorigins.exe" )
; This can be done on the Steam version by right clicking on the game in your Games List, choosing Properties, and clicking Set Launch Options. This allows you to enter command line option.
; Then go into the keybindings.ini file located in "My Documents\BioWare\Dragon Age\Settings\" Find the line "OpenConsole_0=Keyboard::Button_X" (GRAVE is default, change X to any button that is not already used in the game.)
; Save the file, and start the game with the shortcut you created on your desktop.
HotKeySet("y", cheat) ; y is default but you can set it to any key the game does not use (so do not set if fo C for example. Nor for the key you use for opening condole)
While 1
Sleep(100)
WEnd
@akosnikhazy
akosnikhazy / spore-creature-download.py
Last active July 4, 2016 21:12
This primitive little program downloads Spore creatures from spore.com
import urllib
import requests
import os
"I found that all the public creatures are in this folder's subfolder"
baseURL = 'http://static.spore.com/static/thumb/501/'
"""
Starting numbers. Download start at these numbers.
Folders look like in the 501 folder: /012/034/501012024001.png
@akosnikhazy
akosnikhazy / Add_Printable_Ring.py
Created April 17, 2016 13:35
Blender addon for generating basic 3D printable rings. It contains 80 official sizes from all over the world
'''
Copyright (C) 2016 Ákos Nikházy
nikhazy.akos@gmail.com
Created by Ákos Nikházy
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
@akosnikhazy
akosnikhazy / HomestuckRandomImage.php
Created March 29, 2016 19:08
Get a random page from Homestuck web comic
<?php
/*
Created by Ákos Nikházy
I use this in this app: http://ltats.nikhazy-dizajn.hu/
All Homestuck images are gifs numbered between 001901 and 009875 (to date). Sometimes the pages are flash animations or HTML5 games
*/
do
{//do this while the random number is not an image